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 | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.59 for pjproject 0.8. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4 | # |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +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 | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 12 | # Be Bourne compatible |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 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+"$@"}'='"$@"' |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 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 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 23 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 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 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 29 | fi |
| 30 | |
| 31 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 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 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 63 | |
| 64 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 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 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 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 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 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 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 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 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 123 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 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 | '') |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 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=. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 135 | for as_base in sh bash ksh sh5; do |
| 136 | case $as_dir in |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 137 | /*) |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 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 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 152 | done |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 153 | ;; |
| 154 | esac |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 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 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 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. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 164 | sed '=' <$as_myself | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 165 | sed ' |
| 166 | N |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 167 | s,$,-, |
| 168 | : loop |
| 169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 170 | t loop |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 171 | s,-$,, |
| 172 | s,^['$as_cr_digits']*\n,, |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 173 | ' >$as_me.lineno && |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 174 | chmod +x $as_me.lineno || |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 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 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 180 | # original and so on. Autoconf is especially sensible to this). |
| 181 | . ./$as_me.lineno |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 182 | # Exit status is that of the last command. |
| 183 | exit |
| 184 | } |
| 185 | |
| 186 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 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= ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 192 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 193 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 194 | if expr a : '\(a\)' >/dev/null 2>&1; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 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 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 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 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 207 | as_ln_s='cp -p' |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 208 | else |
| 209 | as_ln_s='ln -s' |
| 210 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 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 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 216 | rm -f conf$$ conf$$.exe conf$$.file |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 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 | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 225 | as_executable_p="test -f" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 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 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 234 | # IFS |
| 235 | # We need space, tab and new line, in precisely that order. |
| 236 | as_nl=' |
| 237 | ' |
| 238 | IFS=" $as_nl" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 239 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 240 | # CDPATH. |
| 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 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 249 | exec 6>&1 |
| 250 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 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 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 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 | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 270 | PACKAGE_VERSION='0.8' |
| 271 | PACKAGE_STRING='pjproject 0.8' |
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> |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 277 | #if HAVE_SYS_TYPES_H |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 278 | # include <sys/types.h> |
| 279 | #endif |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 280 | #if HAVE_SYS_STAT_H |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 281 | # include <sys/stat.h> |
| 282 | #endif |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 283 | #if STDC_HEADERS |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 284 | # include <stdlib.h> |
| 285 | # include <stddef.h> |
| 286 | #else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 287 | # if HAVE_STDLIB_H |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 288 | # include <stdlib.h> |
| 289 | # endif |
| 290 | #endif |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 291 | #if HAVE_STRING_H |
| 292 | # if !STDC_HEADERS && HAVE_MEMORY_H |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 293 | # include <memory.h> |
| 294 | # endif |
| 295 | # include <string.h> |
| 296 | #endif |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 297 | #if HAVE_STRINGS_H |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 298 | # include <strings.h> |
| 299 | #endif |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 300 | #if HAVE_INTTYPES_H |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 301 | # include <inttypes.h> |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 302 | #else |
| 303 | # if HAVE_STDINT_H |
| 304 | # include <stdint.h> |
| 305 | # endif |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 306 | #endif |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 307 | #if HAVE_UNISTD_H |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 308 | # include <unistd.h> |
| 309 | #endif" |
| 310 | |
Benny Prijono | 71f657d | 2008-03-17 14:24:21 +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_pa_use_oss 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_g722_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' |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 342 | datadir='${prefix}/share' |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 343 | sysconfdir='${prefix}/etc' |
| 344 | sharedstatedir='${prefix}/com' |
| 345 | localstatedir='${prefix}/var' |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 346 | libdir='${exec_prefix}/lib' |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 347 | includedir='${prefix}/include' |
| 348 | oldincludedir='/usr/include' |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 349 | infodir='${prefix}/info' |
| 350 | mandir='${prefix}/man' |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 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 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 357 | eval "$ac_prev=\$ac_option" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 358 | ac_prev= |
| 359 | continue |
| 360 | fi |
| 361 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 362 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 363 | |
| 364 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 365 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 366 | case $ac_option in |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 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 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 388 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 389 | ac_prev=datadir ;; |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 390 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 391 | | --da=*) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 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. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 397 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 398 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 399 | { (exit 1); exit 1; }; } |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 400 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 401 | eval "enable_$ac_feature=no" ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 402 | |
| 403 | -enable-* | --enable-*) |
| 404 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 405 | # Reject names that are not valid shell variable names. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 406 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 407 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 408 | { (exit 1); exit 1; }; } |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 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'" ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 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 \ |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 466 | | --localstate | --localstat | --localsta | --localst \ |
| 467 | | --locals | --local | --loca | --loc | --lo) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 468 | ac_prev=localstatedir ;; |
| 469 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 470 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 471 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 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. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 588 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 589 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 590 | { (exit 1); exit 1; }; } |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 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'" ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 597 | |
| 598 | -without-* | --without-*) |
| 599 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 600 | # Reject names that are not valid shell variable names. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 601 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 602 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 603 | { (exit 1); exit 1; }; } |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 604 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 605 | eval "with_$ac_package=no" ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 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; }; } |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 636 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 637 | eval "$ac_envvar='$ac_optarg'" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 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 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 657 | # Be sure to have absolute paths. |
| 658 | for ac_var in exec_prefix prefix |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 659 | do |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 660 | eval ac_val=$`echo $ac_var` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 661 | case $ac_val in |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 662 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| 663 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 664 | { (exit 1); exit 1; }; };; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 665 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 666 | done |
| 667 | |
| 668 | # Be sure to have absolute paths. |
| 669 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
| 670 | localstatedir libdir includedir oldincludedir infodir mandir |
| 671 | do |
| 672 | eval ac_val=$`echo $ac_var` |
| 673 | case $ac_val in |
| 674 | [\\/$]* | ?:[\\/]* ) ;; |
| 675 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 676 | { (exit 1); exit 1; }; };; |
| 677 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 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 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 707 | # Try the directory containing this script, then its parent. |
| 708 | ac_confdir=`(dirname "$0") 2>/dev/null || |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 709 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 710 | X"$0" : 'X\(//\)[^/]' \| \ |
| 711 | X"$0" : 'X\(//\)$' \| \ |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 712 | X"$0" : 'X\(/\)' \| \ |
| 713 | . : '\(.\)' 2>/dev/null || |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 714 | echo X"$0" | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 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 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 721 | if test ! -r $srcdir/$ac_unique_file; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 722 | srcdir=.. |
| 723 | fi |
| 724 | else |
| 725 | ac_srcdir_defaulted=no |
| 726 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 727 | if test ! -r $srcdir/$ac_unique_file; then |
| 728 | if test "$ac_srcdir_defaulted" = yes; then |
| 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; }; } |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 731 | else |
| 732 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 733 | { (exit 1); exit 1; }; } |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 734 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 735 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +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; }; } |
| 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 |
| 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 |
| 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 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 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 | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 788 | \`configure' configures pjproject 0.8 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 | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 808 | _ACEOF |
| 809 | |
| 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] |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 828 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 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] |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 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 | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 850 | short | recursive ) echo "Configuration of pjproject 0.8:";; |
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 | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 860 | --disable-oss Disable OSS audio (default: not disabled) |
| 861 | |
Benny Prijono | ebb2c33 | 2008-07-28 23:40:58 +0000 | [diff] [blame] | 862 | --enable-ext-sound PJMEDIA will not provide any sound device backend |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 863 | --disable-small-filter Exclude small filter in resampling |
| 864 | --disable-large-filter Exclude large filter in resampling |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 865 | --disable-speex-aec Exclude Speex Acoustic Echo Canceller/AEC |
| 866 | --disable-g711-codec Exclude G.711 codecs from the build |
| 867 | --disable-l16-codec Exclude Linear/L16 codec family from the build |
| 868 | --disable-gsm-codec Exclude GSM codec in the build |
Benny Prijono | 71f657d | 2008-03-17 14:24:21 +0000 | [diff] [blame] | 869 | --disable-g722-codec Exclude G.722 codec in the build |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 870 | --disable-speex-codec Exclude Speex codecs in the build |
| 871 | --disable-ilbc-codec Exclude iLBC codec in the build |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 872 | --enable-libsamplerate Link with libsamplerate when available. Note that |
| 873 | PJMEDIA_RESAMPLE_IMP must also be configured |
Benny Prijono | ce1db76 | 2007-02-14 02:21:08 +0000 | [diff] [blame] | 874 | --disable-ssl Exclude SSL support the build (default: autodetect) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 875 | |
| 876 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 877 | Some influential environment variables: |
| 878 | CC C compiler command |
| 879 | CFLAGS C compiler flags |
| 880 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 881 | nonstandard directory <lib dir> |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 882 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 883 | headers in a nonstandard directory <include dir> |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 884 | CXX C++ compiler command |
| 885 | CXXFLAGS C++ compiler flags |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 886 | CPP C preprocessor |
| 887 | |
| 888 | Use these variables to override the choices made by `configure' or to help |
| 889 | it to find libraries and programs with nonstandard names/locations. |
| 890 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 891 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 892 | fi |
| 893 | |
| 894 | if test "$ac_init_help" = "recursive"; then |
| 895 | # If there are subdirs, report their specific --help. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 896 | ac_popdir=`pwd` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 897 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 898 | test -d $ac_dir || continue |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 899 | ac_builddir=. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 900 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 901 | if test "$ac_dir" != .; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 902 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 903 | # A "../" for each directory in $ac_dir_suffix. |
| 904 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 905 | else |
| 906 | ac_dir_suffix= ac_top_builddir= |
| 907 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 908 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 909 | case $srcdir in |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 910 | .) # No --srcdir option. We are building in place. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 911 | ac_srcdir=. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 912 | if test -z "$ac_top_builddir"; then |
| 913 | ac_top_srcdir=. |
| 914 | else |
| 915 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 916 | fi ;; |
| 917 | [\\/]* | ?:[\\/]* ) # Absolute path. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 918 | ac_srcdir=$srcdir$ac_dir_suffix; |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 919 | ac_top_srcdir=$srcdir ;; |
| 920 | *) # Relative path. |
| 921 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 922 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 923 | esac |
| 924 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 925 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 926 | # the directories may not exist. |
| 927 | case `pwd` in |
| 928 | .) ac_abs_builddir="$ac_dir";; |
| 929 | *) |
| 930 | case "$ac_dir" in |
| 931 | .) ac_abs_builddir=`pwd`;; |
| 932 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 933 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 934 | esac;; |
| 935 | esac |
| 936 | case $ac_abs_builddir in |
| 937 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 938 | *) |
| 939 | case ${ac_top_builddir}. in |
| 940 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 941 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 942 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 943 | esac;; |
| 944 | esac |
| 945 | case $ac_abs_builddir in |
| 946 | .) ac_abs_srcdir=$ac_srcdir;; |
| 947 | *) |
| 948 | case $ac_srcdir in |
| 949 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 950 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 951 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 952 | esac;; |
| 953 | esac |
| 954 | case $ac_abs_builddir in |
| 955 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 956 | *) |
| 957 | case $ac_top_srcdir in |
| 958 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 959 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 960 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 961 | esac;; |
| 962 | esac |
| 963 | |
| 964 | cd $ac_dir |
| 965 | # Check for guested configure; otherwise get Cygnus style configure. |
| 966 | if test -f $ac_srcdir/configure.gnu; then |
| 967 | echo |
| 968 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 969 | elif test -f $ac_srcdir/configure; then |
| 970 | echo |
| 971 | $SHELL $ac_srcdir/configure --help=recursive |
| 972 | elif test -f $ac_srcdir/configure.ac || |
| 973 | test -f $ac_srcdir/configure.in; then |
| 974 | echo |
| 975 | $ac_configure --help |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 976 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 977 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 978 | fi |
| 979 | cd $ac_popdir |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 980 | done |
| 981 | fi |
| 982 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 983 | test -n "$ac_init_help" && exit 0 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 984 | if $ac_init_version; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 985 | cat <<\_ACEOF |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 986 | pjproject configure 0.8 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 987 | generated by GNU Autoconf 2.59 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 988 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 989 | Copyright (C) 2003 Free Software Foundation, Inc. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 990 | This configure script is free software; the Free Software Foundation |
| 991 | gives unlimited permission to copy, distribute and modify it. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 992 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 993 | exit 0 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 994 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 995 | exec 5>config.log |
| 996 | cat >&5 <<_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 997 | This file contains any messages produced by compilers while |
| 998 | running configure, to aid debugging if configure makes a mistake. |
| 999 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 1000 | It was created by pjproject $as_me 0.8, which was |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1001 | generated by GNU Autoconf 2.59. Invocation command line was |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1002 | |
| 1003 | $ $0 $@ |
| 1004 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1005 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1006 | { |
| 1007 | cat <<_ASUNAME |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1008 | ## --------- ## |
| 1009 | ## Platform. ## |
| 1010 | ## --------- ## |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1011 | |
| 1012 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1013 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1014 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1015 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1016 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1017 | |
| 1018 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1019 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1020 | |
| 1021 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1022 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1023 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1024 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1025 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1026 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1027 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1028 | |
| 1029 | _ASUNAME |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1030 | |
| 1031 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1032 | for as_dir in $PATH |
| 1033 | do |
| 1034 | IFS=$as_save_IFS |
| 1035 | test -z "$as_dir" && as_dir=. |
| 1036 | echo "PATH: $as_dir" |
| 1037 | done |
| 1038 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1039 | } >&5 |
| 1040 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1041 | cat >&5 <<_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1042 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1043 | |
| 1044 | ## ----------- ## |
| 1045 | ## Core tests. ## |
| 1046 | ## ----------- ## |
| 1047 | |
| 1048 | _ACEOF |
| 1049 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1050 | |
| 1051 | # Keep a trace of the command line. |
| 1052 | # 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] | 1053 | # 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] | 1054 | # Also quote any args containing shell meta-characters. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1055 | # Make two passes to allow for proper duplicate-argument suppression. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1056 | ac_configure_args= |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1057 | ac_configure_args0= |
| 1058 | ac_configure_args1= |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1059 | ac_sep= |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1060 | ac_must_keep_next=false |
| 1061 | for ac_pass in 1 2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1062 | do |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1063 | for ac_arg |
| 1064 | do |
| 1065 | case $ac_arg in |
| 1066 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1067 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1068 | | -silent | --silent | --silen | --sile | --sil) |
| 1069 | continue ;; |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1070 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1071 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1072 | esac |
| 1073 | case $ac_pass in |
| 1074 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1075 | 2) |
| 1076 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1077 | if test $ac_must_keep_next = true; then |
| 1078 | ac_must_keep_next=false # Got value, back to normal. |
| 1079 | else |
| 1080 | case $ac_arg in |
| 1081 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1082 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1083 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1084 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1085 | case "$ac_configure_args0 " in |
| 1086 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1087 | esac |
| 1088 | ;; |
| 1089 | -* ) ac_must_keep_next=true ;; |
| 1090 | esac |
| 1091 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1092 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1093 | # Get rid of the leading space. |
| 1094 | ac_sep=" " |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1095 | ;; |
| 1096 | esac |
| 1097 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1098 | done |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1099 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1100 | $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] | 1101 | |
| 1102 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1103 | # config.log. We remove comments because anyway the quotes in there |
| 1104 | # would cause problems or look ugly. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1105 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1106 | # such as our DU 5.0 friend, will then `close' the trap. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1107 | trap 'exit_status=$? |
| 1108 | # Save into config.log some information that might help in debugging. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1109 | { |
| 1110 | echo |
| 1111 | |
| 1112 | cat <<\_ASBOX |
| 1113 | ## ---------------- ## |
| 1114 | ## Cache variables. ## |
| 1115 | ## ---------------- ## |
| 1116 | _ASBOX |
| 1117 | echo |
| 1118 | # The following way of writing the cache mishandles newlines in values, |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1119 | { |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1120 | (set) 2>&1 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1121 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1122 | *ac_space=\ *) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1123 | sed -n \ |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1124 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1125 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1126 | ;; |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1127 | *) |
| 1128 | sed -n \ |
| 1129 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1130 | ;; |
| 1131 | esac; |
| 1132 | } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1133 | echo |
| 1134 | |
| 1135 | cat <<\_ASBOX |
| 1136 | ## ----------------- ## |
| 1137 | ## Output variables. ## |
| 1138 | ## ----------------- ## |
| 1139 | _ASBOX |
| 1140 | echo |
| 1141 | for ac_var in $ac_subst_vars |
| 1142 | do |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1143 | eval ac_val=$`echo $ac_var` |
| 1144 | echo "$ac_var='"'"'$ac_val'"'"'" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1145 | done | sort |
| 1146 | echo |
| 1147 | |
| 1148 | if test -n "$ac_subst_files"; then |
| 1149 | cat <<\_ASBOX |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1150 | ## ------------- ## |
| 1151 | ## Output files. ## |
| 1152 | ## ------------- ## |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1153 | _ASBOX |
| 1154 | echo |
| 1155 | for ac_var in $ac_subst_files |
| 1156 | do |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1157 | eval ac_val=$`echo $ac_var` |
| 1158 | echo "$ac_var='"'"'$ac_val'"'"'" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1159 | done | sort |
| 1160 | echo |
| 1161 | fi |
| 1162 | |
| 1163 | if test -s confdefs.h; then |
| 1164 | cat <<\_ASBOX |
| 1165 | ## ----------- ## |
| 1166 | ## confdefs.h. ## |
| 1167 | ## ----------- ## |
| 1168 | _ASBOX |
| 1169 | echo |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1170 | sed "/^$/d" confdefs.h | sort |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1171 | echo |
| 1172 | fi |
| 1173 | test "$ac_signal" != 0 && |
| 1174 | echo "$as_me: caught signal $ac_signal" |
| 1175 | echo "$as_me: exit $exit_status" |
| 1176 | } >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1177 | rm -f core *.core && |
| 1178 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1179 | exit $exit_status |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1180 | ' 0 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1181 | for ac_signal in 1 2 13 15; do |
| 1182 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1183 | done |
| 1184 | ac_signal=0 |
| 1185 | |
| 1186 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1187 | rm -rf conftest* confdefs.h |
| 1188 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1189 | echo >confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1190 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1191 | # Predefined preprocessor variables. |
| 1192 | |
| 1193 | cat >>confdefs.h <<_ACEOF |
| 1194 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1195 | _ACEOF |
| 1196 | |
| 1197 | |
| 1198 | cat >>confdefs.h <<_ACEOF |
| 1199 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1200 | _ACEOF |
| 1201 | |
| 1202 | |
| 1203 | cat >>confdefs.h <<_ACEOF |
| 1204 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1205 | _ACEOF |
| 1206 | |
| 1207 | |
| 1208 | cat >>confdefs.h <<_ACEOF |
| 1209 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1210 | _ACEOF |
| 1211 | |
| 1212 | |
| 1213 | cat >>confdefs.h <<_ACEOF |
| 1214 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1215 | _ACEOF |
| 1216 | |
| 1217 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1218 | # Let the site file select an alternate cache file if it wants to. |
| 1219 | # Prefer explicitly selected file to automatically selected ones. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1220 | if test -z "$CONFIG_SITE"; then |
| 1221 | if test "x$prefix" != xNONE; then |
| 1222 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1223 | else |
| 1224 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1225 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1226 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1227 | for ac_site_file in $CONFIG_SITE; do |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1228 | if test -r "$ac_site_file"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1229 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1230 | echo "$as_me: loading site script $ac_site_file" >&6;} |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1231 | sed 's/^/| /' "$ac_site_file" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1232 | . "$ac_site_file" |
| 1233 | fi |
| 1234 | done |
| 1235 | |
| 1236 | if test -r "$cache_file"; then |
| 1237 | # Some versions of bash will fail to source /dev/null (special |
| 1238 | # files actually), so we avoid doing that. |
| 1239 | if test -f "$cache_file"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1240 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1241 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1242 | case $cache_file in |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1243 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1244 | *) . ./$cache_file;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1245 | esac |
| 1246 | fi |
| 1247 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1248 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1249 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1250 | >$cache_file |
| 1251 | fi |
| 1252 | |
| 1253 | # Check that the precious variables saved in the cache have kept the same |
| 1254 | # value. |
| 1255 | ac_cache_corrupted=false |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1256 | for ac_var in `(set) 2>&1 | |
| 1257 | 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] | 1258 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1259 | eval ac_new_set=\$ac_env_${ac_var}_set |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1260 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1261 | eval ac_new_val="\$ac_env_${ac_var}_value" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1262 | case $ac_old_set,$ac_new_set in |
| 1263 | set,) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1264 | { 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] | 1265 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1266 | ac_cache_corrupted=: ;; |
| 1267 | ,set) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1268 | { 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] | 1269 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1270 | ac_cache_corrupted=: ;; |
| 1271 | ,);; |
| 1272 | *) |
| 1273 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1274 | { 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] | 1275 | 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] | 1276 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1277 | echo "$as_me: former value: $ac_old_val" >&2;} |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1278 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1279 | echo "$as_me: current value: $ac_new_val" >&2;} |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1280 | ac_cache_corrupted=: |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1281 | fi;; |
| 1282 | esac |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1283 | # Pass precious variables to config.status. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1284 | if test "$ac_new_set" = set; then |
| 1285 | case $ac_new_val in |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1286 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1287 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1288 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1289 | esac |
| 1290 | case " $ac_configure_args " in |
| 1291 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1292 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1293 | esac |
| 1294 | fi |
| 1295 | done |
| 1296 | if $ac_cache_corrupted; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1297 | { 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] | 1298 | 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] | 1299 | { { 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] | 1300 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1301 | { (exit 1); exit 1; }; } |
| 1302 | fi |
| 1303 | |
| 1304 | ac_ext=c |
| 1305 | ac_cpp='$CPP $CPPFLAGS' |
| 1306 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1307 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1308 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1309 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1310 | |
| 1311 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1312 | |
| 1313 | |
| 1314 | |
| 1315 | |
| 1316 | |
| 1317 | |
| 1318 | |
| 1319 | |
| 1320 | |
| 1321 | |
| 1322 | |
| 1323 | |
| 1324 | |
| 1325 | |
| 1326 | |
| 1327 | |
| 1328 | |
| 1329 | |
| 1330 | |
| 1331 | |
| 1332 | |
| 1333 | |
| 1334 | |
| 1335 | |
| 1336 | |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 1337 | host_orig="$host" |
| 1338 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1339 | ac_aux_dir= |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1340 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 1341 | if test -f $ac_dir/install-sh; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1342 | ac_aux_dir=$ac_dir |
| 1343 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1344 | break |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1345 | elif test -f $ac_dir/install.sh; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1346 | ac_aux_dir=$ac_dir |
| 1347 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1348 | break |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1349 | elif test -f $ac_dir/shtool; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1350 | ac_aux_dir=$ac_dir |
| 1351 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1352 | break |
| 1353 | fi |
| 1354 | done |
| 1355 | if test -z "$ac_aux_dir"; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1356 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 1357 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1358 | { (exit 1); exit 1; }; } |
| 1359 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1360 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 1361 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 1362 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1363 | |
| 1364 | # Make sure we can run config.sub. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1365 | $ac_config_sub sun4 >/dev/null 2>&1 || |
| 1366 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
| 1367 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1368 | { (exit 1); exit 1; }; } |
| 1369 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1370 | echo "$as_me:$LINENO: checking build system type" >&5 |
| 1371 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1372 | if test "${ac_cv_build+set}" = set; then |
| 1373 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1374 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1375 | ac_cv_build_alias=$build_alias |
| 1376 | test -z "$ac_cv_build_alias" && |
| 1377 | ac_cv_build_alias=`$ac_config_guess` |
| 1378 | test -z "$ac_cv_build_alias" && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1379 | { { 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] | 1380 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1381 | { (exit 1); exit 1; }; } |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1382 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
| 1383 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
| 1384 | 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] | 1385 | { (exit 1); exit 1; }; } |
| 1386 | |
| 1387 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1388 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 1389 | echo "${ECHO_T}$ac_cv_build" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1390 | build=$ac_cv_build |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1391 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1392 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1393 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1394 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1395 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1396 | echo "$as_me:$LINENO: checking host system type" >&5 |
| 1397 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1398 | if test "${ac_cv_host+set}" = set; then |
| 1399 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1400 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1401 | ac_cv_host_alias=$host_alias |
| 1402 | test -z "$ac_cv_host_alias" && |
| 1403 | ac_cv_host_alias=$ac_cv_build_alias |
| 1404 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
| 1405 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
| 1406 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1407 | { (exit 1); exit 1; }; } |
| 1408 | |
| 1409 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1410 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 1411 | echo "${ECHO_T}$ac_cv_host" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1412 | host=$ac_cv_host |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1413 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1414 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1415 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1416 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1417 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1418 | echo "$as_me:$LINENO: checking target system type" >&5 |
| 1419 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1420 | if test "${ac_cv_target+set}" = set; then |
| 1421 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1422 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1423 | ac_cv_target_alias=$target_alias |
| 1424 | test "x$ac_cv_target_alias" = "x" && |
| 1425 | ac_cv_target_alias=$ac_cv_host_alias |
| 1426 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || |
| 1427 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 |
| 1428 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1429 | { (exit 1); exit 1; }; } |
| 1430 | |
| 1431 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1432 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 1433 | echo "${ECHO_T}$ac_cv_target" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1434 | target=$ac_cv_target |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1435 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1436 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1437 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1438 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1439 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1440 | # The aliases save the names the user supplied, while $host etc. |
| 1441 | # will get canonicalized. |
| 1442 | test -n "$target_alias" && |
| 1443 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 1444 | NONENONEs,x,x, && |
| 1445 | program_prefix=${target_alias}- |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1446 | 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] | 1447 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1448 | 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] | 1449 | |
Benny Prijono | c1fe23d | 2006-09-13 09:38:06 +0000 | [diff] [blame] | 1450 | |
Benny Prijono | 1248311 | 2007-03-12 10:44:38 +0000 | [diff] [blame] | 1451 | |
Benny Prijono | c1fe23d | 2006-09-13 09:38:06 +0000 | [diff] [blame] | 1452 | if test "$CFLAGS" = ""; then |
Benny Prijono | d145982 | 2006-10-04 20:56:39 +0000 | [diff] [blame] | 1453 | CFLAGS="-O2" |
Benny Prijono | c1fe23d | 2006-09-13 09:38:06 +0000 | [diff] [blame] | 1454 | else |
| 1455 | CFLAGS="$CFLAGS" |
| 1456 | fi |
| 1457 | |
| 1458 | CXXFLAGS="$CFLAGS $CXXFLAGS" |
| 1459 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1460 | ac_ext=c |
| 1461 | ac_cpp='$CPP $CPPFLAGS' |
| 1462 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1463 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1464 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1465 | if test -n "$ac_tool_prefix"; then |
| 1466 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1467 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1468 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1469 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1470 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1471 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1472 | else |
| 1473 | if test -n "$CC"; then |
| 1474 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1475 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1476 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1477 | for as_dir in $PATH |
| 1478 | do |
| 1479 | IFS=$as_save_IFS |
| 1480 | test -z "$as_dir" && as_dir=. |
| 1481 | for ac_exec_ext in '' $ac_executable_extensions; do |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1482 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1483 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1484 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1485 | break 2 |
| 1486 | fi |
| 1487 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1488 | done |
| 1489 | |
| 1490 | fi |
| 1491 | fi |
| 1492 | CC=$ac_cv_prog_CC |
| 1493 | if test -n "$CC"; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1494 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1495 | echo "${ECHO_T}$CC" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1496 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1497 | echo "$as_me:$LINENO: result: no" >&5 |
| 1498 | echo "${ECHO_T}no" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1499 | fi |
| 1500 | |
| 1501 | fi |
| 1502 | if test -z "$ac_cv_prog_CC"; then |
| 1503 | ac_ct_CC=$CC |
| 1504 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1505 | set dummy gcc; ac_word=$2 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1506 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1507 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1508 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1509 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1510 | else |
| 1511 | if test -n "$ac_ct_CC"; then |
| 1512 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1513 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1514 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1515 | for as_dir in $PATH |
| 1516 | do |
| 1517 | IFS=$as_save_IFS |
| 1518 | test -z "$as_dir" && as_dir=. |
| 1519 | for ac_exec_ext in '' $ac_executable_extensions; do |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1520 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1521 | ac_cv_prog_ac_ct_CC="gcc" |
| 1522 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1523 | break 2 |
| 1524 | fi |
| 1525 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1526 | done |
| 1527 | |
| 1528 | fi |
| 1529 | fi |
| 1530 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1531 | if test -n "$ac_ct_CC"; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1532 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1533 | echo "${ECHO_T}$ac_ct_CC" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1534 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1535 | echo "$as_me:$LINENO: result: no" >&5 |
| 1536 | echo "${ECHO_T}no" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1537 | fi |
| 1538 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1539 | CC=$ac_ct_CC |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1540 | else |
| 1541 | CC="$ac_cv_prog_CC" |
| 1542 | fi |
| 1543 | |
| 1544 | if test -z "$CC"; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1545 | if test -n "$ac_tool_prefix"; then |
| 1546 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1547 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1548 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1549 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1550 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1551 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1552 | else |
| 1553 | if test -n "$CC"; then |
| 1554 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1555 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1556 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1557 | for as_dir in $PATH |
| 1558 | do |
| 1559 | IFS=$as_save_IFS |
| 1560 | test -z "$as_dir" && as_dir=. |
| 1561 | for ac_exec_ext in '' $ac_executable_extensions; do |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1562 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1563 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1564 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1565 | break 2 |
| 1566 | fi |
| 1567 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1568 | done |
| 1569 | |
| 1570 | fi |
| 1571 | fi |
| 1572 | CC=$ac_cv_prog_CC |
| 1573 | if test -n "$CC"; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1574 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1575 | echo "${ECHO_T}$CC" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1576 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1577 | echo "$as_me:$LINENO: result: no" >&5 |
| 1578 | echo "${ECHO_T}no" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1579 | fi |
| 1580 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1581 | fi |
| 1582 | if test -z "$ac_cv_prog_CC"; then |
| 1583 | ac_ct_CC=$CC |
| 1584 | # Extract the first word of "cc", so it can be a program name with args. |
| 1585 | set dummy cc; ac_word=$2 |
| 1586 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1587 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1588 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1589 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1590 | else |
| 1591 | if test -n "$ac_ct_CC"; then |
| 1592 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1593 | else |
| 1594 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1595 | for as_dir in $PATH |
| 1596 | do |
| 1597 | IFS=$as_save_IFS |
| 1598 | test -z "$as_dir" && as_dir=. |
| 1599 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1600 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1601 | ac_cv_prog_ac_ct_CC="cc" |
| 1602 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1603 | break 2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1604 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1605 | done |
| 1606 | done |
| 1607 | |
| 1608 | fi |
| 1609 | fi |
| 1610 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1611 | if test -n "$ac_ct_CC"; then |
| 1612 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1613 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1614 | else |
| 1615 | echo "$as_me:$LINENO: result: no" >&5 |
| 1616 | echo "${ECHO_T}no" >&6 |
| 1617 | fi |
| 1618 | |
| 1619 | CC=$ac_ct_CC |
| 1620 | else |
| 1621 | CC="$ac_cv_prog_CC" |
| 1622 | fi |
| 1623 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1624 | fi |
| 1625 | if test -z "$CC"; then |
| 1626 | # Extract the first word of "cc", so it can be a program name with args. |
| 1627 | set dummy cc; ac_word=$2 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1628 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1629 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1630 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1631 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1632 | else |
| 1633 | if test -n "$CC"; then |
| 1634 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1635 | else |
| 1636 | ac_prog_rejected=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1637 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1638 | for as_dir in $PATH |
| 1639 | do |
| 1640 | IFS=$as_save_IFS |
| 1641 | test -z "$as_dir" && as_dir=. |
| 1642 | for ac_exec_ext in '' $ac_executable_extensions; do |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1643 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1644 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1645 | ac_prog_rejected=yes |
| 1646 | continue |
| 1647 | fi |
| 1648 | ac_cv_prog_CC="cc" |
| 1649 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1650 | break 2 |
| 1651 | fi |
| 1652 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1653 | done |
| 1654 | |
| 1655 | if test $ac_prog_rejected = yes; then |
| 1656 | # We found a bogon in the path, so make sure we never use it. |
| 1657 | set dummy $ac_cv_prog_CC |
| 1658 | shift |
| 1659 | if test $# != 0; then |
| 1660 | # We chose a different compiler from the bogus one. |
| 1661 | # However, it has the same basename, so the bogon will be chosen |
| 1662 | # first if we set CC to just the basename; use the full file name. |
| 1663 | shift |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1664 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1665 | fi |
| 1666 | fi |
| 1667 | fi |
| 1668 | fi |
| 1669 | CC=$ac_cv_prog_CC |
| 1670 | if test -n "$CC"; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1671 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1672 | echo "${ECHO_T}$CC" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1673 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1674 | echo "$as_me:$LINENO: result: no" >&5 |
| 1675 | echo "${ECHO_T}no" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1676 | fi |
| 1677 | |
| 1678 | fi |
| 1679 | if test -z "$CC"; then |
| 1680 | if test -n "$ac_tool_prefix"; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1681 | for ac_prog in cl |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1682 | do |
| 1683 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1684 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1685 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1686 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1687 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1688 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1689 | else |
| 1690 | if test -n "$CC"; then |
| 1691 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1692 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1693 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1694 | for as_dir in $PATH |
| 1695 | do |
| 1696 | IFS=$as_save_IFS |
| 1697 | test -z "$as_dir" && as_dir=. |
| 1698 | for ac_exec_ext in '' $ac_executable_extensions; do |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1699 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1700 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1701 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1702 | break 2 |
| 1703 | fi |
| 1704 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1705 | done |
| 1706 | |
| 1707 | fi |
| 1708 | fi |
| 1709 | CC=$ac_cv_prog_CC |
| 1710 | if test -n "$CC"; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1711 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1712 | echo "${ECHO_T}$CC" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1713 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1714 | echo "$as_me:$LINENO: result: no" >&5 |
| 1715 | echo "${ECHO_T}no" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1716 | fi |
| 1717 | |
| 1718 | test -n "$CC" && break |
| 1719 | done |
| 1720 | fi |
| 1721 | if test -z "$CC"; then |
| 1722 | ac_ct_CC=$CC |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1723 | for ac_prog in cl |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1724 | do |
| 1725 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1726 | set dummy $ac_prog; ac_word=$2 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1727 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1728 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1729 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1730 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1731 | else |
| 1732 | if test -n "$ac_ct_CC"; then |
| 1733 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1734 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1735 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1736 | for as_dir in $PATH |
| 1737 | do |
| 1738 | IFS=$as_save_IFS |
| 1739 | test -z "$as_dir" && as_dir=. |
| 1740 | for ac_exec_ext in '' $ac_executable_extensions; do |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1741 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1742 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 1743 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1744 | break 2 |
| 1745 | fi |
| 1746 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1747 | done |
| 1748 | |
| 1749 | fi |
| 1750 | fi |
| 1751 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1752 | if test -n "$ac_ct_CC"; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1753 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1754 | echo "${ECHO_T}$ac_ct_CC" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1755 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1756 | echo "$as_me:$LINENO: result: no" >&5 |
| 1757 | echo "${ECHO_T}no" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1758 | fi |
| 1759 | |
| 1760 | test -n "$ac_ct_CC" && break |
| 1761 | done |
| 1762 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1763 | CC=$ac_ct_CC |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1764 | fi |
| 1765 | |
| 1766 | fi |
| 1767 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1768 | |
| 1769 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 1770 | See \`config.log' for more details." >&5 |
| 1771 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 1772 | See \`config.log' for more details." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1773 | { (exit 1); exit 1; }; } |
| 1774 | |
| 1775 | # Provide some information about the compiler. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1776 | echo "$as_me:$LINENO:" \ |
| 1777 | "checking for C compiler version" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1778 | ac_compiler=`set X $ac_compile; echo $2` |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1779 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 1780 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1781 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1783 | (exit $ac_status); } |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1784 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 1785 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1786 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1788 | (exit $ac_status); } |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1789 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 1790 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1791 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1793 | (exit $ac_status); } |
| 1794 | |
| 1795 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1796 | /* confdefs.h. */ |
| 1797 | _ACEOF |
| 1798 | cat confdefs.h >>conftest.$ac_ext |
| 1799 | cat >>conftest.$ac_ext <<_ACEOF |
| 1800 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1801 | |
| 1802 | int |
| 1803 | main () |
| 1804 | { |
| 1805 | |
| 1806 | ; |
| 1807 | return 0; |
| 1808 | } |
| 1809 | _ACEOF |
| 1810 | ac_clean_files_save=$ac_clean_files |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1811 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1812 | # Try to create an executable without -o first, disregard a.out. |
| 1813 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1814 | # of exeext. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1815 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 1816 | 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] | 1817 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1818 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1819 | (eval $ac_link_default) 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1820 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1822 | (exit $ac_status); }; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1823 | # Find the output, starting from the most likely. This scheme is |
| 1824 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1825 | # resort. |
| 1826 | |
| 1827 | # Be careful to initialize this variable, since it used to be cached. |
| 1828 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1829 | ac_cv_exeext= |
| 1830 | # b.out is created by i960 compilers. |
| 1831 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1832 | do |
| 1833 | test -f "$ac_file" || continue |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1834 | case $ac_file in |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1835 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
| 1836 | ;; |
| 1837 | conftest.$ac_ext ) |
| 1838 | # This is the source file. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1839 | ;; |
| 1840 | [ab].out ) |
| 1841 | # We found the default executable, but exeext='' is most |
| 1842 | # certainly right. |
| 1843 | break;; |
| 1844 | *.* ) |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1845 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1846 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 1847 | # but it would be cool to find out if it's true. Does anybody |
| 1848 | # maintain Libtool? --akim. |
| 1849 | export ac_cv_exeext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1850 | break;; |
| 1851 | * ) |
| 1852 | break;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1853 | esac |
| 1854 | done |
| 1855 | else |
| 1856 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1857 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1858 | |
| 1859 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 1860 | See \`config.log' for more details." >&5 |
| 1861 | echo "$as_me: error: C compiler cannot create executables |
| 1862 | See \`config.log' for more details." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1863 | { (exit 77); exit 77; }; } |
| 1864 | fi |
| 1865 | |
| 1866 | ac_exeext=$ac_cv_exeext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1867 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 1868 | echo "${ECHO_T}$ac_file" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1869 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1870 | # Check the compiler produces executables we can run. If not, either |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1871 | # the compiler is broken, or we cross compile. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1872 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 1873 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1874 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1875 | # If not cross compiling, check that we can run a simple program. |
| 1876 | if test "$cross_compiling" != yes; then |
| 1877 | if { ac_try='./$ac_file' |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1879 | (eval $ac_try) 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1880 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1882 | (exit $ac_status); }; }; then |
| 1883 | cross_compiling=no |
| 1884 | else |
| 1885 | if test "$cross_compiling" = maybe; then |
| 1886 | cross_compiling=yes |
| 1887 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1888 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 1889 | If you meant to cross compile, use \`--host'. |
| 1890 | See \`config.log' for more details." >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1891 | echo "$as_me: error: cannot run C compiled programs. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1892 | If you meant to cross compile, use \`--host'. |
| 1893 | See \`config.log' for more details." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1894 | { (exit 1); exit 1; }; } |
| 1895 | fi |
| 1896 | fi |
| 1897 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1898 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1899 | echo "${ECHO_T}yes" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1900 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1901 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1902 | ac_clean_files=$ac_clean_files_save |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1903 | # Check the compiler produces executables we can run. If not, either |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1904 | # the compiler is broken, or we cross compile. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1905 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 1906 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 1907 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 1908 | echo "${ECHO_T}$cross_compiling" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1909 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1910 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1911 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1912 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 1913 | (eval $ac_link) 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1914 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1916 | (exit $ac_status); }; then |
| 1917 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1918 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1919 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1920 | # `rm'. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1921 | for ac_file in conftest.exe conftest conftest.*; do |
| 1922 | test -f "$ac_file" || continue |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1923 | case $ac_file in |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1924 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1925 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1926 | export ac_cv_exeext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1927 | break;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1928 | * ) break;; |
| 1929 | esac |
| 1930 | done |
| 1931 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1932 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 1933 | See \`config.log' for more details." >&5 |
| 1934 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 1935 | See \`config.log' for more details." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1936 | { (exit 1); exit 1; }; } |
| 1937 | fi |
| 1938 | |
| 1939 | rm -f conftest$ac_cv_exeext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1940 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 1941 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1942 | |
| 1943 | rm -f conftest.$ac_ext |
| 1944 | EXEEXT=$ac_cv_exeext |
| 1945 | ac_exeext=$EXEEXT |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1946 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 1947 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1948 | if test "${ac_cv_objext+set}" = set; then |
| 1949 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1950 | else |
| 1951 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1952 | /* confdefs.h. */ |
| 1953 | _ACEOF |
| 1954 | cat confdefs.h >>conftest.$ac_ext |
| 1955 | cat >>conftest.$ac_ext <<_ACEOF |
| 1956 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1957 | |
| 1958 | int |
| 1959 | main () |
| 1960 | { |
| 1961 | |
| 1962 | ; |
| 1963 | return 0; |
| 1964 | } |
| 1965 | _ACEOF |
| 1966 | rm -f conftest.o conftest.obj |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1967 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 1968 | (eval $ac_compile) 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1969 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1971 | (exit $ac_status); }; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1972 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1973 | case $ac_file in |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1974 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1975 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 1976 | break;; |
| 1977 | esac |
| 1978 | done |
| 1979 | else |
| 1980 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1981 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1982 | |
| 1983 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 1984 | See \`config.log' for more details." >&5 |
| 1985 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 1986 | See \`config.log' for more details." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1987 | { (exit 1); exit 1; }; } |
| 1988 | fi |
| 1989 | |
| 1990 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 1991 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1992 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 1993 | echo "${ECHO_T}$ac_cv_objext" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1994 | OBJEXT=$ac_cv_objext |
| 1995 | ac_objext=$OBJEXT |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 1996 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 1997 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1998 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 1999 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2000 | else |
| 2001 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2002 | /* confdefs.h. */ |
| 2003 | _ACEOF |
| 2004 | cat confdefs.h >>conftest.$ac_ext |
| 2005 | cat >>conftest.$ac_ext <<_ACEOF |
| 2006 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2007 | |
| 2008 | int |
| 2009 | main () |
| 2010 | { |
| 2011 | #ifndef __GNUC__ |
| 2012 | choke me |
| 2013 | #endif |
| 2014 | |
| 2015 | ; |
| 2016 | return 0; |
| 2017 | } |
| 2018 | _ACEOF |
| 2019 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2020 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2021 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2022 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2023 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2024 | rm -f conftest.er1 |
| 2025 | cat conftest.err >&5 |
| 2026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2027 | (exit $ac_status); } && |
| 2028 | { ac_try='test -z "$ac_c_werror_flag" |
| 2029 | || test ! -s conftest.err' |
| 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 |
| 2034 | (exit $ac_status); }; } && |
| 2035 | { ac_try='test -s conftest.$ac_objext' |
| 2036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2037 | (eval $ac_try) 2>&5 |
| 2038 | ac_status=$? |
| 2039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2040 | (exit $ac_status); }; }; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2041 | ac_compiler_gnu=yes |
| 2042 | else |
| 2043 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2044 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2045 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2046 | ac_compiler_gnu=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2047 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2048 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2049 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2050 | |
| 2051 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2052 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2053 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2054 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2055 | ac_test_CFLAGS=${CFLAGS+set} |
| 2056 | ac_save_CFLAGS=$CFLAGS |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2057 | CFLAGS="-g" |
| 2058 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2059 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2060 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2061 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2062 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2063 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2064 | /* confdefs.h. */ |
| 2065 | _ACEOF |
| 2066 | cat confdefs.h >>conftest.$ac_ext |
| 2067 | cat >>conftest.$ac_ext <<_ACEOF |
| 2068 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2069 | |
| 2070 | int |
| 2071 | main () |
| 2072 | { |
| 2073 | |
| 2074 | ; |
| 2075 | return 0; |
| 2076 | } |
| 2077 | _ACEOF |
| 2078 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2079 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2080 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2081 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2082 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2083 | rm -f conftest.er1 |
| 2084 | cat conftest.err >&5 |
| 2085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2086 | (exit $ac_status); } && |
| 2087 | { ac_try='test -z "$ac_c_werror_flag" |
| 2088 | || test ! -s conftest.err' |
| 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 |
| 2093 | (exit $ac_status); }; } && |
| 2094 | { ac_try='test -s conftest.$ac_objext' |
| 2095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2096 | (eval $ac_try) 2>&5 |
| 2097 | ac_status=$? |
| 2098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2099 | (exit $ac_status); }; }; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2100 | ac_cv_prog_cc_g=yes |
| 2101 | else |
| 2102 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2103 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2104 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2105 | ac_cv_prog_cc_g=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2106 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2107 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2108 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2109 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2110 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2111 | if test "$ac_test_CFLAGS" = set; then |
| 2112 | CFLAGS=$ac_save_CFLAGS |
| 2113 | elif test $ac_cv_prog_cc_g = yes; then |
| 2114 | if test "$GCC" = yes; then |
| 2115 | CFLAGS="-g -O2" |
| 2116 | else |
| 2117 | CFLAGS="-g" |
| 2118 | fi |
| 2119 | else |
| 2120 | if test "$GCC" = yes; then |
| 2121 | CFLAGS="-O2" |
| 2122 | else |
| 2123 | CFLAGS= |
| 2124 | fi |
| 2125 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2126 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2127 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2128 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2129 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2130 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2131 | ac_cv_prog_cc_stdc=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2132 | ac_save_CC=$CC |
| 2133 | cat >conftest.$ac_ext <<_ACEOF |
| 2134 | /* confdefs.h. */ |
| 2135 | _ACEOF |
| 2136 | cat confdefs.h >>conftest.$ac_ext |
| 2137 | cat >>conftest.$ac_ext <<_ACEOF |
| 2138 | /* end confdefs.h. */ |
| 2139 | #include <stdarg.h> |
| 2140 | #include <stdio.h> |
| 2141 | #include <sys/types.h> |
| 2142 | #include <sys/stat.h> |
| 2143 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2144 | struct buf { int x; }; |
| 2145 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2146 | static char *e (p, i) |
| 2147 | char **p; |
| 2148 | int i; |
| 2149 | { |
| 2150 | return p[i]; |
| 2151 | } |
| 2152 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2153 | { |
| 2154 | char *s; |
| 2155 | va_list v; |
| 2156 | va_start (v,p); |
| 2157 | s = g (p, va_arg (v,int)); |
| 2158 | va_end (v); |
| 2159 | return s; |
| 2160 | } |
| 2161 | |
| 2162 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2163 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2164 | These don't provoke an error unfortunately, instead are silently treated |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2165 | as 'x'. The following induces an error, until -std1 is added to get |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2166 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2167 | array size at least. It's necessary to write '\x00'==0 to get something |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2168 | that's true only with -std1. */ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2169 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2170 | |
| 2171 | int test (int i, double x); |
| 2172 | struct s1 {int (*f) (int a);}; |
| 2173 | struct s2 {int (*f) (double a);}; |
| 2174 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2175 | int argc; |
| 2176 | char **argv; |
| 2177 | int |
| 2178 | main () |
| 2179 | { |
| 2180 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2181 | ; |
| 2182 | return 0; |
| 2183 | } |
| 2184 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2185 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2186 | # breaks some systems' header files. |
| 2187 | # AIX -qlanglvl=ansi |
| 2188 | # Ultrix and OSF/1 -std1 |
| 2189 | # HP-UX 10.20 and later -Ae |
| 2190 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2191 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2192 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2193 | do |
| 2194 | CC="$ac_save_CC $ac_arg" |
| 2195 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2196 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2197 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2198 | ac_status=$? |
| 2199 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2200 | rm -f conftest.er1 |
| 2201 | cat conftest.err >&5 |
| 2202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2203 | (exit $ac_status); } && |
| 2204 | { ac_try='test -z "$ac_c_werror_flag" |
| 2205 | || test ! -s conftest.err' |
| 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); }; } && |
| 2211 | { ac_try='test -s conftest.$ac_objext' |
| 2212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2213 | (eval $ac_try) 2>&5 |
| 2214 | ac_status=$? |
| 2215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2216 | (exit $ac_status); }; }; then |
| 2217 | ac_cv_prog_cc_stdc=$ac_arg |
| 2218 | break |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2219 | else |
| 2220 | echo "$as_me: failed program was:" >&5 |
| 2221 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2222 | |
| 2223 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2224 | rm -f conftest.err conftest.$ac_objext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2225 | done |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2226 | rm -f conftest.$ac_ext conftest.$ac_objext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2227 | CC=$ac_save_CC |
| 2228 | |
| 2229 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2230 | |
| 2231 | case "x$ac_cv_prog_cc_stdc" in |
| 2232 | x|xno) |
| 2233 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2234 | echo "${ECHO_T}none needed" >&6 ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2235 | *) |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2236 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2237 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2238 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2239 | esac |
| 2240 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2241 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2242 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2243 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2244 | # the declaration of exit, since it's the most demanding environment. |
| 2245 | cat >conftest.$ac_ext <<_ACEOF |
| 2246 | #ifndef __cplusplus |
| 2247 | choke me |
| 2248 | #endif |
| 2249 | _ACEOF |
| 2250 | rm -f conftest.$ac_objext |
| 2251 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2252 | (eval $ac_compile) 2>conftest.er1 |
| 2253 | ac_status=$? |
| 2254 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2255 | rm -f conftest.er1 |
| 2256 | cat conftest.err >&5 |
| 2257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2258 | (exit $ac_status); } && |
| 2259 | { ac_try='test -z "$ac_c_werror_flag" |
| 2260 | || test ! -s conftest.err' |
| 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 |
| 2265 | (exit $ac_status); }; } && |
| 2266 | { ac_try='test -s conftest.$ac_objext' |
| 2267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2268 | (eval $ac_try) 2>&5 |
| 2269 | ac_status=$? |
| 2270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2271 | (exit $ac_status); }; }; then |
| 2272 | for ac_declaration in \ |
| 2273 | '' \ |
| 2274 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2275 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2276 | 'extern "C" void exit (int) throw ();' \ |
| 2277 | 'extern "C" void exit (int);' \ |
| 2278 | 'void exit (int);' |
| 2279 | do |
| 2280 | cat >conftest.$ac_ext <<_ACEOF |
| 2281 | /* confdefs.h. */ |
| 2282 | _ACEOF |
| 2283 | cat confdefs.h >>conftest.$ac_ext |
| 2284 | cat >>conftest.$ac_ext <<_ACEOF |
| 2285 | /* end confdefs.h. */ |
| 2286 | $ac_declaration |
| 2287 | #include <stdlib.h> |
| 2288 | int |
| 2289 | main () |
| 2290 | { |
| 2291 | exit (42); |
| 2292 | ; |
| 2293 | return 0; |
| 2294 | } |
| 2295 | _ACEOF |
| 2296 | rm -f conftest.$ac_objext |
| 2297 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2298 | (eval $ac_compile) 2>conftest.er1 |
| 2299 | ac_status=$? |
| 2300 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2301 | rm -f conftest.er1 |
| 2302 | cat conftest.err >&5 |
| 2303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2304 | (exit $ac_status); } && |
| 2305 | { ac_try='test -z "$ac_c_werror_flag" |
| 2306 | || test ! -s conftest.err' |
| 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 |
| 2311 | (exit $ac_status); }; } && |
| 2312 | { ac_try='test -s conftest.$ac_objext' |
| 2313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2314 | (eval $ac_try) 2>&5 |
| 2315 | ac_status=$? |
| 2316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2317 | (exit $ac_status); }; }; then |
| 2318 | : |
| 2319 | else |
| 2320 | echo "$as_me: failed program was:" >&5 |
| 2321 | sed 's/^/| /' conftest.$ac_ext >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2322 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2323 | continue |
| 2324 | fi |
| 2325 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2326 | cat >conftest.$ac_ext <<_ACEOF |
| 2327 | /* confdefs.h. */ |
| 2328 | _ACEOF |
| 2329 | cat confdefs.h >>conftest.$ac_ext |
| 2330 | cat >>conftest.$ac_ext <<_ACEOF |
| 2331 | /* end confdefs.h. */ |
| 2332 | $ac_declaration |
| 2333 | int |
| 2334 | main () |
| 2335 | { |
| 2336 | exit (42); |
| 2337 | ; |
| 2338 | return 0; |
| 2339 | } |
| 2340 | _ACEOF |
| 2341 | rm -f conftest.$ac_objext |
| 2342 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2343 | (eval $ac_compile) 2>conftest.er1 |
| 2344 | ac_status=$? |
| 2345 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2346 | rm -f conftest.er1 |
| 2347 | cat conftest.err >&5 |
| 2348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2349 | (exit $ac_status); } && |
| 2350 | { ac_try='test -z "$ac_c_werror_flag" |
| 2351 | || test ! -s conftest.err' |
| 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 |
| 2356 | (exit $ac_status); }; } && |
| 2357 | { ac_try='test -s conftest.$ac_objext' |
| 2358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2359 | (eval $ac_try) 2>&5 |
| 2360 | ac_status=$? |
| 2361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2362 | (exit $ac_status); }; }; then |
| 2363 | break |
| 2364 | else |
| 2365 | echo "$as_me: failed program was:" >&5 |
| 2366 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2367 | |
| 2368 | fi |
| 2369 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2370 | done |
| 2371 | rm -f conftest* |
| 2372 | if test -n "$ac_declaration"; then |
| 2373 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2374 | echo $ac_declaration >>confdefs.h |
| 2375 | echo '#endif' >>confdefs.h |
| 2376 | fi |
| 2377 | |
| 2378 | else |
| 2379 | echo "$as_me: failed program was:" >&5 |
| 2380 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2381 | |
| 2382 | fi |
| 2383 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2384 | ac_ext=c |
| 2385 | ac_cpp='$CPP $CPPFLAGS' |
| 2386 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2387 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2388 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2389 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2390 | ac_ext=cc |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2391 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 2392 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2393 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2394 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2395 | if test -n "$ac_tool_prefix"; then |
| 2396 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2397 | do |
| 2398 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2399 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2400 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2401 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2402 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 2403 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2404 | else |
| 2405 | if test -n "$CXX"; then |
| 2406 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 2407 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2408 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2409 | for as_dir in $PATH |
| 2410 | do |
| 2411 | IFS=$as_save_IFS |
| 2412 | test -z "$as_dir" && as_dir=. |
| 2413 | for ac_exec_ext in '' $ac_executable_extensions; do |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2414 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2415 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 2416 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2417 | break 2 |
| 2418 | fi |
| 2419 | done |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2420 | done |
| 2421 | |
| 2422 | fi |
| 2423 | fi |
| 2424 | CXX=$ac_cv_prog_CXX |
| 2425 | if test -n "$CXX"; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2426 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 2427 | echo "${ECHO_T}$CXX" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2428 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2429 | echo "$as_me:$LINENO: result: no" >&5 |
| 2430 | echo "${ECHO_T}no" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2431 | fi |
| 2432 | |
| 2433 | test -n "$CXX" && break |
| 2434 | done |
| 2435 | fi |
| 2436 | if test -z "$CXX"; then |
| 2437 | ac_ct_CXX=$CXX |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2438 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2439 | do |
| 2440 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2441 | set dummy $ac_prog; ac_word=$2 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2442 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2443 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2444 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 2445 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2446 | else |
| 2447 | if test -n "$ac_ct_CXX"; then |
| 2448 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 2449 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2450 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2451 | for as_dir in $PATH |
| 2452 | do |
| 2453 | IFS=$as_save_IFS |
| 2454 | test -z "$as_dir" && as_dir=. |
| 2455 | for ac_exec_ext in '' $ac_executable_extensions; do |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2456 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2457 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 2458 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2459 | break 2 |
| 2460 | fi |
| 2461 | done |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2462 | done |
| 2463 | |
| 2464 | fi |
| 2465 | fi |
| 2466 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 2467 | if test -n "$ac_ct_CXX"; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2468 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 2469 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2470 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2471 | echo "$as_me:$LINENO: result: no" >&5 |
| 2472 | echo "${ECHO_T}no" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2473 | fi |
| 2474 | |
| 2475 | test -n "$ac_ct_CXX" && break |
| 2476 | done |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2477 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2478 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2479 | CXX=$ac_ct_CXX |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2480 | fi |
| 2481 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2482 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2483 | # Provide some information about the compiler. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2484 | echo "$as_me:$LINENO:" \ |
| 2485 | "checking for C++ compiler version" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2486 | ac_compiler=`set X $ac_compile; echo $2` |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2487 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 2488 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2489 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2491 | (exit $ac_status); } |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2492 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 2493 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2494 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2496 | (exit $ac_status); } |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2497 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2498 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2499 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2501 | (exit $ac_status); } |
| 2502 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2503 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 2504 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2505 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 2506 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2507 | else |
| 2508 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2509 | /* confdefs.h. */ |
| 2510 | _ACEOF |
| 2511 | cat confdefs.h >>conftest.$ac_ext |
| 2512 | cat >>conftest.$ac_ext <<_ACEOF |
| 2513 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2514 | |
| 2515 | int |
| 2516 | main () |
| 2517 | { |
| 2518 | #ifndef __GNUC__ |
| 2519 | choke me |
| 2520 | #endif |
| 2521 | |
| 2522 | ; |
| 2523 | return 0; |
| 2524 | } |
| 2525 | _ACEOF |
| 2526 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2527 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2528 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2529 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2530 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2531 | rm -f conftest.er1 |
| 2532 | cat conftest.err >&5 |
| 2533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2534 | (exit $ac_status); } && |
| 2535 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 2536 | || test ! -s conftest.err' |
| 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 |
| 2541 | (exit $ac_status); }; } && |
| 2542 | { ac_try='test -s conftest.$ac_objext' |
| 2543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2544 | (eval $ac_try) 2>&5 |
| 2545 | ac_status=$? |
| 2546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2547 | (exit $ac_status); }; }; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2548 | ac_compiler_gnu=yes |
| 2549 | else |
| 2550 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2551 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2552 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2553 | ac_compiler_gnu=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2554 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2555 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2556 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 2557 | |
| 2558 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2559 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 2560 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2561 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 2562 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 2563 | ac_save_CXXFLAGS=$CXXFLAGS |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2564 | CXXFLAGS="-g" |
| 2565 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 2566 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2567 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 2568 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2569 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2570 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2571 | /* confdefs.h. */ |
| 2572 | _ACEOF |
| 2573 | cat confdefs.h >>conftest.$ac_ext |
| 2574 | cat >>conftest.$ac_ext <<_ACEOF |
| 2575 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2576 | |
| 2577 | int |
| 2578 | main () |
| 2579 | { |
| 2580 | |
| 2581 | ; |
| 2582 | return 0; |
| 2583 | } |
| 2584 | _ACEOF |
| 2585 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2586 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2587 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2588 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2589 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2590 | rm -f conftest.er1 |
| 2591 | cat conftest.err >&5 |
| 2592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2593 | (exit $ac_status); } && |
| 2594 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 2595 | || test ! -s conftest.err' |
| 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 |
| 2600 | (exit $ac_status); }; } && |
| 2601 | { ac_try='test -s conftest.$ac_objext' |
| 2602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2603 | (eval $ac_try) 2>&5 |
| 2604 | ac_status=$? |
| 2605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2606 | (exit $ac_status); }; }; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2607 | ac_cv_prog_cxx_g=yes |
| 2608 | else |
| 2609 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2610 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2611 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2612 | ac_cv_prog_cxx_g=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2613 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2614 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2615 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2616 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 2617 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2618 | if test "$ac_test_CXXFLAGS" = set; then |
| 2619 | CXXFLAGS=$ac_save_CXXFLAGS |
| 2620 | elif test $ac_cv_prog_cxx_g = yes; then |
| 2621 | if test "$GXX" = yes; then |
| 2622 | CXXFLAGS="-g -O2" |
| 2623 | else |
| 2624 | CXXFLAGS="-g" |
| 2625 | fi |
| 2626 | else |
| 2627 | if test "$GXX" = yes; then |
| 2628 | CXXFLAGS="-O2" |
| 2629 | else |
| 2630 | CXXFLAGS= |
| 2631 | fi |
| 2632 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2633 | for ac_declaration in \ |
| 2634 | '' \ |
| 2635 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2636 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2637 | 'extern "C" void exit (int) throw ();' \ |
| 2638 | 'extern "C" void exit (int);' \ |
| 2639 | 'void exit (int);' |
| 2640 | do |
| 2641 | cat >conftest.$ac_ext <<_ACEOF |
| 2642 | /* confdefs.h. */ |
| 2643 | _ACEOF |
| 2644 | cat confdefs.h >>conftest.$ac_ext |
| 2645 | cat >>conftest.$ac_ext <<_ACEOF |
| 2646 | /* end confdefs.h. */ |
| 2647 | $ac_declaration |
| 2648 | #include <stdlib.h> |
| 2649 | int |
| 2650 | main () |
| 2651 | { |
| 2652 | exit (42); |
| 2653 | ; |
| 2654 | return 0; |
| 2655 | } |
| 2656 | _ACEOF |
| 2657 | rm -f conftest.$ac_objext |
| 2658 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2659 | (eval $ac_compile) 2>conftest.er1 |
| 2660 | ac_status=$? |
| 2661 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2662 | rm -f conftest.er1 |
| 2663 | cat conftest.err >&5 |
| 2664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2665 | (exit $ac_status); } && |
| 2666 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 2667 | || test ! -s conftest.err' |
| 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 |
| 2672 | (exit $ac_status); }; } && |
| 2673 | { ac_try='test -s conftest.$ac_objext' |
| 2674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2675 | (eval $ac_try) 2>&5 |
| 2676 | ac_status=$? |
| 2677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2678 | (exit $ac_status); }; }; then |
| 2679 | : |
| 2680 | else |
| 2681 | echo "$as_me: failed program was:" >&5 |
| 2682 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2683 | |
| 2684 | continue |
| 2685 | fi |
| 2686 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2687 | cat >conftest.$ac_ext <<_ACEOF |
| 2688 | /* confdefs.h. */ |
| 2689 | _ACEOF |
| 2690 | cat confdefs.h >>conftest.$ac_ext |
| 2691 | cat >>conftest.$ac_ext <<_ACEOF |
| 2692 | /* end confdefs.h. */ |
| 2693 | $ac_declaration |
| 2694 | int |
| 2695 | main () |
| 2696 | { |
| 2697 | exit (42); |
| 2698 | ; |
| 2699 | return 0; |
| 2700 | } |
| 2701 | _ACEOF |
| 2702 | rm -f conftest.$ac_objext |
| 2703 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2704 | (eval $ac_compile) 2>conftest.er1 |
| 2705 | ac_status=$? |
| 2706 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2707 | rm -f conftest.er1 |
| 2708 | cat conftest.err >&5 |
| 2709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2710 | (exit $ac_status); } && |
| 2711 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 2712 | || test ! -s conftest.err' |
| 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 |
| 2717 | (exit $ac_status); }; } && |
| 2718 | { ac_try='test -s conftest.$ac_objext' |
| 2719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2720 | (eval $ac_try) 2>&5 |
| 2721 | ac_status=$? |
| 2722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2723 | (exit $ac_status); }; }; then |
| 2724 | break |
| 2725 | else |
| 2726 | echo "$as_me: failed program was:" >&5 |
| 2727 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2728 | |
| 2729 | fi |
| 2730 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2731 | done |
| 2732 | rm -f conftest* |
| 2733 | if test -n "$ac_declaration"; then |
| 2734 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2735 | echo $ac_declaration >>confdefs.h |
| 2736 | echo '#endif' >>confdefs.h |
| 2737 | fi |
| 2738 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +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 | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2745 | ac_ext=c |
| 2746 | ac_cpp='$CPP $CPPFLAGS' |
| 2747 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2748 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2749 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2750 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2751 | |
| 2752 | |
Benny Prijono | 53847a3 | 2007-09-24 16:10:13 +0000 | [diff] [blame] | 2753 | case $target in |
| 2754 | *mingw* | *cygw* | *win32* | *w32* ) |
| 2755 | ac_pjdir=`pwd -W` |
| 2756 | ;; |
| 2757 | *) |
| 2758 | ac_pjdir=`pwd` |
| 2759 | ;; |
| 2760 | esac |
Benny Prijono | 1248311 | 2007-03-12 10:44:38 +0000 | [diff] [blame] | 2761 | |
| 2762 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2763 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2764 | echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 2765 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2766 | if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then |
| 2767 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2768 | else |
| 2769 | ac_check_lib_save_LIBS=$LIBS |
| 2770 | LIBS="-lpthread $LIBS" |
| 2771 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2772 | /* confdefs.h. */ |
| 2773 | _ACEOF |
| 2774 | cat confdefs.h >>conftest.$ac_ext |
| 2775 | cat >>conftest.$ac_ext <<_ACEOF |
| 2776 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2777 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2778 | /* Override any gcc2 internal prototype to avoid an error. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2779 | #ifdef __cplusplus |
| 2780 | extern "C" |
| 2781 | #endif |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2782 | /* We use char because int might match the return type of a gcc2 |
| 2783 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2784 | char pthread_create (); |
| 2785 | int |
| 2786 | main () |
| 2787 | { |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2788 | pthread_create (); |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2789 | ; |
| 2790 | return 0; |
| 2791 | } |
| 2792 | _ACEOF |
| 2793 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2794 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2795 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2796 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2797 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2798 | rm -f conftest.er1 |
| 2799 | cat conftest.err >&5 |
| 2800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2801 | (exit $ac_status); } && |
| 2802 | { ac_try='test -z "$ac_c_werror_flag" |
| 2803 | || test ! -s conftest.err' |
| 2804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2805 | (eval $ac_try) 2>&5 |
| 2806 | ac_status=$? |
| 2807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2808 | (exit $ac_status); }; } && |
| 2809 | { ac_try='test -s conftest$ac_exeext' |
| 2810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2811 | (eval $ac_try) 2>&5 |
| 2812 | ac_status=$? |
| 2813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2814 | (exit $ac_status); }; }; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2815 | ac_cv_lib_pthread_pthread_create=yes |
| 2816 | else |
| 2817 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2818 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2819 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2820 | ac_cv_lib_pthread_pthread_create=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2821 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2822 | rm -f conftest.err conftest.$ac_objext \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2823 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2824 | LIBS=$ac_check_lib_save_LIBS |
| 2825 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2826 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 |
| 2827 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2828 | if test $ac_cv_lib_pthread_pthread_create = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2829 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2830 | #define HAVE_LIBPTHREAD 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2831 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2832 | |
| 2833 | LIBS="-lpthread $LIBS" |
| 2834 | |
| 2835 | fi |
| 2836 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2837 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2838 | echo "$as_me:$LINENO: checking for puts in -lwsock32" >&5 |
| 2839 | echo $ECHO_N "checking for puts in -lwsock32... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2840 | if test "${ac_cv_lib_wsock32_puts+set}" = set; then |
| 2841 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2842 | else |
| 2843 | ac_check_lib_save_LIBS=$LIBS |
| 2844 | LIBS="-lwsock32 $LIBS" |
| 2845 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2846 | /* confdefs.h. */ |
| 2847 | _ACEOF |
| 2848 | cat confdefs.h >>conftest.$ac_ext |
| 2849 | cat >>conftest.$ac_ext <<_ACEOF |
| 2850 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2851 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2852 | /* Override any gcc2 internal prototype to avoid an error. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2853 | #ifdef __cplusplus |
| 2854 | extern "C" |
| 2855 | #endif |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2856 | /* We use char because int might match the return type of a gcc2 |
| 2857 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2858 | char puts (); |
| 2859 | int |
| 2860 | main () |
| 2861 | { |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2862 | puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2863 | ; |
| 2864 | return 0; |
| 2865 | } |
| 2866 | _ACEOF |
| 2867 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2868 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2869 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2870 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2871 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2872 | rm -f conftest.er1 |
| 2873 | cat conftest.err >&5 |
| 2874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2875 | (exit $ac_status); } && |
| 2876 | { ac_try='test -z "$ac_c_werror_flag" |
| 2877 | || test ! -s conftest.err' |
| 2878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2879 | (eval $ac_try) 2>&5 |
| 2880 | ac_status=$? |
| 2881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2882 | (exit $ac_status); }; } && |
| 2883 | { ac_try='test -s conftest$ac_exeext' |
| 2884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2885 | (eval $ac_try) 2>&5 |
| 2886 | ac_status=$? |
| 2887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2888 | (exit $ac_status); }; }; then |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2889 | ac_cv_lib_wsock32_puts=yes |
| 2890 | else |
| 2891 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2892 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2893 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2894 | ac_cv_lib_wsock32_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2895 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2896 | rm -f conftest.err conftest.$ac_objext \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2897 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2898 | LIBS=$ac_check_lib_save_LIBS |
| 2899 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2900 | echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_puts" >&5 |
| 2901 | echo "${ECHO_T}$ac_cv_lib_wsock32_puts" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2902 | if test $ac_cv_lib_wsock32_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2903 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2904 | #define HAVE_LIBWSOCK32 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2905 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2906 | |
| 2907 | LIBS="-lwsock32 $LIBS" |
| 2908 | |
| 2909 | fi |
| 2910 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2911 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2912 | echo "$as_me:$LINENO: checking for puts in -lws2_32" >&5 |
| 2913 | echo $ECHO_N "checking for puts in -lws2_32... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2914 | if test "${ac_cv_lib_ws2_32_puts+set}" = set; then |
| 2915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2916 | else |
| 2917 | ac_check_lib_save_LIBS=$LIBS |
| 2918 | LIBS="-lws2_32 $LIBS" |
| 2919 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2920 | /* confdefs.h. */ |
| 2921 | _ACEOF |
| 2922 | cat confdefs.h >>conftest.$ac_ext |
| 2923 | cat >>conftest.$ac_ext <<_ACEOF |
| 2924 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2925 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2926 | /* Override any gcc2 internal prototype to avoid an error. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2927 | #ifdef __cplusplus |
| 2928 | extern "C" |
| 2929 | #endif |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2930 | /* We use char because int might match the return type of a gcc2 |
| 2931 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2932 | char puts (); |
| 2933 | int |
| 2934 | main () |
| 2935 | { |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2936 | puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2937 | ; |
| 2938 | return 0; |
| 2939 | } |
| 2940 | _ACEOF |
| 2941 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2942 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2943 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2944 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2945 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2946 | rm -f conftest.er1 |
| 2947 | cat conftest.err >&5 |
| 2948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2949 | (exit $ac_status); } && |
| 2950 | { ac_try='test -z "$ac_c_werror_flag" |
| 2951 | || test ! -s conftest.err' |
| 2952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2953 | (eval $ac_try) 2>&5 |
| 2954 | ac_status=$? |
| 2955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2956 | (exit $ac_status); }; } && |
| 2957 | { ac_try='test -s conftest$ac_exeext' |
| 2958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2959 | (eval $ac_try) 2>&5 |
| 2960 | ac_status=$? |
| 2961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2962 | (exit $ac_status); }; }; then |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2963 | ac_cv_lib_ws2_32_puts=yes |
| 2964 | else |
| 2965 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2966 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2967 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2968 | ac_cv_lib_ws2_32_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2969 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2970 | rm -f conftest.err conftest.$ac_objext \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2971 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2972 | LIBS=$ac_check_lib_save_LIBS |
| 2973 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2974 | echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_puts" >&5 |
| 2975 | echo "${ECHO_T}$ac_cv_lib_ws2_32_puts" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2976 | if test $ac_cv_lib_ws2_32_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2977 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2978 | #define HAVE_LIBWS2_32 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2979 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2980 | |
| 2981 | LIBS="-lws2_32 $LIBS" |
| 2982 | |
| 2983 | fi |
| 2984 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2985 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 2986 | echo "$as_me:$LINENO: checking for puts in -lole32" >&5 |
| 2987 | echo $ECHO_N "checking for puts in -lole32... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2988 | if test "${ac_cv_lib_ole32_puts+set}" = set; then |
| 2989 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2990 | else |
| 2991 | ac_check_lib_save_LIBS=$LIBS |
| 2992 | LIBS="-lole32 $LIBS" |
| 2993 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2994 | /* confdefs.h. */ |
| 2995 | _ACEOF |
| 2996 | cat confdefs.h >>conftest.$ac_ext |
| 2997 | cat >>conftest.$ac_ext <<_ACEOF |
| 2998 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2999 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3000 | /* Override any gcc2 internal prototype to avoid an error. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3001 | #ifdef __cplusplus |
| 3002 | extern "C" |
| 3003 | #endif |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3004 | /* We use char because int might match the return type of a gcc2 |
| 3005 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3006 | char puts (); |
| 3007 | int |
| 3008 | main () |
| 3009 | { |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3010 | puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3011 | ; |
| 3012 | return 0; |
| 3013 | } |
| 3014 | _ACEOF |
| 3015 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3016 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3017 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3018 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3019 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3020 | rm -f conftest.er1 |
| 3021 | cat conftest.err >&5 |
| 3022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3023 | (exit $ac_status); } && |
| 3024 | { ac_try='test -z "$ac_c_werror_flag" |
| 3025 | || test ! -s conftest.err' |
| 3026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3027 | (eval $ac_try) 2>&5 |
| 3028 | ac_status=$? |
| 3029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3030 | (exit $ac_status); }; } && |
| 3031 | { ac_try='test -s conftest$ac_exeext' |
| 3032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3033 | (eval $ac_try) 2>&5 |
| 3034 | ac_status=$? |
| 3035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3036 | (exit $ac_status); }; }; then |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3037 | ac_cv_lib_ole32_puts=yes |
| 3038 | else |
| 3039 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3040 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3041 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3042 | ac_cv_lib_ole32_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3043 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3044 | rm -f conftest.err conftest.$ac_objext \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3045 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3046 | LIBS=$ac_check_lib_save_LIBS |
| 3047 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3048 | echo "$as_me:$LINENO: result: $ac_cv_lib_ole32_puts" >&5 |
| 3049 | echo "${ECHO_T}$ac_cv_lib_ole32_puts" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3050 | if test $ac_cv_lib_ole32_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3051 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3052 | #define HAVE_LIBOLE32 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3053 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3054 | |
| 3055 | LIBS="-lole32 $LIBS" |
| 3056 | |
| 3057 | fi |
| 3058 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3059 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3060 | echo "$as_me:$LINENO: checking for puts in -lwinmm" >&5 |
| 3061 | echo $ECHO_N "checking for puts in -lwinmm... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3062 | if test "${ac_cv_lib_winmm_puts+set}" = set; then |
| 3063 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3064 | else |
| 3065 | ac_check_lib_save_LIBS=$LIBS |
| 3066 | LIBS="-lwinmm $LIBS" |
| 3067 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3068 | /* confdefs.h. */ |
| 3069 | _ACEOF |
| 3070 | cat confdefs.h >>conftest.$ac_ext |
| 3071 | cat >>conftest.$ac_ext <<_ACEOF |
| 3072 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3073 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3074 | /* Override any gcc2 internal prototype to avoid an error. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3075 | #ifdef __cplusplus |
| 3076 | extern "C" |
| 3077 | #endif |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3078 | /* We use char because int might match the return type of a gcc2 |
| 3079 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3080 | char puts (); |
| 3081 | int |
| 3082 | main () |
| 3083 | { |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3084 | puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3085 | ; |
| 3086 | return 0; |
| 3087 | } |
| 3088 | _ACEOF |
| 3089 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3090 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3091 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3092 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3093 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3094 | rm -f conftest.er1 |
| 3095 | cat conftest.err >&5 |
| 3096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3097 | (exit $ac_status); } && |
| 3098 | { ac_try='test -z "$ac_c_werror_flag" |
| 3099 | || test ! -s conftest.err' |
| 3100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3101 | (eval $ac_try) 2>&5 |
| 3102 | ac_status=$? |
| 3103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3104 | (exit $ac_status); }; } && |
| 3105 | { ac_try='test -s conftest$ac_exeext' |
| 3106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3107 | (eval $ac_try) 2>&5 |
| 3108 | ac_status=$? |
| 3109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3110 | (exit $ac_status); }; }; then |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3111 | ac_cv_lib_winmm_puts=yes |
| 3112 | else |
| 3113 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3114 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3115 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3116 | ac_cv_lib_winmm_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3117 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3118 | rm -f conftest.err conftest.$ac_objext \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3119 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3120 | LIBS=$ac_check_lib_save_LIBS |
| 3121 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3122 | echo "$as_me:$LINENO: result: $ac_cv_lib_winmm_puts" >&5 |
| 3123 | echo "${ECHO_T}$ac_cv_lib_winmm_puts" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3124 | if test $ac_cv_lib_winmm_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3125 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3126 | #define HAVE_LIBWINMM 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3127 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3128 | |
| 3129 | LIBS="-lwinmm $LIBS" |
| 3130 | |
| 3131 | fi |
| 3132 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3133 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3134 | echo "$as_me:$LINENO: checking for puts in -lsocket" >&5 |
| 3135 | echo $ECHO_N "checking for puts in -lsocket... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3136 | if test "${ac_cv_lib_socket_puts+set}" = set; then |
| 3137 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3138 | else |
| 3139 | ac_check_lib_save_LIBS=$LIBS |
| 3140 | LIBS="-lsocket $LIBS" |
| 3141 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3142 | /* confdefs.h. */ |
| 3143 | _ACEOF |
| 3144 | cat confdefs.h >>conftest.$ac_ext |
| 3145 | cat >>conftest.$ac_ext <<_ACEOF |
| 3146 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3147 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3148 | /* Override any gcc2 internal prototype to avoid an error. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3149 | #ifdef __cplusplus |
| 3150 | extern "C" |
| 3151 | #endif |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3152 | /* We use char because int might match the return type of a gcc2 |
| 3153 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3154 | char puts (); |
| 3155 | int |
| 3156 | main () |
| 3157 | { |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3158 | puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3159 | ; |
| 3160 | return 0; |
| 3161 | } |
| 3162 | _ACEOF |
| 3163 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3164 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3165 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3166 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3167 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3168 | rm -f conftest.er1 |
| 3169 | cat conftest.err >&5 |
| 3170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3171 | (exit $ac_status); } && |
| 3172 | { ac_try='test -z "$ac_c_werror_flag" |
| 3173 | || test ! -s conftest.err' |
| 3174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3175 | (eval $ac_try) 2>&5 |
| 3176 | ac_status=$? |
| 3177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3178 | (exit $ac_status); }; } && |
| 3179 | { ac_try='test -s conftest$ac_exeext' |
| 3180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3181 | (eval $ac_try) 2>&5 |
| 3182 | ac_status=$? |
| 3183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3184 | (exit $ac_status); }; }; then |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3185 | ac_cv_lib_socket_puts=yes |
| 3186 | else |
| 3187 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3188 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3189 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3190 | ac_cv_lib_socket_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3191 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3192 | rm -f conftest.err conftest.$ac_objext \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3193 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3194 | LIBS=$ac_check_lib_save_LIBS |
| 3195 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3196 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_puts" >&5 |
| 3197 | echo "${ECHO_T}$ac_cv_lib_socket_puts" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3198 | if test $ac_cv_lib_socket_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3199 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3200 | #define HAVE_LIBSOCKET 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3201 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3202 | |
| 3203 | LIBS="-lsocket $LIBS" |
| 3204 | |
| 3205 | fi |
| 3206 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3207 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3208 | echo "$as_me:$LINENO: checking for puts in -lrt" >&5 |
| 3209 | echo $ECHO_N "checking for puts in -lrt... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3210 | if test "${ac_cv_lib_rt_puts+set}" = set; then |
| 3211 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3212 | else |
| 3213 | ac_check_lib_save_LIBS=$LIBS |
| 3214 | LIBS="-lrt $LIBS" |
| 3215 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3216 | /* confdefs.h. */ |
| 3217 | _ACEOF |
| 3218 | cat confdefs.h >>conftest.$ac_ext |
| 3219 | cat >>conftest.$ac_ext <<_ACEOF |
| 3220 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3221 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3222 | /* Override any gcc2 internal prototype to avoid an error. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3223 | #ifdef __cplusplus |
| 3224 | extern "C" |
| 3225 | #endif |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3226 | /* We use char because int might match the return type of a gcc2 |
| 3227 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3228 | char puts (); |
| 3229 | int |
| 3230 | main () |
| 3231 | { |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3232 | puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3233 | ; |
| 3234 | return 0; |
| 3235 | } |
| 3236 | _ACEOF |
| 3237 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3238 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3239 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3240 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3241 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3242 | rm -f conftest.er1 |
| 3243 | cat conftest.err >&5 |
| 3244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3245 | (exit $ac_status); } && |
| 3246 | { ac_try='test -z "$ac_c_werror_flag" |
| 3247 | || test ! -s conftest.err' |
| 3248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3249 | (eval $ac_try) 2>&5 |
| 3250 | ac_status=$? |
| 3251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3252 | (exit $ac_status); }; } && |
| 3253 | { ac_try='test -s conftest$ac_exeext' |
| 3254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3255 | (eval $ac_try) 2>&5 |
| 3256 | ac_status=$? |
| 3257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3258 | (exit $ac_status); }; }; then |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3259 | ac_cv_lib_rt_puts=yes |
| 3260 | else |
| 3261 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3262 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3263 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3264 | ac_cv_lib_rt_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3265 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3266 | rm -f conftest.err conftest.$ac_objext \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3267 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3268 | LIBS=$ac_check_lib_save_LIBS |
| 3269 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3270 | echo "$as_me:$LINENO: result: $ac_cv_lib_rt_puts" >&5 |
| 3271 | echo "${ECHO_T}$ac_cv_lib_rt_puts" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3272 | if test $ac_cv_lib_rt_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3273 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3274 | #define HAVE_LIBRT 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3275 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3276 | |
| 3277 | LIBS="-lrt $LIBS" |
| 3278 | |
| 3279 | fi |
| 3280 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3281 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3282 | echo "$as_me:$LINENO: checking for puts in -lnsl" >&5 |
| 3283 | echo $ECHO_N "checking for puts in -lnsl... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3284 | if test "${ac_cv_lib_nsl_puts+set}" = set; then |
| 3285 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3286 | else |
| 3287 | ac_check_lib_save_LIBS=$LIBS |
| 3288 | LIBS="-lnsl $LIBS" |
| 3289 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3290 | /* confdefs.h. */ |
| 3291 | _ACEOF |
| 3292 | cat confdefs.h >>conftest.$ac_ext |
| 3293 | cat >>conftest.$ac_ext <<_ACEOF |
| 3294 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3295 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3296 | /* Override any gcc2 internal prototype to avoid an error. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3297 | #ifdef __cplusplus |
| 3298 | extern "C" |
| 3299 | #endif |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3300 | /* We use char because int might match the return type of a gcc2 |
| 3301 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3302 | char puts (); |
| 3303 | int |
| 3304 | main () |
| 3305 | { |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3306 | puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3307 | ; |
| 3308 | return 0; |
| 3309 | } |
| 3310 | _ACEOF |
| 3311 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3312 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3313 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3314 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3315 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3316 | rm -f conftest.er1 |
| 3317 | cat conftest.err >&5 |
| 3318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3319 | (exit $ac_status); } && |
| 3320 | { ac_try='test -z "$ac_c_werror_flag" |
| 3321 | || test ! -s conftest.err' |
| 3322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3323 | (eval $ac_try) 2>&5 |
| 3324 | ac_status=$? |
| 3325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3326 | (exit $ac_status); }; } && |
| 3327 | { ac_try='test -s conftest$ac_exeext' |
| 3328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3329 | (eval $ac_try) 2>&5 |
| 3330 | ac_status=$? |
| 3331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3332 | (exit $ac_status); }; }; then |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3333 | ac_cv_lib_nsl_puts=yes |
| 3334 | else |
| 3335 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3336 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3337 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3338 | ac_cv_lib_nsl_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3339 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3340 | rm -f conftest.err conftest.$ac_objext \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3341 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3342 | LIBS=$ac_check_lib_save_LIBS |
| 3343 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3344 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_puts" >&5 |
| 3345 | echo "${ECHO_T}$ac_cv_lib_nsl_puts" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3346 | if test $ac_cv_lib_nsl_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3347 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3348 | #define HAVE_LIBNSL 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3349 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3350 | |
| 3351 | LIBS="-lnsl $LIBS" |
| 3352 | |
| 3353 | fi |
| 3354 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3355 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3356 | echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5 |
| 3357 | echo $ECHO_N "checking for uuid_generate in -luuid... $ECHO_C" >&6 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3358 | if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then |
| 3359 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3360 | else |
| 3361 | ac_check_lib_save_LIBS=$LIBS |
| 3362 | LIBS="-luuid $LIBS" |
| 3363 | cat >conftest.$ac_ext <<_ACEOF |
| 3364 | /* confdefs.h. */ |
| 3365 | _ACEOF |
| 3366 | cat confdefs.h >>conftest.$ac_ext |
| 3367 | cat >>conftest.$ac_ext <<_ACEOF |
| 3368 | /* end confdefs.h. */ |
| 3369 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3370 | /* Override any gcc2 internal prototype to avoid an error. */ |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3371 | #ifdef __cplusplus |
| 3372 | extern "C" |
| 3373 | #endif |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3374 | /* We use char because int might match the return type of a gcc2 |
| 3375 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3376 | char uuid_generate (); |
| 3377 | int |
| 3378 | main () |
| 3379 | { |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3380 | uuid_generate (); |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3381 | ; |
| 3382 | return 0; |
| 3383 | } |
| 3384 | _ACEOF |
| 3385 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3386 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3387 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3388 | ac_status=$? |
| 3389 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3390 | rm -f conftest.er1 |
| 3391 | cat conftest.err >&5 |
| 3392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3393 | (exit $ac_status); } && |
| 3394 | { ac_try='test -z "$ac_c_werror_flag" |
| 3395 | || test ! -s conftest.err' |
| 3396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3397 | (eval $ac_try) 2>&5 |
| 3398 | ac_status=$? |
| 3399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3400 | (exit $ac_status); }; } && |
| 3401 | { ac_try='test -s conftest$ac_exeext' |
| 3402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3403 | (eval $ac_try) 2>&5 |
| 3404 | ac_status=$? |
| 3405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3406 | (exit $ac_status); }; }; then |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3407 | ac_cv_lib_uuid_uuid_generate=yes |
| 3408 | else |
| 3409 | echo "$as_me: failed program was:" >&5 |
| 3410 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3411 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3412 | ac_cv_lib_uuid_uuid_generate=no |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3413 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3414 | rm -f conftest.err conftest.$ac_objext \ |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3415 | conftest$ac_exeext conftest.$ac_ext |
| 3416 | LIBS=$ac_check_lib_save_LIBS |
| 3417 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3418 | echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5 |
| 3419 | echo "${ECHO_T}$ac_cv_lib_uuid_uuid_generate" >&6 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3420 | if test $ac_cv_lib_uuid_uuid_generate = yes; then |
| 3421 | cat >>confdefs.h <<_ACEOF |
| 3422 | #define HAVE_LIBUUID 1 |
| 3423 | _ACEOF |
| 3424 | |
| 3425 | LIBS="-luuid $LIBS" |
| 3426 | |
| 3427 | fi |
| 3428 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3429 | echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5 |
| 3430 | echo $ECHO_N "checking for uuid_generate in -luuid... $ECHO_C" >&6 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3431 | if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then |
| 3432 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3433 | else |
| 3434 | ac_check_lib_save_LIBS=$LIBS |
| 3435 | LIBS="-luuid $LIBS" |
| 3436 | cat >conftest.$ac_ext <<_ACEOF |
| 3437 | /* confdefs.h. */ |
| 3438 | _ACEOF |
| 3439 | cat confdefs.h >>conftest.$ac_ext |
| 3440 | cat >>conftest.$ac_ext <<_ACEOF |
| 3441 | /* end confdefs.h. */ |
| 3442 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3443 | /* Override any gcc2 internal prototype to avoid an error. */ |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3444 | #ifdef __cplusplus |
| 3445 | extern "C" |
| 3446 | #endif |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3447 | /* We use char because int might match the return type of a gcc2 |
| 3448 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3449 | char uuid_generate (); |
| 3450 | int |
| 3451 | main () |
| 3452 | { |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3453 | uuid_generate (); |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3454 | ; |
| 3455 | return 0; |
| 3456 | } |
| 3457 | _ACEOF |
| 3458 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3459 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3460 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3461 | ac_status=$? |
| 3462 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3463 | rm -f conftest.er1 |
| 3464 | cat conftest.err >&5 |
| 3465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3466 | (exit $ac_status); } && |
| 3467 | { ac_try='test -z "$ac_c_werror_flag" |
| 3468 | || test ! -s conftest.err' |
| 3469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3470 | (eval $ac_try) 2>&5 |
| 3471 | ac_status=$? |
| 3472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3473 | (exit $ac_status); }; } && |
| 3474 | { ac_try='test -s conftest$ac_exeext' |
| 3475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3476 | (eval $ac_try) 2>&5 |
| 3477 | ac_status=$? |
| 3478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3479 | (exit $ac_status); }; }; then |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3480 | ac_cv_lib_uuid_uuid_generate=yes |
| 3481 | else |
| 3482 | echo "$as_me: failed program was:" >&5 |
| 3483 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3484 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3485 | ac_cv_lib_uuid_uuid_generate=no |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3486 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3487 | rm -f conftest.err conftest.$ac_objext \ |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3488 | conftest$ac_exeext conftest.$ac_ext |
| 3489 | LIBS=$ac_check_lib_save_LIBS |
| 3490 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3491 | echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5 |
| 3492 | echo "${ECHO_T}$ac_cv_lib_uuid_uuid_generate" >&6 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3493 | if test $ac_cv_lib_uuid_uuid_generate = yes; then |
| 3494 | ac_has_uuid_lib=1 |
| 3495 | fi |
| 3496 | |
| 3497 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3498 | echo "$as_me:$LINENO: result: Setting PJ_M_NAME to $target_cpu" >&5 |
| 3499 | echo "${ECHO_T}Setting PJ_M_NAME to $target_cpu" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3500 | cat >>confdefs.h <<_ACEOF |
| 3501 | #define PJ_M_NAME "$target_cpu" |
| 3502 | _ACEOF |
| 3503 | |
| 3504 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3505 | echo "$as_me:$LINENO: checking memory alignment" >&5 |
| 3506 | echo $ECHO_N "checking memory alignment... $ECHO_C" >&6 |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3507 | case $target in |
| 3508 | ia64-* | x86_64-* ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3509 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3510 | #define PJ_POOL_ALIGNMENT 8 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3511 | _ACEOF |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3512 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3513 | echo "$as_me:$LINENO: result: 8 bytes" >&5 |
| 3514 | echo "${ECHO_T}8 bytes" >&6 |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3515 | ;; |
| 3516 | * ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3517 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3518 | #define PJ_POOL_ALIGNMENT 4 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3519 | _ACEOF |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3520 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3521 | echo "$as_me:$LINENO: result: 4 bytes (default)" >&5 |
| 3522 | echo "${ECHO_T}4 bytes (default)" >&6 |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3523 | ;; |
| 3524 | esac |
| 3525 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3526 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3527 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 3528 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3529 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 3530 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3531 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3532 | # See if sys/param.h defines the BYTE_ORDER macro. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3533 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3534 | /* confdefs.h. */ |
| 3535 | _ACEOF |
| 3536 | cat confdefs.h >>conftest.$ac_ext |
| 3537 | cat >>conftest.$ac_ext <<_ACEOF |
| 3538 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3539 | #include <sys/types.h> |
| 3540 | #include <sys/param.h> |
| 3541 | |
| 3542 | int |
| 3543 | main () |
| 3544 | { |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3545 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3546 | bogus endian macros |
| 3547 | #endif |
| 3548 | |
| 3549 | ; |
| 3550 | return 0; |
| 3551 | } |
| 3552 | _ACEOF |
| 3553 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3554 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3555 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3556 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3557 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3558 | rm -f conftest.er1 |
| 3559 | cat conftest.err >&5 |
| 3560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3561 | (exit $ac_status); } && |
| 3562 | { ac_try='test -z "$ac_c_werror_flag" |
| 3563 | || test ! -s conftest.err' |
| 3564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3565 | (eval $ac_try) 2>&5 |
| 3566 | ac_status=$? |
| 3567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3568 | (exit $ac_status); }; } && |
| 3569 | { ac_try='test -s conftest.$ac_objext' |
| 3570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3571 | (eval $ac_try) 2>&5 |
| 3572 | ac_status=$? |
| 3573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3574 | (exit $ac_status); }; }; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3575 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 3576 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3577 | /* confdefs.h. */ |
| 3578 | _ACEOF |
| 3579 | cat confdefs.h >>conftest.$ac_ext |
| 3580 | cat >>conftest.$ac_ext <<_ACEOF |
| 3581 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3582 | #include <sys/types.h> |
| 3583 | #include <sys/param.h> |
| 3584 | |
| 3585 | int |
| 3586 | main () |
| 3587 | { |
| 3588 | #if BYTE_ORDER != BIG_ENDIAN |
| 3589 | not big endian |
| 3590 | #endif |
| 3591 | |
| 3592 | ; |
| 3593 | return 0; |
| 3594 | } |
| 3595 | _ACEOF |
| 3596 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3597 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3598 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3599 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3600 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3601 | rm -f conftest.er1 |
| 3602 | cat conftest.err >&5 |
| 3603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3604 | (exit $ac_status); } && |
| 3605 | { ac_try='test -z "$ac_c_werror_flag" |
| 3606 | || test ! -s conftest.err' |
| 3607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3608 | (eval $ac_try) 2>&5 |
| 3609 | ac_status=$? |
| 3610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3611 | (exit $ac_status); }; } && |
| 3612 | { ac_try='test -s conftest.$ac_objext' |
| 3613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3614 | (eval $ac_try) 2>&5 |
| 3615 | ac_status=$? |
| 3616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3617 | (exit $ac_status); }; }; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3618 | ac_cv_c_bigendian=yes |
| 3619 | else |
| 3620 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3621 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3622 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3623 | ac_cv_c_bigendian=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3624 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3625 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3626 | else |
| 3627 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3628 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3629 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3630 | # It does not; compile a test program. |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3631 | if test "$cross_compiling" = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3632 | # try to guess the endianness by grepping values into an object file |
| 3633 | ac_cv_c_bigendian=unknown |
| 3634 | cat >conftest.$ac_ext <<_ACEOF |
| 3635 | /* confdefs.h. */ |
| 3636 | _ACEOF |
| 3637 | cat confdefs.h >>conftest.$ac_ext |
| 3638 | cat >>conftest.$ac_ext <<_ACEOF |
| 3639 | /* end confdefs.h. */ |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3640 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 3641 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3642 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3643 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 3644 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3645 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 3646 | int |
| 3647 | main () |
| 3648 | { |
| 3649 | _ascii (); _ebcdic (); |
| 3650 | ; |
| 3651 | return 0; |
| 3652 | } |
| 3653 | _ACEOF |
| 3654 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3655 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3656 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3657 | ac_status=$? |
| 3658 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3659 | rm -f conftest.er1 |
| 3660 | cat conftest.err >&5 |
| 3661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3662 | (exit $ac_status); } && |
| 3663 | { ac_try='test -z "$ac_c_werror_flag" |
| 3664 | || test ! -s conftest.err' |
| 3665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3666 | (eval $ac_try) 2>&5 |
| 3667 | ac_status=$? |
| 3668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3669 | (exit $ac_status); }; } && |
| 3670 | { ac_try='test -s conftest.$ac_objext' |
| 3671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3672 | (eval $ac_try) 2>&5 |
| 3673 | ac_status=$? |
| 3674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3675 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3676 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 3677 | ac_cv_c_bigendian=yes |
| 3678 | fi |
| 3679 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 3680 | if test "$ac_cv_c_bigendian" = unknown; then |
| 3681 | ac_cv_c_bigendian=no |
| 3682 | else |
| 3683 | # finding both strings is unlikely to happen, but who knows? |
| 3684 | ac_cv_c_bigendian=unknown |
| 3685 | fi |
| 3686 | fi |
| 3687 | else |
| 3688 | echo "$as_me: failed program was:" >&5 |
| 3689 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3690 | |
| 3691 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3692 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3693 | else |
| 3694 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3695 | /* confdefs.h. */ |
| 3696 | _ACEOF |
| 3697 | cat confdefs.h >>conftest.$ac_ext |
| 3698 | cat >>conftest.$ac_ext <<_ACEOF |
| 3699 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3700 | int |
| 3701 | main () |
| 3702 | { |
| 3703 | /* Are we little or big endian? From Harbison&Steele. */ |
| 3704 | union |
| 3705 | { |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3706 | long l; |
| 3707 | char c[sizeof (long)]; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3708 | } u; |
| 3709 | u.l = 1; |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3710 | exit (u.c[sizeof (long) - 1] == 1); |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3711 | } |
| 3712 | _ACEOF |
| 3713 | rm -f conftest$ac_exeext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3714 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3715 | (eval $ac_link) 2>&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3716 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3718 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3720 | (eval $ac_try) 2>&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3721 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3723 | (exit $ac_status); }; }; then |
| 3724 | ac_cv_c_bigendian=no |
| 3725 | else |
| 3726 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3727 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3728 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3729 | |
| 3730 | ( exit $ac_status ) |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3731 | ac_cv_c_bigendian=yes |
| 3732 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3733 | 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] | 3734 | fi |
| 3735 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3736 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3737 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3738 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 3739 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3740 | case $ac_cv_c_bigendian in |
| 3741 | yes) |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3742 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3743 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 3744 | #define WORDS_BIGENDIAN 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3745 | _ACEOF |
| 3746 | ;; |
| 3747 | no) |
| 3748 | ;; |
| 3749 | *) |
| 3750 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 3751 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 3752 | echo "$as_me: error: unknown endianness |
| 3753 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 3754 | { (exit 1); exit 1; }; } ;; |
| 3755 | esac |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3756 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3757 | |
| 3758 | case $target in |
| 3759 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3760 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3761 | #define PJ_WIN32 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3762 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3763 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3764 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3765 | #define PJ_WIN32_WINNT 0x0400 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3766 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3767 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3768 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3769 | #define WIN32_LEAN_AND_MEAN 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3770 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3771 | |
| 3772 | ;; |
| 3773 | *darwin*) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3774 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3775 | #define PJ_DARWINOS 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3776 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3777 | |
| 3778 | ;; |
| 3779 | *linux*) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3780 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3781 | #define PJ_LINUX 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3782 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3783 | |
| 3784 | ;; |
| 3785 | *rtems*) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3786 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3787 | #define PJ_RTEMS 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3788 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3789 | |
| 3790 | ;; |
| 3791 | *sunos* | *solaris* ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3792 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3793 | #define PJ_SUNOS 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3794 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3795 | |
| 3796 | ;; |
| 3797 | *) |
| 3798 | ;; |
| 3799 | esac |
| 3800 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3801 | |
| 3802 | |
| 3803 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3804 | # Check whether --enable-floating-point or --disable-floating-point was given. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3805 | if test "${enable_floating_point+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3806 | enableval="$enable_floating_point" |
| 3807 | if test "$enable_floating_point" = "no"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3808 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3809 | #define PJ_HAS_FLOATING_POINT 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3810 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3811 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3812 | echo "$as_me:$LINENO: result: Checking if floating point is disabled... yes" >&5 |
| 3813 | echo "${ECHO_T}Checking if floating point is disabled... yes" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3814 | fi |
| 3815 | else |
| 3816 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3817 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3818 | #define PJ_HAS_FLOATING_POINT 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3819 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3820 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3821 | echo "$as_me:$LINENO: result: Checking if floating point is disabled... no" >&5 |
| 3822 | echo "${ECHO_T}Checking if floating point is disabled... no" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3823 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3824 | echo "$as_me:$LINENO: checking for fmod in -lm" >&5 |
| 3825 | echo $ECHO_N "checking for fmod in -lm... $ECHO_C" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3826 | if test "${ac_cv_lib_m_fmod+set}" = set; then |
| 3827 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3828 | else |
| 3829 | ac_check_lib_save_LIBS=$LIBS |
| 3830 | LIBS="-lm $LIBS" |
| 3831 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3832 | /* confdefs.h. */ |
| 3833 | _ACEOF |
| 3834 | cat confdefs.h >>conftest.$ac_ext |
| 3835 | cat >>conftest.$ac_ext <<_ACEOF |
| 3836 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3837 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3838 | /* Override any gcc2 internal prototype to avoid an error. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3839 | #ifdef __cplusplus |
| 3840 | extern "C" |
| 3841 | #endif |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3842 | /* We use char because int might match the return type of a gcc2 |
| 3843 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3844 | char fmod (); |
| 3845 | int |
| 3846 | main () |
| 3847 | { |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3848 | fmod (); |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3849 | ; |
| 3850 | return 0; |
| 3851 | } |
| 3852 | _ACEOF |
| 3853 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3854 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3855 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3856 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3857 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3858 | rm -f conftest.er1 |
| 3859 | cat conftest.err >&5 |
| 3860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3861 | (exit $ac_status); } && |
| 3862 | { ac_try='test -z "$ac_c_werror_flag" |
| 3863 | || test ! -s conftest.err' |
| 3864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3865 | (eval $ac_try) 2>&5 |
| 3866 | ac_status=$? |
| 3867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3868 | (exit $ac_status); }; } && |
| 3869 | { ac_try='test -s conftest$ac_exeext' |
| 3870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3871 | (eval $ac_try) 2>&5 |
| 3872 | ac_status=$? |
| 3873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3874 | (exit $ac_status); }; }; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3875 | ac_cv_lib_m_fmod=yes |
| 3876 | else |
| 3877 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3878 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3879 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3880 | ac_cv_lib_m_fmod=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3881 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3882 | rm -f conftest.err conftest.$ac_objext \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3883 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3884 | LIBS=$ac_check_lib_save_LIBS |
| 3885 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3886 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_fmod" >&5 |
| 3887 | echo "${ECHO_T}$ac_cv_lib_m_fmod" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3888 | if test $ac_cv_lib_m_fmod = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3889 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3890 | #define HAVE_LIBM 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3891 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3892 | |
| 3893 | LIBS="-lm $LIBS" |
| 3894 | |
| 3895 | fi |
| 3896 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3897 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 3898 | fi; |
| 3899 | |
| 3900 | |
| 3901 | ac_ext=c |
| 3902 | ac_cpp='$CPP $CPPFLAGS' |
| 3903 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3904 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3905 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3906 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3907 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
| 3908 | # On Suns, sometimes $CPP names a directory. |
| 3909 | if test -n "$CPP" && test -d "$CPP"; then |
| 3910 | CPP= |
| 3911 | fi |
| 3912 | if test -z "$CPP"; then |
| 3913 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3914 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3915 | else |
| 3916 | # Double quotes because CPP needs to be expanded |
| 3917 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3918 | do |
| 3919 | ac_preproc_ok=false |
| 3920 | for ac_c_preproc_warn_flag in '' yes |
| 3921 | do |
| 3922 | # Use a header file that comes with gcc, so configuring glibc |
| 3923 | # with a fresh cross-compiler works. |
| 3924 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3925 | # <limits.h> exists even on freestanding compilers. |
| 3926 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3927 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3928 | cat >conftest.$ac_ext <<_ACEOF |
| 3929 | /* confdefs.h. */ |
| 3930 | _ACEOF |
| 3931 | cat confdefs.h >>conftest.$ac_ext |
| 3932 | cat >>conftest.$ac_ext <<_ACEOF |
| 3933 | /* end confdefs.h. */ |
| 3934 | #ifdef __STDC__ |
| 3935 | # include <limits.h> |
| 3936 | #else |
| 3937 | # include <assert.h> |
| 3938 | #endif |
| 3939 | Syntax error |
| 3940 | _ACEOF |
| 3941 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3942 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3943 | ac_status=$? |
| 3944 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3945 | rm -f conftest.er1 |
| 3946 | cat conftest.err >&5 |
| 3947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3948 | (exit $ac_status); } >/dev/null; then |
| 3949 | if test -s conftest.err; then |
| 3950 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3951 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3952 | else |
| 3953 | ac_cpp_err= |
| 3954 | fi |
| 3955 | else |
| 3956 | ac_cpp_err=yes |
| 3957 | fi |
| 3958 | if test -z "$ac_cpp_err"; then |
| 3959 | : |
| 3960 | else |
| 3961 | echo "$as_me: failed program was:" >&5 |
| 3962 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3963 | |
| 3964 | # Broken: fails on valid input. |
| 3965 | continue |
| 3966 | fi |
| 3967 | rm -f conftest.err conftest.$ac_ext |
| 3968 | |
| 3969 | # OK, works on sane cases. Now check whether non-existent headers |
| 3970 | # can be detected and how. |
| 3971 | cat >conftest.$ac_ext <<_ACEOF |
| 3972 | /* confdefs.h. */ |
| 3973 | _ACEOF |
| 3974 | cat confdefs.h >>conftest.$ac_ext |
| 3975 | cat >>conftest.$ac_ext <<_ACEOF |
| 3976 | /* end confdefs.h. */ |
| 3977 | #include <ac_nonexistent.h> |
| 3978 | _ACEOF |
| 3979 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3980 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3981 | ac_status=$? |
| 3982 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3983 | rm -f conftest.er1 |
| 3984 | cat conftest.err >&5 |
| 3985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3986 | (exit $ac_status); } >/dev/null; then |
| 3987 | if test -s conftest.err; then |
| 3988 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3989 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3990 | else |
| 3991 | ac_cpp_err= |
| 3992 | fi |
| 3993 | else |
| 3994 | ac_cpp_err=yes |
| 3995 | fi |
| 3996 | if test -z "$ac_cpp_err"; then |
| 3997 | # Broken: success on invalid input. |
| 3998 | continue |
| 3999 | else |
| 4000 | echo "$as_me: failed program was:" >&5 |
| 4001 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4002 | |
| 4003 | # Passes both tests. |
| 4004 | ac_preproc_ok=: |
| 4005 | break |
| 4006 | fi |
| 4007 | rm -f conftest.err conftest.$ac_ext |
| 4008 | |
| 4009 | done |
| 4010 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4011 | rm -f conftest.err conftest.$ac_ext |
| 4012 | if $ac_preproc_ok; then |
| 4013 | break |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4014 | fi |
| 4015 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4016 | done |
| 4017 | ac_cv_prog_CPP=$CPP |
| 4018 | |
| 4019 | fi |
| 4020 | CPP=$ac_cv_prog_CPP |
| 4021 | else |
| 4022 | ac_cv_prog_CPP=$CPP |
| 4023 | fi |
| 4024 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 4025 | echo "${ECHO_T}$CPP" >&6 |
| 4026 | ac_preproc_ok=false |
| 4027 | for ac_c_preproc_warn_flag in '' yes |
| 4028 | do |
| 4029 | # Use a header file that comes with gcc, so configuring glibc |
| 4030 | # with a fresh cross-compiler works. |
| 4031 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4032 | # <limits.h> exists even on freestanding compilers. |
| 4033 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4034 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4035 | cat >conftest.$ac_ext <<_ACEOF |
| 4036 | /* confdefs.h. */ |
| 4037 | _ACEOF |
| 4038 | cat confdefs.h >>conftest.$ac_ext |
| 4039 | cat >>conftest.$ac_ext <<_ACEOF |
| 4040 | /* end confdefs.h. */ |
| 4041 | #ifdef __STDC__ |
| 4042 | # include <limits.h> |
| 4043 | #else |
| 4044 | # include <assert.h> |
| 4045 | #endif |
| 4046 | Syntax error |
| 4047 | _ACEOF |
| 4048 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4049 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4050 | ac_status=$? |
| 4051 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4052 | rm -f conftest.er1 |
| 4053 | cat conftest.err >&5 |
| 4054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4055 | (exit $ac_status); } >/dev/null; then |
| 4056 | if test -s conftest.err; then |
| 4057 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4058 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4059 | else |
| 4060 | ac_cpp_err= |
| 4061 | fi |
| 4062 | else |
| 4063 | ac_cpp_err=yes |
| 4064 | fi |
| 4065 | if test -z "$ac_cpp_err"; then |
| 4066 | : |
| 4067 | else |
| 4068 | echo "$as_me: failed program was:" >&5 |
| 4069 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4070 | |
| 4071 | # Broken: fails on valid input. |
| 4072 | continue |
| 4073 | fi |
| 4074 | rm -f conftest.err conftest.$ac_ext |
| 4075 | |
| 4076 | # OK, works on sane cases. Now check whether non-existent headers |
| 4077 | # can be detected and how. |
| 4078 | cat >conftest.$ac_ext <<_ACEOF |
| 4079 | /* confdefs.h. */ |
| 4080 | _ACEOF |
| 4081 | cat confdefs.h >>conftest.$ac_ext |
| 4082 | cat >>conftest.$ac_ext <<_ACEOF |
| 4083 | /* end confdefs.h. */ |
| 4084 | #include <ac_nonexistent.h> |
| 4085 | _ACEOF |
| 4086 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4087 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4088 | ac_status=$? |
| 4089 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4090 | rm -f conftest.er1 |
| 4091 | cat conftest.err >&5 |
| 4092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4093 | (exit $ac_status); } >/dev/null; then |
| 4094 | if test -s conftest.err; then |
| 4095 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4096 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4097 | else |
| 4098 | ac_cpp_err= |
| 4099 | fi |
| 4100 | else |
| 4101 | ac_cpp_err=yes |
| 4102 | fi |
| 4103 | if test -z "$ac_cpp_err"; then |
| 4104 | # Broken: success on invalid input. |
| 4105 | continue |
| 4106 | else |
| 4107 | echo "$as_me: failed program was:" >&5 |
| 4108 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4109 | |
| 4110 | # Passes both tests. |
| 4111 | ac_preproc_ok=: |
| 4112 | break |
| 4113 | fi |
| 4114 | rm -f conftest.err conftest.$ac_ext |
| 4115 | |
| 4116 | done |
| 4117 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4118 | rm -f conftest.err conftest.$ac_ext |
| 4119 | if $ac_preproc_ok; then |
| 4120 | : |
| 4121 | else |
| 4122 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 4123 | See \`config.log' for more details." >&5 |
| 4124 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 4125 | See \`config.log' for more details." >&2;} |
| 4126 | { (exit 1); exit 1; }; } |
| 4127 | fi |
| 4128 | |
| 4129 | ac_ext=c |
| 4130 | ac_cpp='$CPP $CPPFLAGS' |
| 4131 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4132 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4133 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4134 | |
| 4135 | |
| 4136 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 4137 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 4138 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 4139 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4140 | else |
| 4141 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 4142 | then ac_cv_prog_egrep='grep -E' |
| 4143 | else ac_cv_prog_egrep='egrep' |
| 4144 | fi |
| 4145 | fi |
| 4146 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 4147 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 4148 | EGREP=$ac_cv_prog_egrep |
| 4149 | |
| 4150 | |
| 4151 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 4152 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 4153 | if test "${ac_cv_header_stdc+set}" = set; then |
| 4154 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4155 | else |
| 4156 | cat >conftest.$ac_ext <<_ACEOF |
| 4157 | /* confdefs.h. */ |
| 4158 | _ACEOF |
| 4159 | cat confdefs.h >>conftest.$ac_ext |
| 4160 | cat >>conftest.$ac_ext <<_ACEOF |
| 4161 | /* end confdefs.h. */ |
| 4162 | #include <stdlib.h> |
| 4163 | #include <stdarg.h> |
| 4164 | #include <string.h> |
| 4165 | #include <float.h> |
| 4166 | |
| 4167 | int |
| 4168 | main () |
| 4169 | { |
| 4170 | |
| 4171 | ; |
| 4172 | return 0; |
| 4173 | } |
| 4174 | _ACEOF |
| 4175 | rm -f conftest.$ac_objext |
| 4176 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4177 | (eval $ac_compile) 2>conftest.er1 |
| 4178 | ac_status=$? |
| 4179 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4180 | rm -f conftest.er1 |
| 4181 | cat conftest.err >&5 |
| 4182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4183 | (exit $ac_status); } && |
| 4184 | { ac_try='test -z "$ac_c_werror_flag" |
| 4185 | || test ! -s conftest.err' |
| 4186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4187 | (eval $ac_try) 2>&5 |
| 4188 | ac_status=$? |
| 4189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4190 | (exit $ac_status); }; } && |
| 4191 | { ac_try='test -s conftest.$ac_objext' |
| 4192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4193 | (eval $ac_try) 2>&5 |
| 4194 | ac_status=$? |
| 4195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4196 | (exit $ac_status); }; }; then |
| 4197 | ac_cv_header_stdc=yes |
| 4198 | else |
| 4199 | echo "$as_me: failed program was:" >&5 |
| 4200 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4201 | |
| 4202 | ac_cv_header_stdc=no |
| 4203 | fi |
| 4204 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4205 | |
| 4206 | if test $ac_cv_header_stdc = yes; then |
| 4207 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 4208 | cat >conftest.$ac_ext <<_ACEOF |
| 4209 | /* confdefs.h. */ |
| 4210 | _ACEOF |
| 4211 | cat confdefs.h >>conftest.$ac_ext |
| 4212 | cat >>conftest.$ac_ext <<_ACEOF |
| 4213 | /* end confdefs.h. */ |
| 4214 | #include <string.h> |
| 4215 | |
| 4216 | _ACEOF |
| 4217 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4218 | $EGREP "memchr" >/dev/null 2>&1; then |
| 4219 | : |
| 4220 | else |
| 4221 | ac_cv_header_stdc=no |
| 4222 | fi |
| 4223 | rm -f conftest* |
| 4224 | |
| 4225 | fi |
| 4226 | |
| 4227 | if test $ac_cv_header_stdc = yes; then |
| 4228 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 4229 | cat >conftest.$ac_ext <<_ACEOF |
| 4230 | /* confdefs.h. */ |
| 4231 | _ACEOF |
| 4232 | cat confdefs.h >>conftest.$ac_ext |
| 4233 | cat >>conftest.$ac_ext <<_ACEOF |
| 4234 | /* end confdefs.h. */ |
| 4235 | #include <stdlib.h> |
| 4236 | |
| 4237 | _ACEOF |
| 4238 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4239 | $EGREP "free" >/dev/null 2>&1; then |
| 4240 | : |
| 4241 | else |
| 4242 | ac_cv_header_stdc=no |
| 4243 | fi |
| 4244 | rm -f conftest* |
| 4245 | |
| 4246 | fi |
| 4247 | |
| 4248 | if test $ac_cv_header_stdc = yes; then |
| 4249 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 4250 | if test "$cross_compiling" = yes; then |
| 4251 | : |
| 4252 | else |
| 4253 | cat >conftest.$ac_ext <<_ACEOF |
| 4254 | /* confdefs.h. */ |
| 4255 | _ACEOF |
| 4256 | cat confdefs.h >>conftest.$ac_ext |
| 4257 | cat >>conftest.$ac_ext <<_ACEOF |
| 4258 | /* end confdefs.h. */ |
| 4259 | #include <ctype.h> |
| 4260 | #if ((' ' & 0x0FF) == 0x020) |
| 4261 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4262 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4263 | #else |
| 4264 | # define ISLOWER(c) \ |
| 4265 | (('a' <= (c) && (c) <= 'i') \ |
| 4266 | || ('j' <= (c) && (c) <= 'r') \ |
| 4267 | || ('s' <= (c) && (c) <= 'z')) |
| 4268 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4269 | #endif |
| 4270 | |
| 4271 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4272 | int |
| 4273 | main () |
| 4274 | { |
| 4275 | int i; |
| 4276 | for (i = 0; i < 256; i++) |
| 4277 | if (XOR (islower (i), ISLOWER (i)) |
| 4278 | || toupper (i) != TOUPPER (i)) |
| 4279 | exit(2); |
| 4280 | exit (0); |
| 4281 | } |
| 4282 | _ACEOF |
| 4283 | rm -f conftest$ac_exeext |
| 4284 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4285 | (eval $ac_link) 2>&5 |
| 4286 | ac_status=$? |
| 4287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4288 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4290 | (eval $ac_try) 2>&5 |
| 4291 | ac_status=$? |
| 4292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4293 | (exit $ac_status); }; }; then |
| 4294 | : |
| 4295 | else |
| 4296 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4297 | echo "$as_me: failed program was:" >&5 |
| 4298 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4299 | |
| 4300 | ( exit $ac_status ) |
| 4301 | ac_cv_header_stdc=no |
| 4302 | fi |
| 4303 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4304 | fi |
| 4305 | fi |
| 4306 | fi |
| 4307 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4308 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 4309 | if test $ac_cv_header_stdc = yes; then |
| 4310 | |
| 4311 | cat >>confdefs.h <<\_ACEOF |
| 4312 | #define STDC_HEADERS 1 |
| 4313 | _ACEOF |
| 4314 | |
| 4315 | fi |
| 4316 | |
| 4317 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4318 | |
| 4319 | |
| 4320 | |
| 4321 | |
| 4322 | |
| 4323 | |
| 4324 | |
| 4325 | |
| 4326 | |
| 4327 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4328 | inttypes.h stdint.h unistd.h |
| 4329 | do |
| 4330 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4331 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4332 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4333 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4334 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4335 | else |
| 4336 | cat >conftest.$ac_ext <<_ACEOF |
| 4337 | /* confdefs.h. */ |
| 4338 | _ACEOF |
| 4339 | cat confdefs.h >>conftest.$ac_ext |
| 4340 | cat >>conftest.$ac_ext <<_ACEOF |
| 4341 | /* end confdefs.h. */ |
| 4342 | $ac_includes_default |
| 4343 | |
| 4344 | #include <$ac_header> |
| 4345 | _ACEOF |
| 4346 | rm -f conftest.$ac_objext |
| 4347 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4348 | (eval $ac_compile) 2>conftest.er1 |
| 4349 | ac_status=$? |
| 4350 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4351 | rm -f conftest.er1 |
| 4352 | cat conftest.err >&5 |
| 4353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4354 | (exit $ac_status); } && |
| 4355 | { ac_try='test -z "$ac_c_werror_flag" |
| 4356 | || test ! -s conftest.err' |
| 4357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4358 | (eval $ac_try) 2>&5 |
| 4359 | ac_status=$? |
| 4360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4361 | (exit $ac_status); }; } && |
| 4362 | { ac_try='test -s conftest.$ac_objext' |
| 4363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4364 | (eval $ac_try) 2>&5 |
| 4365 | ac_status=$? |
| 4366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4367 | (exit $ac_status); }; }; then |
| 4368 | eval "$as_ac_Header=yes" |
| 4369 | else |
| 4370 | echo "$as_me: failed program was:" >&5 |
| 4371 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4372 | |
| 4373 | eval "$as_ac_Header=no" |
| 4374 | fi |
| 4375 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4376 | fi |
| 4377 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4378 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4379 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4380 | cat >>confdefs.h <<_ACEOF |
| 4381 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4382 | _ACEOF |
| 4383 | |
| 4384 | fi |
| 4385 | |
| 4386 | done |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4387 | |
| 4388 | |
| 4389 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4390 | echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 |
| 4391 | echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4392 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then |
| 4393 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4394 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4395 | echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5 |
| 4396 | echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4397 | else |
| 4398 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4399 | echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5 |
| 4400 | echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4401 | cat >conftest.$ac_ext <<_ACEOF |
| 4402 | /* confdefs.h. */ |
| 4403 | _ACEOF |
| 4404 | cat confdefs.h >>conftest.$ac_ext |
| 4405 | cat >>conftest.$ac_ext <<_ACEOF |
| 4406 | /* end confdefs.h. */ |
| 4407 | $ac_includes_default |
| 4408 | #include <arpa/inet.h> |
| 4409 | _ACEOF |
| 4410 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4411 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4412 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4413 | ac_status=$? |
| 4414 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4415 | rm -f conftest.er1 |
| 4416 | cat conftest.err >&5 |
| 4417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4418 | (exit $ac_status); } && |
| 4419 | { ac_try='test -z "$ac_c_werror_flag" |
| 4420 | || test ! -s conftest.err' |
| 4421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4422 | (eval $ac_try) 2>&5 |
| 4423 | ac_status=$? |
| 4424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4425 | (exit $ac_status); }; } && |
| 4426 | { ac_try='test -s conftest.$ac_objext' |
| 4427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4428 | (eval $ac_try) 2>&5 |
| 4429 | ac_status=$? |
| 4430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4431 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4432 | ac_header_compiler=yes |
| 4433 | else |
| 4434 | echo "$as_me: failed program was:" >&5 |
| 4435 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4436 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4437 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4438 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4439 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4440 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4441 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4442 | |
| 4443 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4444 | echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5 |
| 4445 | echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4446 | cat >conftest.$ac_ext <<_ACEOF |
| 4447 | /* confdefs.h. */ |
| 4448 | _ACEOF |
| 4449 | cat confdefs.h >>conftest.$ac_ext |
| 4450 | cat >>conftest.$ac_ext <<_ACEOF |
| 4451 | /* end confdefs.h. */ |
| 4452 | #include <arpa/inet.h> |
| 4453 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4454 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4455 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4456 | ac_status=$? |
| 4457 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4458 | rm -f conftest.er1 |
| 4459 | cat conftest.err >&5 |
| 4460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4461 | (exit $ac_status); } >/dev/null; then |
| 4462 | if test -s conftest.err; then |
| 4463 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4464 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4465 | else |
| 4466 | ac_cpp_err= |
| 4467 | fi |
| 4468 | else |
| 4469 | ac_cpp_err=yes |
| 4470 | fi |
| 4471 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4472 | ac_header_preproc=yes |
| 4473 | else |
| 4474 | echo "$as_me: failed program was:" >&5 |
| 4475 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4476 | |
| 4477 | ac_header_preproc=no |
| 4478 | fi |
| 4479 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4480 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4481 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4482 | |
| 4483 | # So? What about this header? |
| 4484 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 4485 | yes:no: ) |
| 4486 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4487 | echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4488 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5 |
| 4489 | echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;} |
| 4490 | ac_header_preproc=yes |
| 4491 | ;; |
| 4492 | no:yes:* ) |
| 4493 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5 |
| 4494 | echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;} |
| 4495 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5 |
| 4496 | echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;} |
| 4497 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5 |
| 4498 | echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;} |
| 4499 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 4500 | echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 4501 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5 |
| 4502 | echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;} |
| 4503 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5 |
| 4504 | echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4505 | ( |
| 4506 | cat <<\_ASBOX |
| 4507 | ## ------------------------------------ ## |
| 4508 | ## Report this to the pjproject lists. ## |
| 4509 | ## ------------------------------------ ## |
| 4510 | _ASBOX |
| 4511 | ) | |
| 4512 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4513 | ;; |
| 4514 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4515 | echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 |
| 4516 | echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4517 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then |
| 4518 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4519 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4520 | ac_cv_header_arpa_inet_h=$ac_header_preproc |
| 4521 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4522 | echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5 |
| 4523 | echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4524 | |
| 4525 | fi |
| 4526 | if test $ac_cv_header_arpa_inet_h = yes; then |
| 4527 | cat >>confdefs.h <<\_ACEOF |
| 4528 | #define PJ_HAS_ARPA_INET_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4529 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4530 | |
| 4531 | fi |
| 4532 | |
| 4533 | |
| 4534 | if test "${ac_cv_header_assert_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4535 | echo "$as_me:$LINENO: checking for assert.h" >&5 |
| 4536 | echo $ECHO_N "checking for assert.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4537 | if test "${ac_cv_header_assert_h+set}" = set; then |
| 4538 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4539 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4540 | echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5 |
| 4541 | echo "${ECHO_T}$ac_cv_header_assert_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4542 | else |
| 4543 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4544 | echo "$as_me:$LINENO: checking assert.h usability" >&5 |
| 4545 | echo $ECHO_N "checking assert.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4546 | cat >conftest.$ac_ext <<_ACEOF |
| 4547 | /* confdefs.h. */ |
| 4548 | _ACEOF |
| 4549 | cat confdefs.h >>conftest.$ac_ext |
| 4550 | cat >>conftest.$ac_ext <<_ACEOF |
| 4551 | /* end confdefs.h. */ |
| 4552 | $ac_includes_default |
| 4553 | #include <assert.h> |
| 4554 | _ACEOF |
| 4555 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4556 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4557 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4558 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4559 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4560 | rm -f conftest.er1 |
| 4561 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4563 | (exit $ac_status); } && |
| 4564 | { ac_try='test -z "$ac_c_werror_flag" |
| 4565 | || test ! -s conftest.err' |
| 4566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4567 | (eval $ac_try) 2>&5 |
| 4568 | ac_status=$? |
| 4569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4570 | (exit $ac_status); }; } && |
| 4571 | { ac_try='test -s conftest.$ac_objext' |
| 4572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4573 | (eval $ac_try) 2>&5 |
| 4574 | ac_status=$? |
| 4575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4576 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4577 | ac_header_compiler=yes |
| 4578 | else |
| 4579 | echo "$as_me: failed program was:" >&5 |
| 4580 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4581 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4582 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4583 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4584 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4585 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4586 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4587 | |
| 4588 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4589 | echo "$as_me:$LINENO: checking assert.h presence" >&5 |
| 4590 | echo $ECHO_N "checking assert.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4591 | cat >conftest.$ac_ext <<_ACEOF |
| 4592 | /* confdefs.h. */ |
| 4593 | _ACEOF |
| 4594 | cat confdefs.h >>conftest.$ac_ext |
| 4595 | cat >>conftest.$ac_ext <<_ACEOF |
| 4596 | /* end confdefs.h. */ |
| 4597 | #include <assert.h> |
| 4598 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4599 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4600 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4601 | ac_status=$? |
| 4602 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4603 | rm -f conftest.er1 |
| 4604 | cat conftest.err >&5 |
| 4605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4606 | (exit $ac_status); } >/dev/null; then |
| 4607 | if test -s conftest.err; then |
| 4608 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4609 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4610 | else |
| 4611 | ac_cpp_err= |
| 4612 | fi |
| 4613 | else |
| 4614 | ac_cpp_err=yes |
| 4615 | fi |
| 4616 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4617 | ac_header_preproc=yes |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4618 | else |
| 4619 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4620 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4621 | |
| 4622 | ac_header_preproc=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4623 | fi |
| 4624 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4625 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4626 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4627 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4628 | # So? What about this header? |
| 4629 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 4630 | yes:no: ) |
| 4631 | { echo "$as_me:$LINENO: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4632 | echo "$as_me: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4633 | { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the compiler's result" >&5 |
| 4634 | echo "$as_me: WARNING: assert.h: proceeding with the compiler's result" >&2;} |
| 4635 | ac_header_preproc=yes |
| 4636 | ;; |
| 4637 | no:yes:* ) |
| 4638 | { echo "$as_me:$LINENO: WARNING: assert.h: present but cannot be compiled" >&5 |
| 4639 | echo "$as_me: WARNING: assert.h: present but cannot be compiled" >&2;} |
| 4640 | { echo "$as_me:$LINENO: WARNING: assert.h: check for missing prerequisite headers?" >&5 |
| 4641 | echo "$as_me: WARNING: assert.h: check for missing prerequisite headers?" >&2;} |
| 4642 | { echo "$as_me:$LINENO: WARNING: assert.h: see the Autoconf documentation" >&5 |
| 4643 | echo "$as_me: WARNING: assert.h: see the Autoconf documentation" >&2;} |
| 4644 | { echo "$as_me:$LINENO: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 4645 | echo "$as_me: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 4646 | { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the preprocessor's result" >&5 |
| 4647 | echo "$as_me: WARNING: assert.h: proceeding with the preprocessor's result" >&2;} |
| 4648 | { echo "$as_me:$LINENO: WARNING: assert.h: in the future, the compiler will take precedence" >&5 |
| 4649 | echo "$as_me: WARNING: assert.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4650 | ( |
| 4651 | cat <<\_ASBOX |
| 4652 | ## ------------------------------------ ## |
| 4653 | ## Report this to the pjproject lists. ## |
| 4654 | ## ------------------------------------ ## |
| 4655 | _ASBOX |
| 4656 | ) | |
| 4657 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4658 | ;; |
| 4659 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4660 | echo "$as_me:$LINENO: checking for assert.h" >&5 |
| 4661 | echo $ECHO_N "checking for assert.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4662 | if test "${ac_cv_header_assert_h+set}" = set; then |
| 4663 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4664 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4665 | ac_cv_header_assert_h=$ac_header_preproc |
| 4666 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4667 | echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5 |
| 4668 | echo "${ECHO_T}$ac_cv_header_assert_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4669 | |
| 4670 | fi |
| 4671 | if test $ac_cv_header_assert_h = yes; then |
| 4672 | cat >>confdefs.h <<\_ACEOF |
| 4673 | #define PJ_HAS_ASSERT_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4674 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4675 | |
| 4676 | fi |
| 4677 | |
| 4678 | |
| 4679 | if test "${ac_cv_header_ctype_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4680 | echo "$as_me:$LINENO: checking for ctype.h" >&5 |
| 4681 | echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4682 | if test "${ac_cv_header_ctype_h+set}" = set; then |
| 4683 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4684 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4685 | echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5 |
| 4686 | echo "${ECHO_T}$ac_cv_header_ctype_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4687 | else |
| 4688 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4689 | echo "$as_me:$LINENO: checking ctype.h usability" >&5 |
| 4690 | echo $ECHO_N "checking ctype.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4691 | cat >conftest.$ac_ext <<_ACEOF |
| 4692 | /* confdefs.h. */ |
| 4693 | _ACEOF |
| 4694 | cat confdefs.h >>conftest.$ac_ext |
| 4695 | cat >>conftest.$ac_ext <<_ACEOF |
| 4696 | /* end confdefs.h. */ |
| 4697 | $ac_includes_default |
| 4698 | #include <ctype.h> |
| 4699 | _ACEOF |
| 4700 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4701 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4702 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4703 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4704 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4705 | rm -f conftest.er1 |
| 4706 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4708 | (exit $ac_status); } && |
| 4709 | { ac_try='test -z "$ac_c_werror_flag" |
| 4710 | || test ! -s conftest.err' |
| 4711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4712 | (eval $ac_try) 2>&5 |
| 4713 | ac_status=$? |
| 4714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4715 | (exit $ac_status); }; } && |
| 4716 | { ac_try='test -s conftest.$ac_objext' |
| 4717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4718 | (eval $ac_try) 2>&5 |
| 4719 | ac_status=$? |
| 4720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4721 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4722 | ac_header_compiler=yes |
| 4723 | else |
| 4724 | echo "$as_me: failed program was:" >&5 |
| 4725 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4726 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4727 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4728 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4729 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4730 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4731 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4732 | |
| 4733 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4734 | echo "$as_me:$LINENO: checking ctype.h presence" >&5 |
| 4735 | echo $ECHO_N "checking ctype.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4736 | cat >conftest.$ac_ext <<_ACEOF |
| 4737 | /* confdefs.h. */ |
| 4738 | _ACEOF |
| 4739 | cat confdefs.h >>conftest.$ac_ext |
| 4740 | cat >>conftest.$ac_ext <<_ACEOF |
| 4741 | /* end confdefs.h. */ |
| 4742 | #include <ctype.h> |
| 4743 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4744 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4745 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4746 | ac_status=$? |
| 4747 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4748 | rm -f conftest.er1 |
| 4749 | cat conftest.err >&5 |
| 4750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4751 | (exit $ac_status); } >/dev/null; then |
| 4752 | if test -s conftest.err; then |
| 4753 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4754 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4755 | else |
| 4756 | ac_cpp_err= |
| 4757 | fi |
| 4758 | else |
| 4759 | ac_cpp_err=yes |
| 4760 | fi |
| 4761 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4762 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4763 | else |
| 4764 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4765 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4766 | |
| 4767 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4768 | fi |
| 4769 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4770 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4771 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4772 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4773 | # So? What about this header? |
| 4774 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 4775 | yes:no: ) |
| 4776 | { echo "$as_me:$LINENO: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4777 | echo "$as_me: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4778 | { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the compiler's result" >&5 |
| 4779 | echo "$as_me: WARNING: ctype.h: proceeding with the compiler's result" >&2;} |
| 4780 | ac_header_preproc=yes |
| 4781 | ;; |
| 4782 | no:yes:* ) |
| 4783 | { echo "$as_me:$LINENO: WARNING: ctype.h: present but cannot be compiled" >&5 |
| 4784 | echo "$as_me: WARNING: ctype.h: present but cannot be compiled" >&2;} |
| 4785 | { echo "$as_me:$LINENO: WARNING: ctype.h: check for missing prerequisite headers?" >&5 |
| 4786 | echo "$as_me: WARNING: ctype.h: check for missing prerequisite headers?" >&2;} |
| 4787 | { echo "$as_me:$LINENO: WARNING: ctype.h: see the Autoconf documentation" >&5 |
| 4788 | echo "$as_me: WARNING: ctype.h: see the Autoconf documentation" >&2;} |
| 4789 | { echo "$as_me:$LINENO: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 4790 | echo "$as_me: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 4791 | { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the preprocessor's result" >&5 |
| 4792 | echo "$as_me: WARNING: ctype.h: proceeding with the preprocessor's result" >&2;} |
| 4793 | { echo "$as_me:$LINENO: WARNING: ctype.h: in the future, the compiler will take precedence" >&5 |
| 4794 | echo "$as_me: WARNING: ctype.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4795 | ( |
| 4796 | cat <<\_ASBOX |
| 4797 | ## ------------------------------------ ## |
| 4798 | ## Report this to the pjproject lists. ## |
| 4799 | ## ------------------------------------ ## |
| 4800 | _ASBOX |
| 4801 | ) | |
| 4802 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4803 | ;; |
| 4804 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4805 | echo "$as_me:$LINENO: checking for ctype.h" >&5 |
| 4806 | echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4807 | if test "${ac_cv_header_ctype_h+set}" = set; then |
| 4808 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4809 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4810 | ac_cv_header_ctype_h=$ac_header_preproc |
| 4811 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4812 | echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5 |
| 4813 | echo "${ECHO_T}$ac_cv_header_ctype_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4814 | |
| 4815 | fi |
| 4816 | if test $ac_cv_header_ctype_h = yes; then |
| 4817 | cat >>confdefs.h <<\_ACEOF |
| 4818 | #define PJ_HAS_CTYPE_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4819 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4820 | |
| 4821 | fi |
| 4822 | |
| 4823 | |
| 4824 | |
| 4825 | case $target in |
| 4826 | *mingw* | *cygw* | *win32* | *w32* ) |
| 4827 | cat >>confdefs.h <<\_ACEOF |
| 4828 | #define PJ_HAS_ERRNO_H 0 |
| 4829 | _ACEOF |
| 4830 | |
| 4831 | ;; |
| 4832 | *) |
| 4833 | if test "${ac_cv_header_errno_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4834 | echo "$as_me:$LINENO: checking for errno.h" >&5 |
| 4835 | echo $ECHO_N "checking for errno.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4836 | if test "${ac_cv_header_errno_h+set}" = set; then |
| 4837 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4838 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4839 | echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 |
| 4840 | echo "${ECHO_T}$ac_cv_header_errno_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4841 | else |
| 4842 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4843 | echo "$as_me:$LINENO: checking errno.h usability" >&5 |
| 4844 | echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4845 | cat >conftest.$ac_ext <<_ACEOF |
| 4846 | /* confdefs.h. */ |
| 4847 | _ACEOF |
| 4848 | cat confdefs.h >>conftest.$ac_ext |
| 4849 | cat >>conftest.$ac_ext <<_ACEOF |
| 4850 | /* end confdefs.h. */ |
| 4851 | $ac_includes_default |
| 4852 | #include <errno.h> |
| 4853 | _ACEOF |
| 4854 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4855 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4856 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4857 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4858 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4859 | rm -f conftest.er1 |
| 4860 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4862 | (exit $ac_status); } && |
| 4863 | { ac_try='test -z "$ac_c_werror_flag" |
| 4864 | || test ! -s conftest.err' |
| 4865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4866 | (eval $ac_try) 2>&5 |
| 4867 | ac_status=$? |
| 4868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4869 | (exit $ac_status); }; } && |
| 4870 | { ac_try='test -s conftest.$ac_objext' |
| 4871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4872 | (eval $ac_try) 2>&5 |
| 4873 | ac_status=$? |
| 4874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4875 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4876 | ac_header_compiler=yes |
| 4877 | else |
| 4878 | echo "$as_me: failed program was:" >&5 |
| 4879 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4880 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4881 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4882 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4883 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4884 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4885 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4886 | |
| 4887 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4888 | echo "$as_me:$LINENO: checking errno.h presence" >&5 |
| 4889 | echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4890 | cat >conftest.$ac_ext <<_ACEOF |
| 4891 | /* confdefs.h. */ |
| 4892 | _ACEOF |
| 4893 | cat confdefs.h >>conftest.$ac_ext |
| 4894 | cat >>conftest.$ac_ext <<_ACEOF |
| 4895 | /* end confdefs.h. */ |
| 4896 | #include <errno.h> |
| 4897 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4898 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4899 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4900 | ac_status=$? |
| 4901 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4902 | rm -f conftest.er1 |
| 4903 | cat conftest.err >&5 |
| 4904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4905 | (exit $ac_status); } >/dev/null; then |
| 4906 | if test -s conftest.err; then |
| 4907 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4908 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4909 | else |
| 4910 | ac_cpp_err= |
| 4911 | fi |
| 4912 | else |
| 4913 | ac_cpp_err=yes |
| 4914 | fi |
| 4915 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4916 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4917 | else |
| 4918 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4919 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4920 | |
| 4921 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4922 | fi |
| 4923 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4924 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4925 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4926 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4927 | # So? What about this header? |
| 4928 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 4929 | yes:no: ) |
| 4930 | { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4931 | echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4932 | { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5 |
| 4933 | echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;} |
| 4934 | ac_header_preproc=yes |
| 4935 | ;; |
| 4936 | no:yes:* ) |
| 4937 | { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5 |
| 4938 | echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;} |
| 4939 | { echo "$as_me:$LINENO: WARNING: errno.h: check for missing prerequisite headers?" >&5 |
| 4940 | echo "$as_me: WARNING: errno.h: check for missing prerequisite headers?" >&2;} |
| 4941 | { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5 |
| 4942 | echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;} |
| 4943 | { echo "$as_me:$LINENO: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 4944 | echo "$as_me: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 4945 | { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5 |
| 4946 | echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;} |
| 4947 | { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5 |
| 4948 | echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4949 | ( |
| 4950 | cat <<\_ASBOX |
| 4951 | ## ------------------------------------ ## |
| 4952 | ## Report this to the pjproject lists. ## |
| 4953 | ## ------------------------------------ ## |
| 4954 | _ASBOX |
| 4955 | ) | |
| 4956 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4957 | ;; |
| 4958 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4959 | echo "$as_me:$LINENO: checking for errno.h" >&5 |
| 4960 | echo $ECHO_N "checking for errno.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4961 | if test "${ac_cv_header_errno_h+set}" = set; then |
| 4962 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4963 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4964 | ac_cv_header_errno_h=$ac_header_preproc |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4965 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4966 | echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 |
| 4967 | echo "${ECHO_T}$ac_cv_header_errno_h" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4968 | |
| 4969 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4970 | if test $ac_cv_header_errno_h = yes; then |
| 4971 | cat >>confdefs.h <<\_ACEOF |
| 4972 | #define PJ_HAS_ERRNO_H 1 |
| 4973 | _ACEOF |
| 4974 | |
| 4975 | fi |
| 4976 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4977 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4978 | ;; |
| 4979 | esac |
| 4980 | |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 4981 | if test "${ac_cv_header_fcntl_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4982 | echo "$as_me:$LINENO: checking for fcntl.h" >&5 |
| 4983 | echo $ECHO_N "checking for fcntl.h... $ECHO_C" >&6 |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 4984 | if test "${ac_cv_header_fcntl_h+set}" = set; then |
| 4985 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4986 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4987 | echo "$as_me:$LINENO: result: $ac_cv_header_fcntl_h" >&5 |
| 4988 | echo "${ECHO_T}$ac_cv_header_fcntl_h" >&6 |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 4989 | else |
| 4990 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 4991 | echo "$as_me:$LINENO: checking fcntl.h usability" >&5 |
| 4992 | echo $ECHO_N "checking fcntl.h usability... $ECHO_C" >&6 |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 4993 | cat >conftest.$ac_ext <<_ACEOF |
| 4994 | /* confdefs.h. */ |
| 4995 | _ACEOF |
| 4996 | cat confdefs.h >>conftest.$ac_ext |
| 4997 | cat >>conftest.$ac_ext <<_ACEOF |
| 4998 | /* end confdefs.h. */ |
| 4999 | $ac_includes_default |
| 5000 | #include <fcntl.h> |
| 5001 | _ACEOF |
| 5002 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5003 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5004 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5005 | ac_status=$? |
| 5006 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5007 | rm -f conftest.er1 |
| 5008 | cat conftest.err >&5 |
| 5009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5010 | (exit $ac_status); } && |
| 5011 | { ac_try='test -z "$ac_c_werror_flag" |
| 5012 | || test ! -s conftest.err' |
| 5013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5014 | (eval $ac_try) 2>&5 |
| 5015 | ac_status=$? |
| 5016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5017 | (exit $ac_status); }; } && |
| 5018 | { ac_try='test -s conftest.$ac_objext' |
| 5019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5020 | (eval $ac_try) 2>&5 |
| 5021 | ac_status=$? |
| 5022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5023 | (exit $ac_status); }; }; then |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5024 | ac_header_compiler=yes |
| 5025 | else |
| 5026 | echo "$as_me: failed program was:" >&5 |
| 5027 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5028 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5029 | ac_header_compiler=no |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5030 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5031 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5032 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5033 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5034 | |
| 5035 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5036 | echo "$as_me:$LINENO: checking fcntl.h presence" >&5 |
| 5037 | echo $ECHO_N "checking fcntl.h presence... $ECHO_C" >&6 |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5038 | cat >conftest.$ac_ext <<_ACEOF |
| 5039 | /* confdefs.h. */ |
| 5040 | _ACEOF |
| 5041 | cat confdefs.h >>conftest.$ac_ext |
| 5042 | cat >>conftest.$ac_ext <<_ACEOF |
| 5043 | /* end confdefs.h. */ |
| 5044 | #include <fcntl.h> |
| 5045 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5046 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5047 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5048 | ac_status=$? |
| 5049 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5050 | rm -f conftest.er1 |
| 5051 | cat conftest.err >&5 |
| 5052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5053 | (exit $ac_status); } >/dev/null; then |
| 5054 | if test -s conftest.err; then |
| 5055 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5056 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5057 | else |
| 5058 | ac_cpp_err= |
| 5059 | fi |
| 5060 | else |
| 5061 | ac_cpp_err=yes |
| 5062 | fi |
| 5063 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5064 | ac_header_preproc=yes |
| 5065 | else |
| 5066 | echo "$as_me: failed program was:" >&5 |
| 5067 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5068 | |
| 5069 | ac_header_preproc=no |
| 5070 | fi |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5071 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5072 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5073 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5074 | |
| 5075 | # So? What about this header? |
| 5076 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5077 | yes:no: ) |
| 5078 | { echo "$as_me:$LINENO: WARNING: fcntl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5079 | echo "$as_me: WARNING: fcntl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5080 | { echo "$as_me:$LINENO: WARNING: fcntl.h: proceeding with the compiler's result" >&5 |
| 5081 | echo "$as_me: WARNING: fcntl.h: proceeding with the compiler's result" >&2;} |
| 5082 | ac_header_preproc=yes |
| 5083 | ;; |
| 5084 | no:yes:* ) |
| 5085 | { echo "$as_me:$LINENO: WARNING: fcntl.h: present but cannot be compiled" >&5 |
| 5086 | echo "$as_me: WARNING: fcntl.h: present but cannot be compiled" >&2;} |
| 5087 | { echo "$as_me:$LINENO: WARNING: fcntl.h: check for missing prerequisite headers?" >&5 |
| 5088 | echo "$as_me: WARNING: fcntl.h: check for missing prerequisite headers?" >&2;} |
| 5089 | { echo "$as_me:$LINENO: WARNING: fcntl.h: see the Autoconf documentation" >&5 |
| 5090 | echo "$as_me: WARNING: fcntl.h: see the Autoconf documentation" >&2;} |
| 5091 | { echo "$as_me:$LINENO: WARNING: fcntl.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5092 | echo "$as_me: WARNING: fcntl.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5093 | { echo "$as_me:$LINENO: WARNING: fcntl.h: proceeding with the preprocessor's result" >&5 |
| 5094 | echo "$as_me: WARNING: fcntl.h: proceeding with the preprocessor's result" >&2;} |
| 5095 | { echo "$as_me:$LINENO: WARNING: fcntl.h: in the future, the compiler will take precedence" >&5 |
| 5096 | echo "$as_me: WARNING: fcntl.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5097 | ( |
| 5098 | cat <<\_ASBOX |
| 5099 | ## ------------------------------------ ## |
| 5100 | ## Report this to the pjproject lists. ## |
| 5101 | ## ------------------------------------ ## |
| 5102 | _ASBOX |
| 5103 | ) | |
| 5104 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5105 | ;; |
| 5106 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5107 | echo "$as_me:$LINENO: checking for fcntl.h" >&5 |
| 5108 | echo $ECHO_N "checking for fcntl.h... $ECHO_C" >&6 |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5109 | if test "${ac_cv_header_fcntl_h+set}" = set; then |
| 5110 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5111 | else |
| 5112 | ac_cv_header_fcntl_h=$ac_header_preproc |
| 5113 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5114 | echo "$as_me:$LINENO: result: $ac_cv_header_fcntl_h" >&5 |
| 5115 | echo "${ECHO_T}$ac_cv_header_fcntl_h" >&6 |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5116 | |
| 5117 | fi |
| 5118 | if test $ac_cv_header_fcntl_h = yes; then |
| 5119 | cat >>confdefs.h <<\_ACEOF |
| 5120 | #define PJ_HAS_FCNTL_H 1 |
| 5121 | _ACEOF |
| 5122 | |
| 5123 | fi |
| 5124 | |
| 5125 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5126 | if test "${ac_cv_header_linux_socket_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5127 | echo "$as_me:$LINENO: checking for linux/socket.h" >&5 |
| 5128 | echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5129 | if test "${ac_cv_header_linux_socket_h+set}" = set; then |
| 5130 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5131 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5132 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5 |
| 5133 | echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5134 | else |
| 5135 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5136 | echo "$as_me:$LINENO: checking linux/socket.h usability" >&5 |
| 5137 | echo $ECHO_N "checking linux/socket.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5138 | cat >conftest.$ac_ext <<_ACEOF |
| 5139 | /* confdefs.h. */ |
| 5140 | _ACEOF |
| 5141 | cat confdefs.h >>conftest.$ac_ext |
| 5142 | cat >>conftest.$ac_ext <<_ACEOF |
| 5143 | /* end confdefs.h. */ |
| 5144 | $ac_includes_default |
| 5145 | #include <linux/socket.h> |
| 5146 | _ACEOF |
| 5147 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5148 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5149 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5150 | ac_status=$? |
| 5151 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5152 | rm -f conftest.er1 |
| 5153 | cat conftest.err >&5 |
| 5154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5155 | (exit $ac_status); } && |
| 5156 | { ac_try='test -z "$ac_c_werror_flag" |
| 5157 | || test ! -s conftest.err' |
| 5158 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5159 | (eval $ac_try) 2>&5 |
| 5160 | ac_status=$? |
| 5161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5162 | (exit $ac_status); }; } && |
| 5163 | { ac_try='test -s conftest.$ac_objext' |
| 5164 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5165 | (eval $ac_try) 2>&5 |
| 5166 | ac_status=$? |
| 5167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5168 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5169 | ac_header_compiler=yes |
| 5170 | else |
| 5171 | echo "$as_me: failed program was:" >&5 |
| 5172 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5173 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5174 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5175 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5176 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5177 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5178 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5179 | |
| 5180 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5181 | echo "$as_me:$LINENO: checking linux/socket.h presence" >&5 |
| 5182 | echo $ECHO_N "checking linux/socket.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5183 | cat >conftest.$ac_ext <<_ACEOF |
| 5184 | /* confdefs.h. */ |
| 5185 | _ACEOF |
| 5186 | cat confdefs.h >>conftest.$ac_ext |
| 5187 | cat >>conftest.$ac_ext <<_ACEOF |
| 5188 | /* end confdefs.h. */ |
| 5189 | #include <linux/socket.h> |
| 5190 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5191 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5192 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5193 | ac_status=$? |
| 5194 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5195 | rm -f conftest.er1 |
| 5196 | cat conftest.err >&5 |
| 5197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5198 | (exit $ac_status); } >/dev/null; then |
| 5199 | if test -s conftest.err; then |
| 5200 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5201 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5202 | else |
| 5203 | ac_cpp_err= |
| 5204 | fi |
| 5205 | else |
| 5206 | ac_cpp_err=yes |
| 5207 | fi |
| 5208 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5209 | ac_header_preproc=yes |
| 5210 | else |
| 5211 | echo "$as_me: failed program was:" >&5 |
| 5212 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5213 | |
| 5214 | ac_header_preproc=no |
| 5215 | fi |
| 5216 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5217 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5218 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5219 | |
| 5220 | # So? What about this header? |
| 5221 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5222 | yes:no: ) |
| 5223 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5224 | echo "$as_me: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5225 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the compiler's result" >&5 |
| 5226 | echo "$as_me: WARNING: linux/socket.h: proceeding with the compiler's result" >&2;} |
| 5227 | ac_header_preproc=yes |
| 5228 | ;; |
| 5229 | no:yes:* ) |
| 5230 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: present but cannot be compiled" >&5 |
| 5231 | echo "$as_me: WARNING: linux/socket.h: present but cannot be compiled" >&2;} |
| 5232 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: check for missing prerequisite headers?" >&5 |
| 5233 | echo "$as_me: WARNING: linux/socket.h: check for missing prerequisite headers?" >&2;} |
| 5234 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: see the Autoconf documentation" >&5 |
| 5235 | echo "$as_me: WARNING: linux/socket.h: see the Autoconf documentation" >&2;} |
| 5236 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5237 | echo "$as_me: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5238 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&5 |
| 5239 | echo "$as_me: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&2;} |
| 5240 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&5 |
| 5241 | echo "$as_me: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5242 | ( |
| 5243 | cat <<\_ASBOX |
| 5244 | ## ------------------------------------ ## |
| 5245 | ## Report this to the pjproject lists. ## |
| 5246 | ## ------------------------------------ ## |
| 5247 | _ASBOX |
| 5248 | ) | |
| 5249 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5250 | ;; |
| 5251 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5252 | echo "$as_me:$LINENO: checking for linux/socket.h" >&5 |
| 5253 | echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5254 | if test "${ac_cv_header_linux_socket_h+set}" = set; then |
| 5255 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5256 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5257 | ac_cv_header_linux_socket_h=$ac_header_preproc |
| 5258 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5259 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5 |
| 5260 | echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5261 | |
| 5262 | fi |
| 5263 | if test $ac_cv_header_linux_socket_h = yes; then |
| 5264 | cat >>confdefs.h <<\_ACEOF |
| 5265 | #define PJ_HAS_LINUX_SOCKET_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5266 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5267 | |
| 5268 | fi |
| 5269 | |
| 5270 | |
| 5271 | if test "${ac_cv_header_malloc_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5272 | echo "$as_me:$LINENO: checking for malloc.h" >&5 |
| 5273 | echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5274 | if test "${ac_cv_header_malloc_h+set}" = set; then |
| 5275 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5276 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5277 | echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5 |
| 5278 | echo "${ECHO_T}$ac_cv_header_malloc_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5279 | else |
| 5280 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5281 | echo "$as_me:$LINENO: checking malloc.h usability" >&5 |
| 5282 | echo $ECHO_N "checking malloc.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5283 | cat >conftest.$ac_ext <<_ACEOF |
| 5284 | /* confdefs.h. */ |
| 5285 | _ACEOF |
| 5286 | cat confdefs.h >>conftest.$ac_ext |
| 5287 | cat >>conftest.$ac_ext <<_ACEOF |
| 5288 | /* end confdefs.h. */ |
| 5289 | $ac_includes_default |
| 5290 | #include <malloc.h> |
| 5291 | _ACEOF |
| 5292 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5293 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5294 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5295 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5296 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5297 | rm -f conftest.er1 |
| 5298 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5300 | (exit $ac_status); } && |
| 5301 | { ac_try='test -z "$ac_c_werror_flag" |
| 5302 | || test ! -s conftest.err' |
| 5303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5304 | (eval $ac_try) 2>&5 |
| 5305 | ac_status=$? |
| 5306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5307 | (exit $ac_status); }; } && |
| 5308 | { ac_try='test -s conftest.$ac_objext' |
| 5309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5310 | (eval $ac_try) 2>&5 |
| 5311 | ac_status=$? |
| 5312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5313 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5314 | ac_header_compiler=yes |
| 5315 | else |
| 5316 | echo "$as_me: failed program was:" >&5 |
| 5317 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5318 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5319 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5320 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5321 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5322 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5323 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5324 | |
| 5325 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5326 | echo "$as_me:$LINENO: checking malloc.h presence" >&5 |
| 5327 | echo $ECHO_N "checking malloc.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5328 | cat >conftest.$ac_ext <<_ACEOF |
| 5329 | /* confdefs.h. */ |
| 5330 | _ACEOF |
| 5331 | cat confdefs.h >>conftest.$ac_ext |
| 5332 | cat >>conftest.$ac_ext <<_ACEOF |
| 5333 | /* end confdefs.h. */ |
| 5334 | #include <malloc.h> |
| 5335 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5336 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5337 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5338 | ac_status=$? |
| 5339 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5340 | rm -f conftest.er1 |
| 5341 | cat conftest.err >&5 |
| 5342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5343 | (exit $ac_status); } >/dev/null; then |
| 5344 | if test -s conftest.err; then |
| 5345 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5346 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5347 | else |
| 5348 | ac_cpp_err= |
| 5349 | fi |
| 5350 | else |
| 5351 | ac_cpp_err=yes |
| 5352 | fi |
| 5353 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5354 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5355 | else |
| 5356 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5357 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5358 | |
| 5359 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5360 | fi |
| 5361 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5362 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5363 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5364 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5365 | # So? What about this header? |
| 5366 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5367 | yes:no: ) |
| 5368 | { echo "$as_me:$LINENO: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5369 | echo "$as_me: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5370 | { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the compiler's result" >&5 |
| 5371 | echo "$as_me: WARNING: malloc.h: proceeding with the compiler's result" >&2;} |
| 5372 | ac_header_preproc=yes |
| 5373 | ;; |
| 5374 | no:yes:* ) |
| 5375 | { echo "$as_me:$LINENO: WARNING: malloc.h: present but cannot be compiled" >&5 |
| 5376 | echo "$as_me: WARNING: malloc.h: present but cannot be compiled" >&2;} |
| 5377 | { echo "$as_me:$LINENO: WARNING: malloc.h: check for missing prerequisite headers?" >&5 |
| 5378 | echo "$as_me: WARNING: malloc.h: check for missing prerequisite headers?" >&2;} |
| 5379 | { echo "$as_me:$LINENO: WARNING: malloc.h: see the Autoconf documentation" >&5 |
| 5380 | echo "$as_me: WARNING: malloc.h: see the Autoconf documentation" >&2;} |
| 5381 | { echo "$as_me:$LINENO: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5382 | echo "$as_me: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5383 | { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the preprocessor's result" >&5 |
| 5384 | echo "$as_me: WARNING: malloc.h: proceeding with the preprocessor's result" >&2;} |
| 5385 | { echo "$as_me:$LINENO: WARNING: malloc.h: in the future, the compiler will take precedence" >&5 |
| 5386 | echo "$as_me: WARNING: malloc.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5387 | ( |
| 5388 | cat <<\_ASBOX |
| 5389 | ## ------------------------------------ ## |
| 5390 | ## Report this to the pjproject lists. ## |
| 5391 | ## ------------------------------------ ## |
| 5392 | _ASBOX |
| 5393 | ) | |
| 5394 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5395 | ;; |
| 5396 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5397 | echo "$as_me:$LINENO: checking for malloc.h" >&5 |
| 5398 | echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5399 | if test "${ac_cv_header_malloc_h+set}" = set; then |
| 5400 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5401 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5402 | ac_cv_header_malloc_h=$ac_header_preproc |
| 5403 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5404 | echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5 |
| 5405 | echo "${ECHO_T}$ac_cv_header_malloc_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5406 | |
| 5407 | fi |
| 5408 | if test $ac_cv_header_malloc_h = yes; then |
| 5409 | cat >>confdefs.h <<\_ACEOF |
| 5410 | #define PJ_HAS_MALLOC_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5411 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5412 | |
| 5413 | fi |
| 5414 | |
| 5415 | |
| 5416 | if test "${ac_cv_header_netdb_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5417 | echo "$as_me:$LINENO: checking for netdb.h" >&5 |
| 5418 | echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5419 | if test "${ac_cv_header_netdb_h+set}" = set; then |
| 5420 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5421 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5422 | echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5 |
| 5423 | echo "${ECHO_T}$ac_cv_header_netdb_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5424 | else |
| 5425 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5426 | echo "$as_me:$LINENO: checking netdb.h usability" >&5 |
| 5427 | echo $ECHO_N "checking netdb.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5428 | cat >conftest.$ac_ext <<_ACEOF |
| 5429 | /* confdefs.h. */ |
| 5430 | _ACEOF |
| 5431 | cat confdefs.h >>conftest.$ac_ext |
| 5432 | cat >>conftest.$ac_ext <<_ACEOF |
| 5433 | /* end confdefs.h. */ |
| 5434 | $ac_includes_default |
| 5435 | #include <netdb.h> |
| 5436 | _ACEOF |
| 5437 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5438 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5439 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5440 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5441 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5442 | rm -f conftest.er1 |
| 5443 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5445 | (exit $ac_status); } && |
| 5446 | { ac_try='test -z "$ac_c_werror_flag" |
| 5447 | || test ! -s conftest.err' |
| 5448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5449 | (eval $ac_try) 2>&5 |
| 5450 | ac_status=$? |
| 5451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5452 | (exit $ac_status); }; } && |
| 5453 | { ac_try='test -s conftest.$ac_objext' |
| 5454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5455 | (eval $ac_try) 2>&5 |
| 5456 | ac_status=$? |
| 5457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5458 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5459 | ac_header_compiler=yes |
| 5460 | else |
| 5461 | echo "$as_me: failed program was:" >&5 |
| 5462 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5463 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5464 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5465 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5466 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5467 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5468 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5469 | |
| 5470 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5471 | echo "$as_me:$LINENO: checking netdb.h presence" >&5 |
| 5472 | echo $ECHO_N "checking netdb.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5473 | cat >conftest.$ac_ext <<_ACEOF |
| 5474 | /* confdefs.h. */ |
| 5475 | _ACEOF |
| 5476 | cat confdefs.h >>conftest.$ac_ext |
| 5477 | cat >>conftest.$ac_ext <<_ACEOF |
| 5478 | /* end confdefs.h. */ |
| 5479 | #include <netdb.h> |
| 5480 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5481 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5482 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5483 | ac_status=$? |
| 5484 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5485 | rm -f conftest.er1 |
| 5486 | cat conftest.err >&5 |
| 5487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5488 | (exit $ac_status); } >/dev/null; then |
| 5489 | if test -s conftest.err; then |
| 5490 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5491 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5492 | else |
| 5493 | ac_cpp_err= |
| 5494 | fi |
| 5495 | else |
| 5496 | ac_cpp_err=yes |
| 5497 | fi |
| 5498 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5499 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5500 | else |
| 5501 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5502 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5503 | |
| 5504 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5505 | fi |
| 5506 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5507 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5508 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5509 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5510 | # So? What about this header? |
| 5511 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5512 | yes:no: ) |
| 5513 | { echo "$as_me:$LINENO: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5514 | echo "$as_me: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5515 | { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the compiler's result" >&5 |
| 5516 | echo "$as_me: WARNING: netdb.h: proceeding with the compiler's result" >&2;} |
| 5517 | ac_header_preproc=yes |
| 5518 | ;; |
| 5519 | no:yes:* ) |
| 5520 | { echo "$as_me:$LINENO: WARNING: netdb.h: present but cannot be compiled" >&5 |
| 5521 | echo "$as_me: WARNING: netdb.h: present but cannot be compiled" >&2;} |
| 5522 | { echo "$as_me:$LINENO: WARNING: netdb.h: check for missing prerequisite headers?" >&5 |
| 5523 | echo "$as_me: WARNING: netdb.h: check for missing prerequisite headers?" >&2;} |
| 5524 | { echo "$as_me:$LINENO: WARNING: netdb.h: see the Autoconf documentation" >&5 |
| 5525 | echo "$as_me: WARNING: netdb.h: see the Autoconf documentation" >&2;} |
| 5526 | { echo "$as_me:$LINENO: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5527 | echo "$as_me: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5528 | { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the preprocessor's result" >&5 |
| 5529 | echo "$as_me: WARNING: netdb.h: proceeding with the preprocessor's result" >&2;} |
| 5530 | { echo "$as_me:$LINENO: WARNING: netdb.h: in the future, the compiler will take precedence" >&5 |
| 5531 | echo "$as_me: WARNING: netdb.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5532 | ( |
| 5533 | cat <<\_ASBOX |
| 5534 | ## ------------------------------------ ## |
| 5535 | ## Report this to the pjproject lists. ## |
| 5536 | ## ------------------------------------ ## |
| 5537 | _ASBOX |
| 5538 | ) | |
| 5539 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5540 | ;; |
| 5541 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5542 | echo "$as_me:$LINENO: checking for netdb.h" >&5 |
| 5543 | echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5544 | if test "${ac_cv_header_netdb_h+set}" = set; then |
| 5545 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5546 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5547 | ac_cv_header_netdb_h=$ac_header_preproc |
| 5548 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5549 | echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5 |
| 5550 | echo "${ECHO_T}$ac_cv_header_netdb_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5551 | |
| 5552 | fi |
| 5553 | if test $ac_cv_header_netdb_h = yes; then |
| 5554 | cat >>confdefs.h <<\_ACEOF |
| 5555 | #define PJ_HAS_NETDB_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5556 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5557 | |
| 5558 | fi |
| 5559 | |
| 5560 | |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 5561 | if test "${ac_cv_header_netinet_in_systm_h+set}" = set; then |
| 5562 | echo "$as_me:$LINENO: checking for netinet/in_systm.h" >&5 |
| 5563 | echo $ECHO_N "checking for netinet/in_systm.h... $ECHO_C" >&6 |
| 5564 | if test "${ac_cv_header_netinet_in_systm_h+set}" = set; then |
| 5565 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5566 | fi |
| 5567 | echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_systm_h" >&5 |
| 5568 | echo "${ECHO_T}$ac_cv_header_netinet_in_systm_h" >&6 |
| 5569 | else |
| 5570 | # Is the header compilable? |
| 5571 | echo "$as_me:$LINENO: checking netinet/in_systm.h usability" >&5 |
| 5572 | echo $ECHO_N "checking netinet/in_systm.h usability... $ECHO_C" >&6 |
| 5573 | cat >conftest.$ac_ext <<_ACEOF |
| 5574 | /* confdefs.h. */ |
| 5575 | _ACEOF |
| 5576 | cat confdefs.h >>conftest.$ac_ext |
| 5577 | cat >>conftest.$ac_ext <<_ACEOF |
| 5578 | /* end confdefs.h. */ |
| 5579 | $ac_includes_default |
| 5580 | #include <netinet/in_systm.h> |
| 5581 | _ACEOF |
| 5582 | rm -f conftest.$ac_objext |
| 5583 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5584 | (eval $ac_compile) 2>conftest.er1 |
| 5585 | ac_status=$? |
| 5586 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5587 | rm -f conftest.er1 |
| 5588 | cat conftest.err >&5 |
| 5589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5590 | (exit $ac_status); } && |
| 5591 | { ac_try='test -z "$ac_c_werror_flag" |
| 5592 | || test ! -s conftest.err' |
| 5593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5594 | (eval $ac_try) 2>&5 |
| 5595 | ac_status=$? |
| 5596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5597 | (exit $ac_status); }; } && |
| 5598 | { ac_try='test -s conftest.$ac_objext' |
| 5599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5600 | (eval $ac_try) 2>&5 |
| 5601 | ac_status=$? |
| 5602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5603 | (exit $ac_status); }; }; then |
| 5604 | ac_header_compiler=yes |
| 5605 | else |
| 5606 | echo "$as_me: failed program was:" >&5 |
| 5607 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5608 | |
| 5609 | ac_header_compiler=no |
| 5610 | fi |
| 5611 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5612 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5613 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5614 | |
| 5615 | # Is the header present? |
| 5616 | echo "$as_me:$LINENO: checking netinet/in_systm.h presence" >&5 |
| 5617 | echo $ECHO_N "checking netinet/in_systm.h presence... $ECHO_C" >&6 |
| 5618 | cat >conftest.$ac_ext <<_ACEOF |
| 5619 | /* confdefs.h. */ |
| 5620 | _ACEOF |
| 5621 | cat confdefs.h >>conftest.$ac_ext |
| 5622 | cat >>conftest.$ac_ext <<_ACEOF |
| 5623 | /* end confdefs.h. */ |
| 5624 | #include <netinet/in_systm.h> |
| 5625 | _ACEOF |
| 5626 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5627 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5628 | ac_status=$? |
| 5629 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5630 | rm -f conftest.er1 |
| 5631 | cat conftest.err >&5 |
| 5632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5633 | (exit $ac_status); } >/dev/null; then |
| 5634 | if test -s conftest.err; then |
| 5635 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5636 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5637 | else |
| 5638 | ac_cpp_err= |
| 5639 | fi |
| 5640 | else |
| 5641 | ac_cpp_err=yes |
| 5642 | fi |
| 5643 | if test -z "$ac_cpp_err"; then |
| 5644 | ac_header_preproc=yes |
| 5645 | else |
| 5646 | echo "$as_me: failed program was:" >&5 |
| 5647 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5648 | |
| 5649 | ac_header_preproc=no |
| 5650 | fi |
| 5651 | rm -f conftest.err conftest.$ac_ext |
| 5652 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5653 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 5654 | |
| 5655 | # So? What about this header? |
| 5656 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5657 | yes:no: ) |
| 5658 | { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5659 | echo "$as_me: WARNING: netinet/in_systm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5660 | { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: proceeding with the compiler's result" >&5 |
| 5661 | echo "$as_me: WARNING: netinet/in_systm.h: proceeding with the compiler's result" >&2;} |
| 5662 | ac_header_preproc=yes |
| 5663 | ;; |
| 5664 | no:yes:* ) |
| 5665 | { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: present but cannot be compiled" >&5 |
| 5666 | echo "$as_me: WARNING: netinet/in_systm.h: present but cannot be compiled" >&2;} |
| 5667 | { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: check for missing prerequisite headers?" >&5 |
| 5668 | echo "$as_me: WARNING: netinet/in_systm.h: check for missing prerequisite headers?" >&2;} |
| 5669 | { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: see the Autoconf documentation" >&5 |
| 5670 | echo "$as_me: WARNING: netinet/in_systm.h: see the Autoconf documentation" >&2;} |
| 5671 | { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5672 | echo "$as_me: WARNING: netinet/in_systm.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5673 | { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: proceeding with the preprocessor's result" >&5 |
| 5674 | echo "$as_me: WARNING: netinet/in_systm.h: proceeding with the preprocessor's result" >&2;} |
| 5675 | { echo "$as_me:$LINENO: WARNING: netinet/in_systm.h: in the future, the compiler will take precedence" >&5 |
| 5676 | echo "$as_me: WARNING: netinet/in_systm.h: in the future, the compiler will take precedence" >&2;} |
| 5677 | ( |
| 5678 | cat <<\_ASBOX |
| 5679 | ## ------------------------------------ ## |
| 5680 | ## Report this to the pjproject lists. ## |
| 5681 | ## ------------------------------------ ## |
| 5682 | _ASBOX |
| 5683 | ) | |
| 5684 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5685 | ;; |
| 5686 | esac |
| 5687 | echo "$as_me:$LINENO: checking for netinet/in_systm.h" >&5 |
| 5688 | echo $ECHO_N "checking for netinet/in_systm.h... $ECHO_C" >&6 |
| 5689 | if test "${ac_cv_header_netinet_in_systm_h+set}" = set; then |
| 5690 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5691 | else |
| 5692 | ac_cv_header_netinet_in_systm_h=$ac_header_preproc |
| 5693 | fi |
| 5694 | echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_systm_h" >&5 |
| 5695 | echo "${ECHO_T}$ac_cv_header_netinet_in_systm_h" >&6 |
| 5696 | |
| 5697 | fi |
| 5698 | if test $ac_cv_header_netinet_in_systm_h = yes; then |
| 5699 | cat >>confdefs.h <<\_ACEOF |
| 5700 | #define PJ_HAS_NETINET_IN_SYSTM_H 1 |
| 5701 | _ACEOF |
| 5702 | |
| 5703 | fi |
| 5704 | |
| 5705 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5706 | if test "${ac_cv_header_netinet_in_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5707 | echo "$as_me:$LINENO: checking for netinet/in.h" >&5 |
| 5708 | echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5709 | if test "${ac_cv_header_netinet_in_h+set}" = set; then |
| 5710 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5711 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5712 | echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5 |
| 5713 | echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5714 | else |
| 5715 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5716 | echo "$as_me:$LINENO: checking netinet/in.h usability" >&5 |
| 5717 | echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5718 | cat >conftest.$ac_ext <<_ACEOF |
| 5719 | /* confdefs.h. */ |
| 5720 | _ACEOF |
| 5721 | cat confdefs.h >>conftest.$ac_ext |
| 5722 | cat >>conftest.$ac_ext <<_ACEOF |
| 5723 | /* end confdefs.h. */ |
| 5724 | $ac_includes_default |
| 5725 | #include <netinet/in.h> |
| 5726 | _ACEOF |
| 5727 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5728 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5729 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5730 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5731 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5732 | rm -f conftest.er1 |
| 5733 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5735 | (exit $ac_status); } && |
| 5736 | { ac_try='test -z "$ac_c_werror_flag" |
| 5737 | || test ! -s conftest.err' |
| 5738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5739 | (eval $ac_try) 2>&5 |
| 5740 | ac_status=$? |
| 5741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5742 | (exit $ac_status); }; } && |
| 5743 | { ac_try='test -s conftest.$ac_objext' |
| 5744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5745 | (eval $ac_try) 2>&5 |
| 5746 | ac_status=$? |
| 5747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5748 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5749 | ac_header_compiler=yes |
| 5750 | else |
| 5751 | echo "$as_me: failed program was:" >&5 |
| 5752 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5753 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5754 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5755 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5756 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5757 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5758 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5759 | |
| 5760 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5761 | echo "$as_me:$LINENO: checking netinet/in.h presence" >&5 |
| 5762 | echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5763 | cat >conftest.$ac_ext <<_ACEOF |
| 5764 | /* confdefs.h. */ |
| 5765 | _ACEOF |
| 5766 | cat confdefs.h >>conftest.$ac_ext |
| 5767 | cat >>conftest.$ac_ext <<_ACEOF |
| 5768 | /* end confdefs.h. */ |
| 5769 | #include <netinet/in.h> |
| 5770 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5771 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5772 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5773 | ac_status=$? |
| 5774 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5775 | rm -f conftest.er1 |
| 5776 | cat conftest.err >&5 |
| 5777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5778 | (exit $ac_status); } >/dev/null; then |
| 5779 | if test -s conftest.err; then |
| 5780 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5781 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5782 | else |
| 5783 | ac_cpp_err= |
| 5784 | fi |
| 5785 | else |
| 5786 | ac_cpp_err=yes |
| 5787 | fi |
| 5788 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5789 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5790 | else |
| 5791 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5792 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5793 | |
| 5794 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5795 | fi |
| 5796 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5797 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5798 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5799 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5800 | # So? What about this header? |
| 5801 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5802 | yes:no: ) |
| 5803 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5804 | echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5805 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5 |
| 5806 | echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;} |
| 5807 | ac_header_preproc=yes |
| 5808 | ;; |
| 5809 | no:yes:* ) |
| 5810 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5 |
| 5811 | echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;} |
| 5812 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5 |
| 5813 | echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;} |
| 5814 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5 |
| 5815 | echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;} |
| 5816 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5817 | echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5818 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5 |
| 5819 | echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;} |
| 5820 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5 |
| 5821 | echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5822 | ( |
| 5823 | cat <<\_ASBOX |
| 5824 | ## ------------------------------------ ## |
| 5825 | ## Report this to the pjproject lists. ## |
| 5826 | ## ------------------------------------ ## |
| 5827 | _ASBOX |
| 5828 | ) | |
| 5829 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5830 | ;; |
| 5831 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5832 | echo "$as_me:$LINENO: checking for netinet/in.h" >&5 |
| 5833 | echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5834 | if test "${ac_cv_header_netinet_in_h+set}" = set; then |
| 5835 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5836 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5837 | ac_cv_header_netinet_in_h=$ac_header_preproc |
| 5838 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5839 | echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5 |
| 5840 | echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5841 | |
| 5842 | fi |
| 5843 | if test $ac_cv_header_netinet_in_h = yes; then |
| 5844 | cat >>confdefs.h <<\_ACEOF |
| 5845 | #define PJ_HAS_NETINET_IN_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5846 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5847 | |
| 5848 | fi |
| 5849 | |
| 5850 | |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 5851 | echo "$as_me:$LINENO: checking for netinet/ip.h" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5852 | echo $ECHO_N "checking for netinet/ip.h... $ECHO_C" >&6 |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 5853 | if test "${ac_cv_header_netinet_ip_h+set}" = set; then |
| 5854 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 5855 | else |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 5856 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 5857 | /* confdefs.h. */ |
| 5858 | _ACEOF |
| 5859 | cat confdefs.h >>conftest.$ac_ext |
| 5860 | cat >>conftest.$ac_ext <<_ACEOF |
| 5861 | /* end confdefs.h. */ |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 5862 | #if PJ_HAS_NETINET_IN_SYSTM_H |
| 5863 | # include <netinet/in_systm.h> |
| 5864 | #endif |
| 5865 | |
| 5866 | |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 5867 | #include <netinet/ip.h> |
| 5868 | _ACEOF |
| 5869 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5870 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5871 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 5872 | ac_status=$? |
| 5873 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5874 | rm -f conftest.er1 |
| 5875 | cat conftest.err >&5 |
| 5876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5877 | (exit $ac_status); } && |
| 5878 | { ac_try='test -z "$ac_c_werror_flag" |
| 5879 | || test ! -s conftest.err' |
| 5880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5881 | (eval $ac_try) 2>&5 |
| 5882 | ac_status=$? |
| 5883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5884 | (exit $ac_status); }; } && |
| 5885 | { ac_try='test -s conftest.$ac_objext' |
| 5886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5887 | (eval $ac_try) 2>&5 |
| 5888 | ac_status=$? |
| 5889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5890 | (exit $ac_status); }; }; then |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 5891 | ac_cv_header_netinet_ip_h=yes |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 5892 | else |
| 5893 | echo "$as_me: failed program was:" >&5 |
| 5894 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5895 | |
Benny Prijono | 37fc9de | 2008-08-04 14:45:02 +0000 | [diff] [blame] | 5896 | ac_cv_header_netinet_ip_h=no |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 5897 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5898 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 5899 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5900 | echo "$as_me:$LINENO: result: $ac_cv_header_netinet_ip_h" >&5 |
| 5901 | echo "${ECHO_T}$ac_cv_header_netinet_ip_h" >&6 |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 5902 | if test $ac_cv_header_netinet_ip_h = yes; then |
| 5903 | cat >>confdefs.h <<\_ACEOF |
| 5904 | #define PJ_HAS_NETINET_IP_H 1 |
| 5905 | _ACEOF |
| 5906 | |
| 5907 | fi |
| 5908 | |
| 5909 | |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 5910 | if test "${ac_cv_header_ifaddrs_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5911 | echo "$as_me:$LINENO: checking for ifaddrs.h" >&5 |
| 5912 | echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6 |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 5913 | if test "${ac_cv_header_ifaddrs_h+set}" = set; then |
| 5914 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5915 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5916 | echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5 |
| 5917 | echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6 |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 5918 | else |
| 5919 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5920 | echo "$as_me:$LINENO: checking ifaddrs.h usability" >&5 |
| 5921 | echo $ECHO_N "checking ifaddrs.h usability... $ECHO_C" >&6 |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 5922 | cat >conftest.$ac_ext <<_ACEOF |
| 5923 | /* confdefs.h. */ |
| 5924 | _ACEOF |
| 5925 | cat confdefs.h >>conftest.$ac_ext |
| 5926 | cat >>conftest.$ac_ext <<_ACEOF |
| 5927 | /* end confdefs.h. */ |
| 5928 | $ac_includes_default |
| 5929 | #include <ifaddrs.h> |
| 5930 | _ACEOF |
| 5931 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5932 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5933 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 5934 | ac_status=$? |
| 5935 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5936 | rm -f conftest.er1 |
| 5937 | cat conftest.err >&5 |
| 5938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5939 | (exit $ac_status); } && |
| 5940 | { ac_try='test -z "$ac_c_werror_flag" |
| 5941 | || test ! -s conftest.err' |
| 5942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5943 | (eval $ac_try) 2>&5 |
| 5944 | ac_status=$? |
| 5945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5946 | (exit $ac_status); }; } && |
| 5947 | { ac_try='test -s conftest.$ac_objext' |
| 5948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5949 | (eval $ac_try) 2>&5 |
| 5950 | ac_status=$? |
| 5951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5952 | (exit $ac_status); }; }; then |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 5953 | ac_header_compiler=yes |
| 5954 | else |
| 5955 | echo "$as_me: failed program was:" >&5 |
| 5956 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5957 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5958 | ac_header_compiler=no |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 5959 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5960 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5961 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5962 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 5963 | |
| 5964 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5965 | echo "$as_me:$LINENO: checking ifaddrs.h presence" >&5 |
| 5966 | echo $ECHO_N "checking ifaddrs.h presence... $ECHO_C" >&6 |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 5967 | cat >conftest.$ac_ext <<_ACEOF |
| 5968 | /* confdefs.h. */ |
| 5969 | _ACEOF |
| 5970 | cat confdefs.h >>conftest.$ac_ext |
| 5971 | cat >>conftest.$ac_ext <<_ACEOF |
| 5972 | /* end confdefs.h. */ |
| 5973 | #include <ifaddrs.h> |
| 5974 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5975 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5976 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 5977 | ac_status=$? |
| 5978 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5979 | rm -f conftest.er1 |
| 5980 | cat conftest.err >&5 |
| 5981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 5982 | (exit $ac_status); } >/dev/null; then |
| 5983 | if test -s conftest.err; then |
| 5984 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5985 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5986 | else |
| 5987 | ac_cpp_err= |
| 5988 | fi |
| 5989 | else |
| 5990 | ac_cpp_err=yes |
| 5991 | fi |
| 5992 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 5993 | ac_header_preproc=yes |
| 5994 | else |
| 5995 | echo "$as_me: failed program was:" >&5 |
| 5996 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5997 | |
| 5998 | ac_header_preproc=no |
| 5999 | fi |
| 6000 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6001 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6002 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6003 | |
| 6004 | # So? What about this header? |
| 6005 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6006 | yes:no: ) |
| 6007 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6008 | echo "$as_me: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6009 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the compiler's result" >&5 |
| 6010 | echo "$as_me: WARNING: ifaddrs.h: proceeding with the compiler's result" >&2;} |
| 6011 | ac_header_preproc=yes |
| 6012 | ;; |
| 6013 | no:yes:* ) |
| 6014 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: present but cannot be compiled" >&5 |
| 6015 | echo "$as_me: WARNING: ifaddrs.h: present but cannot be compiled" >&2;} |
| 6016 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&5 |
| 6017 | echo "$as_me: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&2;} |
| 6018 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: see the Autoconf documentation" >&5 |
| 6019 | echo "$as_me: WARNING: ifaddrs.h: see the Autoconf documentation" >&2;} |
| 6020 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6021 | echo "$as_me: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6022 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&5 |
| 6023 | echo "$as_me: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&2;} |
| 6024 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&5 |
| 6025 | echo "$as_me: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6026 | ( |
| 6027 | cat <<\_ASBOX |
| 6028 | ## ------------------------------------ ## |
| 6029 | ## Report this to the pjproject lists. ## |
| 6030 | ## ------------------------------------ ## |
| 6031 | _ASBOX |
| 6032 | ) | |
| 6033 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6034 | ;; |
| 6035 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6036 | echo "$as_me:$LINENO: checking for ifaddrs.h" >&5 |
| 6037 | echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6 |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6038 | if test "${ac_cv_header_ifaddrs_h+set}" = set; then |
| 6039 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6040 | else |
| 6041 | ac_cv_header_ifaddrs_h=$ac_header_preproc |
| 6042 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6043 | echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5 |
| 6044 | echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6 |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6045 | |
| 6046 | fi |
| 6047 | if test $ac_cv_header_ifaddrs_h = yes; then |
| 6048 | cat >>confdefs.h <<\_ACEOF |
| 6049 | #define PJ_HAS_IFADDRS_H 1 |
| 6050 | _ACEOF |
| 6051 | |
| 6052 | fi |
| 6053 | |
| 6054 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6055 | if test "${ac_cv_header_semaphore_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6056 | echo "$as_me:$LINENO: checking for semaphore.h" >&5 |
| 6057 | echo $ECHO_N "checking for semaphore.h... $ECHO_C" >&6 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6058 | if test "${ac_cv_header_semaphore_h+set}" = set; then |
| 6059 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6060 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6061 | echo "$as_me:$LINENO: result: $ac_cv_header_semaphore_h" >&5 |
| 6062 | echo "${ECHO_T}$ac_cv_header_semaphore_h" >&6 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6063 | else |
| 6064 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6065 | echo "$as_me:$LINENO: checking semaphore.h usability" >&5 |
| 6066 | echo $ECHO_N "checking semaphore.h usability... $ECHO_C" >&6 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6067 | cat >conftest.$ac_ext <<_ACEOF |
| 6068 | /* confdefs.h. */ |
| 6069 | _ACEOF |
| 6070 | cat confdefs.h >>conftest.$ac_ext |
| 6071 | cat >>conftest.$ac_ext <<_ACEOF |
| 6072 | /* end confdefs.h. */ |
| 6073 | $ac_includes_default |
| 6074 | #include <semaphore.h> |
| 6075 | _ACEOF |
| 6076 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6077 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6078 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6079 | ac_status=$? |
| 6080 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6081 | rm -f conftest.er1 |
| 6082 | cat conftest.err >&5 |
| 6083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6084 | (exit $ac_status); } && |
| 6085 | { ac_try='test -z "$ac_c_werror_flag" |
| 6086 | || test ! -s conftest.err' |
| 6087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6088 | (eval $ac_try) 2>&5 |
| 6089 | ac_status=$? |
| 6090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6091 | (exit $ac_status); }; } && |
| 6092 | { ac_try='test -s conftest.$ac_objext' |
| 6093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6094 | (eval $ac_try) 2>&5 |
| 6095 | ac_status=$? |
| 6096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6097 | (exit $ac_status); }; }; then |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6098 | ac_header_compiler=yes |
| 6099 | else |
| 6100 | echo "$as_me: failed program was:" >&5 |
| 6101 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6102 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6103 | ac_header_compiler=no |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6104 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6105 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6106 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6107 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6108 | |
| 6109 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6110 | echo "$as_me:$LINENO: checking semaphore.h presence" >&5 |
| 6111 | echo $ECHO_N "checking semaphore.h presence... $ECHO_C" >&6 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6112 | cat >conftest.$ac_ext <<_ACEOF |
| 6113 | /* confdefs.h. */ |
| 6114 | _ACEOF |
| 6115 | cat confdefs.h >>conftest.$ac_ext |
| 6116 | cat >>conftest.$ac_ext <<_ACEOF |
| 6117 | /* end confdefs.h. */ |
| 6118 | #include <semaphore.h> |
| 6119 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6120 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6121 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6122 | ac_status=$? |
| 6123 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6124 | rm -f conftest.er1 |
| 6125 | cat conftest.err >&5 |
| 6126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6127 | (exit $ac_status); } >/dev/null; then |
| 6128 | if test -s conftest.err; then |
| 6129 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 6130 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 6131 | else |
| 6132 | ac_cpp_err= |
| 6133 | fi |
| 6134 | else |
| 6135 | ac_cpp_err=yes |
| 6136 | fi |
| 6137 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6138 | ac_header_preproc=yes |
| 6139 | else |
| 6140 | echo "$as_me: failed program was:" >&5 |
| 6141 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6142 | |
| 6143 | ac_header_preproc=no |
| 6144 | fi |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6145 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6146 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6147 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6148 | |
| 6149 | # So? What about this header? |
| 6150 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6151 | yes:no: ) |
| 6152 | { echo "$as_me:$LINENO: WARNING: semaphore.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6153 | echo "$as_me: WARNING: semaphore.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6154 | { echo "$as_me:$LINENO: WARNING: semaphore.h: proceeding with the compiler's result" >&5 |
| 6155 | echo "$as_me: WARNING: semaphore.h: proceeding with the compiler's result" >&2;} |
| 6156 | ac_header_preproc=yes |
| 6157 | ;; |
| 6158 | no:yes:* ) |
| 6159 | { echo "$as_me:$LINENO: WARNING: semaphore.h: present but cannot be compiled" >&5 |
| 6160 | echo "$as_me: WARNING: semaphore.h: present but cannot be compiled" >&2;} |
| 6161 | { echo "$as_me:$LINENO: WARNING: semaphore.h: check for missing prerequisite headers?" >&5 |
| 6162 | echo "$as_me: WARNING: semaphore.h: check for missing prerequisite headers?" >&2;} |
| 6163 | { echo "$as_me:$LINENO: WARNING: semaphore.h: see the Autoconf documentation" >&5 |
| 6164 | echo "$as_me: WARNING: semaphore.h: see the Autoconf documentation" >&2;} |
| 6165 | { echo "$as_me:$LINENO: WARNING: semaphore.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6166 | echo "$as_me: WARNING: semaphore.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6167 | { echo "$as_me:$LINENO: WARNING: semaphore.h: proceeding with the preprocessor's result" >&5 |
| 6168 | echo "$as_me: WARNING: semaphore.h: proceeding with the preprocessor's result" >&2;} |
| 6169 | { echo "$as_me:$LINENO: WARNING: semaphore.h: in the future, the compiler will take precedence" >&5 |
| 6170 | echo "$as_me: WARNING: semaphore.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6171 | ( |
| 6172 | cat <<\_ASBOX |
| 6173 | ## ------------------------------------ ## |
| 6174 | ## Report this to the pjproject lists. ## |
| 6175 | ## ------------------------------------ ## |
| 6176 | _ASBOX |
| 6177 | ) | |
| 6178 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6179 | ;; |
| 6180 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6181 | echo "$as_me:$LINENO: checking for semaphore.h" >&5 |
| 6182 | echo $ECHO_N "checking for semaphore.h... $ECHO_C" >&6 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6183 | if test "${ac_cv_header_semaphore_h+set}" = set; then |
| 6184 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6185 | else |
| 6186 | ac_cv_header_semaphore_h=$ac_header_preproc |
| 6187 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6188 | echo "$as_me:$LINENO: result: $ac_cv_header_semaphore_h" >&5 |
| 6189 | echo "${ECHO_T}$ac_cv_header_semaphore_h" >&6 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6190 | |
| 6191 | fi |
| 6192 | if test $ac_cv_header_semaphore_h = yes; then |
| 6193 | cat >>confdefs.h <<\_ACEOF |
| 6194 | #define PJ_HAS_SEMAPHORE_H 1 |
| 6195 | _ACEOF |
| 6196 | |
| 6197 | fi |
| 6198 | |
| 6199 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6200 | if test "${ac_cv_header_setjmp_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6201 | echo "$as_me:$LINENO: checking for setjmp.h" >&5 |
| 6202 | echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6203 | if test "${ac_cv_header_setjmp_h+set}" = set; then |
| 6204 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6205 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6206 | echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5 |
| 6207 | echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6208 | else |
| 6209 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6210 | echo "$as_me:$LINENO: checking setjmp.h usability" >&5 |
| 6211 | echo $ECHO_N "checking setjmp.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6212 | cat >conftest.$ac_ext <<_ACEOF |
| 6213 | /* confdefs.h. */ |
| 6214 | _ACEOF |
| 6215 | cat confdefs.h >>conftest.$ac_ext |
| 6216 | cat >>conftest.$ac_ext <<_ACEOF |
| 6217 | /* end confdefs.h. */ |
| 6218 | $ac_includes_default |
| 6219 | #include <setjmp.h> |
| 6220 | _ACEOF |
| 6221 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6222 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6223 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6224 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6225 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6226 | rm -f conftest.er1 |
| 6227 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6229 | (exit $ac_status); } && |
| 6230 | { ac_try='test -z "$ac_c_werror_flag" |
| 6231 | || test ! -s conftest.err' |
| 6232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6233 | (eval $ac_try) 2>&5 |
| 6234 | ac_status=$? |
| 6235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6236 | (exit $ac_status); }; } && |
| 6237 | { ac_try='test -s conftest.$ac_objext' |
| 6238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6239 | (eval $ac_try) 2>&5 |
| 6240 | ac_status=$? |
| 6241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6242 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6243 | ac_header_compiler=yes |
| 6244 | else |
| 6245 | echo "$as_me: failed program was:" >&5 |
| 6246 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6247 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6248 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6249 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6250 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6251 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6252 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6253 | |
| 6254 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6255 | echo "$as_me:$LINENO: checking setjmp.h presence" >&5 |
| 6256 | echo $ECHO_N "checking setjmp.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6257 | cat >conftest.$ac_ext <<_ACEOF |
| 6258 | /* confdefs.h. */ |
| 6259 | _ACEOF |
| 6260 | cat confdefs.h >>conftest.$ac_ext |
| 6261 | cat >>conftest.$ac_ext <<_ACEOF |
| 6262 | /* end confdefs.h. */ |
| 6263 | #include <setjmp.h> |
| 6264 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6265 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6266 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6267 | ac_status=$? |
| 6268 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6269 | rm -f conftest.er1 |
| 6270 | cat conftest.err >&5 |
| 6271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6272 | (exit $ac_status); } >/dev/null; then |
| 6273 | if test -s conftest.err; then |
| 6274 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 6275 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 6276 | else |
| 6277 | ac_cpp_err= |
| 6278 | fi |
| 6279 | else |
| 6280 | ac_cpp_err=yes |
| 6281 | fi |
| 6282 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6283 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6284 | else |
| 6285 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6286 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6287 | |
| 6288 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6289 | fi |
| 6290 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6291 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6292 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6293 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6294 | # So? What about this header? |
| 6295 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6296 | yes:no: ) |
| 6297 | { echo "$as_me:$LINENO: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6298 | echo "$as_me: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6299 | { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the compiler's result" >&5 |
| 6300 | echo "$as_me: WARNING: setjmp.h: proceeding with the compiler's result" >&2;} |
| 6301 | ac_header_preproc=yes |
| 6302 | ;; |
| 6303 | no:yes:* ) |
| 6304 | { echo "$as_me:$LINENO: WARNING: setjmp.h: present but cannot be compiled" >&5 |
| 6305 | echo "$as_me: WARNING: setjmp.h: present but cannot be compiled" >&2;} |
| 6306 | { echo "$as_me:$LINENO: WARNING: setjmp.h: check for missing prerequisite headers?" >&5 |
| 6307 | echo "$as_me: WARNING: setjmp.h: check for missing prerequisite headers?" >&2;} |
| 6308 | { echo "$as_me:$LINENO: WARNING: setjmp.h: see the Autoconf documentation" >&5 |
| 6309 | echo "$as_me: WARNING: setjmp.h: see the Autoconf documentation" >&2;} |
| 6310 | { echo "$as_me:$LINENO: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6311 | echo "$as_me: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6312 | { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the preprocessor's result" >&5 |
| 6313 | echo "$as_me: WARNING: setjmp.h: proceeding with the preprocessor's result" >&2;} |
| 6314 | { echo "$as_me:$LINENO: WARNING: setjmp.h: in the future, the compiler will take precedence" >&5 |
| 6315 | echo "$as_me: WARNING: setjmp.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6316 | ( |
| 6317 | cat <<\_ASBOX |
| 6318 | ## ------------------------------------ ## |
| 6319 | ## Report this to the pjproject lists. ## |
| 6320 | ## ------------------------------------ ## |
| 6321 | _ASBOX |
| 6322 | ) | |
| 6323 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6324 | ;; |
| 6325 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6326 | echo "$as_me:$LINENO: checking for setjmp.h" >&5 |
| 6327 | echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6328 | if test "${ac_cv_header_setjmp_h+set}" = set; then |
| 6329 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6330 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6331 | ac_cv_header_setjmp_h=$ac_header_preproc |
| 6332 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6333 | echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5 |
| 6334 | echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6335 | |
| 6336 | fi |
| 6337 | if test $ac_cv_header_setjmp_h = yes; then |
| 6338 | cat >>confdefs.h <<\_ACEOF |
| 6339 | #define PJ_HAS_SETJMP_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6340 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6341 | |
| 6342 | fi |
| 6343 | |
| 6344 | |
| 6345 | if test "${ac_cv_header_stdarg_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6346 | echo "$as_me:$LINENO: checking for stdarg.h" >&5 |
| 6347 | echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6348 | if test "${ac_cv_header_stdarg_h+set}" = set; then |
| 6349 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6350 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6351 | echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5 |
| 6352 | echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6353 | else |
| 6354 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6355 | echo "$as_me:$LINENO: checking stdarg.h usability" >&5 |
| 6356 | echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6357 | cat >conftest.$ac_ext <<_ACEOF |
| 6358 | /* confdefs.h. */ |
| 6359 | _ACEOF |
| 6360 | cat confdefs.h >>conftest.$ac_ext |
| 6361 | cat >>conftest.$ac_ext <<_ACEOF |
| 6362 | /* end confdefs.h. */ |
| 6363 | $ac_includes_default |
| 6364 | #include <stdarg.h> |
| 6365 | _ACEOF |
| 6366 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6367 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6368 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6369 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6370 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6371 | rm -f conftest.er1 |
| 6372 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6374 | (exit $ac_status); } && |
| 6375 | { ac_try='test -z "$ac_c_werror_flag" |
| 6376 | || test ! -s conftest.err' |
| 6377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6378 | (eval $ac_try) 2>&5 |
| 6379 | ac_status=$? |
| 6380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6381 | (exit $ac_status); }; } && |
| 6382 | { ac_try='test -s conftest.$ac_objext' |
| 6383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6384 | (eval $ac_try) 2>&5 |
| 6385 | ac_status=$? |
| 6386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6387 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6388 | ac_header_compiler=yes |
| 6389 | else |
| 6390 | echo "$as_me: failed program was:" >&5 |
| 6391 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6392 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6393 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6394 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6395 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6396 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6397 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6398 | |
| 6399 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6400 | echo "$as_me:$LINENO: checking stdarg.h presence" >&5 |
| 6401 | echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6402 | cat >conftest.$ac_ext <<_ACEOF |
| 6403 | /* confdefs.h. */ |
| 6404 | _ACEOF |
| 6405 | cat confdefs.h >>conftest.$ac_ext |
| 6406 | cat >>conftest.$ac_ext <<_ACEOF |
| 6407 | /* end confdefs.h. */ |
| 6408 | #include <stdarg.h> |
| 6409 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6410 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6411 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6412 | ac_status=$? |
| 6413 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6414 | rm -f conftest.er1 |
| 6415 | cat conftest.err >&5 |
| 6416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6417 | (exit $ac_status); } >/dev/null; then |
| 6418 | if test -s conftest.err; then |
| 6419 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 6420 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 6421 | else |
| 6422 | ac_cpp_err= |
| 6423 | fi |
| 6424 | else |
| 6425 | ac_cpp_err=yes |
| 6426 | fi |
| 6427 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6428 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6429 | else |
| 6430 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6431 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6432 | |
| 6433 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6434 | fi |
| 6435 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6436 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6437 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6438 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6439 | # So? What about this header? |
| 6440 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6441 | yes:no: ) |
| 6442 | { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6443 | echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6444 | { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5 |
| 6445 | echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;} |
| 6446 | ac_header_preproc=yes |
| 6447 | ;; |
| 6448 | no:yes:* ) |
| 6449 | { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5 |
| 6450 | echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;} |
| 6451 | { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5 |
| 6452 | echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;} |
| 6453 | { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5 |
| 6454 | echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;} |
| 6455 | { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6456 | echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6457 | { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5 |
| 6458 | echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;} |
| 6459 | { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5 |
| 6460 | echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6461 | ( |
| 6462 | cat <<\_ASBOX |
| 6463 | ## ------------------------------------ ## |
| 6464 | ## Report this to the pjproject lists. ## |
| 6465 | ## ------------------------------------ ## |
| 6466 | _ASBOX |
| 6467 | ) | |
| 6468 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6469 | ;; |
| 6470 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6471 | echo "$as_me:$LINENO: checking for stdarg.h" >&5 |
| 6472 | echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6473 | if test "${ac_cv_header_stdarg_h+set}" = set; then |
| 6474 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6475 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6476 | ac_cv_header_stdarg_h=$ac_header_preproc |
| 6477 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6478 | echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5 |
| 6479 | echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6480 | |
| 6481 | fi |
| 6482 | if test $ac_cv_header_stdarg_h = yes; then |
| 6483 | cat >>confdefs.h <<\_ACEOF |
| 6484 | #define PJ_HAS_STDARG_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6485 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6486 | |
| 6487 | fi |
| 6488 | |
| 6489 | |
| 6490 | if test "${ac_cv_header_stddef_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6491 | echo "$as_me:$LINENO: checking for stddef.h" >&5 |
| 6492 | echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6493 | if test "${ac_cv_header_stddef_h+set}" = set; then |
| 6494 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6495 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6496 | echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5 |
| 6497 | echo "${ECHO_T}$ac_cv_header_stddef_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6498 | else |
| 6499 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6500 | echo "$as_me:$LINENO: checking stddef.h usability" >&5 |
| 6501 | echo $ECHO_N "checking stddef.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6502 | cat >conftest.$ac_ext <<_ACEOF |
| 6503 | /* confdefs.h. */ |
| 6504 | _ACEOF |
| 6505 | cat confdefs.h >>conftest.$ac_ext |
| 6506 | cat >>conftest.$ac_ext <<_ACEOF |
| 6507 | /* end confdefs.h. */ |
| 6508 | $ac_includes_default |
| 6509 | #include <stddef.h> |
| 6510 | _ACEOF |
| 6511 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6512 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6513 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6514 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6515 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6516 | rm -f conftest.er1 |
| 6517 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6519 | (exit $ac_status); } && |
| 6520 | { ac_try='test -z "$ac_c_werror_flag" |
| 6521 | || test ! -s conftest.err' |
| 6522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6523 | (eval $ac_try) 2>&5 |
| 6524 | ac_status=$? |
| 6525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6526 | (exit $ac_status); }; } && |
| 6527 | { ac_try='test -s conftest.$ac_objext' |
| 6528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6529 | (eval $ac_try) 2>&5 |
| 6530 | ac_status=$? |
| 6531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6532 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6533 | ac_header_compiler=yes |
| 6534 | else |
| 6535 | echo "$as_me: failed program was:" >&5 |
| 6536 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6537 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6538 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6539 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6540 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6541 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6542 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6543 | |
| 6544 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6545 | echo "$as_me:$LINENO: checking stddef.h presence" >&5 |
| 6546 | echo $ECHO_N "checking stddef.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6547 | cat >conftest.$ac_ext <<_ACEOF |
| 6548 | /* confdefs.h. */ |
| 6549 | _ACEOF |
| 6550 | cat confdefs.h >>conftest.$ac_ext |
| 6551 | cat >>conftest.$ac_ext <<_ACEOF |
| 6552 | /* end confdefs.h. */ |
| 6553 | #include <stddef.h> |
| 6554 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6555 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6556 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6557 | ac_status=$? |
| 6558 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6559 | rm -f conftest.er1 |
| 6560 | cat conftest.err >&5 |
| 6561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6562 | (exit $ac_status); } >/dev/null; then |
| 6563 | if test -s conftest.err; then |
| 6564 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 6565 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 6566 | else |
| 6567 | ac_cpp_err= |
| 6568 | fi |
| 6569 | else |
| 6570 | ac_cpp_err=yes |
| 6571 | fi |
| 6572 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6573 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6574 | else |
| 6575 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6576 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6577 | |
| 6578 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6579 | fi |
| 6580 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6581 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6582 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6583 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6584 | # So? What about this header? |
| 6585 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6586 | yes:no: ) |
| 6587 | { echo "$as_me:$LINENO: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6588 | echo "$as_me: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6589 | { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the compiler's result" >&5 |
| 6590 | echo "$as_me: WARNING: stddef.h: proceeding with the compiler's result" >&2;} |
| 6591 | ac_header_preproc=yes |
| 6592 | ;; |
| 6593 | no:yes:* ) |
| 6594 | { echo "$as_me:$LINENO: WARNING: stddef.h: present but cannot be compiled" >&5 |
| 6595 | echo "$as_me: WARNING: stddef.h: present but cannot be compiled" >&2;} |
| 6596 | { echo "$as_me:$LINENO: WARNING: stddef.h: check for missing prerequisite headers?" >&5 |
| 6597 | echo "$as_me: WARNING: stddef.h: check for missing prerequisite headers?" >&2;} |
| 6598 | { echo "$as_me:$LINENO: WARNING: stddef.h: see the Autoconf documentation" >&5 |
| 6599 | echo "$as_me: WARNING: stddef.h: see the Autoconf documentation" >&2;} |
| 6600 | { echo "$as_me:$LINENO: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6601 | echo "$as_me: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6602 | { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the preprocessor's result" >&5 |
| 6603 | echo "$as_me: WARNING: stddef.h: proceeding with the preprocessor's result" >&2;} |
| 6604 | { echo "$as_me:$LINENO: WARNING: stddef.h: in the future, the compiler will take precedence" >&5 |
| 6605 | echo "$as_me: WARNING: stddef.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6606 | ( |
| 6607 | cat <<\_ASBOX |
| 6608 | ## ------------------------------------ ## |
| 6609 | ## Report this to the pjproject lists. ## |
| 6610 | ## ------------------------------------ ## |
| 6611 | _ASBOX |
| 6612 | ) | |
| 6613 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6614 | ;; |
| 6615 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6616 | echo "$as_me:$LINENO: checking for stddef.h" >&5 |
| 6617 | echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6618 | if test "${ac_cv_header_stddef_h+set}" = set; then |
| 6619 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6620 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6621 | ac_cv_header_stddef_h=$ac_header_preproc |
| 6622 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6623 | echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5 |
| 6624 | echo "${ECHO_T}$ac_cv_header_stddef_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6625 | |
| 6626 | fi |
| 6627 | if test $ac_cv_header_stddef_h = yes; then |
| 6628 | cat >>confdefs.h <<\_ACEOF |
| 6629 | #define PJ_HAS_STDDEF_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6630 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6631 | |
| 6632 | fi |
| 6633 | |
| 6634 | |
| 6635 | if test "${ac_cv_header_stdio_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6636 | echo "$as_me:$LINENO: checking for stdio.h" >&5 |
| 6637 | echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6638 | if test "${ac_cv_header_stdio_h+set}" = set; then |
| 6639 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6640 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6641 | echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5 |
| 6642 | echo "${ECHO_T}$ac_cv_header_stdio_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6643 | else |
| 6644 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6645 | echo "$as_me:$LINENO: checking stdio.h usability" >&5 |
| 6646 | echo $ECHO_N "checking stdio.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6647 | cat >conftest.$ac_ext <<_ACEOF |
| 6648 | /* confdefs.h. */ |
| 6649 | _ACEOF |
| 6650 | cat confdefs.h >>conftest.$ac_ext |
| 6651 | cat >>conftest.$ac_ext <<_ACEOF |
| 6652 | /* end confdefs.h. */ |
| 6653 | $ac_includes_default |
| 6654 | #include <stdio.h> |
| 6655 | _ACEOF |
| 6656 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6657 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6658 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6659 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6660 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6661 | rm -f conftest.er1 |
| 6662 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6664 | (exit $ac_status); } && |
| 6665 | { ac_try='test -z "$ac_c_werror_flag" |
| 6666 | || test ! -s conftest.err' |
| 6667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6668 | (eval $ac_try) 2>&5 |
| 6669 | ac_status=$? |
| 6670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6671 | (exit $ac_status); }; } && |
| 6672 | { ac_try='test -s conftest.$ac_objext' |
| 6673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6674 | (eval $ac_try) 2>&5 |
| 6675 | ac_status=$? |
| 6676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6677 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6678 | ac_header_compiler=yes |
| 6679 | else |
| 6680 | echo "$as_me: failed program was:" >&5 |
| 6681 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6682 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6683 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6684 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6685 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6686 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6687 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6688 | |
| 6689 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6690 | echo "$as_me:$LINENO: checking stdio.h presence" >&5 |
| 6691 | echo $ECHO_N "checking stdio.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6692 | cat >conftest.$ac_ext <<_ACEOF |
| 6693 | /* confdefs.h. */ |
| 6694 | _ACEOF |
| 6695 | cat confdefs.h >>conftest.$ac_ext |
| 6696 | cat >>conftest.$ac_ext <<_ACEOF |
| 6697 | /* end confdefs.h. */ |
| 6698 | #include <stdio.h> |
| 6699 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6700 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6701 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6702 | ac_status=$? |
| 6703 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6704 | rm -f conftest.er1 |
| 6705 | cat conftest.err >&5 |
| 6706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6707 | (exit $ac_status); } >/dev/null; then |
| 6708 | if test -s conftest.err; then |
| 6709 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 6710 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 6711 | else |
| 6712 | ac_cpp_err= |
| 6713 | fi |
| 6714 | else |
| 6715 | ac_cpp_err=yes |
| 6716 | fi |
| 6717 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6718 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6719 | else |
| 6720 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6721 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6722 | |
| 6723 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6724 | fi |
| 6725 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6726 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6727 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6728 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6729 | # So? What about this header? |
| 6730 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6731 | yes:no: ) |
| 6732 | { echo "$as_me:$LINENO: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6733 | echo "$as_me: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6734 | { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the compiler's result" >&5 |
| 6735 | echo "$as_me: WARNING: stdio.h: proceeding with the compiler's result" >&2;} |
| 6736 | ac_header_preproc=yes |
| 6737 | ;; |
| 6738 | no:yes:* ) |
| 6739 | { echo "$as_me:$LINENO: WARNING: stdio.h: present but cannot be compiled" >&5 |
| 6740 | echo "$as_me: WARNING: stdio.h: present but cannot be compiled" >&2;} |
| 6741 | { echo "$as_me:$LINENO: WARNING: stdio.h: check for missing prerequisite headers?" >&5 |
| 6742 | echo "$as_me: WARNING: stdio.h: check for missing prerequisite headers?" >&2;} |
| 6743 | { echo "$as_me:$LINENO: WARNING: stdio.h: see the Autoconf documentation" >&5 |
| 6744 | echo "$as_me: WARNING: stdio.h: see the Autoconf documentation" >&2;} |
| 6745 | { echo "$as_me:$LINENO: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6746 | echo "$as_me: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6747 | { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the preprocessor's result" >&5 |
| 6748 | echo "$as_me: WARNING: stdio.h: proceeding with the preprocessor's result" >&2;} |
| 6749 | { echo "$as_me:$LINENO: WARNING: stdio.h: in the future, the compiler will take precedence" >&5 |
| 6750 | echo "$as_me: WARNING: stdio.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6751 | ( |
| 6752 | cat <<\_ASBOX |
| 6753 | ## ------------------------------------ ## |
| 6754 | ## Report this to the pjproject lists. ## |
| 6755 | ## ------------------------------------ ## |
| 6756 | _ASBOX |
| 6757 | ) | |
| 6758 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6759 | ;; |
| 6760 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6761 | echo "$as_me:$LINENO: checking for stdio.h" >&5 |
| 6762 | echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6763 | if test "${ac_cv_header_stdio_h+set}" = set; then |
| 6764 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6765 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6766 | ac_cv_header_stdio_h=$ac_header_preproc |
| 6767 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6768 | echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5 |
| 6769 | echo "${ECHO_T}$ac_cv_header_stdio_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6770 | |
| 6771 | fi |
| 6772 | if test $ac_cv_header_stdio_h = yes; then |
| 6773 | cat >>confdefs.h <<\_ACEOF |
| 6774 | #define PJ_HAS_STDIO_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6775 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6776 | |
| 6777 | fi |
| 6778 | |
| 6779 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6780 | if test "${ac_cv_header_stdint_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6781 | echo "$as_me:$LINENO: checking for stdint.h" >&5 |
| 6782 | echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6783 | if test "${ac_cv_header_stdint_h+set}" = set; then |
| 6784 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6785 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6786 | echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5 |
| 6787 | echo "${ECHO_T}$ac_cv_header_stdint_h" >&6 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6788 | else |
| 6789 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6790 | echo "$as_me:$LINENO: checking stdint.h usability" >&5 |
| 6791 | echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6792 | cat >conftest.$ac_ext <<_ACEOF |
| 6793 | /* confdefs.h. */ |
| 6794 | _ACEOF |
| 6795 | cat confdefs.h >>conftest.$ac_ext |
| 6796 | cat >>conftest.$ac_ext <<_ACEOF |
| 6797 | /* end confdefs.h. */ |
| 6798 | $ac_includes_default |
| 6799 | #include <stdint.h> |
| 6800 | _ACEOF |
| 6801 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6802 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6803 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6804 | ac_status=$? |
| 6805 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6806 | rm -f conftest.er1 |
| 6807 | cat conftest.err >&5 |
| 6808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6809 | (exit $ac_status); } && |
| 6810 | { ac_try='test -z "$ac_c_werror_flag" |
| 6811 | || test ! -s conftest.err' |
| 6812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6813 | (eval $ac_try) 2>&5 |
| 6814 | ac_status=$? |
| 6815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6816 | (exit $ac_status); }; } && |
| 6817 | { ac_try='test -s conftest.$ac_objext' |
| 6818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6819 | (eval $ac_try) 2>&5 |
| 6820 | ac_status=$? |
| 6821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6822 | (exit $ac_status); }; }; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6823 | ac_header_compiler=yes |
| 6824 | else |
| 6825 | echo "$as_me: failed program was:" >&5 |
| 6826 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6827 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6828 | ac_header_compiler=no |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6829 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6830 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6831 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6832 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6833 | |
| 6834 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6835 | echo "$as_me:$LINENO: checking stdint.h presence" >&5 |
| 6836 | echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6837 | cat >conftest.$ac_ext <<_ACEOF |
| 6838 | /* confdefs.h. */ |
| 6839 | _ACEOF |
| 6840 | cat confdefs.h >>conftest.$ac_ext |
| 6841 | cat >>conftest.$ac_ext <<_ACEOF |
| 6842 | /* end confdefs.h. */ |
| 6843 | #include <stdint.h> |
| 6844 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6845 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6846 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6847 | ac_status=$? |
| 6848 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6849 | rm -f conftest.er1 |
| 6850 | cat conftest.err >&5 |
| 6851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6852 | (exit $ac_status); } >/dev/null; then |
| 6853 | if test -s conftest.err; then |
| 6854 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 6855 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 6856 | else |
| 6857 | ac_cpp_err= |
| 6858 | fi |
| 6859 | else |
| 6860 | ac_cpp_err=yes |
| 6861 | fi |
| 6862 | if test -z "$ac_cpp_err"; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6863 | ac_header_preproc=yes |
| 6864 | else |
| 6865 | echo "$as_me: failed program was:" >&5 |
| 6866 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6867 | |
| 6868 | ac_header_preproc=no |
| 6869 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6870 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6871 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6872 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6873 | |
| 6874 | # So? What about this header? |
| 6875 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6876 | yes:no: ) |
| 6877 | { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6878 | echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6879 | { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5 |
| 6880 | echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;} |
| 6881 | ac_header_preproc=yes |
| 6882 | ;; |
| 6883 | no:yes:* ) |
| 6884 | { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5 |
| 6885 | echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;} |
| 6886 | { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5 |
| 6887 | echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;} |
| 6888 | { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5 |
| 6889 | echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;} |
| 6890 | { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6891 | echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6892 | { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5 |
| 6893 | echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;} |
| 6894 | { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5 |
| 6895 | echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6896 | ( |
| 6897 | cat <<\_ASBOX |
| 6898 | ## ------------------------------------ ## |
| 6899 | ## Report this to the pjproject lists. ## |
| 6900 | ## ------------------------------------ ## |
| 6901 | _ASBOX |
| 6902 | ) | |
| 6903 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6904 | ;; |
| 6905 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6906 | echo "$as_me:$LINENO: checking for stdint.h" >&5 |
| 6907 | echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6908 | if test "${ac_cv_header_stdint_h+set}" = set; then |
| 6909 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6910 | else |
| 6911 | ac_cv_header_stdint_h=$ac_header_preproc |
| 6912 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6913 | echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5 |
| 6914 | echo "${ECHO_T}$ac_cv_header_stdint_h" >&6 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6915 | |
| 6916 | fi |
| 6917 | if test $ac_cv_header_stdint_h = yes; then |
| 6918 | cat >>confdefs.h <<\_ACEOF |
| 6919 | #define PJ_HAS_STDINT_H 1 |
| 6920 | _ACEOF |
| 6921 | |
| 6922 | fi |
| 6923 | |
| 6924 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6925 | if test "${ac_cv_header_stdlib_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6926 | echo "$as_me:$LINENO: checking for stdlib.h" >&5 |
| 6927 | echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6928 | if test "${ac_cv_header_stdlib_h+set}" = set; then |
| 6929 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6930 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6931 | echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 |
| 6932 | echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6933 | else |
| 6934 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6935 | echo "$as_me:$LINENO: checking stdlib.h usability" >&5 |
| 6936 | echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6937 | cat >conftest.$ac_ext <<_ACEOF |
| 6938 | /* confdefs.h. */ |
| 6939 | _ACEOF |
| 6940 | cat confdefs.h >>conftest.$ac_ext |
| 6941 | cat >>conftest.$ac_ext <<_ACEOF |
| 6942 | /* end confdefs.h. */ |
| 6943 | $ac_includes_default |
| 6944 | #include <stdlib.h> |
| 6945 | _ACEOF |
| 6946 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6947 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6948 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6949 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6950 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6951 | rm -f conftest.er1 |
| 6952 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6954 | (exit $ac_status); } && |
| 6955 | { ac_try='test -z "$ac_c_werror_flag" |
| 6956 | || test ! -s conftest.err' |
| 6957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6958 | (eval $ac_try) 2>&5 |
| 6959 | ac_status=$? |
| 6960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6961 | (exit $ac_status); }; } && |
| 6962 | { ac_try='test -s conftest.$ac_objext' |
| 6963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6964 | (eval $ac_try) 2>&5 |
| 6965 | ac_status=$? |
| 6966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6967 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6968 | ac_header_compiler=yes |
| 6969 | else |
| 6970 | echo "$as_me: failed program was:" >&5 |
| 6971 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6972 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6973 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6974 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6975 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6976 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6977 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6978 | |
| 6979 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6980 | echo "$as_me:$LINENO: checking stdlib.h presence" >&5 |
| 6981 | echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6982 | cat >conftest.$ac_ext <<_ACEOF |
| 6983 | /* confdefs.h. */ |
| 6984 | _ACEOF |
| 6985 | cat confdefs.h >>conftest.$ac_ext |
| 6986 | cat >>conftest.$ac_ext <<_ACEOF |
| 6987 | /* end confdefs.h. */ |
| 6988 | #include <stdlib.h> |
| 6989 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6990 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6991 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6992 | ac_status=$? |
| 6993 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6994 | rm -f conftest.er1 |
| 6995 | cat conftest.err >&5 |
| 6996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 6997 | (exit $ac_status); } >/dev/null; then |
| 6998 | if test -s conftest.err; then |
| 6999 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7000 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 7001 | else |
| 7002 | ac_cpp_err= |
| 7003 | fi |
| 7004 | else |
| 7005 | ac_cpp_err=yes |
| 7006 | fi |
| 7007 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7008 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7009 | else |
| 7010 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7011 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7012 | |
| 7013 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7014 | fi |
| 7015 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7016 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7017 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7018 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7019 | # So? What about this header? |
| 7020 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7021 | yes:no: ) |
| 7022 | { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7023 | echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7024 | { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5 |
| 7025 | echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;} |
| 7026 | ac_header_preproc=yes |
| 7027 | ;; |
| 7028 | no:yes:* ) |
| 7029 | { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5 |
| 7030 | echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;} |
| 7031 | { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5 |
| 7032 | echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;} |
| 7033 | { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5 |
| 7034 | echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;} |
| 7035 | { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7036 | echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7037 | { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5 |
| 7038 | echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;} |
| 7039 | { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5 |
| 7040 | echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7041 | ( |
| 7042 | cat <<\_ASBOX |
| 7043 | ## ------------------------------------ ## |
| 7044 | ## Report this to the pjproject lists. ## |
| 7045 | ## ------------------------------------ ## |
| 7046 | _ASBOX |
| 7047 | ) | |
| 7048 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7049 | ;; |
| 7050 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7051 | echo "$as_me:$LINENO: checking for stdlib.h" >&5 |
| 7052 | echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7053 | if test "${ac_cv_header_stdlib_h+set}" = set; then |
| 7054 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7055 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7056 | ac_cv_header_stdlib_h=$ac_header_preproc |
| 7057 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7058 | echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 |
| 7059 | echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7060 | |
| 7061 | fi |
| 7062 | if test $ac_cv_header_stdlib_h = yes; then |
| 7063 | cat >>confdefs.h <<\_ACEOF |
| 7064 | #define PJ_HAS_STDLIB_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7065 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7066 | |
| 7067 | fi |
| 7068 | |
| 7069 | |
| 7070 | if test "${ac_cv_header_string_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7071 | echo "$as_me:$LINENO: checking for string.h" >&5 |
| 7072 | echo $ECHO_N "checking for string.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7073 | if test "${ac_cv_header_string_h+set}" = set; then |
| 7074 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7075 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7076 | echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 |
| 7077 | echo "${ECHO_T}$ac_cv_header_string_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7078 | else |
| 7079 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7080 | echo "$as_me:$LINENO: checking string.h usability" >&5 |
| 7081 | echo $ECHO_N "checking string.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7082 | cat >conftest.$ac_ext <<_ACEOF |
| 7083 | /* confdefs.h. */ |
| 7084 | _ACEOF |
| 7085 | cat confdefs.h >>conftest.$ac_ext |
| 7086 | cat >>conftest.$ac_ext <<_ACEOF |
| 7087 | /* end confdefs.h. */ |
| 7088 | $ac_includes_default |
| 7089 | #include <string.h> |
| 7090 | _ACEOF |
| 7091 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7092 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7093 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7094 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7095 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7096 | rm -f conftest.er1 |
| 7097 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7099 | (exit $ac_status); } && |
| 7100 | { ac_try='test -z "$ac_c_werror_flag" |
| 7101 | || test ! -s conftest.err' |
| 7102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7103 | (eval $ac_try) 2>&5 |
| 7104 | ac_status=$? |
| 7105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7106 | (exit $ac_status); }; } && |
| 7107 | { ac_try='test -s conftest.$ac_objext' |
| 7108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7109 | (eval $ac_try) 2>&5 |
| 7110 | ac_status=$? |
| 7111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7112 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7113 | ac_header_compiler=yes |
| 7114 | else |
| 7115 | echo "$as_me: failed program was:" >&5 |
| 7116 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7117 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7118 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7119 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7120 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7121 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7122 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7123 | |
| 7124 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7125 | echo "$as_me:$LINENO: checking string.h presence" >&5 |
| 7126 | echo $ECHO_N "checking string.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7127 | cat >conftest.$ac_ext <<_ACEOF |
| 7128 | /* confdefs.h. */ |
| 7129 | _ACEOF |
| 7130 | cat confdefs.h >>conftest.$ac_ext |
| 7131 | cat >>conftest.$ac_ext <<_ACEOF |
| 7132 | /* end confdefs.h. */ |
| 7133 | #include <string.h> |
| 7134 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7135 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7136 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7137 | ac_status=$? |
| 7138 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7139 | rm -f conftest.er1 |
| 7140 | cat conftest.err >&5 |
| 7141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7142 | (exit $ac_status); } >/dev/null; then |
| 7143 | if test -s conftest.err; then |
| 7144 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7145 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 7146 | else |
| 7147 | ac_cpp_err= |
| 7148 | fi |
| 7149 | else |
| 7150 | ac_cpp_err=yes |
| 7151 | fi |
| 7152 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7153 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7154 | else |
| 7155 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7156 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7157 | |
| 7158 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7159 | fi |
| 7160 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7161 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7162 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7163 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7164 | # So? What about this header? |
| 7165 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7166 | yes:no: ) |
| 7167 | { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7168 | echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7169 | { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5 |
| 7170 | echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;} |
| 7171 | ac_header_preproc=yes |
| 7172 | ;; |
| 7173 | no:yes:* ) |
| 7174 | { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5 |
| 7175 | echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;} |
| 7176 | { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5 |
| 7177 | echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;} |
| 7178 | { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5 |
| 7179 | echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;} |
| 7180 | { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7181 | echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7182 | { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5 |
| 7183 | echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;} |
| 7184 | { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5 |
| 7185 | echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7186 | ( |
| 7187 | cat <<\_ASBOX |
| 7188 | ## ------------------------------------ ## |
| 7189 | ## Report this to the pjproject lists. ## |
| 7190 | ## ------------------------------------ ## |
| 7191 | _ASBOX |
| 7192 | ) | |
| 7193 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7194 | ;; |
| 7195 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7196 | echo "$as_me:$LINENO: checking for string.h" >&5 |
| 7197 | echo $ECHO_N "checking for string.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7198 | if test "${ac_cv_header_string_h+set}" = set; then |
| 7199 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7200 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7201 | ac_cv_header_string_h=$ac_header_preproc |
| 7202 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7203 | echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 |
| 7204 | echo "${ECHO_T}$ac_cv_header_string_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7205 | |
| 7206 | fi |
| 7207 | if test $ac_cv_header_string_h = yes; then |
| 7208 | cat >>confdefs.h <<\_ACEOF |
| 7209 | #define PJ_HAS_STRING_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7210 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7211 | |
| 7212 | fi |
| 7213 | |
| 7214 | |
| 7215 | if test "${ac_cv_header_sys_ioctl_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7216 | echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5 |
| 7217 | echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7218 | if test "${ac_cv_header_sys_ioctl_h+set}" = set; then |
| 7219 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7220 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7221 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5 |
| 7222 | echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7223 | else |
| 7224 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7225 | echo "$as_me:$LINENO: checking sys/ioctl.h usability" >&5 |
| 7226 | echo $ECHO_N "checking sys/ioctl.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7227 | cat >conftest.$ac_ext <<_ACEOF |
| 7228 | /* confdefs.h. */ |
| 7229 | _ACEOF |
| 7230 | cat confdefs.h >>conftest.$ac_ext |
| 7231 | cat >>conftest.$ac_ext <<_ACEOF |
| 7232 | /* end confdefs.h. */ |
| 7233 | $ac_includes_default |
| 7234 | #include <sys/ioctl.h> |
| 7235 | _ACEOF |
| 7236 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7237 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7238 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7239 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7240 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7241 | rm -f conftest.er1 |
| 7242 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7244 | (exit $ac_status); } && |
| 7245 | { ac_try='test -z "$ac_c_werror_flag" |
| 7246 | || test ! -s conftest.err' |
| 7247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7248 | (eval $ac_try) 2>&5 |
| 7249 | ac_status=$? |
| 7250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7251 | (exit $ac_status); }; } && |
| 7252 | { ac_try='test -s conftest.$ac_objext' |
| 7253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7254 | (eval $ac_try) 2>&5 |
| 7255 | ac_status=$? |
| 7256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7257 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7258 | ac_header_compiler=yes |
| 7259 | else |
| 7260 | echo "$as_me: failed program was:" >&5 |
| 7261 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7262 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7263 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7264 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7265 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7266 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7267 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7268 | |
| 7269 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7270 | echo "$as_me:$LINENO: checking sys/ioctl.h presence" >&5 |
| 7271 | echo $ECHO_N "checking sys/ioctl.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7272 | cat >conftest.$ac_ext <<_ACEOF |
| 7273 | /* confdefs.h. */ |
| 7274 | _ACEOF |
| 7275 | cat confdefs.h >>conftest.$ac_ext |
| 7276 | cat >>conftest.$ac_ext <<_ACEOF |
| 7277 | /* end confdefs.h. */ |
| 7278 | #include <sys/ioctl.h> |
| 7279 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7280 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7281 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7282 | ac_status=$? |
| 7283 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7284 | rm -f conftest.er1 |
| 7285 | cat conftest.err >&5 |
| 7286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7287 | (exit $ac_status); } >/dev/null; then |
| 7288 | if test -s conftest.err; then |
| 7289 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7290 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 7291 | else |
| 7292 | ac_cpp_err= |
| 7293 | fi |
| 7294 | else |
| 7295 | ac_cpp_err=yes |
| 7296 | fi |
| 7297 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7298 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7299 | else |
| 7300 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7301 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7302 | |
| 7303 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7304 | fi |
| 7305 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7306 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7307 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7308 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7309 | # So? What about this header? |
| 7310 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7311 | yes:no: ) |
| 7312 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7313 | echo "$as_me: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7314 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&5 |
| 7315 | echo "$as_me: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&2;} |
| 7316 | ac_header_preproc=yes |
| 7317 | ;; |
| 7318 | no:yes:* ) |
| 7319 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: present but cannot be compiled" >&5 |
| 7320 | echo "$as_me: WARNING: sys/ioctl.h: present but cannot be compiled" >&2;} |
| 7321 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&5 |
| 7322 | echo "$as_me: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&2;} |
| 7323 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: see the Autoconf documentation" >&5 |
| 7324 | echo "$as_me: WARNING: sys/ioctl.h: see the Autoconf documentation" >&2;} |
| 7325 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7326 | echo "$as_me: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7327 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&5 |
| 7328 | echo "$as_me: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&2;} |
| 7329 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&5 |
| 7330 | echo "$as_me: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7331 | ( |
| 7332 | cat <<\_ASBOX |
| 7333 | ## ------------------------------------ ## |
| 7334 | ## Report this to the pjproject lists. ## |
| 7335 | ## ------------------------------------ ## |
| 7336 | _ASBOX |
| 7337 | ) | |
| 7338 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7339 | ;; |
| 7340 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7341 | echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5 |
| 7342 | echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7343 | if test "${ac_cv_header_sys_ioctl_h+set}" = set; then |
| 7344 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7345 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7346 | ac_cv_header_sys_ioctl_h=$ac_header_preproc |
| 7347 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7348 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5 |
| 7349 | echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7350 | |
| 7351 | fi |
| 7352 | if test $ac_cv_header_sys_ioctl_h = yes; then |
| 7353 | cat >>confdefs.h <<\_ACEOF |
| 7354 | #define PJ_HAS_SYS_IOCTL_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7355 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7356 | |
| 7357 | fi |
| 7358 | |
| 7359 | |
| 7360 | if test "${ac_cv_header_sys_select_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7361 | echo "$as_me:$LINENO: checking for sys/select.h" >&5 |
| 7362 | echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7363 | if test "${ac_cv_header_sys_select_h+set}" = set; then |
| 7364 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7365 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7366 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5 |
| 7367 | echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7368 | else |
| 7369 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7370 | echo "$as_me:$LINENO: checking sys/select.h usability" >&5 |
| 7371 | echo $ECHO_N "checking sys/select.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7372 | cat >conftest.$ac_ext <<_ACEOF |
| 7373 | /* confdefs.h. */ |
| 7374 | _ACEOF |
| 7375 | cat confdefs.h >>conftest.$ac_ext |
| 7376 | cat >>conftest.$ac_ext <<_ACEOF |
| 7377 | /* end confdefs.h. */ |
| 7378 | $ac_includes_default |
| 7379 | #include <sys/select.h> |
| 7380 | _ACEOF |
| 7381 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7382 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7383 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7384 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7385 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7386 | rm -f conftest.er1 |
| 7387 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7389 | (exit $ac_status); } && |
| 7390 | { ac_try='test -z "$ac_c_werror_flag" |
| 7391 | || test ! -s conftest.err' |
| 7392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7393 | (eval $ac_try) 2>&5 |
| 7394 | ac_status=$? |
| 7395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7396 | (exit $ac_status); }; } && |
| 7397 | { ac_try='test -s conftest.$ac_objext' |
| 7398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7399 | (eval $ac_try) 2>&5 |
| 7400 | ac_status=$? |
| 7401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7402 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7403 | ac_header_compiler=yes |
| 7404 | else |
| 7405 | echo "$as_me: failed program was:" >&5 |
| 7406 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7407 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7408 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7409 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7410 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7411 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7412 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7413 | |
| 7414 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7415 | echo "$as_me:$LINENO: checking sys/select.h presence" >&5 |
| 7416 | echo $ECHO_N "checking sys/select.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7417 | cat >conftest.$ac_ext <<_ACEOF |
| 7418 | /* confdefs.h. */ |
| 7419 | _ACEOF |
| 7420 | cat confdefs.h >>conftest.$ac_ext |
| 7421 | cat >>conftest.$ac_ext <<_ACEOF |
| 7422 | /* end confdefs.h. */ |
| 7423 | #include <sys/select.h> |
| 7424 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7425 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7426 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7427 | ac_status=$? |
| 7428 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7429 | rm -f conftest.er1 |
| 7430 | cat conftest.err >&5 |
| 7431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7432 | (exit $ac_status); } >/dev/null; then |
| 7433 | if test -s conftest.err; then |
| 7434 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7435 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 7436 | else |
| 7437 | ac_cpp_err= |
| 7438 | fi |
| 7439 | else |
| 7440 | ac_cpp_err=yes |
| 7441 | fi |
| 7442 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7443 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7444 | else |
| 7445 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7446 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7447 | |
| 7448 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7449 | fi |
| 7450 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7451 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7452 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7453 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7454 | # So? What about this header? |
| 7455 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7456 | yes:no: ) |
| 7457 | { echo "$as_me:$LINENO: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7458 | echo "$as_me: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7459 | { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the compiler's result" >&5 |
| 7460 | echo "$as_me: WARNING: sys/select.h: proceeding with the compiler's result" >&2;} |
| 7461 | ac_header_preproc=yes |
| 7462 | ;; |
| 7463 | no:yes:* ) |
| 7464 | { echo "$as_me:$LINENO: WARNING: sys/select.h: present but cannot be compiled" >&5 |
| 7465 | echo "$as_me: WARNING: sys/select.h: present but cannot be compiled" >&2;} |
| 7466 | { echo "$as_me:$LINENO: WARNING: sys/select.h: check for missing prerequisite headers?" >&5 |
| 7467 | echo "$as_me: WARNING: sys/select.h: check for missing prerequisite headers?" >&2;} |
| 7468 | { echo "$as_me:$LINENO: WARNING: sys/select.h: see the Autoconf documentation" >&5 |
| 7469 | echo "$as_me: WARNING: sys/select.h: see the Autoconf documentation" >&2;} |
| 7470 | { echo "$as_me:$LINENO: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7471 | echo "$as_me: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7472 | { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the preprocessor's result" >&5 |
| 7473 | echo "$as_me: WARNING: sys/select.h: proceeding with the preprocessor's result" >&2;} |
| 7474 | { echo "$as_me:$LINENO: WARNING: sys/select.h: in the future, the compiler will take precedence" >&5 |
| 7475 | echo "$as_me: WARNING: sys/select.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7476 | ( |
| 7477 | cat <<\_ASBOX |
| 7478 | ## ------------------------------------ ## |
| 7479 | ## Report this to the pjproject lists. ## |
| 7480 | ## ------------------------------------ ## |
| 7481 | _ASBOX |
| 7482 | ) | |
| 7483 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7484 | ;; |
| 7485 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7486 | echo "$as_me:$LINENO: checking for sys/select.h" >&5 |
| 7487 | echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7488 | if test "${ac_cv_header_sys_select_h+set}" = set; then |
| 7489 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7490 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7491 | ac_cv_header_sys_select_h=$ac_header_preproc |
| 7492 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7493 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5 |
| 7494 | echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7495 | |
| 7496 | fi |
| 7497 | if test $ac_cv_header_sys_select_h = yes; then |
| 7498 | cat >>confdefs.h <<\_ACEOF |
| 7499 | #define PJ_HAS_SYS_SELECT_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7500 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7501 | |
| 7502 | fi |
| 7503 | |
| 7504 | |
| 7505 | if test "${ac_cv_header_sys_socket_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7506 | echo "$as_me:$LINENO: checking for sys/socket.h" >&5 |
| 7507 | echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7508 | if test "${ac_cv_header_sys_socket_h+set}" = set; then |
| 7509 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7510 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7511 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5 |
| 7512 | echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7513 | else |
| 7514 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7515 | echo "$as_me:$LINENO: checking sys/socket.h usability" >&5 |
| 7516 | echo $ECHO_N "checking sys/socket.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7517 | cat >conftest.$ac_ext <<_ACEOF |
| 7518 | /* confdefs.h. */ |
| 7519 | _ACEOF |
| 7520 | cat confdefs.h >>conftest.$ac_ext |
| 7521 | cat >>conftest.$ac_ext <<_ACEOF |
| 7522 | /* end confdefs.h. */ |
| 7523 | $ac_includes_default |
| 7524 | #include <sys/socket.h> |
| 7525 | _ACEOF |
| 7526 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7527 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7528 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7529 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7530 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7531 | rm -f conftest.er1 |
| 7532 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7534 | (exit $ac_status); } && |
| 7535 | { ac_try='test -z "$ac_c_werror_flag" |
| 7536 | || test ! -s conftest.err' |
| 7537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7538 | (eval $ac_try) 2>&5 |
| 7539 | ac_status=$? |
| 7540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7541 | (exit $ac_status); }; } && |
| 7542 | { ac_try='test -s conftest.$ac_objext' |
| 7543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7544 | (eval $ac_try) 2>&5 |
| 7545 | ac_status=$? |
| 7546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7547 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7548 | ac_header_compiler=yes |
| 7549 | else |
| 7550 | echo "$as_me: failed program was:" >&5 |
| 7551 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7552 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7553 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7554 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7555 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7556 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7557 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7558 | |
| 7559 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7560 | echo "$as_me:$LINENO: checking sys/socket.h presence" >&5 |
| 7561 | echo $ECHO_N "checking sys/socket.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7562 | cat >conftest.$ac_ext <<_ACEOF |
| 7563 | /* confdefs.h. */ |
| 7564 | _ACEOF |
| 7565 | cat confdefs.h >>conftest.$ac_ext |
| 7566 | cat >>conftest.$ac_ext <<_ACEOF |
| 7567 | /* end confdefs.h. */ |
| 7568 | #include <sys/socket.h> |
| 7569 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7570 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7571 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7572 | ac_status=$? |
| 7573 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7574 | rm -f conftest.er1 |
| 7575 | cat conftest.err >&5 |
| 7576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7577 | (exit $ac_status); } >/dev/null; then |
| 7578 | if test -s conftest.err; then |
| 7579 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7580 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 7581 | else |
| 7582 | ac_cpp_err= |
| 7583 | fi |
| 7584 | else |
| 7585 | ac_cpp_err=yes |
| 7586 | fi |
| 7587 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7588 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7589 | else |
| 7590 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7591 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7592 | |
| 7593 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7594 | fi |
| 7595 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7596 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7597 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7598 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7599 | # So? What about this header? |
| 7600 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7601 | yes:no: ) |
| 7602 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7603 | echo "$as_me: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7604 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the compiler's result" >&5 |
| 7605 | echo "$as_me: WARNING: sys/socket.h: proceeding with the compiler's result" >&2;} |
| 7606 | ac_header_preproc=yes |
| 7607 | ;; |
| 7608 | no:yes:* ) |
| 7609 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: present but cannot be compiled" >&5 |
| 7610 | echo "$as_me: WARNING: sys/socket.h: present but cannot be compiled" >&2;} |
| 7611 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: check for missing prerequisite headers?" >&5 |
| 7612 | echo "$as_me: WARNING: sys/socket.h: check for missing prerequisite headers?" >&2;} |
| 7613 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: see the Autoconf documentation" >&5 |
| 7614 | echo "$as_me: WARNING: sys/socket.h: see the Autoconf documentation" >&2;} |
| 7615 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7616 | echo "$as_me: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7617 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5 |
| 7618 | echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;} |
| 7619 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&5 |
| 7620 | echo "$as_me: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7621 | ( |
| 7622 | cat <<\_ASBOX |
| 7623 | ## ------------------------------------ ## |
| 7624 | ## Report this to the pjproject lists. ## |
| 7625 | ## ------------------------------------ ## |
| 7626 | _ASBOX |
| 7627 | ) | |
| 7628 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7629 | ;; |
| 7630 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7631 | echo "$as_me:$LINENO: checking for sys/socket.h" >&5 |
| 7632 | echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7633 | if test "${ac_cv_header_sys_socket_h+set}" = set; then |
| 7634 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7635 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7636 | ac_cv_header_sys_socket_h=$ac_header_preproc |
| 7637 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7638 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5 |
| 7639 | echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7640 | |
| 7641 | fi |
| 7642 | if test $ac_cv_header_sys_socket_h = yes; then |
| 7643 | cat >>confdefs.h <<\_ACEOF |
| 7644 | #define PJ_HAS_SYS_SOCKET_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7645 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7646 | |
| 7647 | fi |
| 7648 | |
| 7649 | |
| 7650 | if test "${ac_cv_header_sys_time_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7651 | echo "$as_me:$LINENO: checking for sys/time.h" >&5 |
| 7652 | echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7653 | if test "${ac_cv_header_sys_time_h+set}" = set; then |
| 7654 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7655 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7656 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5 |
| 7657 | echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7658 | else |
| 7659 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7660 | echo "$as_me:$LINENO: checking sys/time.h usability" >&5 |
| 7661 | echo $ECHO_N "checking sys/time.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7662 | cat >conftest.$ac_ext <<_ACEOF |
| 7663 | /* confdefs.h. */ |
| 7664 | _ACEOF |
| 7665 | cat confdefs.h >>conftest.$ac_ext |
| 7666 | cat >>conftest.$ac_ext <<_ACEOF |
| 7667 | /* end confdefs.h. */ |
| 7668 | $ac_includes_default |
| 7669 | #include <sys/time.h> |
| 7670 | _ACEOF |
| 7671 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7672 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7673 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7674 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7675 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7676 | rm -f conftest.er1 |
| 7677 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7679 | (exit $ac_status); } && |
| 7680 | { ac_try='test -z "$ac_c_werror_flag" |
| 7681 | || test ! -s conftest.err' |
| 7682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7683 | (eval $ac_try) 2>&5 |
| 7684 | ac_status=$? |
| 7685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7686 | (exit $ac_status); }; } && |
| 7687 | { ac_try='test -s conftest.$ac_objext' |
| 7688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7689 | (eval $ac_try) 2>&5 |
| 7690 | ac_status=$? |
| 7691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7692 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7693 | ac_header_compiler=yes |
| 7694 | else |
| 7695 | echo "$as_me: failed program was:" >&5 |
| 7696 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7697 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7698 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7699 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7700 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7701 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7702 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7703 | |
| 7704 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7705 | echo "$as_me:$LINENO: checking sys/time.h presence" >&5 |
| 7706 | echo $ECHO_N "checking sys/time.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7707 | cat >conftest.$ac_ext <<_ACEOF |
| 7708 | /* confdefs.h. */ |
| 7709 | _ACEOF |
| 7710 | cat confdefs.h >>conftest.$ac_ext |
| 7711 | cat >>conftest.$ac_ext <<_ACEOF |
| 7712 | /* end confdefs.h. */ |
| 7713 | #include <sys/time.h> |
| 7714 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7715 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7716 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7717 | ac_status=$? |
| 7718 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7719 | rm -f conftest.er1 |
| 7720 | cat conftest.err >&5 |
| 7721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7722 | (exit $ac_status); } >/dev/null; then |
| 7723 | if test -s conftest.err; then |
| 7724 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7725 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 7726 | else |
| 7727 | ac_cpp_err= |
| 7728 | fi |
| 7729 | else |
| 7730 | ac_cpp_err=yes |
| 7731 | fi |
| 7732 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7733 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7734 | else |
| 7735 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7736 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7737 | |
| 7738 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7739 | fi |
| 7740 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7741 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7742 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7743 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7744 | # So? What about this header? |
| 7745 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7746 | yes:no: ) |
| 7747 | { echo "$as_me:$LINENO: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7748 | echo "$as_me: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7749 | { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the compiler's result" >&5 |
| 7750 | echo "$as_me: WARNING: sys/time.h: proceeding with the compiler's result" >&2;} |
| 7751 | ac_header_preproc=yes |
| 7752 | ;; |
| 7753 | no:yes:* ) |
| 7754 | { echo "$as_me:$LINENO: WARNING: sys/time.h: present but cannot be compiled" >&5 |
| 7755 | echo "$as_me: WARNING: sys/time.h: present but cannot be compiled" >&2;} |
| 7756 | { echo "$as_me:$LINENO: WARNING: sys/time.h: check for missing prerequisite headers?" >&5 |
| 7757 | echo "$as_me: WARNING: sys/time.h: check for missing prerequisite headers?" >&2;} |
| 7758 | { echo "$as_me:$LINENO: WARNING: sys/time.h: see the Autoconf documentation" >&5 |
| 7759 | echo "$as_me: WARNING: sys/time.h: see the Autoconf documentation" >&2;} |
| 7760 | { echo "$as_me:$LINENO: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7761 | echo "$as_me: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7762 | { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the preprocessor's result" >&5 |
| 7763 | echo "$as_me: WARNING: sys/time.h: proceeding with the preprocessor's result" >&2;} |
| 7764 | { echo "$as_me:$LINENO: WARNING: sys/time.h: in the future, the compiler will take precedence" >&5 |
| 7765 | echo "$as_me: WARNING: sys/time.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7766 | ( |
| 7767 | cat <<\_ASBOX |
| 7768 | ## ------------------------------------ ## |
| 7769 | ## Report this to the pjproject lists. ## |
| 7770 | ## ------------------------------------ ## |
| 7771 | _ASBOX |
| 7772 | ) | |
| 7773 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7774 | ;; |
| 7775 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7776 | echo "$as_me:$LINENO: checking for sys/time.h" >&5 |
| 7777 | echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7778 | if test "${ac_cv_header_sys_time_h+set}" = set; then |
| 7779 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7780 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7781 | ac_cv_header_sys_time_h=$ac_header_preproc |
| 7782 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7783 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5 |
| 7784 | echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7785 | |
| 7786 | fi |
| 7787 | if test $ac_cv_header_sys_time_h = yes; then |
| 7788 | cat >>confdefs.h <<\_ACEOF |
| 7789 | #define PJ_HAS_SYS_TIME_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7790 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7791 | |
| 7792 | fi |
| 7793 | |
| 7794 | |
| 7795 | if test "${ac_cv_header_sys_timeb_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7796 | echo "$as_me:$LINENO: checking for sys/timeb.h" >&5 |
| 7797 | echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7798 | if test "${ac_cv_header_sys_timeb_h+set}" = set; then |
| 7799 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7800 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7801 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5 |
| 7802 | echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7803 | else |
| 7804 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7805 | echo "$as_me:$LINENO: checking sys/timeb.h usability" >&5 |
| 7806 | echo $ECHO_N "checking sys/timeb.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7807 | cat >conftest.$ac_ext <<_ACEOF |
| 7808 | /* confdefs.h. */ |
| 7809 | _ACEOF |
| 7810 | cat confdefs.h >>conftest.$ac_ext |
| 7811 | cat >>conftest.$ac_ext <<_ACEOF |
| 7812 | /* end confdefs.h. */ |
| 7813 | $ac_includes_default |
| 7814 | #include <sys/timeb.h> |
| 7815 | _ACEOF |
| 7816 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7817 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7818 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7819 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7820 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7821 | rm -f conftest.er1 |
| 7822 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7824 | (exit $ac_status); } && |
| 7825 | { ac_try='test -z "$ac_c_werror_flag" |
| 7826 | || test ! -s conftest.err' |
| 7827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7828 | (eval $ac_try) 2>&5 |
| 7829 | ac_status=$? |
| 7830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7831 | (exit $ac_status); }; } && |
| 7832 | { ac_try='test -s conftest.$ac_objext' |
| 7833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7834 | (eval $ac_try) 2>&5 |
| 7835 | ac_status=$? |
| 7836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7837 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7838 | ac_header_compiler=yes |
| 7839 | else |
| 7840 | echo "$as_me: failed program was:" >&5 |
| 7841 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7842 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7843 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7844 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7845 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7846 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7847 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7848 | |
| 7849 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7850 | echo "$as_me:$LINENO: checking sys/timeb.h presence" >&5 |
| 7851 | echo $ECHO_N "checking sys/timeb.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7852 | cat >conftest.$ac_ext <<_ACEOF |
| 7853 | /* confdefs.h. */ |
| 7854 | _ACEOF |
| 7855 | cat confdefs.h >>conftest.$ac_ext |
| 7856 | cat >>conftest.$ac_ext <<_ACEOF |
| 7857 | /* end confdefs.h. */ |
| 7858 | #include <sys/timeb.h> |
| 7859 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7860 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7861 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7862 | ac_status=$? |
| 7863 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7864 | rm -f conftest.er1 |
| 7865 | cat conftest.err >&5 |
| 7866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7867 | (exit $ac_status); } >/dev/null; then |
| 7868 | if test -s conftest.err; then |
| 7869 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7870 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 7871 | else |
| 7872 | ac_cpp_err= |
| 7873 | fi |
| 7874 | else |
| 7875 | ac_cpp_err=yes |
| 7876 | fi |
| 7877 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7878 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7879 | else |
| 7880 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7881 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7882 | |
| 7883 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7884 | fi |
| 7885 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7886 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7887 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7888 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7889 | # So? What about this header? |
| 7890 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7891 | yes:no: ) |
| 7892 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7893 | echo "$as_me: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7894 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the compiler's result" >&5 |
| 7895 | echo "$as_me: WARNING: sys/timeb.h: proceeding with the compiler's result" >&2;} |
| 7896 | ac_header_preproc=yes |
| 7897 | ;; |
| 7898 | no:yes:* ) |
| 7899 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: present but cannot be compiled" >&5 |
| 7900 | echo "$as_me: WARNING: sys/timeb.h: present but cannot be compiled" >&2;} |
| 7901 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&5 |
| 7902 | echo "$as_me: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&2;} |
| 7903 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: see the Autoconf documentation" >&5 |
| 7904 | echo "$as_me: WARNING: sys/timeb.h: see the Autoconf documentation" >&2;} |
| 7905 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7906 | echo "$as_me: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7907 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&5 |
| 7908 | echo "$as_me: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&2;} |
| 7909 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&5 |
| 7910 | echo "$as_me: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7911 | ( |
| 7912 | cat <<\_ASBOX |
| 7913 | ## ------------------------------------ ## |
| 7914 | ## Report this to the pjproject lists. ## |
| 7915 | ## ------------------------------------ ## |
| 7916 | _ASBOX |
| 7917 | ) | |
| 7918 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7919 | ;; |
| 7920 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7921 | echo "$as_me:$LINENO: checking for sys/timeb.h" >&5 |
| 7922 | echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7923 | if test "${ac_cv_header_sys_timeb_h+set}" = set; then |
| 7924 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7925 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7926 | ac_cv_header_sys_timeb_h=$ac_header_preproc |
| 7927 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7928 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5 |
| 7929 | echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7930 | |
| 7931 | fi |
| 7932 | if test $ac_cv_header_sys_timeb_h = yes; then |
| 7933 | cat >>confdefs.h <<\_ACEOF |
| 7934 | #define PJ_HAS_SYS_TIMEB_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7935 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7936 | |
| 7937 | fi |
| 7938 | |
| 7939 | |
| 7940 | if test "${ac_cv_header_sys_types_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7941 | echo "$as_me:$LINENO: checking for sys/types.h" >&5 |
| 7942 | echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7943 | if test "${ac_cv_header_sys_types_h+set}" = set; then |
| 7944 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7945 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7946 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5 |
| 7947 | echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7948 | else |
| 7949 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7950 | echo "$as_me:$LINENO: checking sys/types.h usability" >&5 |
| 7951 | echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7952 | cat >conftest.$ac_ext <<_ACEOF |
| 7953 | /* confdefs.h. */ |
| 7954 | _ACEOF |
| 7955 | cat confdefs.h >>conftest.$ac_ext |
| 7956 | cat >>conftest.$ac_ext <<_ACEOF |
| 7957 | /* end confdefs.h. */ |
| 7958 | $ac_includes_default |
| 7959 | #include <sys/types.h> |
| 7960 | _ACEOF |
| 7961 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7962 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7963 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7964 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7965 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7966 | rm -f conftest.er1 |
| 7967 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7969 | (exit $ac_status); } && |
| 7970 | { ac_try='test -z "$ac_c_werror_flag" |
| 7971 | || test ! -s conftest.err' |
| 7972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7973 | (eval $ac_try) 2>&5 |
| 7974 | ac_status=$? |
| 7975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7976 | (exit $ac_status); }; } && |
| 7977 | { ac_try='test -s conftest.$ac_objext' |
| 7978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7979 | (eval $ac_try) 2>&5 |
| 7980 | ac_status=$? |
| 7981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7982 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7983 | ac_header_compiler=yes |
| 7984 | else |
| 7985 | echo "$as_me: failed program was:" >&5 |
| 7986 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7987 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7988 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7989 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7990 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7991 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7992 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7993 | |
| 7994 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 7995 | echo "$as_me:$LINENO: checking sys/types.h presence" >&5 |
| 7996 | echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7997 | cat >conftest.$ac_ext <<_ACEOF |
| 7998 | /* confdefs.h. */ |
| 7999 | _ACEOF |
| 8000 | cat confdefs.h >>conftest.$ac_ext |
| 8001 | cat >>conftest.$ac_ext <<_ACEOF |
| 8002 | /* end confdefs.h. */ |
| 8003 | #include <sys/types.h> |
| 8004 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8005 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8006 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8007 | ac_status=$? |
| 8008 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8009 | rm -f conftest.er1 |
| 8010 | cat conftest.err >&5 |
| 8011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8012 | (exit $ac_status); } >/dev/null; then |
| 8013 | if test -s conftest.err; then |
| 8014 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8015 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8016 | else |
| 8017 | ac_cpp_err= |
| 8018 | fi |
| 8019 | else |
| 8020 | ac_cpp_err=yes |
| 8021 | fi |
| 8022 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8023 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8024 | else |
| 8025 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8026 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8027 | |
| 8028 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8029 | fi |
| 8030 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8031 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8032 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8033 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8034 | # So? What about this header? |
| 8035 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8036 | yes:no: ) |
| 8037 | { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8038 | echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8039 | { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5 |
| 8040 | echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;} |
| 8041 | ac_header_preproc=yes |
| 8042 | ;; |
| 8043 | no:yes:* ) |
| 8044 | { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5 |
| 8045 | echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;} |
| 8046 | { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5 |
| 8047 | echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;} |
| 8048 | { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5 |
| 8049 | echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;} |
| 8050 | { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8051 | echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8052 | { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5 |
| 8053 | echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;} |
| 8054 | { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5 |
| 8055 | echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8056 | ( |
| 8057 | cat <<\_ASBOX |
| 8058 | ## ------------------------------------ ## |
| 8059 | ## Report this to the pjproject lists. ## |
| 8060 | ## ------------------------------------ ## |
| 8061 | _ASBOX |
| 8062 | ) | |
| 8063 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8064 | ;; |
| 8065 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8066 | echo "$as_me:$LINENO: checking for sys/types.h" >&5 |
| 8067 | echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8068 | if test "${ac_cv_header_sys_types_h+set}" = set; then |
| 8069 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8070 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8071 | ac_cv_header_sys_types_h=$ac_header_preproc |
| 8072 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8073 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5 |
| 8074 | echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8075 | |
| 8076 | fi |
| 8077 | if test $ac_cv_header_sys_types_h = yes; then |
| 8078 | cat >>confdefs.h <<\_ACEOF |
| 8079 | #define PJ_HAS_SYS_TYPES_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8080 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8081 | |
| 8082 | fi |
| 8083 | |
| 8084 | |
| 8085 | if test "${ac_cv_header_time_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8086 | echo "$as_me:$LINENO: checking for time.h" >&5 |
| 8087 | echo $ECHO_N "checking for time.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8088 | if test "${ac_cv_header_time_h+set}" = set; then |
| 8089 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8090 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8091 | echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5 |
| 8092 | echo "${ECHO_T}$ac_cv_header_time_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8093 | else |
| 8094 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8095 | echo "$as_me:$LINENO: checking time.h usability" >&5 |
| 8096 | echo $ECHO_N "checking time.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8097 | cat >conftest.$ac_ext <<_ACEOF |
| 8098 | /* confdefs.h. */ |
| 8099 | _ACEOF |
| 8100 | cat confdefs.h >>conftest.$ac_ext |
| 8101 | cat >>conftest.$ac_ext <<_ACEOF |
| 8102 | /* end confdefs.h. */ |
| 8103 | $ac_includes_default |
| 8104 | #include <time.h> |
| 8105 | _ACEOF |
| 8106 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8107 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8108 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8109 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8110 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8111 | rm -f conftest.er1 |
| 8112 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8114 | (exit $ac_status); } && |
| 8115 | { ac_try='test -z "$ac_c_werror_flag" |
| 8116 | || test ! -s conftest.err' |
| 8117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8118 | (eval $ac_try) 2>&5 |
| 8119 | ac_status=$? |
| 8120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8121 | (exit $ac_status); }; } && |
| 8122 | { ac_try='test -s conftest.$ac_objext' |
| 8123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8124 | (eval $ac_try) 2>&5 |
| 8125 | ac_status=$? |
| 8126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8127 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8128 | ac_header_compiler=yes |
| 8129 | else |
| 8130 | echo "$as_me: failed program was:" >&5 |
| 8131 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8132 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8133 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8134 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8135 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8136 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8137 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8138 | |
| 8139 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8140 | echo "$as_me:$LINENO: checking time.h presence" >&5 |
| 8141 | echo $ECHO_N "checking time.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8142 | cat >conftest.$ac_ext <<_ACEOF |
| 8143 | /* confdefs.h. */ |
| 8144 | _ACEOF |
| 8145 | cat confdefs.h >>conftest.$ac_ext |
| 8146 | cat >>conftest.$ac_ext <<_ACEOF |
| 8147 | /* end confdefs.h. */ |
| 8148 | #include <time.h> |
| 8149 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8150 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8151 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8152 | ac_status=$? |
| 8153 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8154 | rm -f conftest.er1 |
| 8155 | cat conftest.err >&5 |
| 8156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8157 | (exit $ac_status); } >/dev/null; then |
| 8158 | if test -s conftest.err; then |
| 8159 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8160 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8161 | else |
| 8162 | ac_cpp_err= |
| 8163 | fi |
| 8164 | else |
| 8165 | ac_cpp_err=yes |
| 8166 | fi |
| 8167 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8168 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8169 | else |
| 8170 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8171 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8172 | |
| 8173 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8174 | fi |
| 8175 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8176 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8177 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8178 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8179 | # So? What about this header? |
| 8180 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8181 | yes:no: ) |
| 8182 | { echo "$as_me:$LINENO: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8183 | echo "$as_me: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8184 | { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the compiler's result" >&5 |
| 8185 | echo "$as_me: WARNING: time.h: proceeding with the compiler's result" >&2;} |
| 8186 | ac_header_preproc=yes |
| 8187 | ;; |
| 8188 | no:yes:* ) |
| 8189 | { echo "$as_me:$LINENO: WARNING: time.h: present but cannot be compiled" >&5 |
| 8190 | echo "$as_me: WARNING: time.h: present but cannot be compiled" >&2;} |
| 8191 | { echo "$as_me:$LINENO: WARNING: time.h: check for missing prerequisite headers?" >&5 |
| 8192 | echo "$as_me: WARNING: time.h: check for missing prerequisite headers?" >&2;} |
| 8193 | { echo "$as_me:$LINENO: WARNING: time.h: see the Autoconf documentation" >&5 |
| 8194 | echo "$as_me: WARNING: time.h: see the Autoconf documentation" >&2;} |
| 8195 | { echo "$as_me:$LINENO: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8196 | echo "$as_me: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8197 | { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the preprocessor's result" >&5 |
| 8198 | echo "$as_me: WARNING: time.h: proceeding with the preprocessor's result" >&2;} |
| 8199 | { echo "$as_me:$LINENO: WARNING: time.h: in the future, the compiler will take precedence" >&5 |
| 8200 | echo "$as_me: WARNING: time.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8201 | ( |
| 8202 | cat <<\_ASBOX |
| 8203 | ## ------------------------------------ ## |
| 8204 | ## Report this to the pjproject lists. ## |
| 8205 | ## ------------------------------------ ## |
| 8206 | _ASBOX |
| 8207 | ) | |
| 8208 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8209 | ;; |
| 8210 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8211 | echo "$as_me:$LINENO: checking for time.h" >&5 |
| 8212 | echo $ECHO_N "checking for time.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8213 | if test "${ac_cv_header_time_h+set}" = set; then |
| 8214 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8215 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8216 | ac_cv_header_time_h=$ac_header_preproc |
| 8217 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8218 | echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5 |
| 8219 | echo "${ECHO_T}$ac_cv_header_time_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8220 | |
| 8221 | fi |
| 8222 | if test $ac_cv_header_time_h = yes; then |
| 8223 | cat >>confdefs.h <<\_ACEOF |
| 8224 | #define PJ_HAS_TIME_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8225 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8226 | |
| 8227 | fi |
| 8228 | |
| 8229 | |
| 8230 | if test "${ac_cv_header_unistd_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8231 | echo "$as_me:$LINENO: checking for unistd.h" >&5 |
| 8232 | echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8233 | if test "${ac_cv_header_unistd_h+set}" = set; then |
| 8234 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8235 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8236 | echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5 |
| 8237 | echo "${ECHO_T}$ac_cv_header_unistd_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8238 | else |
| 8239 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8240 | echo "$as_me:$LINENO: checking unistd.h usability" >&5 |
| 8241 | echo $ECHO_N "checking unistd.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8242 | cat >conftest.$ac_ext <<_ACEOF |
| 8243 | /* confdefs.h. */ |
| 8244 | _ACEOF |
| 8245 | cat confdefs.h >>conftest.$ac_ext |
| 8246 | cat >>conftest.$ac_ext <<_ACEOF |
| 8247 | /* end confdefs.h. */ |
| 8248 | $ac_includes_default |
| 8249 | #include <unistd.h> |
| 8250 | _ACEOF |
| 8251 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8252 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8253 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8254 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8255 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8256 | rm -f conftest.er1 |
| 8257 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8259 | (exit $ac_status); } && |
| 8260 | { ac_try='test -z "$ac_c_werror_flag" |
| 8261 | || test ! -s conftest.err' |
| 8262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8263 | (eval $ac_try) 2>&5 |
| 8264 | ac_status=$? |
| 8265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8266 | (exit $ac_status); }; } && |
| 8267 | { ac_try='test -s conftest.$ac_objext' |
| 8268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8269 | (eval $ac_try) 2>&5 |
| 8270 | ac_status=$? |
| 8271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8272 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8273 | ac_header_compiler=yes |
| 8274 | else |
| 8275 | echo "$as_me: failed program was:" >&5 |
| 8276 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8277 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8278 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8279 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8280 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8281 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8282 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8283 | |
| 8284 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8285 | echo "$as_me:$LINENO: checking unistd.h presence" >&5 |
| 8286 | echo $ECHO_N "checking unistd.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8287 | cat >conftest.$ac_ext <<_ACEOF |
| 8288 | /* confdefs.h. */ |
| 8289 | _ACEOF |
| 8290 | cat confdefs.h >>conftest.$ac_ext |
| 8291 | cat >>conftest.$ac_ext <<_ACEOF |
| 8292 | /* end confdefs.h. */ |
| 8293 | #include <unistd.h> |
| 8294 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8295 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8296 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8297 | ac_status=$? |
| 8298 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8299 | rm -f conftest.er1 |
| 8300 | cat conftest.err >&5 |
| 8301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8302 | (exit $ac_status); } >/dev/null; then |
| 8303 | if test -s conftest.err; then |
| 8304 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8305 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8306 | else |
| 8307 | ac_cpp_err= |
| 8308 | fi |
| 8309 | else |
| 8310 | ac_cpp_err=yes |
| 8311 | fi |
| 8312 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8313 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8314 | else |
| 8315 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8316 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8317 | |
| 8318 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8319 | fi |
| 8320 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8321 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8322 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8323 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8324 | # So? What about this header? |
| 8325 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8326 | yes:no: ) |
| 8327 | { echo "$as_me:$LINENO: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8328 | echo "$as_me: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8329 | { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the compiler's result" >&5 |
| 8330 | echo "$as_me: WARNING: unistd.h: proceeding with the compiler's result" >&2;} |
| 8331 | ac_header_preproc=yes |
| 8332 | ;; |
| 8333 | no:yes:* ) |
| 8334 | { echo "$as_me:$LINENO: WARNING: unistd.h: present but cannot be compiled" >&5 |
| 8335 | echo "$as_me: WARNING: unistd.h: present but cannot be compiled" >&2;} |
| 8336 | { echo "$as_me:$LINENO: WARNING: unistd.h: check for missing prerequisite headers?" >&5 |
| 8337 | echo "$as_me: WARNING: unistd.h: check for missing prerequisite headers?" >&2;} |
| 8338 | { echo "$as_me:$LINENO: WARNING: unistd.h: see the Autoconf documentation" >&5 |
| 8339 | echo "$as_me: WARNING: unistd.h: see the Autoconf documentation" >&2;} |
| 8340 | { echo "$as_me:$LINENO: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8341 | echo "$as_me: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8342 | { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5 |
| 8343 | echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;} |
| 8344 | { echo "$as_me:$LINENO: WARNING: unistd.h: in the future, the compiler will take precedence" >&5 |
| 8345 | echo "$as_me: WARNING: unistd.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8346 | ( |
| 8347 | cat <<\_ASBOX |
| 8348 | ## ------------------------------------ ## |
| 8349 | ## Report this to the pjproject lists. ## |
| 8350 | ## ------------------------------------ ## |
| 8351 | _ASBOX |
| 8352 | ) | |
| 8353 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8354 | ;; |
| 8355 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8356 | echo "$as_me:$LINENO: checking for unistd.h" >&5 |
| 8357 | echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8358 | if test "${ac_cv_header_unistd_h+set}" = set; then |
| 8359 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8360 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8361 | ac_cv_header_unistd_h=$ac_header_preproc |
| 8362 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8363 | echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5 |
| 8364 | echo "${ECHO_T}$ac_cv_header_unistd_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8365 | |
| 8366 | fi |
| 8367 | if test $ac_cv_header_unistd_h = yes; then |
| 8368 | cat >>confdefs.h <<\_ACEOF |
| 8369 | #define PJ_HAS_UNISTD_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8370 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8371 | |
| 8372 | fi |
| 8373 | |
| 8374 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8375 | if test "${ac_cv_header_winsock_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8376 | echo "$as_me:$LINENO: checking for winsock.h" >&5 |
| 8377 | echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8378 | if test "${ac_cv_header_winsock_h+set}" = set; then |
| 8379 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8380 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8381 | echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5 |
| 8382 | echo "${ECHO_T}$ac_cv_header_winsock_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8383 | else |
| 8384 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8385 | echo "$as_me:$LINENO: checking winsock.h usability" >&5 |
| 8386 | echo $ECHO_N "checking winsock.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8387 | cat >conftest.$ac_ext <<_ACEOF |
| 8388 | /* confdefs.h. */ |
| 8389 | _ACEOF |
| 8390 | cat confdefs.h >>conftest.$ac_ext |
| 8391 | cat >>conftest.$ac_ext <<_ACEOF |
| 8392 | /* end confdefs.h. */ |
| 8393 | $ac_includes_default |
| 8394 | #include <winsock.h> |
| 8395 | _ACEOF |
| 8396 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8397 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8398 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8399 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8400 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8401 | rm -f conftest.er1 |
| 8402 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8404 | (exit $ac_status); } && |
| 8405 | { ac_try='test -z "$ac_c_werror_flag" |
| 8406 | || test ! -s conftest.err' |
| 8407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8408 | (eval $ac_try) 2>&5 |
| 8409 | ac_status=$? |
| 8410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8411 | (exit $ac_status); }; } && |
| 8412 | { ac_try='test -s conftest.$ac_objext' |
| 8413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8414 | (eval $ac_try) 2>&5 |
| 8415 | ac_status=$? |
| 8416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8417 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8418 | ac_header_compiler=yes |
| 8419 | else |
| 8420 | echo "$as_me: failed program was:" >&5 |
| 8421 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8422 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8423 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8424 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8425 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8426 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8427 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8428 | |
| 8429 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8430 | echo "$as_me:$LINENO: checking winsock.h presence" >&5 |
| 8431 | echo $ECHO_N "checking winsock.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8432 | cat >conftest.$ac_ext <<_ACEOF |
| 8433 | /* confdefs.h. */ |
| 8434 | _ACEOF |
| 8435 | cat confdefs.h >>conftest.$ac_ext |
| 8436 | cat >>conftest.$ac_ext <<_ACEOF |
| 8437 | /* end confdefs.h. */ |
| 8438 | #include <winsock.h> |
| 8439 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8440 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8441 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8442 | ac_status=$? |
| 8443 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8444 | rm -f conftest.er1 |
| 8445 | cat conftest.err >&5 |
| 8446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8447 | (exit $ac_status); } >/dev/null; then |
| 8448 | if test -s conftest.err; then |
| 8449 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8450 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8451 | else |
| 8452 | ac_cpp_err= |
| 8453 | fi |
| 8454 | else |
| 8455 | ac_cpp_err=yes |
| 8456 | fi |
| 8457 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8458 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8459 | else |
| 8460 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8461 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8462 | |
| 8463 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8464 | fi |
| 8465 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8466 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8467 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8468 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8469 | # So? What about this header? |
| 8470 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8471 | yes:no: ) |
| 8472 | { echo "$as_me:$LINENO: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8473 | echo "$as_me: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8474 | { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the compiler's result" >&5 |
| 8475 | echo "$as_me: WARNING: winsock.h: proceeding with the compiler's result" >&2;} |
| 8476 | ac_header_preproc=yes |
| 8477 | ;; |
| 8478 | no:yes:* ) |
| 8479 | { echo "$as_me:$LINENO: WARNING: winsock.h: present but cannot be compiled" >&5 |
| 8480 | echo "$as_me: WARNING: winsock.h: present but cannot be compiled" >&2;} |
| 8481 | { echo "$as_me:$LINENO: WARNING: winsock.h: check for missing prerequisite headers?" >&5 |
| 8482 | echo "$as_me: WARNING: winsock.h: check for missing prerequisite headers?" >&2;} |
| 8483 | { echo "$as_me:$LINENO: WARNING: winsock.h: see the Autoconf documentation" >&5 |
| 8484 | echo "$as_me: WARNING: winsock.h: see the Autoconf documentation" >&2;} |
| 8485 | { echo "$as_me:$LINENO: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8486 | echo "$as_me: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8487 | { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the preprocessor's result" >&5 |
| 8488 | echo "$as_me: WARNING: winsock.h: proceeding with the preprocessor's result" >&2;} |
| 8489 | { echo "$as_me:$LINENO: WARNING: winsock.h: in the future, the compiler will take precedence" >&5 |
| 8490 | echo "$as_me: WARNING: winsock.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8491 | ( |
| 8492 | cat <<\_ASBOX |
| 8493 | ## ------------------------------------ ## |
| 8494 | ## Report this to the pjproject lists. ## |
| 8495 | ## ------------------------------------ ## |
| 8496 | _ASBOX |
| 8497 | ) | |
| 8498 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8499 | ;; |
| 8500 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8501 | echo "$as_me:$LINENO: checking for winsock.h" >&5 |
| 8502 | echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8503 | if test "${ac_cv_header_winsock_h+set}" = set; then |
| 8504 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8505 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8506 | ac_cv_header_winsock_h=$ac_header_preproc |
| 8507 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8508 | echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5 |
| 8509 | echo "${ECHO_T}$ac_cv_header_winsock_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8510 | |
| 8511 | fi |
| 8512 | if test $ac_cv_header_winsock_h = yes; then |
| 8513 | cat >>confdefs.h <<\_ACEOF |
| 8514 | #define PJ_HAS_WINSOCK_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8515 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8516 | |
| 8517 | fi |
| 8518 | |
| 8519 | |
| 8520 | if test "${ac_cv_header_winsock2_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8521 | echo "$as_me:$LINENO: checking for winsock2.h" >&5 |
| 8522 | echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8523 | if test "${ac_cv_header_winsock2_h+set}" = set; then |
| 8524 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8525 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8526 | echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5 |
| 8527 | echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8528 | else |
| 8529 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8530 | echo "$as_me:$LINENO: checking winsock2.h usability" >&5 |
| 8531 | echo $ECHO_N "checking winsock2.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8532 | cat >conftest.$ac_ext <<_ACEOF |
| 8533 | /* confdefs.h. */ |
| 8534 | _ACEOF |
| 8535 | cat confdefs.h >>conftest.$ac_ext |
| 8536 | cat >>conftest.$ac_ext <<_ACEOF |
| 8537 | /* end confdefs.h. */ |
| 8538 | $ac_includes_default |
| 8539 | #include <winsock2.h> |
| 8540 | _ACEOF |
| 8541 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8542 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8543 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8544 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8545 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8546 | rm -f conftest.er1 |
| 8547 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8549 | (exit $ac_status); } && |
| 8550 | { ac_try='test -z "$ac_c_werror_flag" |
| 8551 | || test ! -s conftest.err' |
| 8552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8553 | (eval $ac_try) 2>&5 |
| 8554 | ac_status=$? |
| 8555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8556 | (exit $ac_status); }; } && |
| 8557 | { ac_try='test -s conftest.$ac_objext' |
| 8558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8559 | (eval $ac_try) 2>&5 |
| 8560 | ac_status=$? |
| 8561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8562 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8563 | ac_header_compiler=yes |
| 8564 | else |
| 8565 | echo "$as_me: failed program was:" >&5 |
| 8566 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8567 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8568 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8569 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8570 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8571 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8572 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8573 | |
| 8574 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8575 | echo "$as_me:$LINENO: checking winsock2.h presence" >&5 |
| 8576 | echo $ECHO_N "checking winsock2.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8577 | cat >conftest.$ac_ext <<_ACEOF |
| 8578 | /* confdefs.h. */ |
| 8579 | _ACEOF |
| 8580 | cat confdefs.h >>conftest.$ac_ext |
| 8581 | cat >>conftest.$ac_ext <<_ACEOF |
| 8582 | /* end confdefs.h. */ |
| 8583 | #include <winsock2.h> |
| 8584 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8585 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8586 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8587 | ac_status=$? |
| 8588 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8589 | rm -f conftest.er1 |
| 8590 | cat conftest.err >&5 |
| 8591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8592 | (exit $ac_status); } >/dev/null; then |
| 8593 | if test -s conftest.err; then |
| 8594 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8595 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8596 | else |
| 8597 | ac_cpp_err= |
| 8598 | fi |
| 8599 | else |
| 8600 | ac_cpp_err=yes |
| 8601 | fi |
| 8602 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8603 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8604 | else |
| 8605 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8606 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8607 | |
| 8608 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8609 | fi |
| 8610 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8611 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8612 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8613 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8614 | # So? What about this header? |
| 8615 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8616 | yes:no: ) |
| 8617 | { echo "$as_me:$LINENO: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8618 | echo "$as_me: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8619 | { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the compiler's result" >&5 |
| 8620 | echo "$as_me: WARNING: winsock2.h: proceeding with the compiler's result" >&2;} |
| 8621 | ac_header_preproc=yes |
| 8622 | ;; |
| 8623 | no:yes:* ) |
| 8624 | { echo "$as_me:$LINENO: WARNING: winsock2.h: present but cannot be compiled" >&5 |
| 8625 | echo "$as_me: WARNING: winsock2.h: present but cannot be compiled" >&2;} |
| 8626 | { echo "$as_me:$LINENO: WARNING: winsock2.h: check for missing prerequisite headers?" >&5 |
| 8627 | echo "$as_me: WARNING: winsock2.h: check for missing prerequisite headers?" >&2;} |
| 8628 | { echo "$as_me:$LINENO: WARNING: winsock2.h: see the Autoconf documentation" >&5 |
| 8629 | echo "$as_me: WARNING: winsock2.h: see the Autoconf documentation" >&2;} |
| 8630 | { echo "$as_me:$LINENO: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8631 | echo "$as_me: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8632 | { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the preprocessor's result" >&5 |
| 8633 | echo "$as_me: WARNING: winsock2.h: proceeding with the preprocessor's result" >&2;} |
| 8634 | { echo "$as_me:$LINENO: WARNING: winsock2.h: in the future, the compiler will take precedence" >&5 |
| 8635 | echo "$as_me: WARNING: winsock2.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8636 | ( |
| 8637 | cat <<\_ASBOX |
| 8638 | ## ------------------------------------ ## |
| 8639 | ## Report this to the pjproject lists. ## |
| 8640 | ## ------------------------------------ ## |
| 8641 | _ASBOX |
| 8642 | ) | |
| 8643 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8644 | ;; |
| 8645 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8646 | echo "$as_me:$LINENO: checking for winsock2.h" >&5 |
| 8647 | echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8648 | if test "${ac_cv_header_winsock2_h+set}" = set; then |
| 8649 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8650 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8651 | ac_cv_header_winsock2_h=$ac_header_preproc |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8652 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8653 | echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5 |
| 8654 | echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8655 | |
| 8656 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8657 | if test $ac_cv_header_winsock2_h = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8658 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8659 | #define PJ_HAS_WINSOCK2_H 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8660 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8661 | |
| 8662 | fi |
| 8663 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8664 | |
Benny Prijono | a9948e6 | 2008-03-25 14:03:01 +0000 | [diff] [blame] | 8665 | echo "$as_me:$LINENO: checking for mswsock.h" >&5 |
| 8666 | echo $ECHO_N "checking for mswsock.h... $ECHO_C" >&6 |
| 8667 | if test "${ac_cv_header_mswsock_h+set}" = set; then |
| 8668 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8669 | else |
| 8670 | cat >conftest.$ac_ext <<_ACEOF |
| 8671 | /* confdefs.h. */ |
| 8672 | _ACEOF |
| 8673 | cat confdefs.h >>conftest.$ac_ext |
| 8674 | cat >>conftest.$ac_ext <<_ACEOF |
| 8675 | /* end confdefs.h. */ |
| 8676 | #if PJ_HAS_WINSOCK2_H |
| 8677 | # include <winsock2.h> |
| 8678 | #elif PJ_HAS_WINSOCK_H |
| 8679 | # include <winsock.h> |
| 8680 | #endif |
| 8681 | |
| 8682 | |
| 8683 | #include <mswsock.h> |
| 8684 | _ACEOF |
| 8685 | rm -f conftest.$ac_objext |
| 8686 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8687 | (eval $ac_compile) 2>conftest.er1 |
| 8688 | ac_status=$? |
| 8689 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8690 | rm -f conftest.er1 |
| 8691 | cat conftest.err >&5 |
| 8692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8693 | (exit $ac_status); } && |
| 8694 | { ac_try='test -z "$ac_c_werror_flag" |
| 8695 | || test ! -s conftest.err' |
| 8696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8697 | (eval $ac_try) 2>&5 |
| 8698 | ac_status=$? |
| 8699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8700 | (exit $ac_status); }; } && |
| 8701 | { ac_try='test -s conftest.$ac_objext' |
| 8702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8703 | (eval $ac_try) 2>&5 |
| 8704 | ac_status=$? |
| 8705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8706 | (exit $ac_status); }; }; then |
| 8707 | ac_cv_header_mswsock_h=yes |
| 8708 | else |
| 8709 | echo "$as_me: failed program was:" >&5 |
| 8710 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8711 | |
| 8712 | ac_cv_header_mswsock_h=no |
| 8713 | fi |
| 8714 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8715 | fi |
| 8716 | echo "$as_me:$LINENO: result: $ac_cv_header_mswsock_h" >&5 |
| 8717 | echo "${ECHO_T}$ac_cv_header_mswsock_h" >&6 |
| 8718 | if test $ac_cv_header_mswsock_h = yes; then |
| 8719 | cat >>confdefs.h <<\_ACEOF |
| 8720 | #define PJ_HAS_MSWSOCK_H 1 |
| 8721 | _ACEOF |
| 8722 | |
| 8723 | fi |
| 8724 | |
| 8725 | |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 8726 | if test "${ac_cv_header_uuid_uuid_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8727 | echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5 |
| 8728 | echo $ECHO_N "checking for uuid/uuid.h... $ECHO_C" >&6 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 8729 | if test "${ac_cv_header_uuid_uuid_h+set}" = set; then |
| 8730 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8731 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8732 | echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5 |
| 8733 | echo "${ECHO_T}$ac_cv_header_uuid_uuid_h" >&6 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 8734 | else |
| 8735 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8736 | echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5 |
| 8737 | echo $ECHO_N "checking uuid/uuid.h usability... $ECHO_C" >&6 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 8738 | cat >conftest.$ac_ext <<_ACEOF |
| 8739 | /* confdefs.h. */ |
| 8740 | _ACEOF |
| 8741 | cat confdefs.h >>conftest.$ac_ext |
| 8742 | cat >>conftest.$ac_ext <<_ACEOF |
| 8743 | /* end confdefs.h. */ |
| 8744 | $ac_includes_default |
| 8745 | #include <uuid/uuid.h> |
| 8746 | _ACEOF |
| 8747 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8748 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8749 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 8750 | ac_status=$? |
| 8751 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8752 | rm -f conftest.er1 |
| 8753 | cat conftest.err >&5 |
| 8754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8755 | (exit $ac_status); } && |
| 8756 | { ac_try='test -z "$ac_c_werror_flag" |
| 8757 | || test ! -s conftest.err' |
| 8758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8759 | (eval $ac_try) 2>&5 |
| 8760 | ac_status=$? |
| 8761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8762 | (exit $ac_status); }; } && |
| 8763 | { ac_try='test -s conftest.$ac_objext' |
| 8764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8765 | (eval $ac_try) 2>&5 |
| 8766 | ac_status=$? |
| 8767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8768 | (exit $ac_status); }; }; then |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 8769 | ac_header_compiler=yes |
| 8770 | else |
| 8771 | echo "$as_me: failed program was:" >&5 |
| 8772 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8773 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8774 | ac_header_compiler=no |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 8775 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8776 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8777 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8778 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 8779 | |
| 8780 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8781 | echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5 |
| 8782 | echo $ECHO_N "checking uuid/uuid.h presence... $ECHO_C" >&6 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 8783 | cat >conftest.$ac_ext <<_ACEOF |
| 8784 | /* confdefs.h. */ |
| 8785 | _ACEOF |
| 8786 | cat confdefs.h >>conftest.$ac_ext |
| 8787 | cat >>conftest.$ac_ext <<_ACEOF |
| 8788 | /* end confdefs.h. */ |
| 8789 | #include <uuid/uuid.h> |
| 8790 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8791 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8792 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 8793 | ac_status=$? |
| 8794 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8795 | rm -f conftest.er1 |
| 8796 | cat conftest.err >&5 |
| 8797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8798 | (exit $ac_status); } >/dev/null; then |
| 8799 | if test -s conftest.err; then |
| 8800 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8801 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8802 | else |
| 8803 | ac_cpp_err= |
| 8804 | fi |
| 8805 | else |
| 8806 | ac_cpp_err=yes |
| 8807 | fi |
| 8808 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 8809 | ac_header_preproc=yes |
| 8810 | else |
| 8811 | echo "$as_me: failed program was:" >&5 |
| 8812 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8813 | |
| 8814 | ac_header_preproc=no |
| 8815 | fi |
| 8816 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8817 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8818 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 8819 | |
| 8820 | # So? What about this header? |
| 8821 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8822 | yes:no: ) |
| 8823 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8824 | echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8825 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5 |
| 8826 | echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;} |
| 8827 | ac_header_preproc=yes |
| 8828 | ;; |
| 8829 | no:yes:* ) |
| 8830 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5 |
| 8831 | echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;} |
| 8832 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5 |
| 8833 | echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;} |
| 8834 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5 |
| 8835 | echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;} |
| 8836 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8837 | echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8838 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5 |
| 8839 | echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;} |
| 8840 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5 |
| 8841 | echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8842 | ( |
| 8843 | cat <<\_ASBOX |
| 8844 | ## ------------------------------------ ## |
| 8845 | ## Report this to the pjproject lists. ## |
| 8846 | ## ------------------------------------ ## |
| 8847 | _ASBOX |
| 8848 | ) | |
| 8849 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 8850 | ;; |
| 8851 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8852 | echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5 |
| 8853 | echo $ECHO_N "checking for uuid/uuid.h... $ECHO_C" >&6 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 8854 | if test "${ac_cv_header_uuid_uuid_h+set}" = set; then |
| 8855 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8856 | else |
| 8857 | ac_cv_header_uuid_uuid_h=$ac_header_preproc |
| 8858 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8859 | echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5 |
| 8860 | echo "${ECHO_T}$ac_cv_header_uuid_uuid_h" >&6 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 8861 | |
| 8862 | fi |
| 8863 | if test $ac_cv_header_uuid_uuid_h = yes; then |
| 8864 | ac_has_uuid_h=1 |
| 8865 | fi |
| 8866 | |
| 8867 | |
Benny Prijono | a9948e6 | 2008-03-25 14:03:01 +0000 | [diff] [blame] | 8868 | echo "$as_me:$LINENO: checking for net/if.h" >&5 |
| 8869 | echo $ECHO_N "checking for net/if.h... $ECHO_C" >&6 |
| 8870 | if test "${ac_cv_header_net_if_h+set}" = set; then |
Benny Prijono | 188ba7e | 2008-03-25 13:53:16 +0000 | [diff] [blame] | 8871 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8872 | else |
| 8873 | cat >conftest.$ac_ext <<_ACEOF |
| 8874 | /* confdefs.h. */ |
| 8875 | _ACEOF |
| 8876 | cat confdefs.h >>conftest.$ac_ext |
| 8877 | cat >>conftest.$ac_ext <<_ACEOF |
| 8878 | /* end confdefs.h. */ |
| 8879 | #if PJ_HAS_SYS_SOCKET_H |
| 8880 | # include <sys/socket.h> |
| 8881 | #endif |
| 8882 | |
| 8883 | |
Benny Prijono | a9948e6 | 2008-03-25 14:03:01 +0000 | [diff] [blame] | 8884 | #include <net/if.h> |
Benny Prijono | 188ba7e | 2008-03-25 13:53:16 +0000 | [diff] [blame] | 8885 | _ACEOF |
| 8886 | rm -f conftest.$ac_objext |
| 8887 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8888 | (eval $ac_compile) 2>conftest.er1 |
| 8889 | ac_status=$? |
| 8890 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8891 | rm -f conftest.er1 |
| 8892 | cat conftest.err >&5 |
| 8893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8894 | (exit $ac_status); } && |
| 8895 | { ac_try='test -z "$ac_c_werror_flag" |
| 8896 | || test ! -s conftest.err' |
| 8897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8898 | (eval $ac_try) 2>&5 |
| 8899 | ac_status=$? |
| 8900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8901 | (exit $ac_status); }; } && |
| 8902 | { ac_try='test -s conftest.$ac_objext' |
| 8903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8904 | (eval $ac_try) 2>&5 |
| 8905 | ac_status=$? |
| 8906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8907 | (exit $ac_status); }; }; then |
Benny Prijono | a9948e6 | 2008-03-25 14:03:01 +0000 | [diff] [blame] | 8908 | ac_cv_header_net_if_h=yes |
Benny Prijono | 188ba7e | 2008-03-25 13:53:16 +0000 | [diff] [blame] | 8909 | else |
| 8910 | echo "$as_me: failed program was:" >&5 |
| 8911 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8912 | |
Benny Prijono | a9948e6 | 2008-03-25 14:03:01 +0000 | [diff] [blame] | 8913 | ac_cv_header_net_if_h=no |
Benny Prijono | 188ba7e | 2008-03-25 13:53:16 +0000 | [diff] [blame] | 8914 | fi |
| 8915 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8916 | fi |
Benny Prijono | a9948e6 | 2008-03-25 14:03:01 +0000 | [diff] [blame] | 8917 | echo "$as_me:$LINENO: result: $ac_cv_header_net_if_h" >&5 |
| 8918 | echo "${ECHO_T}$ac_cv_header_net_if_h" >&6 |
| 8919 | if test $ac_cv_header_net_if_h = yes; then |
| 8920 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | 188ba7e | 2008-03-25 13:53:16 +0000 | [diff] [blame] | 8921 | #define PJ_HAS_NET_IF_H 1 |
| 8922 | _ACEOF |
| 8923 | |
| 8924 | fi |
| 8925 | |
Benny Prijono | 188ba7e | 2008-03-25 13:53:16 +0000 | [diff] [blame] | 8926 | |
| 8927 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8928 | echo "$as_me:$LINENO: result: Setting PJ_OS_NAME to $target" >&5 |
| 8929 | echo "${ECHO_T}Setting PJ_OS_NAME to $target" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8930 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8931 | #define PJ_OS_NAME "$target" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8932 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8933 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8934 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8935 | echo "$as_me:$LINENO: result: Setting PJ_HAS_ERRNO_VAR to 1" >&5 |
| 8936 | echo "${ECHO_T}Setting PJ_HAS_ERRNO_VAR to 1" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8937 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8938 | #define PJ_HAS_ERRNO_VAR 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8939 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8940 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8941 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8942 | echo "$as_me:$LINENO: result: Setting PJ_HAS_HIGH_RES_TIMER to 1" >&5 |
| 8943 | echo "${ECHO_T}Setting PJ_HAS_HIGH_RES_TIMER to 1" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8944 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8945 | #define PJ_HAS_HIGH_RES_TIMER 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8946 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8947 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8948 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8949 | echo "$as_me:$LINENO: result: Setting PJ_HAS_MALLOC to 1" >&5 |
| 8950 | echo "${ECHO_T}Setting PJ_HAS_MALLOC to 1" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8951 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8952 | #define PJ_HAS_MALLOC 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8953 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8954 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8955 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8956 | echo "$as_me:$LINENO: result: Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&5 |
| 8957 | echo "${ECHO_T}Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8958 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8959 | #define PJ_NATIVE_STRING_IS_UNICODE 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8960 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8961 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8962 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8963 | echo "$as_me:$LINENO: result: Setting PJ_ATOMIC_VALUE_TYPE to long" >&5 |
| 8964 | echo "${ECHO_T}Setting PJ_ATOMIC_VALUE_TYPE to long" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8965 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 8966 | #define PJ_ATOMIC_VALUE_TYPE long |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8967 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8968 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8969 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8970 | echo "$as_me:$LINENO: checking if inet_aton() is available" >&5 |
| 8971 | echo $ECHO_N "checking if inet_aton() is available... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8972 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8973 | /* confdefs.h. */ |
| 8974 | _ACEOF |
| 8975 | cat confdefs.h >>conftest.$ac_ext |
| 8976 | cat >>conftest.$ac_ext <<_ACEOF |
| 8977 | /* end confdefs.h. */ |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 8978 | #include <sys/types.h> |
| 8979 | #include <sys/socket.h> |
| 8980 | #include <arpa/inet.h> |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8981 | int |
| 8982 | main () |
| 8983 | { |
| 8984 | inet_aton(0, 0); |
| 8985 | ; |
| 8986 | return 0; |
| 8987 | } |
| 8988 | _ACEOF |
| 8989 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8990 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8991 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8992 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8993 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8994 | rm -f conftest.er1 |
| 8995 | cat conftest.err >&5 |
| 8996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 8997 | (exit $ac_status); } && |
| 8998 | { ac_try='test -z "$ac_c_werror_flag" |
| 8999 | || test ! -s conftest.err' |
| 9000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9001 | (eval $ac_try) 2>&5 |
| 9002 | ac_status=$? |
| 9003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9004 | (exit $ac_status); }; } && |
| 9005 | { ac_try='test -s conftest.$ac_objext' |
| 9006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9007 | (eval $ac_try) 2>&5 |
| 9008 | ac_status=$? |
| 9009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9010 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9011 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9012 | #define PJ_SOCK_HAS_INET_ATON 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9013 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9014 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9015 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9016 | echo "${ECHO_T}yes" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9017 | else |
| 9018 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9019 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9020 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9021 | echo "$as_me:$LINENO: result: no" >&5 |
| 9022 | echo "${ECHO_T}no" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9023 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9024 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9025 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9026 | echo "$as_me:$LINENO: checking if inet_pton() is available" >&5 |
| 9027 | echo $ECHO_N "checking if inet_pton() is available... $ECHO_C" >&6 |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9028 | cat >conftest.$ac_ext <<_ACEOF |
| 9029 | /* confdefs.h. */ |
| 9030 | _ACEOF |
| 9031 | cat confdefs.h >>conftest.$ac_ext |
| 9032 | cat >>conftest.$ac_ext <<_ACEOF |
| 9033 | /* end confdefs.h. */ |
| 9034 | #include <sys/types.h> |
| 9035 | #include <sys/socket.h> |
| 9036 | #include <arpa/inet.h> |
| 9037 | int |
| 9038 | main () |
| 9039 | { |
| 9040 | inet_pton(0, 0, 0); |
| 9041 | ; |
| 9042 | return 0; |
| 9043 | } |
| 9044 | _ACEOF |
| 9045 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9046 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9047 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9048 | ac_status=$? |
| 9049 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9050 | rm -f conftest.er1 |
| 9051 | cat conftest.err >&5 |
| 9052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9053 | (exit $ac_status); } && |
| 9054 | { ac_try='test -z "$ac_c_werror_flag" |
| 9055 | || test ! -s conftest.err' |
| 9056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9057 | (eval $ac_try) 2>&5 |
| 9058 | ac_status=$? |
| 9059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9060 | (exit $ac_status); }; } && |
| 9061 | { ac_try='test -s conftest.$ac_objext' |
| 9062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9063 | (eval $ac_try) 2>&5 |
| 9064 | ac_status=$? |
| 9065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9066 | (exit $ac_status); }; }; then |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9067 | cat >>confdefs.h <<\_ACEOF |
| 9068 | #define PJ_SOCK_HAS_INET_PTON 1 |
| 9069 | _ACEOF |
| 9070 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9071 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9072 | echo "${ECHO_T}yes" >&6 |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9073 | else |
| 9074 | echo "$as_me: failed program was:" >&5 |
| 9075 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9076 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9077 | echo "$as_me:$LINENO: result: no" >&5 |
| 9078 | echo "${ECHO_T}no" >&6 |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9079 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9080 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9081 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9082 | echo "$as_me:$LINENO: checking if inet_ntop() is available" >&5 |
| 9083 | echo $ECHO_N "checking if inet_ntop() is available... $ECHO_C" >&6 |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9084 | cat >conftest.$ac_ext <<_ACEOF |
| 9085 | /* confdefs.h. */ |
| 9086 | _ACEOF |
| 9087 | cat confdefs.h >>conftest.$ac_ext |
| 9088 | cat >>conftest.$ac_ext <<_ACEOF |
| 9089 | /* end confdefs.h. */ |
| 9090 | #include <sys/types.h> |
| 9091 | #include <sys/socket.h> |
| 9092 | #include <arpa/inet.h> |
| 9093 | int |
| 9094 | main () |
| 9095 | { |
| 9096 | inet_ntop(0, 0, 0, 0); |
| 9097 | ; |
| 9098 | return 0; |
| 9099 | } |
| 9100 | _ACEOF |
| 9101 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9102 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9103 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9104 | ac_status=$? |
| 9105 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9106 | rm -f conftest.er1 |
| 9107 | cat conftest.err >&5 |
| 9108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9109 | (exit $ac_status); } && |
| 9110 | { ac_try='test -z "$ac_c_werror_flag" |
| 9111 | || test ! -s conftest.err' |
| 9112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9113 | (eval $ac_try) 2>&5 |
| 9114 | ac_status=$? |
| 9115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9116 | (exit $ac_status); }; } && |
| 9117 | { ac_try='test -s conftest.$ac_objext' |
| 9118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9119 | (eval $ac_try) 2>&5 |
| 9120 | ac_status=$? |
| 9121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9122 | (exit $ac_status); }; }; then |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9123 | cat >>confdefs.h <<\_ACEOF |
| 9124 | #define PJ_SOCK_HAS_INET_NTOP 1 |
| 9125 | _ACEOF |
| 9126 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9127 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9128 | echo "${ECHO_T}yes" >&6 |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9129 | else |
| 9130 | echo "$as_me: failed program was:" >&5 |
| 9131 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9132 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9133 | echo "$as_me:$LINENO: result: no" >&5 |
| 9134 | echo "${ECHO_T}no" >&6 |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9135 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9136 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9137 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9138 | echo "$as_me:$LINENO: checking if getaddrinfo() is available" >&5 |
| 9139 | echo $ECHO_N "checking if getaddrinfo() is available... $ECHO_C" >&6 |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9140 | cat >conftest.$ac_ext <<_ACEOF |
| 9141 | /* confdefs.h. */ |
| 9142 | _ACEOF |
| 9143 | cat confdefs.h >>conftest.$ac_ext |
| 9144 | cat >>conftest.$ac_ext <<_ACEOF |
| 9145 | /* end confdefs.h. */ |
| 9146 | #include <sys/types.h> |
| 9147 | #include <sys/socket.h> |
| 9148 | #include <netdb.h> |
| 9149 | int |
| 9150 | main () |
| 9151 | { |
| 9152 | getaddrinfo(0, 0, 0, 0); |
| 9153 | ; |
| 9154 | return 0; |
| 9155 | } |
| 9156 | _ACEOF |
| 9157 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9158 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9159 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9160 | ac_status=$? |
| 9161 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9162 | rm -f conftest.er1 |
| 9163 | cat conftest.err >&5 |
| 9164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9165 | (exit $ac_status); } && |
| 9166 | { ac_try='test -z "$ac_c_werror_flag" |
| 9167 | || test ! -s conftest.err' |
| 9168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9169 | (eval $ac_try) 2>&5 |
| 9170 | ac_status=$? |
| 9171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9172 | (exit $ac_status); }; } && |
| 9173 | { ac_try='test -s conftest.$ac_objext' |
| 9174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9175 | (eval $ac_try) 2>&5 |
| 9176 | ac_status=$? |
| 9177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9178 | (exit $ac_status); }; }; then |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9179 | cat >>confdefs.h <<\_ACEOF |
| 9180 | #define PJ_SOCK_HAS_GETADDRINFO 1 |
| 9181 | _ACEOF |
| 9182 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9183 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9184 | echo "${ECHO_T}yes" >&6 |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9185 | else |
| 9186 | echo "$as_me: failed program was:" >&5 |
| 9187 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9188 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9189 | echo "$as_me:$LINENO: result: no" >&5 |
| 9190 | echo "${ECHO_T}no" >&6 |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9191 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9192 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9193 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9194 | echo "$as_me:$LINENO: checking if sockaddr_in has sin_len member" >&5 |
| 9195 | echo $ECHO_N "checking if sockaddr_in has sin_len member... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9196 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9197 | /* confdefs.h. */ |
| 9198 | _ACEOF |
| 9199 | cat confdefs.h >>conftest.$ac_ext |
| 9200 | cat >>conftest.$ac_ext <<_ACEOF |
| 9201 | /* end confdefs.h. */ |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 9202 | #include <sys/types.h> |
| 9203 | #include <sys/socket.h> |
| 9204 | #include <netinet/in.h> |
| 9205 | #include <arpa/inet.h> |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9206 | int |
| 9207 | main () |
| 9208 | { |
| 9209 | struct sockaddr_in a; a.sin_len=0; |
| 9210 | ; |
| 9211 | return 0; |
| 9212 | } |
| 9213 | _ACEOF |
| 9214 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9215 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9216 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9217 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9218 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9219 | rm -f conftest.er1 |
| 9220 | cat conftest.err >&5 |
| 9221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9222 | (exit $ac_status); } && |
| 9223 | { ac_try='test -z "$ac_c_werror_flag" |
| 9224 | || test ! -s conftest.err' |
| 9225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9226 | (eval $ac_try) 2>&5 |
| 9227 | ac_status=$? |
| 9228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9229 | (exit $ac_status); }; } && |
| 9230 | { ac_try='test -s conftest.$ac_objext' |
| 9231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9232 | (eval $ac_try) 2>&5 |
| 9233 | ac_status=$? |
| 9234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9235 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9236 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9237 | #define PJ_SOCKADDR_HAS_LEN 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9238 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9239 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9240 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9241 | echo "${ECHO_T}yes" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9242 | else |
| 9243 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9244 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9245 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9246 | echo "$as_me:$LINENO: result: no" >&5 |
| 9247 | echo "${ECHO_T}no" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9248 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9249 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9250 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9251 | echo "$as_me:$LINENO: checking if socklen_t is available" >&5 |
| 9252 | echo $ECHO_N "checking if socklen_t is available... $ECHO_C" >&6 |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 9253 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9254 | /* confdefs.h. */ |
| 9255 | _ACEOF |
| 9256 | cat confdefs.h >>conftest.$ac_ext |
| 9257 | cat >>conftest.$ac_ext <<_ACEOF |
| 9258 | /* end confdefs.h. */ |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 9259 | #include <sys/socket.h> |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 9260 | int |
| 9261 | main () |
| 9262 | { |
| 9263 | socklen_t xxx = 0; |
| 9264 | ; |
| 9265 | return 0; |
| 9266 | } |
| 9267 | _ACEOF |
| 9268 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9269 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9270 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 9271 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9272 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9273 | rm -f conftest.er1 |
| 9274 | cat conftest.err >&5 |
| 9275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9276 | (exit $ac_status); } && |
| 9277 | { ac_try='test -z "$ac_c_werror_flag" |
| 9278 | || test ! -s conftest.err' |
| 9279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9280 | (eval $ac_try) 2>&5 |
| 9281 | ac_status=$? |
| 9282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9283 | (exit $ac_status); }; } && |
| 9284 | { ac_try='test -s conftest.$ac_objext' |
| 9285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9286 | (eval $ac_try) 2>&5 |
| 9287 | ac_status=$? |
| 9288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9289 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9290 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 9291 | #define PJ_HAS_SOCKLEN_T 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9292 | _ACEOF |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 9293 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9294 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9295 | echo "${ECHO_T}yes" >&6 |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 9296 | else |
| 9297 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9298 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9299 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9300 | echo "$as_me:$LINENO: result: no" >&5 |
| 9301 | echo "${ECHO_T}no" >&6 |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 9302 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9303 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 9304 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9305 | echo "$as_me:$LINENO: checking if SO_ERROR is available" >&5 |
| 9306 | echo $ECHO_N "checking if SO_ERROR is available... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9307 | case $target in |
| 9308 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9309 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9310 | #define PJ_HAS_SO_ERROR 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9311 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9312 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9313 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9314 | echo "${ECHO_T}yes" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9315 | ;; |
| 9316 | *) |
| 9317 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9318 | /* confdefs.h. */ |
| 9319 | _ACEOF |
| 9320 | cat confdefs.h >>conftest.$ac_ext |
| 9321 | cat >>conftest.$ac_ext <<_ACEOF |
| 9322 | /* end confdefs.h. */ |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 9323 | #include <sys/types.h> |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9324 | #include <sys/socket.h> |
| 9325 | #include <netinet/in.h> |
| 9326 | #include <arpa/inet.h> |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9327 | int |
| 9328 | main () |
| 9329 | { |
| 9330 | int i=SO_ERROR; |
| 9331 | ; |
| 9332 | return 0; |
| 9333 | } |
| 9334 | _ACEOF |
| 9335 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9336 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9337 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9338 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9339 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9340 | rm -f conftest.er1 |
| 9341 | cat conftest.err >&5 |
| 9342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9343 | (exit $ac_status); } && |
| 9344 | { ac_try='test -z "$ac_c_werror_flag" |
| 9345 | || test ! -s conftest.err' |
| 9346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9347 | (eval $ac_try) 2>&5 |
| 9348 | ac_status=$? |
| 9349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9350 | (exit $ac_status); }; } && |
| 9351 | { ac_try='test -s conftest.$ac_objext' |
| 9352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9353 | (eval $ac_try) 2>&5 |
| 9354 | ac_status=$? |
| 9355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9356 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9357 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9358 | #define PJ_HAS_SO_ERROR 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9359 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9360 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9361 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9362 | echo "${ECHO_T}yes" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9363 | else |
| 9364 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9365 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9366 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9367 | echo "$as_me:$LINENO: result: no" >&5 |
| 9368 | echo "${ECHO_T}no" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9369 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9370 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9371 | ;; |
| 9372 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9373 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9374 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9375 | echo "$as_me:$LINENO: checking if pthread_rwlock_t is available" >&5 |
| 9376 | echo $ECHO_N "checking if pthread_rwlock_t is available... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9377 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9378 | /* confdefs.h. */ |
| 9379 | _ACEOF |
| 9380 | cat confdefs.h >>conftest.$ac_ext |
| 9381 | cat >>conftest.$ac_ext <<_ACEOF |
| 9382 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9383 | #include <pthread.h> |
| 9384 | int |
| 9385 | main () |
| 9386 | { |
| 9387 | pthread_rwlock_t *x; |
| 9388 | ; |
| 9389 | return 0; |
| 9390 | } |
| 9391 | _ACEOF |
| 9392 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9393 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9394 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9395 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9396 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9397 | rm -f conftest.er1 |
| 9398 | cat conftest.err >&5 |
| 9399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9400 | (exit $ac_status); } && |
| 9401 | { ac_try='test -z "$ac_c_werror_flag" |
| 9402 | || test ! -s conftest.err' |
| 9403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9404 | (eval $ac_try) 2>&5 |
| 9405 | ac_status=$? |
| 9406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9407 | (exit $ac_status); }; } && |
| 9408 | { ac_try='test -s conftest.$ac_objext' |
| 9409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9410 | (eval $ac_try) 2>&5 |
| 9411 | ac_status=$? |
| 9412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9413 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9414 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9415 | #define PJ_EMULATE_RWMUTEX 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9416 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9417 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9418 | ac_rwmutex="yes" |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9419 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9420 | echo "${ECHO_T}yes" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9421 | else |
| 9422 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9423 | sed 's/^/| /' conftest.$ac_ext >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9424 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9425 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9426 | #define PJ_EMULATE_RWMUTEX 1 |
| 9427 | _ACEOF |
| 9428 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9429 | ac_rwmutex="no" |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9430 | echo "$as_me:$LINENO: result: no" >&5 |
| 9431 | echo "${ECHO_T}no" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9432 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9433 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9434 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9435 | if test "$ac_rwmutex" = "no"; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9436 | echo "$as_me:$LINENO: checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS" >&5 |
| 9437 | echo $ECHO_N "checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS... $ECHO_C" >&6 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9438 | cat >conftest.$ac_ext <<_ACEOF |
| 9439 | /* confdefs.h. */ |
| 9440 | _ACEOF |
| 9441 | cat confdefs.h >>conftest.$ac_ext |
| 9442 | cat >>conftest.$ac_ext <<_ACEOF |
| 9443 | /* end confdefs.h. */ |
| 9444 | #define _POSIX_READER_WRITER_LOCKS |
| 9445 | #include <pthread.h> |
| 9446 | int |
| 9447 | main () |
| 9448 | { |
| 9449 | pthread_rwlock_t *x; |
| 9450 | ; |
| 9451 | return 0; |
| 9452 | } |
| 9453 | _ACEOF |
| 9454 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9455 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9456 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9457 | ac_status=$? |
| 9458 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9459 | rm -f conftest.er1 |
| 9460 | cat conftest.err >&5 |
| 9461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9462 | (exit $ac_status); } && |
| 9463 | { ac_try='test -z "$ac_c_werror_flag" |
| 9464 | || test ! -s conftest.err' |
| 9465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9466 | (eval $ac_try) 2>&5 |
| 9467 | ac_status=$? |
| 9468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9469 | (exit $ac_status); }; } && |
| 9470 | { ac_try='test -s conftest.$ac_objext' |
| 9471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9472 | (eval $ac_try) 2>&5 |
| 9473 | ac_status=$? |
| 9474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9475 | (exit $ac_status); }; }; then |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9476 | cat >>confdefs.h <<\_ACEOF |
| 9477 | #define PJ_EMULATE_RWMUTEX 0 |
| 9478 | _ACEOF |
| 9479 | |
| 9480 | CFLAGS="$CFLAGS -D_POSIX_THREADS -D_POSIX_READER_WRITER_LOCKS" |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9481 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9482 | echo "${ECHO_T}yes" >&6 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9483 | else |
| 9484 | echo "$as_me: failed program was:" >&5 |
| 9485 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9486 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9487 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9488 | #define PJ_EMULATE_RWMUTEX 1 |
| 9489 | _ACEOF |
| 9490 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9491 | echo "$as_me:$LINENO: result: no" >&5 |
| 9492 | echo "${ECHO_T}no" >&6 |
| 9493 | fi |
| 9494 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9495 | fi |
| 9496 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9497 | echo "$as_me:$LINENO: checking if pthread_mutexattr_settype() is available" >&5 |
| 9498 | echo $ECHO_N "checking if pthread_mutexattr_settype() is available... $ECHO_C" >&6 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9499 | cat >conftest.$ac_ext <<_ACEOF |
| 9500 | /* confdefs.h. */ |
| 9501 | _ACEOF |
| 9502 | cat confdefs.h >>conftest.$ac_ext |
| 9503 | cat >>conftest.$ac_ext <<_ACEOF |
| 9504 | /* end confdefs.h. */ |
| 9505 | #include <pthread.h> |
| 9506 | int |
| 9507 | main () |
| 9508 | { |
| 9509 | pthread_mutexattr_settype(0,PTHREAD_MUTEX_FAST_NP); |
| 9510 | ; |
| 9511 | return 0; |
| 9512 | } |
| 9513 | _ACEOF |
| 9514 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9515 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9516 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9517 | ac_status=$? |
| 9518 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9519 | rm -f conftest.er1 |
| 9520 | cat conftest.err >&5 |
| 9521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9522 | (exit $ac_status); } && |
| 9523 | { ac_try='test -z "$ac_c_werror_flag" |
| 9524 | || test ! -s conftest.err' |
| 9525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9526 | (eval $ac_try) 2>&5 |
| 9527 | ac_status=$? |
| 9528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9529 | (exit $ac_status); }; } && |
| 9530 | { ac_try='test -s conftest.$ac_objext' |
| 9531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9532 | (eval $ac_try) 2>&5 |
| 9533 | ac_status=$? |
| 9534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9535 | (exit $ac_status); }; }; then |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9536 | cat >>confdefs.h <<\_ACEOF |
| 9537 | #define PJ_HAS_PTHREAD_MUTEXATTR_SETTYPE 1 |
| 9538 | _ACEOF |
| 9539 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9540 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9541 | echo "${ECHO_T}yes" >&6 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9542 | else |
| 9543 | echo "$as_me: failed program was:" >&5 |
| 9544 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9545 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9546 | echo "$as_me:$LINENO: result: no" >&5 |
| 9547 | echo "${ECHO_T}no" >&6 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9548 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9549 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9550 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9551 | echo "$as_me:$LINENO: checking if pthread_mutexattr_t has recursive member" >&5 |
| 9552 | echo $ECHO_N "checking if pthread_mutexattr_t has recursive member... $ECHO_C" >&6 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9553 | cat >conftest.$ac_ext <<_ACEOF |
| 9554 | /* confdefs.h. */ |
| 9555 | _ACEOF |
| 9556 | cat confdefs.h >>conftest.$ac_ext |
| 9557 | cat >>conftest.$ac_ext <<_ACEOF |
| 9558 | /* end confdefs.h. */ |
| 9559 | #include <pthread.h> |
| 9560 | int |
| 9561 | main () |
| 9562 | { |
| 9563 | pthread_mutexattr_t attr; |
| 9564 | attr.recursive=1; |
| 9565 | ; |
| 9566 | return 0; |
| 9567 | } |
| 9568 | _ACEOF |
| 9569 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9570 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9571 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9572 | ac_status=$? |
| 9573 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9574 | rm -f conftest.er1 |
| 9575 | cat conftest.err >&5 |
| 9576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9577 | (exit $ac_status); } && |
| 9578 | { ac_try='test -z "$ac_c_werror_flag" |
| 9579 | || test ! -s conftest.err' |
| 9580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9581 | (eval $ac_try) 2>&5 |
| 9582 | ac_status=$? |
| 9583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9584 | (exit $ac_status); }; } && |
| 9585 | { ac_try='test -s conftest.$ac_objext' |
| 9586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9587 | (eval $ac_try) 2>&5 |
| 9588 | ac_status=$? |
| 9589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9590 | (exit $ac_status); }; }; then |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9591 | cat >>confdefs.h <<\_ACEOF |
| 9592 | #define PJ_PTHREAD_MUTEXATTR_T_HAS_RECURSIVE 1 |
| 9593 | _ACEOF |
| 9594 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9595 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9596 | echo "${ECHO_T}yes" >&6 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9597 | else |
| 9598 | echo "$as_me: failed program was:" >&5 |
| 9599 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9600 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9601 | echo "$as_me:$LINENO: result: no" >&5 |
| 9602 | echo "${ECHO_T}no" >&6 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9603 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9604 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9605 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9606 | |
| 9607 | case $target in |
| 9608 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | ad086e0 | 2007-02-16 10:58:18 +0000 | [diff] [blame] | 9609 | 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] | 9610 | ;; |
| 9611 | *) |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 9612 | 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" |
| 9613 | # UUID |
| 9614 | if test "$ac_has_uuid_lib" = "1" -a "$ac_has_uuid_h" = "1"; then |
| 9615 | ac_os_objs="$ac_os_objs guid_uuid.o" |
| 9616 | else |
| 9617 | ac_os_objs="$ac_os_objs guid_simple.o" |
| 9618 | fi |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9619 | ;; |
| 9620 | esac |
| 9621 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9622 | |
| 9623 | |
| 9624 | |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 9625 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9626 | # Check whether --enable-sound or --disable-sound was given. |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 9627 | if test "${enable_sound+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9628 | enableval="$enable_sound" |
| 9629 | if test "$enable_sound" = "no"; then |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 9630 | ac_pjmedia_snd=null |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9631 | echo "$as_me:$LINENO: result: Checking if sound is disabled... yes" >&5 |
| 9632 | echo "${ECHO_T}Checking if sound is disabled... yes" >&6 |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 9633 | fi |
| 9634 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9635 | fi; |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 9636 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9637 | |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9638 | if test "${ac_cv_header_sys_soundcard_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9639 | echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5 |
| 9640 | echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9641 | if test "${ac_cv_header_sys_soundcard_h+set}" = set; then |
| 9642 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9643 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9644 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5 |
| 9645 | echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9646 | else |
| 9647 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9648 | echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5 |
| 9649 | echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9650 | cat >conftest.$ac_ext <<_ACEOF |
| 9651 | /* confdefs.h. */ |
| 9652 | _ACEOF |
| 9653 | cat confdefs.h >>conftest.$ac_ext |
| 9654 | cat >>conftest.$ac_ext <<_ACEOF |
| 9655 | /* end confdefs.h. */ |
| 9656 | $ac_includes_default |
| 9657 | #include <sys/soundcard.h> |
| 9658 | _ACEOF |
| 9659 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9660 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9661 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9662 | ac_status=$? |
| 9663 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9664 | rm -f conftest.er1 |
| 9665 | cat conftest.err >&5 |
| 9666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9667 | (exit $ac_status); } && |
| 9668 | { ac_try='test -z "$ac_c_werror_flag" |
| 9669 | || test ! -s conftest.err' |
| 9670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9671 | (eval $ac_try) 2>&5 |
| 9672 | ac_status=$? |
| 9673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9674 | (exit $ac_status); }; } && |
| 9675 | { ac_try='test -s conftest.$ac_objext' |
| 9676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9677 | (eval $ac_try) 2>&5 |
| 9678 | ac_status=$? |
| 9679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9680 | (exit $ac_status); }; }; then |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9681 | ac_header_compiler=yes |
| 9682 | else |
| 9683 | echo "$as_me: failed program was:" >&5 |
| 9684 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9685 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9686 | ac_header_compiler=no |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9687 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9688 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9689 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9690 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9691 | |
| 9692 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9693 | echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5 |
| 9694 | echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9695 | cat >conftest.$ac_ext <<_ACEOF |
| 9696 | /* confdefs.h. */ |
| 9697 | _ACEOF |
| 9698 | cat confdefs.h >>conftest.$ac_ext |
| 9699 | cat >>conftest.$ac_ext <<_ACEOF |
| 9700 | /* end confdefs.h. */ |
| 9701 | #include <sys/soundcard.h> |
| 9702 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9703 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9704 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9705 | ac_status=$? |
| 9706 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9707 | rm -f conftest.er1 |
| 9708 | cat conftest.err >&5 |
| 9709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9710 | (exit $ac_status); } >/dev/null; then |
| 9711 | if test -s conftest.err; then |
| 9712 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9713 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9714 | else |
| 9715 | ac_cpp_err= |
| 9716 | fi |
| 9717 | else |
| 9718 | ac_cpp_err=yes |
| 9719 | fi |
| 9720 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9721 | ac_header_preproc=yes |
| 9722 | else |
| 9723 | echo "$as_me: failed program was:" >&5 |
| 9724 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9725 | |
| 9726 | ac_header_preproc=no |
| 9727 | fi |
| 9728 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9729 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9730 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9731 | |
| 9732 | # So? What about this header? |
| 9733 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9734 | yes:no: ) |
| 9735 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9736 | echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9737 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5 |
| 9738 | echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;} |
| 9739 | ac_header_preproc=yes |
| 9740 | ;; |
| 9741 | no:yes:* ) |
| 9742 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5 |
| 9743 | echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;} |
| 9744 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5 |
| 9745 | echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;} |
| 9746 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5 |
| 9747 | echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;} |
| 9748 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 9749 | echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9750 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5 |
| 9751 | echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;} |
| 9752 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5 |
| 9753 | echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9754 | ( |
| 9755 | cat <<\_ASBOX |
| 9756 | ## ------------------------------------ ## |
| 9757 | ## Report this to the pjproject lists. ## |
| 9758 | ## ------------------------------------ ## |
| 9759 | _ASBOX |
| 9760 | ) | |
| 9761 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9762 | ;; |
| 9763 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9764 | echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5 |
| 9765 | echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9766 | if test "${ac_cv_header_sys_soundcard_h+set}" = set; then |
| 9767 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9768 | else |
| 9769 | ac_cv_header_sys_soundcard_h=$ac_header_preproc |
| 9770 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9771 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5 |
| 9772 | echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9773 | |
| 9774 | fi |
| 9775 | if test $ac_cv_header_sys_soundcard_h = yes; then |
| 9776 | ac_pa_cflags="$ac_pa_cflags -DHAVE_SYS_SOUNDCARD_H" |
| 9777 | fi |
| 9778 | |
| 9779 | |
| 9780 | if test "${ac_cv_header_linux_soundcard_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9781 | echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5 |
| 9782 | echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9783 | if test "${ac_cv_header_linux_soundcard_h+set}" = set; then |
| 9784 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9785 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9786 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5 |
| 9787 | echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9788 | else |
| 9789 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9790 | echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5 |
| 9791 | echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9792 | cat >conftest.$ac_ext <<_ACEOF |
| 9793 | /* confdefs.h. */ |
| 9794 | _ACEOF |
| 9795 | cat confdefs.h >>conftest.$ac_ext |
| 9796 | cat >>conftest.$ac_ext <<_ACEOF |
| 9797 | /* end confdefs.h. */ |
| 9798 | $ac_includes_default |
| 9799 | #include <linux/soundcard.h> |
| 9800 | _ACEOF |
| 9801 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9802 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9803 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9804 | ac_status=$? |
| 9805 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9806 | rm -f conftest.er1 |
| 9807 | cat conftest.err >&5 |
| 9808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9809 | (exit $ac_status); } && |
| 9810 | { ac_try='test -z "$ac_c_werror_flag" |
| 9811 | || test ! -s conftest.err' |
| 9812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9813 | (eval $ac_try) 2>&5 |
| 9814 | ac_status=$? |
| 9815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9816 | (exit $ac_status); }; } && |
| 9817 | { ac_try='test -s conftest.$ac_objext' |
| 9818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9819 | (eval $ac_try) 2>&5 |
| 9820 | ac_status=$? |
| 9821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9822 | (exit $ac_status); }; }; then |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9823 | ac_header_compiler=yes |
| 9824 | else |
| 9825 | echo "$as_me: failed program was:" >&5 |
| 9826 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9827 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9828 | ac_header_compiler=no |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9829 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9830 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9831 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9832 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9833 | |
| 9834 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9835 | echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5 |
| 9836 | echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9837 | cat >conftest.$ac_ext <<_ACEOF |
| 9838 | /* confdefs.h. */ |
| 9839 | _ACEOF |
| 9840 | cat confdefs.h >>conftest.$ac_ext |
| 9841 | cat >>conftest.$ac_ext <<_ACEOF |
| 9842 | /* end confdefs.h. */ |
| 9843 | #include <linux/soundcard.h> |
| 9844 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9845 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9846 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9847 | ac_status=$? |
| 9848 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9849 | rm -f conftest.er1 |
| 9850 | cat conftest.err >&5 |
| 9851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9852 | (exit $ac_status); } >/dev/null; then |
| 9853 | if test -s conftest.err; then |
| 9854 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9855 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9856 | else |
| 9857 | ac_cpp_err= |
| 9858 | fi |
| 9859 | else |
| 9860 | ac_cpp_err=yes |
| 9861 | fi |
| 9862 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9863 | ac_header_preproc=yes |
| 9864 | else |
| 9865 | echo "$as_me: failed program was:" >&5 |
| 9866 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9867 | |
| 9868 | ac_header_preproc=no |
| 9869 | fi |
| 9870 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9871 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9872 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9873 | |
| 9874 | # So? What about this header? |
| 9875 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9876 | yes:no: ) |
| 9877 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9878 | echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9879 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5 |
| 9880 | echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;} |
| 9881 | ac_header_preproc=yes |
| 9882 | ;; |
| 9883 | no:yes:* ) |
| 9884 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5 |
| 9885 | echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;} |
| 9886 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5 |
| 9887 | echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;} |
| 9888 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5 |
| 9889 | echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;} |
| 9890 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 9891 | echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9892 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5 |
| 9893 | echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;} |
| 9894 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5 |
| 9895 | echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9896 | ( |
| 9897 | cat <<\_ASBOX |
| 9898 | ## ------------------------------------ ## |
| 9899 | ## Report this to the pjproject lists. ## |
| 9900 | ## ------------------------------------ ## |
| 9901 | _ASBOX |
| 9902 | ) | |
| 9903 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9904 | ;; |
| 9905 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9906 | echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5 |
| 9907 | echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9908 | if test "${ac_cv_header_linux_soundcard_h+set}" = set; then |
| 9909 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9910 | else |
| 9911 | ac_cv_header_linux_soundcard_h=$ac_header_preproc |
| 9912 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9913 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5 |
| 9914 | echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9915 | |
| 9916 | fi |
| 9917 | if test $ac_cv_header_linux_soundcard_h = yes; then |
| 9918 | ac_pa_cflags="$ac_pa_cflags -DHAVE_LINUX_SOUNDCARD_H" |
| 9919 | fi |
| 9920 | |
| 9921 | |
| 9922 | if test "${ac_cv_header_machine_soundcard_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9923 | echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5 |
| 9924 | echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9925 | if test "${ac_cv_header_machine_soundcard_h+set}" = set; then |
| 9926 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9927 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9928 | echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5 |
| 9929 | echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9930 | else |
| 9931 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9932 | echo "$as_me:$LINENO: checking machine/soundcard.h usability" >&5 |
| 9933 | echo $ECHO_N "checking machine/soundcard.h usability... $ECHO_C" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9934 | cat >conftest.$ac_ext <<_ACEOF |
| 9935 | /* confdefs.h. */ |
| 9936 | _ACEOF |
| 9937 | cat confdefs.h >>conftest.$ac_ext |
| 9938 | cat >>conftest.$ac_ext <<_ACEOF |
| 9939 | /* end confdefs.h. */ |
| 9940 | $ac_includes_default |
| 9941 | #include <machine/soundcard.h> |
| 9942 | _ACEOF |
| 9943 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9944 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9945 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9946 | ac_status=$? |
| 9947 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9948 | rm -f conftest.er1 |
| 9949 | cat conftest.err >&5 |
| 9950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9951 | (exit $ac_status); } && |
| 9952 | { ac_try='test -z "$ac_c_werror_flag" |
| 9953 | || test ! -s conftest.err' |
| 9954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9955 | (eval $ac_try) 2>&5 |
| 9956 | ac_status=$? |
| 9957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9958 | (exit $ac_status); }; } && |
| 9959 | { ac_try='test -s conftest.$ac_objext' |
| 9960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9961 | (eval $ac_try) 2>&5 |
| 9962 | ac_status=$? |
| 9963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9964 | (exit $ac_status); }; }; then |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9965 | ac_header_compiler=yes |
| 9966 | else |
| 9967 | echo "$as_me: failed program was:" >&5 |
| 9968 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9969 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9970 | ac_header_compiler=no |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9971 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9972 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9973 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9974 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9975 | |
| 9976 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9977 | echo "$as_me:$LINENO: checking machine/soundcard.h presence" >&5 |
| 9978 | echo $ECHO_N "checking machine/soundcard.h presence... $ECHO_C" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9979 | cat >conftest.$ac_ext <<_ACEOF |
| 9980 | /* confdefs.h. */ |
| 9981 | _ACEOF |
| 9982 | cat confdefs.h >>conftest.$ac_ext |
| 9983 | cat >>conftest.$ac_ext <<_ACEOF |
| 9984 | /* end confdefs.h. */ |
| 9985 | #include <machine/soundcard.h> |
| 9986 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9987 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9988 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9989 | ac_status=$? |
| 9990 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9991 | rm -f conftest.er1 |
| 9992 | cat conftest.err >&5 |
| 9993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 9994 | (exit $ac_status); } >/dev/null; then |
| 9995 | if test -s conftest.err; then |
| 9996 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9997 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9998 | else |
| 9999 | ac_cpp_err= |
| 10000 | fi |
| 10001 | else |
| 10002 | ac_cpp_err=yes |
| 10003 | fi |
| 10004 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10005 | ac_header_preproc=yes |
| 10006 | else |
| 10007 | echo "$as_me: failed program was:" >&5 |
| 10008 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10009 | |
| 10010 | ac_header_preproc=no |
| 10011 | fi |
| 10012 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10013 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10014 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10015 | |
| 10016 | # So? What about this header? |
| 10017 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10018 | yes:no: ) |
| 10019 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10020 | echo "$as_me: WARNING: machine/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10021 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: proceeding with the compiler's result" >&5 |
| 10022 | echo "$as_me: WARNING: machine/soundcard.h: proceeding with the compiler's result" >&2;} |
| 10023 | ac_header_preproc=yes |
| 10024 | ;; |
| 10025 | no:yes:* ) |
| 10026 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: present but cannot be compiled" >&5 |
| 10027 | echo "$as_me: WARNING: machine/soundcard.h: present but cannot be compiled" >&2;} |
| 10028 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: check for missing prerequisite headers?" >&5 |
| 10029 | echo "$as_me: WARNING: machine/soundcard.h: check for missing prerequisite headers?" >&2;} |
| 10030 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: see the Autoconf documentation" >&5 |
| 10031 | echo "$as_me: WARNING: machine/soundcard.h: see the Autoconf documentation" >&2;} |
| 10032 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 10033 | echo "$as_me: WARNING: machine/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10034 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: proceeding with the preprocessor's result" >&5 |
| 10035 | echo "$as_me: WARNING: machine/soundcard.h: proceeding with the preprocessor's result" >&2;} |
| 10036 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: in the future, the compiler will take precedence" >&5 |
| 10037 | echo "$as_me: WARNING: machine/soundcard.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10038 | ( |
| 10039 | cat <<\_ASBOX |
| 10040 | ## ------------------------------------ ## |
| 10041 | ## Report this to the pjproject lists. ## |
| 10042 | ## ------------------------------------ ## |
| 10043 | _ASBOX |
| 10044 | ) | |
| 10045 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10046 | ;; |
| 10047 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10048 | echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5 |
| 10049 | echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10050 | if test "${ac_cv_header_machine_soundcard_h+set}" = set; then |
| 10051 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10052 | else |
| 10053 | ac_cv_header_machine_soundcard_h=$ac_header_preproc |
| 10054 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10055 | echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5 |
| 10056 | echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10057 | |
| 10058 | fi |
| 10059 | if test $ac_cv_header_machine_soundcard_h = yes; then |
| 10060 | ac_pa_cflags="$ac_pa_cflags -DHAVE_MACHINE_SOUNDCARD_H" |
| 10061 | fi |
| 10062 | |
| 10063 | |
| 10064 | |
Benny Prijono | 3e09167 | 2008-01-09 15:43:02 +0000 | [diff] [blame] | 10065 | if test "x$ac_cv_c_bigendian" = "xyes"; then |
| 10066 | ac_pa_cflags="$ac_pa_cflags -DPA_BIG_ENDIAN" |
| 10067 | else |
| 10068 | ac_pa_cflags="$ac_pa_cflags -DPA_LITTLE_ENDIAN" |
| 10069 | fi |
| 10070 | |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 10071 | if test "$enable_sound" = "no"; then |
| 10072 | true; |
| 10073 | else |
| 10074 | case $target in |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 10075 | *darwin*) |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 10076 | LIBS="$LIBS -framework CoreAudio -framework CoreServices -framework AudioUnit -framework AudioToolbox" |
| 10077 | if test "`uname -r`" = "6.8"; then |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10078 | #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] | 10079 | #AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS]) |
| 10080 | ac_pjmedia_snd=pa_old_darwinos |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10081 | echo "$as_me:$LINENO: result: Checking sound device backend... old coreaudio" >&5 |
| 10082 | echo "${ECHO_T}Checking sound device backend... old coreaudio" >&6 |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 10083 | else |
| 10084 | ac_pjmedia_snd=pa_darwinos |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10085 | echo "$as_me:$LINENO: result: Checking sound device backend... coreaudio" >&5 |
| 10086 | echo "${ECHO_T}Checking sound device backend... coreaudio" >&6 |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 10087 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 10088 | ;; |
| 10089 | *cygwin* | *mingw*) |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10090 | ac_pjmedia_snd=pa_win32 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10091 | echo "$as_me:$LINENO: result: Checking sound device backend... win32 sound" >&5 |
| 10092 | echo "${ECHO_T}Checking sound device backend... win32 sound" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10093 | ;; |
| 10094 | *rtems*) |
| 10095 | ac_pjmedia_snd=null |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10096 | echo "$as_me:$LINENO: result: Checking sound device backend... null sound" >&5 |
| 10097 | echo "${ECHO_T}Checking sound device backend... null sound" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10098 | ;; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10099 | *) |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10100 | ac_pjmedia_snd=pa_unix |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10101 | if test "${ac_cv_header_alsa_version_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10102 | echo "$as_me:$LINENO: checking for alsa/version.h" >&5 |
| 10103 | echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10104 | if test "${ac_cv_header_alsa_version_h+set}" = set; then |
| 10105 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10106 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10107 | echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5 |
| 10108 | echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10109 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10110 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10111 | echo "$as_me:$LINENO: checking alsa/version.h usability" >&5 |
| 10112 | echo $ECHO_N "checking alsa/version.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10113 | cat >conftest.$ac_ext <<_ACEOF |
| 10114 | /* confdefs.h. */ |
| 10115 | _ACEOF |
| 10116 | cat confdefs.h >>conftest.$ac_ext |
| 10117 | cat >>conftest.$ac_ext <<_ACEOF |
| 10118 | /* end confdefs.h. */ |
| 10119 | $ac_includes_default |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10120 | #include <alsa/version.h> |
| 10121 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10122 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10123 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10124 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10125 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10126 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10127 | rm -f conftest.er1 |
| 10128 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10130 | (exit $ac_status); } && |
| 10131 | { ac_try='test -z "$ac_c_werror_flag" |
| 10132 | || test ! -s conftest.err' |
| 10133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10134 | (eval $ac_try) 2>&5 |
| 10135 | ac_status=$? |
| 10136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10137 | (exit $ac_status); }; } && |
| 10138 | { ac_try='test -s conftest.$ac_objext' |
| 10139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10140 | (eval $ac_try) 2>&5 |
| 10141 | ac_status=$? |
| 10142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10143 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10144 | ac_header_compiler=yes |
| 10145 | else |
| 10146 | echo "$as_me: failed program was:" >&5 |
| 10147 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10148 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10149 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10150 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10151 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10152 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10153 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10154 | |
| 10155 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10156 | echo "$as_me:$LINENO: checking alsa/version.h presence" >&5 |
| 10157 | echo $ECHO_N "checking alsa/version.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10158 | cat >conftest.$ac_ext <<_ACEOF |
| 10159 | /* confdefs.h. */ |
| 10160 | _ACEOF |
| 10161 | cat confdefs.h >>conftest.$ac_ext |
| 10162 | cat >>conftest.$ac_ext <<_ACEOF |
| 10163 | /* end confdefs.h. */ |
| 10164 | #include <alsa/version.h> |
| 10165 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10166 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10167 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10168 | ac_status=$? |
| 10169 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10170 | rm -f conftest.er1 |
| 10171 | cat conftest.err >&5 |
| 10172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10173 | (exit $ac_status); } >/dev/null; then |
| 10174 | if test -s conftest.err; then |
| 10175 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10176 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10177 | else |
| 10178 | ac_cpp_err= |
| 10179 | fi |
| 10180 | else |
| 10181 | ac_cpp_err=yes |
| 10182 | fi |
| 10183 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10184 | ac_header_preproc=yes |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10185 | else |
| 10186 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10187 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10188 | |
| 10189 | ac_header_preproc=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10190 | fi |
| 10191 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10192 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10193 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10194 | |
| 10195 | # So? What about this header? |
| 10196 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10197 | yes:no: ) |
| 10198 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10199 | echo "$as_me: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10200 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the compiler's result" >&5 |
| 10201 | echo "$as_me: WARNING: alsa/version.h: proceeding with the compiler's result" >&2;} |
| 10202 | ac_header_preproc=yes |
| 10203 | ;; |
| 10204 | no:yes:* ) |
| 10205 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: present but cannot be compiled" >&5 |
| 10206 | echo "$as_me: WARNING: alsa/version.h: present but cannot be compiled" >&2;} |
| 10207 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: check for missing prerequisite headers?" >&5 |
| 10208 | echo "$as_me: WARNING: alsa/version.h: check for missing prerequisite headers?" >&2;} |
| 10209 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: see the Autoconf documentation" >&5 |
| 10210 | echo "$as_me: WARNING: alsa/version.h: see the Autoconf documentation" >&2;} |
| 10211 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 10212 | echo "$as_me: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10213 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&5 |
| 10214 | echo "$as_me: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&2;} |
| 10215 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&5 |
| 10216 | echo "$as_me: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10217 | ( |
| 10218 | cat <<\_ASBOX |
| 10219 | ## ------------------------------------ ## |
| 10220 | ## Report this to the pjproject lists. ## |
| 10221 | ## ------------------------------------ ## |
| 10222 | _ASBOX |
| 10223 | ) | |
| 10224 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10225 | ;; |
| 10226 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10227 | echo "$as_me:$LINENO: checking for alsa/version.h" >&5 |
| 10228 | echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10229 | if test "${ac_cv_header_alsa_version_h+set}" = set; then |
| 10230 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10231 | else |
| 10232 | ac_cv_header_alsa_version_h=$ac_header_preproc |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10233 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10234 | echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5 |
| 10235 | echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10236 | |
| 10237 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10238 | if test $ac_cv_header_alsa_version_h = yes; then |
| 10239 | ac_pa_use_alsa=1 |
| 10240 | |
| 10241 | LIBS="$LIBS -lasound" |
| 10242 | |
| 10243 | else |
| 10244 | ac_pa_use_alsa=0 |
| 10245 | |
| 10246 | fi |
| 10247 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10248 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10249 | echo "$as_me:$LINENO: result: Checking sound device backend... unix" >&5 |
| 10250 | echo "${ECHO_T}Checking sound device backend... unix" >&6 |
| 10251 | |
| 10252 | ac_pa_use_oss=1 |
| 10253 | |
| 10254 | # Check whether --enable-oss or --disable-oss was given. |
| 10255 | if test "${enable_oss+set}" = set; then |
| 10256 | enableval="$enable_oss" |
| 10257 | |
| 10258 | if test "$enable_oss" = "no"; then |
| 10259 | ac_pa_use_oss=0 |
| 10260 | echo "$as_me:$LINENO: result: Checking if OSS audio is disabled... yes" >&5 |
| 10261 | echo "${ECHO_T}Checking if OSS audio is disabled... yes" >&6 |
| 10262 | fi |
| 10263 | |
| 10264 | fi; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10265 | ;; |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 10266 | esac |
| 10267 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10268 | |
Benny Prijono | ebb2c33 | 2008-07-28 23:40:58 +0000 | [diff] [blame] | 10269 | # Check whether --enable-ext_sound or --disable-ext_sound was given. |
| 10270 | if test "${enable_ext_sound+set}" = set; then |
| 10271 | enableval="$enable_ext_sound" |
| 10272 | if test "$enable_ext_sound" = "yes"; then |
| 10273 | ac_pjmedia_snd=external |
| 10274 | echo "$as_me:$LINENO: result: Checking if external sound is set... yes" >&5 |
| 10275 | echo "${ECHO_T}Checking if external sound is set... yes" >&6 |
| 10276 | fi |
| 10277 | |
| 10278 | fi; |
| 10279 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10280 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10281 | # Check whether --enable-small-filter or --disable-small-filter was given. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10282 | if test "${enable_small_filter+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10283 | enableval="$enable_small_filter" |
| 10284 | if test "$enable_small_filter" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10285 | ac_no_small_filter='-DPJMEDIA_HAS_SMALL_FILTER=0' |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10286 | echo "$as_me:$LINENO: result: Checking if small filter is disabled... yes" >&5 |
| 10287 | echo "${ECHO_T}Checking if small filter is disabled... yes" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10288 | fi |
| 10289 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10290 | echo "$as_me:$LINENO: result: Checking if small filter is disabled... no" >&5 |
| 10291 | echo "${ECHO_T}Checking if small filter is disabled... no" >&6 |
| 10292 | fi; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10293 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10294 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10295 | # Check whether --enable-large-filter or --disable-large-filter was given. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10296 | if test "${enable_large_filter+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10297 | enableval="$enable_large_filter" |
| 10298 | if test "$enable_large_filter" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10299 | ac_no_large_filter='-DPJMEDIA_HAS_LARGE_FILTER=0' |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10300 | echo "$as_me:$LINENO: result: Checking if large filter is disabled... yes" >&5 |
| 10301 | echo "${ECHO_T}Checking if large filter is disabled... yes" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10302 | fi |
| 10303 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10304 | echo "$as_me:$LINENO: result: Checking if large filter is disabled... no" >&5 |
| 10305 | echo "${ECHO_T}Checking if large filter is disabled... no" >&6 |
| 10306 | fi; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10307 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10308 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10309 | # Check whether --enable-speex-aec or --disable-speex-aec was given. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10310 | if test "${enable_speex_aec+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10311 | enableval="$enable_speex_aec" |
| 10312 | if test "$enable_speex_aec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10313 | ac_no_speex_aec='-DPJMEDIA_HAS_SPEEX_AEC=0' |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10314 | echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...yes" >&5 |
| 10315 | echo "${ECHO_T}Checking if Speex AEC is disabled...yes" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10316 | fi |
| 10317 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10318 | echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...no" >&5 |
| 10319 | echo "${ECHO_T}Checking if Speex AEC is disabled...no" >&6 |
| 10320 | fi; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10321 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10322 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10323 | # Check whether --enable-g711-codec or --disable-g711-codec was given. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10324 | if test "${enable_g711_codec+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10325 | enableval="$enable_g711_codec" |
| 10326 | if test "$enable_g711_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10327 | ac_no_g711_codec=1 |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 10328 | cat >>confdefs.h <<\_ACEOF |
| 10329 | #define PJMEDIA_HAS_G711_CODEC 0 |
| 10330 | _ACEOF |
| 10331 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10332 | echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...yes" >&5 |
| 10333 | echo "${ECHO_T}Checking if G.711 codec is disabled...yes" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10334 | fi |
| 10335 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10336 | echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...no" >&5 |
| 10337 | echo "${ECHO_T}Checking if G.711 codec is disabled...no" >&6 |
| 10338 | fi; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10339 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10340 | |
| 10341 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10342 | # Check whether --enable-l16-codec or --disable-l16-codec was given. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10343 | if test "${enable_l16_codec+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10344 | enableval="$enable_l16_codec" |
| 10345 | if test "$enable_l16_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10346 | ac_no_l16_codec=1 |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 10347 | cat >>confdefs.h <<\_ACEOF |
| 10348 | #define PJMEDIA_HAS_L16_CODEC 0 |
| 10349 | _ACEOF |
| 10350 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10351 | echo "$as_me:$LINENO: result: Checking if L16 codecs are disabled...yes" >&5 |
| 10352 | echo "${ECHO_T}Checking if L16 codecs are disabled...yes" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10353 | fi |
| 10354 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10355 | echo "$as_me:$LINENO: result: Checking if L16 codec is disabled...no" >&5 |
| 10356 | echo "${ECHO_T}Checking if L16 codec is disabled...no" >&6 |
| 10357 | fi; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10358 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10359 | |
| 10360 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10361 | # Check whether --enable-gsm-codec or --disable-gsm-codec was given. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10362 | if test "${enable_gsm_codec+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10363 | enableval="$enable_gsm_codec" |
| 10364 | if test "$enable_gsm_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10365 | ac_no_gsm_codec=1 |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 10366 | cat >>confdefs.h <<\_ACEOF |
| 10367 | #define PJMEDIA_HAS_GSM_CODEC 0 |
| 10368 | _ACEOF |
| 10369 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10370 | echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...yes" >&5 |
| 10371 | echo "${ECHO_T}Checking if GSM codec is disabled...yes" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10372 | fi |
| 10373 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10374 | echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...no" >&5 |
| 10375 | echo "${ECHO_T}Checking if GSM codec is disabled...no" >&6 |
| 10376 | fi; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10377 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10378 | |
Benny Prijono | 71f657d | 2008-03-17 14:24:21 +0000 | [diff] [blame] | 10379 | # Check whether --enable-g722-codec or --disable-g722-codec was given. |
| 10380 | if test "${enable_g722_codec+set}" = set; then |
| 10381 | enableval="$enable_g722_codec" |
| 10382 | if test "$enable_g722_codec" = "no"; then |
| 10383 | ac_no_g722_codec=1 |
| 10384 | cat >>confdefs.h <<\_ACEOF |
| 10385 | #define PJMEDIA_HAS_G722_CODEC 0 |
| 10386 | _ACEOF |
| 10387 | |
| 10388 | echo "$as_me:$LINENO: result: Checking if G.722 codec is disabled...yes" >&5 |
| 10389 | echo "${ECHO_T}Checking if G.722 codec is disabled...yes" >&6 |
| 10390 | fi |
| 10391 | else |
| 10392 | echo "$as_me:$LINENO: result: Checking if G.722 codec is disabled...no" >&5 |
| 10393 | echo "${ECHO_T}Checking if G.722 codec is disabled...no" >&6 |
| 10394 | fi; |
| 10395 | |
| 10396 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10397 | # Check whether --enable-speex-codec or --disable-speex-codec was given. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10398 | if test "${enable_speex_codec+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10399 | enableval="$enable_speex_codec" |
| 10400 | if test "$enable_speex_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10401 | ac_no_speex_codec=1 |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 10402 | cat >>confdefs.h <<\_ACEOF |
| 10403 | #define PJMEDIA_HAS_SPEEX_CODEC 0 |
| 10404 | _ACEOF |
| 10405 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10406 | echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...yes" >&5 |
| 10407 | echo "${ECHO_T}Checking if Speex codec is disabled...yes" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10408 | fi |
| 10409 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10410 | echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...no" >&5 |
| 10411 | echo "${ECHO_T}Checking if Speex codec is disabled...no" >&6 |
| 10412 | fi; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10413 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10414 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10415 | # Check whether --enable-ilbc-codec or --disable-ilbc-codec was given. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10416 | if test "${enable_ilbc_codec+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10417 | enableval="$enable_ilbc_codec" |
| 10418 | if test "$enable_ilbc_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10419 | ac_no_ilbc_codec=1 |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 10420 | cat >>confdefs.h <<\_ACEOF |
| 10421 | #define PJMEDIA_HAS_ILBC_CODEC 0 |
| 10422 | _ACEOF |
| 10423 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10424 | echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...yes" >&5 |
| 10425 | echo "${ECHO_T}Checking if iLBC codec is disabled...yes" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10426 | fi |
| 10427 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10428 | echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...no" >&5 |
| 10429 | echo "${ECHO_T}Checking if iLBC codec is disabled...no" >&6 |
| 10430 | fi; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10431 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10432 | # Check whether --enable-libsamplerate or --disable-libsamplerate was given. |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10433 | if test "${enable_libsamplerate+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10434 | enableval="$enable_libsamplerate" |
| 10435 | |
| 10436 | echo "$as_me:$LINENO: checking for src_new in -lsamplerate" >&5 |
| 10437 | echo $ECHO_N "checking for src_new in -lsamplerate... $ECHO_C" >&6 |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10438 | if test "${ac_cv_lib_samplerate_src_new+set}" = set; then |
| 10439 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10440 | else |
| 10441 | ac_check_lib_save_LIBS=$LIBS |
| 10442 | LIBS="-lsamplerate $LIBS" |
| 10443 | cat >conftest.$ac_ext <<_ACEOF |
| 10444 | /* confdefs.h. */ |
| 10445 | _ACEOF |
| 10446 | cat confdefs.h >>conftest.$ac_ext |
| 10447 | cat >>conftest.$ac_ext <<_ACEOF |
| 10448 | /* end confdefs.h. */ |
| 10449 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10450 | /* Override any gcc2 internal prototype to avoid an error. */ |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10451 | #ifdef __cplusplus |
| 10452 | extern "C" |
| 10453 | #endif |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10454 | /* We use char because int might match the return type of a gcc2 |
| 10455 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10456 | char src_new (); |
| 10457 | int |
| 10458 | main () |
| 10459 | { |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10460 | src_new (); |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10461 | ; |
| 10462 | return 0; |
| 10463 | } |
| 10464 | _ACEOF |
| 10465 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10466 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10467 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10468 | ac_status=$? |
| 10469 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10470 | rm -f conftest.er1 |
| 10471 | cat conftest.err >&5 |
| 10472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10473 | (exit $ac_status); } && |
| 10474 | { ac_try='test -z "$ac_c_werror_flag" |
| 10475 | || test ! -s conftest.err' |
| 10476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10477 | (eval $ac_try) 2>&5 |
| 10478 | ac_status=$? |
| 10479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10480 | (exit $ac_status); }; } && |
| 10481 | { ac_try='test -s conftest$ac_exeext' |
| 10482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10483 | (eval $ac_try) 2>&5 |
| 10484 | ac_status=$? |
| 10485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10486 | (exit $ac_status); }; }; then |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10487 | ac_cv_lib_samplerate_src_new=yes |
| 10488 | else |
| 10489 | echo "$as_me: failed program was:" >&5 |
| 10490 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10491 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10492 | ac_cv_lib_samplerate_src_new=no |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10493 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10494 | rm -f conftest.err conftest.$ac_objext \ |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10495 | conftest$ac_exeext conftest.$ac_ext |
| 10496 | LIBS=$ac_check_lib_save_LIBS |
| 10497 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10498 | echo "$as_me:$LINENO: result: $ac_cv_lib_samplerate_src_new" >&5 |
| 10499 | echo "${ECHO_T}$ac_cv_lib_samplerate_src_new" >&6 |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10500 | if test $ac_cv_lib_samplerate_src_new = yes; then |
| 10501 | cat >>confdefs.h <<_ACEOF |
| 10502 | #define HAVE_LIBSAMPLERATE 1 |
| 10503 | _ACEOF |
| 10504 | |
| 10505 | LIBS="-lsamplerate $LIBS" |
| 10506 | |
| 10507 | fi |
| 10508 | |
| 10509 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10510 | echo "$as_me:$LINENO: result: Skipping libsamplerate detection" >&5 |
| 10511 | echo "${ECHO_T}Skipping libsamplerate detection" >&6 |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10512 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10513 | fi; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10514 | |
| 10515 | |
| 10516 | |
| 10517 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10518 | # Check whether --enable-ssl or --disable-ssl was given. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10519 | if test "${enable_ssl+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10520 | enableval="$enable_ssl" |
| 10521 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10522 | if test "$enable_ssl" = "no"; then |
| 10523 | ac_no_ssl=1 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10524 | echo "$as_me:$LINENO: result: Checking if SSL support is disabled... yes" >&5 |
| 10525 | echo "${ECHO_T}Checking if SSL support is disabled... yes" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10526 | fi |
| 10527 | |
| 10528 | else |
| 10529 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10530 | echo "$as_me:$LINENO: result: checking for OpenSSL installations.." >&5 |
| 10531 | echo "${ECHO_T}checking for OpenSSL installations.." >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10532 | |
| 10533 | |
| 10534 | |
| 10535 | if test "${ac_cv_header_openssl_ssl_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10536 | echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5 |
| 10537 | echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10538 | if test "${ac_cv_header_openssl_ssl_h+set}" = set; then |
| 10539 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10540 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10541 | echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5 |
| 10542 | echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10543 | else |
| 10544 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10545 | echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5 |
| 10546 | echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10547 | cat >conftest.$ac_ext <<_ACEOF |
| 10548 | /* confdefs.h. */ |
| 10549 | _ACEOF |
| 10550 | cat confdefs.h >>conftest.$ac_ext |
| 10551 | cat >>conftest.$ac_ext <<_ACEOF |
| 10552 | /* end confdefs.h. */ |
| 10553 | $ac_includes_default |
| 10554 | #include <openssl/ssl.h> |
| 10555 | _ACEOF |
| 10556 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10557 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10558 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10559 | ac_status=$? |
| 10560 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10561 | rm -f conftest.er1 |
| 10562 | cat conftest.err >&5 |
| 10563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10564 | (exit $ac_status); } && |
| 10565 | { ac_try='test -z "$ac_c_werror_flag" |
| 10566 | || test ! -s conftest.err' |
| 10567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10568 | (eval $ac_try) 2>&5 |
| 10569 | ac_status=$? |
| 10570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10571 | (exit $ac_status); }; } && |
| 10572 | { ac_try='test -s conftest.$ac_objext' |
| 10573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10574 | (eval $ac_try) 2>&5 |
| 10575 | ac_status=$? |
| 10576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10577 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10578 | ac_header_compiler=yes |
| 10579 | else |
| 10580 | echo "$as_me: failed program was:" >&5 |
| 10581 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10582 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10583 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10584 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10585 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10586 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10587 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10588 | |
| 10589 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10590 | echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5 |
| 10591 | echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10592 | cat >conftest.$ac_ext <<_ACEOF |
| 10593 | /* confdefs.h. */ |
| 10594 | _ACEOF |
| 10595 | cat confdefs.h >>conftest.$ac_ext |
| 10596 | cat >>conftest.$ac_ext <<_ACEOF |
| 10597 | /* end confdefs.h. */ |
| 10598 | #include <openssl/ssl.h> |
| 10599 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10600 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10601 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10602 | ac_status=$? |
| 10603 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10604 | rm -f conftest.er1 |
| 10605 | cat conftest.err >&5 |
| 10606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10607 | (exit $ac_status); } >/dev/null; then |
| 10608 | if test -s conftest.err; then |
| 10609 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10610 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10611 | else |
| 10612 | ac_cpp_err= |
| 10613 | fi |
| 10614 | else |
| 10615 | ac_cpp_err=yes |
| 10616 | fi |
| 10617 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10618 | ac_header_preproc=yes |
| 10619 | else |
| 10620 | echo "$as_me: failed program was:" >&5 |
| 10621 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10622 | |
| 10623 | ac_header_preproc=no |
| 10624 | fi |
| 10625 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10626 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10627 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10628 | |
| 10629 | # So? What about this header? |
| 10630 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10631 | yes:no: ) |
| 10632 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10633 | echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10634 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5 |
| 10635 | echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;} |
| 10636 | ac_header_preproc=yes |
| 10637 | ;; |
| 10638 | no:yes:* ) |
| 10639 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5 |
| 10640 | echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;} |
| 10641 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5 |
| 10642 | echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;} |
| 10643 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5 |
| 10644 | echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;} |
| 10645 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 10646 | echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10647 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5 |
| 10648 | echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;} |
| 10649 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5 |
| 10650 | echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10651 | ( |
| 10652 | cat <<\_ASBOX |
| 10653 | ## ------------------------------------ ## |
| 10654 | ## Report this to the pjproject lists. ## |
| 10655 | ## ------------------------------------ ## |
| 10656 | _ASBOX |
| 10657 | ) | |
| 10658 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10659 | ;; |
| 10660 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10661 | echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5 |
| 10662 | echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10663 | if test "${ac_cv_header_openssl_ssl_h+set}" = set; then |
| 10664 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10665 | else |
| 10666 | ac_cv_header_openssl_ssl_h=$ac_header_preproc |
| 10667 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10668 | echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5 |
| 10669 | echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10670 | |
| 10671 | fi |
| 10672 | if test $ac_cv_header_openssl_ssl_h = yes; then |
| 10673 | openssl_h_present=1 |
| 10674 | fi |
| 10675 | |
| 10676 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10677 | echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5 |
| 10678 | echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10679 | if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then |
| 10680 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10681 | else |
| 10682 | ac_check_lib_save_LIBS=$LIBS |
| 10683 | LIBS="-lssl $LIBS" |
| 10684 | cat >conftest.$ac_ext <<_ACEOF |
| 10685 | /* confdefs.h. */ |
| 10686 | _ACEOF |
| 10687 | cat confdefs.h >>conftest.$ac_ext |
| 10688 | cat >>conftest.$ac_ext <<_ACEOF |
| 10689 | /* end confdefs.h. */ |
| 10690 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10691 | /* Override any gcc2 internal prototype to avoid an error. */ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10692 | #ifdef __cplusplus |
| 10693 | extern "C" |
| 10694 | #endif |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10695 | /* We use char because int might match the return type of a gcc2 |
| 10696 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10697 | char SSL_library_init (); |
| 10698 | int |
| 10699 | main () |
| 10700 | { |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10701 | SSL_library_init (); |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10702 | ; |
| 10703 | return 0; |
| 10704 | } |
| 10705 | _ACEOF |
| 10706 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10707 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10708 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10709 | ac_status=$? |
| 10710 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10711 | rm -f conftest.er1 |
| 10712 | cat conftest.err >&5 |
| 10713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10714 | (exit $ac_status); } && |
| 10715 | { ac_try='test -z "$ac_c_werror_flag" |
| 10716 | || test ! -s conftest.err' |
| 10717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10718 | (eval $ac_try) 2>&5 |
| 10719 | ac_status=$? |
| 10720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10721 | (exit $ac_status); }; } && |
| 10722 | { ac_try='test -s conftest$ac_exeext' |
| 10723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10724 | (eval $ac_try) 2>&5 |
| 10725 | ac_status=$? |
| 10726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10727 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10728 | ac_cv_lib_ssl_SSL_library_init=yes |
| 10729 | else |
| 10730 | echo "$as_me: failed program was:" >&5 |
| 10731 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10732 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10733 | ac_cv_lib_ssl_SSL_library_init=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10734 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10735 | rm -f conftest.err conftest.$ac_objext \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10736 | conftest$ac_exeext conftest.$ac_ext |
| 10737 | LIBS=$ac_check_lib_save_LIBS |
| 10738 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10739 | echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5 |
| 10740 | echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10741 | if test $ac_cv_lib_ssl_SSL_library_init = yes; then |
| 10742 | libssl_present=1 && LIBS="$LIBS -lssl" |
| 10743 | fi |
| 10744 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10745 | echo "$as_me:$LINENO: checking for ERR_load_BIO_strings in -lcrypto" >&5 |
| 10746 | echo $ECHO_N "checking for ERR_load_BIO_strings in -lcrypto... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10747 | if test "${ac_cv_lib_crypto_ERR_load_BIO_strings+set}" = set; then |
| 10748 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10749 | else |
| 10750 | ac_check_lib_save_LIBS=$LIBS |
| 10751 | LIBS="-lcrypto $LIBS" |
| 10752 | cat >conftest.$ac_ext <<_ACEOF |
| 10753 | /* confdefs.h. */ |
| 10754 | _ACEOF |
| 10755 | cat confdefs.h >>conftest.$ac_ext |
| 10756 | cat >>conftest.$ac_ext <<_ACEOF |
| 10757 | /* end confdefs.h. */ |
| 10758 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10759 | /* Override any gcc2 internal prototype to avoid an error. */ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10760 | #ifdef __cplusplus |
| 10761 | extern "C" |
| 10762 | #endif |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10763 | /* We use char because int might match the return type of a gcc2 |
| 10764 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10765 | char ERR_load_BIO_strings (); |
| 10766 | int |
| 10767 | main () |
| 10768 | { |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10769 | ERR_load_BIO_strings (); |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10770 | ; |
| 10771 | return 0; |
| 10772 | } |
| 10773 | _ACEOF |
| 10774 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10775 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10776 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10777 | ac_status=$? |
| 10778 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10779 | rm -f conftest.er1 |
| 10780 | cat conftest.err >&5 |
| 10781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10782 | (exit $ac_status); } && |
| 10783 | { ac_try='test -z "$ac_c_werror_flag" |
| 10784 | || test ! -s conftest.err' |
| 10785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10786 | (eval $ac_try) 2>&5 |
| 10787 | ac_status=$? |
| 10788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10789 | (exit $ac_status); }; } && |
| 10790 | { ac_try='test -s conftest$ac_exeext' |
| 10791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10792 | (eval $ac_try) 2>&5 |
| 10793 | ac_status=$? |
| 10794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10795 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10796 | ac_cv_lib_crypto_ERR_load_BIO_strings=yes |
| 10797 | else |
| 10798 | echo "$as_me: failed program was:" >&5 |
| 10799 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10800 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10801 | ac_cv_lib_crypto_ERR_load_BIO_strings=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10802 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10803 | rm -f conftest.err conftest.$ac_objext \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10804 | conftest$ac_exeext conftest.$ac_ext |
| 10805 | LIBS=$ac_check_lib_save_LIBS |
| 10806 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10807 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_ERR_load_BIO_strings" >&5 |
| 10808 | echo "${ECHO_T}$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10809 | if test $ac_cv_lib_crypto_ERR_load_BIO_strings = yes; then |
| 10810 | libcrypto_present=1 && LIBS="$LIBS -lcrypto" |
| 10811 | fi |
| 10812 | |
| 10813 | if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10814 | echo "$as_me:$LINENO: result: OpenSSL library found, SSL support enabled" >&5 |
| 10815 | echo "${ECHO_T}OpenSSL library found, SSL support enabled" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10816 | cat >>confdefs.h <<\_ACEOF |
| 10817 | #define PJSIP_HAS_TLS_TRANSPORT 1 |
| 10818 | _ACEOF |
| 10819 | |
| 10820 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10821 | echo "$as_me:$LINENO: result: ** OpenSSL libraries not found, disabling SSL support **" >&5 |
| 10822 | echo "${ECHO_T}** OpenSSL libraries not found, disabling SSL support **" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10823 | fi |
| 10824 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10825 | fi; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10826 | |
| 10827 | |
| 10828 | |
| 10829 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10830 | echo "$as_me:$LINENO: checking if select() needs correct nfds" >&5 |
| 10831 | echo $ECHO_N "checking if select() needs correct nfds... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10832 | case $target in |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10833 | *rtems*) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10834 | #define PJ_SELECT_NEEDS_NFDS 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10835 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10836 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10837 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10838 | echo "${ECHO_T}yes" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10839 | ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10840 | *) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10841 | #define PJ_SELECT_NEEDS_NFDS 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10842 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10843 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10844 | echo "$as_me:$LINENO: result: no (default)" >&5 |
| 10845 | echo "${ECHO_T}no (default)" >&6 |
| 10846 | echo "$as_me:$LINENO: result: ** Decided that select() doesn't need correct nfds (please check)" >&5 |
| 10847 | echo "${ECHO_T}** Decided that select() doesn't need correct nfds (please check)" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10848 | ;; |
| 10849 | esac |
| 10850 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10851 | echo "$as_me:$LINENO: checking if pj_thread_create() should enforce stack size" >&5 |
| 10852 | echo $ECHO_N "checking if pj_thread_create() should enforce stack size... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10853 | case $target in |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10854 | *rtems*) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10855 | #define PJ_THREAD_SET_STACK_SIZE 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10856 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10857 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10858 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10859 | echo "${ECHO_T}yes" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10860 | ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10861 | *) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10862 | #define PJ_THREAD_SET_STACK_SIZE 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10863 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10864 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10865 | echo "$as_me:$LINENO: result: no (default)" >&5 |
| 10866 | echo "${ECHO_T}no (default)" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10867 | ;; |
| 10868 | esac |
| 10869 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10870 | echo "$as_me:$LINENO: checking if pj_thread_create() should allocate stack" >&5 |
| 10871 | echo $ECHO_N "checking if pj_thread_create() should allocate stack... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10872 | case $target in |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10873 | *rtems*) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10874 | #define PJ_THREAD_ALLOCATE_STACK 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10875 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10876 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10877 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10878 | echo "${ECHO_T}yes" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10879 | ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10880 | *) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10881 | #define PJ_THREAD_ALLOCATE_STACK 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10882 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10883 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10884 | echo "$as_me:$LINENO: result: no (default)" >&5 |
| 10885 | echo "${ECHO_T}no (default)" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10886 | ;; |
| 10887 | esac |
| 10888 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10889 | case $target in |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 10890 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10891 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 10892 | #define PJ_BLOCKING_ERROR_VAL WSAEWOULDBLOCK |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10893 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10894 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 10895 | ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10896 | *) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 10897 | #define PJ_BLOCKING_ERROR_VAL EAGAIN |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10898 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 10899 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10900 | echo "$as_me:$LINENO: result: ** Setting non-blocking recv() retval to EAGAIN (please check)" >&5 |
| 10901 | echo "${ECHO_T}** Setting non-blocking recv() retval to EAGAIN (please check)" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10902 | ;; |
| 10903 | esac |
| 10904 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10905 | case $target in |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 10906 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10907 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 10908 | #define PJ_BLOCKING_CONNECT_ERROR_VAL WSAEWOULDBLOCK |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10909 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10910 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 10911 | ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10912 | *) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 10913 | #define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10914 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 10915 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10916 | echo "$as_me:$LINENO: result: ** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&5 |
| 10917 | echo "${ECHO_T}** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10918 | ;; |
| 10919 | esac |
| 10920 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10921 | |
| 10922 | |
| 10923 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10924 | if test "$build" = "$host"; then |
| 10925 | ac_cross_compile= |
| 10926 | else |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 10927 | ac_cross_compile=${host_orig}- |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10928 | fi |
| 10929 | ac_linux_poll=select |
| 10930 | |
| 10931 | ac_host=unix |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10932 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10933 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10934 | case $target in |
| 10935 | *rtems*) |
| 10936 | ac_main_obj=main_rtems.o |
| 10937 | ;; |
| 10938 | *) |
| 10939 | ac_main_obj=main.o |
| 10940 | ;; |
| 10941 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10942 | |
| 10943 | cat >confcache <<\_ACEOF |
| 10944 | # This file is a shell script that caches the results of configure |
| 10945 | # tests run on this system so they can be shared between configure |
| 10946 | # scripts and configure runs, see configure's option --config-cache. |
| 10947 | # It is not useful on other systems. If it contains results you don't |
| 10948 | # want to keep, you may remove or edit it. |
| 10949 | # |
| 10950 | # config.status only pays attention to the cache file if you give it |
| 10951 | # the --recheck option to rerun configure. |
| 10952 | # |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10953 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10954 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 10955 | # following values. |
| 10956 | |
| 10957 | _ACEOF |
| 10958 | |
| 10959 | # The following way of writing the cache mishandles newlines in values, |
| 10960 | # but we know of no workaround that is simple, portable, and efficient. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10961 | # So, don't put newlines in cache variables' values. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10962 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 10963 | # and sets the high bit in the cache file unless we assign to the vars. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10964 | { |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10965 | (set) 2>&1 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10966 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 10967 | *ac_space=\ *) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10968 | # `set' does not quote correctly, so add quotes (double-quote |
| 10969 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 10970 | sed -n \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10971 | "s/'/'\\\\''/g; |
| 10972 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10973 | ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10974 | *) |
| 10975 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10976 | sed -n \ |
| 10977 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10978 | ;; |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10979 | esac; |
| 10980 | } | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10981 | sed ' |
| 10982 | t clear |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10983 | : clear |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10984 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 10985 | t end |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10986 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 10987 | : end' >>confcache |
| 10988 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
| 10989 | if test -w $cache_file; then |
| 10990 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10991 | cat confcache >$cache_file |
| 10992 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 10993 | echo "not updating unwritable cache $cache_file" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10994 | fi |
| 10995 | fi |
| 10996 | rm -f confcache |
| 10997 | |
| 10998 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 10999 | # Let make expand exec_prefix. |
| 11000 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 11001 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11002 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 11003 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 11004 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 11005 | # (actually we leave an empty line to preserve line numbers). |
| 11006 | if test "x$srcdir" = x.; then |
| 11007 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 11008 | s/:*\$(srcdir):*/:/; |
| 11009 | s/:*\${srcdir}:*/:/; |
| 11010 | s/:*@srcdir@:*/:/; |
| 11011 | s/^\([^=]*=[ ]*\):*/\1/; |
| 11012 | s/:*$//; |
| 11013 | s/^[^=]*=[ ]*$//; |
| 11014 | }' |
| 11015 | fi |
| 11016 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11017 | DEFS=-DHAVE_CONFIG_H |
| 11018 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11019 | ac_libobjs= |
| 11020 | ac_ltlibobjs= |
| 11021 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 11022 | # 1. Remove the extension, and $U if already installed. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11023 | ac_i=`echo "$ac_i" | |
| 11024 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
| 11025 | # 2. Add them. |
| 11026 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 11027 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11028 | done |
| 11029 | LIBOBJS=$ac_libobjs |
| 11030 | |
| 11031 | LTLIBOBJS=$ac_ltlibobjs |
| 11032 | |
| 11033 | |
| 11034 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11035 | : ${CONFIG_STATUS=./config.status} |
| 11036 | ac_clean_files_save=$ac_clean_files |
| 11037 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11038 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11039 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 11040 | cat >$CONFIG_STATUS <<_ACEOF |
| 11041 | #! $SHELL |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11042 | # Generated by $as_me. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11043 | # Run this file to recreate the current configuration. |
| 11044 | # Compiler output produced by configure, useful for debugging |
| 11045 | # configure, is in config.log if it exists. |
| 11046 | |
| 11047 | debug=false |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11048 | ac_cs_recheck=false |
| 11049 | ac_cs_silent=false |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11050 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 11051 | _ACEOF |
| 11052 | |
| 11053 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11054 | ## --------------------- ## |
| 11055 | ## M4sh Initialization. ## |
| 11056 | ## --------------------- ## |
| 11057 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11058 | # Be Bourne compatible |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11059 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 11060 | emulate sh |
| 11061 | NULLCMD=: |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11062 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 11063 | # is contrary to our usage. Disable this feature. |
| 11064 | alias -g '${1+"$@"}'='"$@"' |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11065 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 11066 | set -o posix |
| 11067 | fi |
| 11068 | DUALCASE=1; export DUALCASE # for MKS sh |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11069 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11070 | # Support unset when possible. |
| 11071 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 11072 | as_unset=unset |
| 11073 | else |
| 11074 | as_unset=false |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11075 | fi |
| 11076 | |
| 11077 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11078 | # Work around bugs in pre-3.0 UWIN ksh. |
| 11079 | $as_unset ENV MAIL MAILPATH |
| 11080 | PS1='$ ' |
| 11081 | PS2='> ' |
| 11082 | PS4='+ ' |
| 11083 | |
| 11084 | # NLS nuisances. |
| 11085 | for as_var in \ |
| 11086 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 11087 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 11088 | LC_TELEPHONE LC_TIME |
| 11089 | do |
| 11090 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 11091 | eval $as_var=C; export $as_var |
| 11092 | else |
| 11093 | $as_unset $as_var |
| 11094 | fi |
| 11095 | done |
| 11096 | |
| 11097 | # Required to use basename. |
| 11098 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 11099 | as_expr=expr |
| 11100 | else |
| 11101 | as_expr=false |
| 11102 | fi |
| 11103 | |
| 11104 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 11105 | as_basename=basename |
| 11106 | else |
| 11107 | as_basename=false |
| 11108 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11109 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 11110 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11111 | # Name of the executable. |
| 11112 | as_me=`$as_basename "$0" || |
| 11113 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 11114 | X"$0" : 'X\(//\)$' \| \ |
| 11115 | X"$0" : 'X\(/\)$' \| \ |
| 11116 | . : '\(.\)' 2>/dev/null || |
| 11117 | echo X/"$0" | |
| 11118 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 11119 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 11120 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 11121 | s/.*/./; q'` |
| 11122 | |
| 11123 | |
| 11124 | # PATH needs CR, and LINENO needs CR and PATH. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11125 | # Avoid depending upon Character Ranges. |
| 11126 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 11127 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 11128 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 11129 | as_cr_digits='0123456789' |
| 11130 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 11131 | |
| 11132 | # The user is always right. |
| 11133 | if test "${PATH_SEPARATOR+set}" != set; then |
| 11134 | echo "#! /bin/sh" >conf$$.sh |
| 11135 | echo "exit 0" >>conf$$.sh |
| 11136 | chmod +x conf$$.sh |
| 11137 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 11138 | PATH_SEPARATOR=';' |
| 11139 | else |
| 11140 | PATH_SEPARATOR=: |
| 11141 | fi |
| 11142 | rm -f conf$$.sh |
| 11143 | fi |
| 11144 | |
| 11145 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11146 | as_lineno_1=$LINENO |
| 11147 | as_lineno_2=$LINENO |
| 11148 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 11149 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 11150 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 11151 | # Find who we are. Look in the path if we contain no path at all |
| 11152 | # relative or not. |
| 11153 | case $0 in |
| 11154 | *[\\/]* ) as_myself=$0 ;; |
| 11155 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11156 | for as_dir in $PATH |
| 11157 | do |
| 11158 | IFS=$as_save_IFS |
| 11159 | test -z "$as_dir" && as_dir=. |
| 11160 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 11161 | done |
| 11162 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11163 | ;; |
| 11164 | esac |
| 11165 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 11166 | # in which case we are not to be found in the path. |
| 11167 | if test "x$as_myself" = x; then |
| 11168 | as_myself=$0 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11169 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11170 | if test ! -f "$as_myself"; then |
| 11171 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 11172 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 11173 | { (exit 1); exit 1; }; } |
| 11174 | fi |
| 11175 | case $CONFIG_SHELL in |
| 11176 | '') |
| 11177 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11178 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 11179 | do |
| 11180 | IFS=$as_save_IFS |
| 11181 | test -z "$as_dir" && as_dir=. |
| 11182 | for as_base in sh bash ksh sh5; do |
| 11183 | case $as_dir in |
| 11184 | /*) |
| 11185 | if ("$as_dir/$as_base" -c ' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11186 | as_lineno_1=$LINENO |
| 11187 | as_lineno_2=$LINENO |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11188 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11189 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11190 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 11191 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 11192 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 11193 | CONFIG_SHELL=$as_dir/$as_base |
| 11194 | export CONFIG_SHELL |
| 11195 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 11196 | fi;; |
| 11197 | esac |
| 11198 | done |
| 11199 | done |
| 11200 | ;; |
| 11201 | esac |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11202 | |
| 11203 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 11204 | # uniformly replaced by the line number. The first 'sed' inserts a |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11205 | # line-number line before each line; the second 'sed' does the real |
| 11206 | # work. The second script uses 'N' to pair each line-number line |
| 11207 | # with the numbered line, and appends trailing '-' during |
| 11208 | # substitution so that $LINENO is not a special case at line end. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11209 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11210 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 11211 | sed '=' <$as_myself | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11212 | sed ' |
| 11213 | N |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11214 | s,$,-, |
| 11215 | : loop |
| 11216 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11217 | t loop |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11218 | s,-$,, |
| 11219 | s,^['$as_cr_digits']*\n,, |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11220 | ' >$as_me.lineno && |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11221 | chmod +x $as_me.lineno || |
| 11222 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 11223 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11224 | { (exit 1); exit 1; }; } |
| 11225 | |
| 11226 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 11227 | # (the dirname of $[0] is not the place where we might find the |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11228 | # original and so on. Autoconf is especially sensible to this). |
| 11229 | . ./$as_me.lineno |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11230 | # Exit status is that of the last command. |
| 11231 | exit |
| 11232 | } |
| 11233 | |
| 11234 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11235 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 11236 | *c*,-n*) ECHO_N= ECHO_C=' |
| 11237 | ' ECHO_T=' ' ;; |
| 11238 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 11239 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11240 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11241 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11242 | if expr a : '\(a\)' >/dev/null 2>&1; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11243 | as_expr=expr |
| 11244 | else |
| 11245 | as_expr=false |
| 11246 | fi |
| 11247 | |
| 11248 | rm -f conf$$ conf$$.exe conf$$.file |
| 11249 | echo >conf$$.file |
| 11250 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11251 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 11252 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 11253 | if test -f conf$$.exe; then |
| 11254 | # Don't use ln at all; we don't have any links |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11255 | as_ln_s='cp -p' |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11256 | else |
| 11257 | as_ln_s='ln -s' |
| 11258 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11259 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 11260 | as_ln_s=ln |
| 11261 | else |
| 11262 | as_ln_s='cp -p' |
| 11263 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11264 | rm -f conf$$ conf$$.exe conf$$.file |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11265 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11266 | if mkdir -p . 2>/dev/null; then |
| 11267 | as_mkdir_p=: |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 11268 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11269 | test -d ./-p && rmdir ./-p |
| 11270 | as_mkdir_p=false |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 11271 | fi |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 11272 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11273 | as_executable_p="test -f" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11274 | |
| 11275 | # Sed expression to map a string onto a valid CPP name. |
| 11276 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 11277 | |
| 11278 | # Sed expression to map a string onto a valid variable name. |
| 11279 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 11280 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11281 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11282 | # IFS |
| 11283 | # We need space, tab and new line, in precisely that order. |
| 11284 | as_nl=' |
| 11285 | ' |
| 11286 | IFS=" $as_nl" |
| 11287 | |
| 11288 | # CDPATH. |
| 11289 | $as_unset CDPATH |
| 11290 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11291 | exec 6>&1 |
| 11292 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11293 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11294 | # report actual input values of CONFIG_FILES etc. instead of their |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11295 | # values after options handling. Logging --version etc. is OK. |
| 11296 | exec 5>>config.log |
| 11297 | { |
| 11298 | echo |
| 11299 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 11300 | ## Running $as_me. ## |
| 11301 | _ASBOX |
| 11302 | } >&5 |
| 11303 | cat >&5 <<_CSEOF |
| 11304 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 11305 | This file was extended by pjproject $as_me 0.8, which was |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11306 | generated by GNU Autoconf 2.59. Invocation command line was |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11307 | |
| 11308 | CONFIG_FILES = $CONFIG_FILES |
| 11309 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 11310 | CONFIG_LINKS = $CONFIG_LINKS |
| 11311 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 11312 | $ $0 $@ |
| 11313 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11314 | _CSEOF |
| 11315 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 11316 | echo >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11317 | _ACEOF |
| 11318 | |
| 11319 | # Files that config.status was made for. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11320 | if test -n "$ac_config_files"; then |
| 11321 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 11322 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11323 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11324 | if test -n "$ac_config_headers"; then |
| 11325 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 11326 | fi |
| 11327 | |
| 11328 | if test -n "$ac_config_links"; then |
| 11329 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 11330 | fi |
| 11331 | |
| 11332 | if test -n "$ac_config_commands"; then |
| 11333 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 11334 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11335 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11336 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11337 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11338 | ac_cs_usage="\ |
| 11339 | \`$as_me' instantiates files from templates according to the |
| 11340 | current configuration. |
| 11341 | |
| 11342 | Usage: $0 [OPTIONS] [FILE]... |
| 11343 | |
| 11344 | -h, --help print this help, then exit |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11345 | -V, --version print version number, then exit |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11346 | -q, --quiet do not print progress messages |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11347 | -d, --debug don't remove temporary files |
| 11348 | --recheck update $as_me by reconfiguring in the same conditions |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11349 | --file=FILE[:TEMPLATE] |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11350 | instantiate the configuration file FILE |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11351 | --header=FILE[:TEMPLATE] |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11352 | instantiate the configuration header FILE |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11353 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11354 | Configuration files: |
| 11355 | $config_files |
| 11356 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11357 | Configuration headers: |
| 11358 | $config_headers |
| 11359 | |
| 11360 | Report bugs to <bug-autoconf@gnu.org>." |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11361 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11362 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11363 | cat >>$CONFIG_STATUS <<_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11364 | ac_cs_version="\\ |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 11365 | pjproject config.status 0.8 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11366 | configured by $0, generated by GNU Autoconf 2.59, |
| 11367 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11368 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11369 | Copyright (C) 2003 Free Software Foundation, Inc. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11370 | This config.status script is free software; the Free Software Foundation |
| 11371 | gives unlimited permission to copy, distribute and modify it." |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11372 | srcdir=$srcdir |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11373 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11374 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11375 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11376 | # If no file are specified by the user, then we need to provide default |
| 11377 | # value. By we need to know if files were specified by the user. |
| 11378 | ac_need_defaults=: |
| 11379 | while test $# != 0 |
| 11380 | do |
| 11381 | case $1 in |
| 11382 | --*=*) |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11383 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 11384 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11385 | ac_shift=: |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11386 | ;; |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11387 | -*) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11388 | ac_option=$1 |
| 11389 | ac_optarg=$2 |
| 11390 | ac_shift=shift |
| 11391 | ;; |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11392 | *) # This is not an option, so the user has probably given explicit |
| 11393 | # arguments. |
| 11394 | ac_option=$1 |
| 11395 | ac_need_defaults=false;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11396 | esac |
| 11397 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11398 | case $ac_option in |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11399 | # Handling of the options. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11400 | _ACEOF |
| 11401 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11402 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11403 | ac_cs_recheck=: ;; |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11404 | --version | --vers* | -V ) |
| 11405 | echo "$ac_cs_version"; exit 0 ;; |
| 11406 | --he | --h) |
| 11407 | # Conflict between --help and --header |
| 11408 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 11409 | Try \`$0 --help' for more information." >&5 |
| 11410 | echo "$as_me: error: ambiguous option: $1 |
| 11411 | Try \`$0 --help' for more information." >&2;} |
| 11412 | { (exit 1); exit 1; }; };; |
| 11413 | --help | --hel | -h ) |
| 11414 | echo "$ac_cs_usage"; exit 0 ;; |
| 11415 | --debug | --d* | -d ) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11416 | debug=: ;; |
| 11417 | --file | --fil | --fi | --f ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11418 | $ac_shift |
| 11419 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11420 | ac_need_defaults=false;; |
| 11421 | --header | --heade | --head | --hea ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11422 | $ac_shift |
| 11423 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11424 | ac_need_defaults=false;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11425 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 11426 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 11427 | ac_cs_silent=: ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11428 | |
| 11429 | # This is an error. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11430 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 11431 | Try \`$0 --help' for more information." >&5 |
| 11432 | echo "$as_me: error: unrecognized option: $1 |
| 11433 | Try \`$0 --help' for more information." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11434 | { (exit 1); exit 1; }; } ;; |
| 11435 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11436 | *) ac_config_targets="$ac_config_targets $1" ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11437 | |
| 11438 | esac |
| 11439 | shift |
| 11440 | done |
| 11441 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11442 | ac_configure_extra_args= |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11443 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11444 | if $ac_cs_silent; then |
| 11445 | exec 6>/dev/null |
| 11446 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 11447 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11448 | |
| 11449 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11450 | cat >>$CONFIG_STATUS <<_ACEOF |
| 11451 | if \$ac_cs_recheck; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11452 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 11453 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11454 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11455 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11456 | _ACEOF |
| 11457 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11458 | |
| 11459 | |
| 11460 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11461 | |
| 11462 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11463 | for ac_config_target in $ac_config_targets |
| 11464 | do |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11465 | case "$ac_config_target" in |
| 11466 | # Handling of arguments. |
| 11467 | "build.mak" ) CONFIG_FILES="$CONFIG_FILES build.mak" ;; |
| 11468 | "build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;; |
| 11469 | "pjlib/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;; |
| 11470 | "pjlib-util/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;; |
| 11471 | "pjmedia/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;; |
| 11472 | "pjsip/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjsip/build/os-auto.mak" ;; |
| 11473 | "third_party/build/portaudio/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES third_party/build/portaudio/os-auto.mak" ;; |
| 11474 | "third_party/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES third_party/build/os-auto.mak" ;; |
| 11475 | "pjlib/include/pj/compat/os_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/os_auto.h" ;; |
| 11476 | "pjlib/include/pj/compat/m_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/m_auto.h" ;; |
| 11477 | "pjmedia/include/pjmedia/config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia/config_auto.h" ;; |
| 11478 | "pjmedia/include/pjmedia-codec/config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia-codec/config_auto.h" ;; |
| 11479 | "pjsip/include/pjsip/sip_autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjsip/include/pjsip/sip_autoconf.h" ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11480 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11481 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 11482 | { (exit 1); exit 1; }; };; |
| 11483 | esac |
| 11484 | done |
| 11485 | |
| 11486 | # If the user did not use the arguments to specify the items to instantiate, |
| 11487 | # then the envvar interface is used. Set only those that are not. |
| 11488 | # We use the long form for the default assignment because of an extremely |
| 11489 | # bizarre bug on SunOS 4.1.3. |
| 11490 | if $ac_need_defaults; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11491 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11492 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 11493 | fi |
| 11494 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11495 | # Have a temporary directory for convenience. Make it in the build tree |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11496 | # simply because there is no reason to put it here, and in addition, |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11497 | # creating and moving files from /tmp can sometimes cause problems. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11498 | # Create a temporary directory, and hook for its removal unless debugging. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11499 | $debug || |
| 11500 | { |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11501 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11502 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 11503 | } |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11504 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11505 | # Create a (secure) tmp directory for tmp files. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11506 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11507 | { |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11508 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11509 | test -n "$tmp" && test -d "$tmp" |
| 11510 | } || |
| 11511 | { |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11512 | tmp=./confstat$$-$RANDOM |
| 11513 | (umask 077 && mkdir $tmp) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11514 | } || |
| 11515 | { |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11516 | echo "$me: cannot create a temporary directory in ." >&2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11517 | { (exit 1); exit 1; } |
| 11518 | } |
| 11519 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11520 | _ACEOF |
| 11521 | |
| 11522 | cat >>$CONFIG_STATUS <<_ACEOF |
| 11523 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11524 | # |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11525 | # CONFIG_FILES section. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11526 | # |
| 11527 | |
| 11528 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 11529 | # This happens for instance when ./config.status config.h |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11530 | if test -n "\$CONFIG_FILES"; then |
| 11531 | # Protect against being on the right side of a sed subst in config.status. |
| 11532 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 11533 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 11534 | s,@SHELL@,$SHELL,;t t |
| 11535 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 11536 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 11537 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 11538 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 11539 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 11540 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 11541 | s,@exec_prefix@,$exec_prefix,;t t |
| 11542 | s,@prefix@,$prefix,;t t |
| 11543 | s,@program_transform_name@,$program_transform_name,;t t |
| 11544 | s,@bindir@,$bindir,;t t |
| 11545 | s,@sbindir@,$sbindir,;t t |
| 11546 | s,@libexecdir@,$libexecdir,;t t |
| 11547 | s,@datadir@,$datadir,;t t |
| 11548 | s,@sysconfdir@,$sysconfdir,;t t |
| 11549 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 11550 | s,@localstatedir@,$localstatedir,;t t |
| 11551 | s,@libdir@,$libdir,;t t |
| 11552 | s,@includedir@,$includedir,;t t |
| 11553 | s,@oldincludedir@,$oldincludedir,;t t |
| 11554 | s,@infodir@,$infodir,;t t |
| 11555 | s,@mandir@,$mandir,;t t |
| 11556 | s,@build_alias@,$build_alias,;t t |
| 11557 | s,@host_alias@,$host_alias,;t t |
| 11558 | s,@target_alias@,$target_alias,;t t |
| 11559 | s,@DEFS@,$DEFS,;t t |
| 11560 | s,@ECHO_C@,$ECHO_C,;t t |
| 11561 | s,@ECHO_N@,$ECHO_N,;t t |
| 11562 | s,@ECHO_T@,$ECHO_T,;t t |
| 11563 | s,@LIBS@,$LIBS,;t t |
| 11564 | s,@build@,$build,;t t |
| 11565 | s,@build_cpu@,$build_cpu,;t t |
| 11566 | s,@build_vendor@,$build_vendor,;t t |
| 11567 | s,@build_os@,$build_os,;t t |
| 11568 | s,@host@,$host,;t t |
| 11569 | s,@host_cpu@,$host_cpu,;t t |
| 11570 | s,@host_vendor@,$host_vendor,;t t |
| 11571 | s,@host_os@,$host_os,;t t |
| 11572 | s,@target@,$target,;t t |
| 11573 | s,@target_cpu@,$target_cpu,;t t |
| 11574 | s,@target_vendor@,$target_vendor,;t t |
| 11575 | s,@target_os@,$target_os,;t t |
| 11576 | s,@CC@,$CC,;t t |
| 11577 | s,@CFLAGS@,$CFLAGS,;t t |
| 11578 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 11579 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 11580 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 11581 | s,@EXEEXT@,$EXEEXT,;t t |
| 11582 | s,@OBJEXT@,$OBJEXT,;t t |
| 11583 | s,@CXX@,$CXX,;t t |
| 11584 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
| 11585 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
| 11586 | s,@ac_pjdir@,$ac_pjdir,;t t |
| 11587 | s,@CPP@,$CPP,;t t |
| 11588 | s,@EGREP@,$EGREP,;t t |
| 11589 | s,@ac_os_objs@,$ac_os_objs,;t t |
| 11590 | s,@ac_pjmedia_snd@,$ac_pjmedia_snd,;t t |
| 11591 | s,@ac_pa_cflags@,$ac_pa_cflags,;t t |
| 11592 | s,@ac_pa_use_alsa@,$ac_pa_use_alsa,;t t |
| 11593 | s,@ac_pa_use_oss@,$ac_pa_use_oss,;t t |
| 11594 | s,@ac_no_small_filter@,$ac_no_small_filter,;t t |
| 11595 | s,@ac_no_large_filter@,$ac_no_large_filter,;t t |
| 11596 | s,@ac_no_speex_aec@,$ac_no_speex_aec,;t t |
| 11597 | s,@ac_no_g711_codec@,$ac_no_g711_codec,;t t |
| 11598 | s,@ac_no_l16_codec@,$ac_no_l16_codec,;t t |
| 11599 | s,@ac_no_gsm_codec@,$ac_no_gsm_codec,;t t |
Benny Prijono | 71f657d | 2008-03-17 14:24:21 +0000 | [diff] [blame] | 11600 | s,@ac_no_g722_codec@,$ac_no_g722_codec,;t t |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11601 | s,@ac_no_speex_codec@,$ac_no_speex_codec,;t t |
| 11602 | s,@ac_no_ilbc_codec@,$ac_no_ilbc_codec,;t t |
| 11603 | s,@ac_no_ssl@,$ac_no_ssl,;t t |
| 11604 | s,@openssl_h_present@,$openssl_h_present,;t t |
| 11605 | s,@libssl_present@,$libssl_present,;t t |
| 11606 | s,@libcrypto_present@,$libcrypto_present,;t t |
| 11607 | s,@ac_cross_compile@,$ac_cross_compile,;t t |
| 11608 | s,@ac_linux_poll@,$ac_linux_poll,;t t |
| 11609 | s,@ac_host@,$ac_host,;t t |
| 11610 | s,@ac_main_obj@,$ac_main_obj,;t t |
| 11611 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 11612 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
| 11613 | CEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11614 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11615 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11616 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11617 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 11618 | # Split the substitutions into bite-sized pieces for seds with |
| 11619 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 11620 | ac_max_sed_lines=48 |
| 11621 | ac_sed_frag=1 # Number of current file. |
| 11622 | ac_beg=1 # First line for current file. |
| 11623 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 11624 | ac_more_lines=: |
| 11625 | ac_sed_cmds= |
| 11626 | while $ac_more_lines; do |
| 11627 | if test $ac_beg -gt 1; then |
| 11628 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 11629 | else |
| 11630 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 11631 | fi |
| 11632 | if test ! -s $tmp/subs.frag; then |
| 11633 | ac_more_lines=false |
| 11634 | else |
| 11635 | # The purpose of the label and of the branching condition is to |
| 11636 | # speed up the sed processing (if there are no `@' at all, there |
| 11637 | # is no need to browse any of the substitutions). |
| 11638 | # These are the two extra sed commands mentioned above. |
| 11639 | (echo ':t |
| 11640 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 11641 | if test -z "$ac_sed_cmds"; then |
| 11642 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 11643 | else |
| 11644 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 11645 | fi |
| 11646 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 11647 | ac_beg=$ac_end |
| 11648 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 11649 | fi |
| 11650 | done |
| 11651 | if test -z "$ac_sed_cmds"; then |
| 11652 | ac_sed_cmds=cat |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11653 | fi |
| 11654 | fi # test -n "$CONFIG_FILES" |
| 11655 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11656 | _ACEOF |
| 11657 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 11658 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 11659 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 11660 | case $ac_file in |
| 11661 | - | *:- | *:-:* ) # input from stdin |
| 11662 | cat >$tmp/stdin |
| 11663 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 11664 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 11665 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 11666 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 11667 | * ) ac_file_in=$ac_file.in ;; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11668 | esac |
| 11669 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11670 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 11671 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11672 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 11673 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 11674 | X"$ac_file" : 'X\(//\)$' \| \ |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11675 | X"$ac_file" : 'X\(/\)' \| \ |
| 11676 | . : '\(.\)' 2>/dev/null || |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11677 | echo X"$ac_file" | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11678 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 11679 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 11680 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 11681 | /^X\(\/\).*/{ s//\1/; q; } |
| 11682 | s/.*/./; q'` |
| 11683 | { if $as_mkdir_p; then |
| 11684 | mkdir -p "$ac_dir" |
| 11685 | else |
| 11686 | as_dir="$ac_dir" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11687 | as_dirs= |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11688 | while test ! -d "$as_dir"; do |
| 11689 | as_dirs="$as_dir $as_dirs" |
| 11690 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11691 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 11692 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 11693 | X"$as_dir" : 'X\(//\)$' \| \ |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11694 | X"$as_dir" : 'X\(/\)' \| \ |
| 11695 | . : '\(.\)' 2>/dev/null || |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11696 | echo X"$as_dir" | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11697 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 11698 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 11699 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 11700 | /^X\(\/\).*/{ s//\1/; q; } |
| 11701 | s/.*/./; q'` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11702 | done |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11703 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 11704 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 11705 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11706 | { (exit 1); exit 1; }; }; } |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11707 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11708 | ac_builddir=. |
| 11709 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11710 | if test "$ac_dir" != .; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11711 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11712 | # A "../" for each directory in $ac_dir_suffix. |
| 11713 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 11714 | else |
| 11715 | ac_dir_suffix= ac_top_builddir= |
| 11716 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11717 | |
| 11718 | case $srcdir in |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11719 | .) # No --srcdir option. We are building in place. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11720 | ac_srcdir=. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11721 | if test -z "$ac_top_builddir"; then |
| 11722 | ac_top_srcdir=. |
| 11723 | else |
| 11724 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 11725 | fi ;; |
| 11726 | [\\/]* | ?:[\\/]* ) # Absolute path. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11727 | ac_srcdir=$srcdir$ac_dir_suffix; |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11728 | ac_top_srcdir=$srcdir ;; |
| 11729 | *) # Relative path. |
| 11730 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 11731 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11732 | esac |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11733 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11734 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 11735 | # the directories may not exist. |
| 11736 | case `pwd` in |
| 11737 | .) ac_abs_builddir="$ac_dir";; |
| 11738 | *) |
| 11739 | case "$ac_dir" in |
| 11740 | .) ac_abs_builddir=`pwd`;; |
| 11741 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 11742 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 11743 | esac;; |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11744 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11745 | case $ac_abs_builddir in |
| 11746 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 11747 | *) |
| 11748 | case ${ac_top_builddir}. in |
| 11749 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 11750 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 11751 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 11752 | esac;; |
| 11753 | esac |
| 11754 | case $ac_abs_builddir in |
| 11755 | .) ac_abs_srcdir=$ac_srcdir;; |
| 11756 | *) |
| 11757 | case $ac_srcdir in |
| 11758 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 11759 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 11760 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 11761 | esac;; |
| 11762 | esac |
| 11763 | case $ac_abs_builddir in |
| 11764 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 11765 | *) |
| 11766 | case $ac_top_srcdir in |
| 11767 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 11768 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 11769 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 11770 | esac;; |
| 11771 | esac |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11772 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11773 | |
| 11774 | |
| 11775 | if test x"$ac_file" != x-; then |
| 11776 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 11777 | echo "$as_me: creating $ac_file" >&6;} |
| 11778 | rm -f "$ac_file" |
| 11779 | fi |
| 11780 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 11781 | # use $as_me), people would be surprised to read: |
| 11782 | # /* config.h. Generated by config.status. */ |
| 11783 | if test x"$ac_file" = x-; then |
| 11784 | configure_input= |
| 11785 | else |
| 11786 | configure_input="$ac_file. " |
| 11787 | fi |
| 11788 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 11789 | sed 's,.*/,,'` by configure." |
| 11790 | |
| 11791 | # First look for the input files in the build tree, otherwise in the |
| 11792 | # src tree. |
| 11793 | ac_file_inputs=`IFS=: |
| 11794 | for f in $ac_file_in; do |
| 11795 | case $f in |
| 11796 | -) echo $tmp/stdin ;; |
| 11797 | [\\/$]*) |
| 11798 | # Absolute (can't be DOS-style, as IFS=:) |
| 11799 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 11800 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 11801 | { (exit 1); exit 1; }; } |
| 11802 | echo "$f";; |
| 11803 | *) # Relative |
| 11804 | if test -f "$f"; then |
| 11805 | # Build tree |
| 11806 | echo "$f" |
| 11807 | elif test -f "$srcdir/$f"; then |
| 11808 | # Source tree |
| 11809 | echo "$srcdir/$f" |
| 11810 | else |
| 11811 | # /dev/null tree |
| 11812 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 11813 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 11814 | { (exit 1); exit 1; }; } |
| 11815 | fi;; |
| 11816 | esac |
| 11817 | done` || { (exit 1); exit 1; } |
| 11818 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11819 | cat >>$CONFIG_STATUS <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11820 | sed "$ac_vpsub |
| 11821 | $extrasub |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11822 | _ACEOF |
| 11823 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11824 | :t |
| 11825 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11826 | s,@configure_input@,$configure_input,;t t |
| 11827 | s,@srcdir@,$ac_srcdir,;t t |
| 11828 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 11829 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 11830 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 11831 | s,@builddir@,$ac_builddir,;t t |
| 11832 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 11833 | s,@top_builddir@,$ac_top_builddir,;t t |
| 11834 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 11835 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 11836 | rm -f $tmp/stdin |
| 11837 | if test x"$ac_file" != x-; then |
| 11838 | mv $tmp/out $ac_file |
| 11839 | else |
| 11840 | cat $tmp/out |
| 11841 | rm -f $tmp/out |
| 11842 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11843 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11844 | done |
| 11845 | _ACEOF |
| 11846 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11847 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11848 | # |
| 11849 | # CONFIG_HEADER section. |
| 11850 | # |
| 11851 | |
| 11852 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 11853 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 11854 | # |
| 11855 | # ac_d sets the value in "#define NAME VALUE" lines. |
| 11856 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 11857 | ac_dB='[ ].*$,\1#\2' |
| 11858 | ac_dC=' ' |
| 11859 | ac_dD=',;t' |
| 11860 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 11861 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 11862 | ac_uB='$,\1#\2define\3' |
| 11863 | ac_uC=' ' |
| 11864 | ac_uD=',;t' |
| 11865 | |
| 11866 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
| 11867 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11868 | case $ac_file in |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11869 | - | *:- | *:-:* ) # input from stdin |
| 11870 | cat >$tmp/stdin |
| 11871 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 11872 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 11873 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 11874 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 11875 | * ) ac_file_in=$ac_file.in ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11876 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11877 | |
| 11878 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 11879 | echo "$as_me: creating $ac_file" >&6;} |
| 11880 | |
| 11881 | # First look for the input files in the build tree, otherwise in the |
| 11882 | # src tree. |
| 11883 | ac_file_inputs=`IFS=: |
| 11884 | for f in $ac_file_in; do |
| 11885 | case $f in |
| 11886 | -) echo $tmp/stdin ;; |
| 11887 | [\\/$]*) |
| 11888 | # Absolute (can't be DOS-style, as IFS=:) |
| 11889 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 11890 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 11891 | { (exit 1); exit 1; }; } |
| 11892 | # Do quote $f, to prevent DOS paths from being IFS'd. |
| 11893 | echo "$f";; |
| 11894 | *) # Relative |
| 11895 | if test -f "$f"; then |
| 11896 | # Build tree |
| 11897 | echo "$f" |
| 11898 | elif test -f "$srcdir/$f"; then |
| 11899 | # Source tree |
| 11900 | echo "$srcdir/$f" |
| 11901 | else |
| 11902 | # /dev/null tree |
| 11903 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 11904 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 11905 | { (exit 1); exit 1; }; } |
| 11906 | fi;; |
| 11907 | esac |
| 11908 | done` || { (exit 1); exit 1; } |
| 11909 | # Remove the trailing spaces. |
| 11910 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
| 11911 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11912 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11913 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11914 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 11915 | # `conftest.undefs', that substitutes the proper values into |
| 11916 | # config.h.in to produce config.h. The first handles `#define' |
| 11917 | # templates, and the second `#undef' templates. |
| 11918 | # And first: Protect against being on the right side of a sed subst in |
| 11919 | # config.status. Protect against being in an unquoted here document |
| 11920 | # in config.status. |
| 11921 | rm -f conftest.defines conftest.undefs |
| 11922 | # Using a here document instead of a string reduces the quoting nightmare. |
| 11923 | # Putting comments in sed scripts is not portable. |
| 11924 | # |
| 11925 | # `end' is used to avoid that the second main sed command (meant for |
| 11926 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 11927 | # See the Autoconf documentation for `clear'. |
| 11928 | cat >confdef2sed.sed <<\_ACEOF |
| 11929 | s/[\\&,]/\\&/g |
| 11930 | s,[\\$`],\\&,g |
| 11931 | t clear |
| 11932 | : clear |
| 11933 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 11934 | t end |
| 11935 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 11936 | : end |
| 11937 | _ACEOF |
| 11938 | # If some macros were called several times there might be several times |
| 11939 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 11940 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 11941 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 11942 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 11943 | rm -f confdef2sed.sed |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11944 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11945 | # This sed command replaces #undef with comments. This is necessary, for |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11946 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 11947 | # on some systems where configure will not decide to define it. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11948 | cat >>conftest.undefs <<\_ACEOF |
| 11949 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11950 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11951 | |
| 11952 | # Break up conftest.defines because some shells have a limit on the size |
| 11953 | # of here documents, and old seds have small limits too (100 cmds). |
| 11954 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
| 11955 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
| 11956 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 11957 | echo ' :' >>$CONFIG_STATUS |
| 11958 | rm -f conftest.tail |
| 11959 | while grep . conftest.defines >/dev/null |
| 11960 | do |
| 11961 | # Write a limited-size here document to $tmp/defines.sed. |
| 11962 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 11963 | # Speed up: don't consider the non `#define' lines. |
| 11964 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 11965 | # Work around the forget-to-reset-the-flag bug. |
| 11966 | echo 't clr' >>$CONFIG_STATUS |
| 11967 | echo ': clr' >>$CONFIG_STATUS |
| 11968 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11969 | echo 'CEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11970 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 11971 | rm -f $tmp/in |
| 11972 | mv $tmp/out $tmp/in |
| 11973 | ' >>$CONFIG_STATUS |
| 11974 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11975 | rm -f conftest.defines |
| 11976 | mv conftest.tail conftest.defines |
| 11977 | done |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11978 | rm -f conftest.defines |
| 11979 | echo ' fi # grep' >>$CONFIG_STATUS |
| 11980 | echo >>$CONFIG_STATUS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11981 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 11982 | # Break up conftest.undefs because some shells have a limit on the size |
| 11983 | # of here documents, and old seds have small limits too (100 cmds). |
| 11984 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 11985 | rm -f conftest.tail |
| 11986 | while grep . conftest.undefs >/dev/null |
| 11987 | do |
| 11988 | # Write a limited-size here document to $tmp/undefs.sed. |
| 11989 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 11990 | # Speed up: don't consider the non `#undef' |
| 11991 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 11992 | # Work around the forget-to-reset-the-flag bug. |
| 11993 | echo 't clr' >>$CONFIG_STATUS |
| 11994 | echo ': clr' >>$CONFIG_STATUS |
| 11995 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 11996 | echo 'CEOF |
| 11997 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 11998 | rm -f $tmp/in |
| 11999 | mv $tmp/out $tmp/in |
| 12000 | ' >>$CONFIG_STATUS |
| 12001 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 12002 | rm -f conftest.undefs |
| 12003 | mv conftest.tail conftest.undefs |
| 12004 | done |
| 12005 | rm -f conftest.undefs |
| 12006 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12007 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 12008 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 12009 | # use $as_me), people would be surprised to read: |
| 12010 | # /* config.h. Generated by config.status. */ |
| 12011 | if test x"$ac_file" = x-; then |
| 12012 | echo "/* Generated by configure. */" >$tmp/config.h |
| 12013 | else |
| 12014 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
| 12015 | fi |
| 12016 | cat $tmp/in >>$tmp/config.h |
| 12017 | rm -f $tmp/in |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12018 | if test x"$ac_file" != x-; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 12019 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12020 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12021 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 12022 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 12023 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 12024 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 12025 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 12026 | X"$ac_file" : 'X\(//\)$' \| \ |
| 12027 | X"$ac_file" : 'X\(/\)' \| \ |
| 12028 | . : '\(.\)' 2>/dev/null || |
| 12029 | echo X"$ac_file" | |
| 12030 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 12031 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 12032 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 12033 | /^X\(\/\).*/{ s//\1/; q; } |
| 12034 | s/.*/./; q'` |
| 12035 | { if $as_mkdir_p; then |
| 12036 | mkdir -p "$ac_dir" |
| 12037 | else |
| 12038 | as_dir="$ac_dir" |
| 12039 | as_dirs= |
| 12040 | while test ! -d "$as_dir"; do |
| 12041 | as_dirs="$as_dir $as_dirs" |
| 12042 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 12043 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 12044 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 12045 | X"$as_dir" : 'X\(//\)$' \| \ |
| 12046 | X"$as_dir" : 'X\(/\)' \| \ |
| 12047 | . : '\(.\)' 2>/dev/null || |
| 12048 | echo X"$as_dir" | |
| 12049 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 12050 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 12051 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 12052 | /^X\(\/\).*/{ s//\1/; q; } |
| 12053 | s/.*/./; q'` |
| 12054 | done |
| 12055 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 12056 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 12057 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 12058 | { (exit 1); exit 1; }; }; } |
| 12059 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12060 | rm -f $ac_file |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 12061 | mv $tmp/config.h $ac_file |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12062 | fi |
| 12063 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 12064 | cat $tmp/config.h |
| 12065 | rm -f $tmp/config.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12066 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 12067 | done |
| 12068 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12069 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 12070 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12071 | |
| 12072 | { (exit 0); exit 0; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12073 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12074 | chmod +x $CONFIG_STATUS |
| 12075 | ac_clean_files=$ac_clean_files_save |
| 12076 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12077 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12078 | # configure is writing to config.log, and then calls config.status. |
| 12079 | # config.status does its own redirection, appending to config.log. |
| 12080 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 12081 | # by configure, so config.status won't be able to write to it; its |
| 12082 | # output is simply discarded. So we exec the FD to /dev/null, |
| 12083 | # effectively closing config.log, so it can be properly (re)opened and |
| 12084 | # appended to by config.status. When coming back to configure, we |
| 12085 | # need to make the FD available again. |
| 12086 | if test "$no_create" != yes; then |
| 12087 | ac_cs_success=: |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12088 | ac_config_status_args= |
| 12089 | test "$silent" = yes && |
| 12090 | ac_config_status_args="$ac_config_status_args --quiet" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12091 | exec 5>/dev/null |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12092 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12093 | exec 5>>config.log |
| 12094 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 12095 | # would make configure fail if this is the last instruction. |
| 12096 | $ac_cs_success || { (exit 1); exit 1; } |
| 12097 | fi |
| 12098 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12099 | |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 12100 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 12101 | echo "$as_me:$LINENO: result: |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 12102 | |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 12103 | Configurations for current target have been written to 'build.mak', and 'os-auto.mak' in various build directories, and pjlib/include/pj/compat/os_auto.h. |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 12104 | |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 12105 | Further customizations can be put in: |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 12106 | - 'user.mak' |
| 12107 | - 'pjlib/include/pj/config_site.h' |
| 12108 | |
| 12109 | The next step now is to run 'make dep' and 'make'. |
| 12110 | " >&5 |
| 12111 | echo "${ECHO_T} |
| 12112 | |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 12113 | Configurations for current target have been written to 'build.mak', and 'os-auto.mak' in various build directories, and pjlib/include/pj/compat/os_auto.h. |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 12114 | |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 12115 | Further customizations can be put in: |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 12116 | - 'user.mak' |
| 12117 | - 'pjlib/include/pj/config_site.h' |
| 12118 | |
| 12119 | The next step now is to run 'make dep' and 'make'. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame] | 12120 | " >&6 |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 12121 | |