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