| 1 | #! /bin/sh |
|---|
| 2 | # Guess values for system-dependent variables and create Makefiles. |
|---|
| 3 | # Generated by GNU Autoconf 2.68 for libdodo 0.0.0. |
|---|
| 4 | # |
|---|
| 5 | # Report bugs to <issues.libdodo.org>. |
|---|
| 6 | # |
|---|
| 7 | # |
|---|
| 8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
|---|
| 9 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software |
|---|
| 10 | # Foundation, Inc. |
|---|
| 11 | # |
|---|
| 12 | # |
|---|
| 13 | # This configure script is free software; the Free Software Foundation |
|---|
| 14 | # gives unlimited permission to copy, distribute and modify it. |
|---|
| 15 | ## -------------------- ## |
|---|
| 16 | ## M4sh Initialization. ## |
|---|
| 17 | ## -------------------- ## |
|---|
| 18 | |
|---|
| 19 | # Be more Bourne compatible |
|---|
| 20 | DUALCASE=1; export DUALCASE # for MKS sh |
|---|
| 21 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
|---|
| 22 | emulate sh |
|---|
| 23 | NULLCMD=: |
|---|
| 24 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
|---|
| 25 | # is contrary to our usage. Disable this feature. |
|---|
| 26 | alias -g '${1+"$@"}'='"$@"' |
|---|
| 27 | setopt NO_GLOB_SUBST |
|---|
| 28 | else |
|---|
| 29 | case `(set -o) 2>/dev/null` in #( |
|---|
| 30 | *posix*) : |
|---|
| 31 | set -o posix ;; #( |
|---|
| 32 | *) : |
|---|
| 33 | ;; |
|---|
| 34 | esac |
|---|
| 35 | fi |
|---|
| 36 | |
|---|
| 37 | |
|---|
| 38 | as_nl=' |
|---|
| 39 | ' |
|---|
| 40 | export as_nl |
|---|
| 41 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
|---|
| 42 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
|---|
| 43 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
|---|
| 44 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
|---|
| 45 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
|---|
| 46 | # but without wasting forks for bash or zsh. |
|---|
| 47 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
|---|
| 48 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
|---|
| 49 | as_echo='print -r --' |
|---|
| 50 | as_echo_n='print -rn --' |
|---|
| 51 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
|---|
| 52 | as_echo='printf %s\n' |
|---|
| 53 | as_echo_n='printf %s' |
|---|
| 54 | else |
|---|
| 55 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
|---|
| 56 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
|---|
| 57 | as_echo_n='/usr/ucb/echo -n' |
|---|
| 58 | else |
|---|
| 59 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
|---|
| 60 | as_echo_n_body='eval |
|---|
| 61 | arg=$1; |
|---|
| 62 | case $arg in #( |
|---|
| 63 | *"$as_nl"*) |
|---|
| 64 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
|---|
| 65 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
|---|
| 66 | esac; |
|---|
| 67 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
|---|
| 68 | ' |
|---|
| 69 | export as_echo_n_body |
|---|
| 70 | as_echo_n='sh -c $as_echo_n_body as_echo' |
|---|
| 71 | fi |
|---|
| 72 | export as_echo_body |
|---|
| 73 | as_echo='sh -c $as_echo_body as_echo' |
|---|
| 74 | fi |
|---|
| 75 | |
|---|
| 76 | # The user is always right. |
|---|
| 77 | if test "${PATH_SEPARATOR+set}" != set; then |
|---|
| 78 | PATH_SEPARATOR=: |
|---|
| 79 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
|---|
| 80 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
|---|
| 81 | PATH_SEPARATOR=';' |
|---|
| 82 | } |
|---|
| 83 | fi |
|---|
| 84 | |
|---|
| 85 | |
|---|
| 86 | # IFS |
|---|
| 87 | # We need space, tab and new line, in precisely that order. Quoting is |
|---|
| 88 | # there to prevent editors from complaining about space-tab. |
|---|
| 89 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
|---|
| 90 | # splitting by setting IFS to empty value.) |
|---|
| 91 | IFS=" "" $as_nl" |
|---|
| 92 | |
|---|
| 93 | # Find who we are. Look in the path if we contain no directory separator. |
|---|
| 94 | as_myself= |
|---|
| 95 | case $0 in #(( |
|---|
| 96 | *[\\/]* ) as_myself=$0 ;; |
|---|
| 97 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|---|
| 98 | for as_dir in $PATH |
|---|
| 99 | do |
|---|
| 100 | IFS=$as_save_IFS |
|---|
| 101 | test -z "$as_dir" && as_dir=. |
|---|
| 102 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
|---|
| 103 | done |
|---|
| 104 | IFS=$as_save_IFS |
|---|
| 105 | |
|---|
| 106 | ;; |
|---|
| 107 | esac |
|---|
| 108 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
|---|
| 109 | # in which case we are not to be found in the path. |
|---|
| 110 | if test "x$as_myself" = x; then |
|---|
| 111 | as_myself=$0 |
|---|
| 112 | fi |
|---|
| 113 | if test ! -f "$as_myself"; then |
|---|
| 114 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
|---|
| 115 | exit 1 |
|---|
| 116 | fi |
|---|
| 117 | |
|---|
| 118 | # Unset variables that we do not need and which cause bugs (e.g. in |
|---|
| 119 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
|---|
| 120 | # suppresses any "Segmentation fault" message there. '((' could |
|---|
| 121 | # trigger a bug in pdksh 5.2.14. |
|---|
| 122 | for as_var in BASH_ENV ENV MAIL MAILPATH |
|---|
| 123 | do eval test x\${$as_var+set} = xset \ |
|---|
| 124 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
|---|
| 125 | done |
|---|
| 126 | PS1='$ ' |
|---|
| 127 | PS2='> ' |
|---|
| 128 | PS4='+ ' |
|---|
| 129 | |
|---|
| 130 | # NLS nuisances. |
|---|
| 131 | LC_ALL=C |
|---|
| 132 | export LC_ALL |
|---|
| 133 | LANGUAGE=C |
|---|
| 134 | export LANGUAGE |
|---|
| 135 | |
|---|
| 136 | # CDPATH. |
|---|
| 137 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
|---|
| 138 | |
|---|
| 139 | if test "x$CONFIG_SHELL" = x; then |
|---|
| 140 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
|---|
| 141 | emulate sh |
|---|
| 142 | NULLCMD=: |
|---|
| 143 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
|---|
| 144 | # is contrary to our usage. Disable this feature. |
|---|
| 145 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
|---|
| 146 | setopt NO_GLOB_SUBST |
|---|
| 147 | else |
|---|
| 148 | case \`(set -o) 2>/dev/null\` in #( |
|---|
| 149 | *posix*) : |
|---|
| 150 | set -o posix ;; #( |
|---|
| 151 | *) : |
|---|
| 152 | ;; |
|---|
| 153 | esac |
|---|
| 154 | fi |
|---|
| 155 | " |
|---|
| 156 | as_required="as_fn_return () { (exit \$1); } |
|---|
| 157 | as_fn_success () { as_fn_return 0; } |
|---|
| 158 | as_fn_failure () { as_fn_return 1; } |
|---|
| 159 | as_fn_ret_success () { return 0; } |
|---|
| 160 | as_fn_ret_failure () { return 1; } |
|---|
| 161 | |
|---|
| 162 | exitcode=0 |
|---|
| 163 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
|---|
| 164 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
|---|
| 165 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
|---|
| 166 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
|---|
| 167 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
|---|
| 168 | |
|---|
| 169 | else |
|---|
| 170 | exitcode=1; echo positional parameters were not saved. |
|---|
| 171 | fi |
|---|
| 172 | test x\$exitcode = x0 || exit 1" |
|---|
| 173 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
|---|
| 174 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
|---|
| 175 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
|---|
| 176 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
|---|
| 177 | test \$(( 1 + 1 )) = 2 || exit 1" |
|---|
| 178 | if (eval "$as_required") 2>/dev/null; then : |
|---|
| 179 | as_have_required=yes |
|---|
| 180 | else |
|---|
| 181 | as_have_required=no |
|---|
| 182 | fi |
|---|
| 183 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
|---|
| 184 | |
|---|
| 185 | else |
|---|
| 186 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|---|
| 187 | as_found=false |
|---|
| 188 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
|---|
| 189 | do |
|---|
| 190 | IFS=$as_save_IFS |
|---|
| 191 | test -z "$as_dir" && as_dir=. |
|---|
| 192 | as_found=: |
|---|
| 193 | case $as_dir in #( |
|---|
| 194 | /*) |
|---|
| 195 | for as_base in sh bash ksh sh5; do |
|---|
| 196 | # Try only shells that exist, to save several forks. |
|---|
| 197 | as_shell=$as_dir/$as_base |
|---|
| 198 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
|---|
| 199 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
|---|
| 200 | CONFIG_SHELL=$as_shell as_have_required=yes |
|---|
| 201 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
|---|
| 202 | break 2 |
|---|
| 203 | fi |
|---|
| 204 | fi |
|---|
| 205 | done;; |
|---|
| 206 | esac |
|---|
| 207 | as_found=false |
|---|
| 208 | done |
|---|
| 209 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
|---|
| 210 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
|---|
| 211 | CONFIG_SHELL=$SHELL as_have_required=yes |
|---|
| 212 | fi; } |
|---|
| 213 | IFS=$as_save_IFS |
|---|
| 214 | |
|---|
| 215 | |
|---|
| 216 | if test "x$CONFIG_SHELL" != x; then : |
|---|
| 217 | # We cannot yet assume a decent shell, so we have to provide a |
|---|
| 218 | # neutralization value for shells without unset; and this also |
|---|
| 219 | # works around shells that cannot unset nonexistent variables. |
|---|
| 220 | # Preserve -v and -x to the replacement shell. |
|---|
| 221 | BASH_ENV=/dev/null |
|---|
| 222 | ENV=/dev/null |
|---|
| 223 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
|---|
| 224 | export CONFIG_SHELL |
|---|
| 225 | case $- in # (((( |
|---|
| 226 | *v*x* | *x*v* ) as_opts=-vx ;; |
|---|
| 227 | *v* ) as_opts=-v ;; |
|---|
| 228 | *x* ) as_opts=-x ;; |
|---|
| 229 | * ) as_opts= ;; |
|---|
| 230 | esac |
|---|
| 231 | exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} |
|---|
| 232 | fi |
|---|
| 233 | |
|---|
| 234 | if test x$as_have_required = xno; then : |
|---|
| 235 | $as_echo "$0: This script requires a shell more modern than all" |
|---|
| 236 | $as_echo "$0: the shells that I found on your system." |
|---|
| 237 | if test x${ZSH_VERSION+set} = xset ; then |
|---|
| 238 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
|---|
| 239 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
|---|
| 240 | else |
|---|
| 241 | $as_echo "$0: Please tell bug-autoconf@gnu.org and issues.libdodo.org |
|---|
| 242 | $0: about your system, including any error possibly output |
|---|
| 243 | $0: before this message. Then install a modern shell, or |
|---|
| 244 | $0: manually run the script under such a shell if you do |
|---|
| 245 | $0: have one." |
|---|
| 246 | fi |
|---|
| 247 | exit 1 |
|---|
| 248 | fi |
|---|
| 249 | fi |
|---|
| 250 | fi |
|---|
| 251 | SHELL=${CONFIG_SHELL-/bin/sh} |
|---|
| 252 | export SHELL |
|---|
| 253 | # Unset more variables known to interfere with behavior of common tools. |
|---|
| 254 | CLICOLOR_FORCE= GREP_OPTIONS= |
|---|
| 255 | unset CLICOLOR_FORCE GREP_OPTIONS |
|---|
| 256 | |
|---|
| 257 | ## --------------------- ## |
|---|
| 258 | ## M4sh Shell Functions. ## |
|---|
| 259 | ## --------------------- ## |
|---|
| 260 | # as_fn_unset VAR |
|---|
| 261 | # --------------- |
|---|
| 262 | # Portably unset VAR. |
|---|
| 263 | as_fn_unset () |
|---|
| 264 | { |
|---|
| 265 | { eval $1=; unset $1;} |
|---|
| 266 | } |
|---|
| 267 | as_unset=as_fn_unset |
|---|
| 268 | |
|---|
| 269 | # as_fn_set_status STATUS |
|---|
| 270 | # ----------------------- |
|---|
| 271 | # Set $? to STATUS, without forking. |
|---|
| 272 | as_fn_set_status () |
|---|
| 273 | { |
|---|
| 274 | return $1 |
|---|
| 275 | } # as_fn_set_status |
|---|
| 276 | |
|---|
| 277 | # as_fn_exit STATUS |
|---|
| 278 | # ----------------- |
|---|
| 279 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
|---|
| 280 | as_fn_exit () |
|---|
| 281 | { |
|---|
| 282 | set +e |
|---|
| 283 | as_fn_set_status $1 |
|---|
| 284 | exit $1 |
|---|
| 285 | } # as_fn_exit |
|---|
| 286 | |
|---|
| 287 | # as_fn_mkdir_p |
|---|
| 288 | # ------------- |
|---|
| 289 | # Create "$as_dir" as a directory, including parents if necessary. |
|---|
| 290 | as_fn_mkdir_p () |
|---|
| 291 | { |
|---|
| 292 | |
|---|
| 293 | case $as_dir in #( |
|---|
| 294 | -*) as_dir=./$as_dir;; |
|---|
| 295 | esac |
|---|
| 296 | test -d "$as_dir" || eval $as_mkdir_p || { |
|---|
| 297 | as_dirs= |
|---|
| 298 | while :; do |
|---|
| 299 | case $as_dir in #( |
|---|
| 300 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
|---|
| 301 | *) as_qdir=$as_dir;; |
|---|
| 302 | esac |
|---|
| 303 | as_dirs="'$as_qdir' $as_dirs" |
|---|
| 304 | as_dir=`$as_dirname -- "$as_dir" || |
|---|
| 305 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|---|
| 306 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
|---|
| 307 | X"$as_dir" : 'X\(//\)$' \| \ |
|---|
| 308 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
|---|
| 309 | $as_echo X"$as_dir" | |
|---|
| 310 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
|---|
| 311 | s//\1/ |
|---|
| 312 | q |
|---|
| 313 | } |
|---|
| 314 | /^X\(\/\/\)[^/].*/{ |
|---|
| 315 | s//\1/ |
|---|
| 316 | q |
|---|
| 317 | } |
|---|
| 318 | /^X\(\/\/\)$/{ |
|---|
| 319 | s//\1/ |
|---|
| 320 | q |
|---|
| 321 | } |
|---|
| 322 | /^X\(\/\).*/{ |
|---|
| 323 | s//\1/ |
|---|
| 324 | q |
|---|
| 325 | } |
|---|
| 326 | s/.*/./; q'` |
|---|
| 327 | test -d "$as_dir" && break |
|---|
| 328 | done |
|---|
| 329 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
|---|
| 330 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
|---|
| 331 | |
|---|
| 332 | |
|---|
| 333 | } # as_fn_mkdir_p |
|---|
| 334 | # as_fn_append VAR VALUE |
|---|
| 335 | # ---------------------- |
|---|
| 336 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
|---|
| 337 | # advantage of any shell optimizations that allow amortized linear growth over |
|---|
| 338 | # repeated appends, instead of the typical quadratic growth present in naive |
|---|
| 339 | # implementations. |
|---|
| 340 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
|---|
| 341 | eval 'as_fn_append () |
|---|
| 342 | { |
|---|
| 343 | eval $1+=\$2 |
|---|
| 344 | }' |
|---|
| 345 | else |
|---|
| 346 | as_fn_append () |
|---|
| 347 | { |
|---|
| 348 | eval $1=\$$1\$2 |
|---|
| 349 | } |
|---|
| 350 | fi # as_fn_append |
|---|
| 351 | |
|---|
| 352 | # as_fn_arith ARG... |
|---|
| 353 | # ------------------ |
|---|
| 354 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
|---|
| 355 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
|---|
| 356 | # must be portable across $(()) and expr. |
|---|
| 357 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
|---|
| 358 | eval 'as_fn_arith () |
|---|
| 359 | { |
|---|
| 360 | as_val=$(( $* )) |
|---|
| 361 | }' |
|---|
| 362 | else |
|---|
| 363 | as_fn_arith () |
|---|
| 364 | { |
|---|
| 365 | as_val=`expr "$@" || test $? -eq 1` |
|---|
| 366 | } |
|---|
| 367 | fi # as_fn_arith |
|---|
| 368 | |
|---|
| 369 | |
|---|
| 370 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
|---|
| 371 | # ---------------------------------------- |
|---|
| 372 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
|---|
| 373 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
|---|
| 374 | # script with STATUS, using 1 if that was 0. |
|---|
| 375 | as_fn_error () |
|---|
| 376 | { |
|---|
| 377 | as_status=$1; test $as_status -eq 0 && as_status=1 |
|---|
| 378 | if test "$4"; then |
|---|
| 379 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|---|
| 380 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
|---|
| 381 | fi |
|---|
| 382 | $as_echo "$as_me: error: $2" >&2 |
|---|
| 383 | as_fn_exit $as_status |
|---|
| 384 | } # as_fn_error |
|---|
| 385 | |
|---|
| 386 | if expr a : '\(a\)' >/dev/null 2>&1 && |
|---|
| 387 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
|---|
| 388 | as_expr=expr |
|---|
| 389 | else |
|---|
| 390 | as_expr=false |
|---|
| 391 | fi |
|---|
| 392 | |
|---|
| 393 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
|---|
| 394 | as_basename=basename |
|---|
| 395 | else |
|---|
| 396 | as_basename=false |
|---|
| 397 | fi |
|---|
| 398 | |
|---|
| 399 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
|---|
| 400 | as_dirname=dirname |
|---|
| 401 | else |
|---|
| 402 | as_dirname=false |
|---|
| 403 | fi |
|---|
| 404 | |
|---|
| 405 | as_me=`$as_basename -- "$0" || |
|---|
| 406 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
|---|
| 407 | X"$0" : 'X\(//\)$' \| \ |
|---|
| 408 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
|---|
| 409 | $as_echo X/"$0" | |
|---|
| 410 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
|---|
| 411 | s//\1/ |
|---|
| 412 | q |
|---|
| 413 | } |
|---|
| 414 | /^X\/\(\/\/\)$/{ |
|---|
| 415 | s//\1/ |
|---|
| 416 | q |
|---|
| 417 | } |
|---|
| 418 | /^X\/\(\/\).*/{ |
|---|
| 419 | s//\1/ |
|---|
| 420 | q |
|---|
| 421 | } |
|---|
| 422 | s/.*/./; q'` |
|---|
| 423 | |
|---|
| 424 | # Avoid depending upon Character Ranges. |
|---|
| 425 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
|---|
| 426 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
|---|
| 427 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
|---|
| 428 | as_cr_digits='0123456789' |
|---|
| 429 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
|---|
| 430 | |
|---|
| 431 | |
|---|
| 432 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
|---|
| 433 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
|---|
| 434 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
|---|
| 435 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
|---|
| 436 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
|---|
| 437 | sed -n ' |
|---|
| 438 | p |
|---|
| 439 | /[$]LINENO/= |
|---|
| 440 | ' <$as_myself | |
|---|
| 441 | sed ' |
|---|
| 442 | s/[$]LINENO.*/&-/ |
|---|
| 443 | t lineno |
|---|
| 444 | b |
|---|
| 445 | :lineno |
|---|
| 446 | N |
|---|
| 447 | :loop |
|---|
| 448 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
|---|
| 449 | t loop |
|---|
| 450 | s/-\n.*// |
|---|
| 451 | ' >$as_me.lineno && |
|---|
| 452 | chmod +x "$as_me.lineno" || |
|---|
| 453 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
|---|
| 454 | |
|---|
| 455 | # Don't try to exec as it changes $[0], causing all sort of problems |
|---|
| 456 | # (the dirname of $[0] is not the place where we might find the |
|---|
| 457 | # original and so on. Autoconf is especially sensitive to this). |
|---|
| 458 | . "./$as_me.lineno" |
|---|
| 459 | # Exit status is that of the last command. |
|---|
| 460 | exit |
|---|
| 461 | } |
|---|
| 462 | |
|---|
| 463 | ECHO_C= ECHO_N= ECHO_T= |
|---|
| 464 | case `echo -n x` in #((((( |
|---|
| 465 | -n*) |
|---|
| 466 | case `echo 'xy\c'` in |
|---|
| 467 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
|---|
| 468 | xy) ECHO_C='\c';; |
|---|
| 469 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
|---|
| 470 | ECHO_T=' ';; |
|---|
| 471 | esac;; |
|---|
| 472 | *) |
|---|
| 473 | ECHO_N='-n';; |
|---|
| 474 | esac |
|---|
| 475 | |
|---|
| 476 | rm -f conf$$ conf$$.exe conf$$.file |
|---|
| 477 | if test -d conf$$.dir; then |
|---|
| 478 | rm -f conf$$.dir/conf$$.file |
|---|
| 479 | else |
|---|
| 480 | rm -f conf$$.dir |
|---|
| 481 | mkdir conf$$.dir 2>/dev/null |
|---|
| 482 | fi |
|---|
| 483 | if (echo >conf$$.file) 2>/dev/null; then |
|---|
| 484 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
|---|
| 485 | as_ln_s='ln -s' |
|---|
| 486 | # ... but there are two gotchas: |
|---|
| 487 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
|---|
| 488 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
|---|
| 489 | # In both cases, we have to default to `cp -p'. |
|---|
| 490 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
|---|
| 491 | as_ln_s='cp -p' |
|---|
| 492 | elif ln conf$$.file conf$$ 2>/dev/null; then |
|---|
| 493 | as_ln_s=ln |
|---|
| 494 | else |
|---|
| 495 | as_ln_s='cp -p' |
|---|
| 496 | fi |
|---|
| 497 | else |
|---|
| 498 | as_ln_s='cp -p' |
|---|
| 499 | fi |
|---|
| 500 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
|---|
| 501 | rmdir conf$$.dir 2>/dev/null |
|---|
| 502 | |
|---|
| 503 | if mkdir -p . 2>/dev/null; then |
|---|
| 504 | as_mkdir_p='mkdir -p "$as_dir"' |
|---|
| 505 | else |
|---|
| 506 | test -d ./-p && rmdir ./-p |
|---|
| 507 | as_mkdir_p=false |
|---|
| 508 | fi |
|---|
| 509 | |
|---|
| 510 | if test -x / >/dev/null 2>&1; then |
|---|
| 511 | as_test_x='test -x' |
|---|
| 512 | else |
|---|
| 513 | if ls -dL / >/dev/null 2>&1; then |
|---|
| 514 | as_ls_L_option=L |
|---|
| 515 | else |
|---|
| 516 | as_ls_L_option= |
|---|
| 517 | fi |
|---|
| 518 | as_test_x=' |
|---|
| 519 | eval sh -c '\'' |
|---|
| 520 | if test -d "$1"; then |
|---|
| 521 | test -d "$1/."; |
|---|
| 522 | else |
|---|
| 523 | case $1 in #( |
|---|
| 524 | -*)set "./$1";; |
|---|
| 525 | esac; |
|---|
| 526 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
|---|
| 527 | ???[sx]*):;;*)false;;esac;fi |
|---|
| 528 | '\'' sh |
|---|
| 529 | ' |
|---|
| 530 | fi |
|---|
| 531 | as_executable_p=$as_test_x |
|---|
| 532 | |
|---|
| 533 | # Sed expression to map a string onto a valid CPP name. |
|---|
| 534 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
|---|
| 535 | |
|---|
| 536 | # Sed expression to map a string onto a valid variable name. |
|---|
| 537 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
|---|
| 538 | |
|---|
| 539 | |
|---|
| 540 | test -n "$DJDIR" || exec 7<&0 </dev/null |
|---|
| 541 | exec 6>&1 |
|---|
| 542 | |
|---|
| 543 | # Name of the host. |
|---|
| 544 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
|---|
| 545 | # so uname gets run too. |
|---|
| 546 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
|---|
| 547 | |
|---|
| 548 | # |
|---|
| 549 | # Initializations. |
|---|
| 550 | # |
|---|
| 551 | ac_default_prefix=/usr/local |
|---|
| 552 | ac_clean_files= |
|---|
| 553 | ac_config_libobj_dir=. |
|---|
| 554 | LIBOBJS= |
|---|
| 555 | cross_compiling=no |
|---|
| 556 | subdirs= |
|---|
| 557 | MFLAGS= |
|---|
| 558 | MAKEFLAGS= |
|---|
| 559 | |
|---|
| 560 | # Identity of this package. |
|---|
| 561 | PACKAGE_NAME='libdodo' |
|---|
| 562 | PACKAGE_TARNAME='libdodo' |
|---|
| 563 | PACKAGE_VERSION='0.0.0' |
|---|
| 564 | PACKAGE_STRING='libdodo 0.0.0' |
|---|
| 565 | PACKAGE_BUGREPORT='issues.libdodo.org' |
|---|
| 566 | PACKAGE_URL='' |
|---|
| 567 | |
|---|
| 568 | ac_default_prefix=/usr |
|---|
| 569 | # Factoring default headers for most tests. |
|---|
| 570 | ac_includes_default="\ |
|---|
| 571 | #include <stdio.h> |
|---|
| 572 | #ifdef HAVE_SYS_TYPES_H |
|---|
| 573 | # include <sys/types.h> |
|---|
| 574 | #endif |
|---|
| 575 | #ifdef HAVE_SYS_STAT_H |
|---|
| 576 | # include <sys/stat.h> |
|---|
| 577 | #endif |
|---|
| 578 | #ifdef STDC_HEADERS |
|---|
| 579 | # include <stdlib.h> |
|---|
| 580 | # include <stddef.h> |
|---|
| 581 | #else |
|---|
| 582 | # ifdef HAVE_STDLIB_H |
|---|
| 583 | # include <stdlib.h> |
|---|
| 584 | # endif |
|---|
| 585 | #endif |
|---|
| 586 | #ifdef HAVE_STRING_H |
|---|
| 587 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
|---|
| 588 | # include <memory.h> |
|---|
| 589 | # endif |
|---|
| 590 | # include <string.h> |
|---|
| 591 | #endif |
|---|
| 592 | #ifdef HAVE_STRINGS_H |
|---|
| 593 | # include <strings.h> |
|---|
| 594 | #endif |
|---|
| 595 | #ifdef HAVE_INTTYPES_H |
|---|
| 596 | # include <inttypes.h> |
|---|
| 597 | #endif |
|---|
| 598 | #ifdef HAVE_STDINT_H |
|---|
| 599 | # include <stdint.h> |
|---|
| 600 | #endif |
|---|
| 601 | #ifdef HAVE_UNISTD_H |
|---|
| 602 | # include <unistd.h> |
|---|
| 603 | #endif" |
|---|
| 604 | |
|---|
| 605 | ac_subst_vars='LTLIBOBJS |
|---|
| 606 | LIBOBJS |
|---|
| 607 | DEBUG |
|---|
| 608 | EXAMPLES |
|---|
| 609 | DEPS |
|---|
| 610 | OBJECTS |
|---|
| 611 | TAGS |
|---|
| 612 | AR |
|---|
| 613 | INSTALL_DATA |
|---|
| 614 | INSTALL_SCRIPT |
|---|
| 615 | INSTALL_PROGRAM |
|---|
| 616 | SET_MAKE |
|---|
| 617 | LN_S |
|---|
| 618 | ac_ct_CXX |
|---|
| 619 | CXXFLAGS |
|---|
| 620 | CXX |
|---|
| 621 | EGREP |
|---|
| 622 | GREP |
|---|
| 623 | CPP |
|---|
| 624 | OBJEXT |
|---|
| 625 | EXEEXT |
|---|
| 626 | ac_ct_CC |
|---|
| 627 | CPPFLAGS |
|---|
| 628 | LDFLAGS |
|---|
| 629 | CFLAGS |
|---|
| 630 | CC |
|---|
| 631 | SO_VERSION |
|---|
| 632 | target_alias |
|---|
| 633 | host_alias |
|---|
| 634 | build_alias |
|---|
| 635 | LIBS |
|---|
| 636 | ECHO_T |
|---|
| 637 | ECHO_N |
|---|
| 638 | ECHO_C |
|---|
| 639 | DEFS |
|---|
| 640 | mandir |
|---|
| 641 | localedir |
|---|
| 642 | libdir |
|---|
| 643 | psdir |
|---|
| 644 | pdfdir |
|---|
| 645 | dvidir |
|---|
| 646 | htmldir |
|---|
| 647 | infodir |
|---|
| 648 | docdir |
|---|
| 649 | oldincludedir |
|---|
| 650 | includedir |
|---|
| 651 | localstatedir |
|---|
| 652 | sharedstatedir |
|---|
| 653 | sysconfdir |
|---|
| 654 | datadir |
|---|
| 655 | datarootdir |
|---|
| 656 | libexecdir |
|---|
| 657 | sbindir |
|---|
| 658 | bindir |
|---|
| 659 | program_transform_name |
|---|
| 660 | prefix |
|---|
| 661 | exec_prefix |
|---|
| 662 | PACKAGE_URL |
|---|
| 663 | PACKAGE_BUGREPORT |
|---|
| 664 | PACKAGE_STRING |
|---|
| 665 | PACKAGE_VERSION |
|---|
| 666 | PACKAGE_TARNAME |
|---|
| 667 | PACKAGE_NAME |
|---|
| 668 | PATH_SEPARATOR |
|---|
| 669 | SHELL' |
|---|
| 670 | ac_subst_files='' |
|---|
| 671 | ac_user_opts=' |
|---|
| 672 | enable_option_checking |
|---|
| 673 | enable_debug |
|---|
| 674 | enable_profiling |
|---|
| 675 | enable_libwrap |
|---|
| 676 | enable_io_xexec |
|---|
| 677 | enable_database_xexec |
|---|
| 678 | with_ipc |
|---|
| 679 | with_sqlite3 |
|---|
| 680 | with_openssl |
|---|
| 681 | with_postgresql |
|---|
| 682 | with_mysql |
|---|
| 683 | with_fast_cgi |
|---|
| 684 | with_pcre |
|---|
| 685 | with_dl |
|---|
| 686 | enable_fast_dynamic_loading |
|---|
| 687 | with_libxml2 |
|---|
| 688 | with_threading_lib |
|---|
| 689 | with_pthread_lib |
|---|
| 690 | with_pthread_path |
|---|
| 691 | with_bzip2 |
|---|
| 692 | with_zlib |
|---|
| 693 | enable_zlib_lib |
|---|
| 694 | with_iconv |
|---|
| 695 | enable_iconv_lib |
|---|
| 696 | with_imagemagick |
|---|
| 697 | enable_graphics_xexec |
|---|
| 698 | ' |
|---|
| 699 | ac_precious_vars='build_alias |
|---|
| 700 | host_alias |
|---|
| 701 | target_alias |
|---|
| 702 | CC |
|---|
| 703 | CFLAGS |
|---|
| 704 | LDFLAGS |
|---|
| 705 | LIBS |
|---|
| 706 | CPPFLAGS |
|---|
| 707 | CPP |
|---|
| 708 | CXX |
|---|
| 709 | CXXFLAGS |
|---|
| 710 | CCC' |
|---|
| 711 | |
|---|
| 712 | |
|---|
| 713 | # Initialize some variables set by options. |
|---|
| 714 | ac_init_help= |
|---|
| 715 | ac_init_version=false |
|---|
| 716 | ac_unrecognized_opts= |
|---|
| 717 | ac_unrecognized_sep= |
|---|
| 718 | # The variables have the same names as the options, with |
|---|
| 719 | # dashes changed to underlines. |
|---|
| 720 | cache_file=/dev/null |
|---|
| 721 | exec_prefix=NONE |
|---|
| 722 | no_create= |
|---|
| 723 | no_recursion= |
|---|
| 724 | prefix=NONE |
|---|
| 725 | program_prefix=NONE |
|---|
| 726 | program_suffix=NONE |
|---|
| 727 | program_transform_name=s,x,x, |
|---|
| 728 | silent= |
|---|
| 729 | site= |
|---|
| 730 | srcdir= |
|---|
| 731 | verbose= |
|---|
| 732 | x_includes=NONE |
|---|
| 733 | x_libraries=NONE |
|---|
| 734 | |
|---|
| 735 | # Installation directory options. |
|---|
| 736 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
|---|
| 737 | # and all the variables that are supposed to be based on exec_prefix |
|---|
| 738 | # by default will actually change. |
|---|
| 739 | # Use braces instead of parens because sh, perl, etc. also accept them. |
|---|
| 740 | # (The list follows the same order as the GNU Coding Standards.) |
|---|
| 741 | bindir='${exec_prefix}/bin' |
|---|
| 742 | sbindir='${exec_prefix}/sbin' |
|---|
| 743 | libexecdir='${exec_prefix}/libexec' |
|---|
| 744 | datarootdir='${prefix}/share' |
|---|
| 745 | datadir='${datarootdir}' |
|---|
| 746 | sysconfdir='${prefix}/etc' |
|---|
| 747 | sharedstatedir='${prefix}/com' |
|---|
| 748 | localstatedir='${prefix}/var' |
|---|
| 749 | includedir='${prefix}/include' |
|---|
| 750 | oldincludedir='/usr/include' |
|---|
| 751 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
|---|
| 752 | infodir='${datarootdir}/info' |
|---|
| 753 | htmldir='${docdir}' |
|---|
| 754 | dvidir='${docdir}' |
|---|
| 755 | pdfdir='${docdir}' |
|---|
| 756 | psdir='${docdir}' |
|---|
| 757 | libdir='${exec_prefix}/lib' |
|---|
| 758 | localedir='${datarootdir}/locale' |
|---|
| 759 | mandir='${datarootdir}/man' |
|---|
| 760 | |
|---|
| 761 | ac_prev= |
|---|
| 762 | ac_dashdash= |
|---|
| 763 | for ac_option |
|---|
| 764 | do |
|---|
| 765 | # If the previous option needs an argument, assign it. |
|---|
| 766 | if test -n "$ac_prev"; then |
|---|
| 767 | eval $ac_prev=\$ac_option |
|---|
| 768 | ac_prev= |
|---|
| 769 | continue |
|---|
| 770 | fi |
|---|
| 771 | |
|---|
| 772 | case $ac_option in |
|---|
| 773 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
|---|
| 774 | *=) ac_optarg= ;; |
|---|
| 775 | *) ac_optarg=yes ;; |
|---|
| 776 | esac |
|---|
| 777 | |
|---|
| 778 | # Accept the important Cygnus configure options, so we can diagnose typos. |
|---|
| 779 | |
|---|
| 780 | case $ac_dashdash$ac_option in |
|---|
| 781 | --) |
|---|
| 782 | ac_dashdash=yes ;; |
|---|
| 783 | |
|---|
| 784 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
|---|
| 785 | ac_prev=bindir ;; |
|---|
| 786 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
|---|
| 787 | bindir=$ac_optarg ;; |
|---|
| 788 | |
|---|
| 789 | -build | --build | --buil | --bui | --bu) |
|---|
| 790 | ac_prev=build_alias ;; |
|---|
| 791 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
|---|
| 792 | build_alias=$ac_optarg ;; |
|---|
| 793 | |
|---|
| 794 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
|---|
| 795 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
|---|
| 796 | ac_prev=cache_file ;; |
|---|
| 797 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
|---|
| 798 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
|---|
| 799 | cache_file=$ac_optarg ;; |
|---|
| 800 | |
|---|
| 801 | --config-cache | -C) |
|---|
| 802 | cache_file=config.cache ;; |
|---|
| 803 | |
|---|
| 804 | -datadir | --datadir | --datadi | --datad) |
|---|
| 805 | ac_prev=datadir ;; |
|---|
| 806 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
|---|
| 807 | datadir=$ac_optarg ;; |
|---|
| 808 | |
|---|
| 809 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
|---|
| 810 | | --dataroo | --dataro | --datar) |
|---|
| 811 | ac_prev=datarootdir ;; |
|---|
| 812 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
|---|
| 813 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
|---|
| 814 | datarootdir=$ac_optarg ;; |
|---|
| 815 | |
|---|
| 816 | -disable-* | --disable-*) |
|---|
| 817 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
|---|
| 818 | # Reject names that are not valid shell variable names. |
|---|
| 819 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
|---|
| 820 | as_fn_error $? "invalid feature name: $ac_useropt" |
|---|
| 821 | ac_useropt_orig=$ac_useropt |
|---|
| 822 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
|---|
| 823 | case $ac_user_opts in |
|---|
| 824 | *" |
|---|
| 825 | "enable_$ac_useropt" |
|---|
| 826 | "*) ;; |
|---|
| 827 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
|---|
| 828 | ac_unrecognized_sep=', ';; |
|---|
| 829 | esac |
|---|
| 830 | eval enable_$ac_useropt=no ;; |
|---|
| 831 | |
|---|
| 832 | -docdir | --docdir | --docdi | --doc | --do) |
|---|
| 833 | ac_prev=docdir ;; |
|---|
| 834 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
|---|
| 835 | docdir=$ac_optarg ;; |
|---|
| 836 | |
|---|
| 837 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
|---|
| 838 | ac_prev=dvidir ;; |
|---|
| 839 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
|---|
| 840 | dvidir=$ac_optarg ;; |
|---|
| 841 | |
|---|
| 842 | -enable-* | --enable-*) |
|---|
| 843 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
|---|
| 844 | # Reject names that are not valid shell variable names. |
|---|
| 845 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
|---|
| 846 | as_fn_error $? "invalid feature name: $ac_useropt" |
|---|
| 847 | ac_useropt_orig=$ac_useropt |
|---|
| 848 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
|---|
| 849 | case $ac_user_opts in |
|---|
| 850 | *" |
|---|
| 851 | "enable_$ac_useropt" |
|---|
| 852 | "*) ;; |
|---|
| 853 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
|---|
| 854 | ac_unrecognized_sep=', ';; |
|---|
| 855 | esac |
|---|
| 856 | eval enable_$ac_useropt=\$ac_optarg ;; |
|---|
| 857 | |
|---|
| 858 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
|---|
| 859 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
|---|
| 860 | | --exec | --exe | --ex) |
|---|
| 861 | ac_prev=exec_prefix ;; |
|---|
| 862 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
|---|
| 863 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
|---|
| 864 | | --exec=* | --exe=* | --ex=*) |
|---|
| 865 | exec_prefix=$ac_optarg ;; |
|---|
| 866 | |
|---|
| 867 | -gas | --gas | --ga | --g) |
|---|
| 868 | # Obsolete; use --with-gas. |
|---|
| 869 | with_gas=yes ;; |
|---|
| 870 | |
|---|
| 871 | -help | --help | --hel | --he | -h) |
|---|
| 872 | ac_init_help=long ;; |
|---|
| 873 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
|---|
| 874 | ac_init_help=recursive ;; |
|---|
| 875 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
|---|
| 876 | ac_init_help=short ;; |
|---|
| 877 | |
|---|
| 878 | -host | --host | --hos | --ho) |
|---|
| 879 | ac_prev=host_alias ;; |
|---|
| 880 | -host=* | --host=* | --hos=* | --ho=*) |
|---|
| 881 | host_alias=$ac_optarg ;; |
|---|
| 882 | |
|---|
| 883 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
|---|
| 884 | ac_prev=htmldir ;; |
|---|
| 885 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
|---|
| 886 | | --ht=*) |
|---|
| 887 | htmldir=$ac_optarg ;; |
|---|
| 888 | |
|---|
| 889 | -includedir | --includedir | --includedi | --included | --include \ |
|---|
| 890 | | --includ | --inclu | --incl | --inc) |
|---|
| 891 | ac_prev=includedir ;; |
|---|
| 892 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
|---|
| 893 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
|---|
| 894 | includedir=$ac_optarg ;; |
|---|
| 895 | |
|---|
| 896 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
|---|
| 897 | ac_prev=infodir ;; |
|---|
| 898 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
|---|
| 899 | infodir=$ac_optarg ;; |
|---|
| 900 | |
|---|
| 901 | -libdir | --libdir | --libdi | --libd) |
|---|
| 902 | ac_prev=libdir ;; |
|---|
| 903 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
|---|
| 904 | libdir=$ac_optarg ;; |
|---|
| 905 | |
|---|
| 906 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
|---|
| 907 | | --libexe | --libex | --libe) |
|---|
| 908 | ac_prev=libexecdir ;; |
|---|
| 909 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
|---|
| 910 | | --libexe=* | --libex=* | --libe=*) |
|---|
| 911 | libexecdir=$ac_optarg ;; |
|---|
| 912 | |
|---|
| 913 | -localedir | --localedir | --localedi | --localed | --locale) |
|---|
| 914 | ac_prev=localedir ;; |
|---|
| 915 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
|---|
| 916 | localedir=$ac_optarg ;; |
|---|
| 917 | |
|---|
| 918 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
|---|
| 919 | | --localstate | --localstat | --localsta | --localst | --locals) |
|---|
| 920 | ac_prev=localstatedir ;; |
|---|
| 921 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
|---|
| 922 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
|---|
| 923 | localstatedir=$ac_optarg ;; |
|---|
| 924 | |
|---|
| 925 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
|---|
| 926 | ac_prev=mandir ;; |
|---|
| 927 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
|---|
| 928 | mandir=$ac_optarg ;; |
|---|
| 929 | |
|---|
| 930 | -nfp | --nfp | --nf) |
|---|
| 931 | # Obsolete; use --without-fp. |
|---|
| 932 | with_fp=no ;; |
|---|
| 933 | |
|---|
| 934 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
|---|
| 935 | | --no-cr | --no-c | -n) |
|---|
| 936 | no_create=yes ;; |
|---|
| 937 | |
|---|
| 938 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
|---|
| 939 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
|---|
| 940 | no_recursion=yes ;; |
|---|
| 941 | |
|---|
| 942 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
|---|
| 943 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
|---|
| 944 | | --oldin | --oldi | --old | --ol | --o) |
|---|
| 945 | ac_prev=oldincludedir ;; |
|---|
| 946 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
|---|
| 947 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
|---|
| 948 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
|---|
| 949 | oldincludedir=$ac_optarg ;; |
|---|
| 950 | |
|---|
| 951 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
|---|
| 952 | ac_prev=prefix ;; |
|---|
| 953 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
|---|
| 954 | prefix=$ac_optarg ;; |
|---|
| 955 | |
|---|
| 956 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
|---|
| 957 | | --program-pre | --program-pr | --program-p) |
|---|
| 958 | ac_prev=program_prefix ;; |
|---|
| 959 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
|---|
| 960 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
|---|
| 961 | program_prefix=$ac_optarg ;; |
|---|
| 962 | |
|---|
| 963 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
|---|
| 964 | | --program-suf | --program-su | --program-s) |
|---|
| 965 | ac_prev=program_suffix ;; |
|---|
| 966 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
|---|
| 967 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
|---|
| 968 | program_suffix=$ac_optarg ;; |
|---|
| 969 | |
|---|
| 970 | -program-transform-name | --program-transform-name \ |
|---|
| 971 | | --program-transform-nam | --program-transform-na \ |
|---|
| 972 | | --program-transform-n | --program-transform- \ |
|---|
| 973 | | --program-transform | --program-transfor \ |
|---|
| 974 | | --program-transfo | --program-transf \ |
|---|
| 975 | | --program-trans | --program-tran \ |
|---|
| 976 | | --progr-tra | --program-tr | --program-t) |
|---|
| 977 | ac_prev=program_transform_name ;; |
|---|
| 978 | -program-transform-name=* | --program-transform-name=* \ |
|---|
| 979 | | --program-transform-nam=* | --program-transform-na=* \ |
|---|
| 980 | | --program-transform-n=* | --program-transform-=* \ |
|---|
| 981 | | --program-transform=* | --program-transfor=* \ |
|---|
| 982 | | --program-transfo=* | --program-transf=* \ |
|---|
| 983 | | --program-trans=* | --program-tran=* \ |
|---|
| 984 | | --progr-tra=* | --program-tr=* | --program-t=*) |
|---|
| 985 | program_transform_name=$ac_optarg ;; |
|---|
| 986 | |
|---|
| 987 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
|---|
| 988 | ac_prev=pdfdir ;; |
|---|
| 989 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
|---|
| 990 | pdfdir=$ac_optarg ;; |
|---|
| 991 | |
|---|
| 992 | -psdir | --psdir | --psdi | --psd | --ps) |
|---|
| 993 | ac_prev=psdir ;; |
|---|
| 994 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
|---|
| 995 | psdir=$ac_optarg ;; |
|---|
| 996 | |
|---|
| 997 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
|---|
| 998 | | -silent | --silent | --silen | --sile | --sil) |
|---|
| 999 | silent=yes ;; |
|---|
| 1000 | |
|---|
| 1001 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
|---|
| 1002 | ac_prev=sbindir ;; |
|---|
| 1003 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
|---|
| 1004 | | --sbi=* | --sb=*) |
|---|
| 1005 | sbindir=$ac_optarg ;; |
|---|
| 1006 | |
|---|
| 1007 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
|---|
| 1008 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
|---|
| 1009 | | --sharedst | --shareds | --shared | --share | --shar \ |
|---|
| 1010 | | --sha | --sh) |
|---|
| 1011 | ac_prev=sharedstatedir ;; |
|---|
| 1012 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
|---|
| 1013 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
|---|
| 1014 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
|---|
| 1015 | | --sha=* | --sh=*) |
|---|
| 1016 | sharedstatedir=$ac_optarg ;; |
|---|
| 1017 | |
|---|
| 1018 | -site | --site | --sit) |
|---|
| 1019 | ac_prev=site ;; |
|---|
| 1020 | -site=* | --site=* | --sit=*) |
|---|
| 1021 | site=$ac_optarg ;; |
|---|
| 1022 | |
|---|
| 1023 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
|---|
| 1024 | ac_prev=srcdir ;; |
|---|
| 1025 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
|---|
| 1026 | srcdir=$ac_optarg ;; |
|---|
| 1027 | |
|---|
| 1028 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
|---|
| 1029 | | --syscon | --sysco | --sysc | --sys | --sy) |
|---|
| 1030 | ac_prev=sysconfdir ;; |
|---|
| 1031 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
|---|
| 1032 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
|---|
| 1033 | sysconfdir=$ac_optarg ;; |
|---|
| 1034 | |
|---|
| 1035 | -target | --target | --targe | --targ | --tar | --ta | --t) |
|---|
| 1036 | ac_prev=target_alias ;; |
|---|
| 1037 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
|---|
| 1038 | target_alias=$ac_optarg ;; |
|---|
| 1039 | |
|---|
| 1040 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
|---|
| 1041 | verbose=yes ;; |
|---|
| 1042 | |
|---|
| 1043 | -version | --version | --versio | --versi | --vers | -V) |
|---|
| 1044 | ac_init_version=: ;; |
|---|
| 1045 | |
|---|
| 1046 | -with-* | --with-*) |
|---|
| 1047 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
|---|
| 1048 | # Reject names that are not valid shell variable names. |
|---|
| 1049 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
|---|
| 1050 | as_fn_error $? "invalid package name: $ac_useropt" |
|---|
| 1051 | ac_useropt_orig=$ac_useropt |
|---|
| 1052 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
|---|
| 1053 | case $ac_user_opts in |
|---|
| 1054 | *" |
|---|
| 1055 | "with_$ac_useropt" |
|---|
| 1056 | "*) ;; |
|---|
| 1057 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
|---|
| 1058 | ac_unrecognized_sep=', ';; |
|---|
| 1059 | esac |
|---|
| 1060 | eval with_$ac_useropt=\$ac_optarg ;; |
|---|
| 1061 | |
|---|
| 1062 | -without-* | --without-*) |
|---|
| 1063 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
|---|
| 1064 | # Reject names that are not valid shell variable names. |
|---|
| 1065 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
|---|
| 1066 | as_fn_error $? "invalid package name: $ac_useropt" |
|---|
| 1067 | ac_useropt_orig=$ac_useropt |
|---|
| 1068 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
|---|
| 1069 | case $ac_user_opts in |
|---|
| 1070 | *" |
|---|
| 1071 | "with_$ac_useropt" |
|---|
| 1072 | "*) ;; |
|---|
| 1073 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
|---|
| 1074 | ac_unrecognized_sep=', ';; |
|---|
| 1075 | esac |
|---|
| 1076 | eval with_$ac_useropt=no ;; |
|---|
| 1077 | |
|---|
| 1078 | --x) |
|---|
| 1079 | # Obsolete; use --with-x. |
|---|
| 1080 | with_x=yes ;; |
|---|
| 1081 | |
|---|
| 1082 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
|---|
| 1083 | | --x-incl | --x-inc | --x-in | --x-i) |
|---|
| 1084 | ac_prev=x_includes ;; |
|---|
| 1085 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
|---|
| 1086 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
|---|
| 1087 | x_includes=$ac_optarg ;; |
|---|
| 1088 | |
|---|
| 1089 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
|---|
| 1090 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
|---|
| 1091 | ac_prev=x_libraries ;; |
|---|
| 1092 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
|---|
| 1093 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
|---|
| 1094 | x_libraries=$ac_optarg ;; |
|---|
| 1095 | |
|---|
| 1096 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
|---|
| 1097 | Try \`$0 --help' for more information" |
|---|
| 1098 | ;; |
|---|
| 1099 | |
|---|
| 1100 | *=*) |
|---|
| 1101 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
|---|
| 1102 | # Reject names that are not valid shell variable names. |
|---|
| 1103 | case $ac_envvar in #( |
|---|
| 1104 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
|---|
| 1105 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
|---|
| 1106 | esac |
|---|
| 1107 | eval $ac_envvar=\$ac_optarg |
|---|
| 1108 | export $ac_envvar ;; |
|---|
| 1109 | |
|---|
| 1110 | *) |
|---|
| 1111 | # FIXME: should be removed in autoconf 3.0. |
|---|
| 1112 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
|---|
| 1113 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
|---|
| 1114 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
|---|
| 1115 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
|---|
| 1116 | ;; |
|---|
| 1117 | |
|---|
| 1118 | esac |
|---|
| 1119 | done |
|---|
| 1120 | |
|---|
| 1121 | if test -n "$ac_prev"; then |
|---|
| 1122 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
|---|
| 1123 | as_fn_error $? "missing argument to $ac_option" |
|---|
| 1124 | fi |
|---|
| 1125 | |
|---|
| 1126 | if test -n "$ac_unrecognized_opts"; then |
|---|
| 1127 | case $enable_option_checking in |
|---|
| 1128 | no) ;; |
|---|
| 1129 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
|---|
| 1130 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
|---|
| 1131 | esac |
|---|
| 1132 | fi |
|---|
| 1133 | |
|---|
| 1134 | # Check all directory arguments for consistency. |
|---|
| 1135 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
|---|
| 1136 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
|---|
| 1137 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
|---|
| 1138 | libdir localedir mandir |
|---|
| 1139 | do |
|---|
| 1140 | eval ac_val=\$$ac_var |
|---|
| 1141 | # Remove trailing slashes. |
|---|
| 1142 | case $ac_val in |
|---|
| 1143 | */ ) |
|---|
| 1144 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
|---|
| 1145 | eval $ac_var=\$ac_val;; |
|---|
| 1146 | esac |
|---|
| 1147 | # Be sure to have absolute directory names. |
|---|
| 1148 | case $ac_val in |
|---|
| 1149 | [\\/$]* | ?:[\\/]* ) continue;; |
|---|
| 1150 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
|---|
| 1151 | esac |
|---|
| 1152 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
|---|
| 1153 | done |
|---|
| 1154 | |
|---|
| 1155 | # There might be people who depend on the old broken behavior: `$host' |
|---|
| 1156 | # used to hold the argument of --host etc. |
|---|
| 1157 | # FIXME: To remove some day. |
|---|
| 1158 | build=$build_alias |
|---|
| 1159 | host=$host_alias |
|---|
| 1160 | target=$target_alias |
|---|
| 1161 | |
|---|
| 1162 | # FIXME: To remove some day. |
|---|
| 1163 | if test "x$host_alias" != x; then |
|---|
| 1164 | if test "x$build_alias" = x; then |
|---|
| 1165 | cross_compiling=maybe |
|---|
| 1166 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. |
|---|
| 1167 | If a cross compiler is detected then cross compile mode will be used" >&2 |
|---|
| 1168 | elif test "x$build_alias" != "x$host_alias"; then |
|---|
| 1169 | cross_compiling=yes |
|---|
| 1170 | fi |
|---|
| 1171 | fi |
|---|
| 1172 | |
|---|
| 1173 | ac_tool_prefix= |
|---|
| 1174 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
|---|
| 1175 | |
|---|
| 1176 | test "$silent" = yes && exec 6>/dev/null |
|---|
| 1177 | |
|---|
| 1178 | |
|---|
| 1179 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
|---|
| 1180 | ac_ls_di=`ls -di .` && |
|---|
| 1181 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
|---|
| 1182 | as_fn_error $? "working directory cannot be determined" |
|---|
| 1183 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
|---|
| 1184 | as_fn_error $? "pwd does not report name of working directory" |
|---|
| 1185 | |
|---|
| 1186 | |
|---|
| 1187 | # Find the source files, if location was not specified. |
|---|
| 1188 | if test -z "$srcdir"; then |
|---|
| 1189 | ac_srcdir_defaulted=yes |
|---|
| 1190 | # Try the directory containing this script, then the parent directory. |
|---|
| 1191 | ac_confdir=`$as_dirname -- "$as_myself" || |
|---|
| 1192 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|---|
| 1193 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
|---|
| 1194 | X"$as_myself" : 'X\(//\)$' \| \ |
|---|
| 1195 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
|---|
| 1196 | $as_echo X"$as_myself" | |
|---|
| 1197 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
|---|
| 1198 | s//\1/ |
|---|
| 1199 | q |
|---|
| 1200 | } |
|---|
| 1201 | /^X\(\/\/\)[^/].*/{ |
|---|
| 1202 | s//\1/ |
|---|
| 1203 | q |
|---|
| 1204 | } |
|---|
| 1205 | /^X\(\/\/\)$/{ |
|---|
| 1206 | s//\1/ |
|---|
| 1207 | q |
|---|
| 1208 | } |
|---|
| 1209 | /^X\(\/\).*/{ |
|---|
| 1210 | s//\1/ |
|---|
| 1211 | q |
|---|
| 1212 | } |
|---|
| 1213 | s/.*/./; q'` |
|---|
| 1214 | srcdir=$ac_confdir |
|---|
| 1215 | if test ! -r "$srcdir/$ac_unique_file"; then |
|---|
| 1216 | srcdir=.. |
|---|
| 1217 | fi |
|---|
| 1218 | else |
|---|
| 1219 | ac_srcdir_defaulted=no |
|---|
| 1220 | fi |
|---|
| 1221 | if test ! -r "$srcdir/$ac_unique_file"; then |
|---|
| 1222 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
|---|
| 1223 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
|---|
| 1224 | fi |
|---|
| 1225 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
|---|
| 1226 | ac_abs_confdir=`( |
|---|
| 1227 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
|---|
| 1228 | pwd)` |
|---|
| 1229 | # When building in place, set srcdir=. |
|---|
| 1230 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
|---|
| 1231 | srcdir=. |
|---|
| 1232 | fi |
|---|
| 1233 | # Remove unnecessary trailing slashes from srcdir. |
|---|
| 1234 | # Double slashes in file names in object file debugging info |
|---|
| 1235 | # mess up M-x gdb in Emacs. |
|---|
| 1236 | case $srcdir in |
|---|
| 1237 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
|---|
| 1238 | esac |
|---|
| 1239 | for ac_var in $ac_precious_vars; do |
|---|
| 1240 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
|---|
| 1241 | eval ac_env_${ac_var}_value=\$${ac_var} |
|---|
| 1242 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
|---|
| 1243 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
|---|
| 1244 | done |
|---|
| 1245 | |
|---|
| 1246 | # |
|---|
| 1247 | # Report the --help message. |
|---|
| 1248 | # |
|---|
| 1249 | if test "$ac_init_help" = "long"; then |
|---|
| 1250 | # Omit some internal or obsolete options to make the list less imposing. |
|---|
| 1251 | # This message is too long to be a string in the A/UX 3.1 sh. |
|---|
| 1252 | cat <<_ACEOF |
|---|
| 1253 | \`configure' configures libdodo 0.0.0 to adapt to many kinds of systems. |
|---|
| 1254 | |
|---|
| 1255 | Usage: $0 [OPTION]... [VAR=VALUE]... |
|---|
| 1256 | |
|---|
| 1257 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
|---|
| 1258 | VAR=VALUE. See below for descriptions of some of the useful variables. |
|---|
| 1259 | |
|---|
| 1260 | Defaults for the options are specified in brackets. |
|---|
| 1261 | |
|---|
| 1262 | Configuration: |
|---|
| 1263 | -h, --help display this help and exit |
|---|
| 1264 | --help=short display options specific to this package |
|---|
| 1265 | --help=recursive display the short help of all the included packages |
|---|
| 1266 | -V, --version display version information and exit |
|---|
| 1267 | -q, --quiet, --silent do not print \`checking ...' messages |
|---|
| 1268 | --cache-file=FILE cache test results in FILE [disabled] |
|---|
| 1269 | -C, --config-cache alias for \`--cache-file=config.cache' |
|---|
| 1270 | -n, --no-create do not create output files |
|---|
| 1271 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
|---|
| 1272 | |
|---|
| 1273 | Installation directories: |
|---|
| 1274 | --prefix=PREFIX install architecture-independent files in PREFIX |
|---|
| 1275 | [$ac_default_prefix] |
|---|
| 1276 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
|---|
| 1277 | [PREFIX] |
|---|
| 1278 | |
|---|
| 1279 | By default, \`make install' will install all the files in |
|---|
| 1280 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
|---|
| 1281 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
|---|
| 1282 | for instance \`--prefix=\$HOME'. |
|---|
| 1283 | |
|---|
| 1284 | For better control, use the options below. |
|---|
| 1285 | |
|---|
| 1286 | Fine tuning of the installation directories: |
|---|
| 1287 | --bindir=DIR user executables [EPREFIX/bin] |
|---|
| 1288 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
|---|
| 1289 | --libexecdir=DIR program executables [EPREFIX/libexec] |
|---|
| 1290 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
|---|
| 1291 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
|---|
| 1292 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
|---|
| 1293 | --libdir=DIR object code libraries [EPREFIX/lib] |
|---|
| 1294 | --includedir=DIR C header files [PREFIX/include] |
|---|
| 1295 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
|---|
| 1296 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
|---|
| 1297 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
|---|
| 1298 | --infodir=DIR info documentation [DATAROOTDIR/info] |
|---|
| 1299 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
|---|
| 1300 | --mandir=DIR man documentation [DATAROOTDIR/man] |
|---|
| 1301 | --docdir=DIR documentation root [DATAROOTDIR/doc/libdodo] |
|---|
| 1302 | --htmldir=DIR html documentation [DOCDIR] |
|---|
| 1303 | --dvidir=DIR dvi documentation [DOCDIR] |
|---|
| 1304 | --pdfdir=DIR pdf documentation [DOCDIR] |
|---|
| 1305 | --psdir=DIR ps documentation [DOCDIR] |
|---|
| 1306 | _ACEOF |
|---|
| 1307 | |
|---|
| 1308 | cat <<\_ACEOF |
|---|
| 1309 | _ACEOF |
|---|
| 1310 | fi |
|---|
| 1311 | |
|---|
| 1312 | if test -n "$ac_init_help"; then |
|---|
| 1313 | case $ac_init_help in |
|---|
| 1314 | short | recursive ) echo "Configuration of libdodo 0.0.0:";; |
|---|
| 1315 | esac |
|---|
| 1316 | cat <<\_ACEOF |
|---|
| 1317 | |
|---|
| 1318 | Optional Features: |
|---|
| 1319 | --disable-option-checking ignore unrecognized --enable/--with options |
|---|
| 1320 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
|---|
| 1321 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
|---|
| 1322 | --enable-debug enable debug info |
|---|
| 1323 | --enable-profiling enable profiling |
|---|
| 1324 | --disable-libwrap disable libwrap support |
|---|
| 1325 | --disable-io-xexec compile io:: w/o xexec support |
|---|
| 1326 | --disable-database-xexec |
|---|
| 1327 | compile data::base:: w/o xexec support |
|---|
| 1328 | --disable-fast-dynamic-loading |
|---|
| 1329 | do not unload library to produce better performance |
|---|
| 1330 | --enable-zlib-lib enable zlib as lib |
|---|
| 1331 | --enable-iconv-lib enable iconv as lib |
|---|
| 1332 | --disable-graphics-xexec |
|---|
| 1333 | compile graphics w/o xexec support |
|---|
| 1334 | |
|---|
| 1335 | Optional Packages: |
|---|
| 1336 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
|---|
| 1337 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
|---|
| 1338 | --with-ipc[=ipc implementation] |
|---|
| 1339 | use IPC implementation(supported: POSIX, XSI), POSIX |
|---|
| 1340 | by default |
|---|
| 1341 | --with-sqlite3[=DIR] use sqlite3 |
|---|
| 1342 | --with-openssl[=DIR] use openssl |
|---|
| 1343 | --with-postgresql[=DIR] use postgresql |
|---|
| 1344 | --with-mysql[=DIR] use mysql |
|---|
| 1345 | --with-fast-cgi[=DIR] use fast CGI |
|---|
| 1346 | --with-pcre[=DIR] use pcre |
|---|
| 1347 | --with-dl[=DIR] use dynamic loading |
|---|
| 1348 | --with-libxml2[=DIR] use libxml2 |
|---|
| 1349 | --with-threading-lib[=lib] |
|---|
| 1350 | specify threading library(supported: pthread), |
|---|
| 1351 | pthread by default |
|---|
| 1352 | --with-pthread-lib[=lib] |
|---|
| 1353 | use pthread library(supported: pthread, thr, |
|---|
| 1354 | lthread, c_r), pthread by default |
|---|
| 1355 | --with-pthread-path[=DIR] |
|---|
| 1356 | path to pthread installation |
|---|
| 1357 | --with-bzip2[=DIR] use bzip2 |
|---|
| 1358 | --with-zlib[=DIR] use zlib |
|---|
| 1359 | --with-iconv[=DIR] use iconv |
|---|
| 1360 | --with-imagemagick[=DIR] |
|---|
| 1361 | use ImageMagick |
|---|
| 1362 | |
|---|
| 1363 | Some influential environment variables: |
|---|
| 1364 | CC C compiler command |
|---|
| 1365 | CFLAGS C compiler flags |
|---|
| 1366 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
|---|
| 1367 | nonstandard directory <lib dir> |
|---|
| 1368 | LIBS libraries to pass to the linker, e.g. -l<library> |
|---|
| 1369 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
|---|
| 1370 | you have headers in a nonstandard directory <include dir> |
|---|
| 1371 | CPP C preprocessor |
|---|
| 1372 | CXX C++ compiler command |
|---|
| 1373 | CXXFLAGS C++ compiler flags |
|---|
| 1374 | |
|---|
| 1375 | Use these variables to override the choices made by `configure' or to help |
|---|
| 1376 | it to find libraries and programs with nonstandard names/locations. |
|---|
| 1377 | |
|---|
| 1378 | Report bugs to <issues.libdodo.org>. |
|---|
| 1379 | _ACEOF |
|---|
| 1380 | ac_status=$? |
|---|
| 1381 | fi |
|---|
| 1382 | |
|---|
| 1383 | if test "$ac_init_help" = "recursive"; then |
|---|
| 1384 | # If there are subdirs, report their specific --help. |
|---|
| 1385 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
|---|
| 1386 | test -d "$ac_dir" || |
|---|
| 1387 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
|---|
| 1388 | continue |
|---|
| 1389 | ac_builddir=. |
|---|
| 1390 | |
|---|
| 1391 | case "$ac_dir" in |
|---|
| 1392 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
|---|
| 1393 | *) |
|---|
| 1394 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
|---|
| 1395 | # A ".." for each directory in $ac_dir_suffix. |
|---|
| 1396 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
|---|
| 1397 | case $ac_top_builddir_sub in |
|---|
| 1398 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
|---|
| 1399 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
|---|
| 1400 | esac ;; |
|---|
| 1401 | esac |
|---|
| 1402 | ac_abs_top_builddir=$ac_pwd |
|---|
| 1403 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
|---|
| 1404 | # for backward compatibility: |
|---|
| 1405 | ac_top_builddir=$ac_top_build_prefix |
|---|
| 1406 | |
|---|
| 1407 | case $srcdir in |
|---|
| 1408 | .) # We are building in place. |
|---|
| 1409 | ac_srcdir=. |
|---|
| 1410 | ac_top_srcdir=$ac_top_builddir_sub |
|---|
| 1411 | ac_abs_top_srcdir=$ac_pwd ;; |
|---|
| 1412 | [\\/]* | ?:[\\/]* ) # Absolute name. |
|---|
| 1413 | ac_srcdir=$srcdir$ac_dir_suffix; |
|---|
| 1414 | ac_top_srcdir=$srcdir |
|---|
| 1415 | ac_abs_top_srcdir=$srcdir ;; |
|---|
| 1416 | *) # Relative name. |
|---|
| 1417 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
|---|
| 1418 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
|---|
| 1419 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
|---|
| 1420 | esac |
|---|
| 1421 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
|---|
| 1422 | |
|---|
| 1423 | cd "$ac_dir" || { ac_status=$?; continue; } |
|---|
| 1424 | # Check for guested configure. |
|---|
| 1425 | if test -f "$ac_srcdir/configure.gnu"; then |
|---|
| 1426 | echo && |
|---|
| 1427 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
|---|
| 1428 | elif test -f "$ac_srcdir/configure"; then |
|---|
| 1429 | echo && |
|---|
| 1430 | $SHELL "$ac_srcdir/configure" --help=recursive |
|---|
| 1431 | else |
|---|
| 1432 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
|---|
| 1433 | fi || ac_status=$? |
|---|
| 1434 | cd "$ac_pwd" || { ac_status=$?; break; } |
|---|
| 1435 | done |
|---|
| 1436 | fi |
|---|
| 1437 | |
|---|
| 1438 | test -n "$ac_init_help" && exit $ac_status |
|---|
| 1439 | if $ac_init_version; then |
|---|
| 1440 | cat <<\_ACEOF |
|---|
| 1441 | libdodo configure 0.0.0 |
|---|
| 1442 | generated by GNU Autoconf 2.68 |
|---|
| 1443 | |
|---|
| 1444 | Copyright (C) 2010 Free Software Foundation, Inc. |
|---|
| 1445 | This configure script is free software; the Free Software Foundation |
|---|
| 1446 | gives unlimited permission to copy, distribute and modify it. |
|---|
| 1447 | _ACEOF |
|---|
| 1448 | exit |
|---|
| 1449 | fi |
|---|
| 1450 | |
|---|
| 1451 | ## ------------------------ ## |
|---|
| 1452 | ## Autoconf initialization. ## |
|---|
| 1453 | ## ------------------------ ## |
|---|
| 1454 | |
|---|
| 1455 | # ac_fn_c_try_compile LINENO |
|---|
| 1456 | # -------------------------- |
|---|
| 1457 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
|---|
| 1458 | ac_fn_c_try_compile () |
|---|
| 1459 | { |
|---|
| 1460 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|---|
| 1461 | rm -f conftest.$ac_objext |
|---|
| 1462 | if { { ac_try="$ac_compile" |
|---|
| 1463 | case "(($ac_try" in |
|---|
| 1464 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|---|
| 1465 | *) ac_try_echo=$ac_try;; |
|---|
| 1466 | esac |
|---|
| 1467 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|---|
| 1468 | $as_echo "$ac_try_echo"; } >&5 |
|---|
| 1469 | (eval "$ac_compile") 2>conftest.err |
|---|
| 1470 | ac_status=$? |
|---|
| 1471 | if test -s conftest.err; then |
|---|
| 1472 | grep -v '^ *+' conftest.err >conftest.er1 |
|---|
| 1473 | cat conftest.er1 >&5 |
|---|
| 1474 | mv -f conftest.er1 conftest.err |
|---|
| 1475 | fi |
|---|
| 1476 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|---|
| 1477 | test $ac_status = 0; } && { |
|---|
| 1478 | test -z "$ac_c_werror_flag" || |
|---|
| 1479 | test ! -s conftest.err |
|---|
| 1480 | } && test -s conftest.$ac_objext; then : |
|---|
| 1481 | ac_retval=0 |
|---|
| 1482 | else |
|---|
| 1483 | $as_echo "$as_me: failed program was:" >&5 |
|---|
| 1484 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 1485 | |
|---|
| 1486 | ac_retval=1 |
|---|
| 1487 | fi |
|---|
| 1488 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|---|
| 1489 | as_fn_set_status $ac_retval |
|---|
| 1490 | |
|---|
| 1491 | } # ac_fn_c_try_compile |
|---|
| 1492 | |
|---|
| 1493 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
|---|
| 1494 | # ------------------------------------------- |
|---|
| 1495 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
|---|
| 1496 | # variable VAR accordingly. |
|---|
| 1497 | ac_fn_c_check_type () |
|---|
| 1498 | { |
|---|
| 1499 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|---|
| 1500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
|---|
| 1501 | $as_echo_n "checking for $2... " >&6; } |
|---|
| 1502 | if eval \${$3+:} false; then : |
|---|
| 1503 | $as_echo_n "(cached) " >&6 |
|---|
| 1504 | else |
|---|
| 1505 | eval "$3=no" |
|---|
| 1506 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 1507 | /* end confdefs.h. */ |
|---|
| 1508 | $4 |
|---|
| 1509 | int |
|---|
| 1510 | main () |
|---|
| 1511 | { |
|---|
| 1512 | if (sizeof ($2)) |
|---|
| 1513 | return 0; |
|---|
| 1514 | ; |
|---|
| 1515 | return 0; |
|---|
| 1516 | } |
|---|
| 1517 | _ACEOF |
|---|
| 1518 | if ac_fn_c_try_compile "$LINENO"; then : |
|---|
| 1519 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 1520 | /* end confdefs.h. */ |
|---|
| 1521 | $4 |
|---|
| 1522 | int |
|---|
| 1523 | main () |
|---|
| 1524 | { |
|---|
| 1525 | if (sizeof (($2))) |
|---|
| 1526 | return 0; |
|---|
| 1527 | ; |
|---|
| 1528 | return 0; |
|---|
| 1529 | } |
|---|
| 1530 | _ACEOF |
|---|
| 1531 | if ac_fn_c_try_compile "$LINENO"; then : |
|---|
| 1532 | |
|---|
| 1533 | else |
|---|
| 1534 | eval "$3=yes" |
|---|
| 1535 | fi |
|---|
| 1536 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|---|
| 1537 | fi |
|---|
| 1538 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|---|
| 1539 | fi |
|---|
| 1540 | eval ac_res=\$$3 |
|---|
| 1541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|---|
| 1542 | $as_echo "$ac_res" >&6; } |
|---|
| 1543 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|---|
| 1544 | |
|---|
| 1545 | } # ac_fn_c_check_type |
|---|
| 1546 | |
|---|
| 1547 | # ac_fn_c_try_cpp LINENO |
|---|
| 1548 | # ---------------------- |
|---|
| 1549 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
|---|
| 1550 | ac_fn_c_try_cpp () |
|---|
| 1551 | { |
|---|
| 1552 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|---|
| 1553 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
|---|
| 1554 | case "(($ac_try" in |
|---|
| 1555 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|---|
| 1556 | *) ac_try_echo=$ac_try;; |
|---|
| 1557 | esac |
|---|
| 1558 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|---|
| 1559 | $as_echo "$ac_try_echo"; } >&5 |
|---|
| 1560 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
|---|
| 1561 | ac_status=$? |
|---|
| 1562 | if test -s conftest.err; then |
|---|
| 1563 | grep -v '^ *+' conftest.err >conftest.er1 |
|---|
| 1564 | cat conftest.er1 >&5 |
|---|
| 1565 | mv -f conftest.er1 conftest.err |
|---|
| 1566 | fi |
|---|
| 1567 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|---|
| 1568 | test $ac_status = 0; } > conftest.i && { |
|---|
| 1569 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
|---|
| 1570 | test ! -s conftest.err |
|---|
| 1571 | }; then : |
|---|
| 1572 | ac_retval=0 |
|---|
| 1573 | else |
|---|
| 1574 | $as_echo "$as_me: failed program was:" >&5 |
|---|
| 1575 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 1576 | |
|---|
| 1577 | ac_retval=1 |
|---|
| 1578 | fi |
|---|
| 1579 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|---|
| 1580 | as_fn_set_status $ac_retval |
|---|
| 1581 | |
|---|
| 1582 | } # ac_fn_c_try_cpp |
|---|
| 1583 | |
|---|
| 1584 | # ac_fn_c_try_run LINENO |
|---|
| 1585 | # ---------------------- |
|---|
| 1586 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
|---|
| 1587 | # that executables *can* be run. |
|---|
| 1588 | ac_fn_c_try_run () |
|---|
| 1589 | { |
|---|
| 1590 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|---|
| 1591 | if { { ac_try="$ac_link" |
|---|
| 1592 | case "(($ac_try" in |
|---|
| 1593 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|---|
| 1594 | *) ac_try_echo=$ac_try;; |
|---|
| 1595 | esac |
|---|
| 1596 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|---|
| 1597 | $as_echo "$ac_try_echo"; } >&5 |
|---|
| 1598 | (eval "$ac_link") 2>&5 |
|---|
| 1599 | ac_status=$? |
|---|
| 1600 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|---|
| 1601 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
|---|
| 1602 | { { case "(($ac_try" in |
|---|
| 1603 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|---|
| 1604 | *) ac_try_echo=$ac_try;; |
|---|
| 1605 | esac |
|---|
| 1606 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|---|
| 1607 | $as_echo "$ac_try_echo"; } >&5 |
|---|
| 1608 | (eval "$ac_try") 2>&5 |
|---|
| 1609 | ac_status=$? |
|---|
| 1610 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|---|
| 1611 | test $ac_status = 0; }; }; then : |
|---|
| 1612 | ac_retval=0 |
|---|
| 1613 | else |
|---|
| 1614 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
|---|
| 1615 | $as_echo "$as_me: failed program was:" >&5 |
|---|
| 1616 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 1617 | |
|---|
| 1618 | ac_retval=$ac_status |
|---|
| 1619 | fi |
|---|
| 1620 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
|---|
| 1621 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|---|
| 1622 | as_fn_set_status $ac_retval |
|---|
| 1623 | |
|---|
| 1624 | } # ac_fn_c_try_run |
|---|
| 1625 | |
|---|
| 1626 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
|---|
| 1627 | # ------------------------------------------------------- |
|---|
| 1628 | # Tests whether HEADER exists and can be compiled using the include files in |
|---|
| 1629 | # INCLUDES, setting the cache variable VAR accordingly. |
|---|
| 1630 | ac_fn_c_check_header_compile () |
|---|
| 1631 | { |
|---|
| 1632 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|---|
| 1633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
|---|
| 1634 | $as_echo_n "checking for $2... " >&6; } |
|---|
| 1635 | if eval \${$3+:} false; then : |
|---|
| 1636 | $as_echo_n "(cached) " >&6 |
|---|
| 1637 | else |
|---|
| 1638 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 1639 | /* end confdefs.h. */ |
|---|
| 1640 | $4 |
|---|
| 1641 | #include <$2> |
|---|
| 1642 | _ACEOF |
|---|
| 1643 | if ac_fn_c_try_compile "$LINENO"; then : |
|---|
| 1644 | eval "$3=yes" |
|---|
| 1645 | else |
|---|
| 1646 | eval "$3=no" |
|---|
| 1647 | fi |
|---|
| 1648 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|---|
| 1649 | fi |
|---|
| 1650 | eval ac_res=\$$3 |
|---|
| 1651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|---|
| 1652 | $as_echo "$ac_res" >&6; } |
|---|
| 1653 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|---|
| 1654 | |
|---|
| 1655 | } # ac_fn_c_check_header_compile |
|---|
| 1656 | |
|---|
| 1657 | # ac_fn_cxx_try_compile LINENO |
|---|
| 1658 | # ---------------------------- |
|---|
| 1659 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
|---|
| 1660 | ac_fn_cxx_try_compile () |
|---|
| 1661 | { |
|---|
| 1662 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|---|
| 1663 | rm -f conftest.$ac_objext |
|---|
| 1664 | if { { ac_try="$ac_compile" |
|---|
| 1665 | case "(($ac_try" in |
|---|
| 1666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|---|
| 1667 | *) ac_try_echo=$ac_try;; |
|---|
| 1668 | esac |
|---|
| 1669 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|---|
| 1670 | $as_echo "$ac_try_echo"; } >&5 |
|---|
| 1671 | (eval "$ac_compile") 2>conftest.err |
|---|
| 1672 | ac_status=$? |
|---|
| 1673 | if test -s conftest.err; then |
|---|
| 1674 | grep -v '^ *+' conftest.err >conftest.er1 |
|---|
| 1675 | cat conftest.er1 >&5 |
|---|
| 1676 | mv -f conftest.er1 conftest.err |
|---|
| 1677 | fi |
|---|
| 1678 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|---|
| 1679 | test $ac_status = 0; } && { |
|---|
| 1680 | test -z "$ac_cxx_werror_flag" || |
|---|
| 1681 | test ! -s conftest.err |
|---|
| 1682 | } && test -s conftest.$ac_objext; then : |
|---|
| 1683 | ac_retval=0 |
|---|
| 1684 | else |
|---|
| 1685 | $as_echo "$as_me: failed program was:" >&5 |
|---|
| 1686 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 1687 | |
|---|
| 1688 | ac_retval=1 |
|---|
| 1689 | fi |
|---|
| 1690 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|---|
| 1691 | as_fn_set_status $ac_retval |
|---|
| 1692 | |
|---|
| 1693 | } # ac_fn_cxx_try_compile |
|---|
| 1694 | |
|---|
| 1695 | # ac_fn_c_try_link LINENO |
|---|
| 1696 | # ----------------------- |
|---|
| 1697 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
|---|
| 1698 | ac_fn_c_try_link () |
|---|
| 1699 | { |
|---|
| 1700 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|---|
| 1701 | rm -f conftest.$ac_objext conftest$ac_exeext |
|---|
| 1702 | if { { ac_try="$ac_link" |
|---|
| 1703 | case "(($ac_try" in |
|---|
| 1704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|---|
| 1705 | *) ac_try_echo=$ac_try;; |
|---|
| 1706 | esac |
|---|
| 1707 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|---|
| 1708 | $as_echo "$ac_try_echo"; } >&5 |
|---|
| 1709 | (eval "$ac_link") 2>conftest.err |
|---|
| 1710 | ac_status=$? |
|---|
| 1711 | if test -s conftest.err; then |
|---|
| 1712 | grep -v '^ *+' conftest.err >conftest.er1 |
|---|
| 1713 | cat conftest.er1 >&5 |
|---|
| 1714 | mv -f conftest.er1 conftest.err |
|---|
| 1715 | fi |
|---|
| 1716 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|---|
| 1717 | test $ac_status = 0; } && { |
|---|
| 1718 | test -z "$ac_c_werror_flag" || |
|---|
| 1719 | test ! -s conftest.err |
|---|
| 1720 | } && test -s conftest$ac_exeext && { |
|---|
| 1721 | test "$cross_compiling" = yes || |
|---|
| 1722 | $as_test_x conftest$ac_exeext |
|---|
| 1723 | }; then : |
|---|
| 1724 | ac_retval=0 |
|---|
| 1725 | else |
|---|
| 1726 | $as_echo "$as_me: failed program was:" >&5 |
|---|
| 1727 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 1728 | |
|---|
| 1729 | ac_retval=1 |
|---|
| 1730 | fi |
|---|
| 1731 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
|---|
| 1732 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
|---|
| 1733 | # interfere with the next link command; also delete a directory that is |
|---|
| 1734 | # left behind by Apple's compiler. We do this before executing the actions. |
|---|
| 1735 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
|---|
| 1736 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|---|
| 1737 | as_fn_set_status $ac_retval |
|---|
| 1738 | |
|---|
| 1739 | } # ac_fn_c_try_link |
|---|
| 1740 | |
|---|
| 1741 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
|---|
| 1742 | # ------------------------------------------------------- |
|---|
| 1743 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
|---|
| 1744 | # the include files in INCLUDES and setting the cache variable VAR |
|---|
| 1745 | # accordingly. |
|---|
| 1746 | ac_fn_c_check_header_mongrel () |
|---|
| 1747 | { |
|---|
| 1748 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|---|
| 1749 | if eval \${$3+:} false; then : |
|---|
| 1750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
|---|
| 1751 | $as_echo_n "checking for $2... " >&6; } |
|---|
| 1752 | if eval \${$3+:} false; then : |
|---|
| 1753 | $as_echo_n "(cached) " >&6 |
|---|
| 1754 | fi |
|---|
| 1755 | eval ac_res=\$$3 |
|---|
| 1756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|---|
| 1757 | $as_echo "$ac_res" >&6; } |
|---|
| 1758 | else |
|---|
| 1759 | # Is the header compilable? |
|---|
| 1760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
|---|
| 1761 | $as_echo_n "checking $2 usability... " >&6; } |
|---|
| 1762 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 1763 | /* end confdefs.h. */ |
|---|
| 1764 | $4 |
|---|
| 1765 | #include <$2> |
|---|
| 1766 | _ACEOF |
|---|
| 1767 | if ac_fn_c_try_compile "$LINENO"; then : |
|---|
| 1768 | ac_header_compiler=yes |
|---|
| 1769 | else |
|---|
| 1770 | ac_header_compiler=no |
|---|
| 1771 | fi |
|---|
| 1772 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|---|
| 1773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
|---|
| 1774 | $as_echo "$ac_header_compiler" >&6; } |
|---|
| 1775 | |
|---|
| 1776 | # Is the header present? |
|---|
| 1777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
|---|
| 1778 | $as_echo_n "checking $2 presence... " >&6; } |
|---|
| 1779 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 1780 | /* end confdefs.h. */ |
|---|
| 1781 | #include <$2> |
|---|
| 1782 | _ACEOF |
|---|
| 1783 | if ac_fn_c_try_cpp "$LINENO"; then : |
|---|
| 1784 | ac_header_preproc=yes |
|---|
| 1785 | else |
|---|
| 1786 | ac_header_preproc=no |
|---|
| 1787 | fi |
|---|
| 1788 | rm -f conftest.err conftest.i conftest.$ac_ext |
|---|
| 1789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
|---|
| 1790 | $as_echo "$ac_header_preproc" >&6; } |
|---|
| 1791 | |
|---|
| 1792 | # So? What about this header? |
|---|
| 1793 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
|---|
| 1794 | yes:no: ) |
|---|
| 1795 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
|---|
| 1796 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|---|
| 1797 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
|---|
| 1798 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
|---|
| 1799 | ;; |
|---|
| 1800 | no:yes:* ) |
|---|
| 1801 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
|---|
| 1802 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
|---|
| 1803 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
|---|
| 1804 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
|---|
| 1805 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
|---|
| 1806 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
|---|
| 1807 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
|---|
| 1808 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
|---|
| 1809 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
|---|
| 1810 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
|---|
| 1811 | ( $as_echo "## --------------------------------- ## |
|---|
| 1812 | ## Report this to issues.libdodo.org ## |
|---|
| 1813 | ## --------------------------------- ##" |
|---|
| 1814 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
|---|
| 1815 | ;; |
|---|
| 1816 | esac |
|---|
| 1817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
|---|
| 1818 | $as_echo_n "checking for $2... " >&6; } |
|---|
| 1819 | if eval \${$3+:} false; then : |
|---|
| 1820 | $as_echo_n "(cached) " >&6 |
|---|
| 1821 | else |
|---|
| 1822 | eval "$3=\$ac_header_compiler" |
|---|
| 1823 | fi |
|---|
| 1824 | eval ac_res=\$$3 |
|---|
| 1825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|---|
| 1826 | $as_echo "$ac_res" >&6; } |
|---|
| 1827 | fi |
|---|
| 1828 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|---|
| 1829 | |
|---|
| 1830 | } # ac_fn_c_check_header_mongrel |
|---|
| 1831 | cat >config.log <<_ACEOF |
|---|
| 1832 | This file contains any messages produced by compilers while |
|---|
| 1833 | running configure, to aid debugging if configure makes a mistake. |
|---|
| 1834 | |
|---|
| 1835 | It was created by libdodo $as_me 0.0.0, which was |
|---|
| 1836 | generated by GNU Autoconf 2.68. Invocation command line was |
|---|
| 1837 | |
|---|
| 1838 | $ $0 $@ |
|---|
| 1839 | |
|---|
| 1840 | _ACEOF |
|---|
| 1841 | exec 5>>config.log |
|---|
| 1842 | { |
|---|
| 1843 | cat <<_ASUNAME |
|---|
| 1844 | ## --------- ## |
|---|
| 1845 | ## Platform. ## |
|---|
| 1846 | ## --------- ## |
|---|
| 1847 | |
|---|
| 1848 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
|---|
| 1849 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
|---|
| 1850 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
|---|
| 1851 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
|---|
| 1852 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
|---|
| 1853 | |
|---|
| 1854 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
|---|
| 1855 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
|---|
| 1856 | |
|---|
| 1857 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
|---|
| 1858 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
|---|
| 1859 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
|---|
| 1860 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
|---|
| 1861 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
|---|
| 1862 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
|---|
| 1863 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
|---|
| 1864 | |
|---|
| 1865 | _ASUNAME |
|---|
| 1866 | |
|---|
| 1867 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|---|
| 1868 | for as_dir in $PATH |
|---|
| 1869 | do |
|---|
| 1870 | IFS=$as_save_IFS |
|---|
| 1871 | test -z "$as_dir" && as_dir=. |
|---|
| 1872 | $as_echo "PATH: $as_dir" |
|---|
| 1873 | done |
|---|
| 1874 | IFS=$as_save_IFS |
|---|
| 1875 | |
|---|
| 1876 | } >&5 |
|---|
| 1877 | |
|---|
| 1878 | cat >&5 <<_ACEOF |
|---|
| 1879 | |
|---|
| 1880 | |
|---|
| 1881 | ## ----------- ## |
|---|
| 1882 | ## Core tests. ## |
|---|
| 1883 | ## ----------- ## |
|---|
| 1884 | |
|---|
| 1885 | _ACEOF |
|---|
| 1886 | |
|---|
| 1887 | |
|---|
| 1888 | # Keep a trace of the command line. |
|---|
| 1889 | # Strip out --no-create and --no-recursion so they do not pile up. |
|---|
| 1890 | # Strip out --silent because we don't want to record it for future runs. |
|---|
| 1891 | # Also quote any args containing shell meta-characters. |
|---|
| 1892 | # Make two passes to allow for proper duplicate-argument suppression. |
|---|
| 1893 | ac_configure_args= |
|---|
| 1894 | ac_configure_args0= |
|---|
| 1895 | ac_configure_args1= |
|---|
| 1896 | ac_must_keep_next=false |
|---|
| 1897 | for ac_pass in 1 2 |
|---|
| 1898 | do |
|---|
| 1899 | for ac_arg |
|---|
| 1900 | do |
|---|
| 1901 | case $ac_arg in |
|---|
| 1902 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
|---|
| 1903 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
|---|
| 1904 | | -silent | --silent | --silen | --sile | --sil) |
|---|
| 1905 | continue ;; |
|---|
| 1906 | *\'*) |
|---|
| 1907 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
|---|
| 1908 | esac |
|---|
| 1909 | case $ac_pass in |
|---|
| 1910 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
|---|
| 1911 | 2) |
|---|
| 1912 | as_fn_append ac_configure_args1 " '$ac_arg'" |
|---|
| 1913 | if test $ac_must_keep_next = true; then |
|---|
| 1914 | ac_must_keep_next=false # Got value, back to normal. |
|---|
| 1915 | else |
|---|
| 1916 | case $ac_arg in |
|---|
| 1917 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
|---|
| 1918 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
|---|
| 1919 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
|---|
| 1920 | | -with-* | --with-* | -without-* | --without-* | --x) |
|---|
| 1921 | case "$ac_configure_args0 " in |
|---|
| 1922 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
|---|
| 1923 | esac |
|---|
| 1924 | ;; |
|---|
| 1925 | -* ) ac_must_keep_next=true ;; |
|---|
| 1926 | esac |
|---|
| 1927 | fi |
|---|
| 1928 | as_fn_append ac_configure_args " '$ac_arg'" |
|---|
| 1929 | ;; |
|---|
| 1930 | esac |
|---|
| 1931 | done |
|---|
| 1932 | done |
|---|
| 1933 | { ac_configure_args0=; unset ac_configure_args0;} |
|---|
| 1934 | { ac_configure_args1=; unset ac_configure_args1;} |
|---|
| 1935 | |
|---|
| 1936 | # When interrupted or exit'd, cleanup temporary files, and complete |
|---|
| 1937 | # config.log. We remove comments because anyway the quotes in there |
|---|
| 1938 | # would cause problems or look ugly. |
|---|
| 1939 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
|---|
| 1940 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
|---|
| 1941 | trap 'exit_status=$? |
|---|
| 1942 | # Save into config.log some information that might help in debugging. |
|---|
| 1943 | { |
|---|
| 1944 | echo |
|---|
| 1945 | |
|---|
| 1946 | $as_echo "## ---------------- ## |
|---|
| 1947 | ## Cache variables. ## |
|---|
| 1948 | ## ---------------- ##" |
|---|
| 1949 | echo |
|---|
| 1950 | # The following way of writing the cache mishandles newlines in values, |
|---|
| 1951 | ( |
|---|
| 1952 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
|---|
| 1953 | eval ac_val=\$$ac_var |
|---|
| 1954 | case $ac_val in #( |
|---|
| 1955 | *${as_nl}*) |
|---|
| 1956 | case $ac_var in #( |
|---|
| 1957 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
|---|
| 1958 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
|---|
| 1959 | esac |
|---|
| 1960 | case $ac_var in #( |
|---|
| 1961 | _ | IFS | as_nl) ;; #( |
|---|
| 1962 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
|---|
| 1963 | *) { eval $ac_var=; unset $ac_var;} ;; |
|---|
| 1964 | esac ;; |
|---|
| 1965 | esac |
|---|
| 1966 | done |
|---|
| 1967 | (set) 2>&1 | |
|---|
| 1968 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
|---|
| 1969 | *${as_nl}ac_space=\ *) |
|---|
| 1970 | sed -n \ |
|---|
| 1971 | "s/'\''/'\''\\\\'\'''\''/g; |
|---|
| 1972 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
|---|
| 1973 | ;; #( |
|---|
| 1974 | *) |
|---|
| 1975 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
|---|
| 1976 | ;; |
|---|
| 1977 | esac | |
|---|
| 1978 | sort |
|---|
| 1979 | ) |
|---|
| 1980 | echo |
|---|
| 1981 | |
|---|
| 1982 | $as_echo "## ----------------- ## |
|---|
| 1983 | ## Output variables. ## |
|---|
| 1984 | ## ----------------- ##" |
|---|
| 1985 | echo |
|---|
| 1986 | for ac_var in $ac_subst_vars |
|---|
| 1987 | do |
|---|
| 1988 | eval ac_val=\$$ac_var |
|---|
| 1989 | case $ac_val in |
|---|
| 1990 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
|---|
| 1991 | esac |
|---|
| 1992 | $as_echo "$ac_var='\''$ac_val'\''" |
|---|
| 1993 | done | sort |
|---|
| 1994 | echo |
|---|
| 1995 | |
|---|
| 1996 | if test -n "$ac_subst_files"; then |
|---|
| 1997 | $as_echo "## ------------------- ## |
|---|
| 1998 | ## File substitutions. ## |
|---|
| 1999 | ## ------------------- ##" |
|---|
| 2000 | echo |
|---|
| 2001 | for ac_var in $ac_subst_files |
|---|
| 2002 | do |
|---|
| 2003 | eval ac_val=\$$ac_var |
|---|
| 2004 | case $ac_val in |
|---|
| 2005 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
|---|
| 2006 | esac |
|---|
| 2007 | $as_echo "$ac_var='\''$ac_val'\''" |
|---|
| 2008 | done | sort |
|---|
| 2009 | echo |
|---|
| 2010 | fi |
|---|
| 2011 | |
|---|
| 2012 | if test -s confdefs.h; then |
|---|
| 2013 | $as_echo "## ----------- ## |
|---|
| 2014 | ## confdefs.h. ## |
|---|
| 2015 | ## ----------- ##" |
|---|
| 2016 | echo |
|---|
| 2017 | cat confdefs.h |
|---|
| 2018 | echo |
|---|
| 2019 | fi |
|---|
| 2020 | test "$ac_signal" != 0 && |
|---|
| 2021 | $as_echo "$as_me: caught signal $ac_signal" |
|---|
| 2022 | $as_echo "$as_me: exit $exit_status" |
|---|
| 2023 | } >&5 |
|---|
| 2024 | rm -f core *.core core.conftest.* && |
|---|
| 2025 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
|---|
| 2026 | exit $exit_status |
|---|
| 2027 | ' 0 |
|---|
| 2028 | for ac_signal in 1 2 13 15; do |
|---|
| 2029 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
|---|
| 2030 | done |
|---|
| 2031 | ac_signal=0 |
|---|
| 2032 | |
|---|
| 2033 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
|---|
| 2034 | rm -f -r conftest* confdefs.h |
|---|
| 2035 | |
|---|
| 2036 | $as_echo "/* confdefs.h */" > confdefs.h |
|---|
| 2037 | |
|---|
| 2038 | # Predefined preprocessor variables. |
|---|
| 2039 | |
|---|
| 2040 | cat >>confdefs.h <<_ACEOF |
|---|
| 2041 | #define PACKAGE_NAME "$PACKAGE_NAME" |
|---|
| 2042 | _ACEOF |
|---|
| 2043 | |
|---|
| 2044 | cat >>confdefs.h <<_ACEOF |
|---|
| 2045 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
|---|
| 2046 | _ACEOF |
|---|
| 2047 | |
|---|
| 2048 | cat >>confdefs.h <<_ACEOF |
|---|
| 2049 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
|---|
| 2050 | _ACEOF |
|---|
| 2051 | |
|---|
| 2052 | cat >>confdefs.h <<_ACEOF |
|---|
| 2053 | #define PACKAGE_STRING "$PACKAGE_STRING" |
|---|
| 2054 | _ACEOF |
|---|
| 2055 | |
|---|
| 2056 | cat >>confdefs.h <<_ACEOF |
|---|
| 2057 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
|---|
| 2058 | _ACEOF |
|---|
| 2059 | |
|---|
| 2060 | cat >>confdefs.h <<_ACEOF |
|---|
| 2061 | #define PACKAGE_URL "$PACKAGE_URL" |
|---|
| 2062 | _ACEOF |
|---|
| 2063 | |
|---|
| 2064 | |
|---|
| 2065 | # Let the site file select an alternate cache file if it wants to. |
|---|
| 2066 | # Prefer an explicitly selected file to automatically selected ones. |
|---|
| 2067 | ac_site_file1=NONE |
|---|
| 2068 | ac_site_file2=NONE |
|---|
| 2069 | if test -n "$CONFIG_SITE"; then |
|---|
| 2070 | # We do not want a PATH search for config.site. |
|---|
| 2071 | case $CONFIG_SITE in #(( |
|---|
| 2072 | -*) ac_site_file1=./$CONFIG_SITE;; |
|---|
| 2073 | */*) ac_site_file1=$CONFIG_SITE;; |
|---|
| 2074 | *) ac_site_file1=./$CONFIG_SITE;; |
|---|
| 2075 | esac |
|---|
| 2076 | elif test "x$prefix" != xNONE; then |
|---|
| 2077 | ac_site_file1=$prefix/share/config.site |
|---|
| 2078 | ac_site_file2=$prefix/etc/config.site |
|---|
| 2079 | else |
|---|
| 2080 | ac_site_file1=$ac_default_prefix/share/config.site |
|---|
| 2081 | ac_site_file2=$ac_default_prefix/etc/config.site |
|---|
| 2082 | fi |
|---|
| 2083 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
|---|
| 2084 | do |
|---|
| 2085 | test "x$ac_site_file" = xNONE && continue |
|---|
| 2086 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
|---|
| 2087 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
|---|
| 2088 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
|---|
| 2089 | sed 's/^/| /' "$ac_site_file" >&5 |
|---|
| 2090 | . "$ac_site_file" \ |
|---|
| 2091 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|---|
| 2092 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|---|
| 2093 | as_fn_error $? "failed to load site script $ac_site_file |
|---|
| 2094 | See \`config.log' for more details" "$LINENO" 5; } |
|---|
| 2095 | fi |
|---|
| 2096 | done |
|---|
| 2097 | |
|---|
| 2098 | if test -r "$cache_file"; then |
|---|
| 2099 | # Some versions of bash will fail to source /dev/null (special files |
|---|
| 2100 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
|---|
| 2101 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
|---|
| 2102 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
|---|
| 2103 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
|---|
| 2104 | case $cache_file in |
|---|
| 2105 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
|---|
| 2106 | *) . "./$cache_file";; |
|---|
| 2107 | esac |
|---|
| 2108 | fi |
|---|
| 2109 | else |
|---|
| 2110 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
|---|
| 2111 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
|---|
| 2112 | >$cache_file |
|---|
| 2113 | fi |
|---|
| 2114 | |
|---|
| 2115 | # Check that the precious variables saved in the cache have kept the same |
|---|
| 2116 | # value. |
|---|
| 2117 | ac_cache_corrupted=false |
|---|
| 2118 | for ac_var in $ac_precious_vars; do |
|---|
| 2119 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
|---|
| 2120 | eval ac_new_set=\$ac_env_${ac_var}_set |
|---|
| 2121 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
|---|
| 2122 | eval ac_new_val=\$ac_env_${ac_var}_value |
|---|
| 2123 | case $ac_old_set,$ac_new_set in |
|---|
| 2124 | set,) |
|---|
| 2125 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
|---|
| 2126 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
|---|
| 2127 | ac_cache_corrupted=: ;; |
|---|
| 2128 | ,set) |
|---|
| 2129 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
|---|
| 2130 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
|---|
| 2131 | ac_cache_corrupted=: ;; |
|---|
| 2132 | ,);; |
|---|
| 2133 | *) |
|---|
| 2134 | if test "x$ac_old_val" != "x$ac_new_val"; then |
|---|
| 2135 | # differences in whitespace do not lead to failure. |
|---|
| 2136 | ac_old_val_w=`echo x $ac_old_val` |
|---|
| 2137 | ac_new_val_w=`echo x $ac_new_val` |
|---|
| 2138 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
|---|
| 2139 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
|---|
| 2140 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
|---|
| 2141 | ac_cache_corrupted=: |
|---|
| 2142 | else |
|---|
| 2143 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
|---|
| 2144 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
|---|
| 2145 | eval $ac_var=\$ac_old_val |
|---|
| 2146 | fi |
|---|
| 2147 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
|---|
| 2148 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
|---|
| 2149 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
|---|
| 2150 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
|---|
| 2151 | fi;; |
|---|
| 2152 | esac |
|---|
| 2153 | # Pass precious variables to config.status. |
|---|
| 2154 | if test "$ac_new_set" = set; then |
|---|
| 2155 | case $ac_new_val in |
|---|
| 2156 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
|---|
| 2157 | *) ac_arg=$ac_var=$ac_new_val ;; |
|---|
| 2158 | esac |
|---|
| 2159 | case " $ac_configure_args " in |
|---|
| 2160 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
|---|
| 2161 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
|---|
| 2162 | esac |
|---|
| 2163 | fi |
|---|
| 2164 | done |
|---|
| 2165 | if $ac_cache_corrupted; then |
|---|
| 2166 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|---|
| 2167 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|---|
| 2168 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
|---|
| 2169 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
|---|
| 2170 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
|---|
| 2171 | fi |
|---|
| 2172 | ## -------------------- ## |
|---|
| 2173 | ## Main body of script. ## |
|---|
| 2174 | ## -------------------- ## |
|---|
| 2175 | |
|---|
| 2176 | ac_ext=c |
|---|
| 2177 | ac_cpp='$CPP $CPPFLAGS' |
|---|
| 2178 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|---|
| 2179 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|---|
| 2180 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|---|
| 2181 | |
|---|
| 2182 | |
|---|
| 2183 | |
|---|
| 2184 | OS=$(uname) |
|---|
| 2185 | |
|---|
| 2186 | |
|---|
| 2187 | |
|---|
| 2188 | case "$OS" in |
|---|
| 2189 | FreeBSD) |
|---|
| 2190 | TARGET_MAKEFILE=Makefile.freebsd.make.in |
|---|
| 2191 | SO_VERSION=${PACKAGE_VERSION#*.}; SO_VERSION=${SO_VERSION%.*} |
|---|
| 2192 | ;; |
|---|
| 2193 | Linux) |
|---|
| 2194 | TARGET_MAKEFILE=Makefile.gmake.in |
|---|
| 2195 | SO_VERSION=${PACKAGE_VERSION} |
|---|
| 2196 | ;; |
|---|
| 2197 | esac |
|---|
| 2198 | |
|---|
| 2199 | ## |
|---|
| 2200 | # default options |
|---|
| 2201 | ## |
|---|
| 2202 | |
|---|
| 2203 | |
|---|
| 2204 | |
|---|
| 2205 | ## |
|---|
| 2206 | # checking programs |
|---|
| 2207 | ## |
|---|
| 2208 | |
|---|
| 2209 | ac_ext=c |
|---|
| 2210 | ac_cpp='$CPP $CPPFLAGS' |
|---|
| 2211 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|---|
| 2212 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|---|
| 2213 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|---|
| 2214 | if test -n "$ac_tool_prefix"; then |
|---|
| 2215 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
|---|
| 2216 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
|---|
| 2217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|---|
| 2218 | $as_echo_n "checking for $ac_word... " >&6; } |
|---|
| 2219 | if ${ac_cv_prog_CC+:} false; then : |
|---|
| 2220 | $as_echo_n "(cached) " >&6 |
|---|
| 2221 | else |
|---|
| 2222 | if test -n "$CC"; then |
|---|
| 2223 | ac_cv_prog_CC="$CC" # Let the user override the test. |
|---|
| 2224 | else |
|---|
| 2225 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|---|
| 2226 | for as_dir in $PATH |
|---|
| 2227 | do |
|---|
| 2228 | IFS=$as_save_IFS |
|---|
| 2229 | test -z "$as_dir" && as_dir=. |
|---|
| 2230 | for ac_exec_ext in '' $ac_executable_extensions; do |
|---|
| 2231 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|---|
| 2232 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
|---|
| 2233 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|---|
| 2234 | break 2 |
|---|
| 2235 | fi |
|---|
| 2236 | done |
|---|
| 2237 | done |
|---|
| 2238 | IFS=$as_save_IFS |
|---|
| 2239 | |
|---|
| 2240 | fi |
|---|
| 2241 | fi |
|---|
| 2242 | CC=$ac_cv_prog_CC |
|---|
| 2243 | if test -n "$CC"; then |
|---|
| 2244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
|---|
| 2245 | $as_echo "$CC" >&6; } |
|---|
| 2246 | else |
|---|
| 2247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|---|
| 2248 | $as_echo "no" >&6; } |
|---|
| 2249 | fi |
|---|
| 2250 | |
|---|
| 2251 | |
|---|
| 2252 | fi |
|---|
| 2253 | if test -z "$ac_cv_prog_CC"; then |
|---|
| 2254 | ac_ct_CC=$CC |
|---|
| 2255 | # Extract the first word of "gcc", so it can be a program name with args. |
|---|
| 2256 | set dummy gcc; ac_word=$2 |
|---|
| 2257 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|---|
| 2258 | $as_echo_n "checking for $ac_word... " >&6; } |
|---|
| 2259 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
|---|
| 2260 | $as_echo_n "(cached) " >&6 |
|---|
| 2261 | else |
|---|
| 2262 | if test -n "$ac_ct_CC"; then |
|---|
| 2263 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
|---|
| 2264 | else |
|---|
| 2265 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|---|
| 2266 | for as_dir in $PATH |
|---|
| 2267 | do |
|---|
| 2268 | IFS=$as_save_IFS |
|---|
| 2269 | test -z "$as_dir" && as_dir=. |
|---|
| 2270 | for ac_exec_ext in '' $ac_executable_extensions; do |
|---|
| 2271 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|---|
| 2272 | ac_cv_prog_ac_ct_CC="gcc" |
|---|
| 2273 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|---|
| 2274 | break 2 |
|---|
| 2275 | fi |
|---|
| 2276 | done |
|---|
| 2277 | done |
|---|
| 2278 | IFS=$as_save_IFS |
|---|
| 2279 | |
|---|
| 2280 | fi |
|---|
| 2281 | fi |
|---|
| 2282 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|---|
| 2283 | if test -n "$ac_ct_CC"; then |
|---|
| 2284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
|---|
| 2285 | $as_echo "$ac_ct_CC" >&6; } |
|---|
| 2286 | else |
|---|
| 2287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|---|
| 2288 | $as_echo "no" >&6; } |
|---|
| 2289 | fi |
|---|
| 2290 | |
|---|
| 2291 | if test "x$ac_ct_CC" = x; then |
|---|
| 2292 | CC="" |
|---|
| 2293 | else |
|---|
| 2294 | case $cross_compiling:$ac_tool_warned in |
|---|
| 2295 | yes:) |
|---|
| 2296 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|---|
| 2297 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|---|
| 2298 | ac_tool_warned=yes ;; |
|---|
| 2299 | esac |
|---|
| 2300 | CC=$ac_ct_CC |
|---|
| 2301 | fi |
|---|
| 2302 | else |
|---|
| 2303 | CC="$ac_cv_prog_CC" |
|---|
| 2304 | fi |
|---|
| 2305 | |
|---|
| 2306 | if test -z "$CC"; then |
|---|
| 2307 | if test -n "$ac_tool_prefix"; then |
|---|
| 2308 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
|---|
| 2309 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
|---|
| 2310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|---|
| 2311 | $as_echo_n "checking for $ac_word... " >&6; } |
|---|
| 2312 | if ${ac_cv_prog_CC+:} false; then : |
|---|
| 2313 | $as_echo_n "(cached) " >&6 |
|---|
| 2314 | else |
|---|
| 2315 | if test -n "$CC"; then |
|---|
| 2316 | ac_cv_prog_CC="$CC" # Let the user override the test. |
|---|
| 2317 | else |
|---|
| 2318 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|---|
| 2319 | for as_dir in $PATH |
|---|
| 2320 | do |
|---|
| 2321 | IFS=$as_save_IFS |
|---|
| 2322 | test -z "$as_dir" && as_dir=. |
|---|
| 2323 | for ac_exec_ext in '' $ac_executable_extensions; do |
|---|
| 2324 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|---|
| 2325 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
|---|
| 2326 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|---|
| 2327 | break 2 |
|---|
| 2328 | fi |
|---|
| 2329 | done |
|---|
| 2330 | done |
|---|
| 2331 | IFS=$as_save_IFS |
|---|
| 2332 | |
|---|
| 2333 | fi |
|---|
| 2334 | fi |
|---|
| 2335 | CC=$ac_cv_prog_CC |
|---|
| 2336 | if test -n "$CC"; then |
|---|
| 2337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
|---|
| 2338 | $as_echo "$CC" >&6; } |
|---|
| 2339 | else |
|---|
| 2340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|---|
| 2341 | $as_echo "no" >&6; } |
|---|
| 2342 | fi |
|---|
| 2343 | |
|---|
| 2344 | |
|---|
| 2345 | fi |
|---|
| 2346 | fi |
|---|
| 2347 | if test -z "$CC"; then |
|---|
| 2348 | # Extract the first word of "cc", so it can be a program name with args. |
|---|
| 2349 | set dummy cc; ac_word=$2 |
|---|
| 2350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|---|
| 2351 | $as_echo_n "checking for $ac_word... " >&6; } |
|---|
| 2352 | if ${ac_cv_prog_CC+:} false; then : |
|---|
| 2353 | $as_echo_n "(cached) " >&6 |
|---|
| 2354 | else |
|---|
| 2355 | if test -n "$CC"; then |
|---|
| 2356 | ac_cv_prog_CC="$CC" # Let the user override the test. |
|---|
| 2357 | else |
|---|
| 2358 | ac_prog_rejected=no |
|---|
| 2359 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|---|
| 2360 | for as_dir in $PATH |
|---|
| 2361 | do |
|---|
| 2362 | IFS=$as_save_IFS |
|---|
| 2363 | test -z "$as_dir" && as_dir=. |
|---|
| 2364 | for ac_exec_ext in '' $ac_executable_extensions; do |
|---|
| 2365 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|---|
| 2366 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
|---|
| 2367 | ac_prog_rejected=yes |
|---|
| 2368 | continue |
|---|
| 2369 | fi |
|---|
| 2370 | ac_cv_prog_CC="cc" |
|---|
| 2371 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|---|
| 2372 | break 2 |
|---|
| 2373 | fi |
|---|
| 2374 | done |
|---|
| 2375 | done |
|---|
| 2376 | IFS=$as_save_IFS |
|---|
| 2377 | |
|---|
| 2378 | if test $ac_prog_rejected = yes; then |
|---|
| 2379 | # We found a bogon in the path, so make sure we never use it. |
|---|
| 2380 | set dummy $ac_cv_prog_CC |
|---|
| 2381 | shift |
|---|
| 2382 | if test $# != 0; then |
|---|
| 2383 | # We chose a different compiler from the bogus one. |
|---|
| 2384 | # However, it has the same basename, so the bogon will be chosen |
|---|
| 2385 | # first if we set CC to just the basename; use the full file name. |
|---|
| 2386 | shift |
|---|
| 2387 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
|---|
| 2388 | fi |
|---|
| 2389 | fi |
|---|
| 2390 | fi |
|---|
| 2391 | fi |
|---|
| 2392 | CC=$ac_cv_prog_CC |
|---|
| 2393 | if test -n "$CC"; then |
|---|
| 2394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
|---|
| 2395 | $as_echo "$CC" >&6; } |
|---|
| 2396 | else |
|---|
| 2397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|---|
| 2398 | $as_echo "no" >&6; } |
|---|
| 2399 | fi |
|---|
| 2400 | |
|---|
| 2401 | |
|---|
| 2402 | fi |
|---|
| 2403 | if test -z "$CC"; then |
|---|
| 2404 | if test -n "$ac_tool_prefix"; then |
|---|
| 2405 | for ac_prog in cl.exe |
|---|
| 2406 | do |
|---|
| 2407 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
|---|
| 2408 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
|---|
| 2409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|---|
| 2410 | $as_echo_n "checking for $ac_word... " >&6; } |
|---|
| 2411 | if ${ac_cv_prog_CC+:} false; then : |
|---|
| 2412 | $as_echo_n "(cached) " >&6 |
|---|
| 2413 | else |
|---|
| 2414 | if test -n "$CC"; then |
|---|
| 2415 | ac_cv_prog_CC="$CC" # Let the user override the test. |
|---|
| 2416 | else |
|---|
| 2417 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|---|
| 2418 | for as_dir in $PATH |
|---|
| 2419 | do |
|---|
| 2420 | IFS=$as_save_IFS |
|---|
| 2421 | test -z "$as_dir" && as_dir=. |
|---|
| 2422 | for ac_exec_ext in '' $ac_executable_extensions; do |
|---|
| 2423 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|---|
| 2424 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
|---|
| 2425 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|---|
| 2426 | break 2 |
|---|
| 2427 | fi |
|---|
| 2428 | done |
|---|
| 2429 | done |
|---|
| 2430 | IFS=$as_save_IFS |
|---|
| 2431 | |
|---|
| 2432 | fi |
|---|
| 2433 | fi |
|---|
| 2434 | CC=$ac_cv_prog_CC |
|---|
| 2435 | if test -n "$CC"; then |
|---|
| 2436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
|---|
| 2437 | $as_echo "$CC" >&6; } |
|---|
| 2438 | else |
|---|
| 2439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|---|
| 2440 | $as_echo "no" >&6; } |
|---|
| 2441 | fi |
|---|
| 2442 | |
|---|
| 2443 | |
|---|
| 2444 | test -n "$CC" && break |
|---|
| 2445 | done |
|---|
| 2446 | fi |
|---|
| 2447 | if test -z "$CC"; then |
|---|
| 2448 | ac_ct_CC=$CC |
|---|
| 2449 | for ac_prog in cl.exe |
|---|
| 2450 | do |
|---|
| 2451 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
|---|
| 2452 | set dummy $ac_prog; ac_word=$2 |
|---|
| 2453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|---|
| 2454 | $as_echo_n "checking for $ac_word... " >&6; } |
|---|
| 2455 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
|---|
| 2456 | $as_echo_n "(cached) " >&6 |
|---|
| 2457 | else |
|---|
| 2458 | if test -n "$ac_ct_CC"; then |
|---|
| 2459 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
|---|
| 2460 | else |
|---|
| 2461 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|---|
| 2462 | for as_dir in $PATH |
|---|
| 2463 | do |
|---|
| 2464 | IFS=$as_save_IFS |
|---|
| 2465 | test -z "$as_dir" && as_dir=. |
|---|
| 2466 | for ac_exec_ext in '' $ac_executable_extensions; do |
|---|
| 2467 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|---|
| 2468 | ac_cv_prog_ac_ct_CC="$ac_prog" |
|---|
| 2469 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|---|
| 2470 | break 2 |
|---|
| 2471 | fi |
|---|
| 2472 | done |
|---|
| 2473 | done |
|---|
| 2474 | IFS=$as_save_IFS |
|---|
| 2475 | |
|---|
| 2476 | fi |
|---|
| 2477 | fi |
|---|
| 2478 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|---|
| 2479 | if test -n "$ac_ct_CC"; then |
|---|
| 2480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
|---|
| 2481 | $as_echo "$ac_ct_CC" >&6; } |
|---|
| 2482 | else |
|---|
| 2483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|---|
| 2484 | $as_echo "no" >&6; } |
|---|
| 2485 | fi |
|---|
| 2486 | |
|---|
| 2487 | |
|---|
| 2488 | test -n "$ac_ct_CC" && break |
|---|
| 2489 | done |
|---|
| 2490 | |
|---|
| 2491 | if test "x$ac_ct_CC" = x; then |
|---|
| 2492 | CC="" |
|---|
| 2493 | else |
|---|
| 2494 | case $cross_compiling:$ac_tool_warned in |
|---|
| 2495 | yes:) |
|---|
| 2496 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|---|
| 2497 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|---|
| 2498 | ac_tool_warned=yes ;; |
|---|
| 2499 | esac |
|---|
| 2500 | CC=$ac_ct_CC |
|---|
| 2501 | fi |
|---|
| 2502 | fi |
|---|
| 2503 | |
|---|
| 2504 | fi |
|---|
| 2505 | |
|---|
| 2506 | |
|---|
| 2507 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|---|
| 2508 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|---|
| 2509 | as_fn_error $? "no acceptable C compiler found in \$PATH |
|---|
| 2510 | See \`config.log' for more details" "$LINENO" 5; } |
|---|
| 2511 | |
|---|
| 2512 | # Provide some information about the compiler. |
|---|
| 2513 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
|---|
| 2514 | set X $ac_compile |
|---|
| 2515 | ac_compiler=$2 |
|---|
| 2516 | for ac_option in --version -v -V -qversion; do |
|---|
| 2517 | { { ac_try="$ac_compiler $ac_option >&5" |
|---|
| 2518 | case "(($ac_try" in |
|---|
| 2519 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|---|
| 2520 | *) ac_try_echo=$ac_try;; |
|---|
| 2521 | esac |
|---|
| 2522 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|---|
| 2523 | $as_echo "$ac_try_echo"; } >&5 |
|---|
| 2524 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
|---|
| 2525 | ac_status=$? |
|---|
| 2526 | if test -s conftest.err; then |
|---|
| 2527 | sed '10a\ |
|---|
| 2528 | ... rest of stderr output deleted ... |
|---|
| 2529 | 10q' conftest.err >conftest.er1 |
|---|
| 2530 | cat conftest.er1 >&5 |
|---|
| 2531 | fi |
|---|
| 2532 | rm -f conftest.er1 conftest.err |
|---|
| 2533 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|---|
| 2534 | test $ac_status = 0; } |
|---|
| 2535 | done |
|---|
| 2536 | |
|---|
| 2537 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 2538 | /* end confdefs.h. */ |
|---|
| 2539 | |
|---|
| 2540 | int |
|---|
| 2541 | main () |
|---|
| 2542 | { |
|---|
| 2543 | |
|---|
| 2544 | ; |
|---|
| 2545 | return 0; |
|---|
| 2546 | } |
|---|
| 2547 | _ACEOF |
|---|
| 2548 | ac_clean_files_save=$ac_clean_files |
|---|
| 2549 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
|---|
| 2550 | # Try to create an executable without -o first, disregard a.out. |
|---|
| 2551 | # It will help us diagnose broken compilers, and finding out an intuition |
|---|
| 2552 | # of exeext. |
|---|
| 2553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
|---|
| 2554 | $as_echo_n "checking whether the C compiler works... " >&6; } |
|---|
| 2555 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
|---|
| 2556 | |
|---|
| 2557 | # The possible output files: |
|---|
| 2558 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
|---|
| 2559 | |
|---|
| 2560 | ac_rmfiles= |
|---|
| 2561 | for ac_file in $ac_files |
|---|
| 2562 | do |
|---|
| 2563 | case $ac_file in |
|---|
| 2564 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
|---|
| 2565 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
|---|
| 2566 | esac |
|---|
| 2567 | done |
|---|
| 2568 | rm -f $ac_rmfiles |
|---|
| 2569 | |
|---|
| 2570 | if { { ac_try="$ac_link_default" |
|---|
| 2571 | case "(($ac_try" in |
|---|
| 2572 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|---|
| 2573 | *) ac_try_echo=$ac_try;; |
|---|
| 2574 | esac |
|---|
| 2575 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|---|
| 2576 | $as_echo "$ac_try_echo"; } >&5 |
|---|
| 2577 | (eval "$ac_link_default") 2>&5 |
|---|
| 2578 | ac_status=$? |
|---|
| 2579 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|---|
| 2580 | test $ac_status = 0; }; then : |
|---|
| 2581 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
|---|
| 2582 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
|---|
| 2583 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
|---|
| 2584 | # so that the user can short-circuit this test for compilers unknown to |
|---|
| 2585 | # Autoconf. |
|---|
| 2586 | for ac_file in $ac_files '' |
|---|
| 2587 | do |
|---|
| 2588 | test -f "$ac_file" || continue |
|---|
| 2589 | case $ac_file in |
|---|
| 2590 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
|---|
| 2591 | ;; |
|---|
| 2592 | [ab].out ) |
|---|
| 2593 | # We found the default executable, but exeext='' is most |
|---|
| 2594 | # certainly right. |
|---|
| 2595 | break;; |
|---|
| 2596 | *.* ) |
|---|
| 2597 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
|---|
| 2598 | then :; else |
|---|
| 2599 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
|---|
| 2600 | fi |
|---|
| 2601 | # We set ac_cv_exeext here because the later test for it is not |
|---|
| 2602 | # safe: cross compilers may not add the suffix if given an `-o' |
|---|
| 2603 | # argument, so we may need to know it at that point already. |
|---|
| 2604 | # Even if this section looks crufty: it has the advantage of |
|---|
| 2605 | # actually working. |
|---|
| 2606 | break;; |
|---|
| 2607 | * ) |
|---|
| 2608 | break;; |
|---|
| 2609 | esac |
|---|
| 2610 | done |
|---|
| 2611 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
|---|
| 2612 | |
|---|
| 2613 | else |
|---|
| 2614 | ac_file='' |
|---|
| 2615 | fi |
|---|
| 2616 | if test -z "$ac_file"; then : |
|---|
| 2617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|---|
| 2618 | $as_echo "no" >&6; } |
|---|
| 2619 | $as_echo "$as_me: failed program was:" >&5 |
|---|
| 2620 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 2621 | |
|---|
| 2622 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|---|
| 2623 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|---|
| 2624 | as_fn_error 77 "C compiler cannot create executables |
|---|
| 2625 | See \`config.log' for more details" "$LINENO" 5; } |
|---|
| 2626 | else |
|---|
| 2627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|---|
| 2628 | $as_echo "yes" >&6; } |
|---|
| 2629 | fi |
|---|
| 2630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
|---|
| 2631 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
|---|
| 2632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
|---|
| 2633 | $as_echo "$ac_file" >&6; } |
|---|
| 2634 | ac_exeext=$ac_cv_exeext |
|---|
| 2635 | |
|---|
| 2636 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
|---|
| 2637 | ac_clean_files=$ac_clean_files_save |
|---|
| 2638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
|---|
| 2639 | $as_echo_n "checking for suffix of executables... " >&6; } |
|---|
| 2640 | if { { ac_try="$ac_link" |
|---|
| 2641 | case "(($ac_try" in |
|---|
| 2642 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|---|
| 2643 | *) ac_try_echo=$ac_try;; |
|---|
| 2644 | esac |
|---|
| 2645 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|---|
| 2646 | $as_echo "$ac_try_echo"; } >&5 |
|---|
| 2647 | (eval "$ac_link") 2>&5 |
|---|
| 2648 | ac_status=$? |
|---|
| 2649 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|---|
| 2650 | test $ac_status = 0; }; then : |
|---|
| 2651 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
|---|
| 2652 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
|---|
| 2653 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
|---|
| 2654 | # `rm'. |
|---|
| 2655 | for ac_file in conftest.exe conftest conftest.*; do |
|---|
| 2656 | test -f "$ac_file" || continue |
|---|
| 2657 | case $ac_file in |
|---|
| 2658 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
|---|
| 2659 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
|---|
| 2660 | break;; |
|---|
| 2661 | * ) break;; |
|---|
| 2662 | esac |
|---|
| 2663 | done |
|---|
| 2664 | else |
|---|
| 2665 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|---|
| 2666 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|---|
| 2667 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
|---|
| 2668 | See \`config.log' for more details" "$LINENO" 5; } |
|---|
| 2669 | fi |
|---|
| 2670 | rm -f conftest conftest$ac_cv_exeext |
|---|
| 2671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
|---|
| 2672 | $as_echo "$ac_cv_exeext" >&6; } |
|---|
| 2673 | |
|---|
| 2674 | rm -f conftest.$ac_ext |
|---|
| 2675 | EXEEXT=$ac_cv_exeext |
|---|
| 2676 | ac_exeext=$EXEEXT |
|---|
| 2677 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 2678 | /* end confdefs.h. */ |
|---|
| 2679 | #include <stdio.h> |
|---|
| 2680 | int |
|---|
| 2681 | main () |
|---|
| 2682 | { |
|---|
| 2683 | FILE *f = fopen ("conftest.out", "w"); |
|---|
| 2684 | return ferror (f) || fclose (f) != 0; |
|---|
| 2685 | |
|---|
| 2686 | ; |
|---|
| 2687 | return 0; |
|---|
| 2688 | } |
|---|
| 2689 | _ACEOF |
|---|
| 2690 | ac_clean_files="$ac_clean_files conftest.out" |
|---|
| 2691 | # Check that the compiler produces executables we can run. If not, either |
|---|
| 2692 | # the compiler is broken, or we cross compile. |
|---|
| 2693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
|---|
| 2694 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
|---|
| 2695 | if test "$cross_compiling" != yes; then |
|---|
| 2696 | { { ac_try="$ac_link" |
|---|
| 2697 | case "(($ac_try" in |
|---|
| 2698 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|---|
| 2699 | *) ac_try_echo=$ac_try;; |
|---|
| 2700 | esac |
|---|
| 2701 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|---|
| 2702 | $as_echo "$ac_try_echo"; } >&5 |
|---|
| 2703 | (eval "$ac_link") 2>&5 |
|---|
| 2704 | ac_status=$? |
|---|
| 2705 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|---|
| 2706 | test $ac_status = 0; } |
|---|
| 2707 | if { ac_try='./conftest$ac_cv_exeext' |
|---|
| 2708 | { { case "(($ac_try" in |
|---|
| 2709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|---|
| 2710 | *) ac_try_echo=$ac_try;; |
|---|
| 2711 | esac |
|---|
| 2712 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|---|
| 2713 | $as_echo "$ac_try_echo"; } >&5 |
|---|
| 2714 | (eval "$ac_try") 2>&5 |
|---|
| 2715 | ac_status=$? |
|---|
| 2716 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|---|
| 2717 | test $ac_status = 0; }; }; then |
|---|
| 2718 | cross_compiling=no |
|---|
| 2719 | else |
|---|
| 2720 | if test "$cross_compiling" = maybe; then |
|---|
| 2721 | cross_compiling=yes |
|---|
| 2722 | else |
|---|
| 2723 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|---|
| 2724 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|---|
| 2725 | as_fn_error $? "cannot run C compiled programs. |
|---|
| 2726 | If you meant to cross compile, use \`--host'. |
|---|
| 2727 | See \`config.log' for more details" "$LINENO" 5; } |
|---|
| 2728 | fi |
|---|
| 2729 | fi |
|---|
| 2730 | fi |
|---|
| 2731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
|---|
| 2732 | $as_echo "$cross_compiling" >&6; } |
|---|
| 2733 | |
|---|
| 2734 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
|---|
| 2735 | ac_clean_files=$ac_clean_files_save |
|---|
| 2736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
|---|
| 2737 | $as_echo_n "checking for suffix of object files... " >&6; } |
|---|
| 2738 | if ${ac_cv_objext+:} false; then : |
|---|
| 2739 | $as_echo_n "(cached) " >&6 |
|---|
| 2740 | else |
|---|
| 2741 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 2742 | /* end confdefs.h. */ |
|---|
| 2743 | |
|---|
| 2744 | int |
|---|
| 2745 | main () |
|---|
| 2746 | { |
|---|
| 2747 | |
|---|
| 2748 | ; |
|---|
| 2749 | return 0; |
|---|
| 2750 | } |
|---|
| 2751 | _ACEOF |
|---|
| 2752 | rm -f conftest.o conftest.obj |
|---|
| 2753 | if { { ac_try="$ac_compile" |
|---|
| 2754 | case "(($ac_try" in |
|---|
| 2755 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|---|
| 2756 | *) ac_try_echo=$ac_try;; |
|---|
| 2757 | esac |
|---|
| 2758 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|---|
| 2759 | $as_echo "$ac_try_echo"; } >&5 |
|---|
| 2760 | (eval "$ac_compile") 2>&5 |
|---|
| 2761 | ac_status=$? |
|---|
| 2762 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|---|
| 2763 | test $ac_status = 0; }; then : |
|---|
| 2764 | for ac_file in conftest.o conftest.obj conftest.*; do |
|---|
| 2765 | test -f "$ac_file" || continue; |
|---|
| 2766 | case $ac_file in |
|---|
| 2767 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
|---|
| 2768 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
|---|
| 2769 | break;; |
|---|
| 2770 | esac |
|---|
| 2771 | done |
|---|
| 2772 | else |
|---|
| 2773 | $as_echo "$as_me: failed program was:" >&5 |
|---|
| 2774 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 2775 | |
|---|
| 2776 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|---|
| 2777 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|---|
| 2778 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
|---|
| 2779 | See \`config.log' for more details" "$LINENO" 5; } |
|---|
| 2780 | fi |
|---|
| 2781 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
|---|
| 2782 | fi |
|---|
| 2783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
|---|
| 2784 | $as_echo "$ac_cv_objext" >&6; } |
|---|
| 2785 | OBJEXT=$ac_cv_objext |
|---|
| 2786 | ac_objext=$OBJEXT |
|---|
| 2787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
|---|
| 2788 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
|---|
| 2789 | if ${ac_cv_c_compiler_gnu+:} false; then : |
|---|
| 2790 | $as_echo_n "(cached) " >&6 |
|---|
| 2791 | else |
|---|
| 2792 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 2793 | /* end confdefs.h. */ |
|---|
| 2794 | |
|---|
| 2795 | int |
|---|
| 2796 | main () |
|---|
| 2797 | { |
|---|
| 2798 | #ifndef __GNUC__ |
|---|
| 2799 | choke me |
|---|
| 2800 | #endif |
|---|
| 2801 | |
|---|
| 2802 | ; |
|---|
| 2803 | return 0; |
|---|
| 2804 | } |
|---|
| 2805 | _ACEOF |
|---|
| 2806 | if ac_fn_c_try_compile "$LINENO"; then : |
|---|
| 2807 | ac_compiler_gnu=yes |
|---|
| 2808 | else |
|---|
| 2809 | ac_compiler_gnu=no |
|---|
| 2810 | fi |
|---|
| 2811 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|---|
| 2812 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
|---|
| 2813 | |
|---|
| 2814 | fi |
|---|
| 2815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
|---|
| 2816 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
|---|
| 2817 | if test $ac_compiler_gnu = yes; then |
|---|
| 2818 | GCC=yes |
|---|
| 2819 | else |
|---|
| 2820 | GCC= |
|---|
| 2821 | fi |
|---|
| 2822 | ac_test_CFLAGS=${CFLAGS+set} |
|---|
| 2823 | ac_save_CFLAGS=$CFLAGS |
|---|
| 2824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
|---|
| 2825 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
|---|
| 2826 | if ${ac_cv_prog_cc_g+:} false; then : |
|---|
| 2827 | $as_echo_n "(cached) " >&6 |
|---|
| 2828 | else |
|---|
| 2829 | ac_save_c_werror_flag=$ac_c_werror_flag |
|---|
| 2830 | ac_c_werror_flag=yes |
|---|
| 2831 | ac_cv_prog_cc_g=no |
|---|
| 2832 | CFLAGS="-g" |
|---|
| 2833 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 2834 | /* end confdefs.h. */ |
|---|
| 2835 | |
|---|
| 2836 | int |
|---|
| 2837 | main () |
|---|
| 2838 | { |
|---|
| 2839 | |
|---|
| 2840 | ; |
|---|
| 2841 | return 0; |
|---|
| 2842 | } |
|---|
| 2843 | _ACEOF |
|---|
| 2844 | if ac_fn_c_try_compile "$LINENO"; then : |
|---|
| 2845 | ac_cv_prog_cc_g=yes |
|---|
| 2846 | else |
|---|
| 2847 | CFLAGS="" |
|---|
| 2848 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 2849 | /* end confdefs.h. */ |
|---|
| 2850 | |
|---|
| 2851 | int |
|---|
| 2852 | main () |
|---|
| 2853 | { |
|---|
| 2854 | |
|---|
| 2855 | ; |
|---|
| 2856 | return 0; |
|---|
| 2857 | } |
|---|
| 2858 | _ACEOF |
|---|
| 2859 | if ac_fn_c_try_compile "$LINENO"; then : |
|---|
| 2860 | |
|---|
| 2861 | else |
|---|
| 2862 | ac_c_werror_flag=$ac_save_c_werror_flag |
|---|
| 2863 | CFLAGS="-g" |
|---|
| 2864 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 2865 | /* end confdefs.h. */ |
|---|
| 2866 | |
|---|
| 2867 | int |
|---|
| 2868 | main () |
|---|
| 2869 | { |
|---|
| 2870 | |
|---|
| 2871 | ; |
|---|
| 2872 | return 0; |
|---|
| 2873 | } |
|---|
| 2874 | _ACEOF |
|---|
| 2875 | if ac_fn_c_try_compile "$LINENO"; then : |
|---|
| 2876 | ac_cv_prog_cc_g=yes |
|---|
| 2877 | fi |
|---|
| 2878 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|---|
| 2879 | fi |
|---|
| 2880 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|---|
| 2881 | fi |
|---|
| 2882 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|---|
| 2883 | ac_c_werror_flag=$ac_save_c_werror_flag |
|---|
| 2884 | fi |
|---|
| 2885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
|---|
| 2886 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
|---|
| 2887 | if test "$ac_test_CFLAGS" = set; then |
|---|
| 2888 | CFLAGS=$ac_save_CFLAGS |
|---|
| 2889 | elif test $ac_cv_prog_cc_g = yes; then |
|---|
| 2890 | if test "$GCC" = yes; then |
|---|
| 2891 | CFLAGS="-g -O2" |
|---|
| 2892 | else |
|---|
| 2893 | CFLAGS="-g" |
|---|
| 2894 | fi |
|---|
| 2895 | else |
|---|
| 2896 | if test "$GCC" = yes; then |
|---|
| 2897 | CFLAGS="-O2" |
|---|
| 2898 | else |
|---|
| 2899 | CFLAGS= |
|---|
| 2900 | fi |
|---|
| 2901 | fi |
|---|
| 2902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
|---|
| 2903 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
|---|
| 2904 | if ${ac_cv_prog_cc_c89+:} false; then : |
|---|
| 2905 | $as_echo_n "(cached) " >&6 |
|---|
| 2906 | else |
|---|
| 2907 | ac_cv_prog_cc_c89=no |
|---|
| 2908 | ac_save_CC=$CC |
|---|
| 2909 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 2910 | /* end confdefs.h. */ |
|---|
| 2911 | #include <stdarg.h> |
|---|
| 2912 | #include <stdio.h> |
|---|
| 2913 | #include <sys/types.h> |
|---|
| 2914 | #include <sys/stat.h> |
|---|
| 2915 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
|---|
| 2916 | struct buf { int x; }; |
|---|
| 2917 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
|---|
| 2918 | static char *e (p, i) |
|---|
| 2919 | char **p; |
|---|
| 2920 | int i; |
|---|
| 2921 | { |
|---|
| 2922 | return p[i]; |
|---|
| 2923 | } |
|---|
| 2924 | static char *f (char * (*g) (char **, int), char **p, ...) |
|---|
| 2925 | { |
|---|
| 2926 | char *s; |
|---|
| 2927 | va_list v; |
|---|
| 2928 | va_start (v,p); |
|---|
| 2929 | s = g (p, va_arg (v,int)); |
|---|
| 2930 | va_end (v); |
|---|
| 2931 | return s; |
|---|
| 2932 | } |
|---|
| 2933 | |
|---|
| 2934 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
|---|
| 2935 | function prototypes and stuff, but not '\xHH' hex character constants. |
|---|
| 2936 | These don't provoke an error unfortunately, instead are silently treated |
|---|
| 2937 | as 'x'. The following induces an error, until -std is added to get |
|---|
| 2938 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
|---|
| 2939 | array size at least. It's necessary to write '\x00'==0 to get something |
|---|
| 2940 | that's true only with -std. */ |
|---|
| 2941 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
|---|
| 2942 | |
|---|
| 2943 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
|---|
| 2944 | inside strings and character constants. */ |
|---|
| 2945 | #define FOO(x) 'x' |
|---|
| 2946 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
|---|
| 2947 | |
|---|
| 2948 | int test (int i, double x); |
|---|
| 2949 | struct s1 {int (*f) (int a);}; |
|---|
| 2950 | struct s2 {int (*f) (double a);}; |
|---|
| 2951 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
|---|
| 2952 | int argc; |
|---|
| 2953 | char **argv; |
|---|
| 2954 | int |
|---|
| 2955 | main () |
|---|
| 2956 | { |
|---|
| 2957 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
|---|
| 2958 | ; |
|---|
| 2959 | return 0; |
|---|
| 2960 | } |
|---|
| 2961 | _ACEOF |
|---|
| 2962 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
|---|
| 2963 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
|---|
| 2964 | do |
|---|
| 2965 | CC="$ac_save_CC $ac_arg" |
|---|
| 2966 | if ac_fn_c_try_compile "$LINENO"; then : |
|---|
| 2967 | ac_cv_prog_cc_c89=$ac_arg |
|---|
| 2968 | fi |
|---|
| 2969 | rm -f core conftest.err conftest.$ac_objext |
|---|
| 2970 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
|---|
| 2971 | done |
|---|
| 2972 | rm -f conftest.$ac_ext |
|---|
| 2973 | CC=$ac_save_CC |
|---|
| 2974 | |
|---|
| 2975 | fi |
|---|
| 2976 | # AC_CACHE_VAL |
|---|
| 2977 | case "x$ac_cv_prog_cc_c89" in |
|---|
| 2978 | x) |
|---|
| 2979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
|---|
| 2980 | $as_echo "none needed" >&6; } ;; |
|---|
| 2981 | xno) |
|---|
| 2982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
|---|
| 2983 | $as_echo "unsupported" >&6; } ;; |
|---|
| 2984 | *) |
|---|
| 2985 | CC="$CC $ac_cv_prog_cc_c89" |
|---|
| 2986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
|---|
| 2987 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
|---|
| 2988 | esac |
|---|
| 2989 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
|---|
| 2990 | |
|---|
| 2991 | fi |
|---|
| 2992 | |
|---|
| 2993 | ac_ext=c |
|---|
| 2994 | ac_cpp='$CPP $CPPFLAGS' |
|---|
| 2995 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|---|
| 2996 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|---|
| 2997 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|---|
| 2998 | |
|---|
| 2999 | |
|---|
| 3000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
|---|
| 3001 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
|---|
| 3002 | if ${ac_cv_c_const+:} false; then : |
|---|
| 3003 | $as_echo_n "(cached) " >&6 |
|---|
| 3004 | else |
|---|
| 3005 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 3006 | /* end confdefs.h. */ |
|---|
| 3007 | |
|---|
| 3008 | int |
|---|
| 3009 | main () |
|---|
| 3010 | { |
|---|
| 3011 | /* FIXME: Include the comments suggested by Paul. */ |
|---|
| 3012 | #ifndef __cplusplus |
|---|
| 3013 | /* Ultrix mips cc rejects this. */ |
|---|
| 3014 | typedef int charset[2]; |
|---|
| 3015 | const charset cs; |
|---|
| 3016 | /* SunOS 4.1.1 cc rejects this. */ |
|---|
| 3017 | char const *const *pcpcc; |
|---|
| 3018 | char **ppc; |
|---|
| 3019 | /* NEC SVR4.0.2 mips cc rejects this. */ |
|---|
| 3020 | struct point {int x, y;}; |
|---|
| 3021 | static struct point const zero = {0,0}; |
|---|
| 3022 | /* AIX XL C 1.02.0.0 rejects this. |
|---|
| 3023 | It does not let you subtract one const X* pointer from another in |
|---|
| 3024 | an arm of an if-expression whose if-part is not a constant |
|---|
| 3025 | expression */ |
|---|
| 3026 | const char *g = "string"; |
|---|
| 3027 | pcpcc = &g + (g ? g-g : 0); |
|---|
| 3028 | /* HPUX 7.0 cc rejects these. */ |
|---|
| 3029 | ++pcpcc; |
|---|
| 3030 | ppc = (char**) pcpcc; |
|---|
| 3031 | pcpcc = (char const *const *) ppc; |
|---|
| 3032 | { /* SCO 3.2v4 cc rejects this. */ |
|---|
| 3033 | char *t; |
|---|
| 3034 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
|---|
| 3035 | |
|---|
| 3036 | *t++ = 0; |
|---|
| 3037 | if (s) return 0; |
|---|
| 3038 | } |
|---|
| 3039 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
|---|
| 3040 | int x[] = {25, 17}; |
|---|
| 3041 | const int *foo = &x[0]; |
|---|
| 3042 | ++foo; |
|---|
| 3043 | } |
|---|
| 3044 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
|---|
| 3045 | typedef const int *iptr; |
|---|
| 3046 | iptr p = 0; |
|---|
| 3047 | ++p; |
|---|
| 3048 | } |
|---|
| 3049 | { /* AIX XL C 1.02.0.0 rejects this saying |
|---|
| 3050 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
|---|
| 3051 | struct s { int j; const int *ap[3]; }; |
|---|
| 3052 | struct s *b; b->j = 5; |
|---|
| 3053 | } |
|---|
| 3054 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
|---|
| 3055 | const int foo = 10; |
|---|
| 3056 | if (!foo) return 0; |
|---|
| 3057 | } |
|---|
| 3058 | return !cs[0] && !zero.x; |
|---|
| 3059 | #endif |
|---|
| 3060 | |
|---|
| 3061 | ; |
|---|
| 3062 | return 0; |
|---|
| 3063 | } |
|---|
| 3064 | _ACEOF |
|---|
| 3065 | if ac_fn_c_try_compile "$LINENO"; then : |
|---|
| 3066 | ac_cv_c_const=yes |
|---|
| 3067 | else |
|---|
| 3068 | ac_cv_c_const=no |
|---|
| 3069 | fi |
|---|
| 3070 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|---|
| 3071 | fi |
|---|
| 3072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
|---|
| 3073 | $as_echo "$ac_cv_c_const" >&6; } |
|---|
| 3074 | if test $ac_cv_c_const = no; then |
|---|
| 3075 | |
|---|
| 3076 | $as_echo "#define const /**/" >>confdefs.h |
|---|
| 3077 | |
|---|
| 3078 | fi |
|---|
| 3079 | |
|---|
| 3080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
|---|
| 3081 | $as_echo_n "checking for inline... " >&6; } |
|---|
| 3082 | if ${ac_cv_c_inline+:} false; then : |
|---|
| 3083 | $as_echo_n "(cached) " >&6 |
|---|
| 3084 | else |
|---|
| 3085 | ac_cv_c_inline=no |
|---|
| 3086 | for ac_kw in inline __inline__ __inline; do |
|---|
| 3087 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 3088 | /* end confdefs.h. */ |
|---|
| 3089 | #ifndef __cplusplus |
|---|
| 3090 | typedef int foo_t; |
|---|
| 3091 | static $ac_kw foo_t static_foo () {return 0; } |
|---|
| 3092 | $ac_kw foo_t foo () {return 0; } |
|---|
| 3093 | #endif |
|---|
| 3094 | |
|---|
| 3095 | _ACEOF |
|---|
| 3096 | if ac_fn_c_try_compile "$LINENO"; then : |
|---|
| 3097 | ac_cv_c_inline=$ac_kw |
|---|
| 3098 | fi |
|---|
| 3099 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|---|
| 3100 | test "$ac_cv_c_inline" != no && break |
|---|
| 3101 | done |
|---|
| 3102 | |
|---|
| 3103 | fi |
|---|
| 3104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
|---|
| 3105 | $as_echo "$ac_cv_c_inline" >&6; } |
|---|
| 3106 | |
|---|
| 3107 | case $ac_cv_c_inline in |
|---|
| 3108 | inline | yes) ;; |
|---|
| 3109 | *) |
|---|
| 3110 | case $ac_cv_c_inline in |
|---|
| 3111 | no) ac_val=;; |
|---|
| 3112 | *) ac_val=$ac_cv_c_inline;; |
|---|
| 3113 | esac |
|---|
| 3114 | cat >>confdefs.h <<_ACEOF |
|---|
| 3115 | #ifndef __cplusplus |
|---|
| 3116 | #define inline $ac_val |
|---|
| 3117 | #endif |
|---|
| 3118 | _ACEOF |
|---|
| 3119 | ;; |
|---|
| 3120 | esac |
|---|
| 3121 | |
|---|
| 3122 | ac_ext=c |
|---|
| 3123 | ac_cpp='$CPP $CPPFLAGS' |
|---|
| 3124 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|---|
| 3125 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|---|
| 3126 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|---|
| 3127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
|---|
| 3128 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
|---|
| 3129 | # On Suns, sometimes $CPP names a directory. |
|---|
| 3130 | if test -n "$CPP" && test -d "$CPP"; then |
|---|
| 3131 | CPP= |
|---|
| 3132 | fi |
|---|
| 3133 | if test -z "$CPP"; then |
|---|
| 3134 | if ${ac_cv_prog_CPP+:} false; then : |
|---|
| 3135 | $as_echo_n "(cached) " >&6 |
|---|
| 3136 | else |
|---|
| 3137 | # Double quotes because CPP needs to be expanded |
|---|
| 3138 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
|---|
| 3139 | do |
|---|
| 3140 | ac_preproc_ok=false |
|---|
| 3141 | for ac_c_preproc_warn_flag in '' yes |
|---|
| 3142 | do |
|---|
| 3143 | # Use a header file that comes with gcc, so configuring glibc |
|---|
| 3144 | # with a fresh cross-compiler works. |
|---|
| 3145 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|---|
| 3146 | # <limits.h> exists even on freestanding compilers. |
|---|
| 3147 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|---|
| 3148 | # not just through cpp. "Syntax error" is here to catch this case. |
|---|
| 3149 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 3150 | /* end confdefs.h. */ |
|---|
| 3151 | #ifdef __STDC__ |
|---|
| 3152 | # include <limits.h> |
|---|
| 3153 | #else |
|---|
| 3154 | # include <assert.h> |
|---|
| 3155 | #endif |
|---|
| 3156 | Syntax error |
|---|
| 3157 | _ACEOF |
|---|
| 3158 | if ac_fn_c_try_cpp "$LINENO"; then : |
|---|
| 3159 | |
|---|
| 3160 | else |
|---|
| 3161 | # Broken: fails on valid input. |
|---|
| 3162 | continue |
|---|
| 3163 | fi |
|---|
| 3164 | rm -f conftest.err conftest.i conftest.$ac_ext |
|---|
| 3165 | |
|---|
| 3166 | # OK, works on sane cases. Now check whether nonexistent headers |
|---|
| 3167 | # can be detected and how. |
|---|
| 3168 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 3169 | /* end confdefs.h. */ |
|---|
| 3170 | #include <ac_nonexistent.h> |
|---|
| 3171 | _ACEOF |
|---|
| 3172 | if ac_fn_c_try_cpp "$LINENO"; then : |
|---|
| 3173 | # Broken: success on invalid input. |
|---|
| 3174 | continue |
|---|
| 3175 | else |
|---|
| 3176 | # Passes both tests. |
|---|
| 3177 | ac_preproc_ok=: |
|---|
| 3178 | break |
|---|
| 3179 | fi |
|---|
| 3180 | rm -f conftest.err conftest.i conftest.$ac_ext |
|---|
| 3181 | |
|---|
| 3182 | done |
|---|
| 3183 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|---|
| 3184 | rm -f conftest.i conftest.err conftest.$ac_ext |
|---|
| 3185 | if $ac_preproc_ok; then : |
|---|
| 3186 | break |
|---|
| 3187 | fi |
|---|
| 3188 | |
|---|
| 3189 | done |
|---|
| 3190 | ac_cv_prog_CPP=$CPP |
|---|
| 3191 | |
|---|
| 3192 | fi |
|---|
| 3193 | CPP=$ac_cv_prog_CPP |
|---|
| 3194 | else |
|---|
| 3195 | ac_cv_prog_CPP=$CPP |
|---|
| 3196 | fi |
|---|
| 3197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
|---|
| 3198 | $as_echo "$CPP" >&6; } |
|---|
| 3199 | ac_preproc_ok=false |
|---|
| 3200 | for ac_c_preproc_warn_flag in '' yes |
|---|
| 3201 | do |
|---|
| 3202 | # Use a header file that comes with gcc, so configuring glibc |
|---|
| 3203 | # with a fresh cross-compiler works. |
|---|
| 3204 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|---|
| 3205 | # <limits.h> exists even on freestanding compilers. |
|---|
| 3206 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|---|
| 3207 | # not just through cpp. "Syntax error" is here to catch this case. |
|---|
| 3208 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 3209 | /* end confdefs.h. */ |
|---|
| 3210 | #ifdef __STDC__ |
|---|
| 3211 | # include <limits.h> |
|---|
| 3212 | #else |
|---|
| 3213 | # include <assert.h> |
|---|
| 3214 | #endif |
|---|
| 3215 | Syntax error |
|---|
| 3216 | _ACEOF |
|---|
| 3217 | if ac_fn_c_try_cpp "$LINENO"; then : |
|---|
| 3218 | |
|---|
| 3219 | else |
|---|
| 3220 | # Broken: fails on valid input. |
|---|
| 3221 | continue |
|---|
| 3222 | fi |
|---|
| 3223 | rm -f conftest.err conftest.i conftest.$ac_ext |
|---|
| 3224 | |
|---|
| 3225 | # OK, works on sane cases. Now check whether nonexistent headers |
|---|
| 3226 | # can be detected and how. |
|---|
| 3227 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 3228 | /* end confdefs.h. */ |
|---|
| 3229 | #include <ac_nonexistent.h> |
|---|
| 3230 | _ACEOF |
|---|
| 3231 | if ac_fn_c_try_cpp "$LINENO"; then : |
|---|
| 3232 | # Broken: success on invalid input. |
|---|
| 3233 | continue |
|---|
| 3234 | else |
|---|
| 3235 | # Passes both tests. |
|---|
| 3236 | ac_preproc_ok=: |
|---|
| 3237 | break |
|---|
| 3238 | fi |
|---|
| 3239 | rm -f conftest.err conftest.i conftest.$ac_ext |
|---|
| 3240 | |
|---|
| 3241 | done |
|---|
| 3242 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|---|
| 3243 | rm -f conftest.i conftest.err conftest.$ac_ext |
|---|
| 3244 | if $ac_preproc_ok; then : |
|---|
| 3245 | |
|---|
| 3246 | else |
|---|
| 3247 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|---|
| 3248 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|---|
| 3249 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
|---|
| 3250 | See \`config.log' for more details" "$LINENO" 5; } |
|---|
| 3251 | fi |
|---|
| 3252 | |
|---|
| 3253 | ac_ext=c |
|---|
| 3254 | ac_cpp='$CPP $CPPFLAGS' |
|---|
| 3255 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|---|
| 3256 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|---|
| 3257 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|---|
| 3258 | |
|---|
| 3259 | |
|---|
| 3260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
|---|
| 3261 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
|---|
| 3262 | if ${ac_cv_path_GREP+:} false; then : |
|---|
| 3263 | $as_echo_n "(cached) " >&6 |
|---|
| 3264 | else |
|---|
| 3265 | if test -z "$GREP"; then |
|---|
| 3266 | ac_path_GREP_found=false |
|---|
| 3267 | # Loop through the user's path and test for each of PROGNAME-LIST |
|---|
| 3268 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|---|
| 3269 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
|---|
| 3270 | do |
|---|
| 3271 | IFS=$as_save_IFS |
|---|
| 3272 | test -z "$as_dir" && as_dir=. |
|---|
| 3273 | for ac_prog in grep ggrep; do |
|---|
| 3274 | for ac_exec_ext in '' $ac_executable_extensions; do |
|---|
| 3275 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
|---|
| 3276 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
|---|
| 3277 | # Check for GNU ac_path_GREP and select it if it is found. |
|---|
| 3278 | # Check for GNU $ac_path_GREP |
|---|
| 3279 | case `"$ac_path_GREP" --version 2>&1` in |
|---|
| 3280 | *GNU*) |
|---|
| 3281 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
|---|
| 3282 | *) |
|---|
| 3283 | ac_count=0 |
|---|
| 3284 | $as_echo_n 0123456789 >"conftest.in" |
|---|
| 3285 | while : |
|---|
| 3286 | do |
|---|
| 3287 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
|---|
| 3288 | mv "conftest.tmp" "conftest.in" |
|---|
| 3289 | cp "conftest.in" "conftest.nl" |
|---|
| 3290 | $as_echo 'GREP' >> "conftest.nl" |
|---|
| 3291 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
|---|
| 3292 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
|---|
| 3293 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
|---|
| 3294 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
|---|
| 3295 | # Best one so far, save it but keep looking for a better one |
|---|
| 3296 | ac_cv_path_GREP="$ac_path_GREP" |
|---|
| 3297 | ac_path_GREP_max=$ac_count |
|---|
| 3298 | fi |
|---|
| 3299 | # 10*(2^10) chars as input seems more than enough |
|---|
| 3300 | test $ac_count -gt 10 && break |
|---|
| 3301 | done |
|---|
| 3302 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
|---|
| 3303 | esac |
|---|
| 3304 | |
|---|
| 3305 | $ac_path_GREP_found && break 3 |
|---|
| 3306 | done |
|---|
| 3307 | done |
|---|
| 3308 | done |
|---|
| 3309 | IFS=$as_save_IFS |
|---|
| 3310 | if test -z "$ac_cv_path_GREP"; then |
|---|
| 3311 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
|---|
| 3312 | fi |
|---|
| 3313 | else |
|---|
| 3314 | ac_cv_path_GREP=$GREP |
|---|
| 3315 | fi |
|---|
| 3316 | |
|---|
| 3317 | fi |
|---|
| 3318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
|---|
| 3319 | $as_echo "$ac_cv_path_GREP" >&6; } |
|---|
| 3320 | GREP="$ac_cv_path_GREP" |
|---|
| 3321 | |
|---|
| 3322 | |
|---|
| 3323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
|---|
| 3324 | $as_echo_n "checking for egrep... " >&6; } |
|---|
| 3325 | if ${ac_cv_path_EGREP+:} false; then : |
|---|
| 3326 | $as_echo_n "(cached) " >&6 |
|---|
| 3327 | else |
|---|
| 3328 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
|---|
| 3329 | then ac_cv_path_EGREP="$GREP -E" |
|---|
| 3330 | else |
|---|
| 3331 | if test -z "$EGREP"; then |
|---|
| 3332 | ac_path_EGREP_found=false |
|---|
| 3333 | # Loop through the user's path and test for each of PROGNAME-LIST |
|---|
| 3334 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|---|
| 3335 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
|---|
| 3336 | do |
|---|
| 3337 | IFS=$as_save_IFS |
|---|
| 3338 | test -z "$as_dir" && as_dir=. |
|---|
| 3339 | for ac_prog in egrep; do |
|---|
| 3340 | for ac_exec_ext in '' $ac_executable_extensions; do |
|---|
| 3341 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
|---|
| 3342 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
|---|
| 3343 | # Check for GNU ac_path_EGREP and select it if it is found. |
|---|
| 3344 | # Check for GNU $ac_path_EGREP |
|---|
| 3345 | case `"$ac_path_EGREP" --version 2>&1` in |
|---|
| 3346 | *GNU*) |
|---|
| 3347 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
|---|
| 3348 | *) |
|---|
| 3349 | ac_count=0 |
|---|
| 3350 | $as_echo_n 0123456789 >"conftest.in" |
|---|
| 3351 | while : |
|---|
| 3352 | do |
|---|
| 3353 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
|---|
| 3354 | mv "conftest.tmp" "conftest.in" |
|---|
| 3355 | cp "conftest.in" "conftest.nl" |
|---|
| 3356 | $as_echo 'EGREP' >> "conftest.nl" |
|---|
| 3357 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
|---|
| 3358 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
|---|
| 3359 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
|---|
| 3360 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
|---|
| 3361 | # Best one so far, save it but keep looking for a better one |
|---|
| 3362 | ac_cv_path_EGREP="$ac_path_EGREP" |
|---|
| 3363 | ac_path_EGREP_max=$ac_count |
|---|
| 3364 | fi |
|---|
| 3365 | # 10*(2^10) chars as input seems more than enough |
|---|
| 3366 | test $ac_count -gt 10 && break |
|---|
| 3367 | done |
|---|
| 3368 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
|---|
| 3369 | esac |
|---|
| 3370 | |
|---|
| 3371 | $ac_path_EGREP_found && break 3 |
|---|
| 3372 | done |
|---|
| 3373 | done |
|---|
| 3374 | done |
|---|
| 3375 | IFS=$as_save_IFS |
|---|
| 3376 | if test -z "$ac_cv_path_EGREP"; then |
|---|
| 3377 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
|---|
| 3378 | fi |
|---|
| 3379 | else |
|---|
| 3380 | ac_cv_path_EGREP=$EGREP |
|---|
| 3381 | fi |
|---|
| 3382 | |
|---|
| 3383 | fi |
|---|
| 3384 | fi |
|---|
| 3385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
|---|
| 3386 | $as_echo "$ac_cv_path_EGREP" >&6; } |
|---|
| 3387 | EGREP="$ac_cv_path_EGREP" |
|---|
| 3388 | |
|---|
| 3389 | |
|---|
| 3390 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
|---|
| 3391 | $as_echo_n "checking for ANSI C header files... " >&6; } |
|---|
| 3392 | if ${ac_cv_header_stdc+:} false; then : |
|---|
| 3393 | $as_echo_n "(cached) " >&6 |
|---|
| 3394 | else |
|---|
| 3395 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 3396 | /* end confdefs.h. */ |
|---|
| 3397 | #include <stdlib.h> |
|---|
| 3398 | #include <stdarg.h> |
|---|
| 3399 | #include <string.h> |
|---|
| 3400 | #include <float.h> |
|---|
| 3401 | |
|---|
| 3402 | int |
|---|
| 3403 | main () |
|---|
| 3404 | { |
|---|
| 3405 | |
|---|
| 3406 | ; |
|---|
| 3407 | return 0; |
|---|
| 3408 | } |
|---|
| 3409 | _ACEOF |
|---|
| 3410 | if ac_fn_c_try_compile "$LINENO"; then : |
|---|
| 3411 | ac_cv_header_stdc=yes |
|---|
| 3412 | else |
|---|
| 3413 | ac_cv_header_stdc=no |
|---|
| 3414 | fi |
|---|
| 3415 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|---|
| 3416 | |
|---|
| 3417 | if test $ac_cv_header_stdc = yes; then |
|---|
| 3418 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|---|
| 3419 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 3420 | /* end confdefs.h. */ |
|---|
| 3421 | #include <string.h> |
|---|
| 3422 | |
|---|
| 3423 | _ACEOF |
|---|
| 3424 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|---|
| 3425 | $EGREP "memchr" >/dev/null 2>&1; then : |
|---|
| 3426 | |
|---|
| 3427 | else |
|---|
| 3428 | ac_cv_header_stdc=no |
|---|
| 3429 | fi |
|---|
| 3430 | rm -f conftest* |
|---|
| 3431 | |
|---|
| 3432 | fi |
|---|
| 3433 | |
|---|
| 3434 | if test $ac_cv_header_stdc = yes; then |
|---|
| 3435 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|---|
| 3436 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 3437 | /* end confdefs.h. */ |
|---|
| 3438 | #include <stdlib.h> |
|---|
| 3439 | |
|---|
| 3440 | _ACEOF |
|---|
| 3441 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|---|
| 3442 | $EGREP "free" >/dev/null 2>&1; then : |
|---|
| 3443 | |
|---|
| 3444 | else |
|---|
| 3445 | ac_cv_header_stdc=no |
|---|
| 3446 | fi |
|---|
| 3447 | rm -f conftest* |
|---|
| 3448 | |
|---|
| 3449 | fi |
|---|
| 3450 | |
|---|
| 3451 | if test $ac_cv_header_stdc = yes; then |
|---|
| 3452 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|---|
| 3453 | if test "$cross_compiling" = yes; then : |
|---|
| 3454 | : |
|---|
| 3455 | else |
|---|
| 3456 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 3457 | /* end confdefs.h. */ |
|---|
| 3458 | #include <ctype.h> |
|---|
| 3459 | #include <stdlib.h> |
|---|
| 3460 | #if ((' ' & 0x0FF) == 0x020) |
|---|
| 3461 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|---|
| 3462 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|---|
| 3463 | #else |
|---|
| 3464 | # define ISLOWER(c) \ |
|---|
| 3465 | (('a' <= (c) && (c) <= 'i') \ |
|---|
| 3466 | || ('j' <= (c) && (c) <= 'r') \ |
|---|
| 3467 | || ('s' <= (c) && (c) <= 'z')) |
|---|
| 3468 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|---|
| 3469 | #endif |
|---|
| 3470 | |
|---|
| 3471 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|---|
| 3472 | int |
|---|
| 3473 | main () |
|---|
| 3474 | { |
|---|
| 3475 | int i; |
|---|
| 3476 | for (i = 0; i < 256; i++) |
|---|
| 3477 | if (XOR (islower (i), ISLOWER (i)) |
|---|
| 3478 | || toupper (i) != TOUPPER (i)) |
|---|
| 3479 | return 2; |
|---|
| 3480 | return 0; |
|---|
| 3481 | } |
|---|
| 3482 | _ACEOF |
|---|
| 3483 | if ac_fn_c_try_run "$LINENO"; then : |
|---|
| 3484 | |
|---|
| 3485 | else |
|---|
| 3486 | ac_cv_header_stdc=no |
|---|
| 3487 | fi |
|---|
| 3488 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|---|
| 3489 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
|---|
| 3490 | fi |
|---|
| 3491 | |
|---|
| 3492 | fi |
|---|
| 3493 | fi |
|---|
| 3494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
|---|
| 3495 | $as_echo "$ac_cv_header_stdc" >&6; } |
|---|
| 3496 | if test $ac_cv_header_stdc = yes; then |
|---|
| 3497 | |
|---|
| 3498 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
|---|
| 3499 | |
|---|
| 3500 | fi |
|---|
| 3501 | |
|---|
| 3502 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|---|
| 3503 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|---|
| 3504 | inttypes.h stdint.h unistd.h |
|---|
| 3505 | do : |
|---|
| 3506 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|---|
| 3507 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
|---|
| 3508 | " |
|---|
| 3509 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
|---|
| 3510 | cat >>confdefs.h <<_ACEOF |
|---|
| 3511 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|---|
| 3512 | _ACEOF |
|---|
| 3513 | |
|---|
| 3514 | fi |
|---|
| 3515 | |
|---|
| 3516 | done |
|---|
| 3517 | |
|---|
| 3518 | |
|---|
| 3519 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
|---|
| 3520 | if test "x$ac_cv_type_size_t" = xyes; then : |
|---|
| 3521 | |
|---|
| 3522 | else |
|---|
| 3523 | |
|---|
| 3524 | cat >>confdefs.h <<_ACEOF |
|---|
| 3525 | #define size_t unsigned int |
|---|
| 3526 | _ACEOF |
|---|
| 3527 | |
|---|
| 3528 | fi |
|---|
| 3529 | |
|---|
| 3530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 |
|---|
| 3531 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } |
|---|
| 3532 | if ${ac_cv_struct_tm+:} false; then : |
|---|
| 3533 | $as_echo_n "(cached) " >&6 |
|---|
| 3534 | else |
|---|
| 3535 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 3536 | /* end confdefs.h. */ |
|---|
| 3537 | #include <sys/types.h> |
|---|
| 3538 | #include <time.h> |
|---|
| 3539 | |
|---|
| 3540 | int |
|---|
| 3541 | main () |
|---|
| 3542 | { |
|---|
| 3543 | struct tm tm; |
|---|
| 3544 | int *p = &tm.tm_sec; |
|---|
| 3545 | return !p; |
|---|
| 3546 | ; |
|---|
| 3547 | return 0; |
|---|
| 3548 | } |
|---|
| 3549 | _ACEOF |
|---|
| 3550 | if ac_fn_c_try_compile "$LINENO"; then : |
|---|
| 3551 | ac_cv_struct_tm=time.h |
|---|
| 3552 | else |
|---|
| 3553 | ac_cv_struct_tm=sys/time.h |
|---|
| 3554 | fi |
|---|
| 3555 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|---|
| 3556 | fi |
|---|
| 3557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 |
|---|
| 3558 | $as_echo "$ac_cv_struct_tm" >&6; } |
|---|
| 3559 | if test $ac_cv_struct_tm = sys/time.h; then |
|---|
| 3560 | |
|---|
| 3561 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h |
|---|
| 3562 | |
|---|
| 3563 | fi |
|---|
| 3564 | |
|---|
| 3565 | if test $ac_cv_c_compiler_gnu = yes; then |
|---|
| 3566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 |
|---|
| 3567 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } |
|---|
| 3568 | if ${ac_cv_prog_gcc_traditional+:} false; then : |
|---|
| 3569 | $as_echo_n "(cached) " >&6 |
|---|
| 3570 | else |
|---|
| 3571 | ac_pattern="Autoconf.*'x'" |
|---|
| 3572 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 3573 | /* end confdefs.h. */ |
|---|
| 3574 | #include <sgtty.h> |
|---|
| 3575 | Autoconf TIOCGETP |
|---|
| 3576 | _ACEOF |
|---|
| 3577 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|---|
| 3578 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : |
|---|
| 3579 | ac_cv_prog_gcc_traditional=yes |
|---|
| 3580 | else |
|---|
| 3581 | ac_cv_prog_gcc_traditional=no |
|---|
| 3582 | fi |
|---|
| 3583 | rm -f conftest* |
|---|
| 3584 | |
|---|
| 3585 | |
|---|
| 3586 | if test $ac_cv_prog_gcc_traditional = no; then |
|---|
| 3587 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 3588 | /* end confdefs.h. */ |
|---|
| 3589 | #include <termio.h> |
|---|
| 3590 | Autoconf TCGETA |
|---|
| 3591 | _ACEOF |
|---|
| 3592 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|---|
| 3593 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : |
|---|
| 3594 | ac_cv_prog_gcc_traditional=yes |
|---|
| 3595 | fi |
|---|
| 3596 | rm -f conftest* |
|---|
| 3597 | |
|---|
| 3598 | fi |
|---|
| 3599 | fi |
|---|
| 3600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 |
|---|
| 3601 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } |
|---|
| 3602 | if test $ac_cv_prog_gcc_traditional = yes; then |
|---|
| 3603 | CC="$CC -traditional" |
|---|
| 3604 | fi |
|---|
| 3605 | fi |
|---|
| 3606 | |
|---|
| 3607 | ac_ext=cpp |
|---|
| 3608 | ac_cpp='$CXXCPP $CPPFLAGS' |
|---|
| 3609 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|---|
| 3610 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|---|
| 3611 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|---|
| 3612 | if test -z "$CXX"; then |
|---|
| 3613 | if test -n "$CCC"; then |
|---|
| 3614 | CXX=$CCC |
|---|
| 3615 | else |
|---|
| 3616 | if test -n "$ac_tool_prefix"; then |
|---|
| 3617 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
|---|
| 3618 | do |
|---|
| 3619 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
|---|
| 3620 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
|---|
| 3621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|---|
| 3622 | $as_echo_n "checking for $ac_word... " >&6; } |
|---|
| 3623 | if ${ac_cv_prog_CXX+:} false; then : |
|---|
| 3624 | $as_echo_n "(cached) " >&6 |
|---|
| 3625 | else |
|---|
| 3626 | if test -n "$CXX"; then |
|---|
| 3627 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
|---|
| 3628 | else |
|---|
| 3629 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|---|
| 3630 | for as_dir in $PATH |
|---|
| 3631 | do |
|---|
| 3632 | IFS=$as_save_IFS |
|---|
| 3633 | test -z "$as_dir" && as_dir=. |
|---|
| 3634 | for ac_exec_ext in '' $ac_executable_extensions; do |
|---|
| 3635 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|---|
| 3636 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
|---|
| 3637 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|---|
| 3638 | break 2 |
|---|
| 3639 | fi |
|---|
| 3640 | done |
|---|
| 3641 | done |
|---|
| 3642 | IFS=$as_save_IFS |
|---|
| 3643 | |
|---|
| 3644 | fi |
|---|
| 3645 | fi |
|---|
| 3646 | CXX=$ac_cv_prog_CXX |
|---|
| 3647 | if test -n "$CXX"; then |
|---|
| 3648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
|---|
| 3649 | $as_echo "$CXX" >&6; } |
|---|
| 3650 | else |
|---|
| 3651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|---|
| 3652 | $as_echo "no" >&6; } |
|---|
| 3653 | fi |
|---|
| 3654 | |
|---|
| 3655 | |
|---|
| 3656 | test -n "$CXX" && break |
|---|
| 3657 | done |
|---|
| 3658 | fi |
|---|
| 3659 | if test -z "$CXX"; then |
|---|
| 3660 | ac_ct_CXX=$CXX |
|---|
| 3661 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
|---|
| 3662 | do |
|---|
| 3663 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
|---|
| 3664 | set dummy $ac_prog; ac_word=$2 |
|---|
| 3665 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|---|
| 3666 | $as_echo_n "checking for $ac_word... " >&6; } |
|---|
| 3667 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
|---|
| 3668 | $as_echo_n "(cached) " >&6 |
|---|
| 3669 | else |
|---|
| 3670 | if test -n "$ac_ct_CXX"; then |
|---|
| 3671 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
|---|
| 3672 | else |
|---|
| 3673 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|---|
| 3674 | for as_dir in $PATH |
|---|
| 3675 | do |
|---|
| 3676 | IFS=$as_save_IFS |
|---|
| 3677 | test -z "$as_dir" && as_dir=. |
|---|
| 3678 | for ac_exec_ext in '' $ac_executable_extensions; do |
|---|
| 3679 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|---|
| 3680 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
|---|
| 3681 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|---|
| 3682 | break 2 |
|---|
| 3683 | fi |
|---|
| 3684 | done |
|---|
| 3685 | done |
|---|
| 3686 | IFS=$as_save_IFS |
|---|
| 3687 | |
|---|
| 3688 | fi |
|---|
| 3689 | fi |
|---|
| 3690 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
|---|
| 3691 | if test -n "$ac_ct_CXX"; then |
|---|
| 3692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
|---|
| 3693 | $as_echo "$ac_ct_CXX" >&6; } |
|---|
| 3694 | else |
|---|
| 3695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|---|
| 3696 | $as_echo "no" >&6; } |
|---|
| 3697 | fi |
|---|
| 3698 | |
|---|
| 3699 | |
|---|
| 3700 | test -n "$ac_ct_CXX" && break |
|---|
| 3701 | done |
|---|
| 3702 | |
|---|
| 3703 | if test "x$ac_ct_CXX" = x; then |
|---|
| 3704 | CXX="g++" |
|---|
| 3705 | else |
|---|
| 3706 | case $cross_compiling:$ac_tool_warned in |
|---|
| 3707 | yes:) |
|---|
| 3708 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|---|
| 3709 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|---|
| 3710 | ac_tool_warned=yes ;; |
|---|
| 3711 | esac |
|---|
| 3712 | CXX=$ac_ct_CXX |
|---|
| 3713 | fi |
|---|
| 3714 | fi |
|---|
| 3715 | |
|---|
| 3716 | fi |
|---|
| 3717 | fi |
|---|
| 3718 | # Provide some information about the compiler. |
|---|
| 3719 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
|---|
| 3720 | set X $ac_compile |
|---|
| 3721 | ac_compiler=$2 |
|---|
| 3722 | for ac_option in --version -v -V -qversion; do |
|---|
| 3723 | { { ac_try="$ac_compiler $ac_option >&5" |
|---|
| 3724 | case "(($ac_try" in |
|---|
| 3725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|---|
| 3726 | *) ac_try_echo=$ac_try;; |
|---|
| 3727 | esac |
|---|
| 3728 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|---|
| 3729 | $as_echo "$ac_try_echo"; } >&5 |
|---|
| 3730 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
|---|
| 3731 | ac_status=$? |
|---|
| 3732 | if test -s conftest.err; then |
|---|
| 3733 | sed '10a\ |
|---|
| 3734 | ... rest of stderr output deleted ... |
|---|
| 3735 | 10q' conftest.err >conftest.er1 |
|---|
| 3736 | cat conftest.er1 >&5 |
|---|
| 3737 | fi |
|---|
| 3738 | rm -f conftest.er1 conftest.err |
|---|
| 3739 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|---|
| 3740 | test $ac_status = 0; } |
|---|
| 3741 | done |
|---|
| 3742 | |
|---|
| 3743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
|---|
| 3744 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
|---|
| 3745 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
|---|
| 3746 | $as_echo_n "(cached) " >&6 |
|---|
| 3747 | else |
|---|
| 3748 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 3749 | /* end confdefs.h. */ |
|---|
| 3750 | |
|---|
| 3751 | int |
|---|
| 3752 | main () |
|---|
| 3753 | { |
|---|
| 3754 | #ifndef __GNUC__ |
|---|
| 3755 | choke me |
|---|
| 3756 | #endif |
|---|
| 3757 | |
|---|
| 3758 | ; |
|---|
| 3759 | return 0; |
|---|
| 3760 | } |
|---|
| 3761 | _ACEOF |
|---|
| 3762 | if ac_fn_cxx_try_compile "$LINENO"; then : |
|---|
| 3763 | ac_compiler_gnu=yes |
|---|
| 3764 | else |
|---|
| 3765 | ac_compiler_gnu=no |
|---|
| 3766 | fi |
|---|
| 3767 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|---|
| 3768 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
|---|
| 3769 | |
|---|
| 3770 | fi |
|---|
| 3771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
|---|
| 3772 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
|---|
| 3773 | if test $ac_compiler_gnu = yes; then |
|---|
| 3774 | GXX=yes |
|---|
| 3775 | else |
|---|
| 3776 | GXX= |
|---|
| 3777 | fi |
|---|
| 3778 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
|---|
| 3779 | ac_save_CXXFLAGS=$CXXFLAGS |
|---|
| 3780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
|---|
| 3781 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
|---|
| 3782 | if ${ac_cv_prog_cxx_g+:} false; then : |
|---|
| 3783 | $as_echo_n "(cached) " >&6 |
|---|
| 3784 | else |
|---|
| 3785 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
|---|
| 3786 | ac_cxx_werror_flag=yes |
|---|
| 3787 | ac_cv_prog_cxx_g=no |
|---|
| 3788 | CXXFLAGS="-g" |
|---|
| 3789 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 3790 | /* end confdefs.h. */ |
|---|
| 3791 | |
|---|
| 3792 | int |
|---|
| 3793 | main () |
|---|
| 3794 | { |
|---|
| 3795 | |
|---|
| 3796 | ; |
|---|
| 3797 | return 0; |
|---|
| 3798 | } |
|---|
| 3799 | _ACEOF |
|---|
| 3800 | if ac_fn_cxx_try_compile "$LINENO"; then : |
|---|
| 3801 | ac_cv_prog_cxx_g=yes |
|---|
| 3802 | else |
|---|
| 3803 | CXXFLAGS="" |
|---|
| 3804 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 3805 | /* end confdefs.h. */ |
|---|
| 3806 | |
|---|
| 3807 | int |
|---|
| 3808 | main () |
|---|
| 3809 | { |
|---|
| 3810 | |
|---|
| 3811 | ; |
|---|
| 3812 | return 0; |
|---|
| 3813 | } |
|---|
| 3814 | _ACEOF |
|---|
| 3815 | if ac_fn_cxx_try_compile "$LINENO"; then : |
|---|
| 3816 | |
|---|
| 3817 | else |
|---|
| 3818 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
|---|
| 3819 | CXXFLAGS="-g" |
|---|
| 3820 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 3821 | /* end confdefs.h. */ |
|---|
| 3822 | |
|---|
| 3823 | int |
|---|
| 3824 | main () |
|---|
| 3825 | { |
|---|
| 3826 | |
|---|
| 3827 | ; |
|---|
| 3828 | return 0; |
|---|
| 3829 | } |
|---|
| 3830 | _ACEOF |
|---|
| 3831 | if ac_fn_cxx_try_compile "$LINENO"; then : |
|---|
| 3832 | ac_cv_prog_cxx_g=yes |
|---|
| 3833 | fi |
|---|
| 3834 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|---|
| 3835 | fi |
|---|
| 3836 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|---|
| 3837 | fi |
|---|
| 3838 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|---|
| 3839 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
|---|
| 3840 | fi |
|---|
| 3841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
|---|
| 3842 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
|---|
| 3843 | if test "$ac_test_CXXFLAGS" = set; then |
|---|
| 3844 | CXXFLAGS=$ac_save_CXXFLAGS |
|---|
| 3845 | elif test $ac_cv_prog_cxx_g = yes; then |
|---|
| 3846 | if test "$GXX" = yes; then |
|---|
| 3847 | CXXFLAGS="-g -O2" |
|---|
| 3848 | else |
|---|
| 3849 | CXXFLAGS="-g" |
|---|
| 3850 | fi |
|---|
| 3851 | else |
|---|
| 3852 | if test "$GXX" = yes; then |
|---|
| 3853 | CXXFLAGS="-O2" |
|---|
| 3854 | else |
|---|
| 3855 | CXXFLAGS= |
|---|
| 3856 | fi |
|---|
| 3857 | fi |
|---|
| 3858 | ac_ext=c |
|---|
| 3859 | ac_cpp='$CPP $CPPFLAGS' |
|---|
| 3860 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|---|
| 3861 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|---|
| 3862 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|---|
| 3863 | |
|---|
| 3864 | ac_ext=c |
|---|
| 3865 | ac_cpp='$CPP $CPPFLAGS' |
|---|
| 3866 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|---|
| 3867 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|---|
| 3868 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|---|
| 3869 | if test -n "$ac_tool_prefix"; then |
|---|
| 3870 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
|---|
| 3871 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
|---|
| 3872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|---|
| 3873 | $as_echo_n "checking for $ac_word... " >&6; } |
|---|
| 3874 | if ${ac_cv_prog_CC+:} false; then : |
|---|
| 3875 | $as_echo_n "(cached) " >&6 |
|---|
| 3876 | else |
|---|
| 3877 | if test -n "$CC"; then |
|---|
| 3878 | ac_cv_prog_CC="$CC" # Let the user override the test. |
|---|
| 3879 | else |
|---|
| 3880 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|---|
| 3881 | for as_dir in $PATH |
|---|
| 3882 | do |
|---|
| 3883 | IFS=$as_save_IFS |
|---|
| 3884 | test -z "$as_dir" && as_dir=. |
|---|
| 3885 | for ac_exec_ext in '' $ac_executable_extensions; do |
|---|
| 3886 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|---|
| 3887 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
|---|
| 3888 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|---|
| 3889 | break 2 |
|---|
| 3890 | fi |
|---|
| 3891 | done |
|---|
| 3892 | done |
|---|
| 3893 | IFS=$as_save_IFS |
|---|
| 3894 | |
|---|
| 3895 | fi |
|---|
| 3896 | fi |
|---|
| 3897 | CC=$ac_cv_prog_CC |
|---|
| 3898 | if test -n "$CC"; then |
|---|
| 3899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
|---|
| 3900 | $as_echo "$CC" >&6; } |
|---|
| 3901 | else |
|---|
| 3902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|---|
| 3903 | $as_echo "no" >&6; } |
|---|
| 3904 | fi |
|---|
| 3905 | |
|---|
| 3906 | |
|---|
| 3907 | fi |
|---|
| 3908 | if test -z "$ac_cv_prog_CC"; then |
|---|
| 3909 | ac_ct_CC=$CC |
|---|
| 3910 | # Extract the first word of "gcc", so it can be a program name with args. |
|---|
| 3911 | set dummy gcc; ac_word=$2 |
|---|
| 3912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|---|
| 3913 | $as_echo_n "checking for $ac_word... " >&6; } |
|---|
| 3914 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
|---|
| 3915 | $as_echo_n "(cached) " >&6 |
|---|
| 3916 | else |
|---|
| 3917 | if test -n "$ac_ct_CC"; then |
|---|
| 3918 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
|---|
| 3919 | else |
|---|
| 3920 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|---|
| 3921 | for as_dir in $PATH |
|---|
| 3922 | do |
|---|
| 3923 | IFS=$as_save_IFS |
|---|
| 3924 | test -z "$as_dir" && as_dir=. |
|---|
| 3925 | for ac_exec_ext in '' $ac_executable_extensions; do |
|---|
| 3926 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|---|
| 3927 | ac_cv_prog_ac_ct_CC="gcc" |
|---|
| 3928 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|---|
| 3929 | break 2 |
|---|
| 3930 | fi |
|---|
| 3931 | done |
|---|
| 3932 | done |
|---|
| 3933 | IFS=$as_save_IFS |
|---|
| 3934 | |
|---|
| 3935 | fi |
|---|
| 3936 | fi |
|---|
| 3937 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|---|
| 3938 | if test -n "$ac_ct_CC"; then |
|---|
| 3939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
|---|
| 3940 | $as_echo "$ac_ct_CC" >&6; } |
|---|
| 3941 | else |
|---|
| 3942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|---|
| 3943 | $as_echo "no" >&6; } |
|---|
| 3944 | fi |
|---|
| 3945 | |
|---|
| 3946 | if test "x$ac_ct_CC" = x; then |
|---|
| 3947 | CC="" |
|---|
| 3948 | else |
|---|
| 3949 | case $cross_compiling:$ac_tool_warned in |
|---|
| 3950 | yes:) |
|---|
| 3951 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|---|
| 3952 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|---|
| 3953 | ac_tool_warned=yes ;; |
|---|
| 3954 | esac |
|---|
| 3955 | CC=$ac_ct_CC |
|---|
| 3956 | fi |
|---|
| 3957 | else |
|---|
| 3958 | CC="$ac_cv_prog_CC" |
|---|
| 3959 | fi |
|---|
| 3960 | |
|---|
| 3961 | if test -z "$CC"; then |
|---|
| 3962 | if test -n "$ac_tool_prefix"; then |
|---|
| 3963 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
|---|
| 3964 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
|---|
| 3965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|---|
| 3966 | $as_echo_n "checking for $ac_word... " >&6; } |
|---|
| 3967 | if ${ac_cv_prog_CC+:} false; then : |
|---|
| 3968 | $as_echo_n "(cached) " >&6 |
|---|
| 3969 | else |
|---|
| 3970 | if test -n "$CC"; then |
|---|
| 3971 | ac_cv_prog_CC="$CC" # Let the user override the test. |
|---|
| 3972 | else |
|---|
| 3973 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|---|
| 3974 | for as_dir in $PATH |
|---|
| 3975 | do |
|---|
| 3976 | IFS=$as_save_IFS |
|---|
| 3977 | test -z "$as_dir" && as_dir=. |
|---|
| 3978 | for ac_exec_ext in '' $ac_executable_extensions; do |
|---|
| 3979 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|---|
| 3980 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
|---|
| 3981 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|---|
| 3982 | break 2 |
|---|
| 3983 | fi |
|---|
| 3984 | done |
|---|
| 3985 | done |
|---|
| 3986 | IFS=$as_save_IFS |
|---|
| 3987 | |
|---|
| 3988 | fi |
|---|
| 3989 | fi |
|---|
| 3990 | CC=$ac_cv_prog_CC |
|---|
| 3991 | if test -n "$CC"; then |
|---|
| 3992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
|---|
| 3993 | $as_echo "$CC" >&6; } |
|---|
| 3994 | else |
|---|
| 3995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|---|
| 3996 | $as_echo "no" >&6; } |
|---|
| 3997 | fi |
|---|
| 3998 | |
|---|
| 3999 | |
|---|
| 4000 | fi |
|---|
| 4001 | fi |
|---|
| 4002 | if test -z "$CC"; then |
|---|
| 4003 | # Extract the first word of "cc", so it can be a program name with args. |
|---|
| 4004 | set dummy cc; ac_word=$2 |
|---|
| 4005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|---|
| 4006 | $as_echo_n "checking for $ac_word... " >&6; } |
|---|
| 4007 | if ${ac_cv_prog_CC+:} false; then : |
|---|
| 4008 | $as_echo_n "(cached) " >&6 |
|---|
| 4009 | else |
|---|
| 4010 | if test -n "$CC"; then |
|---|
| 4011 | ac_cv_prog_CC="$CC" # Let the user override the test. |
|---|
| 4012 | else |
|---|
| 4013 | ac_prog_rejected=no |
|---|
| 4014 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|---|
| 4015 | for as_dir in $PATH |
|---|
| 4016 | do |
|---|
| 4017 | IFS=$as_save_IFS |
|---|
| 4018 | test -z "$as_dir" && as_dir=. |
|---|
| 4019 | for ac_exec_ext in '' $ac_executable_extensions; do |
|---|
| 4020 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|---|
| 4021 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
|---|
| 4022 | ac_prog_rejected=yes |
|---|
| 4023 | continue |
|---|
| 4024 | fi |
|---|
| 4025 | ac_cv_prog_CC="cc" |
|---|
| 4026 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|---|
| 4027 | break 2 |
|---|
| 4028 | fi |
|---|
| 4029 | done |
|---|
| 4030 | done |
|---|
| 4031 | IFS=$as_save_IFS |
|---|
| 4032 | |
|---|
| 4033 | if test $ac_prog_rejected = yes; then |
|---|
| 4034 | # We found a bogon in the path, so make sure we never use it. |
|---|
| 4035 | set dummy $ac_cv_prog_CC |
|---|
| 4036 | shift |
|---|
| 4037 | if test $# != 0; then |
|---|
| 4038 | # We chose a different compiler from the bogus one. |
|---|
| 4039 | # However, it has the same basename, so the bogon will be chosen |
|---|
| 4040 | # first if we set CC to just the basename; use the full file name. |
|---|
| 4041 | shift |
|---|
| 4042 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
|---|
| 4043 | fi |
|---|
| 4044 | fi |
|---|
| 4045 | fi |
|---|
| 4046 | fi |
|---|
| 4047 | CC=$ac_cv_prog_CC |
|---|
| 4048 | if test -n "$CC"; then |
|---|
| 4049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
|---|
| 4050 | $as_echo "$CC" >&6; } |
|---|
| 4051 | else |
|---|
| 4052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|---|
| 4053 | $as_echo "no" >&6; } |
|---|
| 4054 | fi |
|---|
| 4055 | |
|---|
| 4056 | |
|---|
| 4057 | fi |
|---|
| 4058 | if test -z "$CC"; then |
|---|
| 4059 | if test -n "$ac_tool_prefix"; then |
|---|
| 4060 | for ac_prog in cl.exe |
|---|
| 4061 | do |
|---|
| 4062 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
|---|
| 4063 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
|---|
| 4064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|---|
| 4065 | $as_echo_n "checking for $ac_word... " >&6; } |
|---|
| 4066 | if ${ac_cv_prog_CC+:} false; then : |
|---|
| 4067 | $as_echo_n "(cached) " >&6 |
|---|
| 4068 | else |
|---|
| 4069 | if test -n "$CC"; then |
|---|
| 4070 | ac_cv_prog_CC="$CC" # Let the user override the test. |
|---|
| 4071 | else |
|---|
| 4072 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|---|
| 4073 | for as_dir in $PATH |
|---|
| 4074 | do |
|---|
| 4075 | IFS=$as_save_IFS |
|---|
| 4076 | test -z "$as_dir" && as_dir=. |
|---|
| 4077 | for ac_exec_ext in '' $ac_executable_extensions; do |
|---|
| 4078 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|---|
| 4079 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
|---|
| 4080 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|---|
| 4081 | break 2 |
|---|
| 4082 | fi |
|---|
| 4083 | done |
|---|
| 4084 | done |
|---|
| 4085 | IFS=$as_save_IFS |
|---|
| 4086 | |
|---|
| 4087 | fi |
|---|
| 4088 | fi |
|---|
| 4089 | CC=$ac_cv_prog_CC |
|---|
| 4090 | if test -n "$CC"; then |
|---|
| 4091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
|---|
| 4092 | $as_echo "$CC" >&6; } |
|---|
| 4093 | else |
|---|
| 4094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|---|
| 4095 | $as_echo "no" >&6; } |
|---|
| 4096 | fi |
|---|
| 4097 | |
|---|
| 4098 | |
|---|
| 4099 | test -n "$CC" && break |
|---|
| 4100 | done |
|---|
| 4101 | fi |
|---|
| 4102 | if test -z "$CC"; then |
|---|
| 4103 | ac_ct_CC=$CC |
|---|
| 4104 | for ac_prog in cl.exe |
|---|
| 4105 | do |
|---|
| 4106 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
|---|
| 4107 | set dummy $ac_prog; ac_word=$2 |
|---|
| 4108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|---|
| 4109 | $as_echo_n "checking for $ac_word... " >&6; } |
|---|
| 4110 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
|---|
| 4111 | $as_echo_n "(cached) " >&6 |
|---|
| 4112 | else |
|---|
| 4113 | if test -n "$ac_ct_CC"; then |
|---|
| 4114 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
|---|
| 4115 | else |
|---|
| 4116 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|---|
| 4117 | for as_dir in $PATH |
|---|
| 4118 | do |
|---|
| 4119 | IFS=$as_save_IFS |
|---|
| 4120 | test -z "$as_dir" && as_dir=. |
|---|
| 4121 | for ac_exec_ext in '' $ac_executable_extensions; do |
|---|
| 4122 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|---|
| 4123 | ac_cv_prog_ac_ct_CC="$ac_prog" |
|---|
| 4124 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|---|
| 4125 | break 2 |
|---|
| 4126 | fi |
|---|
| 4127 | done |
|---|
| 4128 | done |
|---|
| 4129 | IFS=$as_save_IFS |
|---|
| 4130 | |
|---|
| 4131 | fi |
|---|
| 4132 | fi |
|---|
| 4133 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|---|
| 4134 | if test -n "$ac_ct_CC"; then |
|---|
| 4135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
|---|
| 4136 | $as_echo "$ac_ct_CC" >&6; } |
|---|
| 4137 | else |
|---|
| 4138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|---|
| 4139 | $as_echo "no" >&6; } |
|---|
| 4140 | fi |
|---|
| 4141 | |
|---|
| 4142 | |
|---|
| 4143 | test -n "$ac_ct_CC" && break |
|---|
| 4144 | done |
|---|
| 4145 | |
|---|
| 4146 | if test "x$ac_ct_CC" = x; then |
|---|
| 4147 | CC="" |
|---|
| 4148 | else |
|---|
| 4149 | case $cross_compiling:$ac_tool_warned in |
|---|
| 4150 | yes:) |
|---|
| 4151 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|---|
| 4152 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|---|
| 4153 | ac_tool_warned=yes ;; |
|---|
| 4154 | esac |
|---|
| 4155 | CC=$ac_ct_CC |
|---|
| 4156 | fi |
|---|
| 4157 | fi |
|---|
| 4158 | |
|---|
| 4159 | fi |
|---|
| 4160 | |
|---|
| 4161 | |
|---|
| 4162 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|---|
| 4163 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|---|
| 4164 | as_fn_error $? "no acceptable C compiler found in \$PATH |
|---|
| 4165 | See \`config.log' for more details" "$LINENO" 5; } |
|---|
| 4166 | |
|---|
| 4167 | # Provide some information about the compiler. |
|---|
| 4168 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
|---|
| 4169 | set X $ac_compile |
|---|
| 4170 | ac_compiler=$2 |
|---|
| 4171 | for ac_option in --version -v -V -qversion; do |
|---|
| 4172 | { { ac_try="$ac_compiler $ac_option >&5" |
|---|
| 4173 | case "(($ac_try" in |
|---|
| 4174 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|---|
| 4175 | *) ac_try_echo=$ac_try;; |
|---|
| 4176 | esac |
|---|
| 4177 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|---|
| 4178 | $as_echo "$ac_try_echo"; } >&5 |
|---|
| 4179 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
|---|
| 4180 | ac_status=$? |
|---|
| 4181 | if test -s conftest.err; then |
|---|
| 4182 | sed '10a\ |
|---|
| 4183 | ... rest of stderr output deleted ... |
|---|
| 4184 | 10q' conftest.err >conftest.er1 |
|---|
| 4185 | cat conftest.er1 >&5 |
|---|
| 4186 | fi |
|---|
| 4187 | rm -f conftest.er1 conftest.err |
|---|
| 4188 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|---|
| 4189 | test $ac_status = 0; } |
|---|
| 4190 | done |
|---|
| 4191 | |
|---|
| 4192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
|---|
| 4193 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
|---|
| 4194 | if ${ac_cv_c_compiler_gnu+:} false; then : |
|---|
| 4195 | $as_echo_n "(cached) " >&6 |
|---|
| 4196 | else |
|---|
| 4197 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 4198 | /* end confdefs.h. */ |
|---|
| 4199 | |
|---|
| 4200 | int |
|---|
| 4201 | main () |
|---|
| 4202 | { |
|---|
| 4203 | #ifndef __GNUC__ |
|---|
| 4204 | choke me |
|---|
| 4205 | #endif |
|---|
| 4206 | |
|---|
| 4207 | ; |
|---|
| 4208 | return 0; |
|---|
| 4209 | } |
|---|
| 4210 | _ACEOF |
|---|
| 4211 | if ac_fn_c_try_compile "$LINENO"; then : |
|---|
| 4212 | ac_compiler_gnu=yes |
|---|
| 4213 | else |
|---|
| 4214 | ac_compiler_gnu=no |
|---|
| 4215 | fi |
|---|
| 4216 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|---|
| 4217 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
|---|
| 4218 | |
|---|
| 4219 | fi |
|---|
| 4220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
|---|
| 4221 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
|---|
| 4222 | if test $ac_compiler_gnu = yes; then |
|---|
| 4223 | GCC=yes |
|---|
| 4224 | else |
|---|
| 4225 | GCC= |
|---|
| 4226 | fi |
|---|
| 4227 | ac_test_CFLAGS=${CFLAGS+set} |
|---|
| 4228 | ac_save_CFLAGS=$CFLAGS |
|---|
| 4229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
|---|
| 4230 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
|---|
| 4231 | if ${ac_cv_prog_cc_g+:} false; then : |
|---|
| 4232 | $as_echo_n "(cached) " >&6 |
|---|
| 4233 | else |
|---|
| 4234 | ac_save_c_werror_flag=$ac_c_werror_flag |
|---|
| 4235 | ac_c_werror_flag=yes |
|---|
| 4236 | ac_cv_prog_cc_g=no |
|---|
| 4237 | CFLAGS="-g" |
|---|
| 4238 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 4239 | /* end confdefs.h. */ |
|---|
| 4240 | |
|---|
| 4241 | int |
|---|
| 4242 | main () |
|---|
| 4243 | { |
|---|
| 4244 | |
|---|
| 4245 | ; |
|---|
| 4246 | return 0; |
|---|
| 4247 | } |
|---|
| 4248 | _ACEOF |
|---|
| 4249 | if ac_fn_c_try_compile "$LINENO"; then : |
|---|
| 4250 | ac_cv_prog_cc_g=yes |
|---|
| 4251 | else |
|---|
| 4252 | CFLAGS="" |
|---|
| 4253 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 4254 | /* end confdefs.h. */ |
|---|
| 4255 | |
|---|
| 4256 | int |
|---|
| 4257 | main () |
|---|
| 4258 | { |
|---|
| 4259 | |
|---|
| 4260 | ; |
|---|
| 4261 | return 0; |
|---|
| 4262 | } |
|---|
| 4263 | _ACEOF |
|---|
| 4264 | if ac_fn_c_try_compile "$LINENO"; then : |
|---|
| 4265 | |
|---|
| 4266 | else |
|---|
| 4267 | ac_c_werror_flag=$ac_save_c_werror_flag |
|---|
| 4268 | CFLAGS="-g" |
|---|
| 4269 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 4270 | /* end confdefs.h. */ |
|---|
| 4271 | |
|---|
| 4272 | int |
|---|
| 4273 | main () |
|---|
| 4274 | { |
|---|
| 4275 | |
|---|
| 4276 | ; |
|---|
| 4277 | return 0; |
|---|
| 4278 | } |
|---|
| 4279 | _ACEOF |
|---|
| 4280 | if ac_fn_c_try_compile "$LINENO"; then : |
|---|
| 4281 | ac_cv_prog_cc_g=yes |
|---|
| 4282 | fi |
|---|
| 4283 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|---|
| 4284 | fi |
|---|
| 4285 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|---|
| 4286 | fi |
|---|
| 4287 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|---|
| 4288 | ac_c_werror_flag=$ac_save_c_werror_flag |
|---|
| 4289 | fi |
|---|
| 4290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
|---|
| 4291 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
|---|
| 4292 | if test "$ac_test_CFLAGS" = set; then |
|---|
| 4293 | CFLAGS=$ac_save_CFLAGS |
|---|
| 4294 | elif test $ac_cv_prog_cc_g = yes; then |
|---|
| 4295 | if test "$GCC" = yes; then |
|---|
| 4296 | CFLAGS="-g -O2" |
|---|
| 4297 | else |
|---|
| 4298 | CFLAGS="-g" |
|---|
| 4299 | fi |
|---|
| 4300 | else |
|---|
| 4301 | if test "$GCC" = yes; then |
|---|
| 4302 | CFLAGS="-O2" |
|---|
| 4303 | else |
|---|
| 4304 | CFLAGS= |
|---|
| 4305 | fi |
|---|
| 4306 | fi |
|---|
| 4307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
|---|
| 4308 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
|---|
| 4309 | if ${ac_cv_prog_cc_c89+:} false; then : |
|---|
| 4310 | $as_echo_n "(cached) " >&6 |
|---|
| 4311 | else |
|---|
| 4312 | ac_cv_prog_cc_c89=no |
|---|
| 4313 | ac_save_CC=$CC |
|---|
| 4314 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 4315 | /* end confdefs.h. */ |
|---|
| 4316 | #include <stdarg.h> |
|---|
| 4317 | #include <stdio.h> |
|---|
| 4318 | #include <sys/types.h> |
|---|
| 4319 | #include <sys/stat.h> |
|---|
| 4320 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
|---|
| 4321 | struct buf { int x; }; |
|---|
| 4322 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
|---|
| 4323 | static char *e (p, i) |
|---|
| 4324 | char **p; |
|---|
| 4325 | int i; |
|---|
| 4326 | { |
|---|
| 4327 | return p[i]; |
|---|
| 4328 | } |
|---|
| 4329 | static char *f (char * (*g) (char **, int), char **p, ...) |
|---|
| 4330 | { |
|---|
| 4331 | char *s; |
|---|
| 4332 | va_list v; |
|---|
| 4333 | va_start (v,p); |
|---|
| 4334 | s = g (p, va_arg (v,int)); |
|---|
| 4335 | va_end (v); |
|---|
| 4336 | return s; |
|---|
| 4337 | } |
|---|
| 4338 | |
|---|
| 4339 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
|---|
| 4340 | function prototypes and stuff, but not '\xHH' hex character constants. |
|---|
| 4341 | These don't provoke an error unfortunately, instead are silently treated |
|---|
| 4342 | as 'x'. The following induces an error, until -std is added to get |
|---|
| 4343 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
|---|
| 4344 | array size at least. It's necessary to write '\x00'==0 to get something |
|---|
| 4345 | that's true only with -std. */ |
|---|
| 4346 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
|---|
| 4347 | |
|---|
| 4348 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
|---|
| 4349 | inside strings and character constants. */ |
|---|
| 4350 | #define FOO(x) 'x' |
|---|
| 4351 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
|---|
| 4352 | |
|---|
| 4353 | int test (int i, double x); |
|---|
| 4354 | struct s1 {int (*f) (int a);}; |
|---|
| 4355 | struct s2 {int (*f) (double a);}; |
|---|
| 4356 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
|---|
| 4357 | int argc; |
|---|
| 4358 | char **argv; |
|---|
| 4359 | int |
|---|
| 4360 | main () |
|---|
| 4361 | { |
|---|
| 4362 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
|---|
| 4363 | ; |
|---|
| 4364 | return 0; |
|---|
| 4365 | } |
|---|
| 4366 | _ACEOF |
|---|
| 4367 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
|---|
| 4368 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
|---|
| 4369 | do |
|---|
| 4370 | CC="$ac_save_CC $ac_arg" |
|---|
| 4371 | if ac_fn_c_try_compile "$LINENO"; then : |
|---|
| 4372 | ac_cv_prog_cc_c89=$ac_arg |
|---|
| 4373 | fi |
|---|
| 4374 | rm -f core conftest.err conftest.$ac_objext |
|---|
| 4375 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
|---|
| 4376 | done |
|---|
| 4377 | rm -f conftest.$ac_ext |
|---|
| 4378 | CC=$ac_save_CC |
|---|
| 4379 | |
|---|
| 4380 | fi |
|---|
| 4381 | # AC_CACHE_VAL |
|---|
| 4382 | case "x$ac_cv_prog_cc_c89" in |
|---|
| 4383 | x) |
|---|
| 4384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
|---|
| 4385 | $as_echo "none needed" >&6; } ;; |
|---|
| 4386 | xno) |
|---|
| 4387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
|---|
| 4388 | $as_echo "unsupported" >&6; } ;; |
|---|
| 4389 | *) |
|---|
| 4390 | CC="$CC $ac_cv_prog_cc_c89" |
|---|
| 4391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
|---|
| 4392 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
|---|
| 4393 | esac |
|---|
| 4394 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
|---|
| 4395 | |
|---|
| 4396 | fi |
|---|
| 4397 | |
|---|
| 4398 | ac_ext=c |
|---|
| 4399 | ac_cpp='$CPP $CPPFLAGS' |
|---|
| 4400 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|---|
| 4401 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|---|
| 4402 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|---|
| 4403 | |
|---|
| 4404 | ac_ext=c |
|---|
| 4405 | ac_cpp='$CPP $CPPFLAGS' |
|---|
| 4406 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|---|
| 4407 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|---|
| 4408 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|---|
| 4409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
|---|
| 4410 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
|---|
| 4411 | # On Suns, sometimes $CPP names a directory. |
|---|
| 4412 | if test -n "$CPP" && test -d "$CPP"; then |
|---|
| 4413 | CPP= |
|---|
| 4414 | fi |
|---|
| 4415 | if test -z "$CPP"; then |
|---|
| 4416 | if ${ac_cv_prog_CPP+:} false; then : |
|---|
| 4417 | $as_echo_n "(cached) " >&6 |
|---|
| 4418 | else |
|---|
| 4419 | # Double quotes because CPP needs to be expanded |
|---|
| 4420 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
|---|
| 4421 | do |
|---|
| 4422 | ac_preproc_ok=false |
|---|
| 4423 | for ac_c_preproc_warn_flag in '' yes |
|---|
| 4424 | do |
|---|
| 4425 | # Use a header file that comes with gcc, so configuring glibc |
|---|
| 4426 | # with a fresh cross-compiler works. |
|---|
| 4427 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|---|
| 4428 | # <limits.h> exists even on freestanding compilers. |
|---|
| 4429 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|---|
| 4430 | # not just through cpp. "Syntax error" is here to catch this case. |
|---|
| 4431 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 4432 | /* end confdefs.h. */ |
|---|
| 4433 | #ifdef __STDC__ |
|---|
| 4434 | # include <limits.h> |
|---|
| 4435 | #else |
|---|
| 4436 | # include <assert.h> |
|---|
| 4437 | #endif |
|---|
| 4438 | Syntax error |
|---|
| 4439 | _ACEOF |
|---|
| 4440 | if ac_fn_c_try_cpp "$LINENO"; then : |
|---|
| 4441 | |
|---|
| 4442 | else |
|---|
| 4443 | # Broken: fails on valid input. |
|---|
| 4444 | continue |
|---|
| 4445 | fi |
|---|
| 4446 | rm -f conftest.err conftest.i conftest.$ac_ext |
|---|
| 4447 | |
|---|
| 4448 | # OK, works on sane cases. Now check whether nonexistent headers |
|---|
| 4449 | # can be detected and how. |
|---|
| 4450 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 4451 | /* end confdefs.h. */ |
|---|
| 4452 | #include <ac_nonexistent.h> |
|---|
| 4453 | _ACEOF |
|---|
| 4454 | if ac_fn_c_try_cpp "$LINENO"; then : |
|---|
| 4455 | # Broken: success on invalid input. |
|---|
| 4456 | continue |
|---|
| 4457 | else |
|---|
| 4458 | # Passes both tests. |
|---|
| 4459 | ac_preproc_ok=: |
|---|
| 4460 | break |
|---|
| 4461 | fi |
|---|
| 4462 | rm -f conftest.err conftest.i conftest.$ac_ext |
|---|
| 4463 | |
|---|
| 4464 | done |
|---|
| 4465 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|---|
| 4466 | rm -f conftest.i conftest.err conftest.$ac_ext |
|---|
| 4467 | if $ac_preproc_ok; then : |
|---|
| 4468 | break |
|---|
| 4469 | fi |
|---|
| 4470 | |
|---|
| 4471 | done |
|---|
| 4472 | ac_cv_prog_CPP=$CPP |
|---|
| 4473 | |
|---|
| 4474 | fi |
|---|
| 4475 | CPP=$ac_cv_prog_CPP |
|---|
| 4476 | else |
|---|
| 4477 | ac_cv_prog_CPP=$CPP |
|---|
| 4478 | fi |
|---|
| 4479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
|---|
| 4480 | $as_echo "$CPP" >&6; } |
|---|
| 4481 | ac_preproc_ok=false |
|---|
| 4482 | for ac_c_preproc_warn_flag in '' yes |
|---|
| 4483 | do |
|---|
| 4484 | # Use a header file that comes with gcc, so configuring glibc |
|---|
| 4485 | # with a fresh cross-compiler works. |
|---|
| 4486 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|---|
| 4487 | # <limits.h> exists even on freestanding compilers. |
|---|
| 4488 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|---|
| 4489 | # not just through cpp. "Syntax error" is here to catch this case. |
|---|
| 4490 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 4491 | /* end confdefs.h. */ |
|---|
| 4492 | #ifdef __STDC__ |
|---|
| 4493 | # include <limits.h> |
|---|
| 4494 | #else |
|---|
| 4495 | # include <assert.h> |
|---|
| 4496 | #endif |
|---|
| 4497 | Syntax error |
|---|
| 4498 | _ACEOF |
|---|
| 4499 | if ac_fn_c_try_cpp "$LINENO"; then : |
|---|
| 4500 | |
|---|
| 4501 | else |
|---|
| 4502 | # Broken: fails on valid input. |
|---|
| 4503 | continue |
|---|
| 4504 | fi |
|---|
| 4505 | rm -f conftest.err conftest.i conftest.$ac_ext |
|---|
| 4506 | |
|---|
| 4507 | # OK, works on sane cases. Now check whether nonexistent headers |
|---|
| 4508 | # can be detected and how. |
|---|
| 4509 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 4510 | /* end confdefs.h. */ |
|---|
| 4511 | #include <ac_nonexistent.h> |
|---|
| 4512 | _ACEOF |
|---|
| 4513 | if ac_fn_c_try_cpp "$LINENO"; then : |
|---|
| 4514 | # Broken: success on invalid input. |
|---|
| 4515 | continue |
|---|
| 4516 | else |
|---|
| 4517 | # Passes both tests. |
|---|
| 4518 | ac_preproc_ok=: |
|---|
| 4519 | break |
|---|
| 4520 | fi |
|---|
| 4521 | rm -f conftest.err conftest.i conftest.$ac_ext |
|---|
| 4522 | |
|---|
| 4523 | done |
|---|
| 4524 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|---|
| 4525 | rm -f conftest.i conftest.err conftest.$ac_ext |
|---|
| 4526 | if $ac_preproc_ok; then : |
|---|
| 4527 | |
|---|
| 4528 | else |
|---|
| 4529 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|---|
| 4530 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|---|
| 4531 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
|---|
| 4532 | See \`config.log' for more details" "$LINENO" 5; } |
|---|
| 4533 | fi |
|---|
| 4534 | |
|---|
| 4535 | ac_ext=c |
|---|
| 4536 | ac_cpp='$CPP $CPPFLAGS' |
|---|
| 4537 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|---|
| 4538 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|---|
| 4539 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|---|
| 4540 | |
|---|
| 4541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
|---|
| 4542 | $as_echo_n "checking whether ln -s works... " >&6; } |
|---|
| 4543 | LN_S=$as_ln_s |
|---|
| 4544 | if test "$LN_S" = "ln -s"; then |
|---|
| 4545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|---|
| 4546 | $as_echo "yes" >&6; } |
|---|
| 4547 | else |
|---|
| 4548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
|---|
| 4549 | $as_echo "no, using $LN_S" >&6; } |
|---|
| 4550 | fi |
|---|
| 4551 | |
|---|
| 4552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
|---|
| 4553 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
|---|
| 4554 | set x ${MAKE-make} |
|---|
| 4555 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
|---|
| 4556 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
|---|
| 4557 | $as_echo_n "(cached) " >&6 |
|---|
| 4558 | else |
|---|
| 4559 | cat >conftest.make <<\_ACEOF |
|---|
| 4560 | SHELL = /bin/sh |
|---|
| 4561 | all: |
|---|
| 4562 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
|---|
| 4563 | _ACEOF |
|---|
| 4564 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
|---|
| 4565 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
|---|
| 4566 | *@@@%%%=?*=@@@%%%*) |
|---|
| 4567 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
|---|
| 4568 | *) |
|---|
| 4569 | eval ac_cv_prog_make_${ac_make}_set=no;; |
|---|
| 4570 | esac |
|---|
| 4571 | rm -f conftest.make |
|---|
| 4572 | fi |
|---|
| 4573 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
|---|
| 4574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|---|
| 4575 | $as_echo "yes" >&6; } |
|---|
| 4576 | SET_MAKE= |
|---|
| 4577 | else |
|---|
| 4578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|---|
| 4579 | $as_echo "no" >&6; } |
|---|
| 4580 | SET_MAKE="MAKE=${MAKE-make}" |
|---|
| 4581 | fi |
|---|
| 4582 | |
|---|
| 4583 | ac_aux_dir= |
|---|
| 4584 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
|---|
| 4585 | if test -f "$ac_dir/install-sh"; then |
|---|
| 4586 | ac_aux_dir=$ac_dir |
|---|
| 4587 | ac_install_sh="$ac_aux_dir/install-sh -c" |
|---|
| 4588 | break |
|---|
| 4589 | elif test -f "$ac_dir/install.sh"; then |
|---|
| 4590 | ac_aux_dir=$ac_dir |
|---|
| 4591 | ac_install_sh="$ac_aux_dir/install.sh -c" |
|---|
| 4592 | break |
|---|
| 4593 | elif test -f "$ac_dir/shtool"; then |
|---|
| 4594 | ac_aux_dir=$ac_dir |
|---|
| 4595 | ac_install_sh="$ac_aux_dir/shtool install -c" |
|---|
| 4596 | break |
|---|
| 4597 | fi |
|---|
| 4598 | done |
|---|
| 4599 | if test -z "$ac_aux_dir"; then |
|---|
| 4600 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
|---|
| 4601 | fi |
|---|
| 4602 | |
|---|
| 4603 | # These three variables are undocumented and unsupported, |
|---|
| 4604 | # and are intended to be withdrawn in a future Autoconf release. |
|---|
| 4605 | # They can cause serious problems if a builder's source tree is in a directory |
|---|
| 4606 | # whose full name contains unusual characters. |
|---|
| 4607 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
|---|
| 4608 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
|---|
| 4609 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
|---|
| 4610 | |
|---|
| 4611 | |
|---|
| 4612 | # Find a good install program. We prefer a C program (faster), |
|---|
| 4613 | # so one script is as good as another. But avoid the broken or |
|---|
| 4614 | # incompatible versions: |
|---|
| 4615 | # SysV /etc/install, /usr/sbin/install |
|---|
| 4616 | # SunOS /usr/etc/install |
|---|
| 4617 | # IRIX /sbin/install |
|---|
| 4618 | # AIX /bin/install |
|---|
| 4619 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
|---|
| 4620 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
|---|
| 4621 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
|---|
| 4622 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
|---|
| 4623 | # OS/2's system install, which has a completely different semantic |
|---|
| 4624 | # ./install, which can be erroneously created by make from ./install.sh. |
|---|
| 4625 | # Reject install programs that cannot install multiple files. |
|---|
| 4626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
|---|
| 4627 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
|---|
| 4628 | if test -z "$INSTALL"; then |
|---|
| 4629 | if ${ac_cv_path_install+:} false; then : |
|---|
| 4630 | $as_echo_n "(cached) " >&6 |
|---|
| 4631 | else |
|---|
| 4632 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|---|
| 4633 | for as_dir in $PATH |
|---|
| 4634 | do |
|---|
| 4635 | IFS=$as_save_IFS |
|---|
| 4636 | test -z "$as_dir" && as_dir=. |
|---|
| 4637 | # Account for people who put trailing slashes in PATH elements. |
|---|
| 4638 | case $as_dir/ in #(( |
|---|
| 4639 | ./ | .// | /[cC]/* | \ |
|---|
| 4640 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
|---|
| 4641 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
|---|
| 4642 | /usr/ucb/* ) ;; |
|---|
| 4643 | *) |
|---|
| 4644 | # OSF1 and SCO ODT 3.0 have their own names for install. |
|---|
| 4645 | # Don't use installbsd from OSF since it installs stuff as root |
|---|
| 4646 | # by default. |
|---|
| 4647 | for ac_prog in ginstall scoinst install; do |
|---|
| 4648 | for ac_exec_ext in '' $ac_executable_extensions; do |
|---|
| 4649 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
|---|
| 4650 | if test $ac_prog = install && |
|---|
| 4651 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
|---|
| 4652 | # AIX install. It has an incompatible calling convention. |
|---|
| 4653 | : |
|---|
| 4654 | elif test $ac_prog = install && |
|---|
| 4655 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
|---|
| 4656 | # program-specific install script used by HP pwplus--don't use. |
|---|
| 4657 | : |
|---|
| 4658 | else |
|---|
| 4659 | rm -rf conftest.one conftest.two conftest.dir |
|---|
| 4660 | echo one > conftest.one |
|---|
| 4661 | echo two > conftest.two |
|---|
| 4662 | mkdir conftest.dir |
|---|
| 4663 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
|---|
| 4664 | test -s conftest.one && test -s conftest.two && |
|---|
| 4665 | test -s conftest.dir/conftest.one && |
|---|
| 4666 | test -s conftest.dir/conftest.two |
|---|
| 4667 | then |
|---|
| 4668 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
|---|
| 4669 | break 3 |
|---|
| 4670 | fi |
|---|
| 4671 | fi |
|---|
| 4672 | fi |
|---|
| 4673 | done |
|---|
| 4674 | done |
|---|
| 4675 | ;; |
|---|
| 4676 | esac |
|---|
| 4677 | |
|---|
| 4678 | done |
|---|
| 4679 | IFS=$as_save_IFS |
|---|
| 4680 | |
|---|
| 4681 | rm -rf conftest.one conftest.two conftest.dir |
|---|
| 4682 | |
|---|
| 4683 | fi |
|---|
| 4684 | if test "${ac_cv_path_install+set}" = set; then |
|---|
| 4685 | INSTALL=$ac_cv_path_install |
|---|
| 4686 | else |
|---|
| 4687 | # As a last resort, use the slow shell script. Don't cache a |
|---|
| 4688 | # value for INSTALL within a source directory, because that will |
|---|
| 4689 | # break other packages using the cache if that directory is |
|---|
| 4690 | # removed, or if the value is a relative name. |
|---|
| 4691 | INSTALL=$ac_install_sh |
|---|
| 4692 | fi |
|---|
| 4693 | fi |
|---|
| 4694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
|---|
| 4695 | $as_echo "$INSTALL" >&6; } |
|---|
| 4696 | |
|---|
| 4697 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
|---|
| 4698 | # It thinks the first close brace ends the variable substitution. |
|---|
| 4699 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
|---|
| 4700 | |
|---|
| 4701 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
|---|
| 4702 | |
|---|
| 4703 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
|---|
| 4704 | |
|---|
| 4705 | |
|---|
| 4706 | # Extract the first word of "ar", so it can be a program name with args. |
|---|
| 4707 | set dummy ar; ac_word=$2 |
|---|
| 4708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|---|
| 4709 | $as_echo_n "checking for $ac_word... " >&6; } |
|---|
| 4710 | if ${ac_cv_prog_AR+:} false; then : |
|---|
| 4711 | $as_echo_n "(cached) " >&6 |
|---|
| 4712 | else |
|---|
| 4713 | if test -n "$AR"; then |
|---|
| 4714 | ac_cv_prog_AR="$AR" # Let the user override the test. |
|---|
| 4715 | else |
|---|
| 4716 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|---|
| 4717 | for as_dir in $PATH |
|---|
| 4718 | do |
|---|
| 4719 | IFS=$as_save_IFS |
|---|
| 4720 | test -z "$as_dir" && as_dir=. |
|---|
| 4721 | for ac_exec_ext in '' $ac_executable_extensions; do |
|---|
| 4722 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|---|
| 4723 | ac_cv_prog_AR="ar" |
|---|
| 4724 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|---|
| 4725 | break 2 |
|---|
| 4726 | fi |
|---|
| 4727 | done |
|---|
| 4728 | done |
|---|
| 4729 | IFS=$as_save_IFS |
|---|
| 4730 | |
|---|
| 4731 | fi |
|---|
| 4732 | fi |
|---|
| 4733 | AR=$ac_cv_prog_AR |
|---|
| 4734 | if test -n "$AR"; then |
|---|
| 4735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
|---|
| 4736 | $as_echo "$AR" >&6; } |
|---|
| 4737 | else |
|---|
| 4738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|---|
| 4739 | $as_echo "no" >&6; } |
|---|
| 4740 | fi |
|---|
| 4741 | |
|---|
| 4742 | |
|---|
| 4743 | if test "$AR" != "ar"; then |
|---|
| 4744 | as_fn_error $? "\"ar not found\"" "$LINENO" 5 |
|---|
| 4745 | fi |
|---|
| 4746 | |
|---|
| 4747 | |
|---|
| 4748 | ## |
|---|
| 4749 | # checking dependencies/build options |
|---|
| 4750 | ## |
|---|
| 4751 | |
|---|
| 4752 | |
|---|
| 4753 | TAGS=$(which etags 2>/dev/null) |
|---|
| 4754 | if test -z "$TAGS" -o ! -x "$TAGS" |
|---|
| 4755 | then |
|---|
| 4756 | TAGS=$(which ctags 2>/dev/null) |
|---|
| 4757 | if test -z "$TAGS" -o ! -x "$TAGS" |
|---|
| 4758 | then |
|---|
| 4759 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No application was found for generating tags" >&5 |
|---|
| 4760 | $as_echo "$as_me: WARNING: No application was found for generating tags" >&2;} |
|---|
| 4761 | else |
|---|
| 4762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ctags will be used for generating tags" >&5 |
|---|
| 4763 | $as_echo "ctags will be used for generating tags" >&6; } |
|---|
| 4764 | fi |
|---|
| 4765 | else |
|---|
| 4766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: etags will be used for generating tags" >&5 |
|---|
| 4767 | $as_echo "etags will be used for generating tags" >&6; } |
|---|
| 4768 | fi |
|---|
| 4769 | |
|---|
| 4770 | |
|---|
| 4771 | OBJECTS=$(for i in src/*cc; do i=${i#src/}; echo -n "${i/%cc/o} "; done) |
|---|
| 4772 | |
|---|
| 4773 | DEPS=$(for i in src/*cc; do i=${i#src/}; echo -n "${i/%cc/d} "; done) |
|---|
| 4774 | |
|---|
| 4775 | |
|---|
| 4776 | EXAMPLES=$(for i in examples/*; do test -d $i && echo -n "${i#examples/} "; done) |
|---|
| 4777 | |
|---|
| 4778 | cat > include/libdodo/directives.runtime.h <<EOF |
|---|
| 4779 | /*************************************************************************** |
|---|
| 4780 | * directives.runtime.h |
|---|
| 4781 | ****************************************************************************/ |
|---|
| 4782 | |
|---|
| 4783 | #ifndef _DIRECTIVES_RUNTIME_H_ |
|---|
| 4784 | #define _DIRECTIVES_RUNTIME_H_ 1 |
|---|
| 4785 | |
|---|
| 4786 | EOF |
|---|
| 4787 | |
|---|
| 4788 | CPPFLAGS="-I/usr/include -I/usr/local/include" |
|---|
| 4789 | LDFLAGS="-L/usr/lib -L/usr/local/lib" |
|---|
| 4790 | CXXFLAGS="-fno-exceptions" |
|---|
| 4791 | CFLAGS="-Wall -Wextra -Woverloaded-virtual -D_REENTRANT -D_GNU_SOURCE -D__BSD_VISIBLE -D__POSIX_VISIBLE=200112 -D_POSIX_VERSION=200112 \ |
|---|
| 4792 | -D__USE_UNIX98 -D_XOPEN_SOURCE=600 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_THREAD_SAFE" |
|---|
| 4793 | |
|---|
| 4794 | RESULT="\n\n" |
|---|
| 4795 | |
|---|
| 4796 | |
|---|
| 4797 | # Check whether --enable-debug was given. |
|---|
| 4798 | if test "${enable_debug+set}" = set; then : |
|---|
| 4799 | enableval=$enable_debug; DEBUG="$enableval" |
|---|
| 4800 | else |
|---|
| 4801 | DEBUG="no" |
|---|
| 4802 | fi |
|---|
| 4803 | |
|---|
| 4804 | if test "$DEBUG" = "yes" |
|---|
| 4805 | then |
|---|
| 4806 | CFLAGS="$CFLAGS -g -DDEBUG" |
|---|
| 4807 | |
|---|
| 4808 | RESULT="$RESULT\nDebug\t\t\t\t\t\t\t\tenabled" |
|---|
| 4809 | else |
|---|
| 4810 | RESULT="$RESULT\nDebug\t\t\t\t\t\t\t\tdisabled" |
|---|
| 4811 | fi |
|---|
| 4812 | |
|---|
| 4813 | # Check whether --enable-profiling was given. |
|---|
| 4814 | if test "${enable_profiling+set}" = set; then : |
|---|
| 4815 | enableval=$enable_profiling; PROFILING="$enableval" |
|---|
| 4816 | else |
|---|
| 4817 | PROFILING="no" |
|---|
| 4818 | fi |
|---|
| 4819 | |
|---|
| 4820 | if test "$PROFILING" = "yes" |
|---|
| 4821 | then |
|---|
| 4822 | CFLAGS="$CFLAGS -pg" |
|---|
| 4823 | |
|---|
| 4824 | RESULT="$RESULT\nProfiling\t\t\t\t\t\t\tenabled" |
|---|
| 4825 | else |
|---|
| 4826 | RESULT="$RESULT\nProfiling\t\t\t\t\t\t\tdisabled" |
|---|
| 4827 | fi |
|---|
| 4828 | |
|---|
| 4829 | # Check whether --enable-libwrap was given. |
|---|
| 4830 | if test "${enable_libwrap+set}" = set; then : |
|---|
| 4831 | enableval=$enable_libwrap; LIBWRAP="$enableval" |
|---|
| 4832 | else |
|---|
| 4833 | LIBWRAP="yes" |
|---|
| 4834 | fi |
|---|
| 4835 | |
|---|
| 4836 | if test "$LIBWRAP" = "yes" |
|---|
| 4837 | then |
|---|
| 4838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hosts_access in -lwrap" >&5 |
|---|
| 4839 | $as_echo_n "checking for hosts_access in -lwrap... " >&6; } |
|---|
| 4840 | if ${ac_cv_lib_wrap_hosts_access+:} false; then : |
|---|
| 4841 | $as_echo_n "(cached) " >&6 |
|---|
| 4842 | else |
|---|
| 4843 | ac_check_lib_save_LIBS=$LIBS |
|---|
| 4844 | LIBS="-lwrap $LIBS" |
|---|
| 4845 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 4846 | /* end confdefs.h. */ |
|---|
| 4847 | |
|---|
| 4848 | /* Override any GCC internal prototype to avoid an error. |
|---|
| 4849 | Use char because int might match the return type of a GCC |
|---|
| 4850 | builtin and then its argument prototype would still apply. */ |
|---|
| 4851 | #ifdef __cplusplus |
|---|
| 4852 | extern "C" |
|---|
| 4853 | #endif |
|---|
| 4854 | char hosts_access (); |
|---|
| 4855 | int |
|---|
| 4856 | main () |
|---|
| 4857 | { |
|---|
| 4858 | return hosts_access (); |
|---|
| 4859 | ; |
|---|
| 4860 | return 0; |
|---|
| 4861 | } |
|---|
| 4862 | _ACEOF |
|---|
| 4863 | if ac_fn_c_try_link "$LINENO"; then : |
|---|
| 4864 | ac_cv_lib_wrap_hosts_access=yes |
|---|
| 4865 | else |
|---|
| 4866 | ac_cv_lib_wrap_hosts_access=no |
|---|
| 4867 | fi |
|---|
| 4868 | rm -f core conftest.err conftest.$ac_objext \ |
|---|
| 4869 | conftest$ac_exeext conftest.$ac_ext |
|---|
| 4870 | LIBS=$ac_check_lib_save_LIBS |
|---|
| 4871 | fi |
|---|
| 4872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wrap_hosts_access" >&5 |
|---|
| 4873 | $as_echo "$ac_cv_lib_wrap_hosts_access" >&6; } |
|---|
| 4874 | if test "x$ac_cv_lib_wrap_hosts_access" = xyes; then : |
|---|
| 4875 | LIBWRAP="yes" |
|---|
| 4876 | else |
|---|
| 4877 | LIBWRAP="no"; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libwrap lib was not found" >&5 |
|---|
| 4878 | $as_echo "$as_me: WARNING: libwrap lib was not found" >&2;} |
|---|
| 4879 | fi |
|---|
| 4880 | |
|---|
| 4881 | if test "$LIBWRAP" = "yes" |
|---|
| 4882 | then |
|---|
| 4883 | LDFLAGS="$LDFLAGS -lwrap" |
|---|
| 4884 | |
|---|
| 4885 | RESULT="$RESULT\nlibwrap\t\t\t\t\t\t\t\tenabled" |
|---|
| 4886 | else |
|---|
| 4887 | RESULT="$RESULT\nlibwrap\t\t\t\t\t\t\t\tdisabled" |
|---|
| 4888 | fi |
|---|
| 4889 | else |
|---|
| 4890 | RESULT="$RESULT\nlibwrap\t\t\t\t\t\t\t\tdisabled" |
|---|
| 4891 | fi |
|---|
| 4892 | |
|---|
| 4893 | # Check whether --enable-io-xexec was given. |
|---|
| 4894 | if test "${enable_io_xexec+set}" = set; then : |
|---|
| 4895 | enableval=$enable_io_xexec; IO_W_XEXEC="$enableval" |
|---|
| 4896 | else |
|---|
| 4897 | IO_W_XEXEC="yes" |
|---|
| 4898 | fi |
|---|
| 4899 | |
|---|
| 4900 | if test "$IO_W_XEXEC" = "no" |
|---|
| 4901 | then |
|---|
| 4902 | echo -n -e "#define IO_WO_XEXEC 1\n\n" >> include/libdodo/directives.runtime.h |
|---|
| 4903 | RESULT="$RESULT\nio::stdio xexec support\t\t\t\t\t\tdisabled" |
|---|
| 4904 | RESULT="$RESULT\nio::network::exchange xexec support\t\t\t\tdisabled" |
|---|
| 4905 | RESULT="$RESULT\nio::network::client xexec support\t\t\t\tdisabled" |
|---|
| 4906 | RESULT="$RESULT\nio::network::server xexec support\t\t\t\tdisabled" |
|---|
| 4907 | RESULT="$RESULT\nio::pipe xexec support\t\t\t\t\t\tdisabled" |
|---|
| 4908 | RESULT="$RESULT\nio::file::fifo xexec support\t\t\t\t\tdisabled" |
|---|
| 4909 | RESULT="$RESULT\nio::file::temp xexec support\t\t\t\t\tdisabled" |
|---|
| 4910 | RESULT="$RESULT\nio::file::regular xexec support\t\t\t\t\tdisabled" |
|---|
| 4911 | else |
|---|
| 4912 | RESULT="$RESULT\nio::stdio xexec support\t\t\t\t\t\tenabled" |
|---|
| 4913 | RESULT="$RESULT\nio::network::exchange xexec support\t\t\t\tenabled" |
|---|
| 4914 | RESULT="$RESULT\nio::network::client xexec support\t\t\t\tenabled" |
|---|
| 4915 | RESULT="$RESULT\nio::network::server xexec support\t\t\t\tenabled" |
|---|
| 4916 | RESULT="$RESULT\nio::pipe xexec support\t\t\t\t\t\tenabled" |
|---|
| 4917 | RESULT="$RESULT\nio::file::fifo xexec support\t\t\t\t\tenabled" |
|---|
| 4918 | RESULT="$RESULT\nio::file::temp xexec support\t\t\t\t\tenabled" |
|---|
| 4919 | RESULT="$RESULT\nio::file::regular xexec support\t\t\t\t\tenabled" |
|---|
| 4920 | fi |
|---|
| 4921 | |
|---|
| 4922 | # Check whether --enable-database-xexec was given. |
|---|
| 4923 | if test "${enable_database_xexec+set}" = set; then : |
|---|
| 4924 | enableval=$enable_database_xexec; DATABASE_W_XEXEC="$enableval" |
|---|
| 4925 | else |
|---|
| 4926 | DATABASE_W_XEXEC="yes" |
|---|
| 4927 | fi |
|---|
| 4928 | |
|---|
| 4929 | if test "$DATABASE_W_XEXEC" = "no" |
|---|
| 4930 | then |
|---|
| 4931 | echo -n -e "#define DATABASE_WO_XEXEC 1\n\n" >> include/libdodo/directives.runtime.h |
|---|
| 4932 | fi |
|---|
| 4933 | |
|---|
| 4934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shm_open in -lrt" >&5 |
|---|
| 4935 | $as_echo_n "checking for shm_open in -lrt... " >&6; } |
|---|
| 4936 | if ${ac_cv_lib_rt_shm_open+:} false; then : |
|---|
| 4937 | $as_echo_n "(cached) " >&6 |
|---|
| 4938 | else |
|---|
| 4939 | ac_check_lib_save_LIBS=$LIBS |
|---|
| 4940 | LIBS="-lrt $LIBS" |
|---|
| 4941 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 4942 | /* end confdefs.h. */ |
|---|
| 4943 | |
|---|
| 4944 | /* Override any GCC internal prototype to avoid an error. |
|---|
| 4945 | Use char because int might match the return type of a GCC |
|---|
| 4946 | builtin and then its argument prototype would still apply. */ |
|---|
| 4947 | #ifdef __cplusplus |
|---|
| 4948 | extern "C" |
|---|
| 4949 | #endif |
|---|
| 4950 | char shm_open (); |
|---|
| 4951 | int |
|---|
| 4952 | main () |
|---|
| 4953 | { |
|---|
| 4954 | return shm_open (); |
|---|
| 4955 | ; |
|---|
| 4956 | return 0; |
|---|
| 4957 | } |
|---|
| 4958 | _ACEOF |
|---|
| 4959 | if ac_fn_c_try_link "$LINENO"; then : |
|---|
| 4960 | ac_cv_lib_rt_shm_open=yes |
|---|
| 4961 | else |
|---|
| 4962 | ac_cv_lib_rt_shm_open=no |
|---|
| 4963 | fi |
|---|
| 4964 | rm -f core conftest.err conftest.$ac_objext \ |
|---|
| 4965 | conftest$ac_exeext conftest.$ac_ext |
|---|
| 4966 | LIBS=$ac_check_lib_save_LIBS |
|---|
| 4967 | fi |
|---|
| 4968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_shm_open" >&5 |
|---|
| 4969 | $as_echo "$ac_cv_lib_rt_shm_open" >&6; } |
|---|
| 4970 | if test "x$ac_cv_lib_rt_shm_open" = xyes; then : |
|---|
| 4971 | cat >>confdefs.h <<_ACEOF |
|---|
| 4972 | #define HAVE_LIBRT 1 |
|---|
| 4973 | _ACEOF |
|---|
| 4974 | |
|---|
| 4975 | LIBS="-lrt $LIBS" |
|---|
| 4976 | |
|---|
| 4977 | else |
|---|
| 4978 | as_fn_error $? "rt lib was not found" "$LINENO" 5 |
|---|
| 4979 | fi |
|---|
| 4980 | |
|---|
| 4981 | LDFLAGS="$LDFLAGS -lrt" |
|---|
| 4982 | |
|---|
| 4983 | case "$OS" in |
|---|
| 4984 | FreeBSD) |
|---|
| 4985 | DEFAULT_IPC=XSI |
|---|
| 4986 | ;; |
|---|
| 4987 | Linux) |
|---|
| 4988 | DEFAULT_IPC=POSIX |
|---|
| 4989 | ;; |
|---|
| 4990 | esac |
|---|
| 4991 | |
|---|
| 4992 | |
|---|
| 4993 | # Check whether --with-ipc was given. |
|---|
| 4994 | if test "${with_ipc+set}" = set; then : |
|---|
| 4995 | withval=$with_ipc; MOD_IPC_IMPL="$withval" |
|---|
| 4996 | else |
|---|
| 4997 | MOD_IPC_IMPL=$DEFAULT_IPC |
|---|
| 4998 | fi |
|---|
| 4999 | |
|---|
| 5000 | case "$MOD_IPC_IMPL" in |
|---|
| 5001 | POSIX) |
|---|
| 5002 | echo -n -e "#define POSIX_SEMAPHORES 1\n\n" >> include/libdodo/directives.runtime.h |
|---|
| 5003 | ;; |
|---|
| 5004 | XSI) |
|---|
| 5005 | echo -n -e "#define XSI_IPC 1\n\n" >> include/libdodo/directives.runtime.h |
|---|
| 5006 | ;; |
|---|
| 5007 | *) |
|---|
| 5008 | as_fn_error $? "Unsuported IPC implementation specified" "$LINENO" 5 |
|---|
| 5009 | ;; |
|---|
| 5010 | esac |
|---|
| 5011 | RESULT="$RESULT\nIPC implementation\t\t\t\t\t\t$MOD_IPC_IMPL" |
|---|
| 5012 | |
|---|
| 5013 | |
|---|
| 5014 | # Check whether --with-sqlite3 was given. |
|---|
| 5015 | if test "${with_sqlite3+set}" = set; then : |
|---|
| 5016 | withval=$with_sqlite3; MOD_SQLITE3_DIR="$withval" |
|---|
| 5017 | else |
|---|
| 5018 | MOD_SQLITE3="no" |
|---|
| 5019 | fi |
|---|
| 5020 | |
|---|
| 5021 | if test "$MOD_SQLITE3" != "no" -a "$MOD_SQLITE3_DIR" != "no" |
|---|
| 5022 | then |
|---|
| 5023 | if test "$MOD_SQLITE3_DIR" = "yes" |
|---|
| 5024 | then |
|---|
| 5025 | MOD_SQLITE3_DIR=/usr |
|---|
| 5026 | fi |
|---|
| 5027 | CPPFLAGS="$CPPFLAGS -I$MOD_SQLITE3_DIR/include" |
|---|
| 5028 | LDFLAGS="$LDFLAGS -L$MOD_SQLITE3_DIR/lib -lsqlite3" |
|---|
| 5029 | |
|---|
| 5030 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_exec in -lsqlite3" >&5 |
|---|
| 5031 | $as_echo_n "checking for sqlite3_exec in -lsqlite3... " >&6; } |
|---|
| 5032 | if ${ac_cv_lib_sqlite3_sqlite3_exec+:} false; then : |
|---|
| 5033 | $as_echo_n "(cached) " >&6 |
|---|
| 5034 | else |
|---|
| 5035 | ac_check_lib_save_LIBS=$LIBS |
|---|
| 5036 | LIBS="-lsqlite3 $LIBS" |
|---|
| 5037 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 5038 | /* end confdefs.h. */ |
|---|
| 5039 | |
|---|
| 5040 | /* Override any GCC internal prototype to avoid an error. |
|---|
| 5041 | Use char because int might match the return type of a GCC |
|---|
| 5042 | builtin and then its argument prototype would still apply. */ |
|---|
| 5043 | #ifdef __cplusplus |
|---|
| 5044 | extern "C" |
|---|
| 5045 | #endif |
|---|
| 5046 | char sqlite3_exec (); |
|---|
| 5047 | int |
|---|
| 5048 | main () |
|---|
| 5049 | { |
|---|
| 5050 | return sqlite3_exec (); |
|---|
| 5051 | ; |
|---|
| 5052 | return 0; |
|---|
| 5053 | } |
|---|
| 5054 | _ACEOF |
|---|
| 5055 | if ac_fn_c_try_link "$LINENO"; then : |
|---|
| 5056 | ac_cv_lib_sqlite3_sqlite3_exec=yes |
|---|
| 5057 | else |
|---|
| 5058 | ac_cv_lib_sqlite3_sqlite3_exec=no |
|---|
| 5059 | fi |
|---|
| 5060 | rm -f core conftest.err conftest.$ac_objext \ |
|---|
| 5061 | conftest$ac_exeext conftest.$ac_ext |
|---|
| 5062 | LIBS=$ac_check_lib_save_LIBS |
|---|
| 5063 | fi |
|---|
| 5064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_exec" >&5 |
|---|
| 5065 | $as_echo "$ac_cv_lib_sqlite3_sqlite3_exec" >&6; } |
|---|
| 5066 | if test "x$ac_cv_lib_sqlite3_sqlite3_exec" = xyes; then : |
|---|
| 5067 | cat >>confdefs.h <<_ACEOF |
|---|
| 5068 | #define HAVE_LIBSQLITE3 1 |
|---|
| 5069 | _ACEOF |
|---|
| 5070 | |
|---|
| 5071 | LIBS="-lsqlite3 $LIBS" |
|---|
| 5072 | |
|---|
| 5073 | else |
|---|
| 5074 | as_fn_error $? "sqlite3 lib was not found" "$LINENO" 5 |
|---|
| 5075 | fi |
|---|
| 5076 | |
|---|
| 5077 | ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default" |
|---|
| 5078 | if test "x$ac_cv_header_sqlite3_h" = xyes; then : |
|---|
| 5079 | |
|---|
| 5080 | else |
|---|
| 5081 | as_fn_error $? "sqlite3 header was not found" "$LINENO" 5 |
|---|
| 5082 | fi |
|---|
| 5083 | |
|---|
| 5084 | |
|---|
| 5085 | echo -n -e "#define SQLITE3_EXT 1\n\n" >> include/libdodo/directives.runtime.h |
|---|
| 5086 | |
|---|
| 5087 | RESULT="$RESULT\nSQLite\t\t\t\t\t\t\t\tenabled" |
|---|
| 5088 | |
|---|
| 5089 | if test "$DATABASE_W_XEXEC" = "no" |
|---|
| 5090 | then |
|---|
| 5091 | RESULT="$RESULT\ndata::base::sqlite xexec support\t\t\t\tdisabled" |
|---|
| 5092 | else |
|---|
| 5093 | RESULT="$RESULT\ndata::base::sqlite xexec support\t\t\t\tenabled" |
|---|
| 5094 | fi |
|---|
| 5095 | else |
|---|
| 5096 | RESULT="$RESULT\nSQLite\t\t\t\t\t\t\t\tdisabled" |
|---|
| 5097 | fi |
|---|
| 5098 | |
|---|
| 5099 | |
|---|
| 5100 | # Check whether --with-openssl was given. |
|---|
| 5101 | if test "${with_openssl+set}" = set; then : |
|---|
| 5102 | withval=$with_openssl; MOD_OPENSSL_DIR="$withval" |
|---|
| 5103 | else |
|---|
| 5104 | MOD_OPENSSL="no" |
|---|
| 5105 | fi |
|---|
| 5106 | |
|---|
| 5107 | if test "$MOD_OPENSSL" != "no" -a "$MOD_OPENSSL_DIR" != "no" |
|---|
| 5108 | then |
|---|
| 5109 | if test "$MOD_OPENSSL_DIR" = "yes" |
|---|
| 5110 | then |
|---|
| 5111 | MOD_OPENSSL_DIR=/usr |
|---|
| 5112 | fi |
|---|
| 5113 | CPPFLAGS="$CPPFLAGS -I$MOD_OPENSSL_DIR/include" |
|---|
| 5114 | LDFLAGS="$LDFLAGS -L$MOD_OPENSSL_DIR/lib -lssl -lcrypto" |
|---|
| 5115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5 |
|---|
| 5116 | $as_echo_n "checking for SSL_library_init in -lssl... " >&6; } |
|---|
| 5117 | if ${ac_cv_lib_ssl_SSL_library_init+:} false; then : |
|---|
| 5118 | $as_echo_n "(cached) " >&6 |
|---|
| 5119 | else |
|---|
| 5120 | ac_check_lib_save_LIBS=$LIBS |
|---|
| 5121 | LIBS="-lssl $LIBS" |
|---|
| 5122 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 5123 | /* end confdefs.h. */ |
|---|
| 5124 | |
|---|
| 5125 | /* Override any GCC internal prototype to avoid an error. |
|---|
| 5126 | Use char because int might match the return type of a GCC |
|---|
| 5127 | builtin and then its argument prototype would still apply. */ |
|---|
| 5128 | #ifdef __cplusplus |
|---|
| 5129 | extern "C" |
|---|
| 5130 | #endif |
|---|
| 5131 | char SSL_library_init (); |
|---|
| 5132 | int |
|---|
| 5133 | main () |
|---|
| 5134 | { |
|---|
| 5135 | return SSL_library_init (); |
|---|
| 5136 | ; |
|---|
| 5137 | return 0; |
|---|
| 5138 | } |
|---|
| 5139 | _ACEOF |
|---|
| 5140 | if ac_fn_c_try_link "$LINENO"; then : |
|---|
| 5141 | ac_cv_lib_ssl_SSL_library_init=yes |
|---|
| 5142 | else |
|---|
| 5143 | ac_cv_lib_ssl_SSL_library_init=no |
|---|
| 5144 | fi |
|---|
| 5145 | rm -f core conftest.err conftest.$ac_objext \ |
|---|
| 5146 | conftest$ac_exeext conftest.$ac_ext |
|---|
| 5147 | LIBS=$ac_check_lib_save_LIBS |
|---|
| 5148 | fi |
|---|
| 5149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5 |
|---|
| 5150 | $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; } |
|---|
| 5151 | if test "x$ac_cv_lib_ssl_SSL_library_init" = xyes; then : |
|---|
| 5152 | cat >>confdefs.h <<_ACEOF |
|---|
| 5153 | #define HAVE_LIBSSL 1 |
|---|
| 5154 | _ACEOF |
|---|
| 5155 | |
|---|
| 5156 | LIBS="-lssl $LIBS" |
|---|
| 5157 | |
|---|
| 5158 | else |
|---|
| 5159 | as_fn_error $? "openssl lib was not found" "$LINENO" 5 |
|---|
| 5160 | fi |
|---|
| 5161 | |
|---|
| 5162 | ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default" |
|---|
| 5163 | if test "x$ac_cv_header_openssl_ssl_h" = xyes; then : |
|---|
| 5164 | |
|---|
| 5165 | else |
|---|
| 5166 | as_fn_error $? "openssl header was not found" "$LINENO" 5 |
|---|
| 5167 | fi |
|---|
| 5168 | |
|---|
| 5169 | |
|---|
| 5170 | echo -n -e "#define OPENSSL_EXT 1\n\n" >> include/libdodo/directives.runtime.h |
|---|
| 5171 | |
|---|
| 5172 | if test "$IO_W_XEXEC" = "no" |
|---|
| 5173 | then |
|---|
| 5174 | RESULT="$RESULT\nio::network::ssl::exchange xexec support\t\t\tdisabled" |
|---|
| 5175 | else |
|---|
| 5176 | RESULT="$RESULT\nio::network::ssl::exchange xexec support\t\t\tenabled" |
|---|
| 5177 | fi |
|---|
| 5178 | |
|---|
| 5179 | if test "$IO_W_XEXEC" = "no" |
|---|
| 5180 | then |
|---|
| 5181 | RESULT="$RESULT\nio::network::ssl::client xexec support\t\t\t\tdisabled" |
|---|
| 5182 | else |
|---|
| 5183 | RESULT="$RESULT\nio::network::ssl::client xexec support\t\t\t\tenabled" |
|---|
| 5184 | fi |
|---|
| 5185 | |
|---|
| 5186 | if test "$IO_W_XEXEC" = "no" |
|---|
| 5187 | then |
|---|
| 5188 | RESULT="$RESULT\nio::network::ssl::server xexec support\t\t\t\tdisabled" |
|---|
| 5189 | else |
|---|
| 5190 | RESULT="$RESULT\nio::network::ssl::server xexec support\t\t\t\tenabled" |
|---|
| 5191 | fi |
|---|
| 5192 | |
|---|
| 5193 | RESULT="$RESULT\nOpenSSL\t\t\t\t\t\t\t\tenabled" |
|---|
| 5194 | else |
|---|
| 5195 | RESULT="$RESULT\nOpenSSL\t\t\t\t\t\t\t\tdisabled" |
|---|
| 5196 | fi |
|---|
| 5197 | |
|---|
| 5198 | |
|---|
| 5199 | # Check whether --with-postgresql was given. |
|---|
| 5200 | if test "${with_postgresql+set}" = set; then : |
|---|
| 5201 | withval=$with_postgresql; MOD_POSTGRESQL_DIR="$withval" |
|---|
| 5202 | else |
|---|
| 5203 | MOD_POSTGRESQL="no" |
|---|
| 5204 | fi |
|---|
| 5205 | |
|---|
| 5206 | if test "$MOD_POSTGRESQL" != "no" -a "$MOD_POSTGRESQL_DIR" != "no" |
|---|
| 5207 | then |
|---|
| 5208 | if test "$MOD_POSTGRESQL_DIR" = "yes" |
|---|
| 5209 | then |
|---|
| 5210 | if test "$(pg_config --version 2>/dev/null)" != "" |
|---|
| 5211 | then |
|---|
| 5212 | CPPFLAGS="$CPPFLAGS -I$(pg_config --includedir)" |
|---|
| 5213 | LDFLAGS="$LDFLAGS -L$(pg_config --libdir) -lpq" |
|---|
| 5214 | else |
|---|
| 5215 | MOD_POSTGRESQL_DIR=/usr |
|---|
| 5216 | CPPFLAGS="$CPPFLAGS -I$MOD_POSTGRESQL_DIR/include -I$MOD_POSTGRESQL_DIR/include/postgresql" |
|---|
| 5217 | LDFLAGS="$LDFLAGS -L$MOD_POSTGRESQL_DIR/lib -lpq" |
|---|
| 5218 | fi |
|---|
| 5219 | else |
|---|
| 5220 | CPPFLAGS="$CPPFLAGS -I$MOD_POSTGRESQL_DIR/include -I$MOD_POSTGRESQL_DIR/include/postgresql" |
|---|
| 5221 | LDFLAGS="$LDFLAGS -L$MOD_POSTGRESQL_DIR/lib -lpq" |
|---|
| 5222 | fi |
|---|
| 5223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQexecParams in -lpq" >&5 |
|---|
| 5224 | $as_echo_n "checking for PQexecParams in -lpq... " >&6; } |
|---|
| 5225 | if ${ac_cv_lib_pq_PQexecParams+:} false; then : |
|---|
| 5226 | $as_echo_n "(cached) " >&6 |
|---|
| 5227 | else |
|---|
| 5228 | ac_check_lib_save_LIBS=$LIBS |
|---|
| 5229 | LIBS="-lpq $LIBS" |
|---|
| 5230 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 5231 | /* end confdefs.h. */ |
|---|
| 5232 | |
|---|
| 5233 | /* Override any GCC internal prototype to avoid an error. |
|---|
| 5234 | Use char because int might match the return type of a GCC |
|---|
| 5235 | builtin and then its argument prototype would still apply. */ |
|---|
| 5236 | #ifdef __cplusplus |
|---|
| 5237 | extern "C" |
|---|
| 5238 | #endif |
|---|
| 5239 | char PQexecParams (); |
|---|
| 5240 | int |
|---|
| 5241 | main () |
|---|
| 5242 | { |
|---|
| 5243 | return PQexecParams (); |
|---|
| 5244 | ; |
|---|
| 5245 | return 0; |
|---|
| 5246 | } |
|---|
| 5247 | _ACEOF |
|---|
| 5248 | if ac_fn_c_try_link "$LINENO"; then : |
|---|
| 5249 | ac_cv_lib_pq_PQexecParams=yes |
|---|
| 5250 | else |
|---|
| 5251 | ac_cv_lib_pq_PQexecParams=no |
|---|
| 5252 | fi |
|---|
| 5253 | rm -f core conftest.err conftest.$ac_objext \ |
|---|
| 5254 | conftest$ac_exeext conftest.$ac_ext |
|---|
| 5255 | LIBS=$ac_check_lib_save_LIBS |
|---|
| 5256 | fi |
|---|
| 5257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQexecParams" >&5 |
|---|
| 5258 | $as_echo "$ac_cv_lib_pq_PQexecParams" >&6; } |
|---|
| 5259 | if test "x$ac_cv_lib_pq_PQexecParams" = xyes; then : |
|---|
| 5260 | cat >>confdefs.h <<_ACEOF |
|---|
| 5261 | #define HAVE_LIBPQ 1 |
|---|
| 5262 | _ACEOF |
|---|
| 5263 | |
|---|
| 5264 | LIBS="-lpq $LIBS" |
|---|
| 5265 | |
|---|
| 5266 | else |
|---|
| 5267 | as_fn_error $? "postgresql lib was not found" "$LINENO" 5 |
|---|
| 5268 | fi |
|---|
| 5269 | |
|---|
| 5270 | ac_fn_c_check_header_mongrel "$LINENO" "libpq-fe.h" "ac_cv_header_libpq_fe_h" "$ac_includes_default" |
|---|
| 5271 | if test "x$ac_cv_header_libpq_fe_h" = xyes; then : |
|---|
| 5272 | |
|---|
| 5273 | else |
|---|
| 5274 | as_fn_error $? "postgresql header was not found" "$LINENO" 5 |
|---|
| 5275 | fi |
|---|
| 5276 | |
|---|
| 5277 | |
|---|
| 5278 | |
|---|
| 5279 | ac_ext=cpp |
|---|
| 5280 | ac_cpp='$CXXCPP $CPPFLAGS' |
|---|
| 5281 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|---|
| 5282 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|---|
| 5283 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|---|
| 5284 | |
|---|
| 5285 | |
|---|
| 5286 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 5287 | /* end confdefs.h. */ |
|---|
| 5288 | #include <libpq-fe.h> |
|---|
| 5289 | int |
|---|
| 5290 | main () |
|---|
| 5291 | { |
|---|
| 5292 | pg_encoding_to_char(0); |
|---|
| 5293 | ; |
|---|
| 5294 | return 0; |
|---|
| 5295 | } |
|---|
| 5296 | _ACEOF |
|---|
| 5297 | if ac_fn_cxx_try_compile "$LINENO"; then : |
|---|
| 5298 | |
|---|
| 5299 | else |
|---|
| 5300 | echo -n -e "#define POSTGRESQL_NO_ENCODINGTOCHAR 1\n\n" >> include/libdodo/directives.runtime.h |
|---|
| 5301 | fi |
|---|
| 5302 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|---|
| 5303 | ac_ext=c |
|---|
| 5304 | ac_cpp='$CPP $CPPFLAGS' |
|---|
| 5305 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|---|
| 5306 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|---|
| 5307 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|---|
| 5308 | |
|---|
| 5309 | |
|---|
| 5310 | echo -n -e "#define POSTGRESQL_EXT 1\n\n" >> include/libdodo/directives.runtime.h |
|---|
| 5311 | |
|---|
| 5312 | if test "$DATABASE_W_XEXEC" = "no" |
|---|
| 5313 | then |
|---|
| 5314 | RESULT="$RESULT\ndata::base::postgresql xexec support\t\t\t\tdisabled" |
|---|
| 5315 | else |
|---|
| 5316 | RESULT="$RESULT\ndata::base::postgresql xexec support\t\t\t\tenabled" |
|---|
| 5317 | fi |
|---|
| 5318 | |
|---|
| 5319 | RESULT="$RESULT\nPostgresql\t\t\t\t\t\t\tenabled" |
|---|
| 5320 | else |
|---|
| 5321 | RESULT="$RESULT\nPostgresql\t\t\t\t\t\t\tdisabled" |
|---|
| 5322 | fi |
|---|
| 5323 | |
|---|
| 5324 | |
|---|
| 5325 | # Check whether --with-mysql was given. |
|---|
| 5326 | if test "${with_mysql+set}" = set; then : |
|---|
| 5327 | withval=$with_mysql; MOD_MYSQL_DIR="$withval" |
|---|
| 5328 | else |
|---|
| 5329 | MOD_MYSQL="no" |
|---|
| 5330 | fi |
|---|
| 5331 | |
|---|
| 5332 | if test "$MOD_MYSQL" != "no" -a "$MOD_MYSQL_DIR" != "no" |
|---|
| 5333 | then |
|---|
| 5334 | if test "$MOD_MYSQL_DIR" = "yes" |
|---|
| 5335 | then |
|---|
| 5336 | if test "$(mysql_config --version 2>/dev/null)" != "" |
|---|
| 5337 | then |
|---|
| 5338 | CPPFLAGS="$CPPFLAGS $(mysql_config --cflags)" |
|---|
| 5339 | LDFLAGS="$LDFLAGS $(mysql_config --libs)" |
|---|
| 5340 | else |
|---|
| 5341 | MOD_MYSQL_DIR=/usr |
|---|
| 5342 | CPPFLAGS="$CPPFLAGS -I$MOD_MYSQL_DIR/include" |
|---|
| 5343 | LDFLAGS="$LDFLAGS -L$MOD_MYSQL_DIR/lib -lmysqlclient" |
|---|
| 5344 | fi |
|---|
| 5345 | else |
|---|
| 5346 | CPPFLAGS="$CPPFLAGS -I$MOD_MYSQL_DIR/include" |
|---|
| 5347 | LDFLAGS="$LDFLAGS -L$MOD_MYSQL_DIR/lib -lmysqlclient" |
|---|
| 5348 | fi |
|---|
| 5349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_init in -lmysqlclient" >&5 |
|---|
| 5350 | $as_echo_n "checking for mysql_init in -lmysqlclient... " >&6; } |
|---|
| 5351 | if ${ac_cv_lib_mysqlclient_mysql_init+:} false; then : |
|---|
| 5352 | $as_echo_n "(cached) " >&6 |
|---|
| 5353 | else |
|---|
| 5354 | ac_check_lib_save_LIBS=$LIBS |
|---|
| 5355 | LIBS="-lmysqlclient $LIBS" |
|---|
| 5356 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 5357 | /* end confdefs.h. */ |
|---|
| 5358 | |
|---|
| 5359 | /* Override any GCC internal prototype to avoid an error. |
|---|
| 5360 | Use char because int might match the return type of a GCC |
|---|
| 5361 | builtin and then its argument prototype would still apply. */ |
|---|
| 5362 | #ifdef __cplusplus |
|---|
| 5363 | extern "C" |
|---|
| 5364 | #endif |
|---|
| 5365 | char mysql_init (); |
|---|
| 5366 | int |
|---|
| 5367 | main () |
|---|
| 5368 | { |
|---|
| 5369 | return mysql_init (); |
|---|
| 5370 | ; |
|---|
| 5371 | return 0; |
|---|
| 5372 | } |
|---|
| 5373 | _ACEOF |
|---|
| 5374 | if ac_fn_c_try_link "$LINENO"; then : |
|---|
| 5375 | ac_cv_lib_mysqlclient_mysql_init=yes |
|---|
| 5376 | else |
|---|
| 5377 | ac_cv_lib_mysqlclient_mysql_init=no |
|---|
| 5378 | fi |
|---|
| 5379 | rm -f core conftest.err conftest.$ac_objext \ |
|---|
| 5380 | conftest$ac_exeext conftest.$ac_ext |
|---|
| 5381 | LIBS=$ac_check_lib_save_LIBS |
|---|
| 5382 | fi |
|---|
| 5383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_mysql_init" >&5 |
|---|
| 5384 | $as_echo "$ac_cv_lib_mysqlclient_mysql_init" >&6; } |
|---|
| 5385 | if test "x$ac_cv_lib_mysqlclient_mysql_init" = xyes; then : |
|---|
| 5386 | cat >>confdefs.h <<_ACEOF |
|---|
| 5387 | #define HAVE_LIBMYSQLCLIENT 1 |
|---|
| 5388 | _ACEOF |
|---|
| 5389 | |
|---|
| 5390 | LIBS="-lmysqlclient $LIBS" |
|---|
| 5391 | |
|---|
| 5392 | else |
|---|
| 5393 | as_fn_error $? "mySQL lib was not found" "$LINENO" 5 |
|---|
| 5394 | fi |
|---|
| 5395 | |
|---|
| 5396 | ac_fn_c_check_header_mongrel "$LINENO" "mysql.h" "ac_cv_header_mysql_h" "$ac_includes_default" |
|---|
| 5397 | if test "x$ac_cv_header_mysql_h" = xyes; then : |
|---|
| 5398 | |
|---|
| 5399 | else |
|---|
| 5400 | as_fn_error $? "mySQL header was not found" "$LINENO" 5 |
|---|
| 5401 | fi |
|---|
| 5402 | |
|---|
| 5403 | |
|---|
| 5404 | |
|---|
| 5405 | ac_ext=cpp |
|---|
| 5406 | ac_cpp='$CXXCPP $CPPFLAGS' |
|---|
| 5407 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|---|
| 5408 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|---|
| 5409 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|---|
| 5410 | |
|---|
| 5411 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 5412 | /* end confdefs.h. */ |
|---|
| 5413 | #include <mysql.h> |
|---|
| 5414 | int |
|---|
| 5415 | main () |
|---|
| 5416 | { |
|---|
| 5417 | my_bool rc = 1; mysql_options(0, MYSQL_OPT_RECONNECT, &rc); |
|---|
| 5418 | ; |
|---|
| 5419 | return 0; |
|---|
| 5420 | } |
|---|
| 5421 | _ACEOF |
|---|
| 5422 | if ac_fn_cxx_try_compile "$LINENO"; then : |
|---|
| 5423 | |
|---|
| 5424 | else |
|---|
| 5425 | echo -n -e "#define MYSQL_NO_OPT_RECONNECT 1\n\n" >> include/libdodo/directives.runtime.h |
|---|
| 5426 | fi |
|---|
| 5427 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|---|
| 5428 | ac_ext=c |
|---|
| 5429 | ac_cpp='$CPP $CPPFLAGS' |
|---|
| 5430 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|---|
| 5431 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|---|
| 5432 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|---|
| 5433 | |
|---|
| 5434 | |
|---|
| 5435 | echo -n -e "#define MYSQL_EXT 1\n\n" >> include/libdodo/directives.runtime.h |
|---|
| 5436 | |
|---|
| 5437 | if test "$DATABASE_W_XEXEC" = "no" |
|---|
| 5438 | then |
|---|
| 5439 | RESULT="$RESULT\ndata::base::mysql xexec support\t\t\t\t\tdisabled" |
|---|
| 5440 | else |
|---|
| 5441 | RESULT="$RESULT\ndata::base::mysql xexec support\t\t\t\t\tenabled" |
|---|
| 5442 | fi |
|---|
| 5443 | |
|---|
| 5444 | RESULT="$RESULT\nMySQL\t\t\t\t\t\t\t\tenabled" |
|---|
| 5445 | else |
|---|
| 5446 | RESULT="$RESULT\nMySQL\t\t\t\t\t\t\t\tdisabled" |
|---|
| 5447 | fi |
|---|
| 5448 | |
|---|
| 5449 | |
|---|
| 5450 | # Check whether --with-fast-cgi was given. |
|---|
| 5451 | if test "${with_fast_cgi+set}" = set; then : |
|---|
| 5452 | withval=$with_fast_cgi; MOD_FASTCGI_DIR="$withval" |
|---|
| 5453 | else |
|---|
| 5454 | MOD_FASTCGI="no" |
|---|
| 5455 | fi |
|---|
| 5456 | |
|---|
| 5457 | if test "$MOD_FASTCGI" != "no" -a "$MOD_FASTCGI_DIR" != "no" |
|---|
| 5458 | then |
|---|
| 5459 | if test "$MOD_FASTCGI_DIR" = "yes" |
|---|
| 5460 | then |
|---|
| 5461 | MOD_FASTCGI_DIR=/usr |
|---|
| 5462 | fi |
|---|
| 5463 | CPPFLAGS="$CPPFLAGS -I$MOD_FASTCGI_DIR/include" |
|---|
| 5464 | LDFLAGS="$LDFLAGS -L$MOD_FASTCGI_DIR/lib -lfcgi" |
|---|
| 5465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FCGX_Init in -lfcgi" >&5 |
|---|
| 5466 | $as_echo_n "checking for FCGX_Init in -lfcgi... " >&6; } |
|---|
| 5467 | if ${ac_cv_lib_fcgi_FCGX_Init+:} false; then : |
|---|
| 5468 | $as_echo_n "(cached) " >&6 |
|---|
| 5469 | else |
|---|
| 5470 | ac_check_lib_save_LIBS=$LIBS |
|---|
| 5471 | LIBS="-lfcgi $LIBS" |
|---|
| 5472 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|---|
| 5473 | /* end confdefs.h. */ |
|---|
| 5474 | |
|---|
| 5475 | /* Override any GCC internal prototype to avoid an error. |
|---|
| 5476 | Use char because int might match the return type of a GCC |
|---|
| 5477 | builtin and then its argument prototype would still apply. */ |
|---|
| 5478 | #ifdef __cplusplus |
|---|
| 5479 | extern "C" |
|---|
| 5480 | #endif |
|---|
| 5481 | char FCGX_Init (); |
|---|
| 5482 | int |
|---|
| 5483 | main () |
|---|
| 5484 | { |
|---|
| 5485 | return FCGX_Init (); |
|---|
| 5486 | ; |
|---|
| 5487 | return 0; |
|---|
| 5488 | } |
|---|
| 5489 | _ACEOF |
|---|
| 5490 | if ac_fn_c_try_link "$LINENO"; then : |
|---|
| 5491 | ac_cv_lib_fcgi_FCGX_Init=yes |
|---|
| 5492 | else |
|---|
| 5493 | ac_cv_lib_fcgi_FCGX_Init=no |
|---|
| 5494 | fi |
|---|
| 5495 | rm -f core conftest.err conftest.$ac_objext \ |
|---|
| 5496 | conftest$ac_exeext conftest.$ac_ext |
|---|
| 5497 | LIBS=$ac_check_lib_save_LIBS |
|---|
| 5498 | fi |
|---|
| 5499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fcgi_FCGX_Init" >&5 |
|---|
| 5500 | $as_echo "$ac_cv_lib_fcgi_FCGX_Init" >&6; } |
|---|
| 5501 | if test "x$ac_cv_lib_fcgi_FCGX_Init" = xyes; then : |
|---|
| 5502 | cat >>confdefs.h <<_ACEOF |
|---|
| 5503 | #define HAVE_LIBFCGI 1 |
|---|
| 5504 | _ACEOF |
|---|
| 5505 | |
|---|
| 5506 | LIBS="-lfcgi $LIBS" |
|---|
| 5507 | |
|---|
| 5508 | else |
|---|
| 5509 | as_fn_error $? "fast-cgi lib was not found" "$LINENO" 5 |
|---|
| 5510 | fi |
|---|
| 5511 | |
|---|
| 5512 | ac_fn_c_check_header_mongrel "$LINENO" "fcgiapp.h" "ac_cv_header_fcgiapp_h" "$ac_includes_default" |
|---|
| 5513 | if test "x$ac_cv_header_fcgiapp_h" = xyes; then : |
|---|
| 5514 | |
|---|
| 5515 | else |
|---|
| 5516 | as_fn_error $? "fast-cgi header was not found" "$LINENO" 5 |
|---|
| 5517 | fi |
|---|
| 5518 | |
|---|
| 5519 | |
|---|
| 5520 | echo -n -e "#define FASTCGI_EXT 1\n\n" >> include/libdodo/directives.runtime.h |
|---|
| 5521 | |
|---|
| 5522 | if test "$IO_W_XEXEC" = "no" |
|---|
| 5523 | then |
|---|
| 5524 | RESULT="$RESULT\ncgi::fast::exchange xexec support\t\t\t\tdisabled" |
|---|
| 5525 | else |
|---|
| 5526 | RESULT="$RESULT\ncgi::fast::exchange xexec support\t\t\t\tenabled" |
|---|
| 5527 | fi<
|
|---|