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