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 | 0b46232 | 2008-03-12 22:44:24 +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_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 | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 862 | --disable-small-filter Exclude small filter in resampling |
| 863 | --disable-large-filter Exclude large filter in resampling |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 864 | --disable-speex-aec Exclude Speex Acoustic Echo Canceller/AEC |
| 865 | --disable-g711-codec Exclude G.711 codecs from the build |
| 866 | --disable-l16-codec Exclude Linear/L16 codec family from the build |
| 867 | --disable-gsm-codec Exclude GSM codec in the build |
| 868 | --disable-speex-codec Exclude Speex codecs in the build |
| 869 | --disable-ilbc-codec Exclude iLBC codec in the build |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 870 | --enable-libsamplerate Link with libsamplerate when available. Note that |
| 871 | PJMEDIA_RESAMPLE_IMP must also be configured |
Benny Prijono | ce1db76 | 2007-02-14 02:21:08 +0000 | [diff] [blame] | 872 | --disable-ssl Exclude SSL support the build (default: autodetect) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 873 | |
| 874 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 875 | Some influential environment variables: |
| 876 | CC C compiler command |
| 877 | CFLAGS C compiler flags |
| 878 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 879 | nonstandard directory <lib dir> |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 880 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 881 | headers in a nonstandard directory <include dir> |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 882 | CXX C++ compiler command |
| 883 | CXXFLAGS C++ compiler flags |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 884 | CPP C preprocessor |
| 885 | |
| 886 | Use these variables to override the choices made by `configure' or to help |
| 887 | it to find libraries and programs with nonstandard names/locations. |
| 888 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 889 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 890 | fi |
| 891 | |
| 892 | if test "$ac_init_help" = "recursive"; then |
| 893 | # If there are subdirs, report their specific --help. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 894 | ac_popdir=`pwd` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 895 | 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^] | 896 | test -d $ac_dir || continue |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 897 | ac_builddir=. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 898 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 899 | if test "$ac_dir" != .; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 900 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 901 | # A "../" for each directory in $ac_dir_suffix. |
| 902 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 903 | else |
| 904 | ac_dir_suffix= ac_top_builddir= |
| 905 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 906 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 907 | case $srcdir in |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 908 | .) # No --srcdir option. We are building in place. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 909 | ac_srcdir=. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 910 | if test -z "$ac_top_builddir"; then |
| 911 | ac_top_srcdir=. |
| 912 | else |
| 913 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 914 | fi ;; |
| 915 | [\\/]* | ?:[\\/]* ) # Absolute path. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 916 | ac_srcdir=$srcdir$ac_dir_suffix; |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 917 | ac_top_srcdir=$srcdir ;; |
| 918 | *) # Relative path. |
| 919 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 920 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 921 | esac |
| 922 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 923 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 924 | # the directories may not exist. |
| 925 | case `pwd` in |
| 926 | .) ac_abs_builddir="$ac_dir";; |
| 927 | *) |
| 928 | case "$ac_dir" in |
| 929 | .) ac_abs_builddir=`pwd`;; |
| 930 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 931 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 932 | esac;; |
| 933 | esac |
| 934 | case $ac_abs_builddir in |
| 935 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 936 | *) |
| 937 | case ${ac_top_builddir}. in |
| 938 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 939 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 940 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 941 | esac;; |
| 942 | esac |
| 943 | case $ac_abs_builddir in |
| 944 | .) ac_abs_srcdir=$ac_srcdir;; |
| 945 | *) |
| 946 | case $ac_srcdir in |
| 947 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 948 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 949 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 950 | esac;; |
| 951 | esac |
| 952 | case $ac_abs_builddir in |
| 953 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 954 | *) |
| 955 | case $ac_top_srcdir in |
| 956 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 957 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 958 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 959 | esac;; |
| 960 | esac |
| 961 | |
| 962 | cd $ac_dir |
| 963 | # Check for guested configure; otherwise get Cygnus style configure. |
| 964 | if test -f $ac_srcdir/configure.gnu; then |
| 965 | echo |
| 966 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 967 | elif test -f $ac_srcdir/configure; then |
| 968 | echo |
| 969 | $SHELL $ac_srcdir/configure --help=recursive |
| 970 | elif test -f $ac_srcdir/configure.ac || |
| 971 | test -f $ac_srcdir/configure.in; then |
| 972 | echo |
| 973 | $ac_configure --help |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 974 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 975 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 976 | fi |
| 977 | cd $ac_popdir |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 978 | done |
| 979 | fi |
| 980 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 981 | test -n "$ac_init_help" && exit 0 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 982 | if $ac_init_version; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 983 | cat <<\_ACEOF |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 984 | pjproject configure 0.8 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 985 | generated by GNU Autoconf 2.59 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 986 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 987 | Copyright (C) 2003 Free Software Foundation, Inc. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 988 | This configure script is free software; the Free Software Foundation |
| 989 | gives unlimited permission to copy, distribute and modify it. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 990 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 991 | exit 0 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 992 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 993 | exec 5>config.log |
| 994 | cat >&5 <<_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 995 | This file contains any messages produced by compilers while |
| 996 | running configure, to aid debugging if configure makes a mistake. |
| 997 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 998 | It was created by pjproject $as_me 0.8, which was |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 999 | generated by GNU Autoconf 2.59. Invocation command line was |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1000 | |
| 1001 | $ $0 $@ |
| 1002 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1003 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1004 | { |
| 1005 | cat <<_ASUNAME |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1006 | ## --------- ## |
| 1007 | ## Platform. ## |
| 1008 | ## --------- ## |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1009 | |
| 1010 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1011 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1012 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1013 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1014 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1015 | |
| 1016 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1017 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1018 | |
| 1019 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1020 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1021 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1022 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1023 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1024 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1025 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1026 | |
| 1027 | _ASUNAME |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1028 | |
| 1029 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1030 | for as_dir in $PATH |
| 1031 | do |
| 1032 | IFS=$as_save_IFS |
| 1033 | test -z "$as_dir" && as_dir=. |
| 1034 | echo "PATH: $as_dir" |
| 1035 | done |
| 1036 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1037 | } >&5 |
| 1038 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1039 | cat >&5 <<_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1040 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1041 | |
| 1042 | ## ----------- ## |
| 1043 | ## Core tests. ## |
| 1044 | ## ----------- ## |
| 1045 | |
| 1046 | _ACEOF |
| 1047 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1048 | |
| 1049 | # Keep a trace of the command line. |
| 1050 | # 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] | 1051 | # 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] | 1052 | # Also quote any args containing shell meta-characters. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1053 | # Make two passes to allow for proper duplicate-argument suppression. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1054 | ac_configure_args= |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1055 | ac_configure_args0= |
| 1056 | ac_configure_args1= |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1057 | ac_sep= |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1058 | ac_must_keep_next=false |
| 1059 | for ac_pass in 1 2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1060 | do |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1061 | for ac_arg |
| 1062 | do |
| 1063 | case $ac_arg in |
| 1064 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1065 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1066 | | -silent | --silent | --silen | --sile | --sil) |
| 1067 | continue ;; |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1068 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1069 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1070 | esac |
| 1071 | case $ac_pass in |
| 1072 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1073 | 2) |
| 1074 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1075 | if test $ac_must_keep_next = true; then |
| 1076 | ac_must_keep_next=false # Got value, back to normal. |
| 1077 | else |
| 1078 | case $ac_arg in |
| 1079 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1080 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1081 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1082 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1083 | case "$ac_configure_args0 " in |
| 1084 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1085 | esac |
| 1086 | ;; |
| 1087 | -* ) ac_must_keep_next=true ;; |
| 1088 | esac |
| 1089 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1090 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1091 | # Get rid of the leading space. |
| 1092 | ac_sep=" " |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1093 | ;; |
| 1094 | esac |
| 1095 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1096 | done |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1097 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1098 | $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] | 1099 | |
| 1100 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1101 | # config.log. We remove comments because anyway the quotes in there |
| 1102 | # would cause problems or look ugly. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1103 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1104 | # such as our DU 5.0 friend, will then `close' the trap. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1105 | trap 'exit_status=$? |
| 1106 | # Save into config.log some information that might help in debugging. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1107 | { |
| 1108 | echo |
| 1109 | |
| 1110 | cat <<\_ASBOX |
| 1111 | ## ---------------- ## |
| 1112 | ## Cache variables. ## |
| 1113 | ## ---------------- ## |
| 1114 | _ASBOX |
| 1115 | echo |
| 1116 | # The following way of writing the cache mishandles newlines in values, |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1117 | { |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1118 | (set) 2>&1 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1119 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1120 | *ac_space=\ *) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1121 | sed -n \ |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1122 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1123 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1124 | ;; |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1125 | *) |
| 1126 | sed -n \ |
| 1127 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1128 | ;; |
| 1129 | esac; |
| 1130 | } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1131 | echo |
| 1132 | |
| 1133 | cat <<\_ASBOX |
| 1134 | ## ----------------- ## |
| 1135 | ## Output variables. ## |
| 1136 | ## ----------------- ## |
| 1137 | _ASBOX |
| 1138 | echo |
| 1139 | for ac_var in $ac_subst_vars |
| 1140 | do |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1141 | eval ac_val=$`echo $ac_var` |
| 1142 | echo "$ac_var='"'"'$ac_val'"'"'" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1143 | done | sort |
| 1144 | echo |
| 1145 | |
| 1146 | if test -n "$ac_subst_files"; then |
| 1147 | cat <<\_ASBOX |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1148 | ## ------------- ## |
| 1149 | ## Output files. ## |
| 1150 | ## ------------- ## |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1151 | _ASBOX |
| 1152 | echo |
| 1153 | for ac_var in $ac_subst_files |
| 1154 | do |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1155 | eval ac_val=$`echo $ac_var` |
| 1156 | echo "$ac_var='"'"'$ac_val'"'"'" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1157 | done | sort |
| 1158 | echo |
| 1159 | fi |
| 1160 | |
| 1161 | if test -s confdefs.h; then |
| 1162 | cat <<\_ASBOX |
| 1163 | ## ----------- ## |
| 1164 | ## confdefs.h. ## |
| 1165 | ## ----------- ## |
| 1166 | _ASBOX |
| 1167 | echo |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1168 | sed "/^$/d" confdefs.h | sort |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1169 | echo |
| 1170 | fi |
| 1171 | test "$ac_signal" != 0 && |
| 1172 | echo "$as_me: caught signal $ac_signal" |
| 1173 | echo "$as_me: exit $exit_status" |
| 1174 | } >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1175 | rm -f core *.core && |
| 1176 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1177 | exit $exit_status |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1178 | ' 0 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1179 | for ac_signal in 1 2 13 15; do |
| 1180 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1181 | done |
| 1182 | ac_signal=0 |
| 1183 | |
| 1184 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1185 | rm -rf conftest* confdefs.h |
| 1186 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1187 | echo >confdefs.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1188 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1189 | # Predefined preprocessor variables. |
| 1190 | |
| 1191 | cat >>confdefs.h <<_ACEOF |
| 1192 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1193 | _ACEOF |
| 1194 | |
| 1195 | |
| 1196 | cat >>confdefs.h <<_ACEOF |
| 1197 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1198 | _ACEOF |
| 1199 | |
| 1200 | |
| 1201 | cat >>confdefs.h <<_ACEOF |
| 1202 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1203 | _ACEOF |
| 1204 | |
| 1205 | |
| 1206 | cat >>confdefs.h <<_ACEOF |
| 1207 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1208 | _ACEOF |
| 1209 | |
| 1210 | |
| 1211 | cat >>confdefs.h <<_ACEOF |
| 1212 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1213 | _ACEOF |
| 1214 | |
| 1215 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1216 | # Let the site file select an alternate cache file if it wants to. |
| 1217 | # Prefer explicitly selected file to automatically selected ones. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1218 | if test -z "$CONFIG_SITE"; then |
| 1219 | if test "x$prefix" != xNONE; then |
| 1220 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1221 | else |
| 1222 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1223 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1224 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1225 | for ac_site_file in $CONFIG_SITE; do |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1226 | if test -r "$ac_site_file"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1227 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1228 | echo "$as_me: loading site script $ac_site_file" >&6;} |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1229 | sed 's/^/| /' "$ac_site_file" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1230 | . "$ac_site_file" |
| 1231 | fi |
| 1232 | done |
| 1233 | |
| 1234 | if test -r "$cache_file"; then |
| 1235 | # Some versions of bash will fail to source /dev/null (special |
| 1236 | # files actually), so we avoid doing that. |
| 1237 | if test -f "$cache_file"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1238 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1239 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1240 | case $cache_file in |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1241 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1242 | *) . ./$cache_file;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1243 | esac |
| 1244 | fi |
| 1245 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1246 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1247 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1248 | >$cache_file |
| 1249 | fi |
| 1250 | |
| 1251 | # Check that the precious variables saved in the cache have kept the same |
| 1252 | # value. |
| 1253 | ac_cache_corrupted=false |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1254 | for ac_var in `(set) 2>&1 | |
| 1255 | 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] | 1256 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1257 | eval ac_new_set=\$ac_env_${ac_var}_set |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1258 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1259 | eval ac_new_val="\$ac_env_${ac_var}_value" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1260 | case $ac_old_set,$ac_new_set in |
| 1261 | set,) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1262 | { 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] | 1263 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1264 | ac_cache_corrupted=: ;; |
| 1265 | ,set) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1266 | { 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] | 1267 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1268 | ac_cache_corrupted=: ;; |
| 1269 | ,);; |
| 1270 | *) |
| 1271 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1272 | { 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] | 1273 | 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] | 1274 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1275 | echo "$as_me: former value: $ac_old_val" >&2;} |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1276 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1277 | echo "$as_me: current value: $ac_new_val" >&2;} |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1278 | ac_cache_corrupted=: |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1279 | fi;; |
| 1280 | esac |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1281 | # Pass precious variables to config.status. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1282 | if test "$ac_new_set" = set; then |
| 1283 | case $ac_new_val in |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1284 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1285 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1286 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1287 | esac |
| 1288 | case " $ac_configure_args " in |
| 1289 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1290 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1291 | esac |
| 1292 | fi |
| 1293 | done |
| 1294 | if $ac_cache_corrupted; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1295 | { 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] | 1296 | 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] | 1297 | { { 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] | 1298 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1299 | { (exit 1); exit 1; }; } |
| 1300 | fi |
| 1301 | |
| 1302 | ac_ext=c |
| 1303 | ac_cpp='$CPP $CPPFLAGS' |
| 1304 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1305 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1306 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1307 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1308 | |
| 1309 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1310 | |
| 1311 | |
| 1312 | |
| 1313 | |
| 1314 | |
| 1315 | |
| 1316 | |
| 1317 | |
| 1318 | |
| 1319 | |
| 1320 | |
| 1321 | |
| 1322 | |
| 1323 | |
| 1324 | |
| 1325 | |
| 1326 | |
| 1327 | |
| 1328 | |
| 1329 | |
| 1330 | |
| 1331 | |
| 1332 | |
| 1333 | |
| 1334 | |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 1335 | host_orig="$host" |
| 1336 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1337 | ac_aux_dir= |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1338 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 1339 | if test -f $ac_dir/install-sh; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1340 | ac_aux_dir=$ac_dir |
| 1341 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1342 | break |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1343 | elif test -f $ac_dir/install.sh; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1344 | ac_aux_dir=$ac_dir |
| 1345 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1346 | break |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1347 | elif test -f $ac_dir/shtool; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1348 | ac_aux_dir=$ac_dir |
| 1349 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1350 | break |
| 1351 | fi |
| 1352 | done |
| 1353 | if test -z "$ac_aux_dir"; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1354 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 1355 | 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] | 1356 | { (exit 1); exit 1; }; } |
| 1357 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1358 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 1359 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 1360 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1361 | |
| 1362 | # Make sure we can run config.sub. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1363 | $ac_config_sub sun4 >/dev/null 2>&1 || |
| 1364 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
| 1365 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1366 | { (exit 1); exit 1; }; } |
| 1367 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1368 | echo "$as_me:$LINENO: checking build system type" >&5 |
| 1369 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1370 | if test "${ac_cv_build+set}" = set; then |
| 1371 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1372 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1373 | ac_cv_build_alias=$build_alias |
| 1374 | test -z "$ac_cv_build_alias" && |
| 1375 | ac_cv_build_alias=`$ac_config_guess` |
| 1376 | test -z "$ac_cv_build_alias" && |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1377 | { { 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] | 1378 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1379 | { (exit 1); exit 1; }; } |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1380 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
| 1381 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
| 1382 | 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] | 1383 | { (exit 1); exit 1; }; } |
| 1384 | |
| 1385 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1386 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 1387 | echo "${ECHO_T}$ac_cv_build" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1388 | build=$ac_cv_build |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1389 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1390 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1391 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1392 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1393 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1394 | echo "$as_me:$LINENO: checking host system type" >&5 |
| 1395 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1396 | if test "${ac_cv_host+set}" = set; then |
| 1397 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1398 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1399 | ac_cv_host_alias=$host_alias |
| 1400 | test -z "$ac_cv_host_alias" && |
| 1401 | ac_cv_host_alias=$ac_cv_build_alias |
| 1402 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
| 1403 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
| 1404 | 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] | 1405 | { (exit 1); exit 1; }; } |
| 1406 | |
| 1407 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1408 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 1409 | echo "${ECHO_T}$ac_cv_host" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1410 | host=$ac_cv_host |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1411 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1412 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1413 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1414 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1415 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1416 | echo "$as_me:$LINENO: checking target system type" >&5 |
| 1417 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1418 | if test "${ac_cv_target+set}" = set; then |
| 1419 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1420 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1421 | ac_cv_target_alias=$target_alias |
| 1422 | test "x$ac_cv_target_alias" = "x" && |
| 1423 | ac_cv_target_alias=$ac_cv_host_alias |
| 1424 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || |
| 1425 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 |
| 1426 | 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] | 1427 | { (exit 1); exit 1; }; } |
| 1428 | |
| 1429 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1430 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 1431 | echo "${ECHO_T}$ac_cv_target" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1432 | target=$ac_cv_target |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1433 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1434 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1435 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1436 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1437 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1438 | # The aliases save the names the user supplied, while $host etc. |
| 1439 | # will get canonicalized. |
| 1440 | test -n "$target_alias" && |
| 1441 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 1442 | NONENONEs,x,x, && |
| 1443 | program_prefix=${target_alias}- |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1444 | 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] | 1445 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1446 | 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] | 1447 | |
Benny Prijono | c1fe23d | 2006-09-13 09:38:06 +0000 | [diff] [blame] | 1448 | |
Benny Prijono | 1248311 | 2007-03-12 10:44:38 +0000 | [diff] [blame] | 1449 | |
Benny Prijono | c1fe23d | 2006-09-13 09:38:06 +0000 | [diff] [blame] | 1450 | if test "$CFLAGS" = ""; then |
Benny Prijono | d145982 | 2006-10-04 20:56:39 +0000 | [diff] [blame] | 1451 | CFLAGS="-O2" |
Benny Prijono | c1fe23d | 2006-09-13 09:38:06 +0000 | [diff] [blame] | 1452 | else |
| 1453 | CFLAGS="$CFLAGS" |
| 1454 | fi |
| 1455 | |
| 1456 | CXXFLAGS="$CFLAGS $CXXFLAGS" |
| 1457 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1458 | ac_ext=c |
| 1459 | ac_cpp='$CPP $CPPFLAGS' |
| 1460 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1461 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1462 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1463 | if test -n "$ac_tool_prefix"; then |
| 1464 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1465 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1466 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1467 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1468 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1469 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1470 | else |
| 1471 | if test -n "$CC"; then |
| 1472 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1473 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1474 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1475 | for as_dir in $PATH |
| 1476 | do |
| 1477 | IFS=$as_save_IFS |
| 1478 | test -z "$as_dir" && as_dir=. |
| 1479 | for ac_exec_ext in '' $ac_executable_extensions; do |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1480 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1481 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1482 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1483 | break 2 |
| 1484 | fi |
| 1485 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1486 | done |
| 1487 | |
| 1488 | fi |
| 1489 | fi |
| 1490 | CC=$ac_cv_prog_CC |
| 1491 | if test -n "$CC"; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1492 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1493 | echo "${ECHO_T}$CC" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1494 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1495 | echo "$as_me:$LINENO: result: no" >&5 |
| 1496 | echo "${ECHO_T}no" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1497 | fi |
| 1498 | |
| 1499 | fi |
| 1500 | if test -z "$ac_cv_prog_CC"; then |
| 1501 | ac_ct_CC=$CC |
| 1502 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1503 | set dummy gcc; ac_word=$2 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1504 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1505 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1506 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1507 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1508 | else |
| 1509 | if test -n "$ac_ct_CC"; then |
| 1510 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1511 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1512 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1513 | for as_dir in $PATH |
| 1514 | do |
| 1515 | IFS=$as_save_IFS |
| 1516 | test -z "$as_dir" && as_dir=. |
| 1517 | for ac_exec_ext in '' $ac_executable_extensions; do |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1518 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1519 | ac_cv_prog_ac_ct_CC="gcc" |
| 1520 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1521 | break 2 |
| 1522 | fi |
| 1523 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1524 | done |
| 1525 | |
| 1526 | fi |
| 1527 | fi |
| 1528 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1529 | if test -n "$ac_ct_CC"; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1530 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1531 | echo "${ECHO_T}$ac_ct_CC" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1532 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1533 | echo "$as_me:$LINENO: result: no" >&5 |
| 1534 | echo "${ECHO_T}no" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1535 | fi |
| 1536 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1537 | CC=$ac_ct_CC |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1538 | else |
| 1539 | CC="$ac_cv_prog_CC" |
| 1540 | fi |
| 1541 | |
| 1542 | if test -z "$CC"; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1543 | if test -n "$ac_tool_prefix"; then |
| 1544 | # 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] | 1545 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1546 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1547 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1548 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1549 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1550 | else |
| 1551 | if test -n "$CC"; then |
| 1552 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1553 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1554 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1555 | for as_dir in $PATH |
| 1556 | do |
| 1557 | IFS=$as_save_IFS |
| 1558 | test -z "$as_dir" && as_dir=. |
| 1559 | for ac_exec_ext in '' $ac_executable_extensions; do |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1560 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1561 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1562 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1563 | break 2 |
| 1564 | fi |
| 1565 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1566 | done |
| 1567 | |
| 1568 | fi |
| 1569 | fi |
| 1570 | CC=$ac_cv_prog_CC |
| 1571 | if test -n "$CC"; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1572 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1573 | echo "${ECHO_T}$CC" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1574 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1575 | echo "$as_me:$LINENO: result: no" >&5 |
| 1576 | echo "${ECHO_T}no" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1577 | fi |
| 1578 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1579 | fi |
| 1580 | if test -z "$ac_cv_prog_CC"; then |
| 1581 | ac_ct_CC=$CC |
| 1582 | # Extract the first word of "cc", so it can be a program name with args. |
| 1583 | set dummy cc; ac_word=$2 |
| 1584 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1585 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1586 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1587 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1588 | else |
| 1589 | if test -n "$ac_ct_CC"; then |
| 1590 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1591 | else |
| 1592 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1593 | for as_dir in $PATH |
| 1594 | do |
| 1595 | IFS=$as_save_IFS |
| 1596 | test -z "$as_dir" && as_dir=. |
| 1597 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1598 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1599 | ac_cv_prog_ac_ct_CC="cc" |
| 1600 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1601 | break 2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1602 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1603 | done |
| 1604 | done |
| 1605 | |
| 1606 | fi |
| 1607 | fi |
| 1608 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1609 | if test -n "$ac_ct_CC"; then |
| 1610 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1611 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1612 | else |
| 1613 | echo "$as_me:$LINENO: result: no" >&5 |
| 1614 | echo "${ECHO_T}no" >&6 |
| 1615 | fi |
| 1616 | |
| 1617 | CC=$ac_ct_CC |
| 1618 | else |
| 1619 | CC="$ac_cv_prog_CC" |
| 1620 | fi |
| 1621 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1622 | fi |
| 1623 | if test -z "$CC"; then |
| 1624 | # Extract the first word of "cc", so it can be a program name with args. |
| 1625 | set dummy cc; ac_word=$2 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1626 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1627 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1628 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1629 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1630 | else |
| 1631 | if test -n "$CC"; then |
| 1632 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1633 | else |
| 1634 | ac_prog_rejected=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1635 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1636 | for as_dir in $PATH |
| 1637 | do |
| 1638 | IFS=$as_save_IFS |
| 1639 | test -z "$as_dir" && as_dir=. |
| 1640 | for ac_exec_ext in '' $ac_executable_extensions; do |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1641 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1642 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1643 | ac_prog_rejected=yes |
| 1644 | continue |
| 1645 | fi |
| 1646 | ac_cv_prog_CC="cc" |
| 1647 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1648 | break 2 |
| 1649 | fi |
| 1650 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1651 | done |
| 1652 | |
| 1653 | if test $ac_prog_rejected = yes; then |
| 1654 | # We found a bogon in the path, so make sure we never use it. |
| 1655 | set dummy $ac_cv_prog_CC |
| 1656 | shift |
| 1657 | if test $# != 0; then |
| 1658 | # We chose a different compiler from the bogus one. |
| 1659 | # However, it has the same basename, so the bogon will be chosen |
| 1660 | # first if we set CC to just the basename; use the full file name. |
| 1661 | shift |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1662 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1663 | fi |
| 1664 | fi |
| 1665 | fi |
| 1666 | fi |
| 1667 | CC=$ac_cv_prog_CC |
| 1668 | if test -n "$CC"; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1669 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1670 | echo "${ECHO_T}$CC" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1671 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1672 | echo "$as_me:$LINENO: result: no" >&5 |
| 1673 | echo "${ECHO_T}no" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1674 | fi |
| 1675 | |
| 1676 | fi |
| 1677 | if test -z "$CC"; then |
| 1678 | if test -n "$ac_tool_prefix"; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1679 | for ac_prog in cl |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1680 | do |
| 1681 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1682 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1683 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1684 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1685 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1686 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1687 | else |
| 1688 | if test -n "$CC"; then |
| 1689 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1690 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1691 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1692 | for as_dir in $PATH |
| 1693 | do |
| 1694 | IFS=$as_save_IFS |
| 1695 | test -z "$as_dir" && as_dir=. |
| 1696 | for ac_exec_ext in '' $ac_executable_extensions; do |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1697 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1698 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1699 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1700 | break 2 |
| 1701 | fi |
| 1702 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1703 | done |
| 1704 | |
| 1705 | fi |
| 1706 | fi |
| 1707 | CC=$ac_cv_prog_CC |
| 1708 | if test -n "$CC"; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1709 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1710 | echo "${ECHO_T}$CC" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1711 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1712 | echo "$as_me:$LINENO: result: no" >&5 |
| 1713 | echo "${ECHO_T}no" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1714 | fi |
| 1715 | |
| 1716 | test -n "$CC" && break |
| 1717 | done |
| 1718 | fi |
| 1719 | if test -z "$CC"; then |
| 1720 | ac_ct_CC=$CC |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1721 | for ac_prog in cl |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1722 | do |
| 1723 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1724 | set dummy $ac_prog; ac_word=$2 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1725 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1726 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1727 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1728 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1729 | else |
| 1730 | if test -n "$ac_ct_CC"; then |
| 1731 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1732 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1733 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1734 | for as_dir in $PATH |
| 1735 | do |
| 1736 | IFS=$as_save_IFS |
| 1737 | test -z "$as_dir" && as_dir=. |
| 1738 | for ac_exec_ext in '' $ac_executable_extensions; do |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1739 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1740 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 1741 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1742 | break 2 |
| 1743 | fi |
| 1744 | done |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1745 | done |
| 1746 | |
| 1747 | fi |
| 1748 | fi |
| 1749 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1750 | if test -n "$ac_ct_CC"; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1751 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1752 | echo "${ECHO_T}$ac_ct_CC" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1753 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1754 | echo "$as_me:$LINENO: result: no" >&5 |
| 1755 | echo "${ECHO_T}no" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1756 | fi |
| 1757 | |
| 1758 | test -n "$ac_ct_CC" && break |
| 1759 | done |
| 1760 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1761 | CC=$ac_ct_CC |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1762 | fi |
| 1763 | |
| 1764 | fi |
| 1765 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1766 | |
| 1767 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 1768 | See \`config.log' for more details." >&5 |
| 1769 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 1770 | See \`config.log' for more details." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1771 | { (exit 1); exit 1; }; } |
| 1772 | |
| 1773 | # Provide some information about the compiler. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1774 | echo "$as_me:$LINENO:" \ |
| 1775 | "checking for C compiler version" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1776 | ac_compiler=`set X $ac_compile; echo $2` |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1777 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 1778 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1779 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1781 | (exit $ac_status); } |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1782 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 1783 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1784 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1786 | (exit $ac_status); } |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1787 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 1788 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1789 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1791 | (exit $ac_status); } |
| 1792 | |
| 1793 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1794 | /* confdefs.h. */ |
| 1795 | _ACEOF |
| 1796 | cat confdefs.h >>conftest.$ac_ext |
| 1797 | cat >>conftest.$ac_ext <<_ACEOF |
| 1798 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1799 | |
| 1800 | int |
| 1801 | main () |
| 1802 | { |
| 1803 | |
| 1804 | ; |
| 1805 | return 0; |
| 1806 | } |
| 1807 | _ACEOF |
| 1808 | ac_clean_files_save=$ac_clean_files |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1809 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1810 | # Try to create an executable without -o first, disregard a.out. |
| 1811 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1812 | # of exeext. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1813 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 1814 | 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] | 1815 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1816 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1817 | (eval $ac_link_default) 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1818 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1820 | (exit $ac_status); }; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1821 | # Find the output, starting from the most likely. This scheme is |
| 1822 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1823 | # resort. |
| 1824 | |
| 1825 | # Be careful to initialize this variable, since it used to be cached. |
| 1826 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1827 | ac_cv_exeext= |
| 1828 | # b.out is created by i960 compilers. |
| 1829 | 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] | 1830 | do |
| 1831 | test -f "$ac_file" || continue |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1832 | case $ac_file in |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1833 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
| 1834 | ;; |
| 1835 | conftest.$ac_ext ) |
| 1836 | # This is the source file. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1837 | ;; |
| 1838 | [ab].out ) |
| 1839 | # We found the default executable, but exeext='' is most |
| 1840 | # certainly right. |
| 1841 | break;; |
| 1842 | *.* ) |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1843 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1844 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 1845 | # but it would be cool to find out if it's true. Does anybody |
| 1846 | # maintain Libtool? --akim. |
| 1847 | export ac_cv_exeext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1848 | break;; |
| 1849 | * ) |
| 1850 | break;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1851 | esac |
| 1852 | done |
| 1853 | else |
| 1854 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1855 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1856 | |
| 1857 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 1858 | See \`config.log' for more details." >&5 |
| 1859 | echo "$as_me: error: C compiler cannot create executables |
| 1860 | See \`config.log' for more details." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1861 | { (exit 77); exit 77; }; } |
| 1862 | fi |
| 1863 | |
| 1864 | ac_exeext=$ac_cv_exeext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1865 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 1866 | echo "${ECHO_T}$ac_file" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1867 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1868 | # Check the compiler produces executables we can run. If not, either |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1869 | # the compiler is broken, or we cross compile. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1870 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 1871 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1872 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1873 | # If not cross compiling, check that we can run a simple program. |
| 1874 | if test "$cross_compiling" != yes; then |
| 1875 | if { ac_try='./$ac_file' |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1877 | (eval $ac_try) 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1878 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1880 | (exit $ac_status); }; }; then |
| 1881 | cross_compiling=no |
| 1882 | else |
| 1883 | if test "$cross_compiling" = maybe; then |
| 1884 | cross_compiling=yes |
| 1885 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1886 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 1887 | If you meant to cross compile, use \`--host'. |
| 1888 | See \`config.log' for more details." >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1889 | echo "$as_me: error: cannot run C compiled programs. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1890 | If you meant to cross compile, use \`--host'. |
| 1891 | See \`config.log' for more details." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1892 | { (exit 1); exit 1; }; } |
| 1893 | fi |
| 1894 | fi |
| 1895 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1896 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1897 | echo "${ECHO_T}yes" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1898 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1899 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1900 | ac_clean_files=$ac_clean_files_save |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1901 | # Check the compiler produces executables we can run. If not, either |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1902 | # the compiler is broken, or we cross compile. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1903 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 1904 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 1905 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 1906 | echo "${ECHO_T}$cross_compiling" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1907 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1908 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1909 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1910 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 1911 | (eval $ac_link) 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1912 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1914 | (exit $ac_status); }; then |
| 1915 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1916 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1917 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1918 | # `rm'. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1919 | for ac_file in conftest.exe conftest conftest.*; do |
| 1920 | test -f "$ac_file" || continue |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1921 | case $ac_file in |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1922 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1923 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1924 | export ac_cv_exeext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1925 | break;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1926 | * ) break;; |
| 1927 | esac |
| 1928 | done |
| 1929 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1930 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 1931 | See \`config.log' for more details." >&5 |
| 1932 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 1933 | See \`config.log' for more details." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1934 | { (exit 1); exit 1; }; } |
| 1935 | fi |
| 1936 | |
| 1937 | rm -f conftest$ac_cv_exeext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1938 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 1939 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1940 | |
| 1941 | rm -f conftest.$ac_ext |
| 1942 | EXEEXT=$ac_cv_exeext |
| 1943 | ac_exeext=$EXEEXT |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1944 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 1945 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1946 | if test "${ac_cv_objext+set}" = set; then |
| 1947 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1948 | else |
| 1949 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1950 | /* confdefs.h. */ |
| 1951 | _ACEOF |
| 1952 | cat confdefs.h >>conftest.$ac_ext |
| 1953 | cat >>conftest.$ac_ext <<_ACEOF |
| 1954 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1955 | |
| 1956 | int |
| 1957 | main () |
| 1958 | { |
| 1959 | |
| 1960 | ; |
| 1961 | return 0; |
| 1962 | } |
| 1963 | _ACEOF |
| 1964 | rm -f conftest.o conftest.obj |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1965 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 1966 | (eval $ac_compile) 2>&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1967 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1969 | (exit $ac_status); }; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1970 | 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] | 1971 | case $ac_file in |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1972 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1973 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 1974 | break;; |
| 1975 | esac |
| 1976 | done |
| 1977 | else |
| 1978 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 1979 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1980 | |
| 1981 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 1982 | See \`config.log' for more details." >&5 |
| 1983 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 1984 | See \`config.log' for more details." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1985 | { (exit 1); exit 1; }; } |
| 1986 | fi |
| 1987 | |
| 1988 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 1989 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1990 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 1991 | echo "${ECHO_T}$ac_cv_objext" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 1992 | OBJEXT=$ac_cv_objext |
| 1993 | ac_objext=$OBJEXT |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 1994 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 1995 | 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] | 1996 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 1997 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1998 | else |
| 1999 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2000 | /* confdefs.h. */ |
| 2001 | _ACEOF |
| 2002 | cat confdefs.h >>conftest.$ac_ext |
| 2003 | cat >>conftest.$ac_ext <<_ACEOF |
| 2004 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2005 | |
| 2006 | int |
| 2007 | main () |
| 2008 | { |
| 2009 | #ifndef __GNUC__ |
| 2010 | choke me |
| 2011 | #endif |
| 2012 | |
| 2013 | ; |
| 2014 | return 0; |
| 2015 | } |
| 2016 | _ACEOF |
| 2017 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2018 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2019 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2020 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2021 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2022 | rm -f conftest.er1 |
| 2023 | cat conftest.err >&5 |
| 2024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2025 | (exit $ac_status); } && |
| 2026 | { ac_try='test -z "$ac_c_werror_flag" |
| 2027 | || test ! -s conftest.err' |
| 2028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2029 | (eval $ac_try) 2>&5 |
| 2030 | ac_status=$? |
| 2031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2032 | (exit $ac_status); }; } && |
| 2033 | { ac_try='test -s conftest.$ac_objext' |
| 2034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2035 | (eval $ac_try) 2>&5 |
| 2036 | ac_status=$? |
| 2037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2038 | (exit $ac_status); }; }; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2039 | ac_compiler_gnu=yes |
| 2040 | else |
| 2041 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2042 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2043 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2044 | ac_compiler_gnu=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2045 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2046 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2047 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2048 | |
| 2049 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2050 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2051 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2052 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2053 | ac_test_CFLAGS=${CFLAGS+set} |
| 2054 | ac_save_CFLAGS=$CFLAGS |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2055 | CFLAGS="-g" |
| 2056 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2057 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2058 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2059 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2060 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2061 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2062 | /* confdefs.h. */ |
| 2063 | _ACEOF |
| 2064 | cat confdefs.h >>conftest.$ac_ext |
| 2065 | cat >>conftest.$ac_ext <<_ACEOF |
| 2066 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2067 | |
| 2068 | int |
| 2069 | main () |
| 2070 | { |
| 2071 | |
| 2072 | ; |
| 2073 | return 0; |
| 2074 | } |
| 2075 | _ACEOF |
| 2076 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2077 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2078 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2079 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2080 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2081 | rm -f conftest.er1 |
| 2082 | cat conftest.err >&5 |
| 2083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2084 | (exit $ac_status); } && |
| 2085 | { ac_try='test -z "$ac_c_werror_flag" |
| 2086 | || test ! -s conftest.err' |
| 2087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2088 | (eval $ac_try) 2>&5 |
| 2089 | ac_status=$? |
| 2090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2091 | (exit $ac_status); }; } && |
| 2092 | { ac_try='test -s conftest.$ac_objext' |
| 2093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2094 | (eval $ac_try) 2>&5 |
| 2095 | ac_status=$? |
| 2096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2097 | (exit $ac_status); }; }; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2098 | ac_cv_prog_cc_g=yes |
| 2099 | else |
| 2100 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2101 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2102 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2103 | ac_cv_prog_cc_g=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2104 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2105 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
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 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2108 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2109 | if test "$ac_test_CFLAGS" = set; then |
| 2110 | CFLAGS=$ac_save_CFLAGS |
| 2111 | elif test $ac_cv_prog_cc_g = yes; then |
| 2112 | if test "$GCC" = yes; then |
| 2113 | CFLAGS="-g -O2" |
| 2114 | else |
| 2115 | CFLAGS="-g" |
| 2116 | fi |
| 2117 | else |
| 2118 | if test "$GCC" = yes; then |
| 2119 | CFLAGS="-O2" |
| 2120 | else |
| 2121 | CFLAGS= |
| 2122 | fi |
| 2123 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2124 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2125 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2126 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2127 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2128 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2129 | ac_cv_prog_cc_stdc=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2130 | ac_save_CC=$CC |
| 2131 | cat >conftest.$ac_ext <<_ACEOF |
| 2132 | /* confdefs.h. */ |
| 2133 | _ACEOF |
| 2134 | cat confdefs.h >>conftest.$ac_ext |
| 2135 | cat >>conftest.$ac_ext <<_ACEOF |
| 2136 | /* end confdefs.h. */ |
| 2137 | #include <stdarg.h> |
| 2138 | #include <stdio.h> |
| 2139 | #include <sys/types.h> |
| 2140 | #include <sys/stat.h> |
| 2141 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2142 | struct buf { int x; }; |
| 2143 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2144 | static char *e (p, i) |
| 2145 | char **p; |
| 2146 | int i; |
| 2147 | { |
| 2148 | return p[i]; |
| 2149 | } |
| 2150 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2151 | { |
| 2152 | char *s; |
| 2153 | va_list v; |
| 2154 | va_start (v,p); |
| 2155 | s = g (p, va_arg (v,int)); |
| 2156 | va_end (v); |
| 2157 | return s; |
| 2158 | } |
| 2159 | |
| 2160 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2161 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2162 | These don't provoke an error unfortunately, instead are silently treated |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2163 | 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] | 2164 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2165 | 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^] | 2166 | that's true only with -std1. */ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2167 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2168 | |
| 2169 | int test (int i, double x); |
| 2170 | struct s1 {int (*f) (int a);}; |
| 2171 | struct s2 {int (*f) (double a);}; |
| 2172 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2173 | int argc; |
| 2174 | char **argv; |
| 2175 | int |
| 2176 | main () |
| 2177 | { |
| 2178 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2179 | ; |
| 2180 | return 0; |
| 2181 | } |
| 2182 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2183 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2184 | # breaks some systems' header files. |
| 2185 | # AIX -qlanglvl=ansi |
| 2186 | # Ultrix and OSF/1 -std1 |
| 2187 | # HP-UX 10.20 and later -Ae |
| 2188 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2189 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2190 | 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] | 2191 | do |
| 2192 | CC="$ac_save_CC $ac_arg" |
| 2193 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2194 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2195 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2196 | ac_status=$? |
| 2197 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2198 | rm -f conftest.er1 |
| 2199 | cat conftest.err >&5 |
| 2200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2201 | (exit $ac_status); } && |
| 2202 | { ac_try='test -z "$ac_c_werror_flag" |
| 2203 | || test ! -s conftest.err' |
| 2204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2205 | (eval $ac_try) 2>&5 |
| 2206 | ac_status=$? |
| 2207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2208 | (exit $ac_status); }; } && |
| 2209 | { ac_try='test -s conftest.$ac_objext' |
| 2210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2211 | (eval $ac_try) 2>&5 |
| 2212 | ac_status=$? |
| 2213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2214 | (exit $ac_status); }; }; then |
| 2215 | ac_cv_prog_cc_stdc=$ac_arg |
| 2216 | break |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2217 | else |
| 2218 | echo "$as_me: failed program was:" >&5 |
| 2219 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2220 | |
| 2221 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2222 | rm -f conftest.err conftest.$ac_objext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2223 | done |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2224 | rm -f conftest.$ac_ext conftest.$ac_objext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2225 | CC=$ac_save_CC |
| 2226 | |
| 2227 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2228 | |
| 2229 | case "x$ac_cv_prog_cc_stdc" in |
| 2230 | x|xno) |
| 2231 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2232 | echo "${ECHO_T}none needed" >&6 ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2233 | *) |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2234 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2235 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2236 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2237 | esac |
| 2238 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2239 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2240 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2241 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2242 | # the declaration of exit, since it's the most demanding environment. |
| 2243 | cat >conftest.$ac_ext <<_ACEOF |
| 2244 | #ifndef __cplusplus |
| 2245 | choke me |
| 2246 | #endif |
| 2247 | _ACEOF |
| 2248 | rm -f conftest.$ac_objext |
| 2249 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2250 | (eval $ac_compile) 2>conftest.er1 |
| 2251 | ac_status=$? |
| 2252 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2253 | rm -f conftest.er1 |
| 2254 | cat conftest.err >&5 |
| 2255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2256 | (exit $ac_status); } && |
| 2257 | { ac_try='test -z "$ac_c_werror_flag" |
| 2258 | || test ! -s conftest.err' |
| 2259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2260 | (eval $ac_try) 2>&5 |
| 2261 | ac_status=$? |
| 2262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2263 | (exit $ac_status); }; } && |
| 2264 | { ac_try='test -s conftest.$ac_objext' |
| 2265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2266 | (eval $ac_try) 2>&5 |
| 2267 | ac_status=$? |
| 2268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2269 | (exit $ac_status); }; }; then |
| 2270 | for ac_declaration in \ |
| 2271 | '' \ |
| 2272 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2273 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2274 | 'extern "C" void exit (int) throw ();' \ |
| 2275 | 'extern "C" void exit (int);' \ |
| 2276 | 'void exit (int);' |
| 2277 | do |
| 2278 | cat >conftest.$ac_ext <<_ACEOF |
| 2279 | /* confdefs.h. */ |
| 2280 | _ACEOF |
| 2281 | cat confdefs.h >>conftest.$ac_ext |
| 2282 | cat >>conftest.$ac_ext <<_ACEOF |
| 2283 | /* end confdefs.h. */ |
| 2284 | $ac_declaration |
| 2285 | #include <stdlib.h> |
| 2286 | int |
| 2287 | main () |
| 2288 | { |
| 2289 | exit (42); |
| 2290 | ; |
| 2291 | return 0; |
| 2292 | } |
| 2293 | _ACEOF |
| 2294 | rm -f conftest.$ac_objext |
| 2295 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2296 | (eval $ac_compile) 2>conftest.er1 |
| 2297 | ac_status=$? |
| 2298 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2299 | rm -f conftest.er1 |
| 2300 | cat conftest.err >&5 |
| 2301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2302 | (exit $ac_status); } && |
| 2303 | { ac_try='test -z "$ac_c_werror_flag" |
| 2304 | || test ! -s conftest.err' |
| 2305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2306 | (eval $ac_try) 2>&5 |
| 2307 | ac_status=$? |
| 2308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2309 | (exit $ac_status); }; } && |
| 2310 | { ac_try='test -s conftest.$ac_objext' |
| 2311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2312 | (eval $ac_try) 2>&5 |
| 2313 | ac_status=$? |
| 2314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2315 | (exit $ac_status); }; }; then |
| 2316 | : |
| 2317 | else |
| 2318 | echo "$as_me: failed program was:" >&5 |
| 2319 | sed 's/^/| /' conftest.$ac_ext >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2320 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2321 | continue |
| 2322 | fi |
| 2323 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2324 | cat >conftest.$ac_ext <<_ACEOF |
| 2325 | /* confdefs.h. */ |
| 2326 | _ACEOF |
| 2327 | cat confdefs.h >>conftest.$ac_ext |
| 2328 | cat >>conftest.$ac_ext <<_ACEOF |
| 2329 | /* end confdefs.h. */ |
| 2330 | $ac_declaration |
| 2331 | int |
| 2332 | main () |
| 2333 | { |
| 2334 | exit (42); |
| 2335 | ; |
| 2336 | return 0; |
| 2337 | } |
| 2338 | _ACEOF |
| 2339 | rm -f conftest.$ac_objext |
| 2340 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2341 | (eval $ac_compile) 2>conftest.er1 |
| 2342 | ac_status=$? |
| 2343 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2344 | rm -f conftest.er1 |
| 2345 | cat conftest.err >&5 |
| 2346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2347 | (exit $ac_status); } && |
| 2348 | { ac_try='test -z "$ac_c_werror_flag" |
| 2349 | || test ! -s conftest.err' |
| 2350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2351 | (eval $ac_try) 2>&5 |
| 2352 | ac_status=$? |
| 2353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2354 | (exit $ac_status); }; } && |
| 2355 | { ac_try='test -s conftest.$ac_objext' |
| 2356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2357 | (eval $ac_try) 2>&5 |
| 2358 | ac_status=$? |
| 2359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2360 | (exit $ac_status); }; }; then |
| 2361 | break |
| 2362 | else |
| 2363 | echo "$as_me: failed program was:" >&5 |
| 2364 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2365 | |
| 2366 | fi |
| 2367 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2368 | done |
| 2369 | rm -f conftest* |
| 2370 | if test -n "$ac_declaration"; then |
| 2371 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2372 | echo $ac_declaration >>confdefs.h |
| 2373 | echo '#endif' >>confdefs.h |
| 2374 | fi |
| 2375 | |
| 2376 | else |
| 2377 | echo "$as_me: failed program was:" >&5 |
| 2378 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2379 | |
| 2380 | fi |
| 2381 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2382 | ac_ext=c |
| 2383 | ac_cpp='$CPP $CPPFLAGS' |
| 2384 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2385 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2386 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2387 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2388 | ac_ext=cc |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2389 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 2390 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2391 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2392 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2393 | if test -n "$ac_tool_prefix"; then |
| 2394 | 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] | 2395 | do |
| 2396 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2397 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2398 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2399 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2400 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 2401 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2402 | else |
| 2403 | if test -n "$CXX"; then |
| 2404 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 2405 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2406 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2407 | for as_dir in $PATH |
| 2408 | do |
| 2409 | IFS=$as_save_IFS |
| 2410 | test -z "$as_dir" && as_dir=. |
| 2411 | for ac_exec_ext in '' $ac_executable_extensions; do |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2412 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2413 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 2414 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2415 | break 2 |
| 2416 | fi |
| 2417 | done |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2418 | done |
| 2419 | |
| 2420 | fi |
| 2421 | fi |
| 2422 | CXX=$ac_cv_prog_CXX |
| 2423 | if test -n "$CXX"; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2424 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 2425 | echo "${ECHO_T}$CXX" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2426 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2427 | echo "$as_me:$LINENO: result: no" >&5 |
| 2428 | echo "${ECHO_T}no" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2429 | fi |
| 2430 | |
| 2431 | test -n "$CXX" && break |
| 2432 | done |
| 2433 | fi |
| 2434 | if test -z "$CXX"; then |
| 2435 | ac_ct_CXX=$CXX |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2436 | 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] | 2437 | do |
| 2438 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2439 | set dummy $ac_prog; ac_word=$2 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2440 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2441 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2442 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 2443 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2444 | else |
| 2445 | if test -n "$ac_ct_CXX"; then |
| 2446 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 2447 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2448 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2449 | for as_dir in $PATH |
| 2450 | do |
| 2451 | IFS=$as_save_IFS |
| 2452 | test -z "$as_dir" && as_dir=. |
| 2453 | for ac_exec_ext in '' $ac_executable_extensions; do |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2454 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2455 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 2456 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2457 | break 2 |
| 2458 | fi |
| 2459 | done |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2460 | done |
| 2461 | |
| 2462 | fi |
| 2463 | fi |
| 2464 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 2465 | if test -n "$ac_ct_CXX"; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2466 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 2467 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2468 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2469 | echo "$as_me:$LINENO: result: no" >&5 |
| 2470 | echo "${ECHO_T}no" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2471 | fi |
| 2472 | |
| 2473 | test -n "$ac_ct_CXX" && break |
| 2474 | done |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2475 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2476 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2477 | CXX=$ac_ct_CXX |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2478 | fi |
| 2479 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2480 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2481 | # Provide some information about the compiler. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2482 | echo "$as_me:$LINENO:" \ |
| 2483 | "checking for C++ compiler version" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2484 | ac_compiler=`set X $ac_compile; echo $2` |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2485 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 2486 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2487 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2489 | (exit $ac_status); } |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2490 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 2491 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2492 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2494 | (exit $ac_status); } |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2495 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2496 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2497 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2499 | (exit $ac_status); } |
| 2500 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2501 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 2502 | 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] | 2503 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 2504 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2505 | else |
| 2506 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2507 | /* confdefs.h. */ |
| 2508 | _ACEOF |
| 2509 | cat confdefs.h >>conftest.$ac_ext |
| 2510 | cat >>conftest.$ac_ext <<_ACEOF |
| 2511 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2512 | |
| 2513 | int |
| 2514 | main () |
| 2515 | { |
| 2516 | #ifndef __GNUC__ |
| 2517 | choke me |
| 2518 | #endif |
| 2519 | |
| 2520 | ; |
| 2521 | return 0; |
| 2522 | } |
| 2523 | _ACEOF |
| 2524 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2525 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2526 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2527 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2528 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2529 | rm -f conftest.er1 |
| 2530 | cat conftest.err >&5 |
| 2531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2532 | (exit $ac_status); } && |
| 2533 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 2534 | || test ! -s conftest.err' |
| 2535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2536 | (eval $ac_try) 2>&5 |
| 2537 | ac_status=$? |
| 2538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2539 | (exit $ac_status); }; } && |
| 2540 | { ac_try='test -s conftest.$ac_objext' |
| 2541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2542 | (eval $ac_try) 2>&5 |
| 2543 | ac_status=$? |
| 2544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2545 | (exit $ac_status); }; }; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2546 | ac_compiler_gnu=yes |
| 2547 | else |
| 2548 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2549 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2550 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2551 | ac_compiler_gnu=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2552 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2553 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2554 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 2555 | |
| 2556 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2557 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 2558 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2559 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 2560 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 2561 | ac_save_CXXFLAGS=$CXXFLAGS |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2562 | CXXFLAGS="-g" |
| 2563 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 2564 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2565 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 2566 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2567 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2568 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2569 | /* confdefs.h. */ |
| 2570 | _ACEOF |
| 2571 | cat confdefs.h >>conftest.$ac_ext |
| 2572 | cat >>conftest.$ac_ext <<_ACEOF |
| 2573 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2574 | |
| 2575 | int |
| 2576 | main () |
| 2577 | { |
| 2578 | |
| 2579 | ; |
| 2580 | return 0; |
| 2581 | } |
| 2582 | _ACEOF |
| 2583 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2584 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2585 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2586 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2587 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2588 | rm -f conftest.er1 |
| 2589 | cat conftest.err >&5 |
| 2590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2591 | (exit $ac_status); } && |
| 2592 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 2593 | || test ! -s conftest.err' |
| 2594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2595 | (eval $ac_try) 2>&5 |
| 2596 | ac_status=$? |
| 2597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2598 | (exit $ac_status); }; } && |
| 2599 | { ac_try='test -s conftest.$ac_objext' |
| 2600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2601 | (eval $ac_try) 2>&5 |
| 2602 | ac_status=$? |
| 2603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2604 | (exit $ac_status); }; }; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2605 | ac_cv_prog_cxx_g=yes |
| 2606 | else |
| 2607 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2608 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2609 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2610 | ac_cv_prog_cxx_g=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2611 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2612 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
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 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 2615 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2616 | if test "$ac_test_CXXFLAGS" = set; then |
| 2617 | CXXFLAGS=$ac_save_CXXFLAGS |
| 2618 | elif test $ac_cv_prog_cxx_g = yes; then |
| 2619 | if test "$GXX" = yes; then |
| 2620 | CXXFLAGS="-g -O2" |
| 2621 | else |
| 2622 | CXXFLAGS="-g" |
| 2623 | fi |
| 2624 | else |
| 2625 | if test "$GXX" = yes; then |
| 2626 | CXXFLAGS="-O2" |
| 2627 | else |
| 2628 | CXXFLAGS= |
| 2629 | fi |
| 2630 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2631 | for ac_declaration in \ |
| 2632 | '' \ |
| 2633 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2634 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2635 | 'extern "C" void exit (int) throw ();' \ |
| 2636 | 'extern "C" void exit (int);' \ |
| 2637 | 'void exit (int);' |
| 2638 | do |
| 2639 | cat >conftest.$ac_ext <<_ACEOF |
| 2640 | /* confdefs.h. */ |
| 2641 | _ACEOF |
| 2642 | cat confdefs.h >>conftest.$ac_ext |
| 2643 | cat >>conftest.$ac_ext <<_ACEOF |
| 2644 | /* end confdefs.h. */ |
| 2645 | $ac_declaration |
| 2646 | #include <stdlib.h> |
| 2647 | int |
| 2648 | main () |
| 2649 | { |
| 2650 | exit (42); |
| 2651 | ; |
| 2652 | return 0; |
| 2653 | } |
| 2654 | _ACEOF |
| 2655 | rm -f conftest.$ac_objext |
| 2656 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2657 | (eval $ac_compile) 2>conftest.er1 |
| 2658 | ac_status=$? |
| 2659 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2660 | rm -f conftest.er1 |
| 2661 | cat conftest.err >&5 |
| 2662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2663 | (exit $ac_status); } && |
| 2664 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 2665 | || test ! -s conftest.err' |
| 2666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2667 | (eval $ac_try) 2>&5 |
| 2668 | ac_status=$? |
| 2669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2670 | (exit $ac_status); }; } && |
| 2671 | { ac_try='test -s conftest.$ac_objext' |
| 2672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2673 | (eval $ac_try) 2>&5 |
| 2674 | ac_status=$? |
| 2675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2676 | (exit $ac_status); }; }; then |
| 2677 | : |
| 2678 | else |
| 2679 | echo "$as_me: failed program was:" >&5 |
| 2680 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2681 | |
| 2682 | continue |
| 2683 | fi |
| 2684 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2685 | cat >conftest.$ac_ext <<_ACEOF |
| 2686 | /* confdefs.h. */ |
| 2687 | _ACEOF |
| 2688 | cat confdefs.h >>conftest.$ac_ext |
| 2689 | cat >>conftest.$ac_ext <<_ACEOF |
| 2690 | /* end confdefs.h. */ |
| 2691 | $ac_declaration |
| 2692 | int |
| 2693 | main () |
| 2694 | { |
| 2695 | exit (42); |
| 2696 | ; |
| 2697 | return 0; |
| 2698 | } |
| 2699 | _ACEOF |
| 2700 | rm -f conftest.$ac_objext |
| 2701 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2702 | (eval $ac_compile) 2>conftest.er1 |
| 2703 | ac_status=$? |
| 2704 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2705 | rm -f conftest.er1 |
| 2706 | cat conftest.err >&5 |
| 2707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2708 | (exit $ac_status); } && |
| 2709 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 2710 | || test ! -s conftest.err' |
| 2711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2712 | (eval $ac_try) 2>&5 |
| 2713 | ac_status=$? |
| 2714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2715 | (exit $ac_status); }; } && |
| 2716 | { ac_try='test -s conftest.$ac_objext' |
| 2717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2718 | (eval $ac_try) 2>&5 |
| 2719 | ac_status=$? |
| 2720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2721 | (exit $ac_status); }; }; then |
| 2722 | break |
| 2723 | else |
| 2724 | echo "$as_me: failed program was:" >&5 |
| 2725 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2726 | |
| 2727 | fi |
| 2728 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2729 | done |
| 2730 | rm -f conftest* |
| 2731 | if test -n "$ac_declaration"; then |
| 2732 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2733 | echo $ac_declaration >>confdefs.h |
| 2734 | echo '#endif' >>confdefs.h |
| 2735 | fi |
| 2736 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 2737 | ac_ext=c |
| 2738 | ac_cpp='$CPP $CPPFLAGS' |
| 2739 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2740 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2741 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2742 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2743 | ac_ext=c |
| 2744 | ac_cpp='$CPP $CPPFLAGS' |
| 2745 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2746 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2747 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2748 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2749 | |
| 2750 | |
Benny Prijono | 53847a3 | 2007-09-24 16:10:13 +0000 | [diff] [blame] | 2751 | case $target in |
| 2752 | *mingw* | *cygw* | *win32* | *w32* ) |
| 2753 | ac_pjdir=`pwd -W` |
| 2754 | ;; |
| 2755 | *) |
| 2756 | ac_pjdir=`pwd` |
| 2757 | ;; |
| 2758 | esac |
Benny Prijono | 1248311 | 2007-03-12 10:44:38 +0000 | [diff] [blame] | 2759 | |
| 2760 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2761 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2762 | echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 2763 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2764 | if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then |
| 2765 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2766 | else |
| 2767 | ac_check_lib_save_LIBS=$LIBS |
| 2768 | LIBS="-lpthread $LIBS" |
| 2769 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2770 | /* confdefs.h. */ |
| 2771 | _ACEOF |
| 2772 | cat confdefs.h >>conftest.$ac_ext |
| 2773 | cat >>conftest.$ac_ext <<_ACEOF |
| 2774 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2775 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2776 | /* Override any gcc2 internal prototype to avoid an error. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2777 | #ifdef __cplusplus |
| 2778 | extern "C" |
| 2779 | #endif |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2780 | /* We use char because int might match the return type of a gcc2 |
| 2781 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2782 | char pthread_create (); |
| 2783 | int |
| 2784 | main () |
| 2785 | { |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2786 | pthread_create (); |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2787 | ; |
| 2788 | return 0; |
| 2789 | } |
| 2790 | _ACEOF |
| 2791 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2792 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2793 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2794 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2795 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2796 | rm -f conftest.er1 |
| 2797 | cat conftest.err >&5 |
| 2798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2799 | (exit $ac_status); } && |
| 2800 | { ac_try='test -z "$ac_c_werror_flag" |
| 2801 | || test ! -s conftest.err' |
| 2802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2803 | (eval $ac_try) 2>&5 |
| 2804 | ac_status=$? |
| 2805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2806 | (exit $ac_status); }; } && |
| 2807 | { ac_try='test -s conftest$ac_exeext' |
| 2808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2809 | (eval $ac_try) 2>&5 |
| 2810 | ac_status=$? |
| 2811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2812 | (exit $ac_status); }; }; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2813 | ac_cv_lib_pthread_pthread_create=yes |
| 2814 | else |
| 2815 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2816 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2817 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2818 | ac_cv_lib_pthread_pthread_create=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2819 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2820 | rm -f conftest.err conftest.$ac_objext \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2821 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2822 | LIBS=$ac_check_lib_save_LIBS |
| 2823 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2824 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 |
| 2825 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2826 | if test $ac_cv_lib_pthread_pthread_create = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2827 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2828 | #define HAVE_LIBPTHREAD 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2829 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 2830 | |
| 2831 | LIBS="-lpthread $LIBS" |
| 2832 | |
| 2833 | fi |
| 2834 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2835 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2836 | echo "$as_me:$LINENO: checking for puts in -lwsock32" >&5 |
| 2837 | echo $ECHO_N "checking for puts in -lwsock32... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2838 | if test "${ac_cv_lib_wsock32_puts+set}" = set; then |
| 2839 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2840 | else |
| 2841 | ac_check_lib_save_LIBS=$LIBS |
| 2842 | LIBS="-lwsock32 $LIBS" |
| 2843 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2844 | /* confdefs.h. */ |
| 2845 | _ACEOF |
| 2846 | cat confdefs.h >>conftest.$ac_ext |
| 2847 | cat >>conftest.$ac_ext <<_ACEOF |
| 2848 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2849 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2850 | /* Override any gcc2 internal prototype to avoid an error. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2851 | #ifdef __cplusplus |
| 2852 | extern "C" |
| 2853 | #endif |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2854 | /* We use char because int might match the return type of a gcc2 |
| 2855 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2856 | char puts (); |
| 2857 | int |
| 2858 | main () |
| 2859 | { |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2860 | puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2861 | ; |
| 2862 | return 0; |
| 2863 | } |
| 2864 | _ACEOF |
| 2865 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2866 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2867 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2868 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2869 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2870 | rm -f conftest.er1 |
| 2871 | cat conftest.err >&5 |
| 2872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2873 | (exit $ac_status); } && |
| 2874 | { ac_try='test -z "$ac_c_werror_flag" |
| 2875 | || test ! -s conftest.err' |
| 2876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2877 | (eval $ac_try) 2>&5 |
| 2878 | ac_status=$? |
| 2879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2880 | (exit $ac_status); }; } && |
| 2881 | { ac_try='test -s conftest$ac_exeext' |
| 2882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2883 | (eval $ac_try) 2>&5 |
| 2884 | ac_status=$? |
| 2885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2886 | (exit $ac_status); }; }; then |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2887 | ac_cv_lib_wsock32_puts=yes |
| 2888 | else |
| 2889 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2890 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2891 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2892 | ac_cv_lib_wsock32_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2893 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2894 | rm -f conftest.err conftest.$ac_objext \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2895 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2896 | LIBS=$ac_check_lib_save_LIBS |
| 2897 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2898 | echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_puts" >&5 |
| 2899 | echo "${ECHO_T}$ac_cv_lib_wsock32_puts" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2900 | if test $ac_cv_lib_wsock32_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2901 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2902 | #define HAVE_LIBWSOCK32 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2903 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2904 | |
| 2905 | LIBS="-lwsock32 $LIBS" |
| 2906 | |
| 2907 | fi |
| 2908 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2909 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2910 | echo "$as_me:$LINENO: checking for puts in -lws2_32" >&5 |
| 2911 | echo $ECHO_N "checking for puts in -lws2_32... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2912 | if test "${ac_cv_lib_ws2_32_puts+set}" = set; then |
| 2913 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2914 | else |
| 2915 | ac_check_lib_save_LIBS=$LIBS |
| 2916 | LIBS="-lws2_32 $LIBS" |
| 2917 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2918 | /* confdefs.h. */ |
| 2919 | _ACEOF |
| 2920 | cat confdefs.h >>conftest.$ac_ext |
| 2921 | cat >>conftest.$ac_ext <<_ACEOF |
| 2922 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2923 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2924 | /* Override any gcc2 internal prototype to avoid an error. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2925 | #ifdef __cplusplus |
| 2926 | extern "C" |
| 2927 | #endif |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2928 | /* We use char because int might match the return type of a gcc2 |
| 2929 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2930 | char puts (); |
| 2931 | int |
| 2932 | main () |
| 2933 | { |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2934 | puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2935 | ; |
| 2936 | return 0; |
| 2937 | } |
| 2938 | _ACEOF |
| 2939 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2940 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2941 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2942 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2943 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2944 | rm -f conftest.er1 |
| 2945 | cat conftest.err >&5 |
| 2946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2947 | (exit $ac_status); } && |
| 2948 | { ac_try='test -z "$ac_c_werror_flag" |
| 2949 | || test ! -s conftest.err' |
| 2950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2951 | (eval $ac_try) 2>&5 |
| 2952 | ac_status=$? |
| 2953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2954 | (exit $ac_status); }; } && |
| 2955 | { ac_try='test -s conftest$ac_exeext' |
| 2956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2957 | (eval $ac_try) 2>&5 |
| 2958 | ac_status=$? |
| 2959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2960 | (exit $ac_status); }; }; then |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2961 | ac_cv_lib_ws2_32_puts=yes |
| 2962 | else |
| 2963 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2964 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2965 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2966 | ac_cv_lib_ws2_32_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2967 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2968 | rm -f conftest.err conftest.$ac_objext \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2969 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2970 | LIBS=$ac_check_lib_save_LIBS |
| 2971 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2972 | echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_puts" >&5 |
| 2973 | echo "${ECHO_T}$ac_cv_lib_ws2_32_puts" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2974 | if test $ac_cv_lib_ws2_32_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2975 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2976 | #define HAVE_LIBWS2_32 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2977 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2978 | |
| 2979 | LIBS="-lws2_32 $LIBS" |
| 2980 | |
| 2981 | fi |
| 2982 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2983 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2984 | echo "$as_me:$LINENO: checking for puts in -lole32" >&5 |
| 2985 | echo $ECHO_N "checking for puts in -lole32... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2986 | if test "${ac_cv_lib_ole32_puts+set}" = set; then |
| 2987 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2988 | else |
| 2989 | ac_check_lib_save_LIBS=$LIBS |
| 2990 | LIBS="-lole32 $LIBS" |
| 2991 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 2992 | /* confdefs.h. */ |
| 2993 | _ACEOF |
| 2994 | cat confdefs.h >>conftest.$ac_ext |
| 2995 | cat >>conftest.$ac_ext <<_ACEOF |
| 2996 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2997 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 2998 | /* Override any gcc2 internal prototype to avoid an error. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 2999 | #ifdef __cplusplus |
| 3000 | extern "C" |
| 3001 | #endif |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3002 | /* We use char because int might match the return type of a gcc2 |
| 3003 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3004 | char puts (); |
| 3005 | int |
| 3006 | main () |
| 3007 | { |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3008 | puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3009 | ; |
| 3010 | return 0; |
| 3011 | } |
| 3012 | _ACEOF |
| 3013 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3014 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3015 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3016 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3017 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3018 | rm -f conftest.er1 |
| 3019 | cat conftest.err >&5 |
| 3020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3021 | (exit $ac_status); } && |
| 3022 | { ac_try='test -z "$ac_c_werror_flag" |
| 3023 | || test ! -s conftest.err' |
| 3024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3025 | (eval $ac_try) 2>&5 |
| 3026 | ac_status=$? |
| 3027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3028 | (exit $ac_status); }; } && |
| 3029 | { ac_try='test -s conftest$ac_exeext' |
| 3030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3031 | (eval $ac_try) 2>&5 |
| 3032 | ac_status=$? |
| 3033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3034 | (exit $ac_status); }; }; then |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3035 | ac_cv_lib_ole32_puts=yes |
| 3036 | else |
| 3037 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3038 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3039 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3040 | ac_cv_lib_ole32_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3041 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3042 | rm -f conftest.err conftest.$ac_objext \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3043 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3044 | LIBS=$ac_check_lib_save_LIBS |
| 3045 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3046 | echo "$as_me:$LINENO: result: $ac_cv_lib_ole32_puts" >&5 |
| 3047 | echo "${ECHO_T}$ac_cv_lib_ole32_puts" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3048 | if test $ac_cv_lib_ole32_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3049 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3050 | #define HAVE_LIBOLE32 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3051 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3052 | |
| 3053 | LIBS="-lole32 $LIBS" |
| 3054 | |
| 3055 | fi |
| 3056 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3057 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3058 | echo "$as_me:$LINENO: checking for puts in -lwinmm" >&5 |
| 3059 | echo $ECHO_N "checking for puts in -lwinmm... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3060 | if test "${ac_cv_lib_winmm_puts+set}" = set; then |
| 3061 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3062 | else |
| 3063 | ac_check_lib_save_LIBS=$LIBS |
| 3064 | LIBS="-lwinmm $LIBS" |
| 3065 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3066 | /* confdefs.h. */ |
| 3067 | _ACEOF |
| 3068 | cat confdefs.h >>conftest.$ac_ext |
| 3069 | cat >>conftest.$ac_ext <<_ACEOF |
| 3070 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3071 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3072 | /* Override any gcc2 internal prototype to avoid an error. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3073 | #ifdef __cplusplus |
| 3074 | extern "C" |
| 3075 | #endif |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3076 | /* We use char because int might match the return type of a gcc2 |
| 3077 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3078 | char puts (); |
| 3079 | int |
| 3080 | main () |
| 3081 | { |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3082 | puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3083 | ; |
| 3084 | return 0; |
| 3085 | } |
| 3086 | _ACEOF |
| 3087 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3088 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3089 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3090 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3091 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3092 | rm -f conftest.er1 |
| 3093 | cat conftest.err >&5 |
| 3094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3095 | (exit $ac_status); } && |
| 3096 | { ac_try='test -z "$ac_c_werror_flag" |
| 3097 | || test ! -s conftest.err' |
| 3098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3099 | (eval $ac_try) 2>&5 |
| 3100 | ac_status=$? |
| 3101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3102 | (exit $ac_status); }; } && |
| 3103 | { ac_try='test -s conftest$ac_exeext' |
| 3104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3105 | (eval $ac_try) 2>&5 |
| 3106 | ac_status=$? |
| 3107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3108 | (exit $ac_status); }; }; then |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3109 | ac_cv_lib_winmm_puts=yes |
| 3110 | else |
| 3111 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3112 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3113 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3114 | ac_cv_lib_winmm_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3115 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3116 | rm -f conftest.err conftest.$ac_objext \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3117 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3118 | LIBS=$ac_check_lib_save_LIBS |
| 3119 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3120 | echo "$as_me:$LINENO: result: $ac_cv_lib_winmm_puts" >&5 |
| 3121 | echo "${ECHO_T}$ac_cv_lib_winmm_puts" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3122 | if test $ac_cv_lib_winmm_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3123 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3124 | #define HAVE_LIBWINMM 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3125 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3126 | |
| 3127 | LIBS="-lwinmm $LIBS" |
| 3128 | |
| 3129 | fi |
| 3130 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3131 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3132 | echo "$as_me:$LINENO: checking for puts in -lsocket" >&5 |
| 3133 | echo $ECHO_N "checking for puts in -lsocket... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3134 | if test "${ac_cv_lib_socket_puts+set}" = set; then |
| 3135 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3136 | else |
| 3137 | ac_check_lib_save_LIBS=$LIBS |
| 3138 | LIBS="-lsocket $LIBS" |
| 3139 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3140 | /* confdefs.h. */ |
| 3141 | _ACEOF |
| 3142 | cat confdefs.h >>conftest.$ac_ext |
| 3143 | cat >>conftest.$ac_ext <<_ACEOF |
| 3144 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3145 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3146 | /* Override any gcc2 internal prototype to avoid an error. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3147 | #ifdef __cplusplus |
| 3148 | extern "C" |
| 3149 | #endif |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3150 | /* We use char because int might match the return type of a gcc2 |
| 3151 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3152 | char puts (); |
| 3153 | int |
| 3154 | main () |
| 3155 | { |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3156 | puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3157 | ; |
| 3158 | return 0; |
| 3159 | } |
| 3160 | _ACEOF |
| 3161 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3162 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3163 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3164 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3165 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3166 | rm -f conftest.er1 |
| 3167 | cat conftest.err >&5 |
| 3168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3169 | (exit $ac_status); } && |
| 3170 | { ac_try='test -z "$ac_c_werror_flag" |
| 3171 | || test ! -s conftest.err' |
| 3172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3173 | (eval $ac_try) 2>&5 |
| 3174 | ac_status=$? |
| 3175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3176 | (exit $ac_status); }; } && |
| 3177 | { ac_try='test -s conftest$ac_exeext' |
| 3178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3179 | (eval $ac_try) 2>&5 |
| 3180 | ac_status=$? |
| 3181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3182 | (exit $ac_status); }; }; then |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3183 | ac_cv_lib_socket_puts=yes |
| 3184 | else |
| 3185 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3186 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3187 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3188 | ac_cv_lib_socket_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3189 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3190 | rm -f conftest.err conftest.$ac_objext \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3191 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3192 | LIBS=$ac_check_lib_save_LIBS |
| 3193 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3194 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_puts" >&5 |
| 3195 | echo "${ECHO_T}$ac_cv_lib_socket_puts" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3196 | if test $ac_cv_lib_socket_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3197 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3198 | #define HAVE_LIBSOCKET 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3199 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3200 | |
| 3201 | LIBS="-lsocket $LIBS" |
| 3202 | |
| 3203 | fi |
| 3204 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3205 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3206 | echo "$as_me:$LINENO: checking for puts in -lrt" >&5 |
| 3207 | echo $ECHO_N "checking for puts in -lrt... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3208 | if test "${ac_cv_lib_rt_puts+set}" = set; then |
| 3209 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3210 | else |
| 3211 | ac_check_lib_save_LIBS=$LIBS |
| 3212 | LIBS="-lrt $LIBS" |
| 3213 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3214 | /* confdefs.h. */ |
| 3215 | _ACEOF |
| 3216 | cat confdefs.h >>conftest.$ac_ext |
| 3217 | cat >>conftest.$ac_ext <<_ACEOF |
| 3218 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3219 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3220 | /* Override any gcc2 internal prototype to avoid an error. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3221 | #ifdef __cplusplus |
| 3222 | extern "C" |
| 3223 | #endif |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3224 | /* We use char because int might match the return type of a gcc2 |
| 3225 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3226 | char puts (); |
| 3227 | int |
| 3228 | main () |
| 3229 | { |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3230 | puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3231 | ; |
| 3232 | return 0; |
| 3233 | } |
| 3234 | _ACEOF |
| 3235 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3236 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3237 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3238 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3239 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3240 | rm -f conftest.er1 |
| 3241 | cat conftest.err >&5 |
| 3242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3243 | (exit $ac_status); } && |
| 3244 | { ac_try='test -z "$ac_c_werror_flag" |
| 3245 | || test ! -s conftest.err' |
| 3246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3247 | (eval $ac_try) 2>&5 |
| 3248 | ac_status=$? |
| 3249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3250 | (exit $ac_status); }; } && |
| 3251 | { ac_try='test -s conftest$ac_exeext' |
| 3252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3253 | (eval $ac_try) 2>&5 |
| 3254 | ac_status=$? |
| 3255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3256 | (exit $ac_status); }; }; then |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3257 | ac_cv_lib_rt_puts=yes |
| 3258 | else |
| 3259 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3260 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3261 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3262 | ac_cv_lib_rt_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3263 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3264 | rm -f conftest.err conftest.$ac_objext \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3265 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3266 | LIBS=$ac_check_lib_save_LIBS |
| 3267 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3268 | echo "$as_me:$LINENO: result: $ac_cv_lib_rt_puts" >&5 |
| 3269 | echo "${ECHO_T}$ac_cv_lib_rt_puts" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3270 | if test $ac_cv_lib_rt_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3271 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3272 | #define HAVE_LIBRT 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3273 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3274 | |
| 3275 | LIBS="-lrt $LIBS" |
| 3276 | |
| 3277 | fi |
| 3278 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3279 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3280 | echo "$as_me:$LINENO: checking for puts in -lnsl" >&5 |
| 3281 | echo $ECHO_N "checking for puts in -lnsl... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3282 | if test "${ac_cv_lib_nsl_puts+set}" = set; then |
| 3283 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3284 | else |
| 3285 | ac_check_lib_save_LIBS=$LIBS |
| 3286 | LIBS="-lnsl $LIBS" |
| 3287 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3288 | /* confdefs.h. */ |
| 3289 | _ACEOF |
| 3290 | cat confdefs.h >>conftest.$ac_ext |
| 3291 | cat >>conftest.$ac_ext <<_ACEOF |
| 3292 | /* end confdefs.h. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3293 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3294 | /* Override any gcc2 internal prototype to avoid an error. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3295 | #ifdef __cplusplus |
| 3296 | extern "C" |
| 3297 | #endif |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3298 | /* We use char because int might match the return type of a gcc2 |
| 3299 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3300 | char puts (); |
| 3301 | int |
| 3302 | main () |
| 3303 | { |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3304 | puts (); |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3305 | ; |
| 3306 | return 0; |
| 3307 | } |
| 3308 | _ACEOF |
| 3309 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3310 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3311 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3312 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3313 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3314 | rm -f conftest.er1 |
| 3315 | cat conftest.err >&5 |
| 3316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3317 | (exit $ac_status); } && |
| 3318 | { ac_try='test -z "$ac_c_werror_flag" |
| 3319 | || test ! -s conftest.err' |
| 3320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3321 | (eval $ac_try) 2>&5 |
| 3322 | ac_status=$? |
| 3323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3324 | (exit $ac_status); }; } && |
| 3325 | { ac_try='test -s conftest$ac_exeext' |
| 3326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3327 | (eval $ac_try) 2>&5 |
| 3328 | ac_status=$? |
| 3329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3330 | (exit $ac_status); }; }; then |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3331 | ac_cv_lib_nsl_puts=yes |
| 3332 | else |
| 3333 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3334 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3335 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3336 | ac_cv_lib_nsl_puts=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3337 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3338 | rm -f conftest.err conftest.$ac_objext \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3339 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3340 | LIBS=$ac_check_lib_save_LIBS |
| 3341 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3342 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_puts" >&5 |
| 3343 | echo "${ECHO_T}$ac_cv_lib_nsl_puts" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3344 | if test $ac_cv_lib_nsl_puts = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3345 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3346 | #define HAVE_LIBNSL 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3347 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3348 | |
| 3349 | LIBS="-lnsl $LIBS" |
| 3350 | |
| 3351 | fi |
| 3352 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3353 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3354 | echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5 |
| 3355 | echo $ECHO_N "checking for uuid_generate in -luuid... $ECHO_C" >&6 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3356 | if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then |
| 3357 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3358 | else |
| 3359 | ac_check_lib_save_LIBS=$LIBS |
| 3360 | LIBS="-luuid $LIBS" |
| 3361 | cat >conftest.$ac_ext <<_ACEOF |
| 3362 | /* confdefs.h. */ |
| 3363 | _ACEOF |
| 3364 | cat confdefs.h >>conftest.$ac_ext |
| 3365 | cat >>conftest.$ac_ext <<_ACEOF |
| 3366 | /* end confdefs.h. */ |
| 3367 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3368 | /* Override any gcc2 internal prototype to avoid an error. */ |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3369 | #ifdef __cplusplus |
| 3370 | extern "C" |
| 3371 | #endif |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3372 | /* We use char because int might match the return type of a gcc2 |
| 3373 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3374 | char uuid_generate (); |
| 3375 | int |
| 3376 | main () |
| 3377 | { |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3378 | uuid_generate (); |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3379 | ; |
| 3380 | return 0; |
| 3381 | } |
| 3382 | _ACEOF |
| 3383 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3384 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3385 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3386 | ac_status=$? |
| 3387 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3388 | rm -f conftest.er1 |
| 3389 | cat conftest.err >&5 |
| 3390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3391 | (exit $ac_status); } && |
| 3392 | { ac_try='test -z "$ac_c_werror_flag" |
| 3393 | || test ! -s conftest.err' |
| 3394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3395 | (eval $ac_try) 2>&5 |
| 3396 | ac_status=$? |
| 3397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3398 | (exit $ac_status); }; } && |
| 3399 | { ac_try='test -s conftest$ac_exeext' |
| 3400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3401 | (eval $ac_try) 2>&5 |
| 3402 | ac_status=$? |
| 3403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3404 | (exit $ac_status); }; }; then |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3405 | ac_cv_lib_uuid_uuid_generate=yes |
| 3406 | else |
| 3407 | echo "$as_me: failed program was:" >&5 |
| 3408 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3409 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3410 | ac_cv_lib_uuid_uuid_generate=no |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3411 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3412 | rm -f conftest.err conftest.$ac_objext \ |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3413 | conftest$ac_exeext conftest.$ac_ext |
| 3414 | LIBS=$ac_check_lib_save_LIBS |
| 3415 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3416 | echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5 |
| 3417 | echo "${ECHO_T}$ac_cv_lib_uuid_uuid_generate" >&6 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3418 | if test $ac_cv_lib_uuid_uuid_generate = yes; then |
| 3419 | cat >>confdefs.h <<_ACEOF |
| 3420 | #define HAVE_LIBUUID 1 |
| 3421 | _ACEOF |
| 3422 | |
| 3423 | LIBS="-luuid $LIBS" |
| 3424 | |
| 3425 | fi |
| 3426 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3427 | echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5 |
| 3428 | echo $ECHO_N "checking for uuid_generate in -luuid... $ECHO_C" >&6 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3429 | if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then |
| 3430 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3431 | else |
| 3432 | ac_check_lib_save_LIBS=$LIBS |
| 3433 | LIBS="-luuid $LIBS" |
| 3434 | cat >conftest.$ac_ext <<_ACEOF |
| 3435 | /* confdefs.h. */ |
| 3436 | _ACEOF |
| 3437 | cat confdefs.h >>conftest.$ac_ext |
| 3438 | cat >>conftest.$ac_ext <<_ACEOF |
| 3439 | /* end confdefs.h. */ |
| 3440 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3441 | /* Override any gcc2 internal prototype to avoid an error. */ |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3442 | #ifdef __cplusplus |
| 3443 | extern "C" |
| 3444 | #endif |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3445 | /* We use char because int might match the return type of a gcc2 |
| 3446 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3447 | char uuid_generate (); |
| 3448 | int |
| 3449 | main () |
| 3450 | { |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3451 | uuid_generate (); |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3452 | ; |
| 3453 | return 0; |
| 3454 | } |
| 3455 | _ACEOF |
| 3456 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3457 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3458 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3459 | ac_status=$? |
| 3460 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3461 | rm -f conftest.er1 |
| 3462 | cat conftest.err >&5 |
| 3463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3464 | (exit $ac_status); } && |
| 3465 | { ac_try='test -z "$ac_c_werror_flag" |
| 3466 | || test ! -s conftest.err' |
| 3467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3468 | (eval $ac_try) 2>&5 |
| 3469 | ac_status=$? |
| 3470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3471 | (exit $ac_status); }; } && |
| 3472 | { ac_try='test -s conftest$ac_exeext' |
| 3473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3474 | (eval $ac_try) 2>&5 |
| 3475 | ac_status=$? |
| 3476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3477 | (exit $ac_status); }; }; then |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3478 | ac_cv_lib_uuid_uuid_generate=yes |
| 3479 | else |
| 3480 | echo "$as_me: failed program was:" >&5 |
| 3481 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3482 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3483 | ac_cv_lib_uuid_uuid_generate=no |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3484 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3485 | rm -f conftest.err conftest.$ac_objext \ |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3486 | conftest$ac_exeext conftest.$ac_ext |
| 3487 | LIBS=$ac_check_lib_save_LIBS |
| 3488 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3489 | echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5 |
| 3490 | echo "${ECHO_T}$ac_cv_lib_uuid_uuid_generate" >&6 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 3491 | if test $ac_cv_lib_uuid_uuid_generate = yes; then |
| 3492 | ac_has_uuid_lib=1 |
| 3493 | fi |
| 3494 | |
| 3495 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3496 | echo "$as_me:$LINENO: result: Setting PJ_M_NAME to $target_cpu" >&5 |
| 3497 | echo "${ECHO_T}Setting PJ_M_NAME to $target_cpu" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3498 | cat >>confdefs.h <<_ACEOF |
| 3499 | #define PJ_M_NAME "$target_cpu" |
| 3500 | _ACEOF |
| 3501 | |
| 3502 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3503 | echo "$as_me:$LINENO: checking memory alignment" >&5 |
| 3504 | echo $ECHO_N "checking memory alignment... $ECHO_C" >&6 |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3505 | case $target in |
| 3506 | ia64-* | x86_64-* ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3507 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3508 | #define PJ_POOL_ALIGNMENT 8 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3509 | _ACEOF |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3510 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3511 | echo "$as_me:$LINENO: result: 8 bytes" >&5 |
| 3512 | echo "${ECHO_T}8 bytes" >&6 |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3513 | ;; |
| 3514 | * ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3515 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3516 | #define PJ_POOL_ALIGNMENT 4 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3517 | _ACEOF |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3518 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3519 | echo "$as_me:$LINENO: result: 4 bytes (default)" >&5 |
| 3520 | echo "${ECHO_T}4 bytes (default)" >&6 |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 3521 | ;; |
| 3522 | esac |
| 3523 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3524 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3525 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 3526 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3527 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 3528 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3529 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3530 | # See if sys/param.h defines the BYTE_ORDER macro. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3531 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3532 | /* confdefs.h. */ |
| 3533 | _ACEOF |
| 3534 | cat confdefs.h >>conftest.$ac_ext |
| 3535 | cat >>conftest.$ac_ext <<_ACEOF |
| 3536 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3537 | #include <sys/types.h> |
| 3538 | #include <sys/param.h> |
| 3539 | |
| 3540 | int |
| 3541 | main () |
| 3542 | { |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3543 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3544 | bogus endian macros |
| 3545 | #endif |
| 3546 | |
| 3547 | ; |
| 3548 | return 0; |
| 3549 | } |
| 3550 | _ACEOF |
| 3551 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3552 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3553 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3554 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3555 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3556 | rm -f conftest.er1 |
| 3557 | cat conftest.err >&5 |
| 3558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3559 | (exit $ac_status); } && |
| 3560 | { ac_try='test -z "$ac_c_werror_flag" |
| 3561 | || test ! -s conftest.err' |
| 3562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3563 | (eval $ac_try) 2>&5 |
| 3564 | ac_status=$? |
| 3565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3566 | (exit $ac_status); }; } && |
| 3567 | { ac_try='test -s conftest.$ac_objext' |
| 3568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3569 | (eval $ac_try) 2>&5 |
| 3570 | ac_status=$? |
| 3571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3572 | (exit $ac_status); }; }; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3573 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 3574 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3575 | /* confdefs.h. */ |
| 3576 | _ACEOF |
| 3577 | cat confdefs.h >>conftest.$ac_ext |
| 3578 | cat >>conftest.$ac_ext <<_ACEOF |
| 3579 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3580 | #include <sys/types.h> |
| 3581 | #include <sys/param.h> |
| 3582 | |
| 3583 | int |
| 3584 | main () |
| 3585 | { |
| 3586 | #if BYTE_ORDER != BIG_ENDIAN |
| 3587 | not big endian |
| 3588 | #endif |
| 3589 | |
| 3590 | ; |
| 3591 | return 0; |
| 3592 | } |
| 3593 | _ACEOF |
| 3594 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3595 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3596 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3597 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3598 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3599 | rm -f conftest.er1 |
| 3600 | cat conftest.err >&5 |
| 3601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3602 | (exit $ac_status); } && |
| 3603 | { ac_try='test -z "$ac_c_werror_flag" |
| 3604 | || test ! -s conftest.err' |
| 3605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3606 | (eval $ac_try) 2>&5 |
| 3607 | ac_status=$? |
| 3608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3609 | (exit $ac_status); }; } && |
| 3610 | { ac_try='test -s conftest.$ac_objext' |
| 3611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3612 | (eval $ac_try) 2>&5 |
| 3613 | ac_status=$? |
| 3614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3615 | (exit $ac_status); }; }; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3616 | ac_cv_c_bigendian=yes |
| 3617 | else |
| 3618 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3619 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3620 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3621 | ac_cv_c_bigendian=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3622 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3623 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3624 | else |
| 3625 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3626 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3627 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3628 | # It does not; compile a test program. |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3629 | if test "$cross_compiling" = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3630 | # try to guess the endianness by grepping values into an object file |
| 3631 | ac_cv_c_bigendian=unknown |
| 3632 | cat >conftest.$ac_ext <<_ACEOF |
| 3633 | /* confdefs.h. */ |
| 3634 | _ACEOF |
| 3635 | cat confdefs.h >>conftest.$ac_ext |
| 3636 | cat >>conftest.$ac_ext <<_ACEOF |
| 3637 | /* end confdefs.h. */ |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3638 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 3639 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3640 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3641 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 3642 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3643 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 3644 | int |
| 3645 | main () |
| 3646 | { |
| 3647 | _ascii (); _ebcdic (); |
| 3648 | ; |
| 3649 | return 0; |
| 3650 | } |
| 3651 | _ACEOF |
| 3652 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3653 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3654 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3655 | ac_status=$? |
| 3656 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3657 | rm -f conftest.er1 |
| 3658 | cat conftest.err >&5 |
| 3659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3660 | (exit $ac_status); } && |
| 3661 | { ac_try='test -z "$ac_c_werror_flag" |
| 3662 | || test ! -s conftest.err' |
| 3663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3664 | (eval $ac_try) 2>&5 |
| 3665 | ac_status=$? |
| 3666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3667 | (exit $ac_status); }; } && |
| 3668 | { ac_try='test -s conftest.$ac_objext' |
| 3669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3670 | (eval $ac_try) 2>&5 |
| 3671 | ac_status=$? |
| 3672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3673 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3674 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 3675 | ac_cv_c_bigendian=yes |
| 3676 | fi |
| 3677 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 3678 | if test "$ac_cv_c_bigendian" = unknown; then |
| 3679 | ac_cv_c_bigendian=no |
| 3680 | else |
| 3681 | # finding both strings is unlikely to happen, but who knows? |
| 3682 | ac_cv_c_bigendian=unknown |
| 3683 | fi |
| 3684 | fi |
| 3685 | else |
| 3686 | echo "$as_me: failed program was:" >&5 |
| 3687 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3688 | |
| 3689 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3690 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3691 | else |
| 3692 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3693 | /* confdefs.h. */ |
| 3694 | _ACEOF |
| 3695 | cat confdefs.h >>conftest.$ac_ext |
| 3696 | cat >>conftest.$ac_ext <<_ACEOF |
| 3697 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3698 | int |
| 3699 | main () |
| 3700 | { |
| 3701 | /* Are we little or big endian? From Harbison&Steele. */ |
| 3702 | union |
| 3703 | { |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3704 | long l; |
| 3705 | char c[sizeof (long)]; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3706 | } u; |
| 3707 | u.l = 1; |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3708 | exit (u.c[sizeof (long) - 1] == 1); |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3709 | } |
| 3710 | _ACEOF |
| 3711 | rm -f conftest$ac_exeext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3712 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3713 | (eval $ac_link) 2>&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3714 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3716 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3718 | (eval $ac_try) 2>&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3719 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3721 | (exit $ac_status); }; }; then |
| 3722 | ac_cv_c_bigendian=no |
| 3723 | else |
| 3724 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3725 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3726 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3727 | |
| 3728 | ( exit $ac_status ) |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3729 | ac_cv_c_bigendian=yes |
| 3730 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3731 | 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] | 3732 | fi |
| 3733 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3734 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3735 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3736 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 3737 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3738 | case $ac_cv_c_bigendian in |
| 3739 | yes) |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3740 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3741 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 3742 | #define WORDS_BIGENDIAN 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3743 | _ACEOF |
| 3744 | ;; |
| 3745 | no) |
| 3746 | ;; |
| 3747 | *) |
| 3748 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 3749 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 3750 | echo "$as_me: error: unknown endianness |
| 3751 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 3752 | { (exit 1); exit 1; }; } ;; |
| 3753 | esac |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3754 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3755 | |
| 3756 | case $target in |
| 3757 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3758 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3759 | #define PJ_WIN32 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3760 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3761 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3762 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3763 | #define PJ_WIN32_WINNT 0x0400 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3764 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3765 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3766 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3767 | #define WIN32_LEAN_AND_MEAN 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3768 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3769 | |
| 3770 | ;; |
| 3771 | *darwin*) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3772 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3773 | #define PJ_DARWINOS 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3774 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3775 | |
| 3776 | ;; |
| 3777 | *linux*) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3778 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3779 | #define PJ_LINUX 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3780 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3781 | |
| 3782 | ;; |
| 3783 | *rtems*) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3784 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3785 | #define PJ_RTEMS 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3786 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3787 | |
| 3788 | ;; |
| 3789 | *sunos* | *solaris* ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3790 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3791 | #define PJ_SUNOS 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3792 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 3793 | |
| 3794 | ;; |
| 3795 | *) |
| 3796 | ;; |
| 3797 | esac |
| 3798 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3799 | |
| 3800 | |
| 3801 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3802 | # Check whether --enable-floating-point or --disable-floating-point was given. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3803 | if test "${enable_floating_point+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3804 | enableval="$enable_floating_point" |
| 3805 | if test "$enable_floating_point" = "no"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3806 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3807 | #define PJ_HAS_FLOATING_POINT 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3808 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3809 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3810 | echo "$as_me:$LINENO: result: Checking if floating point is disabled... yes" >&5 |
| 3811 | echo "${ECHO_T}Checking if floating point is disabled... yes" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3812 | fi |
| 3813 | else |
| 3814 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3815 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3816 | #define PJ_HAS_FLOATING_POINT 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3817 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3818 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3819 | echo "$as_me:$LINENO: result: Checking if floating point is disabled... no" >&5 |
| 3820 | echo "${ECHO_T}Checking if floating point is disabled... no" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3821 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3822 | echo "$as_me:$LINENO: checking for fmod in -lm" >&5 |
| 3823 | echo $ECHO_N "checking for fmod in -lm... $ECHO_C" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3824 | if test "${ac_cv_lib_m_fmod+set}" = set; then |
| 3825 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3826 | else |
| 3827 | ac_check_lib_save_LIBS=$LIBS |
| 3828 | LIBS="-lm $LIBS" |
| 3829 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3830 | /* confdefs.h. */ |
| 3831 | _ACEOF |
| 3832 | cat confdefs.h >>conftest.$ac_ext |
| 3833 | cat >>conftest.$ac_ext <<_ACEOF |
| 3834 | /* end confdefs.h. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3835 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3836 | /* Override any gcc2 internal prototype to avoid an error. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3837 | #ifdef __cplusplus |
| 3838 | extern "C" |
| 3839 | #endif |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3840 | /* We use char because int might match the return type of a gcc2 |
| 3841 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3842 | char fmod (); |
| 3843 | int |
| 3844 | main () |
| 3845 | { |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3846 | fmod (); |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3847 | ; |
| 3848 | return 0; |
| 3849 | } |
| 3850 | _ACEOF |
| 3851 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3852 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3853 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3854 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3855 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3856 | rm -f conftest.er1 |
| 3857 | cat conftest.err >&5 |
| 3858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3859 | (exit $ac_status); } && |
| 3860 | { ac_try='test -z "$ac_c_werror_flag" |
| 3861 | || test ! -s conftest.err' |
| 3862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3863 | (eval $ac_try) 2>&5 |
| 3864 | ac_status=$? |
| 3865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3866 | (exit $ac_status); }; } && |
| 3867 | { ac_try='test -s conftest$ac_exeext' |
| 3868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3869 | (eval $ac_try) 2>&5 |
| 3870 | ac_status=$? |
| 3871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3872 | (exit $ac_status); }; }; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3873 | ac_cv_lib_m_fmod=yes |
| 3874 | else |
| 3875 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3876 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3877 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3878 | ac_cv_lib_m_fmod=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3879 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3880 | rm -f conftest.err conftest.$ac_objext \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3881 | conftest$ac_exeext conftest.$ac_ext |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3882 | LIBS=$ac_check_lib_save_LIBS |
| 3883 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3884 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_fmod" >&5 |
| 3885 | echo "${ECHO_T}$ac_cv_lib_m_fmod" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3886 | if test $ac_cv_lib_m_fmod = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3887 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3888 | #define HAVE_LIBM 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3889 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 3890 | |
| 3891 | LIBS="-lm $LIBS" |
| 3892 | |
| 3893 | fi |
| 3894 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 3895 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 3896 | fi; |
| 3897 | |
| 3898 | |
| 3899 | ac_ext=c |
| 3900 | ac_cpp='$CPP $CPPFLAGS' |
| 3901 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3902 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3903 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3904 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3905 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
| 3906 | # On Suns, sometimes $CPP names a directory. |
| 3907 | if test -n "$CPP" && test -d "$CPP"; then |
| 3908 | CPP= |
| 3909 | fi |
| 3910 | if test -z "$CPP"; then |
| 3911 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3912 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3913 | else |
| 3914 | # Double quotes because CPP needs to be expanded |
| 3915 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3916 | do |
| 3917 | ac_preproc_ok=false |
| 3918 | for ac_c_preproc_warn_flag in '' yes |
| 3919 | do |
| 3920 | # Use a header file that comes with gcc, so configuring glibc |
| 3921 | # with a fresh cross-compiler works. |
| 3922 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3923 | # <limits.h> exists even on freestanding compilers. |
| 3924 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3925 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3926 | cat >conftest.$ac_ext <<_ACEOF |
| 3927 | /* confdefs.h. */ |
| 3928 | _ACEOF |
| 3929 | cat confdefs.h >>conftest.$ac_ext |
| 3930 | cat >>conftest.$ac_ext <<_ACEOF |
| 3931 | /* end confdefs.h. */ |
| 3932 | #ifdef __STDC__ |
| 3933 | # include <limits.h> |
| 3934 | #else |
| 3935 | # include <assert.h> |
| 3936 | #endif |
| 3937 | Syntax error |
| 3938 | _ACEOF |
| 3939 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3940 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3941 | ac_status=$? |
| 3942 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3943 | rm -f conftest.er1 |
| 3944 | cat conftest.err >&5 |
| 3945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3946 | (exit $ac_status); } >/dev/null; then |
| 3947 | if test -s conftest.err; then |
| 3948 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3949 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3950 | else |
| 3951 | ac_cpp_err= |
| 3952 | fi |
| 3953 | else |
| 3954 | ac_cpp_err=yes |
| 3955 | fi |
| 3956 | if test -z "$ac_cpp_err"; then |
| 3957 | : |
| 3958 | else |
| 3959 | echo "$as_me: failed program was:" >&5 |
| 3960 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3961 | |
| 3962 | # Broken: fails on valid input. |
| 3963 | continue |
| 3964 | fi |
| 3965 | rm -f conftest.err conftest.$ac_ext |
| 3966 | |
| 3967 | # OK, works on sane cases. Now check whether non-existent headers |
| 3968 | # can be detected and how. |
| 3969 | cat >conftest.$ac_ext <<_ACEOF |
| 3970 | /* confdefs.h. */ |
| 3971 | _ACEOF |
| 3972 | cat confdefs.h >>conftest.$ac_ext |
| 3973 | cat >>conftest.$ac_ext <<_ACEOF |
| 3974 | /* end confdefs.h. */ |
| 3975 | #include <ac_nonexistent.h> |
| 3976 | _ACEOF |
| 3977 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3978 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3979 | ac_status=$? |
| 3980 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3981 | rm -f conftest.er1 |
| 3982 | cat conftest.err >&5 |
| 3983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3984 | (exit $ac_status); } >/dev/null; then |
| 3985 | if test -s conftest.err; then |
| 3986 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3987 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3988 | else |
| 3989 | ac_cpp_err= |
| 3990 | fi |
| 3991 | else |
| 3992 | ac_cpp_err=yes |
| 3993 | fi |
| 3994 | if test -z "$ac_cpp_err"; then |
| 3995 | # Broken: success on invalid input. |
| 3996 | continue |
| 3997 | else |
| 3998 | echo "$as_me: failed program was:" >&5 |
| 3999 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4000 | |
| 4001 | # Passes both tests. |
| 4002 | ac_preproc_ok=: |
| 4003 | break |
| 4004 | fi |
| 4005 | rm -f conftest.err conftest.$ac_ext |
| 4006 | |
| 4007 | done |
| 4008 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4009 | rm -f conftest.err conftest.$ac_ext |
| 4010 | if $ac_preproc_ok; then |
| 4011 | break |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4012 | fi |
| 4013 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 4014 | done |
| 4015 | ac_cv_prog_CPP=$CPP |
| 4016 | |
| 4017 | fi |
| 4018 | CPP=$ac_cv_prog_CPP |
| 4019 | else |
| 4020 | ac_cv_prog_CPP=$CPP |
| 4021 | fi |
| 4022 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 4023 | echo "${ECHO_T}$CPP" >&6 |
| 4024 | ac_preproc_ok=false |
| 4025 | for ac_c_preproc_warn_flag in '' yes |
| 4026 | do |
| 4027 | # Use a header file that comes with gcc, so configuring glibc |
| 4028 | # with a fresh cross-compiler works. |
| 4029 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4030 | # <limits.h> exists even on freestanding compilers. |
| 4031 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4032 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4033 | cat >conftest.$ac_ext <<_ACEOF |
| 4034 | /* confdefs.h. */ |
| 4035 | _ACEOF |
| 4036 | cat confdefs.h >>conftest.$ac_ext |
| 4037 | cat >>conftest.$ac_ext <<_ACEOF |
| 4038 | /* end confdefs.h. */ |
| 4039 | #ifdef __STDC__ |
| 4040 | # include <limits.h> |
| 4041 | #else |
| 4042 | # include <assert.h> |
| 4043 | #endif |
| 4044 | Syntax error |
| 4045 | _ACEOF |
| 4046 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4047 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4048 | ac_status=$? |
| 4049 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4050 | rm -f conftest.er1 |
| 4051 | cat conftest.err >&5 |
| 4052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4053 | (exit $ac_status); } >/dev/null; then |
| 4054 | if test -s conftest.err; then |
| 4055 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4056 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4057 | else |
| 4058 | ac_cpp_err= |
| 4059 | fi |
| 4060 | else |
| 4061 | ac_cpp_err=yes |
| 4062 | fi |
| 4063 | if test -z "$ac_cpp_err"; then |
| 4064 | : |
| 4065 | else |
| 4066 | echo "$as_me: failed program was:" >&5 |
| 4067 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4068 | |
| 4069 | # Broken: fails on valid input. |
| 4070 | continue |
| 4071 | fi |
| 4072 | rm -f conftest.err conftest.$ac_ext |
| 4073 | |
| 4074 | # OK, works on sane cases. Now check whether non-existent headers |
| 4075 | # can be detected and how. |
| 4076 | cat >conftest.$ac_ext <<_ACEOF |
| 4077 | /* confdefs.h. */ |
| 4078 | _ACEOF |
| 4079 | cat confdefs.h >>conftest.$ac_ext |
| 4080 | cat >>conftest.$ac_ext <<_ACEOF |
| 4081 | /* end confdefs.h. */ |
| 4082 | #include <ac_nonexistent.h> |
| 4083 | _ACEOF |
| 4084 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4085 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4086 | ac_status=$? |
| 4087 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4088 | rm -f conftest.er1 |
| 4089 | cat conftest.err >&5 |
| 4090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4091 | (exit $ac_status); } >/dev/null; then |
| 4092 | if test -s conftest.err; then |
| 4093 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4094 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4095 | else |
| 4096 | ac_cpp_err= |
| 4097 | fi |
| 4098 | else |
| 4099 | ac_cpp_err=yes |
| 4100 | fi |
| 4101 | if test -z "$ac_cpp_err"; then |
| 4102 | # Broken: success on invalid input. |
| 4103 | continue |
| 4104 | else |
| 4105 | echo "$as_me: failed program was:" >&5 |
| 4106 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4107 | |
| 4108 | # Passes both tests. |
| 4109 | ac_preproc_ok=: |
| 4110 | break |
| 4111 | fi |
| 4112 | rm -f conftest.err conftest.$ac_ext |
| 4113 | |
| 4114 | done |
| 4115 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4116 | rm -f conftest.err conftest.$ac_ext |
| 4117 | if $ac_preproc_ok; then |
| 4118 | : |
| 4119 | else |
| 4120 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 4121 | See \`config.log' for more details." >&5 |
| 4122 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 4123 | See \`config.log' for more details." >&2;} |
| 4124 | { (exit 1); exit 1; }; } |
| 4125 | fi |
| 4126 | |
| 4127 | ac_ext=c |
| 4128 | ac_cpp='$CPP $CPPFLAGS' |
| 4129 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4130 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4131 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4132 | |
| 4133 | |
| 4134 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 4135 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 4136 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 4137 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4138 | else |
| 4139 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 4140 | then ac_cv_prog_egrep='grep -E' |
| 4141 | else ac_cv_prog_egrep='egrep' |
| 4142 | fi |
| 4143 | fi |
| 4144 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 4145 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 4146 | EGREP=$ac_cv_prog_egrep |
| 4147 | |
| 4148 | |
| 4149 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 4150 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 4151 | if test "${ac_cv_header_stdc+set}" = set; then |
| 4152 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4153 | else |
| 4154 | cat >conftest.$ac_ext <<_ACEOF |
| 4155 | /* confdefs.h. */ |
| 4156 | _ACEOF |
| 4157 | cat confdefs.h >>conftest.$ac_ext |
| 4158 | cat >>conftest.$ac_ext <<_ACEOF |
| 4159 | /* end confdefs.h. */ |
| 4160 | #include <stdlib.h> |
| 4161 | #include <stdarg.h> |
| 4162 | #include <string.h> |
| 4163 | #include <float.h> |
| 4164 | |
| 4165 | int |
| 4166 | main () |
| 4167 | { |
| 4168 | |
| 4169 | ; |
| 4170 | return 0; |
| 4171 | } |
| 4172 | _ACEOF |
| 4173 | rm -f conftest.$ac_objext |
| 4174 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4175 | (eval $ac_compile) 2>conftest.er1 |
| 4176 | ac_status=$? |
| 4177 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4178 | rm -f conftest.er1 |
| 4179 | cat conftest.err >&5 |
| 4180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4181 | (exit $ac_status); } && |
| 4182 | { ac_try='test -z "$ac_c_werror_flag" |
| 4183 | || test ! -s conftest.err' |
| 4184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4185 | (eval $ac_try) 2>&5 |
| 4186 | ac_status=$? |
| 4187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4188 | (exit $ac_status); }; } && |
| 4189 | { ac_try='test -s conftest.$ac_objext' |
| 4190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4191 | (eval $ac_try) 2>&5 |
| 4192 | ac_status=$? |
| 4193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4194 | (exit $ac_status); }; }; then |
| 4195 | ac_cv_header_stdc=yes |
| 4196 | else |
| 4197 | echo "$as_me: failed program was:" >&5 |
| 4198 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4199 | |
| 4200 | ac_cv_header_stdc=no |
| 4201 | fi |
| 4202 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4203 | |
| 4204 | if test $ac_cv_header_stdc = yes; then |
| 4205 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 4206 | cat >conftest.$ac_ext <<_ACEOF |
| 4207 | /* confdefs.h. */ |
| 4208 | _ACEOF |
| 4209 | cat confdefs.h >>conftest.$ac_ext |
| 4210 | cat >>conftest.$ac_ext <<_ACEOF |
| 4211 | /* end confdefs.h. */ |
| 4212 | #include <string.h> |
| 4213 | |
| 4214 | _ACEOF |
| 4215 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4216 | $EGREP "memchr" >/dev/null 2>&1; then |
| 4217 | : |
| 4218 | else |
| 4219 | ac_cv_header_stdc=no |
| 4220 | fi |
| 4221 | rm -f conftest* |
| 4222 | |
| 4223 | fi |
| 4224 | |
| 4225 | if test $ac_cv_header_stdc = yes; then |
| 4226 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 4227 | cat >conftest.$ac_ext <<_ACEOF |
| 4228 | /* confdefs.h. */ |
| 4229 | _ACEOF |
| 4230 | cat confdefs.h >>conftest.$ac_ext |
| 4231 | cat >>conftest.$ac_ext <<_ACEOF |
| 4232 | /* end confdefs.h. */ |
| 4233 | #include <stdlib.h> |
| 4234 | |
| 4235 | _ACEOF |
| 4236 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4237 | $EGREP "free" >/dev/null 2>&1; then |
| 4238 | : |
| 4239 | else |
| 4240 | ac_cv_header_stdc=no |
| 4241 | fi |
| 4242 | rm -f conftest* |
| 4243 | |
| 4244 | fi |
| 4245 | |
| 4246 | if test $ac_cv_header_stdc = yes; then |
| 4247 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 4248 | if test "$cross_compiling" = yes; then |
| 4249 | : |
| 4250 | else |
| 4251 | cat >conftest.$ac_ext <<_ACEOF |
| 4252 | /* confdefs.h. */ |
| 4253 | _ACEOF |
| 4254 | cat confdefs.h >>conftest.$ac_ext |
| 4255 | cat >>conftest.$ac_ext <<_ACEOF |
| 4256 | /* end confdefs.h. */ |
| 4257 | #include <ctype.h> |
| 4258 | #if ((' ' & 0x0FF) == 0x020) |
| 4259 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4260 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4261 | #else |
| 4262 | # define ISLOWER(c) \ |
| 4263 | (('a' <= (c) && (c) <= 'i') \ |
| 4264 | || ('j' <= (c) && (c) <= 'r') \ |
| 4265 | || ('s' <= (c) && (c) <= 'z')) |
| 4266 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4267 | #endif |
| 4268 | |
| 4269 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4270 | int |
| 4271 | main () |
| 4272 | { |
| 4273 | int i; |
| 4274 | for (i = 0; i < 256; i++) |
| 4275 | if (XOR (islower (i), ISLOWER (i)) |
| 4276 | || toupper (i) != TOUPPER (i)) |
| 4277 | exit(2); |
| 4278 | exit (0); |
| 4279 | } |
| 4280 | _ACEOF |
| 4281 | rm -f conftest$ac_exeext |
| 4282 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4283 | (eval $ac_link) 2>&5 |
| 4284 | ac_status=$? |
| 4285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4286 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4287 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4288 | (eval $ac_try) 2>&5 |
| 4289 | ac_status=$? |
| 4290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4291 | (exit $ac_status); }; }; then |
| 4292 | : |
| 4293 | else |
| 4294 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4295 | echo "$as_me: failed program was:" >&5 |
| 4296 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4297 | |
| 4298 | ( exit $ac_status ) |
| 4299 | ac_cv_header_stdc=no |
| 4300 | fi |
| 4301 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4302 | fi |
| 4303 | fi |
| 4304 | fi |
| 4305 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4306 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 4307 | if test $ac_cv_header_stdc = yes; then |
| 4308 | |
| 4309 | cat >>confdefs.h <<\_ACEOF |
| 4310 | #define STDC_HEADERS 1 |
| 4311 | _ACEOF |
| 4312 | |
| 4313 | fi |
| 4314 | |
| 4315 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4316 | |
| 4317 | |
| 4318 | |
| 4319 | |
| 4320 | |
| 4321 | |
| 4322 | |
| 4323 | |
| 4324 | |
| 4325 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4326 | inttypes.h stdint.h unistd.h |
| 4327 | do |
| 4328 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4329 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4330 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4331 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4332 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4333 | else |
| 4334 | cat >conftest.$ac_ext <<_ACEOF |
| 4335 | /* confdefs.h. */ |
| 4336 | _ACEOF |
| 4337 | cat confdefs.h >>conftest.$ac_ext |
| 4338 | cat >>conftest.$ac_ext <<_ACEOF |
| 4339 | /* end confdefs.h. */ |
| 4340 | $ac_includes_default |
| 4341 | |
| 4342 | #include <$ac_header> |
| 4343 | _ACEOF |
| 4344 | rm -f conftest.$ac_objext |
| 4345 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4346 | (eval $ac_compile) 2>conftest.er1 |
| 4347 | ac_status=$? |
| 4348 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4349 | rm -f conftest.er1 |
| 4350 | cat conftest.err >&5 |
| 4351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4352 | (exit $ac_status); } && |
| 4353 | { ac_try='test -z "$ac_c_werror_flag" |
| 4354 | || test ! -s conftest.err' |
| 4355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4356 | (eval $ac_try) 2>&5 |
| 4357 | ac_status=$? |
| 4358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4359 | (exit $ac_status); }; } && |
| 4360 | { ac_try='test -s conftest.$ac_objext' |
| 4361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4362 | (eval $ac_try) 2>&5 |
| 4363 | ac_status=$? |
| 4364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4365 | (exit $ac_status); }; }; then |
| 4366 | eval "$as_ac_Header=yes" |
| 4367 | else |
| 4368 | echo "$as_me: failed program was:" >&5 |
| 4369 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4370 | |
| 4371 | eval "$as_ac_Header=no" |
| 4372 | fi |
| 4373 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4374 | fi |
| 4375 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4376 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4377 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4378 | cat >>confdefs.h <<_ACEOF |
| 4379 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4380 | _ACEOF |
| 4381 | |
| 4382 | fi |
| 4383 | |
| 4384 | done |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4385 | |
| 4386 | |
| 4387 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 4388 | echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 |
| 4389 | echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4390 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then |
| 4391 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4392 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 4393 | echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5 |
| 4394 | echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4395 | else |
| 4396 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 4397 | echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5 |
| 4398 | echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4399 | cat >conftest.$ac_ext <<_ACEOF |
| 4400 | /* confdefs.h. */ |
| 4401 | _ACEOF |
| 4402 | cat confdefs.h >>conftest.$ac_ext |
| 4403 | cat >>conftest.$ac_ext <<_ACEOF |
| 4404 | /* end confdefs.h. */ |
| 4405 | $ac_includes_default |
| 4406 | #include <arpa/inet.h> |
| 4407 | _ACEOF |
| 4408 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 4409 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4410 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4411 | ac_status=$? |
| 4412 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4413 | rm -f conftest.er1 |
| 4414 | cat conftest.err >&5 |
| 4415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 4416 | (exit $ac_status); } && |
| 4417 | { ac_try='test -z "$ac_c_werror_flag" |
| 4418 | || test ! -s conftest.err' |
| 4419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4420 | (eval $ac_try) 2>&5 |
| 4421 | ac_status=$? |
| 4422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4423 | (exit $ac_status); }; } && |
| 4424 | { ac_try='test -s conftest.$ac_objext' |
| 4425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4426 | (eval $ac_try) 2>&5 |
| 4427 | ac_status=$? |
| 4428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4429 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4430 | ac_header_compiler=yes |
| 4431 | else |
| 4432 | echo "$as_me: failed program was:" >&5 |
| 4433 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4434 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 4435 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4436 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 4437 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4438 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4439 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4440 | |
| 4441 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 4442 | echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5 |
| 4443 | echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4444 | cat >conftest.$ac_ext <<_ACEOF |
| 4445 | /* confdefs.h. */ |
| 4446 | _ACEOF |
| 4447 | cat confdefs.h >>conftest.$ac_ext |
| 4448 | cat >>conftest.$ac_ext <<_ACEOF |
| 4449 | /* end confdefs.h. */ |
| 4450 | #include <arpa/inet.h> |
| 4451 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 4452 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4453 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4454 | ac_status=$? |
| 4455 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4456 | rm -f conftest.er1 |
| 4457 | cat conftest.err >&5 |
| 4458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 4459 | (exit $ac_status); } >/dev/null; then |
| 4460 | if test -s conftest.err; then |
| 4461 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4462 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4463 | else |
| 4464 | ac_cpp_err= |
| 4465 | fi |
| 4466 | else |
| 4467 | ac_cpp_err=yes |
| 4468 | fi |
| 4469 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4470 | ac_header_preproc=yes |
| 4471 | else |
| 4472 | echo "$as_me: failed program was:" >&5 |
| 4473 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4474 | |
| 4475 | ac_header_preproc=no |
| 4476 | fi |
| 4477 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 4478 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4479 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4480 | |
| 4481 | # So? What about this header? |
| 4482 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 4483 | yes:no: ) |
| 4484 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4485 | echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4486 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5 |
| 4487 | echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;} |
| 4488 | ac_header_preproc=yes |
| 4489 | ;; |
| 4490 | no:yes:* ) |
| 4491 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5 |
| 4492 | echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;} |
| 4493 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5 |
| 4494 | echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;} |
| 4495 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5 |
| 4496 | echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;} |
| 4497 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 4498 | echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 4499 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5 |
| 4500 | echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;} |
| 4501 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5 |
| 4502 | 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^] | 4503 | ( |
| 4504 | cat <<\_ASBOX |
| 4505 | ## ------------------------------------ ## |
| 4506 | ## Report this to the pjproject lists. ## |
| 4507 | ## ------------------------------------ ## |
| 4508 | _ASBOX |
| 4509 | ) | |
| 4510 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4511 | ;; |
| 4512 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 4513 | echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 |
| 4514 | echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4515 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then |
| 4516 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4517 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4518 | ac_cv_header_arpa_inet_h=$ac_header_preproc |
| 4519 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 4520 | echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5 |
| 4521 | echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4522 | |
| 4523 | fi |
| 4524 | if test $ac_cv_header_arpa_inet_h = yes; then |
| 4525 | cat >>confdefs.h <<\_ACEOF |
| 4526 | #define PJ_HAS_ARPA_INET_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4527 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4528 | |
| 4529 | fi |
| 4530 | |
| 4531 | |
| 4532 | if test "${ac_cv_header_assert_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 4533 | echo "$as_me:$LINENO: checking for assert.h" >&5 |
| 4534 | echo $ECHO_N "checking for assert.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4535 | if test "${ac_cv_header_assert_h+set}" = set; then |
| 4536 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4537 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 4538 | echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5 |
| 4539 | echo "${ECHO_T}$ac_cv_header_assert_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4540 | else |
| 4541 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 4542 | echo "$as_me:$LINENO: checking assert.h usability" >&5 |
| 4543 | echo $ECHO_N "checking assert.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4544 | cat >conftest.$ac_ext <<_ACEOF |
| 4545 | /* confdefs.h. */ |
| 4546 | _ACEOF |
| 4547 | cat confdefs.h >>conftest.$ac_ext |
| 4548 | cat >>conftest.$ac_ext <<_ACEOF |
| 4549 | /* end confdefs.h. */ |
| 4550 | $ac_includes_default |
| 4551 | #include <assert.h> |
| 4552 | _ACEOF |
| 4553 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 4554 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4555 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4556 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4557 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4558 | rm -f conftest.er1 |
| 4559 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 4561 | (exit $ac_status); } && |
| 4562 | { ac_try='test -z "$ac_c_werror_flag" |
| 4563 | || test ! -s conftest.err' |
| 4564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4565 | (eval $ac_try) 2>&5 |
| 4566 | ac_status=$? |
| 4567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4568 | (exit $ac_status); }; } && |
| 4569 | { ac_try='test -s conftest.$ac_objext' |
| 4570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4571 | (eval $ac_try) 2>&5 |
| 4572 | ac_status=$? |
| 4573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4574 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4575 | ac_header_compiler=yes |
| 4576 | else |
| 4577 | echo "$as_me: failed program was:" >&5 |
| 4578 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4579 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 4580 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4581 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 4582 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4583 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4584 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4585 | |
| 4586 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 4587 | echo "$as_me:$LINENO: checking assert.h presence" >&5 |
| 4588 | echo $ECHO_N "checking assert.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4589 | cat >conftest.$ac_ext <<_ACEOF |
| 4590 | /* confdefs.h. */ |
| 4591 | _ACEOF |
| 4592 | cat confdefs.h >>conftest.$ac_ext |
| 4593 | cat >>conftest.$ac_ext <<_ACEOF |
| 4594 | /* end confdefs.h. */ |
| 4595 | #include <assert.h> |
| 4596 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 4597 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4598 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4599 | ac_status=$? |
| 4600 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4601 | rm -f conftest.er1 |
| 4602 | cat conftest.err >&5 |
| 4603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 4604 | (exit $ac_status); } >/dev/null; then |
| 4605 | if test -s conftest.err; then |
| 4606 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4607 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4608 | else |
| 4609 | ac_cpp_err= |
| 4610 | fi |
| 4611 | else |
| 4612 | ac_cpp_err=yes |
| 4613 | fi |
| 4614 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4615 | ac_header_preproc=yes |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4616 | else |
| 4617 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4618 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4619 | |
| 4620 | ac_header_preproc=no |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4621 | fi |
| 4622 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 4623 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4624 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4625 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4626 | # So? What about this header? |
| 4627 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 4628 | yes:no: ) |
| 4629 | { echo "$as_me:$LINENO: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4630 | echo "$as_me: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4631 | { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the compiler's result" >&5 |
| 4632 | echo "$as_me: WARNING: assert.h: proceeding with the compiler's result" >&2;} |
| 4633 | ac_header_preproc=yes |
| 4634 | ;; |
| 4635 | no:yes:* ) |
| 4636 | { echo "$as_me:$LINENO: WARNING: assert.h: present but cannot be compiled" >&5 |
| 4637 | echo "$as_me: WARNING: assert.h: present but cannot be compiled" >&2;} |
| 4638 | { echo "$as_me:$LINENO: WARNING: assert.h: check for missing prerequisite headers?" >&5 |
| 4639 | echo "$as_me: WARNING: assert.h: check for missing prerequisite headers?" >&2;} |
| 4640 | { echo "$as_me:$LINENO: WARNING: assert.h: see the Autoconf documentation" >&5 |
| 4641 | echo "$as_me: WARNING: assert.h: see the Autoconf documentation" >&2;} |
| 4642 | { echo "$as_me:$LINENO: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 4643 | echo "$as_me: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 4644 | { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the preprocessor's result" >&5 |
| 4645 | echo "$as_me: WARNING: assert.h: proceeding with the preprocessor's result" >&2;} |
| 4646 | { echo "$as_me:$LINENO: WARNING: assert.h: in the future, the compiler will take precedence" >&5 |
| 4647 | 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^] | 4648 | ( |
| 4649 | cat <<\_ASBOX |
| 4650 | ## ------------------------------------ ## |
| 4651 | ## Report this to the pjproject lists. ## |
| 4652 | ## ------------------------------------ ## |
| 4653 | _ASBOX |
| 4654 | ) | |
| 4655 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4656 | ;; |
| 4657 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 4658 | echo "$as_me:$LINENO: checking for assert.h" >&5 |
| 4659 | echo $ECHO_N "checking for assert.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4660 | if test "${ac_cv_header_assert_h+set}" = set; then |
| 4661 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4662 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4663 | ac_cv_header_assert_h=$ac_header_preproc |
| 4664 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 4665 | echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5 |
| 4666 | echo "${ECHO_T}$ac_cv_header_assert_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4667 | |
| 4668 | fi |
| 4669 | if test $ac_cv_header_assert_h = yes; then |
| 4670 | cat >>confdefs.h <<\_ACEOF |
| 4671 | #define PJ_HAS_ASSERT_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4672 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4673 | |
| 4674 | fi |
| 4675 | |
| 4676 | |
| 4677 | if test "${ac_cv_header_ctype_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 4678 | echo "$as_me:$LINENO: checking for ctype.h" >&5 |
| 4679 | echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4680 | if test "${ac_cv_header_ctype_h+set}" = set; then |
| 4681 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4682 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 4683 | echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5 |
| 4684 | echo "${ECHO_T}$ac_cv_header_ctype_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4685 | else |
| 4686 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 4687 | echo "$as_me:$LINENO: checking ctype.h usability" >&5 |
| 4688 | echo $ECHO_N "checking ctype.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4689 | cat >conftest.$ac_ext <<_ACEOF |
| 4690 | /* confdefs.h. */ |
| 4691 | _ACEOF |
| 4692 | cat confdefs.h >>conftest.$ac_ext |
| 4693 | cat >>conftest.$ac_ext <<_ACEOF |
| 4694 | /* end confdefs.h. */ |
| 4695 | $ac_includes_default |
| 4696 | #include <ctype.h> |
| 4697 | _ACEOF |
| 4698 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 4699 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4700 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4701 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4702 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4703 | rm -f conftest.er1 |
| 4704 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 4706 | (exit $ac_status); } && |
| 4707 | { ac_try='test -z "$ac_c_werror_flag" |
| 4708 | || test ! -s conftest.err' |
| 4709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4710 | (eval $ac_try) 2>&5 |
| 4711 | ac_status=$? |
| 4712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4713 | (exit $ac_status); }; } && |
| 4714 | { ac_try='test -s conftest.$ac_objext' |
| 4715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4716 | (eval $ac_try) 2>&5 |
| 4717 | ac_status=$? |
| 4718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4719 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4720 | ac_header_compiler=yes |
| 4721 | else |
| 4722 | echo "$as_me: failed program was:" >&5 |
| 4723 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4724 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 4725 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4726 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 4727 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4728 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4729 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4730 | |
| 4731 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 4732 | echo "$as_me:$LINENO: checking ctype.h presence" >&5 |
| 4733 | echo $ECHO_N "checking ctype.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4734 | cat >conftest.$ac_ext <<_ACEOF |
| 4735 | /* confdefs.h. */ |
| 4736 | _ACEOF |
| 4737 | cat confdefs.h >>conftest.$ac_ext |
| 4738 | cat >>conftest.$ac_ext <<_ACEOF |
| 4739 | /* end confdefs.h. */ |
| 4740 | #include <ctype.h> |
| 4741 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 4742 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4743 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4744 | ac_status=$? |
| 4745 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4746 | rm -f conftest.er1 |
| 4747 | cat conftest.err >&5 |
| 4748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 4749 | (exit $ac_status); } >/dev/null; then |
| 4750 | if test -s conftest.err; then |
| 4751 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4752 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4753 | else |
| 4754 | ac_cpp_err= |
| 4755 | fi |
| 4756 | else |
| 4757 | ac_cpp_err=yes |
| 4758 | fi |
| 4759 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4760 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4761 | else |
| 4762 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4763 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4764 | |
| 4765 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4766 | fi |
| 4767 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 4768 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4769 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4770 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4771 | # So? What about this header? |
| 4772 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 4773 | yes:no: ) |
| 4774 | { echo "$as_me:$LINENO: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4775 | echo "$as_me: WARNING: ctype.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4776 | { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the compiler's result" >&5 |
| 4777 | echo "$as_me: WARNING: ctype.h: proceeding with the compiler's result" >&2;} |
| 4778 | ac_header_preproc=yes |
| 4779 | ;; |
| 4780 | no:yes:* ) |
| 4781 | { echo "$as_me:$LINENO: WARNING: ctype.h: present but cannot be compiled" >&5 |
| 4782 | echo "$as_me: WARNING: ctype.h: present but cannot be compiled" >&2;} |
| 4783 | { echo "$as_me:$LINENO: WARNING: ctype.h: check for missing prerequisite headers?" >&5 |
| 4784 | echo "$as_me: WARNING: ctype.h: check for missing prerequisite headers?" >&2;} |
| 4785 | { echo "$as_me:$LINENO: WARNING: ctype.h: see the Autoconf documentation" >&5 |
| 4786 | echo "$as_me: WARNING: ctype.h: see the Autoconf documentation" >&2;} |
| 4787 | { echo "$as_me:$LINENO: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 4788 | echo "$as_me: WARNING: ctype.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 4789 | { echo "$as_me:$LINENO: WARNING: ctype.h: proceeding with the preprocessor's result" >&5 |
| 4790 | echo "$as_me: WARNING: ctype.h: proceeding with the preprocessor's result" >&2;} |
| 4791 | { echo "$as_me:$LINENO: WARNING: ctype.h: in the future, the compiler will take precedence" >&5 |
| 4792 | 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^] | 4793 | ( |
| 4794 | cat <<\_ASBOX |
| 4795 | ## ------------------------------------ ## |
| 4796 | ## Report this to the pjproject lists. ## |
| 4797 | ## ------------------------------------ ## |
| 4798 | _ASBOX |
| 4799 | ) | |
| 4800 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4801 | ;; |
| 4802 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 4803 | echo "$as_me:$LINENO: checking for ctype.h" >&5 |
| 4804 | echo $ECHO_N "checking for ctype.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4805 | if test "${ac_cv_header_ctype_h+set}" = set; then |
| 4806 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4807 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4808 | ac_cv_header_ctype_h=$ac_header_preproc |
| 4809 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 4810 | echo "$as_me:$LINENO: result: $ac_cv_header_ctype_h" >&5 |
| 4811 | echo "${ECHO_T}$ac_cv_header_ctype_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4812 | |
| 4813 | fi |
| 4814 | if test $ac_cv_header_ctype_h = yes; then |
| 4815 | cat >>confdefs.h <<\_ACEOF |
| 4816 | #define PJ_HAS_CTYPE_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4817 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4818 | |
| 4819 | fi |
| 4820 | |
| 4821 | |
| 4822 | |
| 4823 | case $target in |
| 4824 | *mingw* | *cygw* | *win32* | *w32* ) |
| 4825 | cat >>confdefs.h <<\_ACEOF |
| 4826 | #define PJ_HAS_ERRNO_H 0 |
| 4827 | _ACEOF |
| 4828 | |
| 4829 | ;; |
| 4830 | *) |
| 4831 | if test "${ac_cv_header_errno_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 4832 | echo "$as_me:$LINENO: checking for errno.h" >&5 |
| 4833 | echo $ECHO_N "checking for errno.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4834 | if test "${ac_cv_header_errno_h+set}" = set; then |
| 4835 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4836 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 4837 | echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 |
| 4838 | echo "${ECHO_T}$ac_cv_header_errno_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4839 | else |
| 4840 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 4841 | echo "$as_me:$LINENO: checking errno.h usability" >&5 |
| 4842 | echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4843 | cat >conftest.$ac_ext <<_ACEOF |
| 4844 | /* confdefs.h. */ |
| 4845 | _ACEOF |
| 4846 | cat confdefs.h >>conftest.$ac_ext |
| 4847 | cat >>conftest.$ac_ext <<_ACEOF |
| 4848 | /* end confdefs.h. */ |
| 4849 | $ac_includes_default |
| 4850 | #include <errno.h> |
| 4851 | _ACEOF |
| 4852 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 4853 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4854 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4855 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4856 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4857 | rm -f conftest.er1 |
| 4858 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 4860 | (exit $ac_status); } && |
| 4861 | { ac_try='test -z "$ac_c_werror_flag" |
| 4862 | || test ! -s conftest.err' |
| 4863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4864 | (eval $ac_try) 2>&5 |
| 4865 | ac_status=$? |
| 4866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4867 | (exit $ac_status); }; } && |
| 4868 | { ac_try='test -s conftest.$ac_objext' |
| 4869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4870 | (eval $ac_try) 2>&5 |
| 4871 | ac_status=$? |
| 4872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4873 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4874 | ac_header_compiler=yes |
| 4875 | else |
| 4876 | echo "$as_me: failed program was:" >&5 |
| 4877 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4878 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 4879 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4880 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 4881 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4882 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4883 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4884 | |
| 4885 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 4886 | echo "$as_me:$LINENO: checking errno.h presence" >&5 |
| 4887 | echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4888 | cat >conftest.$ac_ext <<_ACEOF |
| 4889 | /* confdefs.h. */ |
| 4890 | _ACEOF |
| 4891 | cat confdefs.h >>conftest.$ac_ext |
| 4892 | cat >>conftest.$ac_ext <<_ACEOF |
| 4893 | /* end confdefs.h. */ |
| 4894 | #include <errno.h> |
| 4895 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 4896 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4897 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4898 | ac_status=$? |
| 4899 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4900 | rm -f conftest.er1 |
| 4901 | cat conftest.err >&5 |
| 4902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 4903 | (exit $ac_status); } >/dev/null; then |
| 4904 | if test -s conftest.err; then |
| 4905 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4906 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4907 | else |
| 4908 | ac_cpp_err= |
| 4909 | fi |
| 4910 | else |
| 4911 | ac_cpp_err=yes |
| 4912 | fi |
| 4913 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4914 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4915 | else |
| 4916 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4917 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4918 | |
| 4919 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4920 | fi |
| 4921 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 4922 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4923 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4924 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4925 | # So? What about this header? |
| 4926 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 4927 | yes:no: ) |
| 4928 | { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4929 | echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4930 | { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5 |
| 4931 | echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;} |
| 4932 | ac_header_preproc=yes |
| 4933 | ;; |
| 4934 | no:yes:* ) |
| 4935 | { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5 |
| 4936 | echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;} |
| 4937 | { echo "$as_me:$LINENO: WARNING: errno.h: check for missing prerequisite headers?" >&5 |
| 4938 | echo "$as_me: WARNING: errno.h: check for missing prerequisite headers?" >&2;} |
| 4939 | { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5 |
| 4940 | echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;} |
| 4941 | { echo "$as_me:$LINENO: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 4942 | echo "$as_me: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 4943 | { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5 |
| 4944 | echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;} |
| 4945 | { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5 |
| 4946 | 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^] | 4947 | ( |
| 4948 | cat <<\_ASBOX |
| 4949 | ## ------------------------------------ ## |
| 4950 | ## Report this to the pjproject lists. ## |
| 4951 | ## ------------------------------------ ## |
| 4952 | _ASBOX |
| 4953 | ) | |
| 4954 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4955 | ;; |
| 4956 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 4957 | echo "$as_me:$LINENO: checking for errno.h" >&5 |
| 4958 | echo $ECHO_N "checking for errno.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4959 | if test "${ac_cv_header_errno_h+set}" = set; then |
| 4960 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4961 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4962 | ac_cv_header_errno_h=$ac_header_preproc |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 4963 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 4964 | echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 |
| 4965 | echo "${ECHO_T}$ac_cv_header_errno_h" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4966 | |
| 4967 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 4968 | if test $ac_cv_header_errno_h = yes; then |
| 4969 | cat >>confdefs.h <<\_ACEOF |
| 4970 | #define PJ_HAS_ERRNO_H 1 |
| 4971 | _ACEOF |
| 4972 | |
| 4973 | fi |
| 4974 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4975 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 4976 | ;; |
| 4977 | esac |
| 4978 | |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 4979 | if test "${ac_cv_header_fcntl_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 4980 | echo "$as_me:$LINENO: checking for fcntl.h" >&5 |
| 4981 | echo $ECHO_N "checking for fcntl.h... $ECHO_C" >&6 |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 4982 | if test "${ac_cv_header_fcntl_h+set}" = set; then |
| 4983 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4984 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 4985 | echo "$as_me:$LINENO: result: $ac_cv_header_fcntl_h" >&5 |
| 4986 | echo "${ECHO_T}$ac_cv_header_fcntl_h" >&6 |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 4987 | else |
| 4988 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 4989 | echo "$as_me:$LINENO: checking fcntl.h usability" >&5 |
| 4990 | echo $ECHO_N "checking fcntl.h usability... $ECHO_C" >&6 |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 4991 | cat >conftest.$ac_ext <<_ACEOF |
| 4992 | /* confdefs.h. */ |
| 4993 | _ACEOF |
| 4994 | cat confdefs.h >>conftest.$ac_ext |
| 4995 | cat >>conftest.$ac_ext <<_ACEOF |
| 4996 | /* end confdefs.h. */ |
| 4997 | $ac_includes_default |
| 4998 | #include <fcntl.h> |
| 4999 | _ACEOF |
| 5000 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5001 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5002 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5003 | ac_status=$? |
| 5004 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5005 | rm -f conftest.er1 |
| 5006 | cat conftest.err >&5 |
| 5007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5008 | (exit $ac_status); } && |
| 5009 | { ac_try='test -z "$ac_c_werror_flag" |
| 5010 | || test ! -s conftest.err' |
| 5011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5012 | (eval $ac_try) 2>&5 |
| 5013 | ac_status=$? |
| 5014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5015 | (exit $ac_status); }; } && |
| 5016 | { ac_try='test -s conftest.$ac_objext' |
| 5017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5018 | (eval $ac_try) 2>&5 |
| 5019 | ac_status=$? |
| 5020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5021 | (exit $ac_status); }; }; then |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5022 | ac_header_compiler=yes |
| 5023 | else |
| 5024 | echo "$as_me: failed program was:" >&5 |
| 5025 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5026 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5027 | ac_header_compiler=no |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5028 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5029 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5030 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5031 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5032 | |
| 5033 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5034 | echo "$as_me:$LINENO: checking fcntl.h presence" >&5 |
| 5035 | echo $ECHO_N "checking fcntl.h presence... $ECHO_C" >&6 |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5036 | cat >conftest.$ac_ext <<_ACEOF |
| 5037 | /* confdefs.h. */ |
| 5038 | _ACEOF |
| 5039 | cat confdefs.h >>conftest.$ac_ext |
| 5040 | cat >>conftest.$ac_ext <<_ACEOF |
| 5041 | /* end confdefs.h. */ |
| 5042 | #include <fcntl.h> |
| 5043 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5044 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5045 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5046 | ac_status=$? |
| 5047 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5048 | rm -f conftest.er1 |
| 5049 | cat conftest.err >&5 |
| 5050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5051 | (exit $ac_status); } >/dev/null; then |
| 5052 | if test -s conftest.err; then |
| 5053 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5054 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5055 | else |
| 5056 | ac_cpp_err= |
| 5057 | fi |
| 5058 | else |
| 5059 | ac_cpp_err=yes |
| 5060 | fi |
| 5061 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5062 | ac_header_preproc=yes |
| 5063 | else |
| 5064 | echo "$as_me: failed program was:" >&5 |
| 5065 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5066 | |
| 5067 | ac_header_preproc=no |
| 5068 | fi |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5069 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5070 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5071 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5072 | |
| 5073 | # So? What about this header? |
| 5074 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5075 | yes:no: ) |
| 5076 | { echo "$as_me:$LINENO: WARNING: fcntl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5077 | echo "$as_me: WARNING: fcntl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5078 | { echo "$as_me:$LINENO: WARNING: fcntl.h: proceeding with the compiler's result" >&5 |
| 5079 | echo "$as_me: WARNING: fcntl.h: proceeding with the compiler's result" >&2;} |
| 5080 | ac_header_preproc=yes |
| 5081 | ;; |
| 5082 | no:yes:* ) |
| 5083 | { echo "$as_me:$LINENO: WARNING: fcntl.h: present but cannot be compiled" >&5 |
| 5084 | echo "$as_me: WARNING: fcntl.h: present but cannot be compiled" >&2;} |
| 5085 | { echo "$as_me:$LINENO: WARNING: fcntl.h: check for missing prerequisite headers?" >&5 |
| 5086 | echo "$as_me: WARNING: fcntl.h: check for missing prerequisite headers?" >&2;} |
| 5087 | { echo "$as_me:$LINENO: WARNING: fcntl.h: see the Autoconf documentation" >&5 |
| 5088 | echo "$as_me: WARNING: fcntl.h: see the Autoconf documentation" >&2;} |
| 5089 | { echo "$as_me:$LINENO: WARNING: fcntl.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5090 | echo "$as_me: WARNING: fcntl.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5091 | { echo "$as_me:$LINENO: WARNING: fcntl.h: proceeding with the preprocessor's result" >&5 |
| 5092 | echo "$as_me: WARNING: fcntl.h: proceeding with the preprocessor's result" >&2;} |
| 5093 | { echo "$as_me:$LINENO: WARNING: fcntl.h: in the future, the compiler will take precedence" >&5 |
| 5094 | 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^] | 5095 | ( |
| 5096 | cat <<\_ASBOX |
| 5097 | ## ------------------------------------ ## |
| 5098 | ## Report this to the pjproject lists. ## |
| 5099 | ## ------------------------------------ ## |
| 5100 | _ASBOX |
| 5101 | ) | |
| 5102 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5103 | ;; |
| 5104 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5105 | echo "$as_me:$LINENO: checking for fcntl.h" >&5 |
| 5106 | echo $ECHO_N "checking for fcntl.h... $ECHO_C" >&6 |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5107 | if test "${ac_cv_header_fcntl_h+set}" = set; then |
| 5108 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5109 | else |
| 5110 | ac_cv_header_fcntl_h=$ac_header_preproc |
| 5111 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5112 | echo "$as_me:$LINENO: result: $ac_cv_header_fcntl_h" >&5 |
| 5113 | echo "${ECHO_T}$ac_cv_header_fcntl_h" >&6 |
Benny Prijono | 1d481ab | 2008-01-24 15:27:30 +0000 | [diff] [blame] | 5114 | |
| 5115 | fi |
| 5116 | if test $ac_cv_header_fcntl_h = yes; then |
| 5117 | cat >>confdefs.h <<\_ACEOF |
| 5118 | #define PJ_HAS_FCNTL_H 1 |
| 5119 | _ACEOF |
| 5120 | |
| 5121 | fi |
| 5122 | |
| 5123 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5124 | if test "${ac_cv_header_linux_socket_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5125 | echo "$as_me:$LINENO: checking for linux/socket.h" >&5 |
| 5126 | echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5127 | if test "${ac_cv_header_linux_socket_h+set}" = set; then |
| 5128 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5129 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5130 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5 |
| 5131 | echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5132 | else |
| 5133 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5134 | echo "$as_me:$LINENO: checking linux/socket.h usability" >&5 |
| 5135 | echo $ECHO_N "checking linux/socket.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5136 | cat >conftest.$ac_ext <<_ACEOF |
| 5137 | /* confdefs.h. */ |
| 5138 | _ACEOF |
| 5139 | cat confdefs.h >>conftest.$ac_ext |
| 5140 | cat >>conftest.$ac_ext <<_ACEOF |
| 5141 | /* end confdefs.h. */ |
| 5142 | $ac_includes_default |
| 5143 | #include <linux/socket.h> |
| 5144 | _ACEOF |
| 5145 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5146 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5147 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5148 | ac_status=$? |
| 5149 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5150 | rm -f conftest.er1 |
| 5151 | cat conftest.err >&5 |
| 5152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5153 | (exit $ac_status); } && |
| 5154 | { ac_try='test -z "$ac_c_werror_flag" |
| 5155 | || test ! -s conftest.err' |
| 5156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5157 | (eval $ac_try) 2>&5 |
| 5158 | ac_status=$? |
| 5159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5160 | (exit $ac_status); }; } && |
| 5161 | { ac_try='test -s conftest.$ac_objext' |
| 5162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5163 | (eval $ac_try) 2>&5 |
| 5164 | ac_status=$? |
| 5165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5166 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5167 | ac_header_compiler=yes |
| 5168 | else |
| 5169 | echo "$as_me: failed program was:" >&5 |
| 5170 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5171 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5172 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5173 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5174 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5175 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5176 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5177 | |
| 5178 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5179 | echo "$as_me:$LINENO: checking linux/socket.h presence" >&5 |
| 5180 | echo $ECHO_N "checking linux/socket.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5181 | cat >conftest.$ac_ext <<_ACEOF |
| 5182 | /* confdefs.h. */ |
| 5183 | _ACEOF |
| 5184 | cat confdefs.h >>conftest.$ac_ext |
| 5185 | cat >>conftest.$ac_ext <<_ACEOF |
| 5186 | /* end confdefs.h. */ |
| 5187 | #include <linux/socket.h> |
| 5188 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5189 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5190 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5191 | ac_status=$? |
| 5192 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5193 | rm -f conftest.er1 |
| 5194 | cat conftest.err >&5 |
| 5195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5196 | (exit $ac_status); } >/dev/null; then |
| 5197 | if test -s conftest.err; then |
| 5198 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5199 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5200 | else |
| 5201 | ac_cpp_err= |
| 5202 | fi |
| 5203 | else |
| 5204 | ac_cpp_err=yes |
| 5205 | fi |
| 5206 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5207 | ac_header_preproc=yes |
| 5208 | else |
| 5209 | echo "$as_me: failed program was:" >&5 |
| 5210 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5211 | |
| 5212 | ac_header_preproc=no |
| 5213 | fi |
| 5214 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5215 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5216 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5217 | |
| 5218 | # So? What about this header? |
| 5219 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5220 | yes:no: ) |
| 5221 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5222 | echo "$as_me: WARNING: linux/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5223 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the compiler's result" >&5 |
| 5224 | echo "$as_me: WARNING: linux/socket.h: proceeding with the compiler's result" >&2;} |
| 5225 | ac_header_preproc=yes |
| 5226 | ;; |
| 5227 | no:yes:* ) |
| 5228 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: present but cannot be compiled" >&5 |
| 5229 | echo "$as_me: WARNING: linux/socket.h: present but cannot be compiled" >&2;} |
| 5230 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: check for missing prerequisite headers?" >&5 |
| 5231 | echo "$as_me: WARNING: linux/socket.h: check for missing prerequisite headers?" >&2;} |
| 5232 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: see the Autoconf documentation" >&5 |
| 5233 | echo "$as_me: WARNING: linux/socket.h: see the Autoconf documentation" >&2;} |
| 5234 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5235 | echo "$as_me: WARNING: linux/socket.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5236 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&5 |
| 5237 | echo "$as_me: WARNING: linux/socket.h: proceeding with the preprocessor's result" >&2;} |
| 5238 | { echo "$as_me:$LINENO: WARNING: linux/socket.h: in the future, the compiler will take precedence" >&5 |
| 5239 | 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^] | 5240 | ( |
| 5241 | cat <<\_ASBOX |
| 5242 | ## ------------------------------------ ## |
| 5243 | ## Report this to the pjproject lists. ## |
| 5244 | ## ------------------------------------ ## |
| 5245 | _ASBOX |
| 5246 | ) | |
| 5247 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5248 | ;; |
| 5249 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5250 | echo "$as_me:$LINENO: checking for linux/socket.h" >&5 |
| 5251 | echo $ECHO_N "checking for linux/socket.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5252 | if test "${ac_cv_header_linux_socket_h+set}" = set; then |
| 5253 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5254 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5255 | ac_cv_header_linux_socket_h=$ac_header_preproc |
| 5256 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5257 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_socket_h" >&5 |
| 5258 | echo "${ECHO_T}$ac_cv_header_linux_socket_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5259 | |
| 5260 | fi |
| 5261 | if test $ac_cv_header_linux_socket_h = yes; then |
| 5262 | cat >>confdefs.h <<\_ACEOF |
| 5263 | #define PJ_HAS_LINUX_SOCKET_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5264 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5265 | |
| 5266 | fi |
| 5267 | |
| 5268 | |
| 5269 | if test "${ac_cv_header_malloc_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5270 | echo "$as_me:$LINENO: checking for malloc.h" >&5 |
| 5271 | echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5272 | if test "${ac_cv_header_malloc_h+set}" = set; then |
| 5273 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5274 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5275 | echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5 |
| 5276 | echo "${ECHO_T}$ac_cv_header_malloc_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5277 | else |
| 5278 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5279 | echo "$as_me:$LINENO: checking malloc.h usability" >&5 |
| 5280 | echo $ECHO_N "checking malloc.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5281 | cat >conftest.$ac_ext <<_ACEOF |
| 5282 | /* confdefs.h. */ |
| 5283 | _ACEOF |
| 5284 | cat confdefs.h >>conftest.$ac_ext |
| 5285 | cat >>conftest.$ac_ext <<_ACEOF |
| 5286 | /* end confdefs.h. */ |
| 5287 | $ac_includes_default |
| 5288 | #include <malloc.h> |
| 5289 | _ACEOF |
| 5290 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5291 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5292 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5293 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5294 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5295 | rm -f conftest.er1 |
| 5296 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5298 | (exit $ac_status); } && |
| 5299 | { ac_try='test -z "$ac_c_werror_flag" |
| 5300 | || test ! -s conftest.err' |
| 5301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5302 | (eval $ac_try) 2>&5 |
| 5303 | ac_status=$? |
| 5304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5305 | (exit $ac_status); }; } && |
| 5306 | { ac_try='test -s conftest.$ac_objext' |
| 5307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5308 | (eval $ac_try) 2>&5 |
| 5309 | ac_status=$? |
| 5310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5311 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5312 | ac_header_compiler=yes |
| 5313 | else |
| 5314 | echo "$as_me: failed program was:" >&5 |
| 5315 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5316 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5317 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5318 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5319 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5320 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5321 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5322 | |
| 5323 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5324 | echo "$as_me:$LINENO: checking malloc.h presence" >&5 |
| 5325 | echo $ECHO_N "checking malloc.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5326 | cat >conftest.$ac_ext <<_ACEOF |
| 5327 | /* confdefs.h. */ |
| 5328 | _ACEOF |
| 5329 | cat confdefs.h >>conftest.$ac_ext |
| 5330 | cat >>conftest.$ac_ext <<_ACEOF |
| 5331 | /* end confdefs.h. */ |
| 5332 | #include <malloc.h> |
| 5333 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5334 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5335 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5336 | ac_status=$? |
| 5337 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5338 | rm -f conftest.er1 |
| 5339 | cat conftest.err >&5 |
| 5340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5341 | (exit $ac_status); } >/dev/null; then |
| 5342 | if test -s conftest.err; then |
| 5343 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5344 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5345 | else |
| 5346 | ac_cpp_err= |
| 5347 | fi |
| 5348 | else |
| 5349 | ac_cpp_err=yes |
| 5350 | fi |
| 5351 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5352 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5353 | else |
| 5354 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5355 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5356 | |
| 5357 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5358 | fi |
| 5359 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5360 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5361 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5362 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5363 | # So? What about this header? |
| 5364 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5365 | yes:no: ) |
| 5366 | { echo "$as_me:$LINENO: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5367 | echo "$as_me: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5368 | { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the compiler's result" >&5 |
| 5369 | echo "$as_me: WARNING: malloc.h: proceeding with the compiler's result" >&2;} |
| 5370 | ac_header_preproc=yes |
| 5371 | ;; |
| 5372 | no:yes:* ) |
| 5373 | { echo "$as_me:$LINENO: WARNING: malloc.h: present but cannot be compiled" >&5 |
| 5374 | echo "$as_me: WARNING: malloc.h: present but cannot be compiled" >&2;} |
| 5375 | { echo "$as_me:$LINENO: WARNING: malloc.h: check for missing prerequisite headers?" >&5 |
| 5376 | echo "$as_me: WARNING: malloc.h: check for missing prerequisite headers?" >&2;} |
| 5377 | { echo "$as_me:$LINENO: WARNING: malloc.h: see the Autoconf documentation" >&5 |
| 5378 | echo "$as_me: WARNING: malloc.h: see the Autoconf documentation" >&2;} |
| 5379 | { echo "$as_me:$LINENO: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5380 | echo "$as_me: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5381 | { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the preprocessor's result" >&5 |
| 5382 | echo "$as_me: WARNING: malloc.h: proceeding with the preprocessor's result" >&2;} |
| 5383 | { echo "$as_me:$LINENO: WARNING: malloc.h: in the future, the compiler will take precedence" >&5 |
| 5384 | 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^] | 5385 | ( |
| 5386 | cat <<\_ASBOX |
| 5387 | ## ------------------------------------ ## |
| 5388 | ## Report this to the pjproject lists. ## |
| 5389 | ## ------------------------------------ ## |
| 5390 | _ASBOX |
| 5391 | ) | |
| 5392 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5393 | ;; |
| 5394 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5395 | echo "$as_me:$LINENO: checking for malloc.h" >&5 |
| 5396 | echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5397 | if test "${ac_cv_header_malloc_h+set}" = set; then |
| 5398 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5399 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5400 | ac_cv_header_malloc_h=$ac_header_preproc |
| 5401 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5402 | echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5 |
| 5403 | echo "${ECHO_T}$ac_cv_header_malloc_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5404 | |
| 5405 | fi |
| 5406 | if test $ac_cv_header_malloc_h = yes; then |
| 5407 | cat >>confdefs.h <<\_ACEOF |
| 5408 | #define PJ_HAS_MALLOC_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5409 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5410 | |
| 5411 | fi |
| 5412 | |
| 5413 | |
| 5414 | if test "${ac_cv_header_netdb_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5415 | echo "$as_me:$LINENO: checking for netdb.h" >&5 |
| 5416 | echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5417 | if test "${ac_cv_header_netdb_h+set}" = set; then |
| 5418 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5419 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5420 | echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5 |
| 5421 | echo "${ECHO_T}$ac_cv_header_netdb_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5422 | else |
| 5423 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5424 | echo "$as_me:$LINENO: checking netdb.h usability" >&5 |
| 5425 | echo $ECHO_N "checking netdb.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5426 | cat >conftest.$ac_ext <<_ACEOF |
| 5427 | /* confdefs.h. */ |
| 5428 | _ACEOF |
| 5429 | cat confdefs.h >>conftest.$ac_ext |
| 5430 | cat >>conftest.$ac_ext <<_ACEOF |
| 5431 | /* end confdefs.h. */ |
| 5432 | $ac_includes_default |
| 5433 | #include <netdb.h> |
| 5434 | _ACEOF |
| 5435 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5436 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5437 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5438 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5439 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5440 | rm -f conftest.er1 |
| 5441 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5443 | (exit $ac_status); } && |
| 5444 | { ac_try='test -z "$ac_c_werror_flag" |
| 5445 | || test ! -s conftest.err' |
| 5446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5447 | (eval $ac_try) 2>&5 |
| 5448 | ac_status=$? |
| 5449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5450 | (exit $ac_status); }; } && |
| 5451 | { ac_try='test -s conftest.$ac_objext' |
| 5452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5453 | (eval $ac_try) 2>&5 |
| 5454 | ac_status=$? |
| 5455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5456 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5457 | ac_header_compiler=yes |
| 5458 | else |
| 5459 | echo "$as_me: failed program was:" >&5 |
| 5460 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5461 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5462 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5463 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5464 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5465 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5466 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5467 | |
| 5468 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5469 | echo "$as_me:$LINENO: checking netdb.h presence" >&5 |
| 5470 | echo $ECHO_N "checking netdb.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5471 | cat >conftest.$ac_ext <<_ACEOF |
| 5472 | /* confdefs.h. */ |
| 5473 | _ACEOF |
| 5474 | cat confdefs.h >>conftest.$ac_ext |
| 5475 | cat >>conftest.$ac_ext <<_ACEOF |
| 5476 | /* end confdefs.h. */ |
| 5477 | #include <netdb.h> |
| 5478 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5479 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5480 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5481 | ac_status=$? |
| 5482 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5483 | rm -f conftest.er1 |
| 5484 | cat conftest.err >&5 |
| 5485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5486 | (exit $ac_status); } >/dev/null; then |
| 5487 | if test -s conftest.err; then |
| 5488 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5489 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5490 | else |
| 5491 | ac_cpp_err= |
| 5492 | fi |
| 5493 | else |
| 5494 | ac_cpp_err=yes |
| 5495 | fi |
| 5496 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5497 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5498 | else |
| 5499 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5500 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5501 | |
| 5502 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5503 | fi |
| 5504 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5505 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5506 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5507 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5508 | # So? What about this header? |
| 5509 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5510 | yes:no: ) |
| 5511 | { echo "$as_me:$LINENO: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5512 | echo "$as_me: WARNING: netdb.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5513 | { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the compiler's result" >&5 |
| 5514 | echo "$as_me: WARNING: netdb.h: proceeding with the compiler's result" >&2;} |
| 5515 | ac_header_preproc=yes |
| 5516 | ;; |
| 5517 | no:yes:* ) |
| 5518 | { echo "$as_me:$LINENO: WARNING: netdb.h: present but cannot be compiled" >&5 |
| 5519 | echo "$as_me: WARNING: netdb.h: present but cannot be compiled" >&2;} |
| 5520 | { echo "$as_me:$LINENO: WARNING: netdb.h: check for missing prerequisite headers?" >&5 |
| 5521 | echo "$as_me: WARNING: netdb.h: check for missing prerequisite headers?" >&2;} |
| 5522 | { echo "$as_me:$LINENO: WARNING: netdb.h: see the Autoconf documentation" >&5 |
| 5523 | echo "$as_me: WARNING: netdb.h: see the Autoconf documentation" >&2;} |
| 5524 | { echo "$as_me:$LINENO: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5525 | echo "$as_me: WARNING: netdb.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5526 | { echo "$as_me:$LINENO: WARNING: netdb.h: proceeding with the preprocessor's result" >&5 |
| 5527 | echo "$as_me: WARNING: netdb.h: proceeding with the preprocessor's result" >&2;} |
| 5528 | { echo "$as_me:$LINENO: WARNING: netdb.h: in the future, the compiler will take precedence" >&5 |
| 5529 | 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^] | 5530 | ( |
| 5531 | cat <<\_ASBOX |
| 5532 | ## ------------------------------------ ## |
| 5533 | ## Report this to the pjproject lists. ## |
| 5534 | ## ------------------------------------ ## |
| 5535 | _ASBOX |
| 5536 | ) | |
| 5537 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5538 | ;; |
| 5539 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5540 | echo "$as_me:$LINENO: checking for netdb.h" >&5 |
| 5541 | echo $ECHO_N "checking for netdb.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5542 | if test "${ac_cv_header_netdb_h+set}" = set; then |
| 5543 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5544 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5545 | ac_cv_header_netdb_h=$ac_header_preproc |
| 5546 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5547 | echo "$as_me:$LINENO: result: $ac_cv_header_netdb_h" >&5 |
| 5548 | echo "${ECHO_T}$ac_cv_header_netdb_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5549 | |
| 5550 | fi |
| 5551 | if test $ac_cv_header_netdb_h = yes; then |
| 5552 | cat >>confdefs.h <<\_ACEOF |
| 5553 | #define PJ_HAS_NETDB_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5554 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5555 | |
| 5556 | fi |
| 5557 | |
| 5558 | |
| 5559 | if test "${ac_cv_header_netinet_in_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5560 | echo "$as_me:$LINENO: checking for netinet/in.h" >&5 |
| 5561 | echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5562 | if test "${ac_cv_header_netinet_in_h+set}" = set; then |
| 5563 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5564 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5565 | echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5 |
| 5566 | echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5567 | else |
| 5568 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5569 | echo "$as_me:$LINENO: checking netinet/in.h usability" >&5 |
| 5570 | echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5571 | cat >conftest.$ac_ext <<_ACEOF |
| 5572 | /* confdefs.h. */ |
| 5573 | _ACEOF |
| 5574 | cat confdefs.h >>conftest.$ac_ext |
| 5575 | cat >>conftest.$ac_ext <<_ACEOF |
| 5576 | /* end confdefs.h. */ |
| 5577 | $ac_includes_default |
| 5578 | #include <netinet/in.h> |
| 5579 | _ACEOF |
| 5580 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5581 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5582 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5583 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5584 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5585 | rm -f conftest.er1 |
| 5586 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5588 | (exit $ac_status); } && |
| 5589 | { ac_try='test -z "$ac_c_werror_flag" |
| 5590 | || test ! -s conftest.err' |
| 5591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5592 | (eval $ac_try) 2>&5 |
| 5593 | ac_status=$? |
| 5594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5595 | (exit $ac_status); }; } && |
| 5596 | { ac_try='test -s conftest.$ac_objext' |
| 5597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5598 | (eval $ac_try) 2>&5 |
| 5599 | ac_status=$? |
| 5600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5601 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5602 | ac_header_compiler=yes |
| 5603 | else |
| 5604 | echo "$as_me: failed program was:" >&5 |
| 5605 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5606 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5607 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5608 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5609 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5610 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5611 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5612 | |
| 5613 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5614 | echo "$as_me:$LINENO: checking netinet/in.h presence" >&5 |
| 5615 | echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5616 | cat >conftest.$ac_ext <<_ACEOF |
| 5617 | /* confdefs.h. */ |
| 5618 | _ACEOF |
| 5619 | cat confdefs.h >>conftest.$ac_ext |
| 5620 | cat >>conftest.$ac_ext <<_ACEOF |
| 5621 | /* end confdefs.h. */ |
| 5622 | #include <netinet/in.h> |
| 5623 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5624 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5625 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5626 | ac_status=$? |
| 5627 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5628 | rm -f conftest.er1 |
| 5629 | cat conftest.err >&5 |
| 5630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5631 | (exit $ac_status); } >/dev/null; then |
| 5632 | if test -s conftest.err; then |
| 5633 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5634 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5635 | else |
| 5636 | ac_cpp_err= |
| 5637 | fi |
| 5638 | else |
| 5639 | ac_cpp_err=yes |
| 5640 | fi |
| 5641 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5642 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5643 | else |
| 5644 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5645 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5646 | |
| 5647 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 5648 | fi |
| 5649 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5650 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5651 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5652 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5653 | # So? What about this header? |
| 5654 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5655 | yes:no: ) |
| 5656 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5657 | echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5658 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5 |
| 5659 | echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;} |
| 5660 | ac_header_preproc=yes |
| 5661 | ;; |
| 5662 | no:yes:* ) |
| 5663 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5 |
| 5664 | echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;} |
| 5665 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5 |
| 5666 | echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;} |
| 5667 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5 |
| 5668 | echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;} |
| 5669 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5670 | echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5671 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5 |
| 5672 | echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;} |
| 5673 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5 |
| 5674 | 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^] | 5675 | ( |
| 5676 | cat <<\_ASBOX |
| 5677 | ## ------------------------------------ ## |
| 5678 | ## Report this to the pjproject lists. ## |
| 5679 | ## ------------------------------------ ## |
| 5680 | _ASBOX |
| 5681 | ) | |
| 5682 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5683 | ;; |
| 5684 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5685 | echo "$as_me:$LINENO: checking for netinet/in.h" >&5 |
| 5686 | echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5687 | if test "${ac_cv_header_netinet_in_h+set}" = set; then |
| 5688 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5689 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5690 | ac_cv_header_netinet_in_h=$ac_header_preproc |
| 5691 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5692 | echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5 |
| 5693 | echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5694 | |
| 5695 | fi |
| 5696 | if test $ac_cv_header_netinet_in_h = yes; then |
| 5697 | cat >>confdefs.h <<\_ACEOF |
| 5698 | #define PJ_HAS_NETINET_IN_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 5699 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 5700 | |
| 5701 | fi |
| 5702 | |
| 5703 | |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 5704 | if test "${ac_cv_header_netinet_ip_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5705 | echo "$as_me:$LINENO: checking for netinet/ip.h" >&5 |
| 5706 | echo $ECHO_N "checking for netinet/ip.h... $ECHO_C" >&6 |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 5707 | if test "${ac_cv_header_netinet_ip_h+set}" = set; then |
| 5708 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5709 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5710 | echo "$as_me:$LINENO: result: $ac_cv_header_netinet_ip_h" >&5 |
| 5711 | echo "${ECHO_T}$ac_cv_header_netinet_ip_h" >&6 |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 5712 | else |
| 5713 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5714 | echo "$as_me:$LINENO: checking netinet/ip.h usability" >&5 |
| 5715 | echo $ECHO_N "checking netinet/ip.h usability... $ECHO_C" >&6 |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 5716 | cat >conftest.$ac_ext <<_ACEOF |
| 5717 | /* confdefs.h. */ |
| 5718 | _ACEOF |
| 5719 | cat confdefs.h >>conftest.$ac_ext |
| 5720 | cat >>conftest.$ac_ext <<_ACEOF |
| 5721 | /* end confdefs.h. */ |
| 5722 | $ac_includes_default |
| 5723 | #include <netinet/ip.h> |
| 5724 | _ACEOF |
| 5725 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5726 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5727 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 5728 | ac_status=$? |
| 5729 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5730 | rm -f conftest.er1 |
| 5731 | cat conftest.err >&5 |
| 5732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5733 | (exit $ac_status); } && |
| 5734 | { ac_try='test -z "$ac_c_werror_flag" |
| 5735 | || test ! -s conftest.err' |
| 5736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5737 | (eval $ac_try) 2>&5 |
| 5738 | ac_status=$? |
| 5739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5740 | (exit $ac_status); }; } && |
| 5741 | { ac_try='test -s conftest.$ac_objext' |
| 5742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5743 | (eval $ac_try) 2>&5 |
| 5744 | ac_status=$? |
| 5745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5746 | (exit $ac_status); }; }; then |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 5747 | ac_header_compiler=yes |
| 5748 | else |
| 5749 | echo "$as_me: failed program was:" >&5 |
| 5750 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5751 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5752 | ac_header_compiler=no |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 5753 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5754 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5755 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5756 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 5757 | |
| 5758 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5759 | echo "$as_me:$LINENO: checking netinet/ip.h presence" >&5 |
| 5760 | echo $ECHO_N "checking netinet/ip.h presence... $ECHO_C" >&6 |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 5761 | cat >conftest.$ac_ext <<_ACEOF |
| 5762 | /* confdefs.h. */ |
| 5763 | _ACEOF |
| 5764 | cat confdefs.h >>conftest.$ac_ext |
| 5765 | cat >>conftest.$ac_ext <<_ACEOF |
| 5766 | /* end confdefs.h. */ |
| 5767 | #include <netinet/ip.h> |
| 5768 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5769 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5770 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 5771 | ac_status=$? |
| 5772 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5773 | rm -f conftest.er1 |
| 5774 | cat conftest.err >&5 |
| 5775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5776 | (exit $ac_status); } >/dev/null; then |
| 5777 | if test -s conftest.err; then |
| 5778 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5779 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5780 | else |
| 5781 | ac_cpp_err= |
| 5782 | fi |
| 5783 | else |
| 5784 | ac_cpp_err=yes |
| 5785 | fi |
| 5786 | if test -z "$ac_cpp_err"; then |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 5787 | ac_header_preproc=yes |
| 5788 | else |
| 5789 | echo "$as_me: failed program was:" >&5 |
| 5790 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5791 | |
| 5792 | ac_header_preproc=no |
| 5793 | fi |
| 5794 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5795 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5796 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 5797 | |
| 5798 | # So? What about this header? |
| 5799 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5800 | yes:no: ) |
| 5801 | { echo "$as_me:$LINENO: WARNING: netinet/ip.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5802 | echo "$as_me: WARNING: netinet/ip.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5803 | { echo "$as_me:$LINENO: WARNING: netinet/ip.h: proceeding with the compiler's result" >&5 |
| 5804 | echo "$as_me: WARNING: netinet/ip.h: proceeding with the compiler's result" >&2;} |
| 5805 | ac_header_preproc=yes |
| 5806 | ;; |
| 5807 | no:yes:* ) |
| 5808 | { echo "$as_me:$LINENO: WARNING: netinet/ip.h: present but cannot be compiled" >&5 |
| 5809 | echo "$as_me: WARNING: netinet/ip.h: present but cannot be compiled" >&2;} |
| 5810 | { echo "$as_me:$LINENO: WARNING: netinet/ip.h: check for missing prerequisite headers?" >&5 |
| 5811 | echo "$as_me: WARNING: netinet/ip.h: check for missing prerequisite headers?" >&2;} |
| 5812 | { echo "$as_me:$LINENO: WARNING: netinet/ip.h: see the Autoconf documentation" >&5 |
| 5813 | echo "$as_me: WARNING: netinet/ip.h: see the Autoconf documentation" >&2;} |
| 5814 | { echo "$as_me:$LINENO: WARNING: netinet/ip.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5815 | echo "$as_me: WARNING: netinet/ip.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5816 | { echo "$as_me:$LINENO: WARNING: netinet/ip.h: proceeding with the preprocessor's result" >&5 |
| 5817 | echo "$as_me: WARNING: netinet/ip.h: proceeding with the preprocessor's result" >&2;} |
| 5818 | { echo "$as_me:$LINENO: WARNING: netinet/ip.h: in the future, the compiler will take precedence" >&5 |
| 5819 | echo "$as_me: WARNING: netinet/ip.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5820 | ( |
| 5821 | cat <<\_ASBOX |
| 5822 | ## ------------------------------------ ## |
| 5823 | ## Report this to the pjproject lists. ## |
| 5824 | ## ------------------------------------ ## |
| 5825 | _ASBOX |
| 5826 | ) | |
| 5827 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 5828 | ;; |
| 5829 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5830 | echo "$as_me:$LINENO: checking for netinet/ip.h" >&5 |
| 5831 | echo $ECHO_N "checking for netinet/ip.h... $ECHO_C" >&6 |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 5832 | if test "${ac_cv_header_netinet_ip_h+set}" = set; then |
| 5833 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5834 | else |
| 5835 | ac_cv_header_netinet_ip_h=$ac_header_preproc |
| 5836 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5837 | echo "$as_me:$LINENO: result: $ac_cv_header_netinet_ip_h" >&5 |
| 5838 | echo "${ECHO_T}$ac_cv_header_netinet_ip_h" >&6 |
Benny Prijono | f63a255 | 2007-02-01 00:36:52 +0000 | [diff] [blame] | 5839 | |
| 5840 | fi |
| 5841 | if test $ac_cv_header_netinet_ip_h = yes; then |
| 5842 | cat >>confdefs.h <<\_ACEOF |
| 5843 | #define PJ_HAS_NETINET_IP_H 1 |
| 5844 | _ACEOF |
| 5845 | |
| 5846 | fi |
| 5847 | |
| 5848 | |
Benny Prijono | 0ae59ae | 2007-11-17 10:27:34 +0000 | [diff] [blame] | 5849 | if test "${ac_cv_header_net_if_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5850 | echo "$as_me:$LINENO: checking for net/if.h" >&5 |
| 5851 | echo $ECHO_N "checking for net/if.h... $ECHO_C" >&6 |
Benny Prijono | 0ae59ae | 2007-11-17 10:27:34 +0000 | [diff] [blame] | 5852 | if test "${ac_cv_header_net_if_h+set}" = set; then |
| 5853 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5854 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5855 | echo "$as_me:$LINENO: result: $ac_cv_header_net_if_h" >&5 |
| 5856 | echo "${ECHO_T}$ac_cv_header_net_if_h" >&6 |
Benny Prijono | 0ae59ae | 2007-11-17 10:27:34 +0000 | [diff] [blame] | 5857 | else |
| 5858 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5859 | echo "$as_me:$LINENO: checking net/if.h usability" >&5 |
| 5860 | echo $ECHO_N "checking net/if.h usability... $ECHO_C" >&6 |
Benny Prijono | 0ae59ae | 2007-11-17 10:27:34 +0000 | [diff] [blame] | 5861 | cat >conftest.$ac_ext <<_ACEOF |
| 5862 | /* confdefs.h. */ |
| 5863 | _ACEOF |
| 5864 | cat confdefs.h >>conftest.$ac_ext |
| 5865 | cat >>conftest.$ac_ext <<_ACEOF |
| 5866 | /* end confdefs.h. */ |
| 5867 | $ac_includes_default |
| 5868 | #include <net/if.h> |
| 5869 | _ACEOF |
| 5870 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5871 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5872 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 0ae59ae | 2007-11-17 10:27:34 +0000 | [diff] [blame] | 5873 | ac_status=$? |
| 5874 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5875 | rm -f conftest.er1 |
| 5876 | cat conftest.err >&5 |
| 5877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5878 | (exit $ac_status); } && |
| 5879 | { ac_try='test -z "$ac_c_werror_flag" |
| 5880 | || test ! -s conftest.err' |
| 5881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5882 | (eval $ac_try) 2>&5 |
| 5883 | ac_status=$? |
| 5884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5885 | (exit $ac_status); }; } && |
| 5886 | { ac_try='test -s conftest.$ac_objext' |
| 5887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5888 | (eval $ac_try) 2>&5 |
| 5889 | ac_status=$? |
| 5890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5891 | (exit $ac_status); }; }; then |
Benny Prijono | 0ae59ae | 2007-11-17 10:27:34 +0000 | [diff] [blame] | 5892 | ac_header_compiler=yes |
| 5893 | else |
| 5894 | echo "$as_me: failed program was:" >&5 |
| 5895 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5896 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5897 | ac_header_compiler=no |
Benny Prijono | 0ae59ae | 2007-11-17 10:27:34 +0000 | [diff] [blame] | 5898 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5899 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5900 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5901 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 0ae59ae | 2007-11-17 10:27:34 +0000 | [diff] [blame] | 5902 | |
| 5903 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5904 | echo "$as_me:$LINENO: checking net/if.h presence" >&5 |
| 5905 | echo $ECHO_N "checking net/if.h presence... $ECHO_C" >&6 |
Benny Prijono | 0ae59ae | 2007-11-17 10:27:34 +0000 | [diff] [blame] | 5906 | cat >conftest.$ac_ext <<_ACEOF |
| 5907 | /* confdefs.h. */ |
| 5908 | _ACEOF |
| 5909 | cat confdefs.h >>conftest.$ac_ext |
| 5910 | cat >>conftest.$ac_ext <<_ACEOF |
| 5911 | /* end confdefs.h. */ |
| 5912 | #include <net/if.h> |
| 5913 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5914 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5915 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 0ae59ae | 2007-11-17 10:27:34 +0000 | [diff] [blame] | 5916 | ac_status=$? |
| 5917 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5918 | rm -f conftest.er1 |
| 5919 | cat conftest.err >&5 |
| 5920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5921 | (exit $ac_status); } >/dev/null; then |
| 5922 | if test -s conftest.err; then |
| 5923 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5924 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5925 | else |
| 5926 | ac_cpp_err= |
| 5927 | fi |
| 5928 | else |
| 5929 | ac_cpp_err=yes |
| 5930 | fi |
| 5931 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 0ae59ae | 2007-11-17 10:27:34 +0000 | [diff] [blame] | 5932 | ac_header_preproc=yes |
| 5933 | else |
| 5934 | echo "$as_me: failed program was:" >&5 |
| 5935 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5936 | |
| 5937 | ac_header_preproc=no |
| 5938 | fi |
| 5939 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5940 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5941 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | 0ae59ae | 2007-11-17 10:27:34 +0000 | [diff] [blame] | 5942 | |
| 5943 | # So? What about this header? |
| 5944 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5945 | yes:no: ) |
| 5946 | { echo "$as_me:$LINENO: WARNING: net/if.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5947 | echo "$as_me: WARNING: net/if.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5948 | { echo "$as_me:$LINENO: WARNING: net/if.h: proceeding with the compiler's result" >&5 |
| 5949 | echo "$as_me: WARNING: net/if.h: proceeding with the compiler's result" >&2;} |
| 5950 | ac_header_preproc=yes |
| 5951 | ;; |
| 5952 | no:yes:* ) |
| 5953 | { echo "$as_me:$LINENO: WARNING: net/if.h: present but cannot be compiled" >&5 |
| 5954 | echo "$as_me: WARNING: net/if.h: present but cannot be compiled" >&2;} |
| 5955 | { echo "$as_me:$LINENO: WARNING: net/if.h: check for missing prerequisite headers?" >&5 |
| 5956 | echo "$as_me: WARNING: net/if.h: check for missing prerequisite headers?" >&2;} |
| 5957 | { echo "$as_me:$LINENO: WARNING: net/if.h: see the Autoconf documentation" >&5 |
| 5958 | echo "$as_me: WARNING: net/if.h: see the Autoconf documentation" >&2;} |
| 5959 | { echo "$as_me:$LINENO: WARNING: net/if.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5960 | echo "$as_me: WARNING: net/if.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5961 | { echo "$as_me:$LINENO: WARNING: net/if.h: proceeding with the preprocessor's result" >&5 |
| 5962 | echo "$as_me: WARNING: net/if.h: proceeding with the preprocessor's result" >&2;} |
| 5963 | { echo "$as_me:$LINENO: WARNING: net/if.h: in the future, the compiler will take precedence" >&5 |
| 5964 | echo "$as_me: WARNING: net/if.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5965 | ( |
| 5966 | cat <<\_ASBOX |
| 5967 | ## ------------------------------------ ## |
| 5968 | ## Report this to the pjproject lists. ## |
| 5969 | ## ------------------------------------ ## |
| 5970 | _ASBOX |
| 5971 | ) | |
| 5972 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 0ae59ae | 2007-11-17 10:27:34 +0000 | [diff] [blame] | 5973 | ;; |
| 5974 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5975 | echo "$as_me:$LINENO: checking for net/if.h" >&5 |
| 5976 | echo $ECHO_N "checking for net/if.h... $ECHO_C" >&6 |
Benny Prijono | 0ae59ae | 2007-11-17 10:27:34 +0000 | [diff] [blame] | 5977 | if test "${ac_cv_header_net_if_h+set}" = set; then |
| 5978 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5979 | else |
| 5980 | ac_cv_header_net_if_h=$ac_header_preproc |
| 5981 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5982 | echo "$as_me:$LINENO: result: $ac_cv_header_net_if_h" >&5 |
| 5983 | echo "${ECHO_T}$ac_cv_header_net_if_h" >&6 |
Benny Prijono | 0ae59ae | 2007-11-17 10:27:34 +0000 | [diff] [blame] | 5984 | |
| 5985 | fi |
| 5986 | if test $ac_cv_header_net_if_h = yes; then |
| 5987 | cat >>confdefs.h <<\_ACEOF |
| 5988 | #define PJ_HAS_NET_IF_H 1 |
| 5989 | _ACEOF |
| 5990 | |
| 5991 | fi |
| 5992 | |
| 5993 | |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 5994 | if test "${ac_cv_header_ifaddrs_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 5995 | echo "$as_me:$LINENO: checking for ifaddrs.h" >&5 |
| 5996 | echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6 |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 5997 | if test "${ac_cv_header_ifaddrs_h+set}" = set; then |
| 5998 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5999 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6000 | echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5 |
| 6001 | echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6 |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6002 | else |
| 6003 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6004 | echo "$as_me:$LINENO: checking ifaddrs.h usability" >&5 |
| 6005 | echo $ECHO_N "checking ifaddrs.h usability... $ECHO_C" >&6 |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6006 | cat >conftest.$ac_ext <<_ACEOF |
| 6007 | /* confdefs.h. */ |
| 6008 | _ACEOF |
| 6009 | cat confdefs.h >>conftest.$ac_ext |
| 6010 | cat >>conftest.$ac_ext <<_ACEOF |
| 6011 | /* end confdefs.h. */ |
| 6012 | $ac_includes_default |
| 6013 | #include <ifaddrs.h> |
| 6014 | _ACEOF |
| 6015 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6016 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6017 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6018 | ac_status=$? |
| 6019 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6020 | rm -f conftest.er1 |
| 6021 | cat conftest.err >&5 |
| 6022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6023 | (exit $ac_status); } && |
| 6024 | { ac_try='test -z "$ac_c_werror_flag" |
| 6025 | || test ! -s conftest.err' |
| 6026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6027 | (eval $ac_try) 2>&5 |
| 6028 | ac_status=$? |
| 6029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6030 | (exit $ac_status); }; } && |
| 6031 | { ac_try='test -s conftest.$ac_objext' |
| 6032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6033 | (eval $ac_try) 2>&5 |
| 6034 | ac_status=$? |
| 6035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6036 | (exit $ac_status); }; }; then |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6037 | ac_header_compiler=yes |
| 6038 | else |
| 6039 | echo "$as_me: failed program was:" >&5 |
| 6040 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6041 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6042 | ac_header_compiler=no |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6043 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6044 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6045 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6046 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6047 | |
| 6048 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6049 | echo "$as_me:$LINENO: checking ifaddrs.h presence" >&5 |
| 6050 | echo $ECHO_N "checking ifaddrs.h presence... $ECHO_C" >&6 |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6051 | cat >conftest.$ac_ext <<_ACEOF |
| 6052 | /* confdefs.h. */ |
| 6053 | _ACEOF |
| 6054 | cat confdefs.h >>conftest.$ac_ext |
| 6055 | cat >>conftest.$ac_ext <<_ACEOF |
| 6056 | /* end confdefs.h. */ |
| 6057 | #include <ifaddrs.h> |
| 6058 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6059 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6060 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6061 | ac_status=$? |
| 6062 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6063 | rm -f conftest.er1 |
| 6064 | cat conftest.err >&5 |
| 6065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6066 | (exit $ac_status); } >/dev/null; then |
| 6067 | if test -s conftest.err; then |
| 6068 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 6069 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 6070 | else |
| 6071 | ac_cpp_err= |
| 6072 | fi |
| 6073 | else |
| 6074 | ac_cpp_err=yes |
| 6075 | fi |
| 6076 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6077 | ac_header_preproc=yes |
| 6078 | else |
| 6079 | echo "$as_me: failed program was:" >&5 |
| 6080 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6081 | |
| 6082 | ac_header_preproc=no |
| 6083 | fi |
| 6084 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6085 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6086 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6087 | |
| 6088 | # So? What about this header? |
| 6089 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6090 | yes:no: ) |
| 6091 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6092 | echo "$as_me: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6093 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the compiler's result" >&5 |
| 6094 | echo "$as_me: WARNING: ifaddrs.h: proceeding with the compiler's result" >&2;} |
| 6095 | ac_header_preproc=yes |
| 6096 | ;; |
| 6097 | no:yes:* ) |
| 6098 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: present but cannot be compiled" >&5 |
| 6099 | echo "$as_me: WARNING: ifaddrs.h: present but cannot be compiled" >&2;} |
| 6100 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&5 |
| 6101 | echo "$as_me: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&2;} |
| 6102 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: see the Autoconf documentation" >&5 |
| 6103 | echo "$as_me: WARNING: ifaddrs.h: see the Autoconf documentation" >&2;} |
| 6104 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6105 | echo "$as_me: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6106 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&5 |
| 6107 | echo "$as_me: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&2;} |
| 6108 | { echo "$as_me:$LINENO: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&5 |
| 6109 | 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^] | 6110 | ( |
| 6111 | cat <<\_ASBOX |
| 6112 | ## ------------------------------------ ## |
| 6113 | ## Report this to the pjproject lists. ## |
| 6114 | ## ------------------------------------ ## |
| 6115 | _ASBOX |
| 6116 | ) | |
| 6117 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6118 | ;; |
| 6119 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6120 | echo "$as_me:$LINENO: checking for ifaddrs.h" >&5 |
| 6121 | echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6 |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6122 | if test "${ac_cv_header_ifaddrs_h+set}" = set; then |
| 6123 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6124 | else |
| 6125 | ac_cv_header_ifaddrs_h=$ac_header_preproc |
| 6126 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6127 | echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5 |
| 6128 | echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6 |
Benny Prijono | 1d65f70 | 2007-12-03 04:03:17 +0000 | [diff] [blame] | 6129 | |
| 6130 | fi |
| 6131 | if test $ac_cv_header_ifaddrs_h = yes; then |
| 6132 | cat >>confdefs.h <<\_ACEOF |
| 6133 | #define PJ_HAS_IFADDRS_H 1 |
| 6134 | _ACEOF |
| 6135 | |
| 6136 | fi |
| 6137 | |
| 6138 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6139 | if test "${ac_cv_header_semaphore_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6140 | echo "$as_me:$LINENO: checking for semaphore.h" >&5 |
| 6141 | echo $ECHO_N "checking for semaphore.h... $ECHO_C" >&6 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6142 | if test "${ac_cv_header_semaphore_h+set}" = set; then |
| 6143 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6144 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6145 | echo "$as_me:$LINENO: result: $ac_cv_header_semaphore_h" >&5 |
| 6146 | echo "${ECHO_T}$ac_cv_header_semaphore_h" >&6 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6147 | else |
| 6148 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6149 | echo "$as_me:$LINENO: checking semaphore.h usability" >&5 |
| 6150 | echo $ECHO_N "checking semaphore.h usability... $ECHO_C" >&6 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6151 | cat >conftest.$ac_ext <<_ACEOF |
| 6152 | /* confdefs.h. */ |
| 6153 | _ACEOF |
| 6154 | cat confdefs.h >>conftest.$ac_ext |
| 6155 | cat >>conftest.$ac_ext <<_ACEOF |
| 6156 | /* end confdefs.h. */ |
| 6157 | $ac_includes_default |
| 6158 | #include <semaphore.h> |
| 6159 | _ACEOF |
| 6160 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6161 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6162 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6163 | ac_status=$? |
| 6164 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6165 | rm -f conftest.er1 |
| 6166 | cat conftest.err >&5 |
| 6167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6168 | (exit $ac_status); } && |
| 6169 | { ac_try='test -z "$ac_c_werror_flag" |
| 6170 | || test ! -s conftest.err' |
| 6171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6172 | (eval $ac_try) 2>&5 |
| 6173 | ac_status=$? |
| 6174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6175 | (exit $ac_status); }; } && |
| 6176 | { ac_try='test -s conftest.$ac_objext' |
| 6177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6178 | (eval $ac_try) 2>&5 |
| 6179 | ac_status=$? |
| 6180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6181 | (exit $ac_status); }; }; then |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6182 | ac_header_compiler=yes |
| 6183 | else |
| 6184 | echo "$as_me: failed program was:" >&5 |
| 6185 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6186 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6187 | ac_header_compiler=no |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6188 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6189 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6190 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6191 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6192 | |
| 6193 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6194 | echo "$as_me:$LINENO: checking semaphore.h presence" >&5 |
| 6195 | echo $ECHO_N "checking semaphore.h presence... $ECHO_C" >&6 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6196 | cat >conftest.$ac_ext <<_ACEOF |
| 6197 | /* confdefs.h. */ |
| 6198 | _ACEOF |
| 6199 | cat confdefs.h >>conftest.$ac_ext |
| 6200 | cat >>conftest.$ac_ext <<_ACEOF |
| 6201 | /* end confdefs.h. */ |
| 6202 | #include <semaphore.h> |
| 6203 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6204 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6205 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6206 | ac_status=$? |
| 6207 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6208 | rm -f conftest.er1 |
| 6209 | cat conftest.err >&5 |
| 6210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6211 | (exit $ac_status); } >/dev/null; then |
| 6212 | if test -s conftest.err; then |
| 6213 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 6214 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 6215 | else |
| 6216 | ac_cpp_err= |
| 6217 | fi |
| 6218 | else |
| 6219 | ac_cpp_err=yes |
| 6220 | fi |
| 6221 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6222 | ac_header_preproc=yes |
| 6223 | else |
| 6224 | echo "$as_me: failed program was:" >&5 |
| 6225 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6226 | |
| 6227 | ac_header_preproc=no |
| 6228 | fi |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6229 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6230 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6231 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6232 | |
| 6233 | # So? What about this header? |
| 6234 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6235 | yes:no: ) |
| 6236 | { echo "$as_me:$LINENO: WARNING: semaphore.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6237 | echo "$as_me: WARNING: semaphore.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6238 | { echo "$as_me:$LINENO: WARNING: semaphore.h: proceeding with the compiler's result" >&5 |
| 6239 | echo "$as_me: WARNING: semaphore.h: proceeding with the compiler's result" >&2;} |
| 6240 | ac_header_preproc=yes |
| 6241 | ;; |
| 6242 | no:yes:* ) |
| 6243 | { echo "$as_me:$LINENO: WARNING: semaphore.h: present but cannot be compiled" >&5 |
| 6244 | echo "$as_me: WARNING: semaphore.h: present but cannot be compiled" >&2;} |
| 6245 | { echo "$as_me:$LINENO: WARNING: semaphore.h: check for missing prerequisite headers?" >&5 |
| 6246 | echo "$as_me: WARNING: semaphore.h: check for missing prerequisite headers?" >&2;} |
| 6247 | { echo "$as_me:$LINENO: WARNING: semaphore.h: see the Autoconf documentation" >&5 |
| 6248 | echo "$as_me: WARNING: semaphore.h: see the Autoconf documentation" >&2;} |
| 6249 | { echo "$as_me:$LINENO: WARNING: semaphore.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6250 | echo "$as_me: WARNING: semaphore.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6251 | { echo "$as_me:$LINENO: WARNING: semaphore.h: proceeding with the preprocessor's result" >&5 |
| 6252 | echo "$as_me: WARNING: semaphore.h: proceeding with the preprocessor's result" >&2;} |
| 6253 | { echo "$as_me:$LINENO: WARNING: semaphore.h: in the future, the compiler will take precedence" >&5 |
| 6254 | 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^] | 6255 | ( |
| 6256 | cat <<\_ASBOX |
| 6257 | ## ------------------------------------ ## |
| 6258 | ## Report this to the pjproject lists. ## |
| 6259 | ## ------------------------------------ ## |
| 6260 | _ASBOX |
| 6261 | ) | |
| 6262 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6263 | ;; |
| 6264 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6265 | echo "$as_me:$LINENO: checking for semaphore.h" >&5 |
| 6266 | echo $ECHO_N "checking for semaphore.h... $ECHO_C" >&6 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6267 | if test "${ac_cv_header_semaphore_h+set}" = set; then |
| 6268 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6269 | else |
| 6270 | ac_cv_header_semaphore_h=$ac_header_preproc |
| 6271 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6272 | echo "$as_me:$LINENO: result: $ac_cv_header_semaphore_h" >&5 |
| 6273 | echo "${ECHO_T}$ac_cv_header_semaphore_h" >&6 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 6274 | |
| 6275 | fi |
| 6276 | if test $ac_cv_header_semaphore_h = yes; then |
| 6277 | cat >>confdefs.h <<\_ACEOF |
| 6278 | #define PJ_HAS_SEMAPHORE_H 1 |
| 6279 | _ACEOF |
| 6280 | |
| 6281 | fi |
| 6282 | |
| 6283 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6284 | if test "${ac_cv_header_setjmp_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6285 | echo "$as_me:$LINENO: checking for setjmp.h" >&5 |
| 6286 | echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6287 | if test "${ac_cv_header_setjmp_h+set}" = set; then |
| 6288 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6289 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6290 | echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5 |
| 6291 | echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6292 | else |
| 6293 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6294 | echo "$as_me:$LINENO: checking setjmp.h usability" >&5 |
| 6295 | echo $ECHO_N "checking setjmp.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6296 | cat >conftest.$ac_ext <<_ACEOF |
| 6297 | /* confdefs.h. */ |
| 6298 | _ACEOF |
| 6299 | cat confdefs.h >>conftest.$ac_ext |
| 6300 | cat >>conftest.$ac_ext <<_ACEOF |
| 6301 | /* end confdefs.h. */ |
| 6302 | $ac_includes_default |
| 6303 | #include <setjmp.h> |
| 6304 | _ACEOF |
| 6305 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6306 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6307 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6308 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6309 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6310 | rm -f conftest.er1 |
| 6311 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6313 | (exit $ac_status); } && |
| 6314 | { ac_try='test -z "$ac_c_werror_flag" |
| 6315 | || test ! -s conftest.err' |
| 6316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6317 | (eval $ac_try) 2>&5 |
| 6318 | ac_status=$? |
| 6319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6320 | (exit $ac_status); }; } && |
| 6321 | { ac_try='test -s conftest.$ac_objext' |
| 6322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6323 | (eval $ac_try) 2>&5 |
| 6324 | ac_status=$? |
| 6325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6326 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6327 | ac_header_compiler=yes |
| 6328 | else |
| 6329 | echo "$as_me: failed program was:" >&5 |
| 6330 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6331 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6332 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6333 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6334 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6335 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6336 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6337 | |
| 6338 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6339 | echo "$as_me:$LINENO: checking setjmp.h presence" >&5 |
| 6340 | echo $ECHO_N "checking setjmp.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6341 | cat >conftest.$ac_ext <<_ACEOF |
| 6342 | /* confdefs.h. */ |
| 6343 | _ACEOF |
| 6344 | cat confdefs.h >>conftest.$ac_ext |
| 6345 | cat >>conftest.$ac_ext <<_ACEOF |
| 6346 | /* end confdefs.h. */ |
| 6347 | #include <setjmp.h> |
| 6348 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6349 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6350 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6351 | ac_status=$? |
| 6352 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6353 | rm -f conftest.er1 |
| 6354 | cat conftest.err >&5 |
| 6355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6356 | (exit $ac_status); } >/dev/null; then |
| 6357 | if test -s conftest.err; then |
| 6358 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 6359 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 6360 | else |
| 6361 | ac_cpp_err= |
| 6362 | fi |
| 6363 | else |
| 6364 | ac_cpp_err=yes |
| 6365 | fi |
| 6366 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6367 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6368 | else |
| 6369 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6370 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6371 | |
| 6372 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6373 | fi |
| 6374 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6375 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6376 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6377 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6378 | # So? What about this header? |
| 6379 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6380 | yes:no: ) |
| 6381 | { echo "$as_me:$LINENO: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6382 | echo "$as_me: WARNING: setjmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6383 | { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the compiler's result" >&5 |
| 6384 | echo "$as_me: WARNING: setjmp.h: proceeding with the compiler's result" >&2;} |
| 6385 | ac_header_preproc=yes |
| 6386 | ;; |
| 6387 | no:yes:* ) |
| 6388 | { echo "$as_me:$LINENO: WARNING: setjmp.h: present but cannot be compiled" >&5 |
| 6389 | echo "$as_me: WARNING: setjmp.h: present but cannot be compiled" >&2;} |
| 6390 | { echo "$as_me:$LINENO: WARNING: setjmp.h: check for missing prerequisite headers?" >&5 |
| 6391 | echo "$as_me: WARNING: setjmp.h: check for missing prerequisite headers?" >&2;} |
| 6392 | { echo "$as_me:$LINENO: WARNING: setjmp.h: see the Autoconf documentation" >&5 |
| 6393 | echo "$as_me: WARNING: setjmp.h: see the Autoconf documentation" >&2;} |
| 6394 | { echo "$as_me:$LINENO: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6395 | echo "$as_me: WARNING: setjmp.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6396 | { echo "$as_me:$LINENO: WARNING: setjmp.h: proceeding with the preprocessor's result" >&5 |
| 6397 | echo "$as_me: WARNING: setjmp.h: proceeding with the preprocessor's result" >&2;} |
| 6398 | { echo "$as_me:$LINENO: WARNING: setjmp.h: in the future, the compiler will take precedence" >&5 |
| 6399 | 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^] | 6400 | ( |
| 6401 | cat <<\_ASBOX |
| 6402 | ## ------------------------------------ ## |
| 6403 | ## Report this to the pjproject lists. ## |
| 6404 | ## ------------------------------------ ## |
| 6405 | _ASBOX |
| 6406 | ) | |
| 6407 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6408 | ;; |
| 6409 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6410 | echo "$as_me:$LINENO: checking for setjmp.h" >&5 |
| 6411 | echo $ECHO_N "checking for setjmp.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6412 | if test "${ac_cv_header_setjmp_h+set}" = set; then |
| 6413 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6414 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6415 | ac_cv_header_setjmp_h=$ac_header_preproc |
| 6416 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6417 | echo "$as_me:$LINENO: result: $ac_cv_header_setjmp_h" >&5 |
| 6418 | echo "${ECHO_T}$ac_cv_header_setjmp_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6419 | |
| 6420 | fi |
| 6421 | if test $ac_cv_header_setjmp_h = yes; then |
| 6422 | cat >>confdefs.h <<\_ACEOF |
| 6423 | #define PJ_HAS_SETJMP_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6424 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6425 | |
| 6426 | fi |
| 6427 | |
| 6428 | |
| 6429 | if test "${ac_cv_header_stdarg_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6430 | echo "$as_me:$LINENO: checking for stdarg.h" >&5 |
| 6431 | echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6432 | if test "${ac_cv_header_stdarg_h+set}" = set; then |
| 6433 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6434 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6435 | echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5 |
| 6436 | echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6437 | else |
| 6438 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6439 | echo "$as_me:$LINENO: checking stdarg.h usability" >&5 |
| 6440 | echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6441 | cat >conftest.$ac_ext <<_ACEOF |
| 6442 | /* confdefs.h. */ |
| 6443 | _ACEOF |
| 6444 | cat confdefs.h >>conftest.$ac_ext |
| 6445 | cat >>conftest.$ac_ext <<_ACEOF |
| 6446 | /* end confdefs.h. */ |
| 6447 | $ac_includes_default |
| 6448 | #include <stdarg.h> |
| 6449 | _ACEOF |
| 6450 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6451 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6452 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6453 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6454 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6455 | rm -f conftest.er1 |
| 6456 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6458 | (exit $ac_status); } && |
| 6459 | { ac_try='test -z "$ac_c_werror_flag" |
| 6460 | || test ! -s conftest.err' |
| 6461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6462 | (eval $ac_try) 2>&5 |
| 6463 | ac_status=$? |
| 6464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6465 | (exit $ac_status); }; } && |
| 6466 | { ac_try='test -s conftest.$ac_objext' |
| 6467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6468 | (eval $ac_try) 2>&5 |
| 6469 | ac_status=$? |
| 6470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6471 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6472 | ac_header_compiler=yes |
| 6473 | else |
| 6474 | echo "$as_me: failed program was:" >&5 |
| 6475 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6476 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6477 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6478 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6479 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6480 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6481 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6482 | |
| 6483 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6484 | echo "$as_me:$LINENO: checking stdarg.h presence" >&5 |
| 6485 | echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6486 | cat >conftest.$ac_ext <<_ACEOF |
| 6487 | /* confdefs.h. */ |
| 6488 | _ACEOF |
| 6489 | cat confdefs.h >>conftest.$ac_ext |
| 6490 | cat >>conftest.$ac_ext <<_ACEOF |
| 6491 | /* end confdefs.h. */ |
| 6492 | #include <stdarg.h> |
| 6493 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6494 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6495 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6496 | ac_status=$? |
| 6497 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6498 | rm -f conftest.er1 |
| 6499 | cat conftest.err >&5 |
| 6500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6501 | (exit $ac_status); } >/dev/null; then |
| 6502 | if test -s conftest.err; then |
| 6503 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 6504 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 6505 | else |
| 6506 | ac_cpp_err= |
| 6507 | fi |
| 6508 | else |
| 6509 | ac_cpp_err=yes |
| 6510 | fi |
| 6511 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6512 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6513 | else |
| 6514 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6515 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6516 | |
| 6517 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6518 | fi |
| 6519 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6520 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6521 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6522 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6523 | # So? What about this header? |
| 6524 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6525 | yes:no: ) |
| 6526 | { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6527 | echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6528 | { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5 |
| 6529 | echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;} |
| 6530 | ac_header_preproc=yes |
| 6531 | ;; |
| 6532 | no:yes:* ) |
| 6533 | { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5 |
| 6534 | echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;} |
| 6535 | { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5 |
| 6536 | echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;} |
| 6537 | { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5 |
| 6538 | echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;} |
| 6539 | { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6540 | echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6541 | { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5 |
| 6542 | echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;} |
| 6543 | { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5 |
| 6544 | 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^] | 6545 | ( |
| 6546 | cat <<\_ASBOX |
| 6547 | ## ------------------------------------ ## |
| 6548 | ## Report this to the pjproject lists. ## |
| 6549 | ## ------------------------------------ ## |
| 6550 | _ASBOX |
| 6551 | ) | |
| 6552 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6553 | ;; |
| 6554 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6555 | echo "$as_me:$LINENO: checking for stdarg.h" >&5 |
| 6556 | echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6557 | if test "${ac_cv_header_stdarg_h+set}" = set; then |
| 6558 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6559 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6560 | ac_cv_header_stdarg_h=$ac_header_preproc |
| 6561 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6562 | echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5 |
| 6563 | echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6564 | |
| 6565 | fi |
| 6566 | if test $ac_cv_header_stdarg_h = yes; then |
| 6567 | cat >>confdefs.h <<\_ACEOF |
| 6568 | #define PJ_HAS_STDARG_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6569 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6570 | |
| 6571 | fi |
| 6572 | |
| 6573 | |
| 6574 | if test "${ac_cv_header_stddef_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6575 | echo "$as_me:$LINENO: checking for stddef.h" >&5 |
| 6576 | echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6577 | if test "${ac_cv_header_stddef_h+set}" = set; then |
| 6578 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6579 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6580 | echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5 |
| 6581 | echo "${ECHO_T}$ac_cv_header_stddef_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6582 | else |
| 6583 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6584 | echo "$as_me:$LINENO: checking stddef.h usability" >&5 |
| 6585 | echo $ECHO_N "checking stddef.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6586 | cat >conftest.$ac_ext <<_ACEOF |
| 6587 | /* confdefs.h. */ |
| 6588 | _ACEOF |
| 6589 | cat confdefs.h >>conftest.$ac_ext |
| 6590 | cat >>conftest.$ac_ext <<_ACEOF |
| 6591 | /* end confdefs.h. */ |
| 6592 | $ac_includes_default |
| 6593 | #include <stddef.h> |
| 6594 | _ACEOF |
| 6595 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6596 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6597 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6598 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6599 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6600 | rm -f conftest.er1 |
| 6601 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6603 | (exit $ac_status); } && |
| 6604 | { ac_try='test -z "$ac_c_werror_flag" |
| 6605 | || test ! -s conftest.err' |
| 6606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6607 | (eval $ac_try) 2>&5 |
| 6608 | ac_status=$? |
| 6609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6610 | (exit $ac_status); }; } && |
| 6611 | { ac_try='test -s conftest.$ac_objext' |
| 6612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6613 | (eval $ac_try) 2>&5 |
| 6614 | ac_status=$? |
| 6615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6616 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6617 | ac_header_compiler=yes |
| 6618 | else |
| 6619 | echo "$as_me: failed program was:" >&5 |
| 6620 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6621 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6622 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6623 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6624 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6625 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6626 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6627 | |
| 6628 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6629 | echo "$as_me:$LINENO: checking stddef.h presence" >&5 |
| 6630 | echo $ECHO_N "checking stddef.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6631 | cat >conftest.$ac_ext <<_ACEOF |
| 6632 | /* confdefs.h. */ |
| 6633 | _ACEOF |
| 6634 | cat confdefs.h >>conftest.$ac_ext |
| 6635 | cat >>conftest.$ac_ext <<_ACEOF |
| 6636 | /* end confdefs.h. */ |
| 6637 | #include <stddef.h> |
| 6638 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6639 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6640 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6641 | ac_status=$? |
| 6642 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6643 | rm -f conftest.er1 |
| 6644 | cat conftest.err >&5 |
| 6645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6646 | (exit $ac_status); } >/dev/null; then |
| 6647 | if test -s conftest.err; then |
| 6648 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 6649 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 6650 | else |
| 6651 | ac_cpp_err= |
| 6652 | fi |
| 6653 | else |
| 6654 | ac_cpp_err=yes |
| 6655 | fi |
| 6656 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6657 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6658 | else |
| 6659 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6660 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6661 | |
| 6662 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6663 | fi |
| 6664 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6665 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6666 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6667 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6668 | # So? What about this header? |
| 6669 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6670 | yes:no: ) |
| 6671 | { echo "$as_me:$LINENO: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6672 | echo "$as_me: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6673 | { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the compiler's result" >&5 |
| 6674 | echo "$as_me: WARNING: stddef.h: proceeding with the compiler's result" >&2;} |
| 6675 | ac_header_preproc=yes |
| 6676 | ;; |
| 6677 | no:yes:* ) |
| 6678 | { echo "$as_me:$LINENO: WARNING: stddef.h: present but cannot be compiled" >&5 |
| 6679 | echo "$as_me: WARNING: stddef.h: present but cannot be compiled" >&2;} |
| 6680 | { echo "$as_me:$LINENO: WARNING: stddef.h: check for missing prerequisite headers?" >&5 |
| 6681 | echo "$as_me: WARNING: stddef.h: check for missing prerequisite headers?" >&2;} |
| 6682 | { echo "$as_me:$LINENO: WARNING: stddef.h: see the Autoconf documentation" >&5 |
| 6683 | echo "$as_me: WARNING: stddef.h: see the Autoconf documentation" >&2;} |
| 6684 | { echo "$as_me:$LINENO: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6685 | echo "$as_me: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6686 | { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the preprocessor's result" >&5 |
| 6687 | echo "$as_me: WARNING: stddef.h: proceeding with the preprocessor's result" >&2;} |
| 6688 | { echo "$as_me:$LINENO: WARNING: stddef.h: in the future, the compiler will take precedence" >&5 |
| 6689 | 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^] | 6690 | ( |
| 6691 | cat <<\_ASBOX |
| 6692 | ## ------------------------------------ ## |
| 6693 | ## Report this to the pjproject lists. ## |
| 6694 | ## ------------------------------------ ## |
| 6695 | _ASBOX |
| 6696 | ) | |
| 6697 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6698 | ;; |
| 6699 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6700 | echo "$as_me:$LINENO: checking for stddef.h" >&5 |
| 6701 | echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6702 | if test "${ac_cv_header_stddef_h+set}" = set; then |
| 6703 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6704 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6705 | ac_cv_header_stddef_h=$ac_header_preproc |
| 6706 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6707 | echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5 |
| 6708 | echo "${ECHO_T}$ac_cv_header_stddef_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6709 | |
| 6710 | fi |
| 6711 | if test $ac_cv_header_stddef_h = yes; then |
| 6712 | cat >>confdefs.h <<\_ACEOF |
| 6713 | #define PJ_HAS_STDDEF_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6714 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6715 | |
| 6716 | fi |
| 6717 | |
| 6718 | |
| 6719 | if test "${ac_cv_header_stdio_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6720 | echo "$as_me:$LINENO: checking for stdio.h" >&5 |
| 6721 | echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6722 | if test "${ac_cv_header_stdio_h+set}" = set; then |
| 6723 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6724 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6725 | echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5 |
| 6726 | echo "${ECHO_T}$ac_cv_header_stdio_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6727 | else |
| 6728 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6729 | echo "$as_me:$LINENO: checking stdio.h usability" >&5 |
| 6730 | echo $ECHO_N "checking stdio.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6731 | cat >conftest.$ac_ext <<_ACEOF |
| 6732 | /* confdefs.h. */ |
| 6733 | _ACEOF |
| 6734 | cat confdefs.h >>conftest.$ac_ext |
| 6735 | cat >>conftest.$ac_ext <<_ACEOF |
| 6736 | /* end confdefs.h. */ |
| 6737 | $ac_includes_default |
| 6738 | #include <stdio.h> |
| 6739 | _ACEOF |
| 6740 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6741 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6742 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6743 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6744 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6745 | rm -f conftest.er1 |
| 6746 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6748 | (exit $ac_status); } && |
| 6749 | { ac_try='test -z "$ac_c_werror_flag" |
| 6750 | || test ! -s conftest.err' |
| 6751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6752 | (eval $ac_try) 2>&5 |
| 6753 | ac_status=$? |
| 6754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6755 | (exit $ac_status); }; } && |
| 6756 | { ac_try='test -s conftest.$ac_objext' |
| 6757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6758 | (eval $ac_try) 2>&5 |
| 6759 | ac_status=$? |
| 6760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6761 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6762 | ac_header_compiler=yes |
| 6763 | else |
| 6764 | echo "$as_me: failed program was:" >&5 |
| 6765 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6766 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6767 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6768 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6769 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6770 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6771 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6772 | |
| 6773 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6774 | echo "$as_me:$LINENO: checking stdio.h presence" >&5 |
| 6775 | echo $ECHO_N "checking stdio.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6776 | cat >conftest.$ac_ext <<_ACEOF |
| 6777 | /* confdefs.h. */ |
| 6778 | _ACEOF |
| 6779 | cat confdefs.h >>conftest.$ac_ext |
| 6780 | cat >>conftest.$ac_ext <<_ACEOF |
| 6781 | /* end confdefs.h. */ |
| 6782 | #include <stdio.h> |
| 6783 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6784 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6785 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6786 | ac_status=$? |
| 6787 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6788 | rm -f conftest.er1 |
| 6789 | cat conftest.err >&5 |
| 6790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6791 | (exit $ac_status); } >/dev/null; then |
| 6792 | if test -s conftest.err; then |
| 6793 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 6794 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 6795 | else |
| 6796 | ac_cpp_err= |
| 6797 | fi |
| 6798 | else |
| 6799 | ac_cpp_err=yes |
| 6800 | fi |
| 6801 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6802 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6803 | else |
| 6804 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6805 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6806 | |
| 6807 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 6808 | fi |
| 6809 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6810 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6811 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6812 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6813 | # So? What about this header? |
| 6814 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6815 | yes:no: ) |
| 6816 | { echo "$as_me:$LINENO: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6817 | echo "$as_me: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6818 | { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the compiler's result" >&5 |
| 6819 | echo "$as_me: WARNING: stdio.h: proceeding with the compiler's result" >&2;} |
| 6820 | ac_header_preproc=yes |
| 6821 | ;; |
| 6822 | no:yes:* ) |
| 6823 | { echo "$as_me:$LINENO: WARNING: stdio.h: present but cannot be compiled" >&5 |
| 6824 | echo "$as_me: WARNING: stdio.h: present but cannot be compiled" >&2;} |
| 6825 | { echo "$as_me:$LINENO: WARNING: stdio.h: check for missing prerequisite headers?" >&5 |
| 6826 | echo "$as_me: WARNING: stdio.h: check for missing prerequisite headers?" >&2;} |
| 6827 | { echo "$as_me:$LINENO: WARNING: stdio.h: see the Autoconf documentation" >&5 |
| 6828 | echo "$as_me: WARNING: stdio.h: see the Autoconf documentation" >&2;} |
| 6829 | { echo "$as_me:$LINENO: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6830 | echo "$as_me: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6831 | { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the preprocessor's result" >&5 |
| 6832 | echo "$as_me: WARNING: stdio.h: proceeding with the preprocessor's result" >&2;} |
| 6833 | { echo "$as_me:$LINENO: WARNING: stdio.h: in the future, the compiler will take precedence" >&5 |
| 6834 | 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^] | 6835 | ( |
| 6836 | cat <<\_ASBOX |
| 6837 | ## ------------------------------------ ## |
| 6838 | ## Report this to the pjproject lists. ## |
| 6839 | ## ------------------------------------ ## |
| 6840 | _ASBOX |
| 6841 | ) | |
| 6842 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6843 | ;; |
| 6844 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6845 | echo "$as_me:$LINENO: checking for stdio.h" >&5 |
| 6846 | echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6847 | if test "${ac_cv_header_stdio_h+set}" = set; then |
| 6848 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6849 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6850 | ac_cv_header_stdio_h=$ac_header_preproc |
| 6851 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6852 | echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5 |
| 6853 | echo "${ECHO_T}$ac_cv_header_stdio_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6854 | |
| 6855 | fi |
| 6856 | if test $ac_cv_header_stdio_h = yes; then |
| 6857 | cat >>confdefs.h <<\_ACEOF |
| 6858 | #define PJ_HAS_STDIO_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 6859 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 6860 | |
| 6861 | fi |
| 6862 | |
| 6863 | |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6864 | if test "${ac_cv_header_stdint_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6865 | echo "$as_me:$LINENO: checking for stdint.h" >&5 |
| 6866 | echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6867 | if test "${ac_cv_header_stdint_h+set}" = set; then |
| 6868 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6869 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6870 | echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5 |
| 6871 | echo "${ECHO_T}$ac_cv_header_stdint_h" >&6 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6872 | else |
| 6873 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6874 | echo "$as_me:$LINENO: checking stdint.h usability" >&5 |
| 6875 | echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6876 | cat >conftest.$ac_ext <<_ACEOF |
| 6877 | /* confdefs.h. */ |
| 6878 | _ACEOF |
| 6879 | cat confdefs.h >>conftest.$ac_ext |
| 6880 | cat >>conftest.$ac_ext <<_ACEOF |
| 6881 | /* end confdefs.h. */ |
| 6882 | $ac_includes_default |
| 6883 | #include <stdint.h> |
| 6884 | _ACEOF |
| 6885 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6886 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6887 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6888 | ac_status=$? |
| 6889 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6890 | rm -f conftest.er1 |
| 6891 | cat conftest.err >&5 |
| 6892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6893 | (exit $ac_status); } && |
| 6894 | { ac_try='test -z "$ac_c_werror_flag" |
| 6895 | || test ! -s conftest.err' |
| 6896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6897 | (eval $ac_try) 2>&5 |
| 6898 | ac_status=$? |
| 6899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6900 | (exit $ac_status); }; } && |
| 6901 | { ac_try='test -s conftest.$ac_objext' |
| 6902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6903 | (eval $ac_try) 2>&5 |
| 6904 | ac_status=$? |
| 6905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6906 | (exit $ac_status); }; }; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6907 | ac_header_compiler=yes |
| 6908 | else |
| 6909 | echo "$as_me: failed program was:" >&5 |
| 6910 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6911 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6912 | ac_header_compiler=no |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6913 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6914 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6915 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6916 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6917 | |
| 6918 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6919 | echo "$as_me:$LINENO: checking stdint.h presence" >&5 |
| 6920 | echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6921 | cat >conftest.$ac_ext <<_ACEOF |
| 6922 | /* confdefs.h. */ |
| 6923 | _ACEOF |
| 6924 | cat confdefs.h >>conftest.$ac_ext |
| 6925 | cat >>conftest.$ac_ext <<_ACEOF |
| 6926 | /* end confdefs.h. */ |
| 6927 | #include <stdint.h> |
| 6928 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6929 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6930 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6931 | ac_status=$? |
| 6932 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6933 | rm -f conftest.er1 |
| 6934 | cat conftest.err >&5 |
| 6935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6936 | (exit $ac_status); } >/dev/null; then |
| 6937 | if test -s conftest.err; then |
| 6938 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 6939 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 6940 | else |
| 6941 | ac_cpp_err= |
| 6942 | fi |
| 6943 | else |
| 6944 | ac_cpp_err=yes |
| 6945 | fi |
| 6946 | if test -z "$ac_cpp_err"; then |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6947 | ac_header_preproc=yes |
| 6948 | else |
| 6949 | echo "$as_me: failed program was:" >&5 |
| 6950 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6951 | |
| 6952 | ac_header_preproc=no |
| 6953 | fi |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6954 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6955 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6956 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6957 | |
| 6958 | # So? What about this header? |
| 6959 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6960 | yes:no: ) |
| 6961 | { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6962 | echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6963 | { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5 |
| 6964 | echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;} |
| 6965 | ac_header_preproc=yes |
| 6966 | ;; |
| 6967 | no:yes:* ) |
| 6968 | { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5 |
| 6969 | echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;} |
| 6970 | { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5 |
| 6971 | echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;} |
| 6972 | { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5 |
| 6973 | echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;} |
| 6974 | { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6975 | echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6976 | { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5 |
| 6977 | echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;} |
| 6978 | { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5 |
| 6979 | 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^] | 6980 | ( |
| 6981 | cat <<\_ASBOX |
| 6982 | ## ------------------------------------ ## |
| 6983 | ## Report this to the pjproject lists. ## |
| 6984 | ## ------------------------------------ ## |
| 6985 | _ASBOX |
| 6986 | ) | |
| 6987 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6988 | ;; |
| 6989 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6990 | echo "$as_me:$LINENO: checking for stdint.h" >&5 |
| 6991 | echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6992 | if test "${ac_cv_header_stdint_h+set}" = set; then |
| 6993 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6994 | else |
| 6995 | ac_cv_header_stdint_h=$ac_header_preproc |
| 6996 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 6997 | echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5 |
| 6998 | echo "${ECHO_T}$ac_cv_header_stdint_h" >&6 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 6999 | |
| 7000 | fi |
| 7001 | if test $ac_cv_header_stdint_h = yes; then |
| 7002 | cat >>confdefs.h <<\_ACEOF |
| 7003 | #define PJ_HAS_STDINT_H 1 |
| 7004 | _ACEOF |
| 7005 | |
| 7006 | fi |
| 7007 | |
| 7008 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7009 | if test "${ac_cv_header_stdlib_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7010 | echo "$as_me:$LINENO: checking for stdlib.h" >&5 |
| 7011 | echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7012 | if test "${ac_cv_header_stdlib_h+set}" = set; then |
| 7013 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7014 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7015 | echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 |
| 7016 | echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7017 | else |
| 7018 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7019 | echo "$as_me:$LINENO: checking stdlib.h usability" >&5 |
| 7020 | echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7021 | cat >conftest.$ac_ext <<_ACEOF |
| 7022 | /* confdefs.h. */ |
| 7023 | _ACEOF |
| 7024 | cat confdefs.h >>conftest.$ac_ext |
| 7025 | cat >>conftest.$ac_ext <<_ACEOF |
| 7026 | /* end confdefs.h. */ |
| 7027 | $ac_includes_default |
| 7028 | #include <stdlib.h> |
| 7029 | _ACEOF |
| 7030 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7031 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7032 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7033 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7034 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7035 | rm -f conftest.er1 |
| 7036 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7038 | (exit $ac_status); } && |
| 7039 | { ac_try='test -z "$ac_c_werror_flag" |
| 7040 | || test ! -s conftest.err' |
| 7041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7042 | (eval $ac_try) 2>&5 |
| 7043 | ac_status=$? |
| 7044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7045 | (exit $ac_status); }; } && |
| 7046 | { ac_try='test -s conftest.$ac_objext' |
| 7047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7048 | (eval $ac_try) 2>&5 |
| 7049 | ac_status=$? |
| 7050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7051 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7052 | ac_header_compiler=yes |
| 7053 | else |
| 7054 | echo "$as_me: failed program was:" >&5 |
| 7055 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7056 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7057 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7058 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7059 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7060 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7061 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7062 | |
| 7063 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7064 | echo "$as_me:$LINENO: checking stdlib.h presence" >&5 |
| 7065 | echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7066 | cat >conftest.$ac_ext <<_ACEOF |
| 7067 | /* confdefs.h. */ |
| 7068 | _ACEOF |
| 7069 | cat confdefs.h >>conftest.$ac_ext |
| 7070 | cat >>conftest.$ac_ext <<_ACEOF |
| 7071 | /* end confdefs.h. */ |
| 7072 | #include <stdlib.h> |
| 7073 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7074 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7075 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7076 | ac_status=$? |
| 7077 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7078 | rm -f conftest.er1 |
| 7079 | cat conftest.err >&5 |
| 7080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7081 | (exit $ac_status); } >/dev/null; then |
| 7082 | if test -s conftest.err; then |
| 7083 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7084 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 7085 | else |
| 7086 | ac_cpp_err= |
| 7087 | fi |
| 7088 | else |
| 7089 | ac_cpp_err=yes |
| 7090 | fi |
| 7091 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7092 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7093 | else |
| 7094 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7095 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7096 | |
| 7097 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7098 | fi |
| 7099 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7100 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7101 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7102 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7103 | # So? What about this header? |
| 7104 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7105 | yes:no: ) |
| 7106 | { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7107 | echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7108 | { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5 |
| 7109 | echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;} |
| 7110 | ac_header_preproc=yes |
| 7111 | ;; |
| 7112 | no:yes:* ) |
| 7113 | { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5 |
| 7114 | echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;} |
| 7115 | { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5 |
| 7116 | echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;} |
| 7117 | { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5 |
| 7118 | echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;} |
| 7119 | { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7120 | echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7121 | { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5 |
| 7122 | echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;} |
| 7123 | { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5 |
| 7124 | 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^] | 7125 | ( |
| 7126 | cat <<\_ASBOX |
| 7127 | ## ------------------------------------ ## |
| 7128 | ## Report this to the pjproject lists. ## |
| 7129 | ## ------------------------------------ ## |
| 7130 | _ASBOX |
| 7131 | ) | |
| 7132 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7133 | ;; |
| 7134 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7135 | echo "$as_me:$LINENO: checking for stdlib.h" >&5 |
| 7136 | echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7137 | if test "${ac_cv_header_stdlib_h+set}" = set; then |
| 7138 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7139 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7140 | ac_cv_header_stdlib_h=$ac_header_preproc |
| 7141 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7142 | echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 |
| 7143 | echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7144 | |
| 7145 | fi |
| 7146 | if test $ac_cv_header_stdlib_h = yes; then |
| 7147 | cat >>confdefs.h <<\_ACEOF |
| 7148 | #define PJ_HAS_STDLIB_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7149 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7150 | |
| 7151 | fi |
| 7152 | |
| 7153 | |
| 7154 | if test "${ac_cv_header_string_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7155 | echo "$as_me:$LINENO: checking for string.h" >&5 |
| 7156 | echo $ECHO_N "checking for string.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7157 | if test "${ac_cv_header_string_h+set}" = set; then |
| 7158 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7159 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7160 | echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 |
| 7161 | echo "${ECHO_T}$ac_cv_header_string_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7162 | else |
| 7163 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7164 | echo "$as_me:$LINENO: checking string.h usability" >&5 |
| 7165 | echo $ECHO_N "checking string.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7166 | cat >conftest.$ac_ext <<_ACEOF |
| 7167 | /* confdefs.h. */ |
| 7168 | _ACEOF |
| 7169 | cat confdefs.h >>conftest.$ac_ext |
| 7170 | cat >>conftest.$ac_ext <<_ACEOF |
| 7171 | /* end confdefs.h. */ |
| 7172 | $ac_includes_default |
| 7173 | #include <string.h> |
| 7174 | _ACEOF |
| 7175 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7176 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7177 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7178 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7179 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7180 | rm -f conftest.er1 |
| 7181 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7183 | (exit $ac_status); } && |
| 7184 | { ac_try='test -z "$ac_c_werror_flag" |
| 7185 | || test ! -s conftest.err' |
| 7186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7187 | (eval $ac_try) 2>&5 |
| 7188 | ac_status=$? |
| 7189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7190 | (exit $ac_status); }; } && |
| 7191 | { ac_try='test -s conftest.$ac_objext' |
| 7192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7193 | (eval $ac_try) 2>&5 |
| 7194 | ac_status=$? |
| 7195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7196 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7197 | ac_header_compiler=yes |
| 7198 | else |
| 7199 | echo "$as_me: failed program was:" >&5 |
| 7200 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7201 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7202 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7203 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7204 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7205 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7206 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7207 | |
| 7208 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7209 | echo "$as_me:$LINENO: checking string.h presence" >&5 |
| 7210 | echo $ECHO_N "checking string.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7211 | cat >conftest.$ac_ext <<_ACEOF |
| 7212 | /* confdefs.h. */ |
| 7213 | _ACEOF |
| 7214 | cat confdefs.h >>conftest.$ac_ext |
| 7215 | cat >>conftest.$ac_ext <<_ACEOF |
| 7216 | /* end confdefs.h. */ |
| 7217 | #include <string.h> |
| 7218 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7219 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7220 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7221 | ac_status=$? |
| 7222 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7223 | rm -f conftest.er1 |
| 7224 | cat conftest.err >&5 |
| 7225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7226 | (exit $ac_status); } >/dev/null; then |
| 7227 | if test -s conftest.err; then |
| 7228 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7229 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 7230 | else |
| 7231 | ac_cpp_err= |
| 7232 | fi |
| 7233 | else |
| 7234 | ac_cpp_err=yes |
| 7235 | fi |
| 7236 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7237 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7238 | else |
| 7239 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7240 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7241 | |
| 7242 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7243 | fi |
| 7244 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7245 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7246 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7247 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7248 | # So? What about this header? |
| 7249 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7250 | yes:no: ) |
| 7251 | { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7252 | echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7253 | { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5 |
| 7254 | echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;} |
| 7255 | ac_header_preproc=yes |
| 7256 | ;; |
| 7257 | no:yes:* ) |
| 7258 | { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5 |
| 7259 | echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;} |
| 7260 | { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5 |
| 7261 | echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;} |
| 7262 | { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5 |
| 7263 | echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;} |
| 7264 | { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7265 | echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7266 | { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5 |
| 7267 | echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;} |
| 7268 | { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5 |
| 7269 | 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^] | 7270 | ( |
| 7271 | cat <<\_ASBOX |
| 7272 | ## ------------------------------------ ## |
| 7273 | ## Report this to the pjproject lists. ## |
| 7274 | ## ------------------------------------ ## |
| 7275 | _ASBOX |
| 7276 | ) | |
| 7277 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7278 | ;; |
| 7279 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7280 | echo "$as_me:$LINENO: checking for string.h" >&5 |
| 7281 | echo $ECHO_N "checking for string.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7282 | if test "${ac_cv_header_string_h+set}" = set; then |
| 7283 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7284 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7285 | ac_cv_header_string_h=$ac_header_preproc |
| 7286 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7287 | echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 |
| 7288 | echo "${ECHO_T}$ac_cv_header_string_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7289 | |
| 7290 | fi |
| 7291 | if test $ac_cv_header_string_h = yes; then |
| 7292 | cat >>confdefs.h <<\_ACEOF |
| 7293 | #define PJ_HAS_STRING_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7294 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7295 | |
| 7296 | fi |
| 7297 | |
| 7298 | |
| 7299 | if test "${ac_cv_header_sys_ioctl_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7300 | echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5 |
| 7301 | echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7302 | if test "${ac_cv_header_sys_ioctl_h+set}" = set; then |
| 7303 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7304 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7305 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5 |
| 7306 | echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7307 | else |
| 7308 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7309 | echo "$as_me:$LINENO: checking sys/ioctl.h usability" >&5 |
| 7310 | echo $ECHO_N "checking sys/ioctl.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7311 | cat >conftest.$ac_ext <<_ACEOF |
| 7312 | /* confdefs.h. */ |
| 7313 | _ACEOF |
| 7314 | cat confdefs.h >>conftest.$ac_ext |
| 7315 | cat >>conftest.$ac_ext <<_ACEOF |
| 7316 | /* end confdefs.h. */ |
| 7317 | $ac_includes_default |
| 7318 | #include <sys/ioctl.h> |
| 7319 | _ACEOF |
| 7320 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7321 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7322 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7323 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7324 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7325 | rm -f conftest.er1 |
| 7326 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7328 | (exit $ac_status); } && |
| 7329 | { ac_try='test -z "$ac_c_werror_flag" |
| 7330 | || test ! -s conftest.err' |
| 7331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7332 | (eval $ac_try) 2>&5 |
| 7333 | ac_status=$? |
| 7334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7335 | (exit $ac_status); }; } && |
| 7336 | { ac_try='test -s conftest.$ac_objext' |
| 7337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7338 | (eval $ac_try) 2>&5 |
| 7339 | ac_status=$? |
| 7340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7341 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7342 | ac_header_compiler=yes |
| 7343 | else |
| 7344 | echo "$as_me: failed program was:" >&5 |
| 7345 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7346 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7347 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7348 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7349 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7350 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7351 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7352 | |
| 7353 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7354 | echo "$as_me:$LINENO: checking sys/ioctl.h presence" >&5 |
| 7355 | echo $ECHO_N "checking sys/ioctl.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7356 | cat >conftest.$ac_ext <<_ACEOF |
| 7357 | /* confdefs.h. */ |
| 7358 | _ACEOF |
| 7359 | cat confdefs.h >>conftest.$ac_ext |
| 7360 | cat >>conftest.$ac_ext <<_ACEOF |
| 7361 | /* end confdefs.h. */ |
| 7362 | #include <sys/ioctl.h> |
| 7363 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7364 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7365 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7366 | ac_status=$? |
| 7367 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7368 | rm -f conftest.er1 |
| 7369 | cat conftest.err >&5 |
| 7370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7371 | (exit $ac_status); } >/dev/null; then |
| 7372 | if test -s conftest.err; then |
| 7373 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7374 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 7375 | else |
| 7376 | ac_cpp_err= |
| 7377 | fi |
| 7378 | else |
| 7379 | ac_cpp_err=yes |
| 7380 | fi |
| 7381 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7382 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7383 | else |
| 7384 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7385 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7386 | |
| 7387 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7388 | fi |
| 7389 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7390 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7391 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7392 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7393 | # So? What about this header? |
| 7394 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7395 | yes:no: ) |
| 7396 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7397 | echo "$as_me: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7398 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&5 |
| 7399 | echo "$as_me: WARNING: sys/ioctl.h: proceeding with the compiler's result" >&2;} |
| 7400 | ac_header_preproc=yes |
| 7401 | ;; |
| 7402 | no:yes:* ) |
| 7403 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: present but cannot be compiled" >&5 |
| 7404 | echo "$as_me: WARNING: sys/ioctl.h: present but cannot be compiled" >&2;} |
| 7405 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&5 |
| 7406 | echo "$as_me: WARNING: sys/ioctl.h: check for missing prerequisite headers?" >&2;} |
| 7407 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: see the Autoconf documentation" >&5 |
| 7408 | echo "$as_me: WARNING: sys/ioctl.h: see the Autoconf documentation" >&2;} |
| 7409 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7410 | echo "$as_me: WARNING: sys/ioctl.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7411 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&5 |
| 7412 | echo "$as_me: WARNING: sys/ioctl.h: proceeding with the preprocessor's result" >&2;} |
| 7413 | { echo "$as_me:$LINENO: WARNING: sys/ioctl.h: in the future, the compiler will take precedence" >&5 |
| 7414 | 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^] | 7415 | ( |
| 7416 | cat <<\_ASBOX |
| 7417 | ## ------------------------------------ ## |
| 7418 | ## Report this to the pjproject lists. ## |
| 7419 | ## ------------------------------------ ## |
| 7420 | _ASBOX |
| 7421 | ) | |
| 7422 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7423 | ;; |
| 7424 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7425 | echo "$as_me:$LINENO: checking for sys/ioctl.h" >&5 |
| 7426 | echo $ECHO_N "checking for sys/ioctl.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7427 | if test "${ac_cv_header_sys_ioctl_h+set}" = set; then |
| 7428 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7429 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7430 | ac_cv_header_sys_ioctl_h=$ac_header_preproc |
| 7431 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7432 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_ioctl_h" >&5 |
| 7433 | echo "${ECHO_T}$ac_cv_header_sys_ioctl_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7434 | |
| 7435 | fi |
| 7436 | if test $ac_cv_header_sys_ioctl_h = yes; then |
| 7437 | cat >>confdefs.h <<\_ACEOF |
| 7438 | #define PJ_HAS_SYS_IOCTL_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7439 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7440 | |
| 7441 | fi |
| 7442 | |
| 7443 | |
| 7444 | if test "${ac_cv_header_sys_select_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7445 | echo "$as_me:$LINENO: checking for sys/select.h" >&5 |
| 7446 | echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7447 | if test "${ac_cv_header_sys_select_h+set}" = set; then |
| 7448 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7449 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7450 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5 |
| 7451 | echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7452 | else |
| 7453 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7454 | echo "$as_me:$LINENO: checking sys/select.h usability" >&5 |
| 7455 | echo $ECHO_N "checking sys/select.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7456 | cat >conftest.$ac_ext <<_ACEOF |
| 7457 | /* confdefs.h. */ |
| 7458 | _ACEOF |
| 7459 | cat confdefs.h >>conftest.$ac_ext |
| 7460 | cat >>conftest.$ac_ext <<_ACEOF |
| 7461 | /* end confdefs.h. */ |
| 7462 | $ac_includes_default |
| 7463 | #include <sys/select.h> |
| 7464 | _ACEOF |
| 7465 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7466 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7467 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7468 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7469 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7470 | rm -f conftest.er1 |
| 7471 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7473 | (exit $ac_status); } && |
| 7474 | { ac_try='test -z "$ac_c_werror_flag" |
| 7475 | || test ! -s conftest.err' |
| 7476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7477 | (eval $ac_try) 2>&5 |
| 7478 | ac_status=$? |
| 7479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7480 | (exit $ac_status); }; } && |
| 7481 | { ac_try='test -s conftest.$ac_objext' |
| 7482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7483 | (eval $ac_try) 2>&5 |
| 7484 | ac_status=$? |
| 7485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7486 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7487 | ac_header_compiler=yes |
| 7488 | else |
| 7489 | echo "$as_me: failed program was:" >&5 |
| 7490 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7491 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7492 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7493 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7494 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7495 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7496 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7497 | |
| 7498 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7499 | echo "$as_me:$LINENO: checking sys/select.h presence" >&5 |
| 7500 | echo $ECHO_N "checking sys/select.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7501 | cat >conftest.$ac_ext <<_ACEOF |
| 7502 | /* confdefs.h. */ |
| 7503 | _ACEOF |
| 7504 | cat confdefs.h >>conftest.$ac_ext |
| 7505 | cat >>conftest.$ac_ext <<_ACEOF |
| 7506 | /* end confdefs.h. */ |
| 7507 | #include <sys/select.h> |
| 7508 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7509 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7510 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7511 | ac_status=$? |
| 7512 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7513 | rm -f conftest.er1 |
| 7514 | cat conftest.err >&5 |
| 7515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7516 | (exit $ac_status); } >/dev/null; then |
| 7517 | if test -s conftest.err; then |
| 7518 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7519 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 7520 | else |
| 7521 | ac_cpp_err= |
| 7522 | fi |
| 7523 | else |
| 7524 | ac_cpp_err=yes |
| 7525 | fi |
| 7526 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7527 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7528 | else |
| 7529 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7530 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7531 | |
| 7532 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7533 | fi |
| 7534 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7535 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7536 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7537 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7538 | # So? What about this header? |
| 7539 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7540 | yes:no: ) |
| 7541 | { echo "$as_me:$LINENO: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7542 | echo "$as_me: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7543 | { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the compiler's result" >&5 |
| 7544 | echo "$as_me: WARNING: sys/select.h: proceeding with the compiler's result" >&2;} |
| 7545 | ac_header_preproc=yes |
| 7546 | ;; |
| 7547 | no:yes:* ) |
| 7548 | { echo "$as_me:$LINENO: WARNING: sys/select.h: present but cannot be compiled" >&5 |
| 7549 | echo "$as_me: WARNING: sys/select.h: present but cannot be compiled" >&2;} |
| 7550 | { echo "$as_me:$LINENO: WARNING: sys/select.h: check for missing prerequisite headers?" >&5 |
| 7551 | echo "$as_me: WARNING: sys/select.h: check for missing prerequisite headers?" >&2;} |
| 7552 | { echo "$as_me:$LINENO: WARNING: sys/select.h: see the Autoconf documentation" >&5 |
| 7553 | echo "$as_me: WARNING: sys/select.h: see the Autoconf documentation" >&2;} |
| 7554 | { echo "$as_me:$LINENO: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7555 | echo "$as_me: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7556 | { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the preprocessor's result" >&5 |
| 7557 | echo "$as_me: WARNING: sys/select.h: proceeding with the preprocessor's result" >&2;} |
| 7558 | { echo "$as_me:$LINENO: WARNING: sys/select.h: in the future, the compiler will take precedence" >&5 |
| 7559 | 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^] | 7560 | ( |
| 7561 | cat <<\_ASBOX |
| 7562 | ## ------------------------------------ ## |
| 7563 | ## Report this to the pjproject lists. ## |
| 7564 | ## ------------------------------------ ## |
| 7565 | _ASBOX |
| 7566 | ) | |
| 7567 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7568 | ;; |
| 7569 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7570 | echo "$as_me:$LINENO: checking for sys/select.h" >&5 |
| 7571 | echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7572 | if test "${ac_cv_header_sys_select_h+set}" = set; then |
| 7573 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7574 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7575 | ac_cv_header_sys_select_h=$ac_header_preproc |
| 7576 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7577 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5 |
| 7578 | echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7579 | |
| 7580 | fi |
| 7581 | if test $ac_cv_header_sys_select_h = yes; then |
| 7582 | cat >>confdefs.h <<\_ACEOF |
| 7583 | #define PJ_HAS_SYS_SELECT_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7584 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7585 | |
| 7586 | fi |
| 7587 | |
| 7588 | |
| 7589 | if test "${ac_cv_header_sys_socket_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7590 | echo "$as_me:$LINENO: checking for sys/socket.h" >&5 |
| 7591 | echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7592 | if test "${ac_cv_header_sys_socket_h+set}" = set; then |
| 7593 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7594 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7595 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5 |
| 7596 | echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7597 | else |
| 7598 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7599 | echo "$as_me:$LINENO: checking sys/socket.h usability" >&5 |
| 7600 | echo $ECHO_N "checking sys/socket.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7601 | cat >conftest.$ac_ext <<_ACEOF |
| 7602 | /* confdefs.h. */ |
| 7603 | _ACEOF |
| 7604 | cat confdefs.h >>conftest.$ac_ext |
| 7605 | cat >>conftest.$ac_ext <<_ACEOF |
| 7606 | /* end confdefs.h. */ |
| 7607 | $ac_includes_default |
| 7608 | #include <sys/socket.h> |
| 7609 | _ACEOF |
| 7610 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7611 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7612 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7613 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7614 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7615 | rm -f conftest.er1 |
| 7616 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7618 | (exit $ac_status); } && |
| 7619 | { ac_try='test -z "$ac_c_werror_flag" |
| 7620 | || test ! -s conftest.err' |
| 7621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7622 | (eval $ac_try) 2>&5 |
| 7623 | ac_status=$? |
| 7624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7625 | (exit $ac_status); }; } && |
| 7626 | { ac_try='test -s conftest.$ac_objext' |
| 7627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7628 | (eval $ac_try) 2>&5 |
| 7629 | ac_status=$? |
| 7630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7631 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7632 | ac_header_compiler=yes |
| 7633 | else |
| 7634 | echo "$as_me: failed program was:" >&5 |
| 7635 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7636 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7637 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7638 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7639 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7640 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7641 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7642 | |
| 7643 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7644 | echo "$as_me:$LINENO: checking sys/socket.h presence" >&5 |
| 7645 | echo $ECHO_N "checking sys/socket.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7646 | cat >conftest.$ac_ext <<_ACEOF |
| 7647 | /* confdefs.h. */ |
| 7648 | _ACEOF |
| 7649 | cat confdefs.h >>conftest.$ac_ext |
| 7650 | cat >>conftest.$ac_ext <<_ACEOF |
| 7651 | /* end confdefs.h. */ |
| 7652 | #include <sys/socket.h> |
| 7653 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7654 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7655 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7656 | ac_status=$? |
| 7657 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7658 | rm -f conftest.er1 |
| 7659 | cat conftest.err >&5 |
| 7660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7661 | (exit $ac_status); } >/dev/null; then |
| 7662 | if test -s conftest.err; then |
| 7663 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7664 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 7665 | else |
| 7666 | ac_cpp_err= |
| 7667 | fi |
| 7668 | else |
| 7669 | ac_cpp_err=yes |
| 7670 | fi |
| 7671 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7672 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7673 | else |
| 7674 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7675 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7676 | |
| 7677 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7678 | fi |
| 7679 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7680 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7681 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7682 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7683 | # So? What about this header? |
| 7684 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7685 | yes:no: ) |
| 7686 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7687 | echo "$as_me: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7688 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the compiler's result" >&5 |
| 7689 | echo "$as_me: WARNING: sys/socket.h: proceeding with the compiler's result" >&2;} |
| 7690 | ac_header_preproc=yes |
| 7691 | ;; |
| 7692 | no:yes:* ) |
| 7693 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: present but cannot be compiled" >&5 |
| 7694 | echo "$as_me: WARNING: sys/socket.h: present but cannot be compiled" >&2;} |
| 7695 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: check for missing prerequisite headers?" >&5 |
| 7696 | echo "$as_me: WARNING: sys/socket.h: check for missing prerequisite headers?" >&2;} |
| 7697 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: see the Autoconf documentation" >&5 |
| 7698 | echo "$as_me: WARNING: sys/socket.h: see the Autoconf documentation" >&2;} |
| 7699 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7700 | echo "$as_me: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7701 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5 |
| 7702 | echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;} |
| 7703 | { echo "$as_me:$LINENO: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&5 |
| 7704 | 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^] | 7705 | ( |
| 7706 | cat <<\_ASBOX |
| 7707 | ## ------------------------------------ ## |
| 7708 | ## Report this to the pjproject lists. ## |
| 7709 | ## ------------------------------------ ## |
| 7710 | _ASBOX |
| 7711 | ) | |
| 7712 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7713 | ;; |
| 7714 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7715 | echo "$as_me:$LINENO: checking for sys/socket.h" >&5 |
| 7716 | echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7717 | if test "${ac_cv_header_sys_socket_h+set}" = set; then |
| 7718 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7719 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7720 | ac_cv_header_sys_socket_h=$ac_header_preproc |
| 7721 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7722 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5 |
| 7723 | echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7724 | |
| 7725 | fi |
| 7726 | if test $ac_cv_header_sys_socket_h = yes; then |
| 7727 | cat >>confdefs.h <<\_ACEOF |
| 7728 | #define PJ_HAS_SYS_SOCKET_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7729 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7730 | |
| 7731 | fi |
| 7732 | |
| 7733 | |
| 7734 | if test "${ac_cv_header_sys_time_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7735 | echo "$as_me:$LINENO: checking for sys/time.h" >&5 |
| 7736 | echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7737 | if test "${ac_cv_header_sys_time_h+set}" = set; then |
| 7738 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7739 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7740 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5 |
| 7741 | echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7742 | else |
| 7743 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7744 | echo "$as_me:$LINENO: checking sys/time.h usability" >&5 |
| 7745 | echo $ECHO_N "checking sys/time.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7746 | cat >conftest.$ac_ext <<_ACEOF |
| 7747 | /* confdefs.h. */ |
| 7748 | _ACEOF |
| 7749 | cat confdefs.h >>conftest.$ac_ext |
| 7750 | cat >>conftest.$ac_ext <<_ACEOF |
| 7751 | /* end confdefs.h. */ |
| 7752 | $ac_includes_default |
| 7753 | #include <sys/time.h> |
| 7754 | _ACEOF |
| 7755 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7756 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7757 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7758 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7759 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7760 | rm -f conftest.er1 |
| 7761 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7763 | (exit $ac_status); } && |
| 7764 | { ac_try='test -z "$ac_c_werror_flag" |
| 7765 | || test ! -s conftest.err' |
| 7766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7767 | (eval $ac_try) 2>&5 |
| 7768 | ac_status=$? |
| 7769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7770 | (exit $ac_status); }; } && |
| 7771 | { ac_try='test -s conftest.$ac_objext' |
| 7772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7773 | (eval $ac_try) 2>&5 |
| 7774 | ac_status=$? |
| 7775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7776 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7777 | ac_header_compiler=yes |
| 7778 | else |
| 7779 | echo "$as_me: failed program was:" >&5 |
| 7780 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7781 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7782 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7783 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7784 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7785 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7786 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7787 | |
| 7788 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7789 | echo "$as_me:$LINENO: checking sys/time.h presence" >&5 |
| 7790 | echo $ECHO_N "checking sys/time.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7791 | cat >conftest.$ac_ext <<_ACEOF |
| 7792 | /* confdefs.h. */ |
| 7793 | _ACEOF |
| 7794 | cat confdefs.h >>conftest.$ac_ext |
| 7795 | cat >>conftest.$ac_ext <<_ACEOF |
| 7796 | /* end confdefs.h. */ |
| 7797 | #include <sys/time.h> |
| 7798 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7799 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7800 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7801 | ac_status=$? |
| 7802 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7803 | rm -f conftest.er1 |
| 7804 | cat conftest.err >&5 |
| 7805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7806 | (exit $ac_status); } >/dev/null; then |
| 7807 | if test -s conftest.err; then |
| 7808 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7809 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 7810 | else |
| 7811 | ac_cpp_err= |
| 7812 | fi |
| 7813 | else |
| 7814 | ac_cpp_err=yes |
| 7815 | fi |
| 7816 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7817 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7818 | else |
| 7819 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7820 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7821 | |
| 7822 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7823 | fi |
| 7824 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7825 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7826 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7827 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7828 | # So? What about this header? |
| 7829 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7830 | yes:no: ) |
| 7831 | { echo "$as_me:$LINENO: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7832 | echo "$as_me: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7833 | { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the compiler's result" >&5 |
| 7834 | echo "$as_me: WARNING: sys/time.h: proceeding with the compiler's result" >&2;} |
| 7835 | ac_header_preproc=yes |
| 7836 | ;; |
| 7837 | no:yes:* ) |
| 7838 | { echo "$as_me:$LINENO: WARNING: sys/time.h: present but cannot be compiled" >&5 |
| 7839 | echo "$as_me: WARNING: sys/time.h: present but cannot be compiled" >&2;} |
| 7840 | { echo "$as_me:$LINENO: WARNING: sys/time.h: check for missing prerequisite headers?" >&5 |
| 7841 | echo "$as_me: WARNING: sys/time.h: check for missing prerequisite headers?" >&2;} |
| 7842 | { echo "$as_me:$LINENO: WARNING: sys/time.h: see the Autoconf documentation" >&5 |
| 7843 | echo "$as_me: WARNING: sys/time.h: see the Autoconf documentation" >&2;} |
| 7844 | { echo "$as_me:$LINENO: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7845 | echo "$as_me: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7846 | { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the preprocessor's result" >&5 |
| 7847 | echo "$as_me: WARNING: sys/time.h: proceeding with the preprocessor's result" >&2;} |
| 7848 | { echo "$as_me:$LINENO: WARNING: sys/time.h: in the future, the compiler will take precedence" >&5 |
| 7849 | 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^] | 7850 | ( |
| 7851 | cat <<\_ASBOX |
| 7852 | ## ------------------------------------ ## |
| 7853 | ## Report this to the pjproject lists. ## |
| 7854 | ## ------------------------------------ ## |
| 7855 | _ASBOX |
| 7856 | ) | |
| 7857 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7858 | ;; |
| 7859 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7860 | echo "$as_me:$LINENO: checking for sys/time.h" >&5 |
| 7861 | echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7862 | if test "${ac_cv_header_sys_time_h+set}" = set; then |
| 7863 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7864 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7865 | ac_cv_header_sys_time_h=$ac_header_preproc |
| 7866 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7867 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5 |
| 7868 | echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7869 | |
| 7870 | fi |
| 7871 | if test $ac_cv_header_sys_time_h = yes; then |
| 7872 | cat >>confdefs.h <<\_ACEOF |
| 7873 | #define PJ_HAS_SYS_TIME_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7874 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7875 | |
| 7876 | fi |
| 7877 | |
| 7878 | |
| 7879 | if test "${ac_cv_header_sys_timeb_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7880 | echo "$as_me:$LINENO: checking for sys/timeb.h" >&5 |
| 7881 | echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7882 | if test "${ac_cv_header_sys_timeb_h+set}" = set; then |
| 7883 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7884 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7885 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5 |
| 7886 | echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7887 | else |
| 7888 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7889 | echo "$as_me:$LINENO: checking sys/timeb.h usability" >&5 |
| 7890 | echo $ECHO_N "checking sys/timeb.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7891 | cat >conftest.$ac_ext <<_ACEOF |
| 7892 | /* confdefs.h. */ |
| 7893 | _ACEOF |
| 7894 | cat confdefs.h >>conftest.$ac_ext |
| 7895 | cat >>conftest.$ac_ext <<_ACEOF |
| 7896 | /* end confdefs.h. */ |
| 7897 | $ac_includes_default |
| 7898 | #include <sys/timeb.h> |
| 7899 | _ACEOF |
| 7900 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7901 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7902 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7903 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7904 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7905 | rm -f conftest.er1 |
| 7906 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7908 | (exit $ac_status); } && |
| 7909 | { ac_try='test -z "$ac_c_werror_flag" |
| 7910 | || test ! -s conftest.err' |
| 7911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7912 | (eval $ac_try) 2>&5 |
| 7913 | ac_status=$? |
| 7914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7915 | (exit $ac_status); }; } && |
| 7916 | { ac_try='test -s conftest.$ac_objext' |
| 7917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7918 | (eval $ac_try) 2>&5 |
| 7919 | ac_status=$? |
| 7920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7921 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7922 | ac_header_compiler=yes |
| 7923 | else |
| 7924 | echo "$as_me: failed program was:" >&5 |
| 7925 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7926 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7927 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7928 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7929 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7930 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7931 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7932 | |
| 7933 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7934 | echo "$as_me:$LINENO: checking sys/timeb.h presence" >&5 |
| 7935 | echo $ECHO_N "checking sys/timeb.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7936 | cat >conftest.$ac_ext <<_ACEOF |
| 7937 | /* confdefs.h. */ |
| 7938 | _ACEOF |
| 7939 | cat confdefs.h >>conftest.$ac_ext |
| 7940 | cat >>conftest.$ac_ext <<_ACEOF |
| 7941 | /* end confdefs.h. */ |
| 7942 | #include <sys/timeb.h> |
| 7943 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7944 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7945 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7946 | ac_status=$? |
| 7947 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7948 | rm -f conftest.er1 |
| 7949 | cat conftest.err >&5 |
| 7950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7951 | (exit $ac_status); } >/dev/null; then |
| 7952 | if test -s conftest.err; then |
| 7953 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7954 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 7955 | else |
| 7956 | ac_cpp_err= |
| 7957 | fi |
| 7958 | else |
| 7959 | ac_cpp_err=yes |
| 7960 | fi |
| 7961 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7962 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7963 | else |
| 7964 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7965 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7966 | |
| 7967 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 7968 | fi |
| 7969 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 7970 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7971 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 7972 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 7973 | # So? What about this header? |
| 7974 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7975 | yes:no: ) |
| 7976 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7977 | echo "$as_me: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7978 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the compiler's result" >&5 |
| 7979 | echo "$as_me: WARNING: sys/timeb.h: proceeding with the compiler's result" >&2;} |
| 7980 | ac_header_preproc=yes |
| 7981 | ;; |
| 7982 | no:yes:* ) |
| 7983 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: present but cannot be compiled" >&5 |
| 7984 | echo "$as_me: WARNING: sys/timeb.h: present but cannot be compiled" >&2;} |
| 7985 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&5 |
| 7986 | echo "$as_me: WARNING: sys/timeb.h: check for missing prerequisite headers?" >&2;} |
| 7987 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: see the Autoconf documentation" >&5 |
| 7988 | echo "$as_me: WARNING: sys/timeb.h: see the Autoconf documentation" >&2;} |
| 7989 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 7990 | echo "$as_me: WARNING: sys/timeb.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7991 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&5 |
| 7992 | echo "$as_me: WARNING: sys/timeb.h: proceeding with the preprocessor's result" >&2;} |
| 7993 | { echo "$as_me:$LINENO: WARNING: sys/timeb.h: in the future, the compiler will take precedence" >&5 |
| 7994 | 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^] | 7995 | ( |
| 7996 | cat <<\_ASBOX |
| 7997 | ## ------------------------------------ ## |
| 7998 | ## Report this to the pjproject lists. ## |
| 7999 | ## ------------------------------------ ## |
| 8000 | _ASBOX |
| 8001 | ) | |
| 8002 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8003 | ;; |
| 8004 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8005 | echo "$as_me:$LINENO: checking for sys/timeb.h" >&5 |
| 8006 | echo $ECHO_N "checking for sys/timeb.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8007 | if test "${ac_cv_header_sys_timeb_h+set}" = set; then |
| 8008 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8009 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8010 | ac_cv_header_sys_timeb_h=$ac_header_preproc |
| 8011 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8012 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_timeb_h" >&5 |
| 8013 | echo "${ECHO_T}$ac_cv_header_sys_timeb_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8014 | |
| 8015 | fi |
| 8016 | if test $ac_cv_header_sys_timeb_h = yes; then |
| 8017 | cat >>confdefs.h <<\_ACEOF |
| 8018 | #define PJ_HAS_SYS_TIMEB_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8019 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8020 | |
| 8021 | fi |
| 8022 | |
| 8023 | |
| 8024 | if test "${ac_cv_header_sys_types_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8025 | echo "$as_me:$LINENO: checking for sys/types.h" >&5 |
| 8026 | echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8027 | if test "${ac_cv_header_sys_types_h+set}" = set; then |
| 8028 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8029 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8030 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5 |
| 8031 | echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8032 | else |
| 8033 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8034 | echo "$as_me:$LINENO: checking sys/types.h usability" >&5 |
| 8035 | echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8036 | cat >conftest.$ac_ext <<_ACEOF |
| 8037 | /* confdefs.h. */ |
| 8038 | _ACEOF |
| 8039 | cat confdefs.h >>conftest.$ac_ext |
| 8040 | cat >>conftest.$ac_ext <<_ACEOF |
| 8041 | /* end confdefs.h. */ |
| 8042 | $ac_includes_default |
| 8043 | #include <sys/types.h> |
| 8044 | _ACEOF |
| 8045 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8046 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8047 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8048 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8049 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8050 | rm -f conftest.er1 |
| 8051 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8053 | (exit $ac_status); } && |
| 8054 | { ac_try='test -z "$ac_c_werror_flag" |
| 8055 | || test ! -s conftest.err' |
| 8056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8057 | (eval $ac_try) 2>&5 |
| 8058 | ac_status=$? |
| 8059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8060 | (exit $ac_status); }; } && |
| 8061 | { ac_try='test -s conftest.$ac_objext' |
| 8062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8063 | (eval $ac_try) 2>&5 |
| 8064 | ac_status=$? |
| 8065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8066 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8067 | ac_header_compiler=yes |
| 8068 | else |
| 8069 | echo "$as_me: failed program was:" >&5 |
| 8070 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8071 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8072 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8073 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8074 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8075 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8076 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8077 | |
| 8078 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8079 | echo "$as_me:$LINENO: checking sys/types.h presence" >&5 |
| 8080 | echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8081 | cat >conftest.$ac_ext <<_ACEOF |
| 8082 | /* confdefs.h. */ |
| 8083 | _ACEOF |
| 8084 | cat confdefs.h >>conftest.$ac_ext |
| 8085 | cat >>conftest.$ac_ext <<_ACEOF |
| 8086 | /* end confdefs.h. */ |
| 8087 | #include <sys/types.h> |
| 8088 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8089 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8090 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8091 | ac_status=$? |
| 8092 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8093 | rm -f conftest.er1 |
| 8094 | cat conftest.err >&5 |
| 8095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8096 | (exit $ac_status); } >/dev/null; then |
| 8097 | if test -s conftest.err; then |
| 8098 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8099 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8100 | else |
| 8101 | ac_cpp_err= |
| 8102 | fi |
| 8103 | else |
| 8104 | ac_cpp_err=yes |
| 8105 | fi |
| 8106 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8107 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8108 | else |
| 8109 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8110 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8111 | |
| 8112 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8113 | fi |
| 8114 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8115 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8116 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8117 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8118 | # So? What about this header? |
| 8119 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8120 | yes:no: ) |
| 8121 | { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8122 | echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8123 | { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5 |
| 8124 | echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;} |
| 8125 | ac_header_preproc=yes |
| 8126 | ;; |
| 8127 | no:yes:* ) |
| 8128 | { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5 |
| 8129 | echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;} |
| 8130 | { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5 |
| 8131 | echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;} |
| 8132 | { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5 |
| 8133 | echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;} |
| 8134 | { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8135 | echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8136 | { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5 |
| 8137 | echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;} |
| 8138 | { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5 |
| 8139 | 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^] | 8140 | ( |
| 8141 | cat <<\_ASBOX |
| 8142 | ## ------------------------------------ ## |
| 8143 | ## Report this to the pjproject lists. ## |
| 8144 | ## ------------------------------------ ## |
| 8145 | _ASBOX |
| 8146 | ) | |
| 8147 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8148 | ;; |
| 8149 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8150 | echo "$as_me:$LINENO: checking for sys/types.h" >&5 |
| 8151 | echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8152 | if test "${ac_cv_header_sys_types_h+set}" = set; then |
| 8153 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8154 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8155 | ac_cv_header_sys_types_h=$ac_header_preproc |
| 8156 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8157 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5 |
| 8158 | echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8159 | |
| 8160 | fi |
| 8161 | if test $ac_cv_header_sys_types_h = yes; then |
| 8162 | cat >>confdefs.h <<\_ACEOF |
| 8163 | #define PJ_HAS_SYS_TYPES_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8164 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8165 | |
| 8166 | fi |
| 8167 | |
| 8168 | |
| 8169 | if test "${ac_cv_header_time_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8170 | echo "$as_me:$LINENO: checking for time.h" >&5 |
| 8171 | echo $ECHO_N "checking for time.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8172 | if test "${ac_cv_header_time_h+set}" = set; then |
| 8173 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8174 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8175 | echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5 |
| 8176 | echo "${ECHO_T}$ac_cv_header_time_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8177 | else |
| 8178 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8179 | echo "$as_me:$LINENO: checking time.h usability" >&5 |
| 8180 | echo $ECHO_N "checking time.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8181 | cat >conftest.$ac_ext <<_ACEOF |
| 8182 | /* confdefs.h. */ |
| 8183 | _ACEOF |
| 8184 | cat confdefs.h >>conftest.$ac_ext |
| 8185 | cat >>conftest.$ac_ext <<_ACEOF |
| 8186 | /* end confdefs.h. */ |
| 8187 | $ac_includes_default |
| 8188 | #include <time.h> |
| 8189 | _ACEOF |
| 8190 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8191 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8192 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8193 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8194 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8195 | rm -f conftest.er1 |
| 8196 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8198 | (exit $ac_status); } && |
| 8199 | { ac_try='test -z "$ac_c_werror_flag" |
| 8200 | || test ! -s conftest.err' |
| 8201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8202 | (eval $ac_try) 2>&5 |
| 8203 | ac_status=$? |
| 8204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8205 | (exit $ac_status); }; } && |
| 8206 | { ac_try='test -s conftest.$ac_objext' |
| 8207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8208 | (eval $ac_try) 2>&5 |
| 8209 | ac_status=$? |
| 8210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8211 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8212 | ac_header_compiler=yes |
| 8213 | else |
| 8214 | echo "$as_me: failed program was:" >&5 |
| 8215 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8216 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8217 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8218 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8219 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8220 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8221 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8222 | |
| 8223 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8224 | echo "$as_me:$LINENO: checking time.h presence" >&5 |
| 8225 | echo $ECHO_N "checking time.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8226 | cat >conftest.$ac_ext <<_ACEOF |
| 8227 | /* confdefs.h. */ |
| 8228 | _ACEOF |
| 8229 | cat confdefs.h >>conftest.$ac_ext |
| 8230 | cat >>conftest.$ac_ext <<_ACEOF |
| 8231 | /* end confdefs.h. */ |
| 8232 | #include <time.h> |
| 8233 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8234 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8235 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8236 | ac_status=$? |
| 8237 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8238 | rm -f conftest.er1 |
| 8239 | cat conftest.err >&5 |
| 8240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8241 | (exit $ac_status); } >/dev/null; then |
| 8242 | if test -s conftest.err; then |
| 8243 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8244 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8245 | else |
| 8246 | ac_cpp_err= |
| 8247 | fi |
| 8248 | else |
| 8249 | ac_cpp_err=yes |
| 8250 | fi |
| 8251 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8252 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8253 | else |
| 8254 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8255 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8256 | |
| 8257 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8258 | fi |
| 8259 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8260 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8261 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8262 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8263 | # So? What about this header? |
| 8264 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8265 | yes:no: ) |
| 8266 | { echo "$as_me:$LINENO: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8267 | echo "$as_me: WARNING: time.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8268 | { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the compiler's result" >&5 |
| 8269 | echo "$as_me: WARNING: time.h: proceeding with the compiler's result" >&2;} |
| 8270 | ac_header_preproc=yes |
| 8271 | ;; |
| 8272 | no:yes:* ) |
| 8273 | { echo "$as_me:$LINENO: WARNING: time.h: present but cannot be compiled" >&5 |
| 8274 | echo "$as_me: WARNING: time.h: present but cannot be compiled" >&2;} |
| 8275 | { echo "$as_me:$LINENO: WARNING: time.h: check for missing prerequisite headers?" >&5 |
| 8276 | echo "$as_me: WARNING: time.h: check for missing prerequisite headers?" >&2;} |
| 8277 | { echo "$as_me:$LINENO: WARNING: time.h: see the Autoconf documentation" >&5 |
| 8278 | echo "$as_me: WARNING: time.h: see the Autoconf documentation" >&2;} |
| 8279 | { echo "$as_me:$LINENO: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8280 | echo "$as_me: WARNING: time.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8281 | { echo "$as_me:$LINENO: WARNING: time.h: proceeding with the preprocessor's result" >&5 |
| 8282 | echo "$as_me: WARNING: time.h: proceeding with the preprocessor's result" >&2;} |
| 8283 | { echo "$as_me:$LINENO: WARNING: time.h: in the future, the compiler will take precedence" >&5 |
| 8284 | 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^] | 8285 | ( |
| 8286 | cat <<\_ASBOX |
| 8287 | ## ------------------------------------ ## |
| 8288 | ## Report this to the pjproject lists. ## |
| 8289 | ## ------------------------------------ ## |
| 8290 | _ASBOX |
| 8291 | ) | |
| 8292 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8293 | ;; |
| 8294 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8295 | echo "$as_me:$LINENO: checking for time.h" >&5 |
| 8296 | echo $ECHO_N "checking for time.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8297 | if test "${ac_cv_header_time_h+set}" = set; then |
| 8298 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8299 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8300 | ac_cv_header_time_h=$ac_header_preproc |
| 8301 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8302 | echo "$as_me:$LINENO: result: $ac_cv_header_time_h" >&5 |
| 8303 | echo "${ECHO_T}$ac_cv_header_time_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8304 | |
| 8305 | fi |
| 8306 | if test $ac_cv_header_time_h = yes; then |
| 8307 | cat >>confdefs.h <<\_ACEOF |
| 8308 | #define PJ_HAS_TIME_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8309 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8310 | |
| 8311 | fi |
| 8312 | |
| 8313 | |
| 8314 | if test "${ac_cv_header_unistd_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8315 | echo "$as_me:$LINENO: checking for unistd.h" >&5 |
| 8316 | echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8317 | if test "${ac_cv_header_unistd_h+set}" = set; then |
| 8318 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8319 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8320 | echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5 |
| 8321 | echo "${ECHO_T}$ac_cv_header_unistd_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8322 | else |
| 8323 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8324 | echo "$as_me:$LINENO: checking unistd.h usability" >&5 |
| 8325 | echo $ECHO_N "checking unistd.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8326 | cat >conftest.$ac_ext <<_ACEOF |
| 8327 | /* confdefs.h. */ |
| 8328 | _ACEOF |
| 8329 | cat confdefs.h >>conftest.$ac_ext |
| 8330 | cat >>conftest.$ac_ext <<_ACEOF |
| 8331 | /* end confdefs.h. */ |
| 8332 | $ac_includes_default |
| 8333 | #include <unistd.h> |
| 8334 | _ACEOF |
| 8335 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8336 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8337 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8338 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8339 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8340 | rm -f conftest.er1 |
| 8341 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8343 | (exit $ac_status); } && |
| 8344 | { ac_try='test -z "$ac_c_werror_flag" |
| 8345 | || test ! -s conftest.err' |
| 8346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8347 | (eval $ac_try) 2>&5 |
| 8348 | ac_status=$? |
| 8349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8350 | (exit $ac_status); }; } && |
| 8351 | { ac_try='test -s conftest.$ac_objext' |
| 8352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8353 | (eval $ac_try) 2>&5 |
| 8354 | ac_status=$? |
| 8355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8356 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8357 | ac_header_compiler=yes |
| 8358 | else |
| 8359 | echo "$as_me: failed program was:" >&5 |
| 8360 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8361 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8362 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8363 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8364 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8365 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8366 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8367 | |
| 8368 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8369 | echo "$as_me:$LINENO: checking unistd.h presence" >&5 |
| 8370 | echo $ECHO_N "checking unistd.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8371 | cat >conftest.$ac_ext <<_ACEOF |
| 8372 | /* confdefs.h. */ |
| 8373 | _ACEOF |
| 8374 | cat confdefs.h >>conftest.$ac_ext |
| 8375 | cat >>conftest.$ac_ext <<_ACEOF |
| 8376 | /* end confdefs.h. */ |
| 8377 | #include <unistd.h> |
| 8378 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8379 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8380 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8381 | ac_status=$? |
| 8382 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8383 | rm -f conftest.er1 |
| 8384 | cat conftest.err >&5 |
| 8385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8386 | (exit $ac_status); } >/dev/null; then |
| 8387 | if test -s conftest.err; then |
| 8388 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8389 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8390 | else |
| 8391 | ac_cpp_err= |
| 8392 | fi |
| 8393 | else |
| 8394 | ac_cpp_err=yes |
| 8395 | fi |
| 8396 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8397 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8398 | else |
| 8399 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8400 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8401 | |
| 8402 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8403 | fi |
| 8404 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8405 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8406 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8407 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8408 | # So? What about this header? |
| 8409 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8410 | yes:no: ) |
| 8411 | { echo "$as_me:$LINENO: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8412 | echo "$as_me: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8413 | { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the compiler's result" >&5 |
| 8414 | echo "$as_me: WARNING: unistd.h: proceeding with the compiler's result" >&2;} |
| 8415 | ac_header_preproc=yes |
| 8416 | ;; |
| 8417 | no:yes:* ) |
| 8418 | { echo "$as_me:$LINENO: WARNING: unistd.h: present but cannot be compiled" >&5 |
| 8419 | echo "$as_me: WARNING: unistd.h: present but cannot be compiled" >&2;} |
| 8420 | { echo "$as_me:$LINENO: WARNING: unistd.h: check for missing prerequisite headers?" >&5 |
| 8421 | echo "$as_me: WARNING: unistd.h: check for missing prerequisite headers?" >&2;} |
| 8422 | { echo "$as_me:$LINENO: WARNING: unistd.h: see the Autoconf documentation" >&5 |
| 8423 | echo "$as_me: WARNING: unistd.h: see the Autoconf documentation" >&2;} |
| 8424 | { echo "$as_me:$LINENO: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8425 | echo "$as_me: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8426 | { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5 |
| 8427 | echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;} |
| 8428 | { echo "$as_me:$LINENO: WARNING: unistd.h: in the future, the compiler will take precedence" >&5 |
| 8429 | 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^] | 8430 | ( |
| 8431 | cat <<\_ASBOX |
| 8432 | ## ------------------------------------ ## |
| 8433 | ## Report this to the pjproject lists. ## |
| 8434 | ## ------------------------------------ ## |
| 8435 | _ASBOX |
| 8436 | ) | |
| 8437 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8438 | ;; |
| 8439 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8440 | echo "$as_me:$LINENO: checking for unistd.h" >&5 |
| 8441 | echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8442 | if test "${ac_cv_header_unistd_h+set}" = set; then |
| 8443 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8444 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8445 | ac_cv_header_unistd_h=$ac_header_preproc |
| 8446 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8447 | echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5 |
| 8448 | echo "${ECHO_T}$ac_cv_header_unistd_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8449 | |
| 8450 | fi |
| 8451 | if test $ac_cv_header_unistd_h = yes; then |
| 8452 | cat >>confdefs.h <<\_ACEOF |
| 8453 | #define PJ_HAS_UNISTD_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8454 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8455 | |
| 8456 | fi |
| 8457 | |
| 8458 | |
| 8459 | if test "${ac_cv_header_mswsock_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8460 | echo "$as_me:$LINENO: checking for mswsock.h" >&5 |
| 8461 | echo $ECHO_N "checking for mswsock.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8462 | if test "${ac_cv_header_mswsock_h+set}" = set; then |
| 8463 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8464 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8465 | echo "$as_me:$LINENO: result: $ac_cv_header_mswsock_h" >&5 |
| 8466 | echo "${ECHO_T}$ac_cv_header_mswsock_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8467 | else |
| 8468 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8469 | echo "$as_me:$LINENO: checking mswsock.h usability" >&5 |
| 8470 | echo $ECHO_N "checking mswsock.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8471 | cat >conftest.$ac_ext <<_ACEOF |
| 8472 | /* confdefs.h. */ |
| 8473 | _ACEOF |
| 8474 | cat confdefs.h >>conftest.$ac_ext |
| 8475 | cat >>conftest.$ac_ext <<_ACEOF |
| 8476 | /* end confdefs.h. */ |
| 8477 | $ac_includes_default |
| 8478 | #include <mswsock.h> |
| 8479 | _ACEOF |
| 8480 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8481 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8482 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8483 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8484 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8485 | rm -f conftest.er1 |
| 8486 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8488 | (exit $ac_status); } && |
| 8489 | { ac_try='test -z "$ac_c_werror_flag" |
| 8490 | || test ! -s conftest.err' |
| 8491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8492 | (eval $ac_try) 2>&5 |
| 8493 | ac_status=$? |
| 8494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8495 | (exit $ac_status); }; } && |
| 8496 | { ac_try='test -s conftest.$ac_objext' |
| 8497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8498 | (eval $ac_try) 2>&5 |
| 8499 | ac_status=$? |
| 8500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8501 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8502 | ac_header_compiler=yes |
| 8503 | else |
| 8504 | echo "$as_me: failed program was:" >&5 |
| 8505 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8506 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8507 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8508 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8509 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8510 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8511 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8512 | |
| 8513 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8514 | echo "$as_me:$LINENO: checking mswsock.h presence" >&5 |
| 8515 | echo $ECHO_N "checking mswsock.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8516 | cat >conftest.$ac_ext <<_ACEOF |
| 8517 | /* confdefs.h. */ |
| 8518 | _ACEOF |
| 8519 | cat confdefs.h >>conftest.$ac_ext |
| 8520 | cat >>conftest.$ac_ext <<_ACEOF |
| 8521 | /* end confdefs.h. */ |
| 8522 | #include <mswsock.h> |
| 8523 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8524 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8525 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8526 | ac_status=$? |
| 8527 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8528 | rm -f conftest.er1 |
| 8529 | cat conftest.err >&5 |
| 8530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8531 | (exit $ac_status); } >/dev/null; then |
| 8532 | if test -s conftest.err; then |
| 8533 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8534 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8535 | else |
| 8536 | ac_cpp_err= |
| 8537 | fi |
| 8538 | else |
| 8539 | ac_cpp_err=yes |
| 8540 | fi |
| 8541 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8542 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8543 | else |
| 8544 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8545 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8546 | |
| 8547 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8548 | fi |
| 8549 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8550 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8551 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8552 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8553 | # So? What about this header? |
| 8554 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8555 | yes:no: ) |
| 8556 | { echo "$as_me:$LINENO: WARNING: mswsock.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8557 | echo "$as_me: WARNING: mswsock.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8558 | { echo "$as_me:$LINENO: WARNING: mswsock.h: proceeding with the compiler's result" >&5 |
| 8559 | echo "$as_me: WARNING: mswsock.h: proceeding with the compiler's result" >&2;} |
| 8560 | ac_header_preproc=yes |
| 8561 | ;; |
| 8562 | no:yes:* ) |
| 8563 | { echo "$as_me:$LINENO: WARNING: mswsock.h: present but cannot be compiled" >&5 |
| 8564 | echo "$as_me: WARNING: mswsock.h: present but cannot be compiled" >&2;} |
| 8565 | { echo "$as_me:$LINENO: WARNING: mswsock.h: check for missing prerequisite headers?" >&5 |
| 8566 | echo "$as_me: WARNING: mswsock.h: check for missing prerequisite headers?" >&2;} |
| 8567 | { echo "$as_me:$LINENO: WARNING: mswsock.h: see the Autoconf documentation" >&5 |
| 8568 | echo "$as_me: WARNING: mswsock.h: see the Autoconf documentation" >&2;} |
| 8569 | { echo "$as_me:$LINENO: WARNING: mswsock.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8570 | echo "$as_me: WARNING: mswsock.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8571 | { echo "$as_me:$LINENO: WARNING: mswsock.h: proceeding with the preprocessor's result" >&5 |
| 8572 | echo "$as_me: WARNING: mswsock.h: proceeding with the preprocessor's result" >&2;} |
| 8573 | { echo "$as_me:$LINENO: WARNING: mswsock.h: in the future, the compiler will take precedence" >&5 |
| 8574 | echo "$as_me: WARNING: mswsock.h: in the future, the compiler will take precedence" >&2;} |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8575 | ( |
| 8576 | cat <<\_ASBOX |
| 8577 | ## ------------------------------------ ## |
| 8578 | ## Report this to the pjproject lists. ## |
| 8579 | ## ------------------------------------ ## |
| 8580 | _ASBOX |
| 8581 | ) | |
| 8582 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8583 | ;; |
| 8584 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8585 | echo "$as_me:$LINENO: checking for mswsock.h" >&5 |
| 8586 | echo $ECHO_N "checking for mswsock.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8587 | if test "${ac_cv_header_mswsock_h+set}" = set; then |
| 8588 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8589 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8590 | ac_cv_header_mswsock_h=$ac_header_preproc |
| 8591 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8592 | echo "$as_me:$LINENO: result: $ac_cv_header_mswsock_h" >&5 |
| 8593 | echo "${ECHO_T}$ac_cv_header_mswsock_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8594 | |
| 8595 | fi |
| 8596 | if test $ac_cv_header_mswsock_h = yes; then |
| 8597 | cat >>confdefs.h <<\_ACEOF |
| 8598 | #define PJ_HAS_MSWSOCK_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8599 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8600 | |
| 8601 | fi |
| 8602 | |
| 8603 | |
| 8604 | if test "${ac_cv_header_winsock_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8605 | echo "$as_me:$LINENO: checking for winsock.h" >&5 |
| 8606 | echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8607 | if test "${ac_cv_header_winsock_h+set}" = set; then |
| 8608 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8609 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8610 | echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5 |
| 8611 | echo "${ECHO_T}$ac_cv_header_winsock_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8612 | else |
| 8613 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8614 | echo "$as_me:$LINENO: checking winsock.h usability" >&5 |
| 8615 | echo $ECHO_N "checking winsock.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8616 | cat >conftest.$ac_ext <<_ACEOF |
| 8617 | /* confdefs.h. */ |
| 8618 | _ACEOF |
| 8619 | cat confdefs.h >>conftest.$ac_ext |
| 8620 | cat >>conftest.$ac_ext <<_ACEOF |
| 8621 | /* end confdefs.h. */ |
| 8622 | $ac_includes_default |
| 8623 | #include <winsock.h> |
| 8624 | _ACEOF |
| 8625 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8626 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8627 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8628 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8629 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8630 | rm -f conftest.er1 |
| 8631 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8633 | (exit $ac_status); } && |
| 8634 | { ac_try='test -z "$ac_c_werror_flag" |
| 8635 | || test ! -s conftest.err' |
| 8636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8637 | (eval $ac_try) 2>&5 |
| 8638 | ac_status=$? |
| 8639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8640 | (exit $ac_status); }; } && |
| 8641 | { ac_try='test -s conftest.$ac_objext' |
| 8642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8643 | (eval $ac_try) 2>&5 |
| 8644 | ac_status=$? |
| 8645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8646 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8647 | ac_header_compiler=yes |
| 8648 | else |
| 8649 | echo "$as_me: failed program was:" >&5 |
| 8650 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8651 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8652 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8653 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8654 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8655 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8656 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8657 | |
| 8658 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8659 | echo "$as_me:$LINENO: checking winsock.h presence" >&5 |
| 8660 | echo $ECHO_N "checking winsock.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8661 | cat >conftest.$ac_ext <<_ACEOF |
| 8662 | /* confdefs.h. */ |
| 8663 | _ACEOF |
| 8664 | cat confdefs.h >>conftest.$ac_ext |
| 8665 | cat >>conftest.$ac_ext <<_ACEOF |
| 8666 | /* end confdefs.h. */ |
| 8667 | #include <winsock.h> |
| 8668 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8669 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8670 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8671 | ac_status=$? |
| 8672 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8673 | rm -f conftest.er1 |
| 8674 | cat conftest.err >&5 |
| 8675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8676 | (exit $ac_status); } >/dev/null; then |
| 8677 | if test -s conftest.err; then |
| 8678 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8679 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8680 | else |
| 8681 | ac_cpp_err= |
| 8682 | fi |
| 8683 | else |
| 8684 | ac_cpp_err=yes |
| 8685 | fi |
| 8686 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8687 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8688 | else |
| 8689 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8690 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8691 | |
| 8692 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8693 | fi |
| 8694 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8695 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8696 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8697 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8698 | # So? What about this header? |
| 8699 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8700 | yes:no: ) |
| 8701 | { echo "$as_me:$LINENO: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8702 | echo "$as_me: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8703 | { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the compiler's result" >&5 |
| 8704 | echo "$as_me: WARNING: winsock.h: proceeding with the compiler's result" >&2;} |
| 8705 | ac_header_preproc=yes |
| 8706 | ;; |
| 8707 | no:yes:* ) |
| 8708 | { echo "$as_me:$LINENO: WARNING: winsock.h: present but cannot be compiled" >&5 |
| 8709 | echo "$as_me: WARNING: winsock.h: present but cannot be compiled" >&2;} |
| 8710 | { echo "$as_me:$LINENO: WARNING: winsock.h: check for missing prerequisite headers?" >&5 |
| 8711 | echo "$as_me: WARNING: winsock.h: check for missing prerequisite headers?" >&2;} |
| 8712 | { echo "$as_me:$LINENO: WARNING: winsock.h: see the Autoconf documentation" >&5 |
| 8713 | echo "$as_me: WARNING: winsock.h: see the Autoconf documentation" >&2;} |
| 8714 | { echo "$as_me:$LINENO: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8715 | echo "$as_me: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8716 | { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the preprocessor's result" >&5 |
| 8717 | echo "$as_me: WARNING: winsock.h: proceeding with the preprocessor's result" >&2;} |
| 8718 | { echo "$as_me:$LINENO: WARNING: winsock.h: in the future, the compiler will take precedence" >&5 |
| 8719 | 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^] | 8720 | ( |
| 8721 | cat <<\_ASBOX |
| 8722 | ## ------------------------------------ ## |
| 8723 | ## Report this to the pjproject lists. ## |
| 8724 | ## ------------------------------------ ## |
| 8725 | _ASBOX |
| 8726 | ) | |
| 8727 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8728 | ;; |
| 8729 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8730 | echo "$as_me:$LINENO: checking for winsock.h" >&5 |
| 8731 | echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8732 | if test "${ac_cv_header_winsock_h+set}" = set; then |
| 8733 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8734 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8735 | ac_cv_header_winsock_h=$ac_header_preproc |
| 8736 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8737 | echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5 |
| 8738 | echo "${ECHO_T}$ac_cv_header_winsock_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8739 | |
| 8740 | fi |
| 8741 | if test $ac_cv_header_winsock_h = yes; then |
| 8742 | cat >>confdefs.h <<\_ACEOF |
| 8743 | #define PJ_HAS_WINSOCK_H 1 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8744 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8745 | |
| 8746 | fi |
| 8747 | |
| 8748 | |
| 8749 | if test "${ac_cv_header_winsock2_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8750 | echo "$as_me:$LINENO: checking for winsock2.h" >&5 |
| 8751 | echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8752 | if test "${ac_cv_header_winsock2_h+set}" = set; then |
| 8753 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8754 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8755 | echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5 |
| 8756 | echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8757 | else |
| 8758 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8759 | echo "$as_me:$LINENO: checking winsock2.h usability" >&5 |
| 8760 | echo $ECHO_N "checking winsock2.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8761 | cat >conftest.$ac_ext <<_ACEOF |
| 8762 | /* confdefs.h. */ |
| 8763 | _ACEOF |
| 8764 | cat confdefs.h >>conftest.$ac_ext |
| 8765 | cat >>conftest.$ac_ext <<_ACEOF |
| 8766 | /* end confdefs.h. */ |
| 8767 | $ac_includes_default |
| 8768 | #include <winsock2.h> |
| 8769 | _ACEOF |
| 8770 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8771 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8772 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8773 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8774 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8775 | rm -f conftest.er1 |
| 8776 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8778 | (exit $ac_status); } && |
| 8779 | { ac_try='test -z "$ac_c_werror_flag" |
| 8780 | || test ! -s conftest.err' |
| 8781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8782 | (eval $ac_try) 2>&5 |
| 8783 | ac_status=$? |
| 8784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8785 | (exit $ac_status); }; } && |
| 8786 | { ac_try='test -s conftest.$ac_objext' |
| 8787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8788 | (eval $ac_try) 2>&5 |
| 8789 | ac_status=$? |
| 8790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8791 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8792 | ac_header_compiler=yes |
| 8793 | else |
| 8794 | echo "$as_me: failed program was:" >&5 |
| 8795 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8796 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8797 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8798 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8799 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8800 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8801 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8802 | |
| 8803 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8804 | echo "$as_me:$LINENO: checking winsock2.h presence" >&5 |
| 8805 | echo $ECHO_N "checking winsock2.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8806 | cat >conftest.$ac_ext <<_ACEOF |
| 8807 | /* confdefs.h. */ |
| 8808 | _ACEOF |
| 8809 | cat confdefs.h >>conftest.$ac_ext |
| 8810 | cat >>conftest.$ac_ext <<_ACEOF |
| 8811 | /* end confdefs.h. */ |
| 8812 | #include <winsock2.h> |
| 8813 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8814 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8815 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8816 | ac_status=$? |
| 8817 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8818 | rm -f conftest.er1 |
| 8819 | cat conftest.err >&5 |
| 8820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8821 | (exit $ac_status); } >/dev/null; then |
| 8822 | if test -s conftest.err; then |
| 8823 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8824 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8825 | else |
| 8826 | ac_cpp_err= |
| 8827 | fi |
| 8828 | else |
| 8829 | ac_cpp_err=yes |
| 8830 | fi |
| 8831 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8832 | ac_header_preproc=yes |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8833 | else |
| 8834 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8835 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8836 | |
| 8837 | ac_header_preproc=no |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8838 | fi |
| 8839 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8840 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8841 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8842 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8843 | # So? What about this header? |
| 8844 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8845 | yes:no: ) |
| 8846 | { echo "$as_me:$LINENO: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8847 | echo "$as_me: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8848 | { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the compiler's result" >&5 |
| 8849 | echo "$as_me: WARNING: winsock2.h: proceeding with the compiler's result" >&2;} |
| 8850 | ac_header_preproc=yes |
| 8851 | ;; |
| 8852 | no:yes:* ) |
| 8853 | { echo "$as_me:$LINENO: WARNING: winsock2.h: present but cannot be compiled" >&5 |
| 8854 | echo "$as_me: WARNING: winsock2.h: present but cannot be compiled" >&2;} |
| 8855 | { echo "$as_me:$LINENO: WARNING: winsock2.h: check for missing prerequisite headers?" >&5 |
| 8856 | echo "$as_me: WARNING: winsock2.h: check for missing prerequisite headers?" >&2;} |
| 8857 | { echo "$as_me:$LINENO: WARNING: winsock2.h: see the Autoconf documentation" >&5 |
| 8858 | echo "$as_me: WARNING: winsock2.h: see the Autoconf documentation" >&2;} |
| 8859 | { echo "$as_me:$LINENO: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8860 | echo "$as_me: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8861 | { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the preprocessor's result" >&5 |
| 8862 | echo "$as_me: WARNING: winsock2.h: proceeding with the preprocessor's result" >&2;} |
| 8863 | { echo "$as_me:$LINENO: WARNING: winsock2.h: in the future, the compiler will take precedence" >&5 |
| 8864 | 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^] | 8865 | ( |
| 8866 | cat <<\_ASBOX |
| 8867 | ## ------------------------------------ ## |
| 8868 | ## Report this to the pjproject lists. ## |
| 8869 | ## ------------------------------------ ## |
| 8870 | _ASBOX |
| 8871 | ) | |
| 8872 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8873 | ;; |
| 8874 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8875 | echo "$as_me:$LINENO: checking for winsock2.h" >&5 |
| 8876 | echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8877 | if test "${ac_cv_header_winsock2_h+set}" = set; then |
| 8878 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 8879 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8880 | ac_cv_header_winsock2_h=$ac_header_preproc |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8881 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8882 | echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5 |
| 8883 | echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8884 | |
| 8885 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8886 | if test $ac_cv_header_winsock2_h = yes; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8887 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8888 | #define PJ_HAS_WINSOCK2_H 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8889 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 8890 | |
| 8891 | fi |
| 8892 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 8893 | |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 8894 | if test "${ac_cv_header_uuid_uuid_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8895 | echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5 |
| 8896 | echo $ECHO_N "checking for uuid/uuid.h... $ECHO_C" >&6 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 8897 | if test "${ac_cv_header_uuid_uuid_h+set}" = set; then |
| 8898 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8899 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8900 | echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5 |
| 8901 | echo "${ECHO_T}$ac_cv_header_uuid_uuid_h" >&6 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 8902 | else |
| 8903 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8904 | echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5 |
| 8905 | echo $ECHO_N "checking uuid/uuid.h usability... $ECHO_C" >&6 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 8906 | cat >conftest.$ac_ext <<_ACEOF |
| 8907 | /* confdefs.h. */ |
| 8908 | _ACEOF |
| 8909 | cat confdefs.h >>conftest.$ac_ext |
| 8910 | cat >>conftest.$ac_ext <<_ACEOF |
| 8911 | /* end confdefs.h. */ |
| 8912 | $ac_includes_default |
| 8913 | #include <uuid/uuid.h> |
| 8914 | _ACEOF |
| 8915 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8916 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8917 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 8918 | ac_status=$? |
| 8919 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8920 | rm -f conftest.er1 |
| 8921 | cat conftest.err >&5 |
| 8922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8923 | (exit $ac_status); } && |
| 8924 | { ac_try='test -z "$ac_c_werror_flag" |
| 8925 | || test ! -s conftest.err' |
| 8926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8927 | (eval $ac_try) 2>&5 |
| 8928 | ac_status=$? |
| 8929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8930 | (exit $ac_status); }; } && |
| 8931 | { ac_try='test -s conftest.$ac_objext' |
| 8932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8933 | (eval $ac_try) 2>&5 |
| 8934 | ac_status=$? |
| 8935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8936 | (exit $ac_status); }; }; then |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 8937 | ac_header_compiler=yes |
| 8938 | else |
| 8939 | echo "$as_me: failed program was:" >&5 |
| 8940 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8941 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8942 | ac_header_compiler=no |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 8943 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8944 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8945 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8946 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 8947 | |
| 8948 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8949 | echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5 |
| 8950 | echo $ECHO_N "checking uuid/uuid.h presence... $ECHO_C" >&6 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 8951 | cat >conftest.$ac_ext <<_ACEOF |
| 8952 | /* confdefs.h. */ |
| 8953 | _ACEOF |
| 8954 | cat confdefs.h >>conftest.$ac_ext |
| 8955 | cat >>conftest.$ac_ext <<_ACEOF |
| 8956 | /* end confdefs.h. */ |
| 8957 | #include <uuid/uuid.h> |
| 8958 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8959 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8960 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 8961 | ac_status=$? |
| 8962 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8963 | rm -f conftest.er1 |
| 8964 | cat conftest.err >&5 |
| 8965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8966 | (exit $ac_status); } >/dev/null; then |
| 8967 | if test -s conftest.err; then |
| 8968 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8969 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8970 | else |
| 8971 | ac_cpp_err= |
| 8972 | fi |
| 8973 | else |
| 8974 | ac_cpp_err=yes |
| 8975 | fi |
| 8976 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 8977 | ac_header_preproc=yes |
| 8978 | else |
| 8979 | echo "$as_me: failed program was:" >&5 |
| 8980 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8981 | |
| 8982 | ac_header_preproc=no |
| 8983 | fi |
| 8984 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 8985 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8986 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 8987 | |
| 8988 | # So? What about this header? |
| 8989 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8990 | yes:no: ) |
| 8991 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8992 | echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8993 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5 |
| 8994 | echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;} |
| 8995 | ac_header_preproc=yes |
| 8996 | ;; |
| 8997 | no:yes:* ) |
| 8998 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5 |
| 8999 | echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;} |
| 9000 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5 |
| 9001 | echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;} |
| 9002 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5 |
| 9003 | echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;} |
| 9004 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 9005 | echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9006 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5 |
| 9007 | echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;} |
| 9008 | { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5 |
| 9009 | 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^] | 9010 | ( |
| 9011 | cat <<\_ASBOX |
| 9012 | ## ------------------------------------ ## |
| 9013 | ## Report this to the pjproject lists. ## |
| 9014 | ## ------------------------------------ ## |
| 9015 | _ASBOX |
| 9016 | ) | |
| 9017 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 9018 | ;; |
| 9019 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9020 | echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5 |
| 9021 | echo $ECHO_N "checking for uuid/uuid.h... $ECHO_C" >&6 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 9022 | if test "${ac_cv_header_uuid_uuid_h+set}" = set; then |
| 9023 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9024 | else |
| 9025 | ac_cv_header_uuid_uuid_h=$ac_header_preproc |
| 9026 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9027 | echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5 |
| 9028 | echo "${ECHO_T}$ac_cv_header_uuid_uuid_h" >&6 |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 9029 | |
| 9030 | fi |
| 9031 | if test $ac_cv_header_uuid_uuid_h = yes; then |
| 9032 | ac_has_uuid_h=1 |
| 9033 | fi |
| 9034 | |
| 9035 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9036 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9037 | echo "$as_me:$LINENO: result: Setting PJ_OS_NAME to $target" >&5 |
| 9038 | echo "${ECHO_T}Setting PJ_OS_NAME to $target" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9039 | cat >>confdefs.h <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9040 | #define PJ_OS_NAME "$target" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9041 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9042 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9043 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9044 | echo "$as_me:$LINENO: result: Setting PJ_HAS_ERRNO_VAR to 1" >&5 |
| 9045 | echo "${ECHO_T}Setting PJ_HAS_ERRNO_VAR to 1" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9046 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9047 | #define PJ_HAS_ERRNO_VAR 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9048 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9049 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9050 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9051 | echo "$as_me:$LINENO: result: Setting PJ_HAS_HIGH_RES_TIMER to 1" >&5 |
| 9052 | echo "${ECHO_T}Setting PJ_HAS_HIGH_RES_TIMER to 1" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9053 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9054 | #define PJ_HAS_HIGH_RES_TIMER 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9055 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9056 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9057 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9058 | echo "$as_me:$LINENO: result: Setting PJ_HAS_MALLOC to 1" >&5 |
| 9059 | echo "${ECHO_T}Setting PJ_HAS_MALLOC to 1" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9060 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9061 | #define PJ_HAS_MALLOC 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9062 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9063 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9064 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9065 | echo "$as_me:$LINENO: result: Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&5 |
| 9066 | echo "${ECHO_T}Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9067 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9068 | #define PJ_NATIVE_STRING_IS_UNICODE 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9069 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9070 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9071 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9072 | echo "$as_me:$LINENO: result: Setting PJ_ATOMIC_VALUE_TYPE to long" >&5 |
| 9073 | echo "${ECHO_T}Setting PJ_ATOMIC_VALUE_TYPE to long" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9074 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 9075 | #define PJ_ATOMIC_VALUE_TYPE long |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9076 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9077 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9078 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9079 | echo "$as_me:$LINENO: checking if inet_aton() is available" >&5 |
| 9080 | echo $ECHO_N "checking if inet_aton() is available... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9081 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9082 | /* confdefs.h. */ |
| 9083 | _ACEOF |
| 9084 | cat confdefs.h >>conftest.$ac_ext |
| 9085 | cat >>conftest.$ac_ext <<_ACEOF |
| 9086 | /* end confdefs.h. */ |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9087 | #include <sys/types.h> |
| 9088 | #include <sys/socket.h> |
| 9089 | #include <arpa/inet.h> |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9090 | int |
| 9091 | main () |
| 9092 | { |
| 9093 | inet_aton(0, 0); |
| 9094 | ; |
| 9095 | return 0; |
| 9096 | } |
| 9097 | _ACEOF |
| 9098 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9099 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9100 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9101 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9102 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9103 | rm -f conftest.er1 |
| 9104 | cat conftest.err >&5 |
| 9105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9106 | (exit $ac_status); } && |
| 9107 | { ac_try='test -z "$ac_c_werror_flag" |
| 9108 | || test ! -s conftest.err' |
| 9109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9110 | (eval $ac_try) 2>&5 |
| 9111 | ac_status=$? |
| 9112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9113 | (exit $ac_status); }; } && |
| 9114 | { ac_try='test -s conftest.$ac_objext' |
| 9115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9116 | (eval $ac_try) 2>&5 |
| 9117 | ac_status=$? |
| 9118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9119 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9120 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9121 | #define PJ_SOCK_HAS_INET_ATON 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9122 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9123 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9124 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9125 | echo "${ECHO_T}yes" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9126 | else |
| 9127 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9128 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9129 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9130 | echo "$as_me:$LINENO: result: no" >&5 |
| 9131 | echo "${ECHO_T}no" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9132 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9133 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9134 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9135 | echo "$as_me:$LINENO: checking if inet_pton() is available" >&5 |
| 9136 | echo $ECHO_N "checking if inet_pton() is available... $ECHO_C" >&6 |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9137 | cat >conftest.$ac_ext <<_ACEOF |
| 9138 | /* confdefs.h. */ |
| 9139 | _ACEOF |
| 9140 | cat confdefs.h >>conftest.$ac_ext |
| 9141 | cat >>conftest.$ac_ext <<_ACEOF |
| 9142 | /* end confdefs.h. */ |
| 9143 | #include <sys/types.h> |
| 9144 | #include <sys/socket.h> |
| 9145 | #include <arpa/inet.h> |
| 9146 | int |
| 9147 | main () |
| 9148 | { |
| 9149 | inet_pton(0, 0, 0); |
| 9150 | ; |
| 9151 | return 0; |
| 9152 | } |
| 9153 | _ACEOF |
| 9154 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9155 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9156 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9157 | ac_status=$? |
| 9158 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9159 | rm -f conftest.er1 |
| 9160 | cat conftest.err >&5 |
| 9161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9162 | (exit $ac_status); } && |
| 9163 | { ac_try='test -z "$ac_c_werror_flag" |
| 9164 | || test ! -s conftest.err' |
| 9165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9166 | (eval $ac_try) 2>&5 |
| 9167 | ac_status=$? |
| 9168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9169 | (exit $ac_status); }; } && |
| 9170 | { ac_try='test -s conftest.$ac_objext' |
| 9171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9172 | (eval $ac_try) 2>&5 |
| 9173 | ac_status=$? |
| 9174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9175 | (exit $ac_status); }; }; then |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9176 | cat >>confdefs.h <<\_ACEOF |
| 9177 | #define PJ_SOCK_HAS_INET_PTON 1 |
| 9178 | _ACEOF |
| 9179 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9180 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9181 | echo "${ECHO_T}yes" >&6 |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9182 | else |
| 9183 | echo "$as_me: failed program was:" >&5 |
| 9184 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9185 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9186 | echo "$as_me:$LINENO: result: no" >&5 |
| 9187 | echo "${ECHO_T}no" >&6 |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9188 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9189 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9190 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9191 | echo "$as_me:$LINENO: checking if inet_ntop() is available" >&5 |
| 9192 | echo $ECHO_N "checking if inet_ntop() is available... $ECHO_C" >&6 |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9193 | cat >conftest.$ac_ext <<_ACEOF |
| 9194 | /* confdefs.h. */ |
| 9195 | _ACEOF |
| 9196 | cat confdefs.h >>conftest.$ac_ext |
| 9197 | cat >>conftest.$ac_ext <<_ACEOF |
| 9198 | /* end confdefs.h. */ |
| 9199 | #include <sys/types.h> |
| 9200 | #include <sys/socket.h> |
| 9201 | #include <arpa/inet.h> |
| 9202 | int |
| 9203 | main () |
| 9204 | { |
| 9205 | inet_ntop(0, 0, 0, 0); |
| 9206 | ; |
| 9207 | return 0; |
| 9208 | } |
| 9209 | _ACEOF |
| 9210 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9211 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9212 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9213 | ac_status=$? |
| 9214 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9215 | rm -f conftest.er1 |
| 9216 | cat conftest.err >&5 |
| 9217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9218 | (exit $ac_status); } && |
| 9219 | { ac_try='test -z "$ac_c_werror_flag" |
| 9220 | || test ! -s conftest.err' |
| 9221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9222 | (eval $ac_try) 2>&5 |
| 9223 | ac_status=$? |
| 9224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9225 | (exit $ac_status); }; } && |
| 9226 | { ac_try='test -s conftest.$ac_objext' |
| 9227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9228 | (eval $ac_try) 2>&5 |
| 9229 | ac_status=$? |
| 9230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9231 | (exit $ac_status); }; }; then |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9232 | cat >>confdefs.h <<\_ACEOF |
| 9233 | #define PJ_SOCK_HAS_INET_NTOP 1 |
| 9234 | _ACEOF |
| 9235 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9236 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9237 | echo "${ECHO_T}yes" >&6 |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9238 | else |
| 9239 | echo "$as_me: failed program was:" >&5 |
| 9240 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9241 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9242 | echo "$as_me:$LINENO: result: no" >&5 |
| 9243 | echo "${ECHO_T}no" >&6 |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9244 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9245 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9246 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9247 | echo "$as_me:$LINENO: checking if getaddrinfo() is available" >&5 |
| 9248 | echo $ECHO_N "checking if getaddrinfo() is available... $ECHO_C" >&6 |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9249 | cat >conftest.$ac_ext <<_ACEOF |
| 9250 | /* confdefs.h. */ |
| 9251 | _ACEOF |
| 9252 | cat confdefs.h >>conftest.$ac_ext |
| 9253 | cat >>conftest.$ac_ext <<_ACEOF |
| 9254 | /* end confdefs.h. */ |
| 9255 | #include <sys/types.h> |
| 9256 | #include <sys/socket.h> |
| 9257 | #include <netdb.h> |
| 9258 | int |
| 9259 | main () |
| 9260 | { |
| 9261 | getaddrinfo(0, 0, 0, 0); |
| 9262 | ; |
| 9263 | return 0; |
| 9264 | } |
| 9265 | _ACEOF |
| 9266 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9267 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9268 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9269 | ac_status=$? |
| 9270 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9271 | rm -f conftest.er1 |
| 9272 | cat conftest.err >&5 |
| 9273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9274 | (exit $ac_status); } && |
| 9275 | { ac_try='test -z "$ac_c_werror_flag" |
| 9276 | || test ! -s conftest.err' |
| 9277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9278 | (eval $ac_try) 2>&5 |
| 9279 | ac_status=$? |
| 9280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9281 | (exit $ac_status); }; } && |
| 9282 | { ac_try='test -s conftest.$ac_objext' |
| 9283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9284 | (eval $ac_try) 2>&5 |
| 9285 | ac_status=$? |
| 9286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9287 | (exit $ac_status); }; }; then |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9288 | cat >>confdefs.h <<\_ACEOF |
| 9289 | #define PJ_SOCK_HAS_GETADDRINFO 1 |
| 9290 | _ACEOF |
| 9291 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9292 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9293 | echo "${ECHO_T}yes" >&6 |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9294 | else |
| 9295 | echo "$as_me: failed program was:" >&5 |
| 9296 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9297 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9298 | echo "$as_me:$LINENO: result: no" >&5 |
| 9299 | echo "${ECHO_T}no" >&6 |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9300 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9301 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 9302 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9303 | echo "$as_me:$LINENO: checking if sockaddr_in has sin_len member" >&5 |
| 9304 | 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] | 9305 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9306 | /* confdefs.h. */ |
| 9307 | _ACEOF |
| 9308 | cat confdefs.h >>conftest.$ac_ext |
| 9309 | cat >>conftest.$ac_ext <<_ACEOF |
| 9310 | /* end confdefs.h. */ |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 9311 | #include <sys/types.h> |
| 9312 | #include <sys/socket.h> |
| 9313 | #include <netinet/in.h> |
| 9314 | #include <arpa/inet.h> |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9315 | int |
| 9316 | main () |
| 9317 | { |
| 9318 | struct sockaddr_in a; a.sin_len=0; |
| 9319 | ; |
| 9320 | return 0; |
| 9321 | } |
| 9322 | _ACEOF |
| 9323 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9324 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9325 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9326 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9327 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9328 | rm -f conftest.er1 |
| 9329 | cat conftest.err >&5 |
| 9330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9331 | (exit $ac_status); } && |
| 9332 | { ac_try='test -z "$ac_c_werror_flag" |
| 9333 | || test ! -s conftest.err' |
| 9334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9335 | (eval $ac_try) 2>&5 |
| 9336 | ac_status=$? |
| 9337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9338 | (exit $ac_status); }; } && |
| 9339 | { ac_try='test -s conftest.$ac_objext' |
| 9340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9341 | (eval $ac_try) 2>&5 |
| 9342 | ac_status=$? |
| 9343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9344 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9345 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9346 | #define PJ_SOCKADDR_HAS_LEN 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9347 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9348 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9349 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9350 | echo "${ECHO_T}yes" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9351 | else |
| 9352 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9353 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9354 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9355 | echo "$as_me:$LINENO: result: no" >&5 |
| 9356 | echo "${ECHO_T}no" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9357 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9358 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9359 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9360 | echo "$as_me:$LINENO: checking if socklen_t is available" >&5 |
| 9361 | echo $ECHO_N "checking if socklen_t is available... $ECHO_C" >&6 |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 9362 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9363 | /* confdefs.h. */ |
| 9364 | _ACEOF |
| 9365 | cat confdefs.h >>conftest.$ac_ext |
| 9366 | cat >>conftest.$ac_ext <<_ACEOF |
| 9367 | /* end confdefs.h. */ |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 9368 | #include <sys/socket.h> |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 9369 | int |
| 9370 | main () |
| 9371 | { |
| 9372 | socklen_t xxx = 0; |
| 9373 | ; |
| 9374 | return 0; |
| 9375 | } |
| 9376 | _ACEOF |
| 9377 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9378 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9379 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 9380 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9381 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9382 | rm -f conftest.er1 |
| 9383 | cat conftest.err >&5 |
| 9384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9385 | (exit $ac_status); } && |
| 9386 | { ac_try='test -z "$ac_c_werror_flag" |
| 9387 | || test ! -s conftest.err' |
| 9388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9389 | (eval $ac_try) 2>&5 |
| 9390 | ac_status=$? |
| 9391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9392 | (exit $ac_status); }; } && |
| 9393 | { ac_try='test -s conftest.$ac_objext' |
| 9394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9395 | (eval $ac_try) 2>&5 |
| 9396 | ac_status=$? |
| 9397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9398 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9399 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 9400 | #define PJ_HAS_SOCKLEN_T 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9401 | _ACEOF |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 9402 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9403 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9404 | echo "${ECHO_T}yes" >&6 |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 9405 | else |
| 9406 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9407 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9408 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9409 | echo "$as_me:$LINENO: result: no" >&5 |
| 9410 | echo "${ECHO_T}no" >&6 |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 9411 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9412 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | 30f85c6 | 2006-09-09 20:05:33 +0000 | [diff] [blame] | 9413 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9414 | echo "$as_me:$LINENO: checking if SO_ERROR is available" >&5 |
| 9415 | echo $ECHO_N "checking if SO_ERROR is available... $ECHO_C" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9416 | case $target in |
| 9417 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9418 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9419 | #define PJ_HAS_SO_ERROR 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9420 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9421 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9422 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9423 | echo "${ECHO_T}yes" >&6 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9424 | ;; |
| 9425 | *) |
| 9426 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9427 | /* confdefs.h. */ |
| 9428 | _ACEOF |
| 9429 | cat confdefs.h >>conftest.$ac_ext |
| 9430 | cat >>conftest.$ac_ext <<_ACEOF |
| 9431 | /* end confdefs.h. */ |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 9432 | #include <sys/types.h> |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9433 | #include <sys/socket.h> |
| 9434 | #include <netinet/in.h> |
| 9435 | #include <arpa/inet.h> |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9436 | int |
| 9437 | main () |
| 9438 | { |
| 9439 | int i=SO_ERROR; |
| 9440 | ; |
| 9441 | return 0; |
| 9442 | } |
| 9443 | _ACEOF |
| 9444 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9445 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9446 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9447 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9448 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9449 | rm -f conftest.er1 |
| 9450 | cat conftest.err >&5 |
| 9451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9452 | (exit $ac_status); } && |
| 9453 | { ac_try='test -z "$ac_c_werror_flag" |
| 9454 | || test ! -s conftest.err' |
| 9455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9456 | (eval $ac_try) 2>&5 |
| 9457 | ac_status=$? |
| 9458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9459 | (exit $ac_status); }; } && |
| 9460 | { ac_try='test -s conftest.$ac_objext' |
| 9461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9462 | (eval $ac_try) 2>&5 |
| 9463 | ac_status=$? |
| 9464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9465 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9466 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9467 | #define PJ_HAS_SO_ERROR 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9468 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9469 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9470 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9471 | echo "${ECHO_T}yes" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9472 | else |
| 9473 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9474 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9475 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9476 | echo "$as_me:$LINENO: result: no" >&5 |
| 9477 | echo "${ECHO_T}no" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9478 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9479 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9480 | ;; |
| 9481 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9482 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9483 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9484 | echo "$as_me:$LINENO: checking if pthread_rwlock_t is available" >&5 |
| 9485 | 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] | 9486 | cat >conftest.$ac_ext <<_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9487 | /* confdefs.h. */ |
| 9488 | _ACEOF |
| 9489 | cat confdefs.h >>conftest.$ac_ext |
| 9490 | cat >>conftest.$ac_ext <<_ACEOF |
| 9491 | /* end confdefs.h. */ |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9492 | #include <pthread.h> |
| 9493 | int |
| 9494 | main () |
| 9495 | { |
| 9496 | pthread_rwlock_t *x; |
| 9497 | ; |
| 9498 | return 0; |
| 9499 | } |
| 9500 | _ACEOF |
| 9501 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9502 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9503 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9504 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9505 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9506 | rm -f conftest.er1 |
| 9507 | cat conftest.err >&5 |
| 9508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9509 | (exit $ac_status); } && |
| 9510 | { ac_try='test -z "$ac_c_werror_flag" |
| 9511 | || test ! -s conftest.err' |
| 9512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9513 | (eval $ac_try) 2>&5 |
| 9514 | ac_status=$? |
| 9515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9516 | (exit $ac_status); }; } && |
| 9517 | { ac_try='test -s conftest.$ac_objext' |
| 9518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9519 | (eval $ac_try) 2>&5 |
| 9520 | ac_status=$? |
| 9521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9522 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9523 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9524 | #define PJ_EMULATE_RWMUTEX 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9525 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9526 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9527 | ac_rwmutex="yes" |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9528 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9529 | echo "${ECHO_T}yes" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9530 | else |
| 9531 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9532 | sed 's/^/| /' conftest.$ac_ext >&5 |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9533 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9534 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9535 | #define PJ_EMULATE_RWMUTEX 1 |
| 9536 | _ACEOF |
| 9537 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9538 | ac_rwmutex="no" |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9539 | echo "$as_me:$LINENO: result: no" >&5 |
| 9540 | echo "${ECHO_T}no" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 9541 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9542 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9543 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9544 | if test "$ac_rwmutex" = "no"; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9545 | echo "$as_me:$LINENO: checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS" >&5 |
| 9546 | 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] | 9547 | cat >conftest.$ac_ext <<_ACEOF |
| 9548 | /* confdefs.h. */ |
| 9549 | _ACEOF |
| 9550 | cat confdefs.h >>conftest.$ac_ext |
| 9551 | cat >>conftest.$ac_ext <<_ACEOF |
| 9552 | /* end confdefs.h. */ |
| 9553 | #define _POSIX_READER_WRITER_LOCKS |
| 9554 | #include <pthread.h> |
| 9555 | int |
| 9556 | main () |
| 9557 | { |
| 9558 | pthread_rwlock_t *x; |
| 9559 | ; |
| 9560 | return 0; |
| 9561 | } |
| 9562 | _ACEOF |
| 9563 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9564 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9565 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9566 | ac_status=$? |
| 9567 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9568 | rm -f conftest.er1 |
| 9569 | cat conftest.err >&5 |
| 9570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9571 | (exit $ac_status); } && |
| 9572 | { ac_try='test -z "$ac_c_werror_flag" |
| 9573 | || test ! -s conftest.err' |
| 9574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9575 | (eval $ac_try) 2>&5 |
| 9576 | ac_status=$? |
| 9577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9578 | (exit $ac_status); }; } && |
| 9579 | { ac_try='test -s conftest.$ac_objext' |
| 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); }; }; then |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9585 | cat >>confdefs.h <<\_ACEOF |
| 9586 | #define PJ_EMULATE_RWMUTEX 0 |
| 9587 | _ACEOF |
| 9588 | |
| 9589 | CFLAGS="$CFLAGS -D_POSIX_THREADS -D_POSIX_READER_WRITER_LOCKS" |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9590 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9591 | echo "${ECHO_T}yes" >&6 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9592 | else |
| 9593 | echo "$as_me: failed program was:" >&5 |
| 9594 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9595 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9596 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9597 | #define PJ_EMULATE_RWMUTEX 1 |
| 9598 | _ACEOF |
| 9599 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9600 | echo "$as_me:$LINENO: result: no" >&5 |
| 9601 | echo "${ECHO_T}no" >&6 |
| 9602 | fi |
| 9603 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9604 | fi |
| 9605 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9606 | echo "$as_me:$LINENO: checking if pthread_mutexattr_settype() is available" >&5 |
| 9607 | 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] | 9608 | cat >conftest.$ac_ext <<_ACEOF |
| 9609 | /* confdefs.h. */ |
| 9610 | _ACEOF |
| 9611 | cat confdefs.h >>conftest.$ac_ext |
| 9612 | cat >>conftest.$ac_ext <<_ACEOF |
| 9613 | /* end confdefs.h. */ |
| 9614 | #include <pthread.h> |
| 9615 | int |
| 9616 | main () |
| 9617 | { |
| 9618 | pthread_mutexattr_settype(0,PTHREAD_MUTEX_FAST_NP); |
| 9619 | ; |
| 9620 | return 0; |
| 9621 | } |
| 9622 | _ACEOF |
| 9623 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9624 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9625 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9626 | ac_status=$? |
| 9627 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9628 | rm -f conftest.er1 |
| 9629 | cat conftest.err >&5 |
| 9630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9631 | (exit $ac_status); } && |
| 9632 | { ac_try='test -z "$ac_c_werror_flag" |
| 9633 | || test ! -s conftest.err' |
| 9634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9635 | (eval $ac_try) 2>&5 |
| 9636 | ac_status=$? |
| 9637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9638 | (exit $ac_status); }; } && |
| 9639 | { ac_try='test -s conftest.$ac_objext' |
| 9640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9641 | (eval $ac_try) 2>&5 |
| 9642 | ac_status=$? |
| 9643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9644 | (exit $ac_status); }; }; then |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9645 | cat >>confdefs.h <<\_ACEOF |
| 9646 | #define PJ_HAS_PTHREAD_MUTEXATTR_SETTYPE 1 |
| 9647 | _ACEOF |
| 9648 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9649 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9650 | echo "${ECHO_T}yes" >&6 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9651 | else |
| 9652 | echo "$as_me: failed program was:" >&5 |
| 9653 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9654 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9655 | echo "$as_me:$LINENO: result: no" >&5 |
| 9656 | echo "${ECHO_T}no" >&6 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9657 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9658 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9659 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9660 | echo "$as_me:$LINENO: checking if pthread_mutexattr_t has recursive member" >&5 |
| 9661 | 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] | 9662 | cat >conftest.$ac_ext <<_ACEOF |
| 9663 | /* confdefs.h. */ |
| 9664 | _ACEOF |
| 9665 | cat confdefs.h >>conftest.$ac_ext |
| 9666 | cat >>conftest.$ac_ext <<_ACEOF |
| 9667 | /* end confdefs.h. */ |
| 9668 | #include <pthread.h> |
| 9669 | int |
| 9670 | main () |
| 9671 | { |
| 9672 | pthread_mutexattr_t attr; |
| 9673 | attr.recursive=1; |
| 9674 | ; |
| 9675 | return 0; |
| 9676 | } |
| 9677 | _ACEOF |
| 9678 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9679 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9680 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9681 | ac_status=$? |
| 9682 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9683 | rm -f conftest.er1 |
| 9684 | cat conftest.err >&5 |
| 9685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9686 | (exit $ac_status); } && |
| 9687 | { ac_try='test -z "$ac_c_werror_flag" |
| 9688 | || test ! -s conftest.err' |
| 9689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9690 | (eval $ac_try) 2>&5 |
| 9691 | ac_status=$? |
| 9692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9693 | (exit $ac_status); }; } && |
| 9694 | { ac_try='test -s conftest.$ac_objext' |
| 9695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9696 | (eval $ac_try) 2>&5 |
| 9697 | ac_status=$? |
| 9698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9699 | (exit $ac_status); }; }; then |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9700 | cat >>confdefs.h <<\_ACEOF |
| 9701 | #define PJ_PTHREAD_MUTEXATTR_T_HAS_RECURSIVE 1 |
| 9702 | _ACEOF |
| 9703 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9704 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9705 | echo "${ECHO_T}yes" >&6 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9706 | else |
| 9707 | echo "$as_me: failed program was:" >&5 |
| 9708 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9709 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9710 | echo "$as_me:$LINENO: result: no" >&5 |
| 9711 | echo "${ECHO_T}no" >&6 |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9712 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9713 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 9714 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9715 | |
| 9716 | case $target in |
| 9717 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | ad086e0 | 2007-02-16 10:58:18 +0000 | [diff] [blame] | 9718 | 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] | 9719 | ;; |
| 9720 | *) |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 9721 | 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" |
| 9722 | # UUID |
| 9723 | if test "$ac_has_uuid_lib" = "1" -a "$ac_has_uuid_h" = "1"; then |
| 9724 | ac_os_objs="$ac_os_objs guid_uuid.o" |
| 9725 | else |
| 9726 | ac_os_objs="$ac_os_objs guid_simple.o" |
| 9727 | fi |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 9728 | ;; |
| 9729 | esac |
| 9730 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9731 | |
| 9732 | |
| 9733 | |
Benny Prijono | 4e48b51 | 2007-05-16 13:41:00 +0000 | [diff] [blame] | 9734 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9735 | # Check whether --enable-sound or --disable-sound was given. |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 9736 | if test "${enable_sound+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9737 | enableval="$enable_sound" |
| 9738 | if test "$enable_sound" = "no"; then |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 9739 | ac_pjmedia_snd=null |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9740 | echo "$as_me:$LINENO: result: Checking if sound is disabled... yes" >&5 |
| 9741 | echo "${ECHO_T}Checking if sound is disabled... yes" >&6 |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 9742 | fi |
| 9743 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9744 | fi; |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 9745 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 9746 | |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9747 | if test "${ac_cv_header_sys_soundcard_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9748 | echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5 |
| 9749 | echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9750 | if test "${ac_cv_header_sys_soundcard_h+set}" = set; then |
| 9751 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9752 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9753 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5 |
| 9754 | echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9755 | else |
| 9756 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9757 | echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5 |
| 9758 | echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9759 | cat >conftest.$ac_ext <<_ACEOF |
| 9760 | /* confdefs.h. */ |
| 9761 | _ACEOF |
| 9762 | cat confdefs.h >>conftest.$ac_ext |
| 9763 | cat >>conftest.$ac_ext <<_ACEOF |
| 9764 | /* end confdefs.h. */ |
| 9765 | $ac_includes_default |
| 9766 | #include <sys/soundcard.h> |
| 9767 | _ACEOF |
| 9768 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9769 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9770 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9771 | ac_status=$? |
| 9772 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9773 | rm -f conftest.er1 |
| 9774 | cat conftest.err >&5 |
| 9775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9776 | (exit $ac_status); } && |
| 9777 | { ac_try='test -z "$ac_c_werror_flag" |
| 9778 | || test ! -s conftest.err' |
| 9779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9780 | (eval $ac_try) 2>&5 |
| 9781 | ac_status=$? |
| 9782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9783 | (exit $ac_status); }; } && |
| 9784 | { ac_try='test -s conftest.$ac_objext' |
| 9785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9786 | (eval $ac_try) 2>&5 |
| 9787 | ac_status=$? |
| 9788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9789 | (exit $ac_status); }; }; then |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9790 | ac_header_compiler=yes |
| 9791 | else |
| 9792 | echo "$as_me: failed program was:" >&5 |
| 9793 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9794 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9795 | ac_header_compiler=no |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9796 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9797 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9798 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9799 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9800 | |
| 9801 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9802 | echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5 |
| 9803 | echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9804 | cat >conftest.$ac_ext <<_ACEOF |
| 9805 | /* confdefs.h. */ |
| 9806 | _ACEOF |
| 9807 | cat confdefs.h >>conftest.$ac_ext |
| 9808 | cat >>conftest.$ac_ext <<_ACEOF |
| 9809 | /* end confdefs.h. */ |
| 9810 | #include <sys/soundcard.h> |
| 9811 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9812 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9813 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9814 | ac_status=$? |
| 9815 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9816 | rm -f conftest.er1 |
| 9817 | cat conftest.err >&5 |
| 9818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9819 | (exit $ac_status); } >/dev/null; then |
| 9820 | if test -s conftest.err; then |
| 9821 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9822 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9823 | else |
| 9824 | ac_cpp_err= |
| 9825 | fi |
| 9826 | else |
| 9827 | ac_cpp_err=yes |
| 9828 | fi |
| 9829 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9830 | ac_header_preproc=yes |
| 9831 | else |
| 9832 | echo "$as_me: failed program was:" >&5 |
| 9833 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9834 | |
| 9835 | ac_header_preproc=no |
| 9836 | fi |
| 9837 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9838 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9839 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9840 | |
| 9841 | # So? What about this header? |
| 9842 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9843 | yes:no: ) |
| 9844 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9845 | echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9846 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5 |
| 9847 | echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;} |
| 9848 | ac_header_preproc=yes |
| 9849 | ;; |
| 9850 | no:yes:* ) |
| 9851 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5 |
| 9852 | echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;} |
| 9853 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5 |
| 9854 | echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;} |
| 9855 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5 |
| 9856 | echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;} |
| 9857 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 9858 | echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9859 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5 |
| 9860 | echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;} |
| 9861 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5 |
| 9862 | 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^] | 9863 | ( |
| 9864 | cat <<\_ASBOX |
| 9865 | ## ------------------------------------ ## |
| 9866 | ## Report this to the pjproject lists. ## |
| 9867 | ## ------------------------------------ ## |
| 9868 | _ASBOX |
| 9869 | ) | |
| 9870 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9871 | ;; |
| 9872 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9873 | echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5 |
| 9874 | echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9875 | if test "${ac_cv_header_sys_soundcard_h+set}" = set; then |
| 9876 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9877 | else |
| 9878 | ac_cv_header_sys_soundcard_h=$ac_header_preproc |
| 9879 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9880 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5 |
| 9881 | echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9882 | |
| 9883 | fi |
| 9884 | if test $ac_cv_header_sys_soundcard_h = yes; then |
| 9885 | ac_pa_cflags="$ac_pa_cflags -DHAVE_SYS_SOUNDCARD_H" |
| 9886 | fi |
| 9887 | |
| 9888 | |
| 9889 | if test "${ac_cv_header_linux_soundcard_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9890 | echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5 |
| 9891 | echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9892 | if test "${ac_cv_header_linux_soundcard_h+set}" = set; then |
| 9893 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9894 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9895 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5 |
| 9896 | echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9897 | else |
| 9898 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9899 | echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5 |
| 9900 | echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9901 | cat >conftest.$ac_ext <<_ACEOF |
| 9902 | /* confdefs.h. */ |
| 9903 | _ACEOF |
| 9904 | cat confdefs.h >>conftest.$ac_ext |
| 9905 | cat >>conftest.$ac_ext <<_ACEOF |
| 9906 | /* end confdefs.h. */ |
| 9907 | $ac_includes_default |
| 9908 | #include <linux/soundcard.h> |
| 9909 | _ACEOF |
| 9910 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9911 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9912 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9913 | ac_status=$? |
| 9914 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9915 | rm -f conftest.er1 |
| 9916 | cat conftest.err >&5 |
| 9917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9918 | (exit $ac_status); } && |
| 9919 | { ac_try='test -z "$ac_c_werror_flag" |
| 9920 | || test ! -s conftest.err' |
| 9921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9922 | (eval $ac_try) 2>&5 |
| 9923 | ac_status=$? |
| 9924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9925 | (exit $ac_status); }; } && |
| 9926 | { ac_try='test -s conftest.$ac_objext' |
| 9927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9928 | (eval $ac_try) 2>&5 |
| 9929 | ac_status=$? |
| 9930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9931 | (exit $ac_status); }; }; then |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9932 | ac_header_compiler=yes |
| 9933 | else |
| 9934 | echo "$as_me: failed program was:" >&5 |
| 9935 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9936 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9937 | ac_header_compiler=no |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9938 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9939 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9940 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9941 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9942 | |
| 9943 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9944 | echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5 |
| 9945 | echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9946 | cat >conftest.$ac_ext <<_ACEOF |
| 9947 | /* confdefs.h. */ |
| 9948 | _ACEOF |
| 9949 | cat confdefs.h >>conftest.$ac_ext |
| 9950 | cat >>conftest.$ac_ext <<_ACEOF |
| 9951 | /* end confdefs.h. */ |
| 9952 | #include <linux/soundcard.h> |
| 9953 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9954 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9955 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9956 | ac_status=$? |
| 9957 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9958 | rm -f conftest.er1 |
| 9959 | cat conftest.err >&5 |
| 9960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9961 | (exit $ac_status); } >/dev/null; then |
| 9962 | if test -s conftest.err; then |
| 9963 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9964 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9965 | else |
| 9966 | ac_cpp_err= |
| 9967 | fi |
| 9968 | else |
| 9969 | ac_cpp_err=yes |
| 9970 | fi |
| 9971 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9972 | ac_header_preproc=yes |
| 9973 | else |
| 9974 | echo "$as_me: failed program was:" >&5 |
| 9975 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9976 | |
| 9977 | ac_header_preproc=no |
| 9978 | fi |
| 9979 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 9980 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9981 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 9982 | |
| 9983 | # So? What about this header? |
| 9984 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9985 | yes:no: ) |
| 9986 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9987 | echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9988 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5 |
| 9989 | echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;} |
| 9990 | ac_header_preproc=yes |
| 9991 | ;; |
| 9992 | no:yes:* ) |
| 9993 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5 |
| 9994 | echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;} |
| 9995 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5 |
| 9996 | echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;} |
| 9997 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5 |
| 9998 | echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;} |
| 9999 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 10000 | echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10001 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5 |
| 10002 | echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;} |
| 10003 | { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5 |
| 10004 | 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^] | 10005 | ( |
| 10006 | cat <<\_ASBOX |
| 10007 | ## ------------------------------------ ## |
| 10008 | ## Report this to the pjproject lists. ## |
| 10009 | ## ------------------------------------ ## |
| 10010 | _ASBOX |
| 10011 | ) | |
| 10012 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10013 | ;; |
| 10014 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10015 | echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5 |
| 10016 | echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10017 | if test "${ac_cv_header_linux_soundcard_h+set}" = set; then |
| 10018 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10019 | else |
| 10020 | ac_cv_header_linux_soundcard_h=$ac_header_preproc |
| 10021 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10022 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5 |
| 10023 | echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10024 | |
| 10025 | fi |
| 10026 | if test $ac_cv_header_linux_soundcard_h = yes; then |
| 10027 | ac_pa_cflags="$ac_pa_cflags -DHAVE_LINUX_SOUNDCARD_H" |
| 10028 | fi |
| 10029 | |
| 10030 | |
| 10031 | if test "${ac_cv_header_machine_soundcard_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10032 | echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5 |
| 10033 | echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10034 | if test "${ac_cv_header_machine_soundcard_h+set}" = set; then |
| 10035 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10036 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10037 | echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5 |
| 10038 | echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10039 | else |
| 10040 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10041 | echo "$as_me:$LINENO: checking machine/soundcard.h usability" >&5 |
| 10042 | echo $ECHO_N "checking machine/soundcard.h usability... $ECHO_C" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10043 | cat >conftest.$ac_ext <<_ACEOF |
| 10044 | /* confdefs.h. */ |
| 10045 | _ACEOF |
| 10046 | cat confdefs.h >>conftest.$ac_ext |
| 10047 | cat >>conftest.$ac_ext <<_ACEOF |
| 10048 | /* end confdefs.h. */ |
| 10049 | $ac_includes_default |
| 10050 | #include <machine/soundcard.h> |
| 10051 | _ACEOF |
| 10052 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10053 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10054 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10055 | ac_status=$? |
| 10056 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10057 | rm -f conftest.er1 |
| 10058 | cat conftest.err >&5 |
| 10059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10060 | (exit $ac_status); } && |
| 10061 | { ac_try='test -z "$ac_c_werror_flag" |
| 10062 | || test ! -s conftest.err' |
| 10063 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10064 | (eval $ac_try) 2>&5 |
| 10065 | ac_status=$? |
| 10066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10067 | (exit $ac_status); }; } && |
| 10068 | { ac_try='test -s conftest.$ac_objext' |
| 10069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10070 | (eval $ac_try) 2>&5 |
| 10071 | ac_status=$? |
| 10072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10073 | (exit $ac_status); }; }; then |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10074 | ac_header_compiler=yes |
| 10075 | else |
| 10076 | echo "$as_me: failed program was:" >&5 |
| 10077 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10078 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10079 | ac_header_compiler=no |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10080 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10081 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10082 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10083 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10084 | |
| 10085 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10086 | echo "$as_me:$LINENO: checking machine/soundcard.h presence" >&5 |
| 10087 | echo $ECHO_N "checking machine/soundcard.h presence... $ECHO_C" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10088 | cat >conftest.$ac_ext <<_ACEOF |
| 10089 | /* confdefs.h. */ |
| 10090 | _ACEOF |
| 10091 | cat confdefs.h >>conftest.$ac_ext |
| 10092 | cat >>conftest.$ac_ext <<_ACEOF |
| 10093 | /* end confdefs.h. */ |
| 10094 | #include <machine/soundcard.h> |
| 10095 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10096 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10097 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10098 | ac_status=$? |
| 10099 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10100 | rm -f conftest.er1 |
| 10101 | cat conftest.err >&5 |
| 10102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10103 | (exit $ac_status); } >/dev/null; then |
| 10104 | if test -s conftest.err; then |
| 10105 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10106 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10107 | else |
| 10108 | ac_cpp_err= |
| 10109 | fi |
| 10110 | else |
| 10111 | ac_cpp_err=yes |
| 10112 | fi |
| 10113 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10114 | ac_header_preproc=yes |
| 10115 | else |
| 10116 | echo "$as_me: failed program was:" >&5 |
| 10117 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10118 | |
| 10119 | ac_header_preproc=no |
| 10120 | fi |
| 10121 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10122 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10123 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10124 | |
| 10125 | # So? What about this header? |
| 10126 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10127 | yes:no: ) |
| 10128 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10129 | echo "$as_me: WARNING: machine/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10130 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: proceeding with the compiler's result" >&5 |
| 10131 | echo "$as_me: WARNING: machine/soundcard.h: proceeding with the compiler's result" >&2;} |
| 10132 | ac_header_preproc=yes |
| 10133 | ;; |
| 10134 | no:yes:* ) |
| 10135 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: present but cannot be compiled" >&5 |
| 10136 | echo "$as_me: WARNING: machine/soundcard.h: present but cannot be compiled" >&2;} |
| 10137 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: check for missing prerequisite headers?" >&5 |
| 10138 | echo "$as_me: WARNING: machine/soundcard.h: check for missing prerequisite headers?" >&2;} |
| 10139 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: see the Autoconf documentation" >&5 |
| 10140 | echo "$as_me: WARNING: machine/soundcard.h: see the Autoconf documentation" >&2;} |
| 10141 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 10142 | echo "$as_me: WARNING: machine/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10143 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: proceeding with the preprocessor's result" >&5 |
| 10144 | echo "$as_me: WARNING: machine/soundcard.h: proceeding with the preprocessor's result" >&2;} |
| 10145 | { echo "$as_me:$LINENO: WARNING: machine/soundcard.h: in the future, the compiler will take precedence" >&5 |
| 10146 | 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^] | 10147 | ( |
| 10148 | cat <<\_ASBOX |
| 10149 | ## ------------------------------------ ## |
| 10150 | ## Report this to the pjproject lists. ## |
| 10151 | ## ------------------------------------ ## |
| 10152 | _ASBOX |
| 10153 | ) | |
| 10154 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10155 | ;; |
| 10156 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10157 | echo "$as_me:$LINENO: checking for machine/soundcard.h" >&5 |
| 10158 | echo $ECHO_N "checking for machine/soundcard.h... $ECHO_C" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10159 | if test "${ac_cv_header_machine_soundcard_h+set}" = set; then |
| 10160 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10161 | else |
| 10162 | ac_cv_header_machine_soundcard_h=$ac_header_preproc |
| 10163 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10164 | echo "$as_me:$LINENO: result: $ac_cv_header_machine_soundcard_h" >&5 |
| 10165 | echo "${ECHO_T}$ac_cv_header_machine_soundcard_h" >&6 |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10166 | |
| 10167 | fi |
| 10168 | if test $ac_cv_header_machine_soundcard_h = yes; then |
| 10169 | ac_pa_cflags="$ac_pa_cflags -DHAVE_MACHINE_SOUNDCARD_H" |
| 10170 | fi |
| 10171 | |
| 10172 | |
| 10173 | |
Benny Prijono | 3e09167 | 2008-01-09 15:43:02 +0000 | [diff] [blame] | 10174 | if test "x$ac_cv_c_bigendian" = "xyes"; then |
| 10175 | ac_pa_cflags="$ac_pa_cflags -DPA_BIG_ENDIAN" |
| 10176 | else |
| 10177 | ac_pa_cflags="$ac_pa_cflags -DPA_LITTLE_ENDIAN" |
| 10178 | fi |
| 10179 | |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 10180 | if test "$enable_sound" = "no"; then |
| 10181 | true; |
| 10182 | else |
| 10183 | case $target in |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 10184 | *darwin*) |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 10185 | LIBS="$LIBS -framework CoreAudio -framework CoreServices -framework AudioUnit -framework AudioToolbox" |
| 10186 | if test "`uname -r`" = "6.8"; then |
Benny Prijono | 27c9872 | 2007-04-09 21:28:15 +0000 | [diff] [blame] | 10187 | #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] | 10188 | #AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS]) |
| 10189 | ac_pjmedia_snd=pa_old_darwinos |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10190 | echo "$as_me:$LINENO: result: Checking sound device backend... old coreaudio" >&5 |
| 10191 | echo "${ECHO_T}Checking sound device backend... old coreaudio" >&6 |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 10192 | else |
| 10193 | ac_pjmedia_snd=pa_darwinos |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10194 | echo "$as_me:$LINENO: result: Checking sound device backend... coreaudio" >&5 |
| 10195 | echo "${ECHO_T}Checking sound device backend... coreaudio" >&6 |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 10196 | fi |
Benny Prijono | b466e23 | 2006-09-10 08:53:59 +0000 | [diff] [blame] | 10197 | ;; |
| 10198 | *cygwin* | *mingw*) |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10199 | ac_pjmedia_snd=pa_win32 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10200 | echo "$as_me:$LINENO: result: Checking sound device backend... win32 sound" >&5 |
| 10201 | echo "${ECHO_T}Checking sound device backend... win32 sound" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10202 | ;; |
| 10203 | *rtems*) |
| 10204 | ac_pjmedia_snd=null |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10205 | echo "$as_me:$LINENO: result: Checking sound device backend... null sound" >&5 |
| 10206 | echo "${ECHO_T}Checking sound device backend... null sound" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10207 | ;; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10208 | *) |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10209 | ac_pjmedia_snd=pa_unix |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10210 | if test "${ac_cv_header_alsa_version_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10211 | echo "$as_me:$LINENO: checking for alsa/version.h" >&5 |
| 10212 | echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10213 | if test "${ac_cv_header_alsa_version_h+set}" = set; then |
| 10214 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10215 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10216 | echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5 |
| 10217 | echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10218 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10219 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10220 | echo "$as_me:$LINENO: checking alsa/version.h usability" >&5 |
| 10221 | echo $ECHO_N "checking alsa/version.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10222 | cat >conftest.$ac_ext <<_ACEOF |
| 10223 | /* confdefs.h. */ |
| 10224 | _ACEOF |
| 10225 | cat confdefs.h >>conftest.$ac_ext |
| 10226 | cat >>conftest.$ac_ext <<_ACEOF |
| 10227 | /* end confdefs.h. */ |
| 10228 | $ac_includes_default |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10229 | #include <alsa/version.h> |
| 10230 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10231 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10232 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10233 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10234 | ac_status=$? |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10235 | grep -v '^ *+' conftest.er1 >conftest.err |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10236 | rm -f conftest.er1 |
| 10237 | cat conftest.err >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10239 | (exit $ac_status); } && |
| 10240 | { ac_try='test -z "$ac_c_werror_flag" |
| 10241 | || test ! -s conftest.err' |
| 10242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10243 | (eval $ac_try) 2>&5 |
| 10244 | ac_status=$? |
| 10245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10246 | (exit $ac_status); }; } && |
| 10247 | { ac_try='test -s conftest.$ac_objext' |
| 10248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10249 | (eval $ac_try) 2>&5 |
| 10250 | ac_status=$? |
| 10251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10252 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10253 | ac_header_compiler=yes |
| 10254 | else |
| 10255 | echo "$as_me: failed program was:" >&5 |
| 10256 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10257 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10258 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10259 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10260 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10261 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10262 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10263 | |
| 10264 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10265 | echo "$as_me:$LINENO: checking alsa/version.h presence" >&5 |
| 10266 | echo $ECHO_N "checking alsa/version.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10267 | cat >conftest.$ac_ext <<_ACEOF |
| 10268 | /* confdefs.h. */ |
| 10269 | _ACEOF |
| 10270 | cat confdefs.h >>conftest.$ac_ext |
| 10271 | cat >>conftest.$ac_ext <<_ACEOF |
| 10272 | /* end confdefs.h. */ |
| 10273 | #include <alsa/version.h> |
| 10274 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10275 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10276 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10277 | ac_status=$? |
| 10278 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10279 | rm -f conftest.er1 |
| 10280 | cat conftest.err >&5 |
| 10281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10282 | (exit $ac_status); } >/dev/null; then |
| 10283 | if test -s conftest.err; then |
| 10284 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10285 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10286 | else |
| 10287 | ac_cpp_err= |
| 10288 | fi |
| 10289 | else |
| 10290 | ac_cpp_err=yes |
| 10291 | fi |
| 10292 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10293 | ac_header_preproc=yes |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10294 | else |
| 10295 | echo "$as_me: failed program was:" >&5 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10296 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10297 | |
| 10298 | ac_header_preproc=no |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10299 | fi |
| 10300 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10301 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10302 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10303 | |
| 10304 | # So? What about this header? |
| 10305 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10306 | yes:no: ) |
| 10307 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10308 | echo "$as_me: WARNING: alsa/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10309 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the compiler's result" >&5 |
| 10310 | echo "$as_me: WARNING: alsa/version.h: proceeding with the compiler's result" >&2;} |
| 10311 | ac_header_preproc=yes |
| 10312 | ;; |
| 10313 | no:yes:* ) |
| 10314 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: present but cannot be compiled" >&5 |
| 10315 | echo "$as_me: WARNING: alsa/version.h: present but cannot be compiled" >&2;} |
| 10316 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: check for missing prerequisite headers?" >&5 |
| 10317 | echo "$as_me: WARNING: alsa/version.h: check for missing prerequisite headers?" >&2;} |
| 10318 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: see the Autoconf documentation" >&5 |
| 10319 | echo "$as_me: WARNING: alsa/version.h: see the Autoconf documentation" >&2;} |
| 10320 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 10321 | echo "$as_me: WARNING: alsa/version.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10322 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&5 |
| 10323 | echo "$as_me: WARNING: alsa/version.h: proceeding with the preprocessor's result" >&2;} |
| 10324 | { echo "$as_me:$LINENO: WARNING: alsa/version.h: in the future, the compiler will take precedence" >&5 |
| 10325 | 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^] | 10326 | ( |
| 10327 | cat <<\_ASBOX |
| 10328 | ## ------------------------------------ ## |
| 10329 | ## Report this to the pjproject lists. ## |
| 10330 | ## ------------------------------------ ## |
| 10331 | _ASBOX |
| 10332 | ) | |
| 10333 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10334 | ;; |
| 10335 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10336 | echo "$as_me:$LINENO: checking for alsa/version.h" >&5 |
| 10337 | echo $ECHO_N "checking for alsa/version.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10338 | if test "${ac_cv_header_alsa_version_h+set}" = set; then |
| 10339 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10340 | else |
| 10341 | ac_cv_header_alsa_version_h=$ac_header_preproc |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10342 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10343 | echo "$as_me:$LINENO: result: $ac_cv_header_alsa_version_h" >&5 |
| 10344 | echo "${ECHO_T}$ac_cv_header_alsa_version_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10345 | |
| 10346 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10347 | if test $ac_cv_header_alsa_version_h = yes; then |
| 10348 | ac_pa_use_alsa=1 |
| 10349 | |
| 10350 | LIBS="$LIBS -lasound" |
| 10351 | |
| 10352 | else |
| 10353 | ac_pa_use_alsa=0 |
| 10354 | |
| 10355 | fi |
| 10356 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10357 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10358 | echo "$as_me:$LINENO: result: Checking sound device backend... unix" >&5 |
| 10359 | echo "${ECHO_T}Checking sound device backend... unix" >&6 |
| 10360 | |
| 10361 | ac_pa_use_oss=1 |
| 10362 | |
| 10363 | # Check whether --enable-oss or --disable-oss was given. |
| 10364 | if test "${enable_oss+set}" = set; then |
| 10365 | enableval="$enable_oss" |
| 10366 | |
| 10367 | if test "$enable_oss" = "no"; then |
| 10368 | ac_pa_use_oss=0 |
| 10369 | echo "$as_me:$LINENO: result: Checking if OSS audio is disabled... yes" >&5 |
| 10370 | echo "${ECHO_T}Checking if OSS audio is disabled... yes" >&6 |
| 10371 | fi |
| 10372 | |
| 10373 | fi; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10374 | ;; |
Benny Prijono | 1d97162 | 2006-09-10 22:27:40 +0000 | [diff] [blame] | 10375 | esac |
| 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 | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10379 | # Check whether --enable-small-filter or --disable-small-filter was given. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10380 | if test "${enable_small_filter+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10381 | enableval="$enable_small_filter" |
| 10382 | if test "$enable_small_filter" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10383 | ac_no_small_filter='-DPJMEDIA_HAS_SMALL_FILTER=0' |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10384 | echo "$as_me:$LINENO: result: Checking if small filter is disabled... yes" >&5 |
| 10385 | echo "${ECHO_T}Checking if small filter is disabled... yes" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10386 | fi |
| 10387 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10388 | echo "$as_me:$LINENO: result: Checking if small filter is disabled... no" >&5 |
| 10389 | echo "${ECHO_T}Checking if small filter is disabled... no" >&6 |
| 10390 | fi; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10391 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10392 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10393 | # Check whether --enable-large-filter or --disable-large-filter was given. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10394 | if test "${enable_large_filter+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10395 | enableval="$enable_large_filter" |
| 10396 | if test "$enable_large_filter" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10397 | ac_no_large_filter='-DPJMEDIA_HAS_LARGE_FILTER=0' |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10398 | echo "$as_me:$LINENO: result: Checking if large filter is disabled... yes" >&5 |
| 10399 | echo "${ECHO_T}Checking if large filter is disabled... yes" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10400 | fi |
| 10401 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10402 | echo "$as_me:$LINENO: result: Checking if large filter is disabled... no" >&5 |
| 10403 | echo "${ECHO_T}Checking if large filter is disabled... no" >&6 |
| 10404 | fi; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10405 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10406 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10407 | # Check whether --enable-speex-aec or --disable-speex-aec was given. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10408 | if test "${enable_speex_aec+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10409 | enableval="$enable_speex_aec" |
| 10410 | if test "$enable_speex_aec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10411 | ac_no_speex_aec='-DPJMEDIA_HAS_SPEEX_AEC=0' |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10412 | echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...yes" >&5 |
| 10413 | echo "${ECHO_T}Checking if Speex AEC is disabled...yes" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10414 | fi |
| 10415 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10416 | echo "$as_me:$LINENO: result: Checking if Speex AEC is disabled...no" >&5 |
| 10417 | echo "${ECHO_T}Checking if Speex AEC is disabled...no" >&6 |
| 10418 | fi; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10419 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10420 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10421 | # Check whether --enable-g711-codec or --disable-g711-codec was given. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10422 | if test "${enable_g711_codec+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10423 | enableval="$enable_g711_codec" |
| 10424 | if test "$enable_g711_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10425 | ac_no_g711_codec=1 |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 10426 | cat >>confdefs.h <<\_ACEOF |
| 10427 | #define PJMEDIA_HAS_G711_CODEC 0 |
| 10428 | _ACEOF |
| 10429 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10430 | echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...yes" >&5 |
| 10431 | echo "${ECHO_T}Checking if G.711 codec is disabled...yes" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10432 | fi |
| 10433 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10434 | echo "$as_me:$LINENO: result: Checking if G.711 codec is disabled...no" >&5 |
| 10435 | echo "${ECHO_T}Checking if G.711 codec is disabled...no" >&6 |
| 10436 | fi; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10437 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10438 | |
| 10439 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10440 | # Check whether --enable-l16-codec or --disable-l16-codec was given. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10441 | if test "${enable_l16_codec+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10442 | enableval="$enable_l16_codec" |
| 10443 | if test "$enable_l16_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10444 | ac_no_l16_codec=1 |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 10445 | cat >>confdefs.h <<\_ACEOF |
| 10446 | #define PJMEDIA_HAS_L16_CODEC 0 |
| 10447 | _ACEOF |
| 10448 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10449 | echo "$as_me:$LINENO: result: Checking if L16 codecs are disabled...yes" >&5 |
| 10450 | echo "${ECHO_T}Checking if L16 codecs are disabled...yes" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10451 | fi |
| 10452 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10453 | echo "$as_me:$LINENO: result: Checking if L16 codec is disabled...no" >&5 |
| 10454 | echo "${ECHO_T}Checking if L16 codec is disabled...no" >&6 |
| 10455 | fi; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10456 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10457 | |
| 10458 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10459 | # Check whether --enable-gsm-codec or --disable-gsm-codec was given. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10460 | if test "${enable_gsm_codec+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10461 | enableval="$enable_gsm_codec" |
| 10462 | if test "$enable_gsm_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10463 | ac_no_gsm_codec=1 |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 10464 | cat >>confdefs.h <<\_ACEOF |
| 10465 | #define PJMEDIA_HAS_GSM_CODEC 0 |
| 10466 | _ACEOF |
| 10467 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10468 | echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...yes" >&5 |
| 10469 | echo "${ECHO_T}Checking if GSM codec is disabled...yes" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10470 | fi |
| 10471 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10472 | echo "$as_me:$LINENO: result: Checking if GSM codec is disabled...no" >&5 |
| 10473 | echo "${ECHO_T}Checking if GSM codec is disabled...no" >&6 |
| 10474 | fi; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10475 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10476 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10477 | # Check whether --enable-speex-codec or --disable-speex-codec was given. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10478 | if test "${enable_speex_codec+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10479 | enableval="$enable_speex_codec" |
| 10480 | if test "$enable_speex_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10481 | ac_no_speex_codec=1 |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 10482 | cat >>confdefs.h <<\_ACEOF |
| 10483 | #define PJMEDIA_HAS_SPEEX_CODEC 0 |
| 10484 | _ACEOF |
| 10485 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10486 | echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...yes" >&5 |
| 10487 | echo "${ECHO_T}Checking if Speex codec is disabled...yes" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10488 | fi |
| 10489 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10490 | echo "$as_me:$LINENO: result: Checking if Speex codec is disabled...no" >&5 |
| 10491 | echo "${ECHO_T}Checking if Speex codec is disabled...no" >&6 |
| 10492 | fi; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10493 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10494 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10495 | # Check whether --enable-ilbc-codec or --disable-ilbc-codec was given. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10496 | if test "${enable_ilbc_codec+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10497 | enableval="$enable_ilbc_codec" |
| 10498 | if test "$enable_ilbc_codec" = "no"; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10499 | ac_no_ilbc_codec=1 |
Benny Prijono | 06d1d0e | 2007-01-27 18:09:28 +0000 | [diff] [blame] | 10500 | cat >>confdefs.h <<\_ACEOF |
| 10501 | #define PJMEDIA_HAS_ILBC_CODEC 0 |
| 10502 | _ACEOF |
| 10503 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10504 | echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...yes" >&5 |
| 10505 | echo "${ECHO_T}Checking if iLBC codec is disabled...yes" >&6 |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10506 | fi |
| 10507 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10508 | echo "$as_me:$LINENO: result: Checking if iLBC codec is disabled...no" >&5 |
| 10509 | echo "${ECHO_T}Checking if iLBC codec is disabled...no" >&6 |
| 10510 | fi; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 10511 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10512 | # Check whether --enable-libsamplerate or --disable-libsamplerate was given. |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10513 | if test "${enable_libsamplerate+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10514 | enableval="$enable_libsamplerate" |
| 10515 | |
| 10516 | echo "$as_me:$LINENO: checking for src_new in -lsamplerate" >&5 |
| 10517 | echo $ECHO_N "checking for src_new in -lsamplerate... $ECHO_C" >&6 |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10518 | if test "${ac_cv_lib_samplerate_src_new+set}" = set; then |
| 10519 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10520 | else |
| 10521 | ac_check_lib_save_LIBS=$LIBS |
| 10522 | LIBS="-lsamplerate $LIBS" |
| 10523 | cat >conftest.$ac_ext <<_ACEOF |
| 10524 | /* confdefs.h. */ |
| 10525 | _ACEOF |
| 10526 | cat confdefs.h >>conftest.$ac_ext |
| 10527 | cat >>conftest.$ac_ext <<_ACEOF |
| 10528 | /* end confdefs.h. */ |
| 10529 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10530 | /* Override any gcc2 internal prototype to avoid an error. */ |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10531 | #ifdef __cplusplus |
| 10532 | extern "C" |
| 10533 | #endif |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10534 | /* We use char because int might match the return type of a gcc2 |
| 10535 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10536 | char src_new (); |
| 10537 | int |
| 10538 | main () |
| 10539 | { |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10540 | src_new (); |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10541 | ; |
| 10542 | return 0; |
| 10543 | } |
| 10544 | _ACEOF |
| 10545 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10546 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10547 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10548 | ac_status=$? |
| 10549 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10550 | rm -f conftest.er1 |
| 10551 | cat conftest.err >&5 |
| 10552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10553 | (exit $ac_status); } && |
| 10554 | { ac_try='test -z "$ac_c_werror_flag" |
| 10555 | || test ! -s conftest.err' |
| 10556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10557 | (eval $ac_try) 2>&5 |
| 10558 | ac_status=$? |
| 10559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10560 | (exit $ac_status); }; } && |
| 10561 | { ac_try='test -s conftest$ac_exeext' |
| 10562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10563 | (eval $ac_try) 2>&5 |
| 10564 | ac_status=$? |
| 10565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10566 | (exit $ac_status); }; }; then |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10567 | ac_cv_lib_samplerate_src_new=yes |
| 10568 | else |
| 10569 | echo "$as_me: failed program was:" >&5 |
| 10570 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10571 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10572 | ac_cv_lib_samplerate_src_new=no |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10573 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10574 | rm -f conftest.err conftest.$ac_objext \ |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10575 | conftest$ac_exeext conftest.$ac_ext |
| 10576 | LIBS=$ac_check_lib_save_LIBS |
| 10577 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10578 | echo "$as_me:$LINENO: result: $ac_cv_lib_samplerate_src_new" >&5 |
| 10579 | echo "${ECHO_T}$ac_cv_lib_samplerate_src_new" >&6 |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10580 | if test $ac_cv_lib_samplerate_src_new = yes; then |
| 10581 | cat >>confdefs.h <<_ACEOF |
| 10582 | #define HAVE_LIBSAMPLERATE 1 |
| 10583 | _ACEOF |
| 10584 | |
| 10585 | LIBS="-lsamplerate $LIBS" |
| 10586 | |
| 10587 | fi |
| 10588 | |
| 10589 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10590 | echo "$as_me:$LINENO: result: Skipping libsamplerate detection" >&5 |
| 10591 | echo "${ECHO_T}Skipping libsamplerate detection" >&6 |
Benny Prijono | 550a1a6 | 2007-10-16 08:54:00 +0000 | [diff] [blame] | 10592 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10593 | fi; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10594 | |
| 10595 | |
| 10596 | |
| 10597 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10598 | # Check whether --enable-ssl or --disable-ssl was given. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10599 | if test "${enable_ssl+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10600 | enableval="$enable_ssl" |
| 10601 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10602 | if test "$enable_ssl" = "no"; then |
| 10603 | ac_no_ssl=1 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10604 | echo "$as_me:$LINENO: result: Checking if SSL support is disabled... yes" >&5 |
| 10605 | echo "${ECHO_T}Checking if SSL support is disabled... yes" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10606 | fi |
| 10607 | |
| 10608 | else |
| 10609 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10610 | echo "$as_me:$LINENO: result: checking for OpenSSL installations.." >&5 |
| 10611 | echo "${ECHO_T}checking for OpenSSL installations.." >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10612 | |
| 10613 | |
| 10614 | |
| 10615 | if test "${ac_cv_header_openssl_ssl_h+set}" = set; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10616 | echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5 |
| 10617 | echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10618 | if test "${ac_cv_header_openssl_ssl_h+set}" = set; then |
| 10619 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10620 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10621 | echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5 |
| 10622 | echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10623 | else |
| 10624 | # Is the header compilable? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10625 | echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5 |
| 10626 | echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10627 | cat >conftest.$ac_ext <<_ACEOF |
| 10628 | /* confdefs.h. */ |
| 10629 | _ACEOF |
| 10630 | cat confdefs.h >>conftest.$ac_ext |
| 10631 | cat >>conftest.$ac_ext <<_ACEOF |
| 10632 | /* end confdefs.h. */ |
| 10633 | $ac_includes_default |
| 10634 | #include <openssl/ssl.h> |
| 10635 | _ACEOF |
| 10636 | rm -f conftest.$ac_objext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10637 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10638 | (eval $ac_compile) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10639 | ac_status=$? |
| 10640 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10641 | rm -f conftest.er1 |
| 10642 | cat conftest.err >&5 |
| 10643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10644 | (exit $ac_status); } && |
| 10645 | { ac_try='test -z "$ac_c_werror_flag" |
| 10646 | || test ! -s conftest.err' |
| 10647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10648 | (eval $ac_try) 2>&5 |
| 10649 | ac_status=$? |
| 10650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10651 | (exit $ac_status); }; } && |
| 10652 | { ac_try='test -s conftest.$ac_objext' |
| 10653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10654 | (eval $ac_try) 2>&5 |
| 10655 | ac_status=$? |
| 10656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10657 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10658 | ac_header_compiler=yes |
| 10659 | else |
| 10660 | echo "$as_me: failed program was:" >&5 |
| 10661 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10662 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10663 | ac_header_compiler=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10664 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10665 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10666 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10667 | echo "${ECHO_T}$ac_header_compiler" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10668 | |
| 10669 | # Is the header present? |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10670 | echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5 |
| 10671 | echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10672 | cat >conftest.$ac_ext <<_ACEOF |
| 10673 | /* confdefs.h. */ |
| 10674 | _ACEOF |
| 10675 | cat confdefs.h >>conftest.$ac_ext |
| 10676 | cat >>conftest.$ac_ext <<_ACEOF |
| 10677 | /* end confdefs.h. */ |
| 10678 | #include <openssl/ssl.h> |
| 10679 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10680 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10681 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10682 | ac_status=$? |
| 10683 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10684 | rm -f conftest.er1 |
| 10685 | cat conftest.err >&5 |
| 10686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10687 | (exit $ac_status); } >/dev/null; then |
| 10688 | if test -s conftest.err; then |
| 10689 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10690 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10691 | else |
| 10692 | ac_cpp_err= |
| 10693 | fi |
| 10694 | else |
| 10695 | ac_cpp_err=yes |
| 10696 | fi |
| 10697 | if test -z "$ac_cpp_err"; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10698 | ac_header_preproc=yes |
| 10699 | else |
| 10700 | echo "$as_me: failed program was:" >&5 |
| 10701 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10702 | |
| 10703 | ac_header_preproc=no |
| 10704 | fi |
| 10705 | rm -f conftest.err conftest.$ac_ext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10706 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10707 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10708 | |
| 10709 | # So? What about this header? |
| 10710 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10711 | yes:no: ) |
| 10712 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10713 | echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10714 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5 |
| 10715 | echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;} |
| 10716 | ac_header_preproc=yes |
| 10717 | ;; |
| 10718 | no:yes:* ) |
| 10719 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5 |
| 10720 | echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;} |
| 10721 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5 |
| 10722 | echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;} |
| 10723 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5 |
| 10724 | echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;} |
| 10725 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 10726 | echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10727 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5 |
| 10728 | echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;} |
| 10729 | { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5 |
| 10730 | 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^] | 10731 | ( |
| 10732 | cat <<\_ASBOX |
| 10733 | ## ------------------------------------ ## |
| 10734 | ## Report this to the pjproject lists. ## |
| 10735 | ## ------------------------------------ ## |
| 10736 | _ASBOX |
| 10737 | ) | |
| 10738 | sed "s/^/$as_me: WARNING: /" >&2 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10739 | ;; |
| 10740 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10741 | echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5 |
| 10742 | echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10743 | if test "${ac_cv_header_openssl_ssl_h+set}" = set; then |
| 10744 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10745 | else |
| 10746 | ac_cv_header_openssl_ssl_h=$ac_header_preproc |
| 10747 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10748 | echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5 |
| 10749 | echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10750 | |
| 10751 | fi |
| 10752 | if test $ac_cv_header_openssl_ssl_h = yes; then |
| 10753 | openssl_h_present=1 |
| 10754 | fi |
| 10755 | |
| 10756 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10757 | echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5 |
| 10758 | 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] | 10759 | if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then |
| 10760 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10761 | else |
| 10762 | ac_check_lib_save_LIBS=$LIBS |
| 10763 | LIBS="-lssl $LIBS" |
| 10764 | cat >conftest.$ac_ext <<_ACEOF |
| 10765 | /* confdefs.h. */ |
| 10766 | _ACEOF |
| 10767 | cat confdefs.h >>conftest.$ac_ext |
| 10768 | cat >>conftest.$ac_ext <<_ACEOF |
| 10769 | /* end confdefs.h. */ |
| 10770 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10771 | /* Override any gcc2 internal prototype to avoid an error. */ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10772 | #ifdef __cplusplus |
| 10773 | extern "C" |
| 10774 | #endif |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10775 | /* We use char because int might match the return type of a gcc2 |
| 10776 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10777 | char SSL_library_init (); |
| 10778 | int |
| 10779 | main () |
| 10780 | { |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10781 | SSL_library_init (); |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10782 | ; |
| 10783 | return 0; |
| 10784 | } |
| 10785 | _ACEOF |
| 10786 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10787 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10788 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10789 | ac_status=$? |
| 10790 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10791 | rm -f conftest.er1 |
| 10792 | cat conftest.err >&5 |
| 10793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10794 | (exit $ac_status); } && |
| 10795 | { ac_try='test -z "$ac_c_werror_flag" |
| 10796 | || test ! -s conftest.err' |
| 10797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10798 | (eval $ac_try) 2>&5 |
| 10799 | ac_status=$? |
| 10800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10801 | (exit $ac_status); }; } && |
| 10802 | { ac_try='test -s conftest$ac_exeext' |
| 10803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10804 | (eval $ac_try) 2>&5 |
| 10805 | ac_status=$? |
| 10806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10807 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10808 | ac_cv_lib_ssl_SSL_library_init=yes |
| 10809 | else |
| 10810 | echo "$as_me: failed program was:" >&5 |
| 10811 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10812 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10813 | ac_cv_lib_ssl_SSL_library_init=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10814 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10815 | rm -f conftest.err conftest.$ac_objext \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10816 | conftest$ac_exeext conftest.$ac_ext |
| 10817 | LIBS=$ac_check_lib_save_LIBS |
| 10818 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10819 | echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5 |
| 10820 | echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10821 | if test $ac_cv_lib_ssl_SSL_library_init = yes; then |
| 10822 | libssl_present=1 && LIBS="$LIBS -lssl" |
| 10823 | fi |
| 10824 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10825 | echo "$as_me:$LINENO: checking for ERR_load_BIO_strings in -lcrypto" >&5 |
| 10826 | 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] | 10827 | if test "${ac_cv_lib_crypto_ERR_load_BIO_strings+set}" = set; then |
| 10828 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10829 | else |
| 10830 | ac_check_lib_save_LIBS=$LIBS |
| 10831 | LIBS="-lcrypto $LIBS" |
| 10832 | cat >conftest.$ac_ext <<_ACEOF |
| 10833 | /* confdefs.h. */ |
| 10834 | _ACEOF |
| 10835 | cat confdefs.h >>conftest.$ac_ext |
| 10836 | cat >>conftest.$ac_ext <<_ACEOF |
| 10837 | /* end confdefs.h. */ |
| 10838 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10839 | /* Override any gcc2 internal prototype to avoid an error. */ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10840 | #ifdef __cplusplus |
| 10841 | extern "C" |
| 10842 | #endif |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10843 | /* We use char because int might match the return type of a gcc2 |
| 10844 | builtin and then its argument prototype would still apply. */ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10845 | char ERR_load_BIO_strings (); |
| 10846 | int |
| 10847 | main () |
| 10848 | { |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10849 | ERR_load_BIO_strings (); |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10850 | ; |
| 10851 | return 0; |
| 10852 | } |
| 10853 | _ACEOF |
| 10854 | rm -f conftest.$ac_objext conftest$ac_exeext |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10855 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10856 | (eval $ac_link) 2>conftest.er1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10857 | ac_status=$? |
| 10858 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10859 | rm -f conftest.er1 |
| 10860 | cat conftest.err >&5 |
| 10861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10862 | (exit $ac_status); } && |
| 10863 | { ac_try='test -z "$ac_c_werror_flag" |
| 10864 | || test ! -s conftest.err' |
| 10865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10866 | (eval $ac_try) 2>&5 |
| 10867 | ac_status=$? |
| 10868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10869 | (exit $ac_status); }; } && |
| 10870 | { ac_try='test -s conftest$ac_exeext' |
| 10871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10872 | (eval $ac_try) 2>&5 |
| 10873 | ac_status=$? |
| 10874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10875 | (exit $ac_status); }; }; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10876 | ac_cv_lib_crypto_ERR_load_BIO_strings=yes |
| 10877 | else |
| 10878 | echo "$as_me: failed program was:" >&5 |
| 10879 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10880 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10881 | ac_cv_lib_crypto_ERR_load_BIO_strings=no |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10882 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10883 | rm -f conftest.err conftest.$ac_objext \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10884 | conftest$ac_exeext conftest.$ac_ext |
| 10885 | LIBS=$ac_check_lib_save_LIBS |
| 10886 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10887 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_ERR_load_BIO_strings" >&5 |
| 10888 | echo "${ECHO_T}$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10889 | if test $ac_cv_lib_crypto_ERR_load_BIO_strings = yes; then |
| 10890 | libcrypto_present=1 && LIBS="$LIBS -lcrypto" |
| 10891 | fi |
| 10892 | |
| 10893 | 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^] | 10894 | echo "$as_me:$LINENO: result: OpenSSL library found, SSL support enabled" >&5 |
| 10895 | echo "${ECHO_T}OpenSSL library found, SSL support enabled" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10896 | cat >>confdefs.h <<\_ACEOF |
| 10897 | #define PJSIP_HAS_TLS_TRANSPORT 1 |
| 10898 | _ACEOF |
| 10899 | |
| 10900 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10901 | echo "$as_me:$LINENO: result: ** OpenSSL libraries not found, disabling SSL support **" >&5 |
| 10902 | echo "${ECHO_T}** OpenSSL libraries not found, disabling SSL support **" >&6 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10903 | fi |
| 10904 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10905 | fi; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10906 | |
| 10907 | |
| 10908 | |
| 10909 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10910 | echo "$as_me:$LINENO: checking if select() needs correct nfds" >&5 |
| 10911 | echo $ECHO_N "checking if select() needs correct nfds... $ECHO_C" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10912 | case $target in |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10913 | *rtems*) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10914 | #define PJ_SELECT_NEEDS_NFDS 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10915 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10916 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10917 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10918 | echo "${ECHO_T}yes" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10919 | ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10920 | *) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10921 | #define PJ_SELECT_NEEDS_NFDS 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10922 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10923 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10924 | echo "$as_me:$LINENO: result: no (default)" >&5 |
| 10925 | echo "${ECHO_T}no (default)" >&6 |
| 10926 | echo "$as_me:$LINENO: result: ** Decided that select() doesn't need correct nfds (please check)" >&5 |
| 10927 | 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] | 10928 | ;; |
| 10929 | esac |
| 10930 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10931 | echo "$as_me:$LINENO: checking if pj_thread_create() should enforce stack size" >&5 |
| 10932 | 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] | 10933 | case $target in |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10934 | *rtems*) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10935 | #define PJ_THREAD_SET_STACK_SIZE 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10936 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10937 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10938 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10939 | echo "${ECHO_T}yes" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10940 | ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10941 | *) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10942 | #define PJ_THREAD_SET_STACK_SIZE 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10943 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10944 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10945 | echo "$as_me:$LINENO: result: no (default)" >&5 |
| 10946 | echo "${ECHO_T}no (default)" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10947 | ;; |
| 10948 | esac |
| 10949 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10950 | echo "$as_me:$LINENO: checking if pj_thread_create() should allocate stack" >&5 |
| 10951 | 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] | 10952 | case $target in |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10953 | *rtems*) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10954 | #define PJ_THREAD_ALLOCATE_STACK 1 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10955 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10956 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10957 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10958 | echo "${ECHO_T}yes" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10959 | ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10960 | *) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10961 | #define PJ_THREAD_ALLOCATE_STACK 0 |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10962 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10963 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10964 | echo "$as_me:$LINENO: result: no (default)" >&5 |
| 10965 | echo "${ECHO_T}no (default)" >&6 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10966 | ;; |
| 10967 | esac |
| 10968 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10969 | case $target in |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 10970 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10971 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 10972 | #define PJ_BLOCKING_ERROR_VAL WSAEWOULDBLOCK |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10973 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10974 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 10975 | ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10976 | *) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 10977 | #define PJ_BLOCKING_ERROR_VAL EAGAIN |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10978 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 10979 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10980 | echo "$as_me:$LINENO: result: ** Setting non-blocking recv() retval to EAGAIN (please check)" >&5 |
| 10981 | 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] | 10982 | ;; |
| 10983 | esac |
| 10984 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10985 | case $target in |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 10986 | *mingw* | *cygw* | *win32* | *w32* ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10987 | cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 10988 | #define PJ_BLOCKING_CONNECT_ERROR_VAL WSAEWOULDBLOCK |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10989 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 10990 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 10991 | ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10992 | *) cat >>confdefs.h <<\_ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 10993 | #define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 10994 | _ACEOF |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 10995 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 10996 | echo "$as_me:$LINENO: result: ** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&5 |
| 10997 | 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] | 10998 | ;; |
| 10999 | esac |
| 11000 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11001 | |
| 11002 | |
| 11003 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11004 | if test "$build" = "$host"; then |
| 11005 | ac_cross_compile= |
| 11006 | else |
Benny Prijono | 5b818b2 | 2006-09-17 22:58:51 +0000 | [diff] [blame] | 11007 | ac_cross_compile=${host_orig}- |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11008 | fi |
| 11009 | ac_linux_poll=select |
| 11010 | |
| 11011 | ac_host=unix |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11012 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11013 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11014 | case $target in |
| 11015 | *rtems*) |
| 11016 | ac_main_obj=main_rtems.o |
| 11017 | ;; |
| 11018 | *) |
| 11019 | ac_main_obj=main.o |
| 11020 | ;; |
| 11021 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11022 | |
| 11023 | cat >confcache <<\_ACEOF |
| 11024 | # This file is a shell script that caches the results of configure |
| 11025 | # tests run on this system so they can be shared between configure |
| 11026 | # scripts and configure runs, see configure's option --config-cache. |
| 11027 | # It is not useful on other systems. If it contains results you don't |
| 11028 | # want to keep, you may remove or edit it. |
| 11029 | # |
| 11030 | # config.status only pays attention to the cache file if you give it |
| 11031 | # the --recheck option to rerun configure. |
| 11032 | # |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11033 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11034 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 11035 | # following values. |
| 11036 | |
| 11037 | _ACEOF |
| 11038 | |
| 11039 | # The following way of writing the cache mishandles newlines in values, |
| 11040 | # but we know of no workaround that is simple, portable, and efficient. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11041 | # So, don't put newlines in cache variables' values. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11042 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 11043 | # 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^] | 11044 | { |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11045 | (set) 2>&1 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11046 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 11047 | *ac_space=\ *) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11048 | # `set' does not quote correctly, so add quotes (double-quote |
| 11049 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 11050 | sed -n \ |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11051 | "s/'/'\\\\''/g; |
| 11052 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11053 | ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11054 | *) |
| 11055 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11056 | sed -n \ |
| 11057 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11058 | ;; |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11059 | esac; |
| 11060 | } | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11061 | sed ' |
| 11062 | t clear |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11063 | : clear |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11064 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 11065 | t end |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11066 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 11067 | : end' >>confcache |
| 11068 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
| 11069 | if test -w $cache_file; then |
| 11070 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11071 | cat confcache >$cache_file |
| 11072 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11073 | echo "not updating unwritable cache $cache_file" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11074 | fi |
| 11075 | fi |
| 11076 | rm -f confcache |
| 11077 | |
| 11078 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 11079 | # Let make expand exec_prefix. |
| 11080 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 11081 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11082 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 11083 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 11084 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 11085 | # (actually we leave an empty line to preserve line numbers). |
| 11086 | if test "x$srcdir" = x.; then |
| 11087 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 11088 | s/:*\$(srcdir):*/:/; |
| 11089 | s/:*\${srcdir}:*/:/; |
| 11090 | s/:*@srcdir@:*/:/; |
| 11091 | s/^\([^=]*=[ ]*\):*/\1/; |
| 11092 | s/:*$//; |
| 11093 | s/^[^=]*=[ ]*$//; |
| 11094 | }' |
| 11095 | fi |
| 11096 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11097 | DEFS=-DHAVE_CONFIG_H |
| 11098 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11099 | ac_libobjs= |
| 11100 | ac_ltlibobjs= |
| 11101 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 11102 | # 1. Remove the extension, and $U if already installed. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11103 | ac_i=`echo "$ac_i" | |
| 11104 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
| 11105 | # 2. Add them. |
| 11106 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 11107 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11108 | done |
| 11109 | LIBOBJS=$ac_libobjs |
| 11110 | |
| 11111 | LTLIBOBJS=$ac_ltlibobjs |
| 11112 | |
| 11113 | |
| 11114 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11115 | : ${CONFIG_STATUS=./config.status} |
| 11116 | ac_clean_files_save=$ac_clean_files |
| 11117 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11118 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11119 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 11120 | cat >$CONFIG_STATUS <<_ACEOF |
| 11121 | #! $SHELL |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11122 | # Generated by $as_me. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11123 | # Run this file to recreate the current configuration. |
| 11124 | # Compiler output produced by configure, useful for debugging |
| 11125 | # configure, is in config.log if it exists. |
| 11126 | |
| 11127 | debug=false |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11128 | ac_cs_recheck=false |
| 11129 | ac_cs_silent=false |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11130 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 11131 | _ACEOF |
| 11132 | |
| 11133 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11134 | ## --------------------- ## |
| 11135 | ## M4sh Initialization. ## |
| 11136 | ## --------------------- ## |
| 11137 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11138 | # Be Bourne compatible |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11139 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 11140 | emulate sh |
| 11141 | NULLCMD=: |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11142 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 11143 | # is contrary to our usage. Disable this feature. |
| 11144 | alias -g '${1+"$@"}'='"$@"' |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11145 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 11146 | set -o posix |
| 11147 | fi |
| 11148 | DUALCASE=1; export DUALCASE # for MKS sh |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11149 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11150 | # Support unset when possible. |
| 11151 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 11152 | as_unset=unset |
| 11153 | else |
| 11154 | as_unset=false |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11155 | fi |
| 11156 | |
| 11157 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11158 | # Work around bugs in pre-3.0 UWIN ksh. |
| 11159 | $as_unset ENV MAIL MAILPATH |
| 11160 | PS1='$ ' |
| 11161 | PS2='> ' |
| 11162 | PS4='+ ' |
| 11163 | |
| 11164 | # NLS nuisances. |
| 11165 | for as_var in \ |
| 11166 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 11167 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 11168 | LC_TELEPHONE LC_TIME |
| 11169 | do |
| 11170 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 11171 | eval $as_var=C; export $as_var |
| 11172 | else |
| 11173 | $as_unset $as_var |
| 11174 | fi |
| 11175 | done |
| 11176 | |
| 11177 | # Required to use basename. |
| 11178 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 11179 | as_expr=expr |
| 11180 | else |
| 11181 | as_expr=false |
| 11182 | fi |
| 11183 | |
| 11184 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 11185 | as_basename=basename |
| 11186 | else |
| 11187 | as_basename=false |
| 11188 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11189 | |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 11190 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11191 | # Name of the executable. |
| 11192 | as_me=`$as_basename "$0" || |
| 11193 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 11194 | X"$0" : 'X\(//\)$' \| \ |
| 11195 | X"$0" : 'X\(/\)$' \| \ |
| 11196 | . : '\(.\)' 2>/dev/null || |
| 11197 | echo X/"$0" | |
| 11198 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 11199 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 11200 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 11201 | s/.*/./; q'` |
| 11202 | |
| 11203 | |
| 11204 | # PATH needs CR, and LINENO needs CR and PATH. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11205 | # Avoid depending upon Character Ranges. |
| 11206 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 11207 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 11208 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 11209 | as_cr_digits='0123456789' |
| 11210 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 11211 | |
| 11212 | # The user is always right. |
| 11213 | if test "${PATH_SEPARATOR+set}" != set; then |
| 11214 | echo "#! /bin/sh" >conf$$.sh |
| 11215 | echo "exit 0" >>conf$$.sh |
| 11216 | chmod +x conf$$.sh |
| 11217 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 11218 | PATH_SEPARATOR=';' |
| 11219 | else |
| 11220 | PATH_SEPARATOR=: |
| 11221 | fi |
| 11222 | rm -f conf$$.sh |
| 11223 | fi |
| 11224 | |
| 11225 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11226 | as_lineno_1=$LINENO |
| 11227 | as_lineno_2=$LINENO |
| 11228 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 11229 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 11230 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 11231 | # Find who we are. Look in the path if we contain no path at all |
| 11232 | # relative or not. |
| 11233 | case $0 in |
| 11234 | *[\\/]* ) as_myself=$0 ;; |
| 11235 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11236 | for as_dir in $PATH |
| 11237 | do |
| 11238 | IFS=$as_save_IFS |
| 11239 | test -z "$as_dir" && as_dir=. |
| 11240 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 11241 | done |
| 11242 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11243 | ;; |
| 11244 | esac |
| 11245 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 11246 | # in which case we are not to be found in the path. |
| 11247 | if test "x$as_myself" = x; then |
| 11248 | as_myself=$0 |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11249 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11250 | if test ! -f "$as_myself"; then |
| 11251 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 11252 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 11253 | { (exit 1); exit 1; }; } |
| 11254 | fi |
| 11255 | case $CONFIG_SHELL in |
| 11256 | '') |
| 11257 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11258 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 11259 | do |
| 11260 | IFS=$as_save_IFS |
| 11261 | test -z "$as_dir" && as_dir=. |
| 11262 | for as_base in sh bash ksh sh5; do |
| 11263 | case $as_dir in |
| 11264 | /*) |
| 11265 | if ("$as_dir/$as_base" -c ' |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11266 | as_lineno_1=$LINENO |
| 11267 | as_lineno_2=$LINENO |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11268 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11269 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11270 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 11271 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 11272 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 11273 | CONFIG_SHELL=$as_dir/$as_base |
| 11274 | export CONFIG_SHELL |
| 11275 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 11276 | fi;; |
| 11277 | esac |
| 11278 | done |
| 11279 | done |
| 11280 | ;; |
| 11281 | esac |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11282 | |
| 11283 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 11284 | # uniformly replaced by the line number. The first 'sed' inserts a |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11285 | # line-number line before each line; the second 'sed' does the real |
| 11286 | # work. The second script uses 'N' to pair each line-number line |
| 11287 | # with the numbered line, and appends trailing '-' during |
| 11288 | # substitution so that $LINENO is not a special case at line end. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11289 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11290 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 11291 | sed '=' <$as_myself | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11292 | sed ' |
| 11293 | N |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11294 | s,$,-, |
| 11295 | : loop |
| 11296 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11297 | t loop |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11298 | s,-$,, |
| 11299 | s,^['$as_cr_digits']*\n,, |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11300 | ' >$as_me.lineno && |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11301 | chmod +x $as_me.lineno || |
| 11302 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 11303 | 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] | 11304 | { (exit 1); exit 1; }; } |
| 11305 | |
| 11306 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 11307 | # (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^] | 11308 | # original and so on. Autoconf is especially sensible to this). |
| 11309 | . ./$as_me.lineno |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11310 | # Exit status is that of the last command. |
| 11311 | exit |
| 11312 | } |
| 11313 | |
| 11314 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11315 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 11316 | *c*,-n*) ECHO_N= ECHO_C=' |
| 11317 | ' ECHO_T=' ' ;; |
| 11318 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 11319 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11320 | esac |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11321 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11322 | if expr a : '\(a\)' >/dev/null 2>&1; then |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11323 | as_expr=expr |
| 11324 | else |
| 11325 | as_expr=false |
| 11326 | fi |
| 11327 | |
| 11328 | rm -f conf$$ conf$$.exe conf$$.file |
| 11329 | echo >conf$$.file |
| 11330 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11331 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 11332 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 11333 | if test -f conf$$.exe; then |
| 11334 | # Don't use ln at all; we don't have any links |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11335 | as_ln_s='cp -p' |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11336 | else |
| 11337 | as_ln_s='ln -s' |
| 11338 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11339 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 11340 | as_ln_s=ln |
| 11341 | else |
| 11342 | as_ln_s='cp -p' |
| 11343 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11344 | rm -f conf$$ conf$$.exe conf$$.file |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11345 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11346 | if mkdir -p . 2>/dev/null; then |
| 11347 | as_mkdir_p=: |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 11348 | else |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11349 | test -d ./-p && rmdir ./-p |
| 11350 | as_mkdir_p=false |
Benny Prijono | 39ae2da | 2006-10-13 17:57:42 +0000 | [diff] [blame] | 11351 | fi |
Benny Prijono | c5b6dbf | 2006-09-10 16:33:48 +0000 | [diff] [blame] | 11352 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11353 | as_executable_p="test -f" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11354 | |
| 11355 | # Sed expression to map a string onto a valid CPP name. |
| 11356 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 11357 | |
| 11358 | # Sed expression to map a string onto a valid variable name. |
| 11359 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 11360 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11361 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11362 | # IFS |
| 11363 | # We need space, tab and new line, in precisely that order. |
| 11364 | as_nl=' |
| 11365 | ' |
| 11366 | IFS=" $as_nl" |
| 11367 | |
| 11368 | # CDPATH. |
| 11369 | $as_unset CDPATH |
| 11370 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11371 | exec 6>&1 |
| 11372 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11373 | # 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] | 11374 | # report actual input values of CONFIG_FILES etc. instead of their |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11375 | # values after options handling. Logging --version etc. is OK. |
| 11376 | exec 5>>config.log |
| 11377 | { |
| 11378 | echo |
| 11379 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 11380 | ## Running $as_me. ## |
| 11381 | _ASBOX |
| 11382 | } >&5 |
| 11383 | cat >&5 <<_CSEOF |
| 11384 | |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 11385 | This file was extended by pjproject $as_me 0.8, which was |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11386 | generated by GNU Autoconf 2.59. Invocation command line was |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11387 | |
| 11388 | CONFIG_FILES = $CONFIG_FILES |
| 11389 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 11390 | CONFIG_LINKS = $CONFIG_LINKS |
| 11391 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 11392 | $ $0 $@ |
| 11393 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11394 | _CSEOF |
| 11395 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 11396 | echo >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11397 | _ACEOF |
| 11398 | |
| 11399 | # Files that config.status was made for. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11400 | if test -n "$ac_config_files"; then |
| 11401 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 11402 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11403 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11404 | if test -n "$ac_config_headers"; then |
| 11405 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 11406 | fi |
| 11407 | |
| 11408 | if test -n "$ac_config_links"; then |
| 11409 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 11410 | fi |
| 11411 | |
| 11412 | if test -n "$ac_config_commands"; then |
| 11413 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 11414 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11415 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11416 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11417 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11418 | ac_cs_usage="\ |
| 11419 | \`$as_me' instantiates files from templates according to the |
| 11420 | current configuration. |
| 11421 | |
| 11422 | Usage: $0 [OPTIONS] [FILE]... |
| 11423 | |
| 11424 | -h, --help print this help, then exit |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11425 | -V, --version print version number, then exit |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11426 | -q, --quiet do not print progress messages |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11427 | -d, --debug don't remove temporary files |
| 11428 | --recheck update $as_me by reconfiguring in the same conditions |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11429 | --file=FILE[:TEMPLATE] |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11430 | instantiate the configuration file FILE |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11431 | --header=FILE[:TEMPLATE] |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11432 | instantiate the configuration header FILE |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11433 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11434 | Configuration files: |
| 11435 | $config_files |
| 11436 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11437 | Configuration headers: |
| 11438 | $config_headers |
| 11439 | |
| 11440 | Report bugs to <bug-autoconf@gnu.org>." |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11441 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11442 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11443 | cat >>$CONFIG_STATUS <<_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11444 | ac_cs_version="\\ |
Benny Prijono | 1c5f4e4 | 2008-02-07 13:11:39 +0000 | [diff] [blame] | 11445 | pjproject config.status 0.8 |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11446 | configured by $0, generated by GNU Autoconf 2.59, |
| 11447 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11448 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11449 | Copyright (C) 2003 Free Software Foundation, Inc. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11450 | This config.status script is free software; the Free Software Foundation |
| 11451 | gives unlimited permission to copy, distribute and modify it." |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11452 | srcdir=$srcdir |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11453 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11454 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11455 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11456 | # If no file are specified by the user, then we need to provide default |
| 11457 | # value. By we need to know if files were specified by the user. |
| 11458 | ac_need_defaults=: |
| 11459 | while test $# != 0 |
| 11460 | do |
| 11461 | case $1 in |
| 11462 | --*=*) |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11463 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 11464 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11465 | ac_shift=: |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11466 | ;; |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11467 | -*) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11468 | ac_option=$1 |
| 11469 | ac_optarg=$2 |
| 11470 | ac_shift=shift |
| 11471 | ;; |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11472 | *) # This is not an option, so the user has probably given explicit |
| 11473 | # arguments. |
| 11474 | ac_option=$1 |
| 11475 | ac_need_defaults=false;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11476 | esac |
| 11477 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11478 | case $ac_option in |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11479 | # Handling of the options. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11480 | _ACEOF |
| 11481 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11482 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11483 | ac_cs_recheck=: ;; |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11484 | --version | --vers* | -V ) |
| 11485 | echo "$ac_cs_version"; exit 0 ;; |
| 11486 | --he | --h) |
| 11487 | # Conflict between --help and --header |
| 11488 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 11489 | Try \`$0 --help' for more information." >&5 |
| 11490 | echo "$as_me: error: ambiguous option: $1 |
| 11491 | Try \`$0 --help' for more information." >&2;} |
| 11492 | { (exit 1); exit 1; }; };; |
| 11493 | --help | --hel | -h ) |
| 11494 | echo "$ac_cs_usage"; exit 0 ;; |
| 11495 | --debug | --d* | -d ) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11496 | debug=: ;; |
| 11497 | --file | --fil | --fi | --f ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11498 | $ac_shift |
| 11499 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11500 | ac_need_defaults=false;; |
| 11501 | --header | --heade | --head | --hea ) |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11502 | $ac_shift |
| 11503 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11504 | ac_need_defaults=false;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11505 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 11506 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 11507 | ac_cs_silent=: ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11508 | |
| 11509 | # This is an error. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11510 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 11511 | Try \`$0 --help' for more information." >&5 |
| 11512 | echo "$as_me: error: unrecognized option: $1 |
| 11513 | Try \`$0 --help' for more information." >&2;} |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11514 | { (exit 1); exit 1; }; } ;; |
| 11515 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11516 | *) ac_config_targets="$ac_config_targets $1" ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11517 | |
| 11518 | esac |
| 11519 | shift |
| 11520 | done |
| 11521 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11522 | ac_configure_extra_args= |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11523 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11524 | if $ac_cs_silent; then |
| 11525 | exec 6>/dev/null |
| 11526 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 11527 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11528 | |
| 11529 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11530 | cat >>$CONFIG_STATUS <<_ACEOF |
| 11531 | if \$ac_cs_recheck; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11532 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 11533 | 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] | 11534 | fi |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11535 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11536 | _ACEOF |
| 11537 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11538 | |
| 11539 | |
| 11540 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11541 | |
| 11542 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11543 | for ac_config_target in $ac_config_targets |
| 11544 | do |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11545 | case "$ac_config_target" in |
| 11546 | # Handling of arguments. |
| 11547 | "build.mak" ) CONFIG_FILES="$CONFIG_FILES build.mak" ;; |
| 11548 | "build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;; |
| 11549 | "pjlib/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;; |
| 11550 | "pjlib-util/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;; |
| 11551 | "pjmedia/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;; |
| 11552 | "pjsip/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES pjsip/build/os-auto.mak" ;; |
| 11553 | "third_party/build/portaudio/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES third_party/build/portaudio/os-auto.mak" ;; |
| 11554 | "third_party/build/os-auto.mak" ) CONFIG_FILES="$CONFIG_FILES third_party/build/os-auto.mak" ;; |
| 11555 | "pjlib/include/pj/compat/os_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/os_auto.h" ;; |
| 11556 | "pjlib/include/pj/compat/m_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/m_auto.h" ;; |
| 11557 | "pjmedia/include/pjmedia/config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia/config_auto.h" ;; |
| 11558 | "pjmedia/include/pjmedia-codec/config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia-codec/config_auto.h" ;; |
| 11559 | "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] | 11560 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11561 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 11562 | { (exit 1); exit 1; }; };; |
| 11563 | esac |
| 11564 | done |
| 11565 | |
| 11566 | # If the user did not use the arguments to specify the items to instantiate, |
| 11567 | # then the envvar interface is used. Set only those that are not. |
| 11568 | # We use the long form for the default assignment because of an extremely |
| 11569 | # bizarre bug on SunOS 4.1.3. |
| 11570 | if $ac_need_defaults; then |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11571 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11572 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 11573 | fi |
| 11574 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11575 | # Have a temporary directory for convenience. Make it in the build tree |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11576 | # 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] | 11577 | # creating and moving files from /tmp can sometimes cause problems. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11578 | # Create a temporary directory, and hook for its removal unless debugging. |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11579 | $debug || |
| 11580 | { |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11581 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11582 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 11583 | } |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11584 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11585 | # Create a (secure) tmp directory for tmp files. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11586 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11587 | { |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11588 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11589 | test -n "$tmp" && test -d "$tmp" |
| 11590 | } || |
| 11591 | { |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11592 | tmp=./confstat$$-$RANDOM |
| 11593 | (umask 077 && mkdir $tmp) |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11594 | } || |
| 11595 | { |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11596 | echo "$me: cannot create a temporary directory in ." >&2 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11597 | { (exit 1); exit 1; } |
| 11598 | } |
| 11599 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11600 | _ACEOF |
| 11601 | |
| 11602 | cat >>$CONFIG_STATUS <<_ACEOF |
| 11603 | |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11604 | # |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11605 | # CONFIG_FILES section. |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11606 | # |
| 11607 | |
| 11608 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 11609 | # This happens for instance when ./config.status config.h |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11610 | if test -n "\$CONFIG_FILES"; then |
| 11611 | # Protect against being on the right side of a sed subst in config.status. |
| 11612 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 11613 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 11614 | s,@SHELL@,$SHELL,;t t |
| 11615 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 11616 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 11617 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 11618 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 11619 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 11620 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 11621 | s,@exec_prefix@,$exec_prefix,;t t |
| 11622 | s,@prefix@,$prefix,;t t |
| 11623 | s,@program_transform_name@,$program_transform_name,;t t |
| 11624 | s,@bindir@,$bindir,;t t |
| 11625 | s,@sbindir@,$sbindir,;t t |
| 11626 | s,@libexecdir@,$libexecdir,;t t |
| 11627 | s,@datadir@,$datadir,;t t |
| 11628 | s,@sysconfdir@,$sysconfdir,;t t |
| 11629 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 11630 | s,@localstatedir@,$localstatedir,;t t |
| 11631 | s,@libdir@,$libdir,;t t |
| 11632 | s,@includedir@,$includedir,;t t |
| 11633 | s,@oldincludedir@,$oldincludedir,;t t |
| 11634 | s,@infodir@,$infodir,;t t |
| 11635 | s,@mandir@,$mandir,;t t |
| 11636 | s,@build_alias@,$build_alias,;t t |
| 11637 | s,@host_alias@,$host_alias,;t t |
| 11638 | s,@target_alias@,$target_alias,;t t |
| 11639 | s,@DEFS@,$DEFS,;t t |
| 11640 | s,@ECHO_C@,$ECHO_C,;t t |
| 11641 | s,@ECHO_N@,$ECHO_N,;t t |
| 11642 | s,@ECHO_T@,$ECHO_T,;t t |
| 11643 | s,@LIBS@,$LIBS,;t t |
| 11644 | s,@build@,$build,;t t |
| 11645 | s,@build_cpu@,$build_cpu,;t t |
| 11646 | s,@build_vendor@,$build_vendor,;t t |
| 11647 | s,@build_os@,$build_os,;t t |
| 11648 | s,@host@,$host,;t t |
| 11649 | s,@host_cpu@,$host_cpu,;t t |
| 11650 | s,@host_vendor@,$host_vendor,;t t |
| 11651 | s,@host_os@,$host_os,;t t |
| 11652 | s,@target@,$target,;t t |
| 11653 | s,@target_cpu@,$target_cpu,;t t |
| 11654 | s,@target_vendor@,$target_vendor,;t t |
| 11655 | s,@target_os@,$target_os,;t t |
| 11656 | s,@CC@,$CC,;t t |
| 11657 | s,@CFLAGS@,$CFLAGS,;t t |
| 11658 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 11659 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 11660 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 11661 | s,@EXEEXT@,$EXEEXT,;t t |
| 11662 | s,@OBJEXT@,$OBJEXT,;t t |
| 11663 | s,@CXX@,$CXX,;t t |
| 11664 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
| 11665 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
| 11666 | s,@ac_pjdir@,$ac_pjdir,;t t |
| 11667 | s,@CPP@,$CPP,;t t |
| 11668 | s,@EGREP@,$EGREP,;t t |
| 11669 | s,@ac_os_objs@,$ac_os_objs,;t t |
| 11670 | s,@ac_pjmedia_snd@,$ac_pjmedia_snd,;t t |
| 11671 | s,@ac_pa_cflags@,$ac_pa_cflags,;t t |
| 11672 | s,@ac_pa_use_alsa@,$ac_pa_use_alsa,;t t |
| 11673 | s,@ac_pa_use_oss@,$ac_pa_use_oss,;t t |
| 11674 | s,@ac_no_small_filter@,$ac_no_small_filter,;t t |
| 11675 | s,@ac_no_large_filter@,$ac_no_large_filter,;t t |
| 11676 | s,@ac_no_speex_aec@,$ac_no_speex_aec,;t t |
| 11677 | s,@ac_no_g711_codec@,$ac_no_g711_codec,;t t |
| 11678 | s,@ac_no_l16_codec@,$ac_no_l16_codec,;t t |
| 11679 | s,@ac_no_gsm_codec@,$ac_no_gsm_codec,;t t |
| 11680 | s,@ac_no_speex_codec@,$ac_no_speex_codec,;t t |
| 11681 | s,@ac_no_ilbc_codec@,$ac_no_ilbc_codec,;t t |
| 11682 | s,@ac_no_ssl@,$ac_no_ssl,;t t |
| 11683 | s,@openssl_h_present@,$openssl_h_present,;t t |
| 11684 | s,@libssl_present@,$libssl_present,;t t |
| 11685 | s,@libcrypto_present@,$libcrypto_present,;t t |
| 11686 | s,@ac_cross_compile@,$ac_cross_compile,;t t |
| 11687 | s,@ac_linux_poll@,$ac_linux_poll,;t t |
| 11688 | s,@ac_host@,$ac_host,;t t |
| 11689 | s,@ac_main_obj@,$ac_main_obj,;t t |
| 11690 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 11691 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
| 11692 | CEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11693 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11694 | _ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11695 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11696 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 11697 | # Split the substitutions into bite-sized pieces for seds with |
| 11698 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 11699 | ac_max_sed_lines=48 |
| 11700 | ac_sed_frag=1 # Number of current file. |
| 11701 | ac_beg=1 # First line for current file. |
| 11702 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 11703 | ac_more_lines=: |
| 11704 | ac_sed_cmds= |
| 11705 | while $ac_more_lines; do |
| 11706 | if test $ac_beg -gt 1; then |
| 11707 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 11708 | else |
| 11709 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 11710 | fi |
| 11711 | if test ! -s $tmp/subs.frag; then |
| 11712 | ac_more_lines=false |
| 11713 | else |
| 11714 | # The purpose of the label and of the branching condition is to |
| 11715 | # speed up the sed processing (if there are no `@' at all, there |
| 11716 | # is no need to browse any of the substitutions). |
| 11717 | # These are the two extra sed commands mentioned above. |
| 11718 | (echo ':t |
| 11719 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 11720 | if test -z "$ac_sed_cmds"; then |
| 11721 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 11722 | else |
| 11723 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 11724 | fi |
| 11725 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 11726 | ac_beg=$ac_end |
| 11727 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 11728 | fi |
| 11729 | done |
| 11730 | if test -z "$ac_sed_cmds"; then |
| 11731 | ac_sed_cmds=cat |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11732 | fi |
| 11733 | fi # test -n "$CONFIG_FILES" |
| 11734 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11735 | _ACEOF |
| 11736 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 11737 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 11738 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 11739 | case $ac_file in |
| 11740 | - | *:- | *:-:* ) # input from stdin |
| 11741 | cat >$tmp/stdin |
| 11742 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 11743 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 11744 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 11745 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 11746 | * ) ac_file_in=$ac_file.in ;; |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11747 | esac |
| 11748 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11749 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 11750 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11751 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 11752 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 11753 | X"$ac_file" : 'X\(//\)$' \| \ |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11754 | X"$ac_file" : 'X\(/\)' \| \ |
| 11755 | . : '\(.\)' 2>/dev/null || |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11756 | echo X"$ac_file" | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11757 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 11758 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 11759 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 11760 | /^X\(\/\).*/{ s//\1/; q; } |
| 11761 | s/.*/./; q'` |
| 11762 | { if $as_mkdir_p; then |
| 11763 | mkdir -p "$ac_dir" |
| 11764 | else |
| 11765 | as_dir="$ac_dir" |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11766 | as_dirs= |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11767 | while test ! -d "$as_dir"; do |
| 11768 | as_dirs="$as_dir $as_dirs" |
| 11769 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11770 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 11771 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 11772 | X"$as_dir" : 'X\(//\)$' \| \ |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11773 | X"$as_dir" : 'X\(/\)' \| \ |
| 11774 | . : '\(.\)' 2>/dev/null || |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11775 | echo X"$as_dir" | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11776 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 11777 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 11778 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 11779 | /^X\(\/\).*/{ s//\1/; q; } |
| 11780 | s/.*/./; q'` |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11781 | done |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11782 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 11783 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 11784 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11785 | { (exit 1); exit 1; }; }; } |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11786 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11787 | ac_builddir=. |
| 11788 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11789 | if test "$ac_dir" != .; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11790 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11791 | # A "../" for each directory in $ac_dir_suffix. |
| 11792 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 11793 | else |
| 11794 | ac_dir_suffix= ac_top_builddir= |
| 11795 | fi |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11796 | |
| 11797 | case $srcdir in |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11798 | .) # No --srcdir option. We are building in place. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11799 | ac_srcdir=. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11800 | if test -z "$ac_top_builddir"; then |
| 11801 | ac_top_srcdir=. |
| 11802 | else |
| 11803 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 11804 | fi ;; |
| 11805 | [\\/]* | ?:[\\/]* ) # Absolute path. |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11806 | ac_srcdir=$srcdir$ac_dir_suffix; |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11807 | ac_top_srcdir=$srcdir ;; |
| 11808 | *) # Relative path. |
| 11809 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 11810 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11811 | esac |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11812 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11813 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 11814 | # the directories may not exist. |
| 11815 | case `pwd` in |
| 11816 | .) ac_abs_builddir="$ac_dir";; |
| 11817 | *) |
| 11818 | case "$ac_dir" in |
| 11819 | .) ac_abs_builddir=`pwd`;; |
| 11820 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 11821 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 11822 | esac;; |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11823 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11824 | case $ac_abs_builddir in |
| 11825 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 11826 | *) |
| 11827 | case ${ac_top_builddir}. in |
| 11828 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 11829 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 11830 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 11831 | esac;; |
| 11832 | esac |
| 11833 | case $ac_abs_builddir in |
| 11834 | .) ac_abs_srcdir=$ac_srcdir;; |
| 11835 | *) |
| 11836 | case $ac_srcdir in |
| 11837 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 11838 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 11839 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 11840 | esac;; |
| 11841 | esac |
| 11842 | case $ac_abs_builddir in |
| 11843 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 11844 | *) |
| 11845 | case $ac_top_srcdir in |
| 11846 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 11847 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 11848 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 11849 | esac;; |
| 11850 | esac |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 11851 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11852 | |
| 11853 | |
| 11854 | if test x"$ac_file" != x-; then |
| 11855 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 11856 | echo "$as_me: creating $ac_file" >&6;} |
| 11857 | rm -f "$ac_file" |
| 11858 | fi |
| 11859 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 11860 | # use $as_me), people would be surprised to read: |
| 11861 | # /* config.h. Generated by config.status. */ |
| 11862 | if test x"$ac_file" = x-; then |
| 11863 | configure_input= |
| 11864 | else |
| 11865 | configure_input="$ac_file. " |
| 11866 | fi |
| 11867 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 11868 | sed 's,.*/,,'` by configure." |
| 11869 | |
| 11870 | # First look for the input files in the build tree, otherwise in the |
| 11871 | # src tree. |
| 11872 | ac_file_inputs=`IFS=: |
| 11873 | for f in $ac_file_in; do |
| 11874 | case $f in |
| 11875 | -) echo $tmp/stdin ;; |
| 11876 | [\\/$]*) |
| 11877 | # Absolute (can't be DOS-style, as IFS=:) |
| 11878 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 11879 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 11880 | { (exit 1); exit 1; }; } |
| 11881 | echo "$f";; |
| 11882 | *) # Relative |
| 11883 | if test -f "$f"; then |
| 11884 | # Build tree |
| 11885 | echo "$f" |
| 11886 | elif test -f "$srcdir/$f"; then |
| 11887 | # Source tree |
| 11888 | echo "$srcdir/$f" |
| 11889 | else |
| 11890 | # /dev/null tree |
| 11891 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 11892 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 11893 | { (exit 1); exit 1; }; } |
| 11894 | fi;; |
| 11895 | esac |
| 11896 | done` || { (exit 1); exit 1; } |
| 11897 | _ACEOF |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11898 | cat >>$CONFIG_STATUS <<_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11899 | sed "$ac_vpsub |
| 11900 | $extrasub |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11901 | _ACEOF |
| 11902 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11903 | :t |
| 11904 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11905 | s,@configure_input@,$configure_input,;t t |
| 11906 | s,@srcdir@,$ac_srcdir,;t t |
| 11907 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 11908 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 11909 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 11910 | s,@builddir@,$ac_builddir,;t t |
| 11911 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 11912 | s,@top_builddir@,$ac_top_builddir,;t t |
| 11913 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 11914 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 11915 | rm -f $tmp/stdin |
| 11916 | if test x"$ac_file" != x-; then |
| 11917 | mv $tmp/out $ac_file |
| 11918 | else |
| 11919 | cat $tmp/out |
| 11920 | rm -f $tmp/out |
| 11921 | fi |
Benny Prijono | c4c61d0 | 2006-08-20 20:47:34 +0000 | [diff] [blame] | 11922 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11923 | done |
| 11924 | _ACEOF |
| 11925 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11926 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11927 | # |
| 11928 | # CONFIG_HEADER section. |
| 11929 | # |
| 11930 | |
| 11931 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 11932 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 11933 | # |
| 11934 | # ac_d sets the value in "#define NAME VALUE" lines. |
| 11935 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 11936 | ac_dB='[ ].*$,\1#\2' |
| 11937 | ac_dC=' ' |
| 11938 | ac_dD=',;t' |
| 11939 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 11940 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 11941 | ac_uB='$,\1#\2define\3' |
| 11942 | ac_uC=' ' |
| 11943 | ac_uD=',;t' |
| 11944 | |
| 11945 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
| 11946 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11947 | case $ac_file in |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11948 | - | *:- | *:-:* ) # input from stdin |
| 11949 | cat >$tmp/stdin |
| 11950 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 11951 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 11952 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 11953 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 11954 | * ) ac_file_in=$ac_file.in ;; |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11955 | esac |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11956 | |
| 11957 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 11958 | echo "$as_me: creating $ac_file" >&6;} |
| 11959 | |
| 11960 | # First look for the input files in the build tree, otherwise in the |
| 11961 | # src tree. |
| 11962 | ac_file_inputs=`IFS=: |
| 11963 | for f in $ac_file_in; do |
| 11964 | case $f in |
| 11965 | -) echo $tmp/stdin ;; |
| 11966 | [\\/$]*) |
| 11967 | # Absolute (can't be DOS-style, as IFS=:) |
| 11968 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 11969 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 11970 | { (exit 1); exit 1; }; } |
| 11971 | # Do quote $f, to prevent DOS paths from being IFS'd. |
| 11972 | echo "$f";; |
| 11973 | *) # Relative |
| 11974 | if test -f "$f"; then |
| 11975 | # Build tree |
| 11976 | echo "$f" |
| 11977 | elif test -f "$srcdir/$f"; then |
| 11978 | # Source tree |
| 11979 | echo "$srcdir/$f" |
| 11980 | else |
| 11981 | # /dev/null tree |
| 11982 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 11983 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 11984 | { (exit 1); exit 1; }; } |
| 11985 | fi;; |
| 11986 | esac |
| 11987 | done` || { (exit 1); exit 1; } |
| 11988 | # Remove the trailing spaces. |
| 11989 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
| 11990 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 11991 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 11992 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 11993 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 11994 | # `conftest.undefs', that substitutes the proper values into |
| 11995 | # config.h.in to produce config.h. The first handles `#define' |
| 11996 | # templates, and the second `#undef' templates. |
| 11997 | # And first: Protect against being on the right side of a sed subst in |
| 11998 | # config.status. Protect against being in an unquoted here document |
| 11999 | # in config.status. |
| 12000 | rm -f conftest.defines conftest.undefs |
| 12001 | # Using a here document instead of a string reduces the quoting nightmare. |
| 12002 | # Putting comments in sed scripts is not portable. |
| 12003 | # |
| 12004 | # `end' is used to avoid that the second main sed command (meant for |
| 12005 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 12006 | # See the Autoconf documentation for `clear'. |
| 12007 | cat >confdef2sed.sed <<\_ACEOF |
| 12008 | s/[\\&,]/\\&/g |
| 12009 | s,[\\$`],\\&,g |
| 12010 | t clear |
| 12011 | : clear |
| 12012 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 12013 | t end |
| 12014 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 12015 | : end |
| 12016 | _ACEOF |
| 12017 | # If some macros were called several times there might be several times |
| 12018 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 12019 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 12020 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 12021 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 12022 | rm -f confdef2sed.sed |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12023 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 12024 | # This sed command replaces #undef with comments. This is necessary, for |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12025 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 12026 | # on some systems where configure will not decide to define it. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 12027 | cat >>conftest.undefs <<\_ACEOF |
| 12028 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
Benny Prijono | fdafd40 | 2008-01-23 14:34:46 +0000 | [diff] [blame] | 12029 | _ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 12030 | |
| 12031 | # Break up conftest.defines because some shells have a limit on the size |
| 12032 | # of here documents, and old seds have small limits too (100 cmds). |
| 12033 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
| 12034 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
| 12035 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 12036 | echo ' :' >>$CONFIG_STATUS |
| 12037 | rm -f conftest.tail |
| 12038 | while grep . conftest.defines >/dev/null |
| 12039 | do |
| 12040 | # Write a limited-size here document to $tmp/defines.sed. |
| 12041 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 12042 | # Speed up: don't consider the non `#define' lines. |
| 12043 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 12044 | # Work around the forget-to-reset-the-flag bug. |
| 12045 | echo 't clr' >>$CONFIG_STATUS |
| 12046 | echo ': clr' >>$CONFIG_STATUS |
| 12047 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12048 | echo 'CEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 12049 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 12050 | rm -f $tmp/in |
| 12051 | mv $tmp/out $tmp/in |
| 12052 | ' >>$CONFIG_STATUS |
| 12053 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12054 | rm -f conftest.defines |
| 12055 | mv conftest.tail conftest.defines |
| 12056 | done |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 12057 | rm -f conftest.defines |
| 12058 | echo ' fi # grep' >>$CONFIG_STATUS |
| 12059 | echo >>$CONFIG_STATUS |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12060 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 12061 | # Break up conftest.undefs because some shells have a limit on the size |
| 12062 | # of here documents, and old seds have small limits too (100 cmds). |
| 12063 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 12064 | rm -f conftest.tail |
| 12065 | while grep . conftest.undefs >/dev/null |
| 12066 | do |
| 12067 | # Write a limited-size here document to $tmp/undefs.sed. |
| 12068 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 12069 | # Speed up: don't consider the non `#undef' |
| 12070 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 12071 | # Work around the forget-to-reset-the-flag bug. |
| 12072 | echo 't clr' >>$CONFIG_STATUS |
| 12073 | echo ': clr' >>$CONFIG_STATUS |
| 12074 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 12075 | echo 'CEOF |
| 12076 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 12077 | rm -f $tmp/in |
| 12078 | mv $tmp/out $tmp/in |
| 12079 | ' >>$CONFIG_STATUS |
| 12080 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 12081 | rm -f conftest.undefs |
| 12082 | mv conftest.tail conftest.undefs |
| 12083 | done |
| 12084 | rm -f conftest.undefs |
| 12085 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12086 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 12087 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 12088 | # use $as_me), people would be surprised to read: |
| 12089 | # /* config.h. Generated by config.status. */ |
| 12090 | if test x"$ac_file" = x-; then |
| 12091 | echo "/* Generated by configure. */" >$tmp/config.h |
| 12092 | else |
| 12093 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
| 12094 | fi |
| 12095 | cat $tmp/in >>$tmp/config.h |
| 12096 | rm -f $tmp/in |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12097 | if test x"$ac_file" != x-; then |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 12098 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12099 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12100 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 12101 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 12102 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 12103 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 12104 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 12105 | X"$ac_file" : 'X\(//\)$' \| \ |
| 12106 | X"$ac_file" : 'X\(/\)' \| \ |
| 12107 | . : '\(.\)' 2>/dev/null || |
| 12108 | echo X"$ac_file" | |
| 12109 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 12110 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 12111 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 12112 | /^X\(\/\).*/{ s//\1/; q; } |
| 12113 | s/.*/./; q'` |
| 12114 | { if $as_mkdir_p; then |
| 12115 | mkdir -p "$ac_dir" |
| 12116 | else |
| 12117 | as_dir="$ac_dir" |
| 12118 | as_dirs= |
| 12119 | while test ! -d "$as_dir"; do |
| 12120 | as_dirs="$as_dir $as_dirs" |
| 12121 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 12122 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 12123 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 12124 | X"$as_dir" : 'X\(//\)$' \| \ |
| 12125 | X"$as_dir" : 'X\(/\)' \| \ |
| 12126 | . : '\(.\)' 2>/dev/null || |
| 12127 | echo X"$as_dir" | |
| 12128 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 12129 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 12130 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 12131 | /^X\(\/\).*/{ s//\1/; q; } |
| 12132 | s/.*/./; q'` |
| 12133 | done |
| 12134 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 12135 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 12136 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 12137 | { (exit 1); exit 1; }; }; } |
| 12138 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12139 | rm -f $ac_file |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 12140 | mv $tmp/config.h $ac_file |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12141 | fi |
| 12142 | else |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 12143 | cat $tmp/config.h |
| 12144 | rm -f $tmp/config.h |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12145 | fi |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 12146 | done |
| 12147 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12148 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 12149 | cat >>$CONFIG_STATUS <<\_ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12150 | |
| 12151 | { (exit 0); exit 0; } |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12152 | _ACEOF |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12153 | chmod +x $CONFIG_STATUS |
| 12154 | ac_clean_files=$ac_clean_files_save |
| 12155 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12156 | |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12157 | # configure is writing to config.log, and then calls config.status. |
| 12158 | # config.status does its own redirection, appending to config.log. |
| 12159 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 12160 | # by configure, so config.status won't be able to write to it; its |
| 12161 | # output is simply discarded. So we exec the FD to /dev/null, |
| 12162 | # effectively closing config.log, so it can be properly (re)opened and |
| 12163 | # appended to by config.status. When coming back to configure, we |
| 12164 | # need to make the FD available again. |
| 12165 | if test "$no_create" != yes; then |
| 12166 | ac_cs_success=: |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12167 | ac_config_status_args= |
| 12168 | test "$silent" = yes && |
| 12169 | ac_config_status_args="$ac_config_status_args --quiet" |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12170 | exec 5>/dev/null |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12171 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
Benny Prijono | a9b372a | 2006-07-24 02:07:11 +0000 | [diff] [blame] | 12172 | exec 5>>config.log |
| 12173 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 12174 | # would make configure fail if this is the last instruction. |
| 12175 | $ac_cs_success || { (exit 1); exit 1; } |
| 12176 | fi |
| 12177 | |
Benny Prijono | 7e0d75f | 2006-12-25 20:34:14 +0000 | [diff] [blame] | 12178 | |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 12179 | |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 12180 | echo "$as_me:$LINENO: result: |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 12181 | |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 12182 | 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] | 12183 | |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 12184 | Further customizations can be put in: |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 12185 | - 'user.mak' |
| 12186 | - 'pjlib/include/pj/config_site.h' |
| 12187 | |
| 12188 | The next step now is to run 'make dep' and 'make'. |
| 12189 | " >&5 |
| 12190 | echo "${ECHO_T} |
| 12191 | |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 12192 | 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] | 12193 | |
Benny Prijono | c16c6e3 | 2007-11-18 14:53:47 +0000 | [diff] [blame] | 12194 | Further customizations can be put in: |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 12195 | - 'user.mak' |
| 12196 | - 'pjlib/include/pj/config_site.h' |
| 12197 | |
| 12198 | The next step now is to run 'make dep' and 'make'. |
Benny Prijono | 0b46232 | 2008-03-12 22:44:24 +0000 | [diff] [blame^] | 12199 | " >&6 |
Benny Prijono | d962784 | 2007-04-18 09:24:31 +0000 | [diff] [blame] | 12200 | |