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