Changeset 914 for trunk/vizservers
- Timestamp:
- Mar 4, 2008, 2:15:12 PM (17 years ago)
- Location:
- trunk/vizservers
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/vizservers/configure
r751 r914 1 1 #! /bin/sh 2 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2. 59for vizservers 0.1.3 # Generated by GNU Autoconf 2.61 for vizservers 0.1. 4 4 # 5 5 # Report bugs to <rappture@nanohub.org>. 6 6 # 7 # Copyright (C) 2003 Free Software Foundation, Inc. 7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 8 9 # This configure script is free software; the Free Software Foundation 9 10 # gives unlimited permission to copy, distribute and modify it. … … 12 13 ## --------------------- ## 13 14 14 # Be Bourne compatible 15 # Be more Bourne compatible 16 DUALCASE=1; export DUALCASE # for MKS sh 15 17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16 18 emulate sh … … 19 21 # is contrary to our usage. Disable this feature. 20 22 alias -g '${1+"$@"}'='"$@"' 21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 22 set -o posix 23 fi 24 DUALCASE=1; export DUALCASE # for MKS sh 25 26 # Support unset when possible. 27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 28 as_unset=unset 29 else 30 as_unset=false 31 fi 32 33 34 # Work around bugs in pre-3.0 UWIN ksh. 35 $as_unset ENV MAIL MAILPATH 36 PS1='$ ' 37 PS2='> ' 38 PS4='+ ' 39 40 # NLS nuisances. 41 for as_var in \ 42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 44 LC_TELEPHONE LC_TIME 45 do 46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 47 eval $as_var=C; export $as_var 48 else 49 $as_unset $as_var 50 fi 51 done 52 53 # Required to use basename. 54 if expr a : '\(a\)' >/dev/null 2>&1; then 55 as_expr=expr 56 else 57 as_expr=false 58 fi 59 60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 61 as_basename=basename 62 else 63 as_basename=false 64 fi 65 66 67 # Name of the executable. 68 as_me=`$as_basename "$0" || 69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 70 X"$0" : 'X\(//\)$' \| \ 71 X"$0" : 'X\(/\)$' \| \ 72 . : '\(.\)' 2>/dev/null || 73 echo X/"$0" | 74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 75 /^X\/\(\/\/\)$/{ s//\1/; q; } 76 /^X\/\(\/\).*/{ s//\1/; q; } 77 s/.*/./; q'` 78 79 80 # PATH needs CR, and LINENO needs CR and PATH. 23 setopt NO_GLOB_SUBST 24 else 25 case `(set -o) 2>/dev/null` in 26 *posix*) set -o posix ;; 27 esac 28 29 fi 30 31 32 33 34 # PATH needs CR 81 35 # Avoid depending upon Character Ranges. 82 36 as_cr_letters='abcdefghijklmnopqrstuvwxyz' … … 99 53 fi 100 54 101 102 as_lineno_1=$LINENO 103 as_lineno_2=$LINENO 104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 105 test "x$as_lineno_1" != "x$as_lineno_2" && 106 test "x$as_lineno_3" = "x$as_lineno_2" || { 107 # Find who we are. Look in the path if we contain no path at all 108 # relative or not. 109 case $0 in 110 *[\\/]* ) as_myself=$0 ;; 111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 55 # Support unset when possible. 56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 57 as_unset=unset 58 else 59 as_unset=false 60 fi 61 62 63 # IFS 64 # We need space, tab and new line, in precisely that order. Quoting is 65 # there to prevent editors from complaining about space-tab. 66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 67 # splitting by setting IFS to empty value.) 68 as_nl=' 69 ' 70 IFS=" "" $as_nl" 71 72 # Find who we are. Look in the path if we contain no directory separator. 73 case $0 in 74 *[\\/]* ) as_myself=$0 ;; 75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 112 76 for as_dir in $PATH 113 77 do … … 116 80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 117 81 done 118 119 ;; 120 esac 121 # We did not find ourselves, most probably we were run as `sh COMMAND' 122 # in which case we are not to be found in the path. 123 if test "x$as_myself" = x; then 124 as_myself=$0 82 IFS=$as_save_IFS 83 84 ;; 85 esac 86 # We did not find ourselves, most probably we were run as `sh COMMAND' 87 # in which case we are not to be found in the path. 88 if test "x$as_myself" = x; then 89 as_myself=$0 90 fi 91 if test ! -f "$as_myself"; then 92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 93 { (exit 1); exit 1; } 94 fi 95 96 # Work around bugs in pre-3.0 UWIN ksh. 97 for as_var in ENV MAIL MAILPATH 98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 99 done 100 PS1='$ ' 101 PS2='> ' 102 PS4='+ ' 103 104 # NLS nuisances. 105 for as_var in \ 106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 108 LC_TELEPHONE LC_TIME 109 do 110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 111 eval $as_var=C; export $as_var 112 else 113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 125 114 fi 126 if test ! -f "$as_myself"; then 127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 128 { (exit 1); exit 1; }; } 129 fi 130 case $CONFIG_SHELL in 131 '') 115 done 116 117 # Required to use basename. 118 if expr a : '\(a\)' >/dev/null 2>&1 && 119 test "X`expr 00001 : '.*\(...\)'`" = X001; then 120 as_expr=expr 121 else 122 as_expr=false 123 fi 124 125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 126 as_basename=basename 127 else 128 as_basename=false 129 fi 130 131 132 # Name of the executable. 133 as_me=`$as_basename -- "$0" || 134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 135 X"$0" : 'X\(//\)$' \| \ 136 X"$0" : 'X\(/\)' \| . 2>/dev/null || 137 echo X/"$0" | 138 sed '/^.*\/\([^/][^/]*\)\/*$/{ 139 s//\1/ 140 q 141 } 142 /^X\/\(\/\/\)$/{ 143 s//\1/ 144 q 145 } 146 /^X\/\(\/\).*/{ 147 s//\1/ 148 q 149 } 150 s/.*/./; q'` 151 152 # CDPATH. 153 $as_unset CDPATH 154 155 156 if test "x$CONFIG_SHELL" = x; then 157 if (eval ":") 2>/dev/null; then 158 as_have_required=yes 159 else 160 as_have_required=no 161 fi 162 163 if test $as_have_required = yes && (eval ": 164 (as_func_return () { 165 (exit \$1) 166 } 167 as_func_success () { 168 as_func_return 0 169 } 170 as_func_failure () { 171 as_func_return 1 172 } 173 as_func_ret_success () { 174 return 0 175 } 176 as_func_ret_failure () { 177 return 1 178 } 179 180 exitcode=0 181 if as_func_success; then 182 : 183 else 184 exitcode=1 185 echo as_func_success failed. 186 fi 187 188 if as_func_failure; then 189 exitcode=1 190 echo as_func_failure succeeded. 191 fi 192 193 if as_func_ret_success; then 194 : 195 else 196 exitcode=1 197 echo as_func_ret_success failed. 198 fi 199 200 if as_func_ret_failure; then 201 exitcode=1 202 echo as_func_ret_failure succeeded. 203 fi 204 205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 206 : 207 else 208 exitcode=1 209 echo positional parameters were not saved. 210 fi 211 212 test \$exitcode = 0) || { (exit 1); exit 1; } 213 214 ( 215 as_lineno_1=\$LINENO 216 as_lineno_2=\$LINENO 217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 219 ") 2> /dev/null; then 220 : 221 else 222 as_candidate_shells= 132 223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 133 224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH … … 135 226 IFS=$as_save_IFS 136 227 test -z "$as_dir" && as_dir=. 137 for as_base in sh bash ksh sh5; do 138 case $as_dir in 228 case $as_dir in 139 229 /*) 140 if ("$as_dir/$as_base" -c ' 230 for as_base in sh bash ksh sh5; do 231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 232 done;; 233 esac 234 done 235 IFS=$as_save_IFS 236 237 238 for as_shell in $as_candidate_shells $SHELL; do 239 # Try only shells that exist, to save several forks. 240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 241 { ("$as_shell") 2> /dev/null <<\_ASEOF 242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 243 emulate sh 244 NULLCMD=: 245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 246 # is contrary to our usage. Disable this feature. 247 alias -g '${1+"$@"}'='"$@"' 248 setopt NO_GLOB_SUBST 249 else 250 case `(set -o) 2>/dev/null` in 251 *posix*) set -o posix ;; 252 esac 253 254 fi 255 256 257 : 258 _ASEOF 259 }; then 260 CONFIG_SHELL=$as_shell 261 as_have_required=yes 262 if { "$as_shell" 2> /dev/null <<\_ASEOF 263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 264 emulate sh 265 NULLCMD=: 266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 267 # is contrary to our usage. Disable this feature. 268 alias -g '${1+"$@"}'='"$@"' 269 setopt NO_GLOB_SUBST 270 else 271 case `(set -o) 2>/dev/null` in 272 *posix*) set -o posix ;; 273 esac 274 275 fi 276 277 278 : 279 (as_func_return () { 280 (exit $1) 281 } 282 as_func_success () { 283 as_func_return 0 284 } 285 as_func_failure () { 286 as_func_return 1 287 } 288 as_func_ret_success () { 289 return 0 290 } 291 as_func_ret_failure () { 292 return 1 293 } 294 295 exitcode=0 296 if as_func_success; then 297 : 298 else 299 exitcode=1 300 echo as_func_success failed. 301 fi 302 303 if as_func_failure; then 304 exitcode=1 305 echo as_func_failure succeeded. 306 fi 307 308 if as_func_ret_success; then 309 : 310 else 311 exitcode=1 312 echo as_func_ret_success failed. 313 fi 314 315 if as_func_ret_failure; then 316 exitcode=1 317 echo as_func_ret_failure succeeded. 318 fi 319 320 if ( set x; as_func_ret_success y && test x = "$1" ); then 321 : 322 else 323 exitcode=1 324 echo positional parameters were not saved. 325 fi 326 327 test $exitcode = 0) || { (exit 1); exit 1; } 328 329 ( 141 330 as_lineno_1=$LINENO 142 331 as_lineno_2=$LINENO 143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`144 332 test "x$as_lineno_1" != "x$as_lineno_2" && 145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 148 CONFIG_SHELL=$as_dir/$as_base 149 export CONFIG_SHELL 150 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 151 fi;; 152 esac 153 done 154 done 155 ;; 156 esac 333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 334 335 _ASEOF 336 }; then 337 break 338 fi 339 340 fi 341 342 done 343 344 if test "x$CONFIG_SHELL" != x; then 345 for as_var in BASH_ENV ENV 346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 347 done 348 export CONFIG_SHELL 349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 350 fi 351 352 353 if test $as_have_required = no; then 354 echo This script requires a shell more modern than all the 355 echo shells that I found on your system. Please install a 356 echo modern shell, or manually run the script under such a 357 echo shell if you do have one. 358 { (exit 1); exit 1; } 359 fi 360 361 362 fi 363 364 fi 365 366 367 368 (eval "as_func_return () { 369 (exit \$1) 370 } 371 as_func_success () { 372 as_func_return 0 373 } 374 as_func_failure () { 375 as_func_return 1 376 } 377 as_func_ret_success () { 378 return 0 379 } 380 as_func_ret_failure () { 381 return 1 382 } 383 384 exitcode=0 385 if as_func_success; then 386 : 387 else 388 exitcode=1 389 echo as_func_success failed. 390 fi 391 392 if as_func_failure; then 393 exitcode=1 394 echo as_func_failure succeeded. 395 fi 396 397 if as_func_ret_success; then 398 : 399 else 400 exitcode=1 401 echo as_func_ret_success failed. 402 fi 403 404 if as_func_ret_failure; then 405 exitcode=1 406 echo as_func_ret_failure succeeded. 407 fi 408 409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 410 : 411 else 412 exitcode=1 413 echo positional parameters were not saved. 414 fi 415 416 test \$exitcode = 0") || { 417 echo No shell found that supports shell functions. 418 echo Please tell autoconf@gnu.org about your system, 419 echo including any error possibly output before this 420 echo message 421 } 422 423 424 425 as_lineno_1=$LINENO 426 as_lineno_2=$LINENO 427 test "x$as_lineno_1" != "x$as_lineno_2" && 428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 157 429 158 430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 159 431 # uniformly replaced by the line number. The first 'sed' inserts a 160 # line-number line before each line; the second 'sed' does the real 161 # work. The second script uses 'N' to pair each line-number line 162 # with the numbered line, and appends trailing '-' during 163 # substitution so that $LINENO is not a special case at line end. 432 # line-number line after each line using $LINENO; the second 'sed' 433 # does the real work. The second script uses 'N' to pair each 434 # line-number line with the line containing $LINENO, and appends 435 # trailing '-' during substitution so that $LINENO is not a special 436 # case at line end. 164 437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 166 sed '=' <$as_myself | 438 # scripts with optimization help from Paolo Bonzini. Blame Lee 439 # E. McMahon (1931-1989) for sed's syntax. :-) 440 sed -n ' 441 p 442 /[$]LINENO/= 443 ' <$as_myself | 167 444 sed ' 445 s/[$]LINENO.*/&-/ 446 t lineno 447 b 448 :lineno 168 449 N 169 s,$,-, 170 : loop 171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 450 :loop 451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 172 452 t loop 173 s,-$,, 174 s,^['$as_cr_digits']*\n,, 453 s/-\n.*// 175 454 ' >$as_me.lineno && 176 chmod +x $as_me.lineno||455 chmod +x "$as_me.lineno" || 177 456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 178 457 { (exit 1); exit 1; }; } … … 180 459 # Don't try to exec as it changes $[0], causing all sort of problems 181 460 # (the dirname of $[0] is not the place where we might find the 182 # original and so on. Autoconf is especially sensi ble to this).183 . ./$as_me.lineno461 # original and so on. Autoconf is especially sensitive to this). 462 . "./$as_me.lineno" 184 463 # Exit status is that of the last command. 185 464 exit … … 187 466 188 467 189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 190 *c*,-n*) ECHO_N= ECHO_C=' 191 ' ECHO_T=' ' ;; 192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 194 esac 195 196 if expr a : '\(a\)' >/dev/null 2>&1; then 468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 469 as_dirname=dirname 470 else 471 as_dirname=false 472 fi 473 474 ECHO_C= ECHO_N= ECHO_T= 475 case `echo -n x` in 476 -n*) 477 case `echo 'x\c'` in 478 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 479 *) ECHO_C='\c';; 480 esac;; 481 *) 482 ECHO_N='-n';; 483 esac 484 485 if expr a : '\(a\)' >/dev/null 2>&1 && 486 test "X`expr 00001 : '.*\(...\)'`" = X001; then 197 487 as_expr=expr 198 488 else … … 201 491 202 492 rm -f conf$$ conf$$.exe conf$$.file 493 if test -d conf$$.dir; then 494 rm -f conf$$.dir/conf$$.file 495 else 496 rm -f conf$$.dir 497 mkdir conf$$.dir 498 fi 203 499 echo >conf$$.file 204 500 if ln -s conf$$.file conf$$ 2>/dev/null; then 205 # We could just check for DJGPP; but this test a) works b) is more generic 206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 207 if test -f conf$$.exe; then 208 # Don't use ln at all; we don't have any links 501 as_ln_s='ln -s' 502 # ... but there are two gotchas: 503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 505 # In both cases, we have to default to `cp -p'. 506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 209 507 as_ln_s='cp -p' 210 else211 as_ln_s='ln -s'212 fi213 508 elif ln conf$$.file conf$$ 2>/dev/null; then 214 509 as_ln_s=ln … … 216 511 as_ln_s='cp -p' 217 512 fi 218 rm -f conf$$ conf$$.exe conf$$.file 513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 514 rmdir conf$$.dir 2>/dev/null 219 515 220 516 if mkdir -p . 2>/dev/null; then … … 225 521 fi 226 522 227 as_executable_p="test -f" 523 if test -x / >/dev/null 2>&1; then 524 as_test_x='test -x' 525 else 526 if ls -dL / >/dev/null 2>&1; then 527 as_ls_L_option=L 528 else 529 as_ls_L_option= 530 fi 531 as_test_x=' 532 eval sh -c '\'' 533 if test -d "$1"; then 534 test -d "$1/."; 535 else 536 case $1 in 537 -*)set "./$1";; 538 esac; 539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 540 ???[sx]*):;;*)false;;esac;fi 541 '\'' sh 542 ' 543 fi 544 as_executable_p=$as_test_x 228 545 229 546 # Sed expression to map a string onto a valid CPP name. … … 234 551 235 552 236 # IFS 237 # We need space, tab and new line, in precisely that order. 238 as_nl=' 239 ' 240 IFS=" $as_nl" 241 242 # CDPATH. 243 $as_unset CDPATH 244 553 554 exec 7<&0 </dev/null 6>&1 245 555 246 556 # Name of the host. … … 249 559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 250 560 251 exec 6>&1252 253 561 # 254 562 # Initializations. 255 563 # 256 564 ac_default_prefix=/usr/local 565 ac_clean_files= 257 566 ac_config_libobj_dir=. 567 LIBOBJS= 258 568 cross_compiling=no 259 569 subdirs= … … 261 571 MAKEFLAGS= 262 572 SHELL=${CONFIG_SHELL-/bin/sh} 263 264 # Maximum number of lines to put in a shell here document.265 # This variable seems obsolete. It should probably be removed, and266 # only ac_max_sed_lines should be used.267 : ${ac_max_here_lines=38}268 573 269 574 # Identity of this package. … … 277 582 ac_includes_default="\ 278 583 #include <stdio.h> 279 #if HAVE_SYS_TYPES_H584 #ifdef HAVE_SYS_TYPES_H 280 585 # include <sys/types.h> 281 586 #endif 282 #if HAVE_SYS_STAT_H587 #ifdef HAVE_SYS_STAT_H 283 588 # include <sys/stat.h> 284 589 #endif 285 #if STDC_HEADERS590 #ifdef STDC_HEADERS 286 591 # include <stdlib.h> 287 592 # include <stddef.h> 288 593 #else 289 # if HAVE_STDLIB_H594 # ifdef HAVE_STDLIB_H 290 595 # include <stdlib.h> 291 596 # endif 292 597 #endif 293 #if HAVE_STRING_H294 # if ! STDC_HEADERS &&HAVE_MEMORY_H598 #ifdef HAVE_STRING_H 599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 295 600 # include <memory.h> 296 601 # endif 297 602 # include <string.h> 298 603 #endif 299 #if HAVE_STRINGS_H604 #ifdef HAVE_STRINGS_H 300 605 # include <strings.h> 301 606 #endif 302 #if HAVE_INTTYPES_H607 #ifdef HAVE_INTTYPES_H 303 608 # include <inttypes.h> 304 #else305 # if HAVE_STDINT_H306 # include <stdint.h>307 # endif308 609 #endif 309 #if HAVE_UNISTD_H 610 #ifdef HAVE_STDINT_H 611 # include <stdint.h> 612 #endif 613 #ifdef HAVE_UNISTD_H 310 614 # include <unistd.h> 311 615 #endif" 312 616 313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS VERSION LIB_SEARCH_DIRS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX SUBDIRS CXXCPP EGREP TCL_LIB_DIR TCL_LIB TCL_LIB_VERSION TCL_INCL_DIR RP2_INCL_DIR RP_DIR LIBOBJS LTLIBOBJS' 617 ac_subst_vars='SHELL 618 PATH_SEPARATOR 619 PACKAGE_NAME 620 PACKAGE_TARNAME 621 PACKAGE_VERSION 622 PACKAGE_STRING 623 PACKAGE_BUGREPORT 624 exec_prefix 625 prefix 626 program_transform_name 627 bindir 628 sbindir 629 libexecdir 630 datarootdir 631 datadir 632 sysconfdir 633 sharedstatedir 634 localstatedir 635 includedir 636 oldincludedir 637 docdir 638 infodir 639 htmldir 640 dvidir 641 pdfdir 642 psdir 643 libdir 644 localedir 645 mandir 646 DEFS 647 ECHO_C 648 ECHO_N 649 ECHO_T 650 LIBS 651 build_alias 652 host_alias 653 target_alias 654 VERSION 655 LIB_SEARCH_DIRS 656 INSTALL_PROGRAM 657 INSTALL_SCRIPT 658 INSTALL_DATA 659 SET_MAKE 660 CC 661 CFLAGS 662 LDFLAGS 663 CPPFLAGS 664 ac_ct_CC 665 EXEEXT 666 OBJEXT 667 RANLIB 668 CXX 669 CXXFLAGS 670 ac_ct_CXX 671 SUBDIRS 672 CXXCPP 673 GREP 674 EGREP 675 TCL_LIB_DIR 676 TCL_LIB 677 TCL_LIB_VERSION 678 TCL_INCL_DIR 679 RP2_INCL_DIR 680 RP_DIR 681 LIBOBJS 682 LTLIBOBJS' 314 683 ac_subst_files='' 684 ac_precious_vars='build_alias 685 host_alias 686 target_alias 687 CC 688 CFLAGS 689 LDFLAGS 690 LIBS 691 CPPFLAGS 692 CXX 693 CXXFLAGS 694 CCC 695 CXXCPP' 696 315 697 316 698 # Initialize some variables set by options. … … 339 721 # by default will actually change. 340 722 # Use braces instead of parens because sh, perl, etc. also accept them. 723 # (The list follows the same order as the GNU Coding Standards.) 341 724 bindir='${exec_prefix}/bin' 342 725 sbindir='${exec_prefix}/sbin' 343 726 libexecdir='${exec_prefix}/libexec' 344 datadir='${prefix}/share' 727 datarootdir='${prefix}/share' 728 datadir='${datarootdir}' 345 729 sysconfdir='${prefix}/etc' 346 730 sharedstatedir='${prefix}/com' 347 731 localstatedir='${prefix}/var' 348 libdir='${exec_prefix}/lib'349 732 includedir='${prefix}/include' 350 733 oldincludedir='/usr/include' 351 infodir='${prefix}/info' 352 mandir='${prefix}/man' 734 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 735 infodir='${datarootdir}/info' 736 htmldir='${docdir}' 737 dvidir='${docdir}' 738 pdfdir='${docdir}' 739 psdir='${docdir}' 740 libdir='${exec_prefix}/lib' 741 localedir='${datarootdir}/locale' 742 mandir='${datarootdir}/man' 353 743 354 744 ac_prev= 745 ac_dashdash= 355 746 for ac_option 356 747 do 357 748 # If the previous option needs an argument, assign it. 358 749 if test -n "$ac_prev"; then 359 eval "$ac_prev=\$ac_option"750 eval $ac_prev=\$ac_option 360 751 ac_prev= 361 752 continue 362 753 fi 363 754 364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 755 case $ac_option in 756 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 757 *) ac_optarg=yes ;; 758 esac 365 759 366 760 # Accept the important Cygnus configure options, so we can diagnose typos. 367 761 368 case $ac_option in 762 case $ac_dashdash$ac_option in 763 --) 764 ac_dashdash=yes ;; 369 765 370 766 -bindir | --bindir | --bindi | --bind | --bin | --bi) … … 388 784 cache_file=config.cache ;; 389 785 390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)786 -datadir | --datadir | --datadi | --datad) 391 787 ac_prev=datadir ;; 392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 393 | --da=*) 788 -datadir=* | --datadir=* | --datadi=* | --datad=*) 394 789 datadir=$ac_optarg ;; 790 791 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 792 | --dataroo | --dataro | --datar) 793 ac_prev=datarootdir ;; 794 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 795 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 796 datarootdir=$ac_optarg ;; 395 797 396 798 -disable-* | --disable-*) 397 799 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 398 800 # Reject names that are not valid shell variable names. 399 expr "x$ac_feature" : ".*[^- _$as_cr_alnum]" >/dev/null &&801 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 400 802 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 401 803 { (exit 1); exit 1; }; } 402 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 403 eval "enable_$ac_feature=no" ;; 804 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 805 eval enable_$ac_feature=no ;; 806 807 -docdir | --docdir | --docdi | --doc | --do) 808 ac_prev=docdir ;; 809 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 810 docdir=$ac_optarg ;; 811 812 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 813 ac_prev=dvidir ;; 814 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 815 dvidir=$ac_optarg ;; 404 816 405 817 -enable-* | --enable-*) 406 818 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 407 819 # Reject names that are not valid shell variable names. 408 expr "x$ac_feature" : ".*[^- _$as_cr_alnum]" >/dev/null &&820 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 409 821 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 410 822 { (exit 1); exit 1; }; } 411 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 412 case $ac_option in 413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 414 *) ac_optarg=yes ;; 415 esac 416 eval "enable_$ac_feature='$ac_optarg'" ;; 823 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 824 eval enable_$ac_feature=\$ac_optarg ;; 417 825 418 826 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ … … 441 849 host_alias=$ac_optarg ;; 442 850 851 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 852 ac_prev=htmldir ;; 853 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 854 | --ht=*) 855 htmldir=$ac_optarg ;; 856 443 857 -includedir | --includedir | --includedi | --included | --include \ 444 858 | --includ | --inclu | --incl | --inc) … … 465 879 libexecdir=$ac_optarg ;; 466 880 881 -localedir | --localedir | --localedi | --localed | --locale) 882 ac_prev=localedir ;; 883 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 884 localedir=$ac_optarg ;; 885 467 886 -localstatedir | --localstatedir | --localstatedi | --localstated \ 468 | --localstate | --localstat | --localsta | --localst \ 469 | --locals | --local | --loca | --loc | --lo) 887 | --localstate | --localstat | --localsta | --localst | --locals) 470 888 ac_prev=localstatedir ;; 471 889 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 890 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 474 891 localstatedir=$ac_optarg ;; 475 892 … … 536 953 program_transform_name=$ac_optarg ;; 537 954 955 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 956 ac_prev=pdfdir ;; 957 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 958 pdfdir=$ac_optarg ;; 959 960 -psdir | --psdir | --psdi | --psd | --ps) 961 ac_prev=psdir ;; 962 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 963 psdir=$ac_optarg ;; 964 538 965 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 539 966 | -silent | --silent | --silen | --sile | --sil) … … 588 1015 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 589 1016 # Reject names that are not valid shell variable names. 590 expr "x$ac_package" : ".*[^- _$as_cr_alnum]" >/dev/null &&1017 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 591 1018 { echo "$as_me: error: invalid package name: $ac_package" >&2 592 1019 { (exit 1); exit 1; }; } 593 ac_package=`echo $ac_package| sed 's/-/_/g'` 594 case $ac_option in 595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 596 *) ac_optarg=yes ;; 597 esac 598 eval "with_$ac_package='$ac_optarg'" ;; 1020 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1021 eval with_$ac_package=\$ac_optarg ;; 599 1022 600 1023 -without-* | --without-*) 601 1024 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 602 1025 # Reject names that are not valid shell variable names. 603 expr "x$ac_package" : ".*[^- _$as_cr_alnum]" >/dev/null &&1026 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 604 1027 { echo "$as_me: error: invalid package name: $ac_package" >&2 605 1028 { (exit 1); exit 1; }; } 606 ac_package=`echo $ac_package | sed 's/ -/_/g'`607 eval "with_$ac_package=no";;1029 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1030 eval with_$ac_package=no ;; 608 1031 609 1032 --x) … … 636 1059 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 637 1060 { (exit 1); exit 1; }; } 638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 639 eval "$ac_envvar='$ac_optarg'" 1061 eval $ac_envvar=\$ac_optarg 640 1062 export $ac_envvar ;; 641 1063 … … 657 1079 fi 658 1080 659 # Be sure to have absolute paths. 660 for ac_var in exec_prefix prefix 1081 # Be sure to have absolute directory names. 1082 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1083 datadir sysconfdir sharedstatedir localstatedir includedir \ 1084 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1085 libdir localedir mandir 661 1086 do 662 eval ac_val= $`echo $ac_var`1087 eval ac_val=\$$ac_var 663 1088 case $ac_val in 664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 666 { (exit 1); exit 1; }; };; 1089 [\\/$]* | ?:[\\/]* ) continue;; 1090 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 667 1091 esac 668 done 669 670 # Be sure to have absolute paths. 671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 672 localstatedir libdir includedir oldincludedir infodir mandir 673 do 674 eval ac_val=$`echo $ac_var` 675 case $ac_val in 676 [\\/$]* | ?:[\\/]* ) ;; 677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 678 { (exit 1); exit 1; }; };; 679 esac 1092 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1093 { (exit 1); exit 1; }; } 680 1094 done 681 1095 … … 704 1118 705 1119 1120 ac_pwd=`pwd` && test -n "$ac_pwd" && 1121 ac_ls_di=`ls -di .` && 1122 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1123 { echo "$as_me: error: Working directory cannot be determined" >&2 1124 { (exit 1); exit 1; }; } 1125 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1126 { echo "$as_me: error: pwd does not report name of working directory" >&2 1127 { (exit 1); exit 1; }; } 1128 1129 706 1130 # Find the source files, if location was not specified. 707 1131 if test -z "$srcdir"; then 708 1132 ac_srcdir_defaulted=yes 709 # Try the directory containing this script, then its parent.710 ac_confdir=` (dirname "$0") 2>/dev/null||1133 # Try the directory containing this script, then the parent directory. 1134 ac_confdir=`$as_dirname -- "$0" || 711 1135 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 712 1136 X"$0" : 'X\(//\)[^/]' \| \ 713 1137 X"$0" : 'X\(//\)$' \| \ 714 X"$0" : 'X\(/\)' \| \ 715 . : '\(.\)' 2>/dev/null || 1138 X"$0" : 'X\(/\)' \| . 2>/dev/null || 716 1139 echo X"$0" | 717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 718 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 719 /^X\(\/\/\)$/{ s//\1/; q; } 720 /^X\(\/\).*/{ s//\1/; q; } 721 s/.*/./; q'` 1140 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1141 s//\1/ 1142 q 1143 } 1144 /^X\(\/\/\)[^/].*/{ 1145 s//\1/ 1146 q 1147 } 1148 /^X\(\/\/\)$/{ 1149 s//\1/ 1150 q 1151 } 1152 /^X\(\/\).*/{ 1153 s//\1/ 1154 q 1155 } 1156 s/.*/./; q'` 722 1157 srcdir=$ac_confdir 723 if test ! -r $srcdir/$ac_unique_file; then1158 if test ! -r "$srcdir/$ac_unique_file"; then 724 1159 srcdir=.. 725 1160 fi … … 727 1162 ac_srcdir_defaulted=no 728 1163 fi 729 if test ! -r $srcdir/$ac_unique_file; then730 if test "$ac_srcdir_defaulted" = yes; then731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&21164 if test ! -r "$srcdir/$ac_unique_file"; then 1165 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1166 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 732 1167 { (exit 1); exit 1; }; } 733 else 734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1168 fi 1169 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1170 ac_abs_confdir=`( 1171 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 735 1172 { (exit 1); exit 1; }; } 736 fi 737 fi 738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 740 { (exit 1); exit 1; }; } 741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 742 ac_env_build_alias_set=${build_alias+set} 743 ac_env_build_alias_value=$build_alias 744 ac_cv_env_build_alias_set=${build_alias+set} 745 ac_cv_env_build_alias_value=$build_alias 746 ac_env_host_alias_set=${host_alias+set} 747 ac_env_host_alias_value=$host_alias 748 ac_cv_env_host_alias_set=${host_alias+set} 749 ac_cv_env_host_alias_value=$host_alias 750 ac_env_target_alias_set=${target_alias+set} 751 ac_env_target_alias_value=$target_alias 752 ac_cv_env_target_alias_set=${target_alias+set} 753 ac_cv_env_target_alias_value=$target_alias 754 ac_env_CC_set=${CC+set} 755 ac_env_CC_value=$CC 756 ac_cv_env_CC_set=${CC+set} 757 ac_cv_env_CC_value=$CC 758 ac_env_CFLAGS_set=${CFLAGS+set} 759 ac_env_CFLAGS_value=$CFLAGS 760 ac_cv_env_CFLAGS_set=${CFLAGS+set} 761 ac_cv_env_CFLAGS_value=$CFLAGS 762 ac_env_LDFLAGS_set=${LDFLAGS+set} 763 ac_env_LDFLAGS_value=$LDFLAGS 764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 765 ac_cv_env_LDFLAGS_value=$LDFLAGS 766 ac_env_CPPFLAGS_set=${CPPFLAGS+set} 767 ac_env_CPPFLAGS_value=$CPPFLAGS 768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS 770 ac_env_CXX_set=${CXX+set} 771 ac_env_CXX_value=$CXX 772 ac_cv_env_CXX_set=${CXX+set} 773 ac_cv_env_CXX_value=$CXX 774 ac_env_CXXFLAGS_set=${CXXFLAGS+set} 775 ac_env_CXXFLAGS_value=$CXXFLAGS 776 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 777 ac_cv_env_CXXFLAGS_value=$CXXFLAGS 778 ac_env_CXXCPP_set=${CXXCPP+set} 779 ac_env_CXXCPP_value=$CXXCPP 780 ac_cv_env_CXXCPP_set=${CXXCPP+set} 781 ac_cv_env_CXXCPP_value=$CXXCPP 1173 pwd)` 1174 # When building in place, set srcdir=. 1175 if test "$ac_abs_confdir" = "$ac_pwd"; then 1176 srcdir=. 1177 fi 1178 # Remove unnecessary trailing slashes from srcdir. 1179 # Double slashes in file names in object file debugging info 1180 # mess up M-x gdb in Emacs. 1181 case $srcdir in 1182 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1183 esac 1184 for ac_var in $ac_precious_vars; do 1185 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1186 eval ac_env_${ac_var}_value=\$${ac_var} 1187 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1188 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1189 done 782 1190 783 1191 # … … 808 1216 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 809 1217 810 _ACEOF811 812 cat <<_ACEOF813 1218 Installation directories: 814 1219 --prefix=PREFIX install architecture-independent files in PREFIX … … 828 1233 --sbindir=DIR system admin executables [EPREFIX/sbin] 829 1234 --libexecdir=DIR program executables [EPREFIX/libexec] 830 --datadir=DIR read-only architecture-independent data [PREFIX/share]831 1235 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 832 1236 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] … … 835 1239 --includedir=DIR C header files [PREFIX/include] 836 1240 --oldincludedir=DIR C header files for non-gcc [/usr/include] 837 --infodir=DIR info documentation [PREFIX/info] 838 --mandir=DIR man documentation [PREFIX/man] 1241 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1242 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1243 --infodir=DIR info documentation [DATAROOTDIR/info] 1244 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1245 --mandir=DIR man documentation [DATAROOTDIR/man] 1246 --docdir=DIR documentation root [DATAROOTDIR/doc/vizservers] 1247 --htmldir=DIR html documentation [DOCDIR] 1248 --dvidir=DIR dvi documentation [DOCDIR] 1249 --pdfdir=DIR pdf documentation [DOCDIR] 1250 --psdir=DIR ps documentation [DOCDIR] 839 1251 _ACEOF 840 1252 … … 852 1264 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 853 1265 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 854 --with-tcllib=DIR location of Tcl binary library libtclstubs.a1266 --with-tcllib=DIR location of Tcl binary library libtclstubs.a 855 1267 [default=/usr/lib] 856 --with-tclinclude=DIR location of tcl.h header file 857 [default=/usr/include] 858 --with-rappture=DIR location of rappture files lib/librappture2.a and 1268 --with-tclinclude=DIR location of tcl.h header file [default=/usr/include] 1269 --with-rappture=DIR location of rappture files lib/librappture2.a and 859 1270 include/rappture2/rappture2.h [default=/usr] 860 1271 … … 864 1275 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 865 1276 nonstandard directory <lib dir> 866 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 867 headers in a nonstandard directory <include dir> 1277 LIBS libraries to pass to the linker, e.g. -l<library> 1278 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1279 you have headers in a nonstandard directory <include dir> 868 1280 CXX C++ compiler command 869 1281 CXXFLAGS C++ compiler flags … … 875 1287 Report bugs to <rappture@nanohub.org>. 876 1288 _ACEOF 1289 ac_status=$? 877 1290 fi 878 1291 879 1292 if test "$ac_init_help" = "recursive"; then 880 1293 # If there are subdirs, report their specific --help. 881 ac_popdir=`pwd`882 1294 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 883 test -d $ac_dir|| continue1295 test -d "$ac_dir" || continue 884 1296 ac_builddir=. 885 1297 886 if test "$ac_dir" != .; then 1298 case "$ac_dir" in 1299 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1300 *) 887 1301 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 888 # A "../" for each directory in $ac_dir_suffix. 889 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 890 else 891 ac_dir_suffix= ac_top_builddir= 892 fi 1302 # A ".." for each directory in $ac_dir_suffix. 1303 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1304 case $ac_top_builddir_sub in 1305 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1306 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1307 esac ;; 1308 esac 1309 ac_abs_top_builddir=$ac_pwd 1310 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1311 # for backward compatibility: 1312 ac_top_builddir=$ac_top_build_prefix 893 1313 894 1314 case $srcdir in 895 .) # No --srcdir option.We are building in place.1315 .) # We are building in place. 896 1316 ac_srcdir=. 897 if test -z "$ac_top_builddir"; then 898 ac_top_srcdir=. 899 else 900 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 901 fi ;; 902 [\\/]* | ?:[\\/]* ) # Absolute path. 1317 ac_top_srcdir=$ac_top_builddir_sub 1318 ac_abs_top_srcdir=$ac_pwd ;; 1319 [\\/]* | ?:[\\/]* ) # Absolute name. 903 1320 ac_srcdir=$srcdir$ac_dir_suffix; 904 ac_top_srcdir=$srcdir ;; 905 *) # Relative path. 906 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 907 ac_top_srcdir=$ac_top_builddir$srcdir ;; 908 esac 909 910 # Do not use `cd foo && pwd` to compute absolute paths, because 911 # the directories may not exist. 912 case `pwd` in 913 .) ac_abs_builddir="$ac_dir";; 914 *) 915 case "$ac_dir" in 916 .) ac_abs_builddir=`pwd`;; 917 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 918 *) ac_abs_builddir=`pwd`/"$ac_dir";; 919 esac;; 920 esac 921 case $ac_abs_builddir in 922 .) ac_abs_top_builddir=${ac_top_builddir}.;; 923 *) 924 case ${ac_top_builddir}. in 925 .) ac_abs_top_builddir=$ac_abs_builddir;; 926 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 927 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 928 esac;; 929 esac 930 case $ac_abs_builddir in 931 .) ac_abs_srcdir=$ac_srcdir;; 932 *) 933 case $ac_srcdir in 934 .) ac_abs_srcdir=$ac_abs_builddir;; 935 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 936 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 937 esac;; 938 esac 939 case $ac_abs_builddir in 940 .) ac_abs_top_srcdir=$ac_top_srcdir;; 941 *) 942 case $ac_top_srcdir in 943 .) ac_abs_top_srcdir=$ac_abs_builddir;; 944 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 945 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 946 esac;; 947 esac 948 949 cd $ac_dir 950 # Check for guested configure; otherwise get Cygnus style configure. 951 if test -f $ac_srcdir/configure.gnu; then 952 echo 953 $SHELL $ac_srcdir/configure.gnu --help=recursive 954 elif test -f $ac_srcdir/configure; then 955 echo 956 $SHELL $ac_srcdir/configure --help=recursive 957 elif test -f $ac_srcdir/configure.ac || 958 test -f $ac_srcdir/configure.in; then 959 echo 960 $ac_configure --help 1321 ac_top_srcdir=$srcdir 1322 ac_abs_top_srcdir=$srcdir ;; 1323 *) # Relative name. 1324 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1325 ac_top_srcdir=$ac_top_build_prefix$srcdir 1326 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1327 esac 1328 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1329 1330 cd "$ac_dir" || { ac_status=$?; continue; } 1331 # Check for guested configure. 1332 if test -f "$ac_srcdir/configure.gnu"; then 1333 echo && 1334 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1335 elif test -f "$ac_srcdir/configure"; then 1336 echo && 1337 $SHELL "$ac_srcdir/configure" --help=recursive 961 1338 else 962 1339 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 963 fi 964 cd "$ac_p opdir"1340 fi || ac_status=$? 1341 cd "$ac_pwd" || { ac_status=$?; break; } 965 1342 done 966 1343 fi 967 1344 968 test -n "$ac_init_help" && exit 01345 test -n "$ac_init_help" && exit $ac_status 969 1346 if $ac_init_version; then 970 1347 cat <<\_ACEOF 971 1348 vizservers configure 0.1 972 generated by GNU Autoconf 2.59 973 974 Copyright (C) 2003 Free Software Foundation, Inc. 1349 generated by GNU Autoconf 2.61 1350 1351 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 1352 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 975 1353 This configure script is free software; the Free Software Foundation 976 1354 gives unlimited permission to copy, distribute and modify it. 977 1355 _ACEOF 978 exit 0 979 fi 980 exec 5>config.log 981 cat >&5 <<_ACEOF 1356 exit 1357 fi 1358 cat >config.log <<_ACEOF 982 1359 This file contains any messages produced by compilers while 983 1360 running configure, to aid debugging if configure makes a mistake. 984 1361 985 1362 It was created by vizservers $as_me 0.1, which was 986 generated by GNU Autoconf 2. 59. Invocation command line was1363 generated by GNU Autoconf 2.61. Invocation command line was 987 1364 988 1365 $ $0 $@ 989 1366 990 1367 _ACEOF 1368 exec 5>>config.log 991 1369 { 992 1370 cat <<_ASUNAME … … 1007 1385 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1008 1386 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1009 hostinfo = `(hostinfo) 2>/dev/null|| echo unknown`1387 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1010 1388 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1011 1389 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` … … 1021 1399 echo "PATH: $as_dir" 1022 1400 done 1401 IFS=$as_save_IFS 1023 1402 1024 1403 } >&5 … … 1042 1421 ac_configure_args0= 1043 1422 ac_configure_args1= 1044 ac_sep=1045 1423 ac_must_keep_next=false 1046 1424 for ac_pass in 1 2 … … 1053 1431 | -silent | --silent | --silen | --sile | --sil) 1054 1432 continue ;; 1055 * " "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)1433 *\'*) 1056 1434 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1057 1435 esac … … 1075 1453 esac 1076 1454 fi 1077 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1078 # Get rid of the leading space. 1079 ac_sep=" " 1455 ac_configure_args="$ac_configure_args '$ac_arg'" 1080 1456 ;; 1081 1457 esac … … 1088 1464 # config.log. We remove comments because anyway the quotes in there 1089 1465 # would cause problems or look ugly. 1090 # WARNING: Be sure not to use single quotes in there, as some shells,1091 # such as our DU 5.0 friend, will then `close' the trap.1466 # WARNING: Use '\'' to represent an apostrophe within the trap. 1467 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1092 1468 trap 'exit_status=$? 1093 1469 # Save into config.log some information that might help in debugging. … … 1102 1478 echo 1103 1479 # The following way of writing the cache mishandles newlines in values, 1104 { 1480 ( 1481 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1482 eval ac_val=\$$ac_var 1483 case $ac_val in #( 1484 *${as_nl}*) 1485 case $ac_var in #( 1486 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1487 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1488 esac 1489 case $ac_var in #( 1490 _ | IFS | as_nl) ;; #( 1491 *) $as_unset $ac_var ;; 1492 esac ;; 1493 esac 1494 done 1105 1495 (set) 2>&1 | 1106 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in1107 * ac_space=\ *)1496 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1497 *${as_nl}ac_space=\ *) 1108 1498 sed -n \ 1109 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1110 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1499 "s/'\''/'\''\\\\'\'''\''/g; 1500 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1501 ;; #( 1502 *) 1503 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1111 1504 ;; 1112 *) 1113 sed -n \ 1114 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1115 ;; 1116 esac; 1117 } 1505 esac | 1506 sort 1507 ) 1118 1508 echo 1119 1509 … … 1126 1516 for ac_var in $ac_subst_vars 1127 1517 do 1128 eval ac_val=$`echo $ac_var` 1129 echo "$ac_var='"'"'$ac_val'"'"'" 1518 eval ac_val=\$$ac_var 1519 case $ac_val in 1520 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1521 esac 1522 echo "$ac_var='\''$ac_val'\''" 1130 1523 done | sort 1131 1524 echo … … 1133 1526 if test -n "$ac_subst_files"; then 1134 1527 cat <<\_ASBOX 1135 ## ------------- ##1136 ## Output files. ##1137 ## ------------- ##1528 ## ------------------- ## 1529 ## File substitutions. ## 1530 ## ------------------- ## 1138 1531 _ASBOX 1139 1532 echo 1140 1533 for ac_var in $ac_subst_files 1141 1534 do 1142 eval ac_val=$`echo $ac_var` 1143 echo "$ac_var='"'"'$ac_val'"'"'" 1535 eval ac_val=\$$ac_var 1536 case $ac_val in 1537 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1538 esac 1539 echo "$ac_var='\''$ac_val'\''" 1144 1540 done | sort 1145 1541 echo … … 1153 1549 _ASBOX 1154 1550 echo 1155 sed "/^$/d" confdefs.h | sort1551 cat confdefs.h 1156 1552 echo 1157 1553 fi … … 1160 1556 echo "$as_me: exit $exit_status" 1161 1557 } >&5 1162 rm -f core *.core &&1163 rm -rfconftest* confdefs* conf$$* $ac_clean_files &&1558 rm -f core *.core core.conftest.* && 1559 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1164 1560 exit $exit_status 1165 1561 ' 0 1166 1562 for ac_signal in 1 2 13 15; do 1167 1563 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal … … 1170 1566 1171 1567 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1172 rm -rf conftest* confdefs.h 1173 # AIX cpp loses on an empty file, so make sure it contains at least a newline. 1174 echo >confdefs.h 1568 rm -f -r conftest* confdefs.h 1175 1569 1176 1570 # Predefined preprocessor variables. … … 1203 1597 # Let the site file select an alternate cache file if it wants to. 1204 1598 # Prefer explicitly selected file to automatically selected ones. 1205 if test -z "$CONFIG_SITE"; then 1206 if test "x$prefix" != xNONE; then 1207 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1208 else 1209 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1210 fi 1211 fi 1212 for ac_site_file in $CONFIG_SITE; do 1599 if test -n "$CONFIG_SITE"; then 1600 set x "$CONFIG_SITE" 1601 elif test "x$prefix" != xNONE; then 1602 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1603 else 1604 set x "$ac_default_prefix/share/config.site" \ 1605 "$ac_default_prefix/etc/config.site" 1606 fi 1607 shift 1608 for ac_site_file 1609 do 1213 1610 if test -r "$ac_site_file"; then 1214 1611 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 … … 1226 1623 echo "$as_me: loading cache $cache_file" >&6;} 1227 1624 case $cache_file in 1228 [\\/]* | ?:[\\/]* ) . $cache_file;;1229 *) . ./$cache_file;;1625 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1626 *) . "./$cache_file";; 1230 1627 esac 1231 1628 fi … … 1239 1636 # value. 1240 1637 ac_cache_corrupted=false 1241 for ac_var in `(set) 2>&1 | 1242 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1638 for ac_var in $ac_precious_vars; do 1243 1639 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1244 1640 eval ac_new_set=\$ac_env_${ac_var}_set 1245 eval ac_old_val= "\$ac_cv_env_${ac_var}_value"1246 eval ac_new_val= "\$ac_env_${ac_var}_value"1641 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1642 eval ac_new_val=\$ac_env_${ac_var}_value 1247 1643 case $ac_old_set,$ac_new_set in 1248 1644 set,) … … 1269 1665 if test "$ac_new_set" = set; then 1270 1666 case $ac_new_val in 1271 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1272 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1667 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1273 1668 *) ac_arg=$ac_var=$ac_new_val ;; 1274 1669 esac … … 1287 1682 fi 1288 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1289 1708 ac_ext=c 1290 1709 ac_cpp='$CPP $CPPFLAGS' … … 1295 1714 1296 1715 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1716 VERSION=0.0.1 1323 1717 … … 1343 1737 1344 1738 ac_aux_dir= 1345 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do1346 if test -f $ac_dir/install-sh; then1739 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 1740 if test -f "$ac_dir/install-sh"; then 1347 1741 ac_aux_dir=$ac_dir 1348 1742 ac_install_sh="$ac_aux_dir/install-sh -c" 1349 1743 break 1350 elif test -f $ac_dir/install.sh; then1744 elif test -f "$ac_dir/install.sh"; then 1351 1745 ac_aux_dir=$ac_dir 1352 1746 ac_install_sh="$ac_aux_dir/install.sh -c" 1353 1747 break 1354 elif test -f $ac_dir/shtool; then1748 elif test -f "$ac_dir/shtool"; then 1355 1749 ac_aux_dir=$ac_dir 1356 1750 ac_install_sh="$ac_aux_dir/shtool install -c" … … 1359 1753 done 1360 1754 if test -z "$ac_aux_dir"; then 1361 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&51362 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}1755 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 1756 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 1363 1757 { (exit 1); exit 1; }; } 1364 1758 fi 1365 ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1366 ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1367 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1759 1760 # These three variables are undocumented and unsupported, 1761 # and are intended to be withdrawn in a future Autoconf release. 1762 # They can cause serious problems if a builder's source tree is in a directory 1763 # whose full name contains unusual characters. 1764 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1765 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1766 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1767 1368 1768 1369 1769 # Find a good install program. We prefer a C program (faster), … … 1380 1780 # OS/2's system install, which has a completely different semantic 1381 1781 # ./install, which can be erroneously created by make from ./install.sh. 1382 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&51383 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1782 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1783 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 1384 1784 if test -z "$INSTALL"; then 1385 1785 if test "${ac_cv_path_install+set}" = set; then … … 1403 1803 for ac_prog in ginstall scoinst install; do 1404 1804 for ac_exec_ext in '' $ac_executable_extensions; do 1405 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then1805 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 1406 1806 if test $ac_prog = install && 1407 1807 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then … … 1422 1822 esac 1423 1823 done 1824 IFS=$as_save_IFS 1424 1825 1425 1826 … … 1428 1829 INSTALL=$ac_cv_path_install 1429 1830 else 1430 # As a last resort, use the slow shell script. We don't cache a1431 # pathfor INSTALL within a source directory, because that will1831 # As a last resort, use the slow shell script. Don't cache a 1832 # value for INSTALL within a source directory, because that will 1432 1833 # break other packages using the cache if that directory is 1433 # removed, or if the path is relative.1834 # removed, or if the value is a relative name. 1434 1835 INSTALL=$ac_install_sh 1435 1836 fi 1436 1837 fi 1437 echo "$as_me:$LINENO: result: $INSTALL" >&51438 echo "${ECHO_T}$INSTALL" >&6 1838 { echo "$as_me:$LINENO: result: $INSTALL" >&5 1839 echo "${ECHO_T}$INSTALL" >&6; } 1439 1840 1440 1841 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. … … 1446 1847 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1447 1848 1448 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&51449 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1450 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`1451 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then1849 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1850 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 1851 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 1852 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 1452 1853 echo $ECHO_N "(cached) $ECHO_C" >&6 1453 1854 else 1454 1855 cat >conftest.make <<\_ACEOF 1856 SHELL = /bin/sh 1455 1857 all: 1456 @echo ' ac_maketemp="$(MAKE)"'1858 @echo '@@@%%%=$(MAKE)=@@@%%%' 1457 1859 _ACEOF 1458 1860 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1459 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1460 if test -n "$ac_maketemp"; then 1461 eval ac_cv_prog_make_${ac_make}_set=yes1462 else 1463 eval ac_cv_prog_make_${ac_make}_set=no1464 fi 1861 case `${MAKE-make} -f conftest.make 2>/dev/null` in 1862 *@@@%%%=?*=@@@%%%*) 1863 eval ac_cv_prog_make_${ac_make}_set=yes;; 1864 *) 1865 eval ac_cv_prog_make_${ac_make}_set=no;; 1866 esac 1465 1867 rm -f conftest.make 1466 1868 fi 1467 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then1468 echo "$as_me:$LINENO: result: yes" >&51469 echo "${ECHO_T}yes" >&6 1869 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 1870 { echo "$as_me:$LINENO: result: yes" >&5 1871 echo "${ECHO_T}yes" >&6; } 1470 1872 SET_MAKE= 1471 1873 else 1472 echo "$as_me:$LINENO: result: no" >&51473 echo "${ECHO_T}no" >&6 1874 { echo "$as_me:$LINENO: result: no" >&5 1875 echo "${ECHO_T}no" >&6; } 1474 1876 SET_MAKE="MAKE=${MAKE-make}" 1475 1877 fi … … 1484 1886 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1485 1887 set dummy ${ac_tool_prefix}gcc; ac_word=$2 1486 echo "$as_me:$LINENO: checking for $ac_word" >&51487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1888 { echo "$as_me:$LINENO: checking for $ac_word" >&5 1889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1488 1890 if test "${ac_cv_prog_CC+set}" = set; then 1489 1891 echo $ECHO_N "(cached) $ECHO_C" >&6 … … 1498 1900 test -z "$as_dir" && as_dir=. 1499 1901 for ac_exec_ext in '' $ac_executable_extensions; do 1500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then1902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1501 1903 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1502 1904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 1505 1907 done 1506 1908 done 1909 IFS=$as_save_IFS 1507 1910 1508 1911 fi … … 1510 1913 CC=$ac_cv_prog_CC 1511 1914 if test -n "$CC"; then 1512 echo "$as_me:$LINENO: result: $CC" >&5 1513 echo "${ECHO_T}$CC" >&6 1514 else 1515 echo "$as_me:$LINENO: result: no" >&5 1516 echo "${ECHO_T}no" >&6 1517 fi 1915 { echo "$as_me:$LINENO: result: $CC" >&5 1916 echo "${ECHO_T}$CC" >&6; } 1917 else 1918 { echo "$as_me:$LINENO: result: no" >&5 1919 echo "${ECHO_T}no" >&6; } 1920 fi 1921 1518 1922 1519 1923 fi … … 1522 1926 # Extract the first word of "gcc", so it can be a program name with args. 1523 1927 set dummy gcc; ac_word=$2 1524 echo "$as_me:$LINENO: checking for $ac_word" >&51525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1928 { echo "$as_me:$LINENO: checking for $ac_word" >&5 1929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1526 1930 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1527 1931 echo $ECHO_N "(cached) $ECHO_C" >&6 … … 1536 1940 test -z "$as_dir" && as_dir=. 1537 1941 for ac_exec_ext in '' $ac_executable_extensions; do 1538 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then1942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1539 1943 ac_cv_prog_ac_ct_CC="gcc" 1540 1944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 1543 1947 done 1544 1948 done 1949 IFS=$as_save_IFS 1545 1950 1546 1951 fi … … 1548 1953 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1549 1954 if test -n "$ac_ct_CC"; then 1550 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1551 echo "${ECHO_T}$ac_ct_CC" >&6 1552 else 1553 echo "$as_me:$LINENO: result: no" >&5 1554 echo "${ECHO_T}no" >&6 1555 fi 1556 1557 CC=$ac_ct_CC 1955 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1956 echo "${ECHO_T}$ac_ct_CC" >&6; } 1957 else 1958 { echo "$as_me:$LINENO: result: no" >&5 1959 echo "${ECHO_T}no" >&6; } 1960 fi 1961 1962 if test "x$ac_ct_CC" = x; then 1963 CC="" 1964 else 1965 case $cross_compiling:$ac_tool_warned in 1966 yes:) 1967 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 1968 whose name does not start with the host triplet. If you think this 1969 configuration is useful to you, please write to autoconf@gnu.org." >&5 1970 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 1971 whose name does not start with the host triplet. If you think this 1972 configuration is useful to you, please write to autoconf@gnu.org." >&2;} 1973 ac_tool_warned=yes ;; 1974 esac 1975 CC=$ac_ct_CC 1976 fi 1558 1977 else 1559 1978 CC="$ac_cv_prog_CC" … … 1561 1980 1562 1981 if test -z "$CC"; then 1563 if test -n "$ac_tool_prefix"; then1564 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.1982 if test -n "$ac_tool_prefix"; then 1983 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1565 1984 set dummy ${ac_tool_prefix}cc; ac_word=$2 1566 echo "$as_me:$LINENO: checking for $ac_word" >&51567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1985 { echo "$as_me:$LINENO: checking for $ac_word" >&5 1986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1568 1987 if test "${ac_cv_prog_CC+set}" = set; then 1569 1988 echo $ECHO_N "(cached) $ECHO_C" >&6 … … 1578 1997 test -z "$as_dir" && as_dir=. 1579 1998 for ac_exec_ext in '' $ac_executable_extensions; do 1580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then1999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1581 2000 ac_cv_prog_CC="${ac_tool_prefix}cc" 1582 2001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 1585 2004 done 1586 2005 done 2006 IFS=$as_save_IFS 1587 2007 1588 2008 fi … … 1590 2010 CC=$ac_cv_prog_CC 1591 2011 if test -n "$CC"; then 1592 echo "$as_me:$LINENO: result: $CC" >&5 1593 echo "${ECHO_T}$CC" >&6 1594 else 1595 echo "$as_me:$LINENO: result: no" >&5 1596 echo "${ECHO_T}no" >&6 1597 fi 1598 1599 fi 1600 if test -z "$ac_cv_prog_CC"; then 1601 ac_ct_CC=$CC 1602 # Extract the first word of "cc", so it can be a program name with args. 1603 set dummy cc; ac_word=$2 1604 echo "$as_me:$LINENO: checking for $ac_word" >&5 1605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1606 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1607 echo $ECHO_N "(cached) $ECHO_C" >&6 1608 else 1609 if test -n "$ac_ct_CC"; then 1610 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1611 else 1612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1613 for as_dir in $PATH 1614 do 1615 IFS=$as_save_IFS 1616 test -z "$as_dir" && as_dir=. 1617 for ac_exec_ext in '' $ac_executable_extensions; do 1618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1619 ac_cv_prog_ac_ct_CC="cc" 1620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1621 break 2 2012 { echo "$as_me:$LINENO: result: $CC" >&5 2013 echo "${ECHO_T}$CC" >&6; } 2014 else 2015 { echo "$as_me:$LINENO: result: no" >&5 2016 echo "${ECHO_T}no" >&6; } 2017 fi 2018 2019 1622 2020 fi 1623 done1624 done1625 1626 fi1627 fi1628 ac_ct_CC=$ac_cv_prog_ac_ct_CC1629 if test -n "$ac_ct_CC"; then1630 echo "$as_me:$LINENO: result: $ac_ct_CC" >&51631 echo "${ECHO_T}$ac_ct_CC" >&61632 else1633 echo "$as_me:$LINENO: result: no" >&51634 echo "${ECHO_T}no" >&61635 fi1636 1637 CC=$ac_ct_CC1638 else1639 CC="$ac_cv_prog_CC"1640 fi1641 1642 2021 fi 1643 2022 if test -z "$CC"; then 1644 2023 # Extract the first word of "cc", so it can be a program name with args. 1645 2024 set dummy cc; ac_word=$2 1646 echo "$as_me:$LINENO: checking for $ac_word" >&51647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2025 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1648 2027 if test "${ac_cv_prog_CC+set}" = set; then 1649 2028 echo $ECHO_N "(cached) $ECHO_C" >&6 … … 1659 2038 test -z "$as_dir" && as_dir=. 1660 2039 for ac_exec_ext in '' $ac_executable_extensions; do 1661 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then2040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1662 2041 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1663 2042 ac_prog_rejected=yes … … 1670 2049 done 1671 2050 done 2051 IFS=$as_save_IFS 1672 2052 1673 2053 if test $ac_prog_rejected = yes; then … … 1687 2067 CC=$ac_cv_prog_CC 1688 2068 if test -n "$CC"; then 1689 echo "$as_me:$LINENO: result: $CC" >&5 1690 echo "${ECHO_T}$CC" >&6 1691 else 1692 echo "$as_me:$LINENO: result: no" >&5 1693 echo "${ECHO_T}no" >&6 1694 fi 2069 { echo "$as_me:$LINENO: result: $CC" >&5 2070 echo "${ECHO_T}$CC" >&6; } 2071 else 2072 { echo "$as_me:$LINENO: result: no" >&5 2073 echo "${ECHO_T}no" >&6; } 2074 fi 2075 1695 2076 1696 2077 fi 1697 2078 if test -z "$CC"; then 1698 2079 if test -n "$ac_tool_prefix"; then 1699 for ac_prog in cl 2080 for ac_prog in cl.exe 1700 2081 do 1701 2082 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1702 2083 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1703 echo "$as_me:$LINENO: checking for $ac_word" >&51704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2084 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1705 2086 if test "${ac_cv_prog_CC+set}" = set; then 1706 2087 echo $ECHO_N "(cached) $ECHO_C" >&6 … … 1715 2096 test -z "$as_dir" && as_dir=. 1716 2097 for ac_exec_ext in '' $ac_executable_extensions; do 1717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then2098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1718 2099 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1719 2100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 1722 2103 done 1723 2104 done 2105 IFS=$as_save_IFS 1724 2106 1725 2107 fi … … 1727 2109 CC=$ac_cv_prog_CC 1728 2110 if test -n "$CC"; then 1729 echo "$as_me:$LINENO: result: $CC" >&5 1730 echo "${ECHO_T}$CC" >&6 1731 else 1732 echo "$as_me:$LINENO: result: no" >&5 1733 echo "${ECHO_T}no" >&6 1734 fi 2111 { echo "$as_me:$LINENO: result: $CC" >&5 2112 echo "${ECHO_T}$CC" >&6; } 2113 else 2114 { echo "$as_me:$LINENO: result: no" >&5 2115 echo "${ECHO_T}no" >&6; } 2116 fi 2117 1735 2118 1736 2119 test -n "$CC" && break … … 1739 2122 if test -z "$CC"; then 1740 2123 ac_ct_CC=$CC 1741 for ac_prog in cl 2124 for ac_prog in cl.exe 1742 2125 do 1743 2126 # Extract the first word of "$ac_prog", so it can be a program name with args. 1744 2127 set dummy $ac_prog; ac_word=$2 1745 echo "$as_me:$LINENO: checking for $ac_word" >&51746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2128 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1747 2130 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1748 2131 echo $ECHO_N "(cached) $ECHO_C" >&6 … … 1757 2140 test -z "$as_dir" && as_dir=. 1758 2141 for ac_exec_ext in '' $ac_executable_extensions; do 1759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then2142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1760 2143 ac_cv_prog_ac_ct_CC="$ac_prog" 1761 2144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 1764 2147 done 1765 2148 done 2149 IFS=$as_save_IFS 1766 2150 1767 2151 fi … … 1769 2153 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1770 2154 if test -n "$ac_ct_CC"; then 1771 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1772 echo "${ECHO_T}$ac_ct_CC" >&6 1773 else 1774 echo "$as_me:$LINENO: result: no" >&5 1775 echo "${ECHO_T}no" >&6 1776 fi 2155 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2156 echo "${ECHO_T}$ac_ct_CC" >&6; } 2157 else 2158 { echo "$as_me:$LINENO: result: no" >&5 2159 echo "${ECHO_T}no" >&6; } 2160 fi 2161 1777 2162 1778 2163 test -n "$ac_ct_CC" && break 1779 2164 done 1780 2165 1781 CC=$ac_ct_CC 2166 if test "x$ac_ct_CC" = x; then 2167 CC="" 2168 else 2169 case $cross_compiling:$ac_tool_warned in 2170 yes:) 2171 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2172 whose name does not start with the host triplet. If you think this 2173 configuration is useful to you, please write to autoconf@gnu.org." >&5 2174 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2175 whose name does not start with the host triplet. If you think this 2176 configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2177 ac_tool_warned=yes ;; 2178 esac 2179 CC=$ac_ct_CC 2180 fi 1782 2181 fi 1783 2182 … … 1792 2191 1793 2192 # Provide some information about the compiler. 1794 echo "$as_me:$LINENO:" \ 1795 "checking for C compiler version" >&5 2193 echo "$as_me:$LINENO: checking for C compiler version" >&5 1796 2194 ac_compiler=`set X $ac_compile; echo $2` 1797 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1798 (eval $ac_compiler --version </dev/null >&5) 2>&5 2195 { (ac_try="$ac_compiler --version >&5" 2196 case "(($ac_try" in 2197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2198 *) ac_try_echo=$ac_try;; 2199 esac 2200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2201 (eval "$ac_compiler --version >&5") 2>&5 1799 2202 ac_status=$? 1800 2203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1801 2204 (exit $ac_status); } 1802 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1803 (eval $ac_compiler -v </dev/null >&5) 2>&5 2205 { (ac_try="$ac_compiler -v >&5" 2206 case "(($ac_try" in 2207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2208 *) ac_try_echo=$ac_try;; 2209 esac 2210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2211 (eval "$ac_compiler -v >&5") 2>&5 1804 2212 ac_status=$? 1805 2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1806 2214 (exit $ac_status); } 1807 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1808 (eval $ac_compiler -V </dev/null >&5) 2>&5 2215 { (ac_try="$ac_compiler -V >&5" 2216 case "(($ac_try" in 2217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2218 *) ac_try_echo=$ac_try;; 2219 esac 2220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2221 (eval "$ac_compiler -V >&5") 2>&5 1809 2222 ac_status=$? 1810 2223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 … … 1831 2244 # It will help us diagnose broken compilers, and finding out an intuition 1832 2245 # of exeext. 1833 echo "$as_me:$LINENO: checking for C compiler default output file name" >&51834 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2246 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2247 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 1835 2248 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1836 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1837 (eval $ac_link_default) 2>&5 2249 # 2250 # List of possible output files, starting from the most likely. 2251 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2252 # only as a last resort. b.out is created by i960 compilers. 2253 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2254 # 2255 # The IRIX 6 linker writes into existing files which may not be 2256 # executable, retaining their permissions. Remove them first so a 2257 # subsequent execution test works. 2258 ac_rmfiles= 2259 for ac_file in $ac_files 2260 do 2261 case $ac_file in 2262 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2263 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2264 esac 2265 done 2266 rm -f $ac_rmfiles 2267 2268 if { (ac_try="$ac_link_default" 2269 case "(($ac_try" in 2270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2271 *) ac_try_echo=$ac_try;; 2272 esac 2273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2274 (eval "$ac_link_default") 2>&5 1838 2275 ac_status=$? 1839 2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1840 2277 (exit $ac_status); }; then 1841 # Find the output, starting from the most likely. This scheme is 1842 # not robust to junk in `.', hence go to wildcards (a.*) only as a last 1843 # resort. 1844 1845 # Be careful to initialize this variable, since it used to be cached. 1846 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1847 ac_cv_exeext= 1848 # b.out is created by i960 compilers. 1849 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2278 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2279 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2280 # in a Makefile. We should not override ac_cv_exeext if it was cached, 2281 # so that the user can short-circuit this test for compilers unknown to 2282 # Autoconf. 2283 for ac_file in $ac_files '' 1850 2284 do 1851 2285 test -f "$ac_file" || continue 1852 2286 case $ac_file in 1853 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 1854 ;; 1855 conftest.$ac_ext ) 1856 # This is the source file. 2287 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 1857 2288 ;; 1858 2289 [ab].out ) … … 1861 2292 break;; 1862 2293 *.* ) 1863 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1864 # FIXME: I believe we export ac_cv_exeext for Libtool, 1865 # but it would be cool to find out if it's true. Does anybody 1866 # maintain Libtool? --akim. 1867 export ac_cv_exeext 2294 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2295 then :; else 2296 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2297 fi 2298 # We set ac_cv_exeext here because the later test for it is not 2299 # safe: cross compilers may not add the suffix if given an `-o' 2300 # argument, so we may need to know it at that point already. 2301 # Even if this section looks crufty: it has the advantage of 2302 # actually working. 1868 2303 break;; 1869 2304 * ) … … 1871 2306 esac 1872 2307 done 1873 else 2308 test "$ac_cv_exeext" = no && ac_cv_exeext= 2309 2310 else 2311 ac_file='' 2312 fi 2313 2314 { echo "$as_me:$LINENO: result: $ac_file" >&5 2315 echo "${ECHO_T}$ac_file" >&6; } 2316 if test -z "$ac_file"; then 1874 2317 echo "$as_me: failed program was:" >&5 1875 2318 sed 's/^/| /' conftest.$ac_ext >&5 … … 1883 2326 1884 2327 ac_exeext=$ac_cv_exeext 1885 echo "$as_me:$LINENO: result: $ac_file" >&5 1886 echo "${ECHO_T}$ac_file" >&6 1887 1888 # Check the compiler produces executables we can run. If not, either 2328 2329 # Check that the compiler produces executables we can run. If not, either 1889 2330 # the compiler is broken, or we cross compile. 1890 echo "$as_me:$LINENO: checking whether the C compiler works" >&51891 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2331 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2332 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 1892 2333 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1893 2334 # If not cross compiling, check that we can run a simple program. 1894 2335 if test "$cross_compiling" != yes; then 1895 2336 if { ac_try='./$ac_file' 1896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1897 (eval $ac_try) 2>&5 2337 { (case "(($ac_try" in 2338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2339 *) ac_try_echo=$ac_try;; 2340 esac 2341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2342 (eval "$ac_try") 2>&5 1898 2343 ac_status=$? 1899 2344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 … … 1914 2359 fi 1915 2360 fi 1916 echo "$as_me:$LINENO: result: yes" >&51917 echo "${ECHO_T}yes" >&6 2361 { echo "$as_me:$LINENO: result: yes" >&5 2362 echo "${ECHO_T}yes" >&6; } 1918 2363 1919 2364 rm -f a.out a.exe conftest$ac_cv_exeext b.out 1920 2365 ac_clean_files=$ac_clean_files_save 1921 # Check th e compiler produces executables we can run. If not, either2366 # Check that the compiler produces executables we can run. If not, either 1922 2367 # the compiler is broken, or we cross compile. 1923 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 1924 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1925 echo "$as_me:$LINENO: result: $cross_compiling" >&5 1926 echo "${ECHO_T}$cross_compiling" >&6 1927 1928 echo "$as_me:$LINENO: checking for suffix of executables" >&5 1929 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 1930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 1931 (eval $ac_link) 2>&5 2368 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2369 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2370 { echo "$as_me:$LINENO: result: $cross_compiling" >&5 2371 echo "${ECHO_T}$cross_compiling" >&6; } 2372 2373 { echo "$as_me:$LINENO: checking for suffix of executables" >&5 2374 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2375 if { (ac_try="$ac_link" 2376 case "(($ac_try" in 2377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2378 *) ac_try_echo=$ac_try;; 2379 esac 2380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2381 (eval "$ac_link") 2>&5 1932 2382 ac_status=$? 1933 2383 echo "$as_me:$LINENO: \$? = $ac_status" >&5 … … 1940 2390 test -f "$ac_file" || continue 1941 2391 case $ac_file in 1942 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *. o | *.obj ) ;;2392 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 1943 2393 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1944 export ac_cv_exeext1945 2394 break;; 1946 2395 * ) break;; … … 1956 2405 1957 2406 rm -f conftest$ac_cv_exeext 1958 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&51959 echo "${ECHO_T}$ac_cv_exeext" >&6 2407 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2408 echo "${ECHO_T}$ac_cv_exeext" >&6; } 1960 2409 1961 2410 rm -f conftest.$ac_ext 1962 2411 EXEEXT=$ac_cv_exeext 1963 2412 ac_exeext=$EXEEXT 1964 echo "$as_me:$LINENO: checking for suffix of object files" >&51965 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2413 { echo "$as_me:$LINENO: checking for suffix of object files" >&5 2414 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 1966 2415 if test "${ac_cv_objext+set}" = set; then 1967 2416 echo $ECHO_N "(cached) $ECHO_C" >&6 … … 1983 2432 _ACEOF 1984 2433 rm -f conftest.o conftest.obj 1985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1986 (eval $ac_compile) 2>&5 2434 if { (ac_try="$ac_compile" 2435 case "(($ac_try" in 2436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2437 *) ac_try_echo=$ac_try;; 2438 esac 2439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2440 (eval "$ac_compile") 2>&5 1987 2441 ac_status=$? 1988 2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1989 2443 (exit $ac_status); }; then 1990 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2444 for ac_file in conftest.o conftest.obj conftest.*; do 2445 test -f "$ac_file" || continue; 1991 2446 case $ac_file in 1992 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;2447 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 1993 2448 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1994 2449 break;; … … 2008 2463 rm -f conftest.$ac_cv_objext conftest.$ac_ext 2009 2464 fi 2010 echo "$as_me:$LINENO: result: $ac_cv_objext" >&52011 echo "${ECHO_T}$ac_cv_objext" >&6 2465 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2466 echo "${ECHO_T}$ac_cv_objext" >&6; } 2012 2467 OBJEXT=$ac_cv_objext 2013 2468 ac_objext=$OBJEXT 2014 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&52015 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2469 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2470 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2016 2471 if test "${ac_cv_c_compiler_gnu+set}" = set; then 2017 2472 echo $ECHO_N "(cached) $ECHO_C" >&6 … … 2036 2491 _ACEOF 2037 2492 rm -f conftest.$ac_objext 2038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2039 (eval $ac_compile) 2>conftest.er1 2493 if { (ac_try="$ac_compile" 2494 case "(($ac_try" in 2495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2496 *) ac_try_echo=$ac_try;; 2497 esac 2498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2499 (eval "$ac_compile") 2>conftest.er1 2040 2500 ac_status=$? 2041 2501 grep -v '^ *+' conftest.er1 >conftest.err … … 2043 2503 cat conftest.err >&5 2044 2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2045 (exit $ac_status); } && 2046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2048 (eval $ac_try) 2>&5 2049 ac_status=$? 2050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2051 (exit $ac_status); }; } && 2052 { ac_try='test -s conftest.$ac_objext' 2053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2054 (eval $ac_try) 2>&5 2055 ac_status=$? 2056 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2057 (exit $ac_status); }; }; then 2505 (exit $ac_status); } && { 2506 test -z "$ac_c_werror_flag" || 2507 test ! -s conftest.err 2508 } && test -s conftest.$ac_objext; then 2058 2509 ac_compiler_gnu=yes 2059 2510 else … … 2061 2512 sed 's/^/| /' conftest.$ac_ext >&5 2062 2513 2063 ac_compiler_gnu=no 2064 fi 2065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2514 ac_compiler_gnu=no 2515 fi 2516 2517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2066 2518 ac_cv_c_compiler_gnu=$ac_compiler_gnu 2067 2519 2068 2520 fi 2069 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&52070 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2521 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2522 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2071 2523 GCC=`test $ac_compiler_gnu = yes && echo yes` 2072 2524 ac_test_CFLAGS=${CFLAGS+set} 2073 2525 ac_save_CFLAGS=$CFLAGS 2074 CFLAGS="-g" 2075 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2076 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2526 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2527 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 2077 2528 if test "${ac_cv_prog_cc_g+set}" = set; then 2078 2529 echo $ECHO_N "(cached) $ECHO_C" >&6 2079 2530 else 2080 cat >conftest.$ac_ext <<_ACEOF 2531 ac_save_c_werror_flag=$ac_c_werror_flag 2532 ac_c_werror_flag=yes 2533 ac_cv_prog_cc_g=no 2534 CFLAGS="-g" 2535 cat >conftest.$ac_ext <<_ACEOF 2081 2536 /* confdefs.h. */ 2082 2537 _ACEOF … … 2094 2549 _ACEOF 2095 2550 rm -f conftest.$ac_objext 2096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2097 (eval $ac_compile) 2>conftest.er1 2551 if { (ac_try="$ac_compile" 2552 case "(($ac_try" in 2553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2554 *) ac_try_echo=$ac_try;; 2555 esac 2556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2557 (eval "$ac_compile") 2>conftest.er1 2098 2558 ac_status=$? 2099 2559 grep -v '^ *+' conftest.er1 >conftest.err … … 2101 2561 cat conftest.err >&5 2102 2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2103 (exit $ac_status); } && 2104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2106 (eval $ac_try) 2>&5 2107 ac_status=$? 2108 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2109 (exit $ac_status); }; } && 2110 { ac_try='test -s conftest.$ac_objext' 2111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2112 (eval $ac_try) 2>&5 2113 ac_status=$? 2114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2115 (exit $ac_status); }; }; then 2563 (exit $ac_status); } && { 2564 test -z "$ac_c_werror_flag" || 2565 test ! -s conftest.err 2566 } && test -s conftest.$ac_objext; then 2116 2567 ac_cv_prog_cc_g=yes 2117 2568 else … … 2119 2570 sed 's/^/| /' conftest.$ac_ext >&5 2120 2571 2121 ac_cv_prog_cc_g=no 2122 fi 2123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2124 fi 2125 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2126 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2572 CFLAGS="" 2573 cat >conftest.$ac_ext <<_ACEOF 2574 /* confdefs.h. */ 2575 _ACEOF 2576 cat confdefs.h >>conftest.$ac_ext 2577 cat >>conftest.$ac_ext <<_ACEOF 2578 /* end confdefs.h. */ 2579 2580 int 2581 main () 2582 { 2583 2584 ; 2585 return 0; 2586 } 2587 _ACEOF 2588 rm -f conftest.$ac_objext 2589 if { (ac_try="$ac_compile" 2590 case "(($ac_try" in 2591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2592 *) ac_try_echo=$ac_try;; 2593 esac 2594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2595 (eval "$ac_compile") 2>conftest.er1 2596 ac_status=$? 2597 grep -v '^ *+' conftest.er1 >conftest.err 2598 rm -f conftest.er1 2599 cat conftest.err >&5 2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2601 (exit $ac_status); } && { 2602 test -z "$ac_c_werror_flag" || 2603 test ! -s conftest.err 2604 } && test -s conftest.$ac_objext; then 2605 : 2606 else 2607 echo "$as_me: failed program was:" >&5 2608 sed 's/^/| /' conftest.$ac_ext >&5 2609 2610 ac_c_werror_flag=$ac_save_c_werror_flag 2611 CFLAGS="-g" 2612 cat >conftest.$ac_ext <<_ACEOF 2613 /* confdefs.h. */ 2614 _ACEOF 2615 cat confdefs.h >>conftest.$ac_ext 2616 cat >>conftest.$ac_ext <<_ACEOF 2617 /* end confdefs.h. */ 2618 2619 int 2620 main () 2621 { 2622 2623 ; 2624 return 0; 2625 } 2626 _ACEOF 2627 rm -f conftest.$ac_objext 2628 if { (ac_try="$ac_compile" 2629 case "(($ac_try" in 2630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2631 *) ac_try_echo=$ac_try;; 2632 esac 2633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2634 (eval "$ac_compile") 2>conftest.er1 2635 ac_status=$? 2636 grep -v '^ *+' conftest.er1 >conftest.err 2637 rm -f conftest.er1 2638 cat conftest.err >&5 2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2640 (exit $ac_status); } && { 2641 test -z "$ac_c_werror_flag" || 2642 test ! -s conftest.err 2643 } && test -s conftest.$ac_objext; then 2644 ac_cv_prog_cc_g=yes 2645 else 2646 echo "$as_me: failed program was:" >&5 2647 sed 's/^/| /' conftest.$ac_ext >&5 2648 2649 2650 fi 2651 2652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2653 fi 2654 2655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2656 fi 2657 2658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2659 ac_c_werror_flag=$ac_save_c_werror_flag 2660 fi 2661 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2662 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 2127 2663 if test "$ac_test_CFLAGS" = set; then 2128 2664 CFLAGS=$ac_save_CFLAGS … … 2140 2676 fi 2141 2677 fi 2142 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&52143 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&62144 if test "${ac_cv_prog_cc_ stdc+set}" = set; then2678 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 2679 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 2680 if test "${ac_cv_prog_cc_c89+set}" = set; then 2145 2681 echo $ECHO_N "(cached) $ECHO_C" >&6 2146 2682 else 2147 ac_cv_prog_cc_ stdc=no2683 ac_cv_prog_cc_c89=no 2148 2684 ac_save_CC=$CC 2149 2685 cat >conftest.$ac_ext <<_ACEOF … … 2179 2715 function prototypes and stuff, but not '\xHH' hex character constants. 2180 2716 These don't provoke an error unfortunately, instead are silently treated 2181 as 'x'. The following induces an error, until -std 1is added to get2717 as 'x'. The following induces an error, until -std is added to get 2182 2718 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2183 2719 array size at least. It's necessary to write '\x00'==0 to get something 2184 that's true only with -std 1. */2720 that's true only with -std. */ 2185 2721 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2722 2723 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2724 inside strings and character constants. */ 2725 #define FOO(x) 'x' 2726 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2186 2727 2187 2728 int test (int i, double x); … … 2199 2740 } 2200 2741 _ACEOF 2201 # Don't try gcc -ansi; that turns off useful extensions and 2202 # breaks some systems' header files. 2203 # AIX -qlanglvl=ansi 2204 # Ultrix and OSF/1 -std1 2205 # HP-UX 10.20 and later -Ae 2206 # HP-UX older versions -Aa -D_HPUX_SOURCE 2207 # SVR4 -Xc -D__EXTENSIONS__ 2208 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2742 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 2743 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2209 2744 do 2210 2745 CC="$ac_save_CC $ac_arg" 2211 2746 rm -f conftest.$ac_objext 2212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2213 (eval $ac_compile) 2>conftest.er1 2747 if { (ac_try="$ac_compile" 2748 case "(($ac_try" in 2749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2750 *) ac_try_echo=$ac_try;; 2751 esac 2752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2753 (eval "$ac_compile") 2>conftest.er1 2214 2754 ac_status=$? 2215 2755 grep -v '^ *+' conftest.er1 >conftest.err … … 2217 2757 cat conftest.err >&5 2218 2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2219 (exit $ac_status); } && 2220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2222 (eval $ac_try) 2>&5 2223 ac_status=$? 2224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2225 (exit $ac_status); }; } && 2226 { ac_try='test -s conftest.$ac_objext' 2227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2228 (eval $ac_try) 2>&5 2229 ac_status=$? 2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2231 (exit $ac_status); }; }; then 2232 ac_cv_prog_cc_stdc=$ac_arg 2233 break 2759 (exit $ac_status); } && { 2760 test -z "$ac_c_werror_flag" || 2761 test ! -s conftest.err 2762 } && test -s conftest.$ac_objext; then 2763 ac_cv_prog_cc_c89=$ac_arg 2234 2764 else 2235 2765 echo "$as_me: failed program was:" >&5 2236 2766 sed 's/^/| /' conftest.$ac_ext >&5 2237 2767 2238 fi 2239 rm -f conftest.err conftest.$ac_objext 2240 done 2241 rm -f conftest.$ac_ext conftest.$ac_objext 2768 2769 fi 2770 2771 rm -f core conftest.err conftest.$ac_objext 2772 test "x$ac_cv_prog_cc_c89" != "xno" && break 2773 done 2774 rm -f conftest.$ac_ext 2242 2775 CC=$ac_save_CC 2243 2776 2244 2777 fi 2245 2246 case "x$ac_cv_prog_cc_stdc" in 2247 x|xno) 2248 echo "$as_me:$LINENO: result: none needed" >&5 2249 echo "${ECHO_T}none needed" >&6 ;; 2778 # AC_CACHE_VAL 2779 case "x$ac_cv_prog_cc_c89" in 2780 x) 2781 { echo "$as_me:$LINENO: result: none needed" >&5 2782 echo "${ECHO_T}none needed" >&6; } ;; 2783 xno) 2784 { echo "$as_me:$LINENO: result: unsupported" >&5 2785 echo "${ECHO_T}unsupported" >&6; } ;; 2250 2786 *) 2251 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2252 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2253 CC="$CC $ac_cv_prog_cc_stdc" ;; 2254 esac 2255 2256 # Some people use a C++ compiler to compile C. Since we use `exit', 2257 # in C++ we need to declare it. In case someone uses the same compiler 2258 # for both compiling C and C++ we need to have the C++ compiler decide 2259 # the declaration of exit, since it's the most demanding environment. 2260 cat >conftest.$ac_ext <<_ACEOF 2261 #ifndef __cplusplus 2262 choke me 2263 #endif 2264 _ACEOF 2265 rm -f conftest.$ac_objext 2266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2267 (eval $ac_compile) 2>conftest.er1 2268 ac_status=$? 2269 grep -v '^ *+' conftest.er1 >conftest.err 2270 rm -f conftest.er1 2271 cat conftest.err >&5 2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2273 (exit $ac_status); } && 2274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2276 (eval $ac_try) 2>&5 2277 ac_status=$? 2278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2279 (exit $ac_status); }; } && 2280 { ac_try='test -s conftest.$ac_objext' 2281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2282 (eval $ac_try) 2>&5 2283 ac_status=$? 2284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2285 (exit $ac_status); }; }; then 2286 for ac_declaration in \ 2287 '' \ 2288 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2289 'extern "C" void std::exit (int); using std::exit;' \ 2290 'extern "C" void exit (int) throw ();' \ 2291 'extern "C" void exit (int);' \ 2292 'void exit (int);' 2293 do 2294 cat >conftest.$ac_ext <<_ACEOF 2295 /* confdefs.h. */ 2296 _ACEOF 2297 cat confdefs.h >>conftest.$ac_ext 2298 cat >>conftest.$ac_ext <<_ACEOF 2299 /* end confdefs.h. */ 2300 $ac_declaration 2301 #include <stdlib.h> 2302 int 2303 main () 2304 { 2305 exit (42); 2306 ; 2307 return 0; 2308 } 2309 _ACEOF 2310 rm -f conftest.$ac_objext 2311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2312 (eval $ac_compile) 2>conftest.er1 2313 ac_status=$? 2314 grep -v '^ *+' conftest.er1 >conftest.err 2315 rm -f conftest.er1 2316 cat conftest.err >&5 2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2318 (exit $ac_status); } && 2319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2321 (eval $ac_try) 2>&5 2322 ac_status=$? 2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2324 (exit $ac_status); }; } && 2325 { ac_try='test -s conftest.$ac_objext' 2326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2327 (eval $ac_try) 2>&5 2328 ac_status=$? 2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2330 (exit $ac_status); }; }; then 2331 : 2332 else 2333 echo "$as_me: failed program was:" >&5 2334 sed 's/^/| /' conftest.$ac_ext >&5 2335 2336 continue 2337 fi 2338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2339 cat >conftest.$ac_ext <<_ACEOF 2340 /* confdefs.h. */ 2341 _ACEOF 2342 cat confdefs.h >>conftest.$ac_ext 2343 cat >>conftest.$ac_ext <<_ACEOF 2344 /* end confdefs.h. */ 2345 $ac_declaration 2346 int 2347 main () 2348 { 2349 exit (42); 2350 ; 2351 return 0; 2352 } 2353 _ACEOF 2354 rm -f conftest.$ac_objext 2355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2356 (eval $ac_compile) 2>conftest.er1 2357 ac_status=$? 2358 grep -v '^ *+' conftest.er1 >conftest.err 2359 rm -f conftest.er1 2360 cat conftest.err >&5 2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2362 (exit $ac_status); } && 2363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2365 (eval $ac_try) 2>&5 2366 ac_status=$? 2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2368 (exit $ac_status); }; } && 2369 { ac_try='test -s conftest.$ac_objext' 2370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2371 (eval $ac_try) 2>&5 2372 ac_status=$? 2373 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2374 (exit $ac_status); }; }; then 2375 break 2376 else 2377 echo "$as_me: failed program was:" >&5 2378 sed 's/^/| /' conftest.$ac_ext >&5 2379 2380 fi 2381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2382 done 2383 rm -f conftest* 2384 if test -n "$ac_declaration"; then 2385 echo '#ifdef __cplusplus' >>confdefs.h 2386 echo $ac_declaration >>confdefs.h 2387 echo '#endif' >>confdefs.h 2388 fi 2389 2390 else 2391 echo "$as_me: failed program was:" >&5 2392 sed 's/^/| /' conftest.$ac_ext >&5 2393 2394 fi 2395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2787 CC="$CC $ac_cv_prog_cc_c89" 2788 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 2789 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 2790 esac 2791 2792 2396 2793 ac_ext=c 2397 2794 ac_cpp='$CPP $CPPFLAGS' … … 2407 2804 2408 2805 2409 ac_ext=cc2410 ac_cpp='$CXXCPP $CPPFLAGS'2411 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'2412 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'2413 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu2414 2806 if test -n "$ac_tool_prefix"; then 2415 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 2416 do 2417 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2418 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2419 echo "$as_me:$LINENO: checking for $ac_word" >&5 2420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2421 if test "${ac_cv_prog_CXX+set}" = set; then 2807 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 2808 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 2809 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2811 if test "${ac_cv_prog_RANLIB+set}" = set; then 2422 2812 echo $ECHO_N "(cached) $ECHO_C" >&6 2423 2813 else 2424 if test -n "$ CXX"; then2425 ac_cv_prog_ CXX="$CXX" # Let the user override the test.2814 if test -n "$RANLIB"; then 2815 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2426 2816 else 2427 2817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR … … 2431 2821 test -z "$as_dir" && as_dir=. 2432 2822 for ac_exec_ext in '' $ac_executable_extensions; do 2433 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then2434 ac_cv_prog_ CXX="$ac_tool_prefix$ac_prog"2823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2824 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 2435 2825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2436 2826 break 2 … … 2438 2828 done 2439 2829 done 2440 2441 fi 2442 fi 2443 CXX=$ac_cv_prog_CXX 2444 if test -n "$CXX"; then 2445 echo "$as_me:$LINENO: result: $CXX" >&5 2446 echo "${ECHO_T}$CXX" >&6 2447 else 2448 echo "$as_me:$LINENO: result: no" >&5 2449 echo "${ECHO_T}no" >&6 2450 fi 2451 2452 test -n "$CXX" && break 2453 done 2454 fi 2455 if test -z "$CXX"; then 2456 ac_ct_CXX=$CXX 2457 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 2458 do 2459 # Extract the first word of "$ac_prog", so it can be a program name with args. 2460 set dummy $ac_prog; ac_word=$2 2461 echo "$as_me:$LINENO: checking for $ac_word" >&5 2462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2463 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 2830 IFS=$as_save_IFS 2831 2832 fi 2833 fi 2834 RANLIB=$ac_cv_prog_RANLIB 2835 if test -n "$RANLIB"; then 2836 { echo "$as_me:$LINENO: result: $RANLIB" >&5 2837 echo "${ECHO_T}$RANLIB" >&6; } 2838 else 2839 { echo "$as_me:$LINENO: result: no" >&5 2840 echo "${ECHO_T}no" >&6; } 2841 fi 2842 2843 2844 fi 2845 if test -z "$ac_cv_prog_RANLIB"; then 2846 ac_ct_RANLIB=$RANLIB 2847 # Extract the first word of "ranlib", so it can be a program name with args. 2848 set dummy ranlib; ac_word=$2 2849 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2851 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 2464 2852 echo $ECHO_N "(cached) $ECHO_C" >&6 2465 2853 else 2466 if test -n "$ac_ct_ CXX"; then2467 ac_cv_prog_ac_ct_ CXX="$ac_ct_CXX" # Let the user override the test.2854 if test -n "$ac_ct_RANLIB"; then 2855 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 2468 2856 else 2469 2857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR … … 2473 2861 test -z "$as_dir" && as_dir=. 2474 2862 for ac_exec_ext in '' $ac_executable_extensions; do 2475 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2864 ac_cv_prog_ac_ct_RANLIB="ranlib" 2865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2866 break 2 2867 fi 2868 done 2869 done 2870 IFS=$as_save_IFS 2871 2872 fi 2873 fi 2874 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 2875 if test -n "$ac_ct_RANLIB"; then 2876 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 2877 echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 2878 else 2879 { echo "$as_me:$LINENO: result: no" >&5 2880 echo "${ECHO_T}no" >&6; } 2881 fi 2882 2883 if test "x$ac_ct_RANLIB" = x; then 2884 RANLIB=":" 2885 else 2886 case $cross_compiling:$ac_tool_warned in 2887 yes:) 2888 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2889 whose name does not start with the host triplet. If you think this 2890 configuration is useful to you, please write to autoconf@gnu.org." >&5 2891 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2892 whose name does not start with the host triplet. If you think this 2893 configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2894 ac_tool_warned=yes ;; 2895 esac 2896 RANLIB=$ac_ct_RANLIB 2897 fi 2898 else 2899 RANLIB="$ac_cv_prog_RANLIB" 2900 fi 2901 2902 2903 ac_ext=cpp 2904 ac_cpp='$CXXCPP $CPPFLAGS' 2905 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2906 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2907 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2908 if test -z "$CXX"; then 2909 if test -n "$CCC"; then 2910 CXX=$CCC 2911 else 2912 if test -n "$ac_tool_prefix"; then 2913 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 2914 do 2915 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2916 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2917 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2919 if test "${ac_cv_prog_CXX+set}" = set; then 2920 echo $ECHO_N "(cached) $ECHO_C" >&6 2921 else 2922 if test -n "$CXX"; then 2923 ac_cv_prog_CXX="$CXX" # Let the user override the test. 2924 else 2925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2926 for as_dir in $PATH 2927 do 2928 IFS=$as_save_IFS 2929 test -z "$as_dir" && as_dir=. 2930 for ac_exec_ext in '' $ac_executable_extensions; do 2931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2932 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 2933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2934 break 2 2935 fi 2936 done 2937 done 2938 IFS=$as_save_IFS 2939 2940 fi 2941 fi 2942 CXX=$ac_cv_prog_CXX 2943 if test -n "$CXX"; then 2944 { echo "$as_me:$LINENO: result: $CXX" >&5 2945 echo "${ECHO_T}$CXX" >&6; } 2946 else 2947 { echo "$as_me:$LINENO: result: no" >&5 2948 echo "${ECHO_T}no" >&6; } 2949 fi 2950 2951 2952 test -n "$CXX" && break 2953 done 2954 fi 2955 if test -z "$CXX"; then 2956 ac_ct_CXX=$CXX 2957 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 2958 do 2959 # Extract the first word of "$ac_prog", so it can be a program name with args. 2960 set dummy $ac_prog; ac_word=$2 2961 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2963 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 2964 echo $ECHO_N "(cached) $ECHO_C" >&6 2965 else 2966 if test -n "$ac_ct_CXX"; then 2967 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 2968 else 2969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2970 for as_dir in $PATH 2971 do 2972 IFS=$as_save_IFS 2973 test -z "$as_dir" && as_dir=. 2974 for ac_exec_ext in '' $ac_executable_extensions; do 2975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2476 2976 ac_cv_prog_ac_ct_CXX="$ac_prog" 2477 2977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 2480 2980 done 2481 2981 done 2982 IFS=$as_save_IFS 2482 2983 2483 2984 fi … … 2485 2986 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 2486 2987 if test -n "$ac_ct_CXX"; then 2487 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 2488 echo "${ECHO_T}$ac_ct_CXX" >&6 2489 else 2490 echo "$as_me:$LINENO: result: no" >&5 2491 echo "${ECHO_T}no" >&6 2492 fi 2988 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 2989 echo "${ECHO_T}$ac_ct_CXX" >&6; } 2990 else 2991 { echo "$as_me:$LINENO: result: no" >&5 2992 echo "${ECHO_T}no" >&6; } 2993 fi 2994 2493 2995 2494 2996 test -n "$ac_ct_CXX" && break 2495 2997 done 2496 test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 2497 2498 CXX=$ac_ct_CXX 2499 fi 2500 2501 2998 2999 if test "x$ac_ct_CXX" = x; then 3000 CXX="g++" 3001 else 3002 case $cross_compiling:$ac_tool_warned in 3003 yes:) 3004 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3005 whose name does not start with the host triplet. If you think this 3006 configuration is useful to you, please write to autoconf@gnu.org." >&5 3007 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3008 whose name does not start with the host triplet. If you think this 3009 configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3010 ac_tool_warned=yes ;; 3011 esac 3012 CXX=$ac_ct_CXX 3013 fi 3014 fi 3015 3016 fi 3017 fi 2502 3018 # Provide some information about the compiler. 2503 echo "$as_me:$LINENO:" \ 2504 "checking for C++ compiler version" >&5 3019 echo "$as_me:$LINENO: checking for C++ compiler version" >&5 2505 3020 ac_compiler=`set X $ac_compile; echo $2` 2506 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2507 (eval $ac_compiler --version </dev/null >&5) 2>&5 3021 { (ac_try="$ac_compiler --version >&5" 3022 case "(($ac_try" in 3023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3024 *) ac_try_echo=$ac_try;; 3025 esac 3026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3027 (eval "$ac_compiler --version >&5") 2>&5 2508 3028 ac_status=$? 2509 3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2510 3030 (exit $ac_status); } 2511 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2512 (eval $ac_compiler -v </dev/null >&5) 2>&5 3031 { (ac_try="$ac_compiler -v >&5" 3032 case "(($ac_try" in 3033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3034 *) ac_try_echo=$ac_try;; 3035 esac 3036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3037 (eval "$ac_compiler -v >&5") 2>&5 2513 3038 ac_status=$? 2514 3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2515 3040 (exit $ac_status); } 2516 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2517 (eval $ac_compiler -V </dev/null >&5) 2>&5 3041 { (ac_try="$ac_compiler -V >&5" 3042 case "(($ac_try" in 3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3044 *) ac_try_echo=$ac_try;; 3045 esac 3046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3047 (eval "$ac_compiler -V >&5") 2>&5 2518 3048 ac_status=$? 2519 3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2520 3050 (exit $ac_status); } 2521 3051 2522 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&52523 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 3052 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 3053 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 2524 3054 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 2525 3055 echo $ECHO_N "(cached) $ECHO_C" >&6 … … 2544 3074 _ACEOF 2545 3075 rm -f conftest.$ac_objext 2546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2547 (eval $ac_compile) 2>conftest.er1 3076 if { (ac_try="$ac_compile" 3077 case "(($ac_try" in 3078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3079 *) ac_try_echo=$ac_try;; 3080 esac 3081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3082 (eval "$ac_compile") 2>conftest.er1 2548 3083 ac_status=$? 2549 3084 grep -v '^ *+' conftest.er1 >conftest.err … … 2551 3086 cat conftest.err >&5 2552 3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2553 (exit $ac_status); } && 2554 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 2555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2556 (eval $ac_try) 2>&5 2557 ac_status=$? 2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2559 (exit $ac_status); }; } && 2560 { ac_try='test -s conftest.$ac_objext' 2561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2562 (eval $ac_try) 2>&5 2563 ac_status=$? 2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2565 (exit $ac_status); }; }; then 3088 (exit $ac_status); } && { 3089 test -z "$ac_cxx_werror_flag" || 3090 test ! -s conftest.err 3091 } && test -s conftest.$ac_objext; then 2566 3092 ac_compiler_gnu=yes 2567 3093 else … … 2569 3095 sed 's/^/| /' conftest.$ac_ext >&5 2570 3096 2571 ac_compiler_gnu=no 2572 fi 2573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3097 ac_compiler_gnu=no 3098 fi 3099 3100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2574 3101 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 2575 3102 2576 3103 fi 2577 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&52578 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 3104 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 3105 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 2579 3106 GXX=`test $ac_compiler_gnu = yes && echo yes` 2580 3107 ac_test_CXXFLAGS=${CXXFLAGS+set} 2581 3108 ac_save_CXXFLAGS=$CXXFLAGS 2582 CXXFLAGS="-g" 2583 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 2584 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 3109 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 3110 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 2585 3111 if test "${ac_cv_prog_cxx_g+set}" = set; then 2586 3112 echo $ECHO_N "(cached) $ECHO_C" >&6 2587 3113 else 2588 cat >conftest.$ac_ext <<_ACEOF 3114 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 3115 ac_cxx_werror_flag=yes 3116 ac_cv_prog_cxx_g=no 3117 CXXFLAGS="-g" 3118 cat >conftest.$ac_ext <<_ACEOF 2589 3119 /* confdefs.h. */ 2590 3120 _ACEOF … … 2602 3132 _ACEOF 2603 3133 rm -f conftest.$ac_objext 2604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2605 (eval $ac_compile) 2>conftest.er1 3134 if { (ac_try="$ac_compile" 3135 case "(($ac_try" in 3136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3137 *) ac_try_echo=$ac_try;; 3138 esac 3139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3140 (eval "$ac_compile") 2>conftest.er1 2606 3141 ac_status=$? 2607 3142 grep -v '^ *+' conftest.er1 >conftest.err … … 2609 3144 cat conftest.err >&5 2610 3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2611 (exit $ac_status); } && 2612 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 2613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2614 (eval $ac_try) 2>&5 2615 ac_status=$? 2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2617 (exit $ac_status); }; } && 2618 { ac_try='test -s conftest.$ac_objext' 2619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2620 (eval $ac_try) 2>&5 2621 ac_status=$? 2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2623 (exit $ac_status); }; }; then 3146 (exit $ac_status); } && { 3147 test -z "$ac_cxx_werror_flag" || 3148 test ! -s conftest.err 3149 } && test -s conftest.$ac_objext; then 2624 3150 ac_cv_prog_cxx_g=yes 2625 3151 else … … 2627 3153 sed 's/^/| /' conftest.$ac_ext >&5 2628 3154 2629 ac_cv_prog_cxx_g=no 2630 fi 2631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2632 fi 2633 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 2634 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 3155 CXXFLAGS="" 3156 cat >conftest.$ac_ext <<_ACEOF 3157 /* confdefs.h. */ 3158 _ACEOF 3159 cat confdefs.h >>conftest.$ac_ext 3160 cat >>conftest.$ac_ext <<_ACEOF 3161 /* end confdefs.h. */ 3162 3163 int 3164 main () 3165 { 3166 3167 ; 3168 return 0; 3169 } 3170 _ACEOF 3171 rm -f conftest.$ac_objext 3172 if { (ac_try="$ac_compile" 3173 case "(($ac_try" in 3174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3175 *) ac_try_echo=$ac_try;; 3176 esac 3177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3178 (eval "$ac_compile") 2>conftest.er1 3179 ac_status=$? 3180 grep -v '^ *+' conftest.er1 >conftest.err 3181 rm -f conftest.er1 3182 cat conftest.err >&5 3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3184 (exit $ac_status); } && { 3185 test -z "$ac_cxx_werror_flag" || 3186 test ! -s conftest.err 3187 } && test -s conftest.$ac_objext; then 3188 : 3189 else 3190 echo "$as_me: failed program was:" >&5 3191 sed 's/^/| /' conftest.$ac_ext >&5 3192 3193 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3194 CXXFLAGS="-g" 3195 cat >conftest.$ac_ext <<_ACEOF 3196 /* confdefs.h. */ 3197 _ACEOF 3198 cat confdefs.h >>conftest.$ac_ext 3199 cat >>conftest.$ac_ext <<_ACEOF 3200 /* end confdefs.h. */ 3201 3202 int 3203 main () 3204 { 3205 3206 ; 3207 return 0; 3208 } 3209 _ACEOF 3210 rm -f conftest.$ac_objext 3211 if { (ac_try="$ac_compile" 3212 case "(($ac_try" in 3213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3214 *) ac_try_echo=$ac_try;; 3215 esac 3216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3217 (eval "$ac_compile") 2>conftest.er1 3218 ac_status=$? 3219 grep -v '^ *+' conftest.er1 >conftest.err 3220 rm -f conftest.er1 3221 cat conftest.err >&5 3222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3223 (exit $ac_status); } && { 3224 test -z "$ac_cxx_werror_flag" || 3225 test ! -s conftest.err 3226 } && test -s conftest.$ac_objext; then 3227 ac_cv_prog_cxx_g=yes 3228 else 3229 echo "$as_me: failed program was:" >&5 3230 sed 's/^/| /' conftest.$ac_ext >&5 3231 3232 3233 fi 3234 3235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3236 fi 3237 3238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3239 fi 3240 3241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3242 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3243 fi 3244 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 3245 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 2635 3246 if test "$ac_test_CXXFLAGS" = set; then 2636 3247 CXXFLAGS=$ac_save_CXXFLAGS … … 2648 3259 fi 2649 3260 fi 2650 for ac_declaration in \2651 '' \2652 'extern "C" void std::exit (int) throw (); using std::exit;' \2653 'extern "C" void std::exit (int); using std::exit;' \2654 'extern "C" void exit (int) throw ();' \2655 'extern "C" void exit (int);' \2656 'void exit (int);'2657 do2658 cat >conftest.$ac_ext <<_ACEOF2659 /* confdefs.h. */2660 _ACEOF2661 cat confdefs.h >>conftest.$ac_ext2662 cat >>conftest.$ac_ext <<_ACEOF2663 /* end confdefs.h. */2664 $ac_declaration2665 #include <stdlib.h>2666 int2667 main ()2668 {2669 exit (42);2670 ;2671 return 0;2672 }2673 _ACEOF2674 rm -f conftest.$ac_objext2675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&52676 (eval $ac_compile) 2>conftest.er12677 ac_status=$?2678 grep -v '^ *+' conftest.er1 >conftest.err2679 rm -f conftest.er12680 cat conftest.err >&52681 echo "$as_me:$LINENO: \$? = $ac_status" >&52682 (exit $ac_status); } &&2683 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'2684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&52685 (eval $ac_try) 2>&52686 ac_status=$?2687 echo "$as_me:$LINENO: \$? = $ac_status" >&52688 (exit $ac_status); }; } &&2689 { ac_try='test -s conftest.$ac_objext'2690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&52691 (eval $ac_try) 2>&52692 ac_status=$?2693 echo "$as_me:$LINENO: \$? = $ac_status" >&52694 (exit $ac_status); }; }; then2695 :2696 else2697 echo "$as_me: failed program was:" >&52698 sed 's/^/| /' conftest.$ac_ext >&52699 2700 continue2701 fi2702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext2703 cat >conftest.$ac_ext <<_ACEOF2704 /* confdefs.h. */2705 _ACEOF2706 cat confdefs.h >>conftest.$ac_ext2707 cat >>conftest.$ac_ext <<_ACEOF2708 /* end confdefs.h. */2709 $ac_declaration2710 int2711 main ()2712 {2713 exit (42);2714 ;2715 return 0;2716 }2717 _ACEOF2718 rm -f conftest.$ac_objext2719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&52720 (eval $ac_compile) 2>conftest.er12721 ac_status=$?2722 grep -v '^ *+' conftest.er1 >conftest.err2723 rm -f conftest.er12724 cat conftest.err >&52725 echo "$as_me:$LINENO: \$? = $ac_status" >&52726 (exit $ac_status); } &&2727 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'2728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&52729 (eval $ac_try) 2>&52730 ac_status=$?2731 echo "$as_me:$LINENO: \$? = $ac_status" >&52732 (exit $ac_status); }; } &&2733 { ac_try='test -s conftest.$ac_objext'2734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&52735 (eval $ac_try) 2>&52736 ac_status=$?2737 echo "$as_me:$LINENO: \$? = $ac_status" >&52738 (exit $ac_status); }; }; then2739 break2740 else2741 echo "$as_me: failed program was:" >&52742 sed 's/^/| /' conftest.$ac_ext >&52743 2744 fi2745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext2746 done2747 rm -f conftest*2748 if test -n "$ac_declaration"; then2749 echo '#ifdef __cplusplus' >>confdefs.h2750 echo $ac_declaration >>confdefs.h2751 echo '#endif' >>confdefs.h2752 fi2753 2754 3261 ac_ext=c 2755 3262 ac_cpp='$CPP $CPPFLAGS' … … 2758 3265 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2759 3266 2760 ac_ext=c c3267 ac_ext=cpp 2761 3268 ac_cpp='$CXXCPP $CPPFLAGS' 2762 3269 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' … … 2769 3276 2770 3277 2771 # Check whether --with-tcllib or --without-tcllibwas given.3278 # Check whether --with-tcllib was given. 2772 3279 if test "${with_tcllib+set}" = set; then 2773 withval="$with_tcllib" 2774 with_tcllib=$withval 3280 withval=$with_tcllib; with_tcllib=$withval 2775 3281 else 2776 3282 with_tcllib=/usr/lib 2777 fi; 3283 fi 3284 2778 3285 2779 3286 TCL_LIB_DIR="" 2780 3287 TCL_LIB="" 2781 3288 TCL_LIB_VERSION="" 2782 echo "$as_me:$LINENO: checking for tcl binary libraries" >&52783 echo $ECHO_N "checking for tcl binary libraries... $ECHO_C" >&6 3289 { echo "$as_me:$LINENO: checking for tcl binary libraries" >&5 3290 echo $ECHO_N "checking for tcl binary libraries... $ECHO_C" >&6; } 2784 3291 if test "x$with_tcllib" != "x" ; then 2785 3292 if test -f "$with_tcllib" … … 2796 3303 TCL_LIB_DIR="$with_tcllib" 2797 3304 else 2798 echo "$as_me:$LINENO: result: no" >&52799 echo "${ECHO_T}no" >&6 3305 { echo "$as_me:$LINENO: result: no" >&5 3306 echo "${ECHO_T}no" >&6; } 2800 3307 { { echo "$as_me:$LINENO: error: cannot find tcl binary libraries, try using --with-tcllib" >&5 2801 3308 echo "$as_me: error: cannot find tcl binary libraries, try using --with-tcllib" >&2;} … … 2803 3310 fi 2804 3311 else 2805 echo "$as_me:$LINENO: result: no" >&52806 echo "${ECHO_T}no" >&6 3312 { echo "$as_me:$LINENO: result: no" >&5 3313 echo "${ECHO_T}no" >&6; } 2807 3314 { { echo "$as_me:$LINENO: error: cannot find tcl binary libraries inside $with_tcllib, try using --with-tcllib" >&5 2808 3315 echo "$as_me: error: cannot find tcl binary libraries inside $with_tcllib, try using --with-tcllib" >&2;} … … 2812 3319 else 2813 3320 2814 ac_ext=c c3321 ac_ext=cpp 2815 3322 ac_cpp='$CXXCPP $CPPFLAGS' 2816 3323 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2817 3324 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2818 3325 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2819 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&52820 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 3326 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 3327 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 2821 3328 if test -z "$CXXCPP"; then 2822 3329 if test "${ac_cv_prog_CXXCPP+set}" = set; then … … 2848 3355 Syntax error 2849 3356 _ACEOF 2850 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2851 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3357 if { (ac_try="$ac_cpp conftest.$ac_ext" 3358 case "(($ac_try" in 3359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3360 *) ac_try_echo=$ac_try;; 3361 esac 3362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3363 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 2852 3364 ac_status=$? 2853 3365 grep -v '^ *+' conftest.er1 >conftest.err … … 2855 3367 cat conftest.err >&5 2856 3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2857 (exit $ac_status); } >/dev/null; then 2858 if test -s conftest.err; then 2859 ac_cpp_err=$ac_cxx_preproc_warn_flag 2860 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 2861 else 2862 ac_cpp_err= 2863 fi 2864 else 2865 ac_cpp_err=yes 2866 fi 2867 if test -z "$ac_cpp_err"; then 3369 (exit $ac_status); } >/dev/null && { 3370 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 3371 test ! -s conftest.err 3372 }; then 2868 3373 : 2869 3374 else … … 2874 3379 continue 2875 3380 fi 3381 2876 3382 rm -f conftest.err conftest.$ac_ext 2877 3383 2878 # OK, works on sane cases. Now check whether non -existent headers3384 # OK, works on sane cases. Now check whether nonexistent headers 2879 3385 # can be detected and how. 2880 3386 cat >conftest.$ac_ext <<_ACEOF … … 2886 3392 #include <ac_nonexistent.h> 2887 3393 _ACEOF 2888 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2889 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3394 if { (ac_try="$ac_cpp conftest.$ac_ext" 3395 case "(($ac_try" in 3396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3397 *) ac_try_echo=$ac_try;; 3398 esac 3399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3400 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 2890 3401 ac_status=$? 2891 3402 grep -v '^ *+' conftest.er1 >conftest.err … … 2893 3404 cat conftest.err >&5 2894 3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2895 (exit $ac_status); } >/dev/null; then 2896 if test -s conftest.err; then 2897 ac_cpp_err=$ac_cxx_preproc_warn_flag 2898 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 2899 else 2900 ac_cpp_err= 2901 fi 2902 else 2903 ac_cpp_err=yes 2904 fi 2905 if test -z "$ac_cpp_err"; then 3406 (exit $ac_status); } >/dev/null && { 3407 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 3408 test ! -s conftest.err 3409 }; then 2906 3410 # Broken: success on invalid input. 2907 3411 continue … … 2914 3418 break 2915 3419 fi 3420 2916 3421 rm -f conftest.err conftest.$ac_ext 2917 3422 … … 2931 3436 ac_cv_prog_CXXCPP=$CXXCPP 2932 3437 fi 2933 echo "$as_me:$LINENO: result: $CXXCPP" >&52934 echo "${ECHO_T}$CXXCPP" >&6 3438 { echo "$as_me:$LINENO: result: $CXXCPP" >&5 3439 echo "${ECHO_T}$CXXCPP" >&6; } 2935 3440 ac_preproc_ok=false 2936 3441 for ac_cxx_preproc_warn_flag in '' yes … … 2955 3460 Syntax error 2956 3461 _ACEOF 2957 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2958 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3462 if { (ac_try="$ac_cpp conftest.$ac_ext" 3463 case "(($ac_try" in 3464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3465 *) ac_try_echo=$ac_try;; 3466 esac 3467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3468 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 2959 3469 ac_status=$? 2960 3470 grep -v '^ *+' conftest.er1 >conftest.err … … 2962 3472 cat conftest.err >&5 2963 3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2964 (exit $ac_status); } >/dev/null; then 2965 if test -s conftest.err; then 2966 ac_cpp_err=$ac_cxx_preproc_warn_flag 2967 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 2968 else 2969 ac_cpp_err= 2970 fi 2971 else 2972 ac_cpp_err=yes 2973 fi 2974 if test -z "$ac_cpp_err"; then 3474 (exit $ac_status); } >/dev/null && { 3475 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 3476 test ! -s conftest.err 3477 }; then 2975 3478 : 2976 3479 else … … 2981 3484 continue 2982 3485 fi 3486 2983 3487 rm -f conftest.err conftest.$ac_ext 2984 3488 2985 # OK, works on sane cases. Now check whether non -existent headers3489 # OK, works on sane cases. Now check whether nonexistent headers 2986 3490 # can be detected and how. 2987 3491 cat >conftest.$ac_ext <<_ACEOF … … 2993 3497 #include <ac_nonexistent.h> 2994 3498 _ACEOF 2995 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2996 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3499 if { (ac_try="$ac_cpp conftest.$ac_ext" 3500 case "(($ac_try" in 3501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3502 *) ac_try_echo=$ac_try;; 3503 esac 3504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3505 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 2997 3506 ac_status=$? 2998 3507 grep -v '^ *+' conftest.er1 >conftest.err … … 3000 3509 cat conftest.err >&5 3001 3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3002 (exit $ac_status); } >/dev/null; then 3003 if test -s conftest.err; then 3004 ac_cpp_err=$ac_cxx_preproc_warn_flag 3005 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 3006 else 3007 ac_cpp_err= 3008 fi 3009 else 3010 ac_cpp_err=yes 3011 fi 3012 if test -z "$ac_cpp_err"; then 3511 (exit $ac_status); } >/dev/null && { 3512 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 3513 test ! -s conftest.err 3514 }; then 3013 3515 # Broken: success on invalid input. 3014 3516 continue … … 3021 3523 break 3022 3524 fi 3525 3023 3526 rm -f conftest.err conftest.$ac_ext 3024 3527 … … 3036 3539 fi 3037 3540 3038 ac_ext=c c3541 ac_ext=cpp 3039 3542 ac_cpp='$CXXCPP $CPPFLAGS' 3040 3543 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' … … 3043 3546 3044 3547 3045 echo "$as_me:$LINENO: checking for egrep" >&53046 echo $ECHO_N "checking for egrep... $ECHO_C" >&63047 if test "${ac_cv_p rog_egrep+set}" = set; then3548 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3549 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3550 if test "${ac_cv_path_GREP+set}" = set; then 3048 3551 echo $ECHO_N "(cached) $ECHO_C" >&6 3049 3552 else 3050 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3051 then ac_cv_prog_egrep='grep -E' 3052 else ac_cv_prog_egrep='egrep' 3553 # Extract the first word of "grep ggrep" to use in msg output 3554 if test -z "$GREP"; then 3555 set dummy grep ggrep; ac_prog_name=$2 3556 if test "${ac_cv_path_GREP+set}" = set; then 3557 echo $ECHO_N "(cached) $ECHO_C" >&6 3558 else 3559 ac_path_GREP_found=false 3560 # Loop through the user's path and test for each of PROGNAME-LIST 3561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3562 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3563 do 3564 IFS=$as_save_IFS 3565 test -z "$as_dir" && as_dir=. 3566 for ac_prog in grep ggrep; do 3567 for ac_exec_ext in '' $ac_executable_extensions; do 3568 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3569 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3570 # Check for GNU ac_path_GREP and select it if it is found. 3571 # Check for GNU $ac_path_GREP 3572 case `"$ac_path_GREP" --version 2>&1` in 3573 *GNU*) 3574 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3575 *) 3576 ac_count=0 3577 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3578 while : 3579 do 3580 cat "conftest.in" "conftest.in" >"conftest.tmp" 3581 mv "conftest.tmp" "conftest.in" 3582 cp "conftest.in" "conftest.nl" 3583 echo 'GREP' >> "conftest.nl" 3584 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3585 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3586 ac_count=`expr $ac_count + 1` 3587 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3588 # Best one so far, save it but keep looking for a better one 3589 ac_cv_path_GREP="$ac_path_GREP" 3590 ac_path_GREP_max=$ac_count 3053 3591 fi 3054 fi 3055 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3056 echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3057 EGREP=$ac_cv_prog_egrep 3058 3059 3060 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3061 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3592 # 10*(2^10) chars as input seems more than enough 3593 test $ac_count -gt 10 && break 3594 done 3595 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3596 esac 3597 3598 3599 $ac_path_GREP_found && break 3 3600 done 3601 done 3602 3603 done 3604 IFS=$as_save_IFS 3605 3606 3607 fi 3608 3609 GREP="$ac_cv_path_GREP" 3610 if test -z "$GREP"; then 3611 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3612 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3613 { (exit 1); exit 1; }; } 3614 fi 3615 3616 else 3617 ac_cv_path_GREP=$GREP 3618 fi 3619 3620 3621 fi 3622 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3623 echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3624 GREP="$ac_cv_path_GREP" 3625 3626 3627 { echo "$as_me:$LINENO: checking for egrep" >&5 3628 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3629 if test "${ac_cv_path_EGREP+set}" = set; then 3630 echo $ECHO_N "(cached) $ECHO_C" >&6 3631 else 3632 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3633 then ac_cv_path_EGREP="$GREP -E" 3634 else 3635 # Extract the first word of "egrep" to use in msg output 3636 if test -z "$EGREP"; then 3637 set dummy egrep; ac_prog_name=$2 3638 if test "${ac_cv_path_EGREP+set}" = set; then 3639 echo $ECHO_N "(cached) $ECHO_C" >&6 3640 else 3641 ac_path_EGREP_found=false 3642 # Loop through the user's path and test for each of PROGNAME-LIST 3643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3644 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3645 do 3646 IFS=$as_save_IFS 3647 test -z "$as_dir" && as_dir=. 3648 for ac_prog in egrep; do 3649 for ac_exec_ext in '' $ac_executable_extensions; do 3650 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3651 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3652 # Check for GNU ac_path_EGREP and select it if it is found. 3653 # Check for GNU $ac_path_EGREP 3654 case `"$ac_path_EGREP" --version 2>&1` in 3655 *GNU*) 3656 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3657 *) 3658 ac_count=0 3659 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3660 while : 3661 do 3662 cat "conftest.in" "conftest.in" >"conftest.tmp" 3663 mv "conftest.tmp" "conftest.in" 3664 cp "conftest.in" "conftest.nl" 3665 echo 'EGREP' >> "conftest.nl" 3666 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3667 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3668 ac_count=`expr $ac_count + 1` 3669 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3670 # Best one so far, save it but keep looking for a better one 3671 ac_cv_path_EGREP="$ac_path_EGREP" 3672 ac_path_EGREP_max=$ac_count 3673 fi 3674 # 10*(2^10) chars as input seems more than enough 3675 test $ac_count -gt 10 && break 3676 done 3677 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3678 esac 3679 3680 3681 $ac_path_EGREP_found && break 3 3682 done 3683 done 3684 3685 done 3686 IFS=$as_save_IFS 3687 3688 3689 fi 3690 3691 EGREP="$ac_cv_path_EGREP" 3692 if test -z "$EGREP"; then 3693 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3694 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3695 { (exit 1); exit 1; }; } 3696 fi 3697 3698 else 3699 ac_cv_path_EGREP=$EGREP 3700 fi 3701 3702 3703 fi 3704 fi 3705 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3706 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3707 EGREP="$ac_cv_path_EGREP" 3708 3709 3710 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3711 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 3062 3712 if test "${ac_cv_header_stdc+set}" = set; then 3063 3713 echo $ECHO_N "(cached) $ECHO_C" >&6 … … 3083 3733 _ACEOF 3084 3734 rm -f conftest.$ac_objext 3085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3086 (eval $ac_compile) 2>conftest.er1 3735 if { (ac_try="$ac_compile" 3736 case "(($ac_try" in 3737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3738 *) ac_try_echo=$ac_try;; 3739 esac 3740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3741 (eval "$ac_compile") 2>conftest.er1 3087 3742 ac_status=$? 3088 3743 grep -v '^ *+' conftest.er1 >conftest.err … … 3090 3745 cat conftest.err >&5 3091 3746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3092 (exit $ac_status); } && 3093 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3095 (eval $ac_try) 2>&5 3096 ac_status=$? 3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3098 (exit $ac_status); }; } && 3099 { ac_try='test -s conftest.$ac_objext' 3100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3101 (eval $ac_try) 2>&5 3102 ac_status=$? 3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3104 (exit $ac_status); }; }; then 3747 (exit $ac_status); } && { 3748 test -z "$ac_cxx_werror_flag" || 3749 test ! -s conftest.err 3750 } && test -s conftest.$ac_objext; then 3105 3751 ac_cv_header_stdc=yes 3106 3752 else … … 3108 3754 sed 's/^/| /' conftest.$ac_ext >&5 3109 3755 3110 ac_cv_header_stdc=no 3111 fi 3112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3756 ac_cv_header_stdc=no 3757 fi 3758 3759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3113 3760 3114 3761 if test $ac_cv_header_stdc = yes; then … … 3166 3813 /* end confdefs.h. */ 3167 3814 #include <ctype.h> 3815 #include <stdlib.h> 3168 3816 #if ((' ' & 0x0FF) == 0x020) 3169 3817 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') … … 3185 3833 if (XOR (islower (i), ISLOWER (i)) 3186 3834 || toupper (i) != TOUPPER (i)) 3187 exit(2);3188 exit (0);3835 return 2; 3836 return 0; 3189 3837 } 3190 3838 _ACEOF 3191 3839 rm -f conftest$ac_exeext 3192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3193 (eval $ac_link) 2>&5 3840 if { (ac_try="$ac_link" 3841 case "(($ac_try" in 3842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3843 *) ac_try_echo=$ac_try;; 3844 esac 3845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3846 (eval "$ac_link") 2>&5 3194 3847 ac_status=$? 3195 3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3196 3849 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3198 (eval $ac_try) 2>&5 3850 { (case "(($ac_try" in 3851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3852 *) ac_try_echo=$ac_try;; 3853 esac 3854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3855 (eval "$ac_try") 2>&5 3199 3856 ac_status=$? 3200 3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5 … … 3209 3866 ac_cv_header_stdc=no 3210 3867 fi 3211 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3212 fi 3213 fi 3214 fi 3215 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3216 echo "${ECHO_T}$ac_cv_header_stdc" >&6 3868 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3869 fi 3870 3871 3872 fi 3873 fi 3874 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3875 echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 3217 3876 if test $ac_cv_header_stdc = yes; then 3218 3877 … … 3237 3896 do 3238 3897 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3239 echo "$as_me:$LINENO: checking for $ac_header" >&53240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3241 if eval "test \"\${$as_ac_Header+set}\" = set"; then3898 { echo "$as_me:$LINENO: checking for $ac_header" >&5 3899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 3900 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3242 3901 echo $ECHO_N "(cached) $ECHO_C" >&6 3243 3902 else … … 3253 3912 _ACEOF 3254 3913 rm -f conftest.$ac_objext 3255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3256 (eval $ac_compile) 2>conftest.er1 3914 if { (ac_try="$ac_compile" 3915 case "(($ac_try" in 3916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3917 *) ac_try_echo=$ac_try;; 3918 esac 3919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3920 (eval "$ac_compile") 2>conftest.er1 3257 3921 ac_status=$? 3258 3922 grep -v '^ *+' conftest.er1 >conftest.err … … 3260 3924 cat conftest.err >&5 3261 3925 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3262 (exit $ac_status); } && 3263 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3265 (eval $ac_try) 2>&5 3266 ac_status=$? 3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3268 (exit $ac_status); }; } && 3269 { ac_try='test -s conftest.$ac_objext' 3270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3271 (eval $ac_try) 2>&5 3272 ac_status=$? 3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3274 (exit $ac_status); }; }; then 3926 (exit $ac_status); } && { 3927 test -z "$ac_cxx_werror_flag" || 3928 test ! -s conftest.err 3929 } && test -s conftest.$ac_objext; then 3275 3930 eval "$as_ac_Header=yes" 3276 3931 else … … 3278 3933 sed 's/^/| /' conftest.$ac_ext >&5 3279 3934 3280 eval "$as_ac_Header=no" 3281 fi 3282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3283 fi 3284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3285 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3935 eval "$as_ac_Header=no" 3936 fi 3937 3938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3939 fi 3940 ac_res=`eval echo '${'$as_ac_Header'}'` 3941 { echo "$as_me:$LINENO: result: $ac_res" >&5 3942 echo "${ECHO_T}$ac_res" >&6; } 3286 3943 if test `eval echo '${'$as_ac_Header'}'` = yes; then 3287 3944 cat >>confdefs.h <<_ACEOF … … 3298 3955 do 3299 3956 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3300 if eval "test \"\${$as_ac_Header+set}\" = set"; then3301 echo "$as_me:$LINENO: checking for $ac_header" >&53302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3303 if eval "test \"\${$as_ac_Header+set}\" = set"; then3957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3958 { echo "$as_me:$LINENO: checking for $ac_header" >&5 3959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 3960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3304 3961 echo $ECHO_N "(cached) $ECHO_C" >&6 3305 3962 fi 3306 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3307 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3963 ac_res=`eval echo '${'$as_ac_Header'}'` 3964 { echo "$as_me:$LINENO: result: $ac_res" >&5 3965 echo "${ECHO_T}$ac_res" >&6; } 3308 3966 else 3309 3967 # Is the header compilable? 3310 echo "$as_me:$LINENO: checking $ac_header usability" >&53311 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 3968 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 3969 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 3312 3970 cat >conftest.$ac_ext <<_ACEOF 3313 3971 /* confdefs.h. */ … … 3320 3978 _ACEOF 3321 3979 rm -f conftest.$ac_objext 3322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3323 (eval $ac_compile) 2>conftest.er1 3980 if { (ac_try="$ac_compile" 3981 case "(($ac_try" in 3982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3983 *) ac_try_echo=$ac_try;; 3984 esac 3985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3986 (eval "$ac_compile") 2>conftest.er1 3324 3987 ac_status=$? 3325 3988 grep -v '^ *+' conftest.er1 >conftest.err … … 3327 3990 cat conftest.err >&5 3328 3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3329 (exit $ac_status); } && 3330 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3332 (eval $ac_try) 2>&5 3333 ac_status=$? 3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3335 (exit $ac_status); }; } && 3336 { ac_try='test -s conftest.$ac_objext' 3337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3338 (eval $ac_try) 2>&5 3339 ac_status=$? 3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3341 (exit $ac_status); }; }; then 3992 (exit $ac_status); } && { 3993 test -z "$ac_cxx_werror_flag" || 3994 test ! -s conftest.err 3995 } && test -s conftest.$ac_objext; then 3342 3996 ac_header_compiler=yes 3343 3997 else … … 3345 3999 sed 's/^/| /' conftest.$ac_ext >&5 3346 4000 3347 ac_header_compiler=no 3348 fi 3349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3350 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3351 echo "${ECHO_T}$ac_header_compiler" >&6 4001 ac_header_compiler=no 4002 fi 4003 4004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4005 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4006 echo "${ECHO_T}$ac_header_compiler" >&6; } 3352 4007 3353 4008 # Is the header present? 3354 echo "$as_me:$LINENO: checking $ac_header presence" >&53355 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4009 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 4010 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 3356 4011 cat >conftest.$ac_ext <<_ACEOF 3357 4012 /* confdefs.h. */ … … 3362 4017 #include <$ac_header> 3363 4018 _ACEOF 3364 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3365 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4019 if { (ac_try="$ac_cpp conftest.$ac_ext" 4020 case "(($ac_try" in 4021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4022 *) ac_try_echo=$ac_try;; 4023 esac 4024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4025 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3366 4026 ac_status=$? 3367 4027 grep -v '^ *+' conftest.er1 >conftest.err … … 3369 4029 cat conftest.err >&5 3370 4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3371 (exit $ac_status); } >/dev/null; then 3372 if test -s conftest.err; then 3373 ac_cpp_err=$ac_cxx_preproc_warn_flag 3374 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 3375 else 3376 ac_cpp_err= 3377 fi 3378 else 3379 ac_cpp_err=yes 3380 fi 3381 if test -z "$ac_cpp_err"; then 4031 (exit $ac_status); } >/dev/null && { 4032 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 4033 test ! -s conftest.err 4034 }; then 3382 4035 ac_header_preproc=yes 3383 4036 else … … 3387 4040 ac_header_preproc=no 3388 4041 fi 4042 3389 4043 rm -f conftest.err conftest.$ac_ext 3390 echo "$as_me:$LINENO: result: $ac_header_preproc" >&53391 echo "${ECHO_T}$ac_header_preproc" >&6 4044 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4045 echo "${ECHO_T}$ac_header_preproc" >&6; } 3392 4046 3393 4047 # So? What about this header? … … 3413 4067 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 3414 4068 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 3415 ( 3416 cat <<\_ASBOX 4069 ( cat <<\_ASBOX 3417 4070 ## ----------------------------------- ## 3418 4071 ## Report this to rappture@nanohub.org ## 3419 4072 ## ----------------------------------- ## 3420 4073 _ASBOX 3421 ) | 3422 sed "s/^/$as_me: WARNING: /" >&2 4074 ) | sed "s/^/$as_me: WARNING: /" >&2 3423 4075 ;; 3424 4076 esac 3425 echo "$as_me:$LINENO: checking for $ac_header" >&53426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3427 if eval "test \"\${$as_ac_Header+set}\" = set"; then4077 { echo "$as_me:$LINENO: checking for $ac_header" >&5 4078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3428 4080 echo $ECHO_N "(cached) $ECHO_C" >&6 3429 4081 else 3430 4082 eval "$as_ac_Header=\$ac_header_preproc" 3431 4083 fi 3432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3433 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4084 ac_res=`eval echo '${'$as_ac_Header'}'` 4085 { echo "$as_me:$LINENO: result: $ac_res" >&5 4086 echo "${ECHO_T}$ac_res" >&6; } 3434 4087 3435 4088 fi … … 3452 4105 # TCL_LIB=`ls ${TCL_LIB_DIR} | sed -e '/libtcl([0-9]\.?[0-9])?\.so$/ {p}'` 3453 4106 # TCL_LIB_VERSION=$(echo ${TCL_LIB} | sed -e s/libtcl// -e s/\.so//) 3454 echo "$as_me:$LINENO: result: ${TCL_LIB_DIR}/${TCL_LIB}" >&53455 echo "${ECHO_T}${TCL_LIB_DIR}/${TCL_LIB}" >&6 4107 { echo "$as_me:$LINENO: result: ${TCL_LIB_DIR}/${TCL_LIB}" >&5 4108 echo "${ECHO_T}${TCL_LIB_DIR}/${TCL_LIB}" >&6; } 3456 4109 # echo TCL_LIB_DIR = ${TCL_LIB_DIR} 3457 4110 # echo TCL_LIB = ${TCL_LIB} … … 3462 4115 3463 4116 3464 # Check whether --with-tclinclude or --without-tclincludewas given.4117 # Check whether --with-tclinclude was given. 3465 4118 if test "${with_tclinclude+set}" = set; then 3466 withval="$with_tclinclude" 3467 with_tclinclude=$withval 4119 withval=$with_tclinclude; with_tclinclude=$withval 3468 4120 else 3469 4121 with_tclinclude=/usr/include 3470 fi; 4122 fi 4123 3471 4124 3472 4125 TCL_INCL_DIR="" 3473 echo "$as_me:$LINENO: checking for tcl.h" >&53474 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6 4126 { echo "$as_me:$LINENO: checking for tcl.h" >&5 4127 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; } 3475 4128 if test "x$with_tclinclude" != "x" ; then 3476 4129 if test -f "$with_tclinclude" … … 3491 4144 TCL_INCL_DIR="$with_tclinclude/tcl${TCL_LIB_VERSION}" 3492 4145 else 3493 echo "$as_me:$LINENO: result: no" >&53494 echo "${ECHO_T}no" >&6 4146 { echo "$as_me:$LINENO: result: no" >&5 4147 echo "${ECHO_T}no" >&6; } 3495 4148 { { echo "$as_me:$LINENO: error: cannot find tcl.h, try using --with-tclinclude" >&5 3496 4149 echo "$as_me: error: cannot find tcl.h, try using --with-tclinclude" >&2;} … … 3499 4152 fi 3500 4153 else 3501 echo "$as_me:$LINENO: result: no" >&53502 echo "${ECHO_T}no" >&6 4154 { echo "$as_me:$LINENO: result: no" >&5 4155 echo "${ECHO_T}no" >&6; } 3503 4156 { { echo "$as_me:$LINENO: error: cannot find tcl.h inside $with_tclinclude, try using --with-tclinclude" >&5 3504 4157 echo "$as_me: error: cannot find tcl.h inside $with_tclinclude, try using --with-tclinclude" >&2;} … … 3511 4164 do 3512 4165 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3513 if eval "test \"\${$as_ac_Header+set}\" = set"; then3514 echo "$as_me:$LINENO: checking for $ac_header" >&53515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3516 if eval "test \"\${$as_ac_Header+set}\" = set"; then4166 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4167 { echo "$as_me:$LINENO: checking for $ac_header" >&5 4168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4169 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3517 4170 echo $ECHO_N "(cached) $ECHO_C" >&6 3518 4171 fi 3519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3520 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4172 ac_res=`eval echo '${'$as_ac_Header'}'` 4173 { echo "$as_me:$LINENO: result: $ac_res" >&5 4174 echo "${ECHO_T}$ac_res" >&6; } 3521 4175 else 3522 4176 # Is the header compilable? 3523 echo "$as_me:$LINENO: checking $ac_header usability" >&53524 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4177 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 4178 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 3525 4179 cat >conftest.$ac_ext <<_ACEOF 3526 4180 /* confdefs.h. */ … … 3533 4187 _ACEOF 3534 4188 rm -f conftest.$ac_objext 3535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3536 (eval $ac_compile) 2>conftest.er1 4189 if { (ac_try="$ac_compile" 4190 case "(($ac_try" in 4191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4192 *) ac_try_echo=$ac_try;; 4193 esac 4194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4195 (eval "$ac_compile") 2>conftest.er1 3537 4196 ac_status=$? 3538 4197 grep -v '^ *+' conftest.er1 >conftest.err … … 3540 4199 cat conftest.err >&5 3541 4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3542 (exit $ac_status); } && 3543 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3545 (eval $ac_try) 2>&5 3546 ac_status=$? 3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3548 (exit $ac_status); }; } && 3549 { ac_try='test -s conftest.$ac_objext' 3550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3551 (eval $ac_try) 2>&5 3552 ac_status=$? 3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3554 (exit $ac_status); }; }; then 4201 (exit $ac_status); } && { 4202 test -z "$ac_cxx_werror_flag" || 4203 test ! -s conftest.err 4204 } && test -s conftest.$ac_objext; then 3555 4205 ac_header_compiler=yes 3556 4206 else … … 3558 4208 sed 's/^/| /' conftest.$ac_ext >&5 3559 4209 3560 ac_header_compiler=no 3561 fi 3562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3563 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3564 echo "${ECHO_T}$ac_header_compiler" >&6 4210 ac_header_compiler=no 4211 fi 4212 4213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4214 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4215 echo "${ECHO_T}$ac_header_compiler" >&6; } 3565 4216 3566 4217 # Is the header present? 3567 echo "$as_me:$LINENO: checking $ac_header presence" >&53568 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4218 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 4219 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 3569 4220 cat >conftest.$ac_ext <<_ACEOF 3570 4221 /* confdefs.h. */ … … 3575 4226 #include <$ac_header> 3576 4227 _ACEOF 3577 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3578 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4228 if { (ac_try="$ac_cpp conftest.$ac_ext" 4229 case "(($ac_try" in 4230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4231 *) ac_try_echo=$ac_try;; 4232 esac 4233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4234 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3579 4235 ac_status=$? 3580 4236 grep -v '^ *+' conftest.er1 >conftest.err … … 3582 4238 cat conftest.err >&5 3583 4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3584 (exit $ac_status); } >/dev/null; then 3585 if test -s conftest.err; then 3586 ac_cpp_err=$ac_cxx_preproc_warn_flag 3587 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 3588 else 3589 ac_cpp_err= 3590 fi 3591 else 3592 ac_cpp_err=yes 3593 fi 3594 if test -z "$ac_cpp_err"; then 4240 (exit $ac_status); } >/dev/null && { 4241 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 4242 test ! -s conftest.err 4243 }; then 3595 4244 ac_header_preproc=yes 3596 4245 else … … 3600 4249 ac_header_preproc=no 3601 4250 fi 4251 3602 4252 rm -f conftest.err conftest.$ac_ext 3603 echo "$as_me:$LINENO: result: $ac_header_preproc" >&53604 echo "${ECHO_T}$ac_header_preproc" >&6 4253 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4254 echo "${ECHO_T}$ac_header_preproc" >&6; } 3605 4255 3606 4256 # So? What about this header? … … 3626 4276 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 3627 4277 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 3628 ( 3629 cat <<\_ASBOX 4278 ( cat <<\_ASBOX 3630 4279 ## ----------------------------------- ## 3631 4280 ## Report this to rappture@nanohub.org ## 3632 4281 ## ----------------------------------- ## 3633 4282 _ASBOX 3634 ) | 3635 sed "s/^/$as_me: WARNING: /" >&2 4283 ) | sed "s/^/$as_me: WARNING: /" >&2 3636 4284 ;; 3637 4285 esac 3638 echo "$as_me:$LINENO: checking for $ac_header" >&53639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3640 if eval "test \"\${$as_ac_Header+set}\" = set"; then4286 { echo "$as_me:$LINENO: checking for $ac_header" >&5 4287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3641 4289 echo $ECHO_N "(cached) $ECHO_C" >&6 3642 4290 else 3643 4291 eval "$as_ac_Header=\$ac_header_preproc" 3644 4292 fi 3645 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3646 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4293 ac_res=`eval echo '${'$as_ac_Header'}'` 4294 { echo "$as_me:$LINENO: result: $ac_res" >&5 4295 echo "${ECHO_T}$ac_res" >&6; } 3647 4296 3648 4297 fi … … 3661 4310 3662 4311 fi 3663 echo "$as_me:$LINENO: result: ${TCL_INCL_DIR}" >&53664 echo "${ECHO_T}${TCL_INCL_DIR}" >&6 3665 3666 3667 3668 # Check whether --with-rappture or --without-rappturewas given.4312 { echo "$as_me:$LINENO: result: ${TCL_INCL_DIR}" >&5 4313 echo "${ECHO_T}${TCL_INCL_DIR}" >&6; } 4314 4315 4316 4317 # Check whether --with-rappture was given. 3669 4318 if test "${with_rappture+set}" = set; then 3670 withval="$with_rappture" 3671 with_rappture=$withval 4319 withval=$with_rappture; with_rappture=$withval 3672 4320 else 3673 4321 with_rappture=/usr 3674 fi; 4322 fi 4323 3675 4324 3676 4325 RP2_INCL_DIR="" 3677 4326 RP_DIR="" 3678 echo "$as_me:$LINENO: checking for rappture" >&53679 echo $ECHO_N "checking for rappture... $ECHO_C" >&6 4327 { echo "$as_me:$LINENO: checking for rappture" >&5 4328 echo $ECHO_N "checking for rappture... $ECHO_C" >&6; } 3680 4329 if test "x$with_rappture" != "x" ; then 3681 4330 if test "x$with_rappture" != "xprefix" ; then 3682 4331 if test -f "$with_rappture" 3683 4332 then 3684 echo "$as_me:$LINENO: result: no" >&53685 echo "${ECHO_T}no" >&6 4333 { echo "$as_me:$LINENO: result: no" >&5 4334 echo "${ECHO_T}no" >&6; } 3686 4335 { { echo "$as_me:$LINENO: error: please provide --with-rappture with directory" >&5 3687 4336 echo "$as_me: error: please provide --with-rappture with directory" >&2;} … … 3694 4343 RP2_INCL_DIR="$with_rappture/include/rappture2" 3695 4344 RP_DIR="$with_rappture" 3696 echo "$as_me:$LINENO: result: yes" >&53697 echo "${ECHO_T}yes" >&6 4345 { echo "$as_me:$LINENO: result: yes" >&5 4346 echo "${ECHO_T}yes" >&6; } 3698 4347 else 3699 echo "$as_me:$LINENO: result: no" >&53700 echo "${ECHO_T}no" >&6 4348 { echo "$as_me:$LINENO: result: no" >&5 4349 echo "${ECHO_T}no" >&6; } 3701 4350 { { echo "$as_me:$LINENO: error: cannot find rappture2.h and librappture2.a, try using --with-rappture" >&5 3702 4351 echo "$as_me: error: cannot find rappture2.h and librappture2.a, try using --with-rappture" >&2;} … … 3704 4353 fi 3705 4354 else 3706 echo "$as_me:$LINENO: result: no" >&53707 echo "${ECHO_T}no" >&6 4355 { echo "$as_me:$LINENO: result: no" >&5 4356 echo "${ECHO_T}no" >&6; } 3708 4357 { { echo "$as_me:$LINENO: error: cannot find rappture2.h and librappture2.a inside $with_rappture, try using --with-rappture" >&5 3709 4358 echo "$as_me: error: cannot find rappture2.h and librappture2.a inside $with_rappture, try using --with-rappture" >&2;} … … 3714 4363 RP2_INCL_DIR="$prefix/include/rappture2" 3715 4364 RP_DIR="$prefix" 3716 echo "$as_me:$LINENO: result: set to prefix" >&53717 echo "${ECHO_T}set to prefix" >&6 4365 { echo "$as_me:$LINENO: result: set to prefix" >&5 4366 echo "${ECHO_T}set to prefix" >&6; } 3718 4367 fi 3719 4368 else … … 3722 4371 do 3723 4372 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3724 if eval "test \"\${$as_ac_Header+set}\" = set"; then3725 echo "$as_me:$LINENO: checking for $ac_header" >&53726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3727 if eval "test \"\${$as_ac_Header+set}\" = set"; then4373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4374 { echo "$as_me:$LINENO: checking for $ac_header" >&5 4375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3728 4377 echo $ECHO_N "(cached) $ECHO_C" >&6 3729 4378 fi 3730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3731 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4379 ac_res=`eval echo '${'$as_ac_Header'}'` 4380 { echo "$as_me:$LINENO: result: $ac_res" >&5 4381 echo "${ECHO_T}$ac_res" >&6; } 3732 4382 else 3733 4383 # Is the header compilable? 3734 echo "$as_me:$LINENO: checking $ac_header usability" >&53735 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4384 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 4385 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 3736 4386 cat >conftest.$ac_ext <<_ACEOF 3737 4387 /* confdefs.h. */ … … 3744 4394 _ACEOF 3745 4395 rm -f conftest.$ac_objext 3746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3747 (eval $ac_compile) 2>conftest.er1 4396 if { (ac_try="$ac_compile" 4397 case "(($ac_try" in 4398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4399 *) ac_try_echo=$ac_try;; 4400 esac 4401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4402 (eval "$ac_compile") 2>conftest.er1 3748 4403 ac_status=$? 3749 4404 grep -v '^ *+' conftest.er1 >conftest.err … … 3751 4406 cat conftest.err >&5 3752 4407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3753 (exit $ac_status); } && 3754 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3756 (eval $ac_try) 2>&5 3757 ac_status=$? 3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3759 (exit $ac_status); }; } && 3760 { ac_try='test -s conftest.$ac_objext' 3761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3762 (eval $ac_try) 2>&5 3763 ac_status=$? 3764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3765 (exit $ac_status); }; }; then 4408 (exit $ac_status); } && { 4409 test -z "$ac_cxx_werror_flag" || 4410 test ! -s conftest.err 4411 } && test -s conftest.$ac_objext; then 3766 4412 ac_header_compiler=yes 3767 4413 else … … 3769 4415 sed 's/^/| /' conftest.$ac_ext >&5 3770 4416 3771 ac_header_compiler=no 3772 fi 3773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3774 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3775 echo "${ECHO_T}$ac_header_compiler" >&6 4417 ac_header_compiler=no 4418 fi 4419 4420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4421 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4422 echo "${ECHO_T}$ac_header_compiler" >&6; } 3776 4423 3777 4424 # Is the header present? 3778 echo "$as_me:$LINENO: checking $ac_header presence" >&53779 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4425 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 4426 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 3780 4427 cat >conftest.$ac_ext <<_ACEOF 3781 4428 /* confdefs.h. */ … … 3786 4433 #include <$ac_header> 3787 4434 _ACEOF 3788 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3789 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4435 if { (ac_try="$ac_cpp conftest.$ac_ext" 4436 case "(($ac_try" in 4437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4438 *) ac_try_echo=$ac_try;; 4439 esac 4440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4441 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3790 4442 ac_status=$? 3791 4443 grep -v '^ *+' conftest.er1 >conftest.err … … 3793 4445 cat conftest.err >&5 3794 4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3795 (exit $ac_status); } >/dev/null; then 3796 if test -s conftest.err; then 3797 ac_cpp_err=$ac_cxx_preproc_warn_flag 3798 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 3799 else 3800 ac_cpp_err= 3801 fi 3802 else 3803 ac_cpp_err=yes 3804 fi 3805 if test -z "$ac_cpp_err"; then 4447 (exit $ac_status); } >/dev/null && { 4448 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 4449 test ! -s conftest.err 4450 }; then 3806 4451 ac_header_preproc=yes 3807 4452 else … … 3811 4456 ac_header_preproc=no 3812 4457 fi 4458 3813 4459 rm -f conftest.err conftest.$ac_ext 3814 echo "$as_me:$LINENO: result: $ac_header_preproc" >&53815 echo "${ECHO_T}$ac_header_preproc" >&6 4460 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4461 echo "${ECHO_T}$ac_header_preproc" >&6; } 3816 4462 3817 4463 # So? What about this header? … … 3837 4483 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 3838 4484 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 3839 ( 3840 cat <<\_ASBOX 4485 ( cat <<\_ASBOX 3841 4486 ## ----------------------------------- ## 3842 4487 ## Report this to rappture@nanohub.org ## 3843 4488 ## ----------------------------------- ## 3844 4489 _ASBOX 3845 ) | 3846 sed "s/^/$as_me: WARNING: /" >&2 4490 ) | sed "s/^/$as_me: WARNING: /" >&2 3847 4491 ;; 3848 4492 esac 3849 echo "$as_me:$LINENO: checking for $ac_header" >&53850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3851 if eval "test \"\${$as_ac_Header+set}\" = set"; then4493 { echo "$as_me:$LINENO: checking for $ac_header" >&5 4494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3852 4496 echo $ECHO_N "(cached) $ECHO_C" >&6 3853 4497 else 3854 4498 eval "$as_ac_Header=\$ac_header_preproc" 3855 4499 fi 3856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3857 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4500 ac_res=`eval echo '${'$as_ac_Header'}'` 4501 { echo "$as_me:$LINENO: result: $ac_res" >&5 4502 echo "${ECHO_T}$ac_res" >&6; } 3858 4503 3859 4504 fi … … 3872 4517 3873 4518 fi 3874 echo "$as_me:$LINENO: result: ${RP_DIR}/include" >&5 3875 echo "${ECHO_T}${RP_DIR}/include" >&6 3876 3877 3878 3879 3880 3881 ac_config_files="$ac_config_files Makefile nanoscale/Makefile nanovis/Makefile pymolproxy/Makefile start_viz.sh" 4519 { echo "$as_me:$LINENO: result: ${RP_DIR}/include" >&5 4520 echo "${ECHO_T}${RP_DIR}/include" >&6; } 4521 4522 4523 4524 4525 4526 ac_config_files="$ac_config_files Makefile nanoscale/Makefile nanovis/Makefile nanovis/newmat11/Makefile nanovis/R2/src/Makefile pymolproxy/Makefile start_viz.sh" 4527 3882 4528 cat >confcache <<\_ACEOF 3883 4529 # This file is a shell script that caches the results of configure … … 3898 4544 # The following way of writing the cache mishandles newlines in values, 3899 4545 # but we know of no workaround that is simple, portable, and efficient. 3900 # So, don't put newlines in cache variables' values.4546 # So, we kill variables containing newlines. 3901 4547 # Ultrix sh set writes to stderr and can't be redirected directly, 3902 4548 # and sets the high bit in the cache file unless we assign to the vars. 3903 { 4549 ( 4550 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 4551 eval ac_val=\$$ac_var 4552 case $ac_val in #( 4553 *${as_nl}*) 4554 case $ac_var in #( 4555 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 4556 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 4557 esac 4558 case $ac_var in #( 4559 _ | IFS | as_nl) ;; #( 4560 *) $as_unset $ac_var ;; 4561 esac ;; 4562 esac 4563 done 4564 3904 4565 (set) 2>&1 | 3905 case `(ac_space=' '; set | grep ac_space) 2>&1` in3906 * ac_space=\ *)4566 case $as_nl`(ac_space=' '; set) 2>&1` in #( 4567 *${as_nl}ac_space=\ *) 3907 4568 # `set' does not quote correctly, so add quotes (double-quote 3908 4569 # substitution turns \\\\ into \\, and sed turns \\ into \). … … 3910 4571 "s/'/'\\\\''/g; 3911 4572 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 3912 ;; 4573 ;; #( 3913 4574 *) 3914 4575 # `set' quotes correctly as required by POSIX, so do not add quotes. 3915 sed -n \ 3916 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 4576 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 3917 4577 ;; 3918 esac; 3919 } | 4578 esac | 4579 sort 4580 ) | 3920 4581 sed ' 4582 /^ac_cv_env_/b end 3921 4583 t clear 3922 : 4584 :clear 3923 4585 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 3924 4586 t end 3925 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 3926 : end' >>confcache 3927 if diff $cache_file confcache >/dev/null 2>&1; then :; else 3928 if test -w $cache_file; then 3929 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 4587 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 4588 :end' >>confcache 4589 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 4590 if test -w "$cache_file"; then 4591 test "x$cache_file" != "x/dev/null" && 4592 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 4593 echo "$as_me: updating cache $cache_file" >&6;} 3930 4594 cat confcache >$cache_file 3931 4595 else 3932 echo "not updating unwritable cache $cache_file" 4596 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 4597 echo "$as_me: not updating unwritable cache $cache_file" >&6;} 3933 4598 fi 3934 4599 fi … … 3938 4603 # Let make expand exec_prefix. 3939 4604 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 3940 3941 # VPATH may cause trouble with some makes, so we remove $(srcdir),3942 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and3943 # trailing colons and then remove the whole line if VPATH becomes empty3944 # (actually we leave an empty line to preserve line numbers).3945 if test "x$srcdir" = x.; then3946 ac_vpsub='/^[ ]*VPATH[ ]*=/{3947 s/:*\$(srcdir):*/:/;3948 s/:*\${srcdir}:*/:/;3949 s/:*@srcdir@:*/:/;3950 s/^\([^=]*=[ ]*\):*/\1/;3951 s/:*$//;3952 s/^[^=]*=[ ]*$//;3953 }'3954 fi3955 4605 3956 4606 # Transform confdefs.h into DEFS. … … 3959 4609 # 3960 4610 # If the first sed substitution is executed (which looks for macros that 3961 # take arguments), then webranch to the quote section. Otherwise,4611 # take arguments), then branch to the quote section. Otherwise, 3962 4612 # look for a macro that doesn't take arguments. 3963 cat >confdef2opt.sed <<\_ACEOF 4613 ac_script=' 3964 4614 t clear 3965 : 3966 s ,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g4615 :clear 4616 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 3967 4617 t quote 3968 s ,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g4618 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 3969 4619 t quote 3970 d 3971 : quote 3972 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g 3973 s,\[,\\&,g 3974 s,\],\\&,g 3975 s,\$,$$,g 3976 p 3977 _ACEOF 3978 # We use echo to avoid assuming a particular line-breaking character. 3979 # The extra dot is to prevent the shell from consuming trailing 3980 # line-breaks from the sub-command output. A line-break within 3981 # single-quotes doesn't work because, if this script is created in a 3982 # platform that uses two characters for line-breaks (e.g., DOS), tr 3983 # would break. 3984 ac_LF_and_DOT=`echo; echo .` 3985 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` 3986 rm -f confdef2opt.sed 4620 b any 4621 :quote 4622 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 4623 s/\[/\\&/g 4624 s/\]/\\&/g 4625 s/\$/$$/g 4626 H 4627 :any 4628 ${ 4629 g 4630 s/^\n// 4631 s/\n/ /g 4632 p 4633 } 4634 ' 4635 DEFS=`sed -n "$ac_script" confdefs.h` 3987 4636 3988 4637 … … 3991 4640 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 3992 4641 # 1. Remove the extension, and $U if already installed. 3993 ac_i=`echo "$ac_i" | 3994 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 3995 # 2. Add them. 3996 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 3997 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 4642 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 4643 ac_i=`echo "$ac_i" | sed "$ac_script"` 4644 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 4645 # will be set to the directory where LIBOBJS objects are built. 4646 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 4647 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 3998 4648 done 3999 4649 LIBOBJS=$ac_libobjs … … 4026 4676 ## --------------------- ## 4027 4677 4028 # Be Bourne compatible 4678 # Be more Bourne compatible 4679 DUALCASE=1; export DUALCASE # for MKS sh 4029 4680 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 4030 4681 emulate sh … … 4033 4684 # is contrary to our usage. Disable this feature. 4034 4685 alias -g '${1+"$@"}'='"$@"' 4035 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 4036 set -o posix 4037 fi 4038 DUALCASE=1; export DUALCASE # for MKS sh 4039 4040 # Support unset when possible. 4041 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4042 as_unset=unset 4043 else 4044 as_unset=false 4045 fi 4046 4047 4048 # Work around bugs in pre-3.0 UWIN ksh. 4049 $as_unset ENV MAIL MAILPATH 4050 PS1='$ ' 4051 PS2='> ' 4052 PS4='+ ' 4053 4054 # NLS nuisances. 4055 for as_var in \ 4056 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 4057 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 4058 LC_TELEPHONE LC_TIME 4059 do 4060 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 4061 eval $as_var=C; export $as_var 4062 else 4063 $as_unset $as_var 4064 fi 4065 done 4066 4067 # Required to use basename. 4068 if expr a : '\(a\)' >/dev/null 2>&1; then 4069 as_expr=expr 4070 else 4071 as_expr=false 4072 fi 4073 4074 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 4075 as_basename=basename 4076 else 4077 as_basename=false 4078 fi 4079 4080 4081 # Name of the executable. 4082 as_me=`$as_basename "$0" || 4083 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 4084 X"$0" : 'X\(//\)$' \| \ 4085 X"$0" : 'X\(/\)$' \| \ 4086 . : '\(.\)' 2>/dev/null || 4087 echo X/"$0" | 4088 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 4089 /^X\/\(\/\/\)$/{ s//\1/; q; } 4090 /^X\/\(\/\).*/{ s//\1/; q; } 4091 s/.*/./; q'` 4092 4093 4094 # PATH needs CR, and LINENO needs CR and PATH. 4686 setopt NO_GLOB_SUBST 4687 else 4688 case `(set -o) 2>/dev/null` in 4689 *posix*) set -o posix ;; 4690 esac 4691 4692 fi 4693 4694 4695 4696 4697 # PATH needs CR 4095 4698 # Avoid depending upon Character Ranges. 4096 4699 as_cr_letters='abcdefghijklmnopqrstuvwxyz' … … 4113 4716 fi 4114 4717 4115 4116 as_lineno_1=$LINENO 4117 as_lineno_2=$LINENO 4118 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 4119 test "x$as_lineno_1" != "x$as_lineno_2" && 4120 test "x$as_lineno_3" = "x$as_lineno_2" || { 4121 # Find who we are. Look in the path if we contain no path at all 4122 # relative or not. 4123 case $0 in 4124 *[\\/]* ) as_myself=$0 ;; 4125 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4718 # Support unset when possible. 4719 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4720 as_unset=unset 4721 else 4722 as_unset=false 4723 fi 4724 4725 4726 # IFS 4727 # We need space, tab and new line, in precisely that order. Quoting is 4728 # there to prevent editors from complaining about space-tab. 4729 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 4730 # splitting by setting IFS to empty value.) 4731 as_nl=' 4732 ' 4733 IFS=" "" $as_nl" 4734 4735 # Find who we are. Look in the path if we contain no directory separator. 4736 case $0 in 4737 *[\\/]* ) as_myself=$0 ;; 4738 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4126 4739 for as_dir in $PATH 4127 4740 do … … 4130 4743 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 4131 4744 done 4132 4133 ;; 4134 esac 4135 # We did not find ourselves, most probably we were run as `sh COMMAND' 4136 # in which case we are not to be found in the path. 4137 if test "x$as_myself" = x; then 4138 as_myself=$0 4745 IFS=$as_save_IFS 4746 4747 ;; 4748 esac 4749 # We did not find ourselves, most probably we were run as `sh COMMAND' 4750 # in which case we are not to be found in the path. 4751 if test "x$as_myself" = x; then 4752 as_myself=$0 4753 fi 4754 if test ! -f "$as_myself"; then 4755 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 4756 { (exit 1); exit 1; } 4757 fi 4758 4759 # Work around bugs in pre-3.0 UWIN ksh. 4760 for as_var in ENV MAIL MAILPATH 4761 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 4762 done 4763 PS1='$ ' 4764 PS2='> ' 4765 PS4='+ ' 4766 4767 # NLS nuisances. 4768 for as_var in \ 4769 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 4770 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 4771 LC_TELEPHONE LC_TIME 4772 do 4773 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 4774 eval $as_var=C; export $as_var 4775 else 4776 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 4139 4777 fi 4140 if test ! -f "$as_myself"; then 4141 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 4142 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 4143 { (exit 1); exit 1; }; } 4144 fi 4145 case $CONFIG_SHELL in 4146 '') 4147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4148 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 4149 do 4150 IFS=$as_save_IFS 4151 test -z "$as_dir" && as_dir=. 4152 for as_base in sh bash ksh sh5; do 4153 case $as_dir in 4154 /*) 4155 if ("$as_dir/$as_base" -c ' 4778 done 4779 4780 # Required to use basename. 4781 if expr a : '\(a\)' >/dev/null 2>&1 && 4782 test "X`expr 00001 : '.*\(...\)'`" = X001; then 4783 as_expr=expr 4784 else 4785 as_expr=false 4786 fi 4787 4788 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 4789 as_basename=basename 4790 else 4791 as_basename=false 4792 fi 4793 4794 4795 # Name of the executable. 4796 as_me=`$as_basename -- "$0" || 4797 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 4798 X"$0" : 'X\(//\)$' \| \ 4799 X"$0" : 'X\(/\)' \| . 2>/dev/null || 4800 echo X/"$0" | 4801 sed '/^.*\/\([^/][^/]*\)\/*$/{ 4802 s//\1/ 4803 q 4804 } 4805 /^X\/\(\/\/\)$/{ 4806 s//\1/ 4807 q 4808 } 4809 /^X\/\(\/\).*/{ 4810 s//\1/ 4811 q 4812 } 4813 s/.*/./; q'` 4814 4815 # CDPATH. 4816 $as_unset CDPATH 4817 4818 4819 4156 4820 as_lineno_1=$LINENO 4157 4821 as_lineno_2=$LINENO 4158 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`4159 4822 test "x$as_lineno_1" != "x$as_lineno_2" && 4160 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 4161 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 4162 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 4163 CONFIG_SHELL=$as_dir/$as_base 4164 export CONFIG_SHELL 4165 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 4166 fi;; 4167 esac 4168 done 4169 done 4170 ;; 4171 esac 4823 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 4172 4824 4173 4825 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 4174 4826 # uniformly replaced by the line number. The first 'sed' inserts a 4175 # line-number line before each line; the second 'sed' does the real 4176 # work. The second script uses 'N' to pair each line-number line 4177 # with the numbered line, and appends trailing '-' during 4178 # substitution so that $LINENO is not a special case at line end. 4827 # line-number line after each line using $LINENO; the second 'sed' 4828 # does the real work. The second script uses 'N' to pair each 4829 # line-number line with the line containing $LINENO, and appends 4830 # trailing '-' during substitution so that $LINENO is not a special 4831 # case at line end. 4179 4832 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 4180 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 4181 sed '=' <$as_myself | 4833 # scripts with optimization help from Paolo Bonzini. Blame Lee 4834 # E. McMahon (1931-1989) for sed's syntax. :-) 4835 sed -n ' 4836 p 4837 /[$]LINENO/= 4838 ' <$as_myself | 4182 4839 sed ' 4840 s/[$]LINENO.*/&-/ 4841 t lineno 4842 b 4843 :lineno 4183 4844 N 4184 s,$,-, 4185 : loop 4186 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 4845 :loop 4846 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 4187 4847 t loop 4188 s,-$,, 4189 s,^['$as_cr_digits']*\n,, 4848 s/-\n.*// 4190 4849 ' >$as_me.lineno && 4191 chmod +x $as_me.lineno || 4192 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 4193 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 4850 chmod +x "$as_me.lineno" || 4851 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 4194 4852 { (exit 1); exit 1; }; } 4195 4853 4196 4854 # Don't try to exec as it changes $[0], causing all sort of problems 4197 4855 # (the dirname of $[0] is not the place where we might find the 4198 # original and so on. Autoconf is especially sensi ble to this).4199 . ./$as_me.lineno4856 # original and so on. Autoconf is especially sensitive to this). 4857 . "./$as_me.lineno" 4200 4858 # Exit status is that of the last command. 4201 4859 exit … … 4203 4861 4204 4862 4205 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 4206 *c*,-n*) ECHO_N= ECHO_C=' 4207 ' ECHO_T=' ' ;; 4208 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 4209 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 4210 esac 4211 4212 if expr a : '\(a\)' >/dev/null 2>&1; then 4863 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 4864 as_dirname=dirname 4865 else 4866 as_dirname=false 4867 fi 4868 4869 ECHO_C= ECHO_N= ECHO_T= 4870 case `echo -n x` in 4871 -n*) 4872 case `echo 'x\c'` in 4873 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 4874 *) ECHO_C='\c';; 4875 esac;; 4876 *) 4877 ECHO_N='-n';; 4878 esac 4879 4880 if expr a : '\(a\)' >/dev/null 2>&1 && 4881 test "X`expr 00001 : '.*\(...\)'`" = X001; then 4213 4882 as_expr=expr 4214 4883 else … … 4217 4886 4218 4887 rm -f conf$$ conf$$.exe conf$$.file 4888 if test -d conf$$.dir; then 4889 rm -f conf$$.dir/conf$$.file 4890 else 4891 rm -f conf$$.dir 4892 mkdir conf$$.dir 4893 fi 4219 4894 echo >conf$$.file 4220 4895 if ln -s conf$$.file conf$$ 2>/dev/null; then 4221 # We could just check for DJGPP; but this test a) works b) is more generic 4222 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 4223 if test -f conf$$.exe; then 4224 # Don't use ln at all; we don't have any links 4896 as_ln_s='ln -s' 4897 # ... but there are two gotchas: 4898 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 4899 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 4900 # In both cases, we have to default to `cp -p'. 4901 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 4225 4902 as_ln_s='cp -p' 4226 else4227 as_ln_s='ln -s'4228 fi4229 4903 elif ln conf$$.file conf$$ 2>/dev/null; then 4230 4904 as_ln_s=ln … … 4232 4906 as_ln_s='cp -p' 4233 4907 fi 4234 rm -f conf$$ conf$$.exe conf$$.file 4908 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 4909 rmdir conf$$.dir 2>/dev/null 4235 4910 4236 4911 if mkdir -p . 2>/dev/null; then … … 4241 4916 fi 4242 4917 4243 as_executable_p="test -f" 4918 if test -x / >/dev/null 2>&1; then 4919 as_test_x='test -x' 4920 else 4921 if ls -dL / >/dev/null 2>&1; then 4922 as_ls_L_option=L 4923 else 4924 as_ls_L_option= 4925 fi 4926 as_test_x=' 4927 eval sh -c '\'' 4928 if test -d "$1"; then 4929 test -d "$1/."; 4930 else 4931 case $1 in 4932 -*)set "./$1";; 4933 esac; 4934 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 4935 ???[sx]*):;;*)false;;esac;fi 4936 '\'' sh 4937 ' 4938 fi 4939 as_executable_p=$as_test_x 4244 4940 4245 4941 # Sed expression to map a string onto a valid CPP name. … … 4250 4946 4251 4947 4252 # IFS4253 # We need space, tab and new line, in precisely that order.4254 as_nl='4255 '4256 IFS=" $as_nl"4257 4258 # CDPATH.4259 $as_unset CDPATH4260 4261 4948 exec 6>&1 4262 4949 4263 # Open the log real soon, to keep \$[0] and so on meaningful, and to4950 # Save the log message, to keep $[0] and so on meaningful, and to 4264 4951 # report actual input values of CONFIG_FILES etc. instead of their 4265 # values after options handling. Logging --version etc. is OK. 4266 exec 5>>config.log 4267 { 4268 echo 4269 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 4270 ## Running $as_me. ## 4271 _ASBOX 4272 } >&5 4273 cat >&5 <<_CSEOF 4274 4952 # values after options handling. 4953 ac_log=" 4275 4954 This file was extended by vizservers $as_me 0.1, which was 4276 generated by GNU Autoconf 2. 59. Invocation command line was4955 generated by GNU Autoconf 2.61. Invocation command line was 4277 4956 4278 4957 CONFIG_FILES = $CONFIG_FILES … … 4282 4961 $ $0 $@ 4283 4962 4284 _CSEOF 4285 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 4286 echo >&5 4287 _ACEOF 4288 4963 on `(hostname || uname -n) 2>/dev/null | sed 1q` 4964 " 4965 4966 _ACEOF 4967 4968 cat >>$CONFIG_STATUS <<_ACEOF 4289 4969 # Files that config.status was made for. 4290 if test -n "$ac_config_files"; then 4291 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 4292 fi 4293 4294 if test -n "$ac_config_headers"; then 4295 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 4296 fi 4297 4298 if test -n "$ac_config_links"; then 4299 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 4300 fi 4301 4302 if test -n "$ac_config_commands"; then 4303 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 4304 fi 4970 config_files="$ac_config_files" 4971 4972 _ACEOF 4305 4973 4306 4974 cat >>$CONFIG_STATUS <<\_ACEOF 4307 4308 4975 ac_cs_usage="\ 4309 4976 \`$as_me' instantiates files from templates according to the … … 4313 4980 4314 4981 -h, --help print this help, then exit 4315 -V, --version print version number , then exit4982 -V, --version print version number and configuration settings, then exit 4316 4983 -q, --quiet do not print progress messages 4317 4984 -d, --debug don't remove temporary files … … 4324 4991 4325 4992 Report bugs to <bug-autoconf@gnu.org>." 4326 _ACEOF 4327 4993 4994 _ACEOF 4328 4995 cat >>$CONFIG_STATUS <<_ACEOF 4329 4996 ac_cs_version="\\ 4330 4997 vizservers config.status 0.1 4331 configured by $0, generated by GNU Autoconf 2. 59,4332 with options \\"`echo "$ac_configure_args" | sed 's/ [\\""\`\$]/\\\\&/g'`\\"4333 4334 Copyright (C) 200 3Free Software Foundation, Inc.4998 configured by $0, generated by GNU Autoconf 2.61, 4999 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 5000 5001 Copyright (C) 2006 Free Software Foundation, Inc. 4335 5002 This config.status script is free software; the Free Software Foundation 4336 5003 gives unlimited permission to copy, distribute and modify it." 4337 srcdir=$srcdir 4338 INSTALL="$INSTALL" 5004 5005 ac_pwd='$ac_pwd' 5006 srcdir='$srcdir' 5007 INSTALL='$INSTALL' 4339 5008 _ACEOF 4340 5009 … … 4347 5016 case $1 in 4348 5017 --*=*) 4349 ac_option=`expr " x$1" : 'x\([^=]*\)='`4350 ac_optarg=`expr " x$1" : 'x[^=]*=\(.*\)'`5018 ac_option=`expr "X$1" : 'X\([^=]*\)='` 5019 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 4351 5020 ac_shift=: 4352 5021 ;; 4353 -*)5022 *) 4354 5023 ac_option=$1 4355 5024 ac_optarg=$2 4356 5025 ac_shift=shift 4357 5026 ;; 4358 *) # This is not an option, so the user has probably given explicit4359 # arguments.4360 ac_option=$14361 ac_need_defaults=false;;4362 5027 esac 4363 5028 4364 5029 case $ac_option in 4365 5030 # Handling of the options. 4366 _ACEOF4367 cat >>$CONFIG_STATUS <<\_ACEOF4368 5031 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 4369 5032 ac_cs_recheck=: ;; 4370 --version | --vers* | -V ) 4371 echo "$ac_cs_version"; exit 0 ;; 4372 --he | --h) 4373 # Conflict between --help and --header 4374 { { echo "$as_me:$LINENO: error: ambiguous option: $1 4375 Try \`$0 --help' for more information." >&5 4376 echo "$as_me: error: ambiguous option: $1 4377 Try \`$0 --help' for more information." >&2;} 4378 { (exit 1); exit 1; }; };; 4379 --help | --hel | -h ) 4380 echo "$ac_cs_usage"; exit 0 ;; 4381 --debug | --d* | -d ) 5033 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 5034 echo "$ac_cs_version"; exit ;; 5035 --debug | --debu | --deb | --de | --d | -d ) 4382 5036 debug=: ;; 4383 5037 --file | --fil | --fi | --f ) … … 4385 5039 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 4386 5040 ac_need_defaults=false;; 4387 --header | --heade | --head | --hea ) 4388 $ac_shift 4389 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 4390 ac_need_defaults=false;; 5041 --he | --h | --help | --hel | -h ) 5042 echo "$ac_cs_usage"; exit ;; 4391 5043 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 4392 5044 | -silent | --silent | --silen | --sile | --sil | --si | --s) … … 4394 5046 4395 5047 # This is an error. 4396 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 4397 Try \`$0 --help' for more information." >&5 4398 echo "$as_me: error: unrecognized option: $1 4399 Try \`$0 --help' for more information." >&2;} 5048 -*) { echo "$as_me: error: unrecognized option: $1 5049 Try \`$0 --help' for more information." >&2 4400 5050 { (exit 1); exit 1; }; } ;; 4401 5051 4402 *) ac_config_targets="$ac_config_targets $1" ;; 5052 *) ac_config_targets="$ac_config_targets $1" 5053 ac_need_defaults=false ;; 4403 5054 4404 5055 esac … … 4416 5067 cat >>$CONFIG_STATUS <<_ACEOF 4417 5068 if \$ac_cs_recheck; then 4418 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 4419 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 4420 fi 4421 4422 _ACEOF 4423 4424 4425 4426 4427 5069 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 5070 CONFIG_SHELL=$SHELL 5071 export CONFIG_SHELL 5072 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 5073 fi 5074 5075 _ACEOF 4428 5076 cat >>$CONFIG_STATUS <<\_ACEOF 5077 exec 5>>config.log 5078 { 5079 echo 5080 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 5081 ## Running $as_me. ## 5082 _ASBOX 5083 echo "$ac_log" 5084 } >&5 5085 5086 _ACEOF 5087 cat >>$CONFIG_STATUS <<_ACEOF 5088 _ACEOF 5089 5090 cat >>$CONFIG_STATUS <<\_ACEOF 5091 5092 # Handling of arguments. 4429 5093 for ac_config_target in $ac_config_targets 4430 5094 do 4431 case "$ac_config_target" in 4432 # Handling of arguments. 4433 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 4434 "nanoscale/Makefile" ) CONFIG_FILES="$CONFIG_FILES nanoscale/Makefile" ;; 4435 "nanovis/Makefile" ) CONFIG_FILES="$CONFIG_FILES nanovis/Makefile" ;; 4436 "pymolproxy/Makefile" ) CONFIG_FILES="$CONFIG_FILES pymolproxy/Makefile" ;; 4437 "start_viz.sh" ) CONFIG_FILES="$CONFIG_FILES start_viz.sh" ;; 5095 case $ac_config_target in 5096 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 5097 "nanoscale/Makefile") CONFIG_FILES="$CONFIG_FILES nanoscale/Makefile" ;; 5098 "nanovis/Makefile") CONFIG_FILES="$CONFIG_FILES nanovis/Makefile" ;; 5099 "nanovis/newmat11/Makefile") CONFIG_FILES="$CONFIG_FILES nanovis/newmat11/Makefile" ;; 5100 "nanovis/R2/src/Makefile") CONFIG_FILES="$CONFIG_FILES nanovis/R2/src/Makefile" ;; 5101 "pymolproxy/Makefile") CONFIG_FILES="$CONFIG_FILES pymolproxy/Makefile" ;; 5102 "start_viz.sh") CONFIG_FILES="$CONFIG_FILES start_viz.sh" ;; 5103 4438 5104 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 4439 5105 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} … … 4441 5107 esac 4442 5108 done 5109 4443 5110 4444 5111 # If the user did not use the arguments to specify the items to instantiate, … … 4451 5118 4452 5119 # Have a temporary directory for convenience. Make it in the build tree 4453 # simply because there is no reason to putit here, and in addition,5120 # simply because there is no reason against having it here, and in addition, 4454 5121 # creating and moving files from /tmp can sometimes cause problems. 4455 # Create a temporary directory, and hook for its removal unless debugging. 5122 # Hook for its removal unless debugging. 5123 # Note that there is a small window in which the directory will not be cleaned: 5124 # after its creation but before its name has been assigned to `$tmp'. 4456 5125 $debug || 4457 5126 { 4458 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 5127 tmp= 5128 trap 'exit_status=$? 5129 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 5130 ' 0 4459 5131 trap '{ (exit 1); exit 1; }' 1 2 13 15 4460 5132 } 4461 4462 5133 # Create a (secure) tmp directory for tmp files. 4463 5134 4464 5135 { 4465 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&5136 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 4466 5137 test -n "$tmp" && test -d "$tmp" 4467 5138 } || 4468 5139 { 4469 tmp=./conf stat$$-$RANDOM4470 (umask 077 && mkdir $tmp)5140 tmp=./conf$$-$RANDOM 5141 (umask 077 && mkdir "$tmp") 4471 5142 } || 4472 5143 { … … 4475 5146 } 4476 5147 4477 _ACEOF4478 4479 cat >>$CONFIG_STATUS <<_ACEOF4480 4481 5148 # 4482 # CONFIG_FILES section.5149 # Set up the sed scripts for CONFIG_FILES section. 4483 5150 # 4484 5151 4485 5152 # No need to generate the scripts if there are no CONFIG_FILES. 4486 5153 # This happens for instance when ./config.status config.h 4487 if test -n "\$CONFIG_FILES"; then 4488 # Protect against being on the right side of a sed subst in config.status. 4489 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 4490 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 4491 s,@SHELL@,$SHELL,;t t 4492 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 4493 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 4494 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 4495 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 4496 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 4497 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 4498 s,@exec_prefix@,$exec_prefix,;t t 4499 s,@prefix@,$prefix,;t t 4500 s,@program_transform_name@,$program_transform_name,;t t 4501 s,@bindir@,$bindir,;t t 4502 s,@sbindir@,$sbindir,;t t 4503 s,@libexecdir@,$libexecdir,;t t 4504 s,@datadir@,$datadir,;t t 4505 s,@sysconfdir@,$sysconfdir,;t t 4506 s,@sharedstatedir@,$sharedstatedir,;t t 4507 s,@localstatedir@,$localstatedir,;t t 4508 s,@libdir@,$libdir,;t t 4509 s,@includedir@,$includedir,;t t 4510 s,@oldincludedir@,$oldincludedir,;t t 4511 s,@infodir@,$infodir,;t t 4512 s,@mandir@,$mandir,;t t 4513 s,@build_alias@,$build_alias,;t t 4514 s,@host_alias@,$host_alias,;t t 4515 s,@target_alias@,$target_alias,;t t 4516 s,@DEFS@,$DEFS,;t t 4517 s,@ECHO_C@,$ECHO_C,;t t 4518 s,@ECHO_N@,$ECHO_N,;t t 4519 s,@ECHO_T@,$ECHO_T,;t t 4520 s,@LIBS@,$LIBS,;t t 4521 s,@VERSION@,$VERSION,;t t 4522 s,@LIB_SEARCH_DIRS@,$LIB_SEARCH_DIRS,;t t 4523 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 4524 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 4525 s,@INSTALL_DATA@,$INSTALL_DATA,;t t 4526 s,@SET_MAKE@,$SET_MAKE,;t t 4527 s,@CC@,$CC,;t t 4528 s,@CFLAGS@,$CFLAGS,;t t 4529 s,@LDFLAGS@,$LDFLAGS,;t t 4530 s,@CPPFLAGS@,$CPPFLAGS,;t t 4531 s,@ac_ct_CC@,$ac_ct_CC,;t t 4532 s,@EXEEXT@,$EXEEXT,;t t 4533 s,@OBJEXT@,$OBJEXT,;t t 4534 s,@CXX@,$CXX,;t t 4535 s,@CXXFLAGS@,$CXXFLAGS,;t t 4536 s,@ac_ct_CXX@,$ac_ct_CXX,;t t 4537 s,@SUBDIRS@,$SUBDIRS,;t t 4538 s,@CXXCPP@,$CXXCPP,;t t 4539 s,@EGREP@,$EGREP,;t t 4540 s,@TCL_LIB_DIR@,$TCL_LIB_DIR,;t t 4541 s,@TCL_LIB@,$TCL_LIB,;t t 4542 s,@TCL_LIB_VERSION@,$TCL_LIB_VERSION,;t t 4543 s,@TCL_INCL_DIR@,$TCL_INCL_DIR,;t t 4544 s,@RP2_INCL_DIR@,$RP2_INCL_DIR,;t t 4545 s,@RP_DIR@,$RP_DIR,;t t 4546 s,@LIBOBJS@,$LIBOBJS,;t t 4547 s,@LTLIBOBJS@,$LTLIBOBJS,;t t 4548 CEOF 4549 4550 _ACEOF 4551 4552 cat >>$CONFIG_STATUS <<\_ACEOF 4553 # Split the substitutions into bite-sized pieces for seds with 4554 # small command number limits, like on Digital OSF/1 and HP-UX. 4555 ac_max_sed_lines=48 4556 ac_sed_frag=1 # Number of current file. 4557 ac_beg=1 # First line for current file. 4558 ac_end=$ac_max_sed_lines # Line after last line for current file. 4559 ac_more_lines=: 4560 ac_sed_cmds= 4561 while $ac_more_lines; do 4562 if test $ac_beg -gt 1; then 4563 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 4564 else 4565 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 5154 if test -n "$CONFIG_FILES"; then 5155 5156 _ACEOF 5157 5158 5159 5160 ac_delim='%!_!# ' 5161 for ac_last_try in false false false false false :; do 5162 cat >conf$$subs.sed <<_ACEOF 5163 SHELL!$SHELL$ac_delim 5164 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 5165 PACKAGE_NAME!$PACKAGE_NAME$ac_delim 5166 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 5167 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 5168 PACKAGE_STRING!$PACKAGE_STRING$ac_delim 5169 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 5170 exec_prefix!$exec_prefix$ac_delim 5171 prefix!$prefix$ac_delim 5172 program_transform_name!$program_transform_name$ac_delim 5173 bindir!$bindir$ac_delim 5174 sbindir!$sbindir$ac_delim 5175 libexecdir!$libexecdir$ac_delim 5176 datarootdir!$datarootdir$ac_delim 5177 datadir!$datadir$ac_delim 5178 sysconfdir!$sysconfdir$ac_delim 5179 sharedstatedir!$sharedstatedir$ac_delim 5180 localstatedir!$localstatedir$ac_delim 5181 includedir!$includedir$ac_delim 5182 oldincludedir!$oldincludedir$ac_delim 5183 docdir!$docdir$ac_delim 5184 infodir!$infodir$ac_delim 5185 htmldir!$htmldir$ac_delim 5186 dvidir!$dvidir$ac_delim 5187 pdfdir!$pdfdir$ac_delim 5188 psdir!$psdir$ac_delim 5189 libdir!$libdir$ac_delim 5190 localedir!$localedir$ac_delim 5191 mandir!$mandir$ac_delim 5192 DEFS!$DEFS$ac_delim 5193 ECHO_C!$ECHO_C$ac_delim 5194 ECHO_N!$ECHO_N$ac_delim 5195 ECHO_T!$ECHO_T$ac_delim 5196 LIBS!$LIBS$ac_delim 5197 build_alias!$build_alias$ac_delim 5198 host_alias!$host_alias$ac_delim 5199 target_alias!$target_alias$ac_delim 5200 VERSION!$VERSION$ac_delim 5201 LIB_SEARCH_DIRS!$LIB_SEARCH_DIRS$ac_delim 5202 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 5203 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 5204 INSTALL_DATA!$INSTALL_DATA$ac_delim 5205 SET_MAKE!$SET_MAKE$ac_delim 5206 CC!$CC$ac_delim 5207 CFLAGS!$CFLAGS$ac_delim 5208 LDFLAGS!$LDFLAGS$ac_delim 5209 CPPFLAGS!$CPPFLAGS$ac_delim 5210 ac_ct_CC!$ac_ct_CC$ac_delim 5211 EXEEXT!$EXEEXT$ac_delim 5212 OBJEXT!$OBJEXT$ac_delim 5213 RANLIB!$RANLIB$ac_delim 5214 CXX!$CXX$ac_delim 5215 CXXFLAGS!$CXXFLAGS$ac_delim 5216 ac_ct_CXX!$ac_ct_CXX$ac_delim 5217 SUBDIRS!$SUBDIRS$ac_delim 5218 CXXCPP!$CXXCPP$ac_delim 5219 GREP!$GREP$ac_delim 5220 EGREP!$EGREP$ac_delim 5221 TCL_LIB_DIR!$TCL_LIB_DIR$ac_delim 5222 TCL_LIB!$TCL_LIB$ac_delim 5223 TCL_LIB_VERSION!$TCL_LIB_VERSION$ac_delim 5224 TCL_INCL_DIR!$TCL_INCL_DIR$ac_delim 5225 RP2_INCL_DIR!$RP2_INCL_DIR$ac_delim 5226 RP_DIR!$RP_DIR$ac_delim 5227 LIBOBJS!$LIBOBJS$ac_delim 5228 LTLIBOBJS!$LTLIBOBJS$ac_delim 5229 _ACEOF 5230 5231 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 66; then 5232 break 5233 elif $ac_last_try; then 5234 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 5235 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 5236 { (exit 1); exit 1; }; } 5237 else 5238 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 5239 fi 5240 done 5241 5242 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 5243 if test -n "$ac_eof"; then 5244 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 5245 ac_eof=`expr $ac_eof + 1` 5246 fi 5247 5248 cat >>$CONFIG_STATUS <<_ACEOF 5249 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 5250 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 5251 _ACEOF 5252 sed ' 5253 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 5254 s/^/s,@/; s/!/@,|#_!!_#|/ 5255 :n 5256 t n 5257 s/'"$ac_delim"'$/,g/; t 5258 s/$/\\/; p 5259 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 5260 ' >>$CONFIG_STATUS <conf$$subs.sed 5261 rm -f conf$$subs.sed 5262 cat >>$CONFIG_STATUS <<_ACEOF 5263 :end 5264 s/|#_!!_#|//g 5265 CEOF$ac_eof 5266 _ACEOF 5267 5268 5269 # VPATH may cause trouble with some makes, so we remove $(srcdir), 5270 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 5271 # trailing colons and then remove the whole line if VPATH becomes empty 5272 # (actually we leave an empty line to preserve line numbers). 5273 if test "x$srcdir" = x.; then 5274 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 5275 s/:*\$(srcdir):*/:/ 5276 s/:*\${srcdir}:*/:/ 5277 s/:*@srcdir@:*/:/ 5278 s/^\([^=]*=[ ]*\):*/\1/ 5279 s/:*$// 5280 s/^[^=]*=[ ]*$// 5281 }' 5282 fi 5283 5284 cat >>$CONFIG_STATUS <<\_ACEOF 5285 fi # test -n "$CONFIG_FILES" 5286 5287 5288 for ac_tag in :F $CONFIG_FILES 5289 do 5290 case $ac_tag in 5291 :[FHLC]) ac_mode=$ac_tag; continue;; 5292 esac 5293 case $ac_mode$ac_tag in 5294 :[FHL]*:*);; 5295 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 5296 echo "$as_me: error: Invalid tag $ac_tag." >&2;} 5297 { (exit 1); exit 1; }; };; 5298 :[FH]-) ac_tag=-:-;; 5299 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 5300 esac 5301 ac_save_IFS=$IFS 5302 IFS=: 5303 set x $ac_tag 5304 IFS=$ac_save_IFS 5305 shift 5306 ac_file=$1 5307 shift 5308 5309 case $ac_mode in 5310 :L) ac_source=$1;; 5311 :[FH]) 5312 ac_file_inputs= 5313 for ac_f 5314 do 5315 case $ac_f in 5316 -) ac_f="$tmp/stdin";; 5317 *) # Look for the file first in the build tree, then in the source tree 5318 # (if the path is not absolute). The absolute path cannot be DOS-style, 5319 # because $ac_f cannot contain `:'. 5320 test -f "$ac_f" || 5321 case $ac_f in 5322 [\\/$]*) false;; 5323 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 5324 esac || 5325 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 5326 echo "$as_me: error: cannot find input file: $ac_f" >&2;} 5327 { (exit 1); exit 1; }; };; 5328 esac 5329 ac_file_inputs="$ac_file_inputs $ac_f" 5330 done 5331 5332 # Let's still pretend it is `configure' which instantiates (i.e., don't 5333 # use $as_me), people would be surprised to read: 5334 # /* config.h. Generated by config.status. */ 5335 configure_input="Generated from "`IFS=: 5336 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 5337 if test x"$ac_file" != x-; then 5338 configure_input="$ac_file. $configure_input" 5339 { echo "$as_me:$LINENO: creating $ac_file" >&5 5340 echo "$as_me: creating $ac_file" >&6;} 4566 5341 fi 4567 if test ! -s $tmp/subs.frag; then 4568 ac_more_lines=false 4569 else 4570 # The purpose of the label and of the branching condition is to 4571 # speed up the sed processing (if there are no `@' at all, there 4572 # is no need to browse any of the substitutions). 4573 # These are the two extra sed commands mentioned above. 4574 (echo ':t 4575 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 4576 if test -z "$ac_sed_cmds"; then 4577 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 4578 else 4579 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 4580 fi 4581 ac_sed_frag=`expr $ac_sed_frag + 1` 4582 ac_beg=$ac_end 4583 ac_end=`expr $ac_end + $ac_max_sed_lines` 4584 fi 4585 done 4586 if test -z "$ac_sed_cmds"; then 4587 ac_sed_cmds=cat 4588 fi 4589 fi # test -n "$CONFIG_FILES" 4590 4591 _ACEOF 4592 cat >>$CONFIG_STATUS <<\_ACEOF 4593 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 4594 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 4595 case $ac_file in 4596 - | *:- | *:-:* ) # input from stdin 4597 cat >$tmp/stdin 4598 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 4599 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 4600 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 4601 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 4602 * ) ac_file_in=$ac_file.in ;; 5342 5343 case $ac_tag in 5344 *:-:* | *:-) cat >"$tmp/stdin";; 5345 esac 5346 ;; 4603 5347 esac 4604 5348 4605 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 4606 ac_dir=`(dirname "$ac_file") 2>/dev/null || 5349 ac_dir=`$as_dirname -- "$ac_file" || 4607 5350 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 4608 5351 X"$ac_file" : 'X\(//\)[^/]' \| \ 4609 5352 X"$ac_file" : 'X\(//\)$' \| \ 4610 X"$ac_file" : 'X\(/\)' \| \ 4611 . : '\(.\)' 2>/dev/null || 5353 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 4612 5354 echo X"$ac_file" | 4613 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 4614 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 4615 /^X\(\/\/\)$/{ s//\1/; q; } 4616 /^X\(\/\).*/{ s//\1/; q; } 4617 s/.*/./; q'` 4618 { if $as_mkdir_p; then 4619 mkdir -p "$ac_dir" 4620 else 4621 as_dir="$ac_dir" 5355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 5356 s//\1/ 5357 q 5358 } 5359 /^X\(\/\/\)[^/].*/{ 5360 s//\1/ 5361 q 5362 } 5363 /^X\(\/\/\)$/{ 5364 s//\1/ 5365 q 5366 } 5367 /^X\(\/\).*/{ 5368 s//\1/ 5369 q 5370 } 5371 s/.*/./; q'` 5372 { as_dir="$ac_dir" 5373 case $as_dir in #( 5374 -*) as_dir=./$as_dir;; 5375 esac 5376 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 4622 5377 as_dirs= 4623 while test ! -d "$as_dir"; do 4624 as_dirs="$as_dir $as_dirs" 4625 as_dir=`(dirname "$as_dir") 2>/dev/null || 5378 while :; do 5379 case $as_dir in #( 5380 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 5381 *) as_qdir=$as_dir;; 5382 esac 5383 as_dirs="'$as_qdir' $as_dirs" 5384 as_dir=`$as_dirname -- "$as_dir" || 4626 5385 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 4627 5386 X"$as_dir" : 'X\(//\)[^/]' \| \ 4628 5387 X"$as_dir" : 'X\(//\)$' \| \ 4629 X"$as_dir" : 'X\(/\)' \| \ 4630 . : '\(.\)' 2>/dev/null || 5388 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 4631 5389 echo X"$as_dir" | 4632 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 4633 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 4634 /^X\(\/\/\)$/{ s//\1/; q; } 4635 /^X\(\/\).*/{ s//\1/; q; } 4636 s/.*/./; q'` 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 test -d "$as_dir" && break 4637 5408 done 4638 test ! -n "$as_dirs" || mkdir $as_dirs4639 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&54640 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}5409 test -z "$as_dirs" || eval "mkdir $as_dirs" 5410 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 5411 echo "$as_me: error: cannot create directory $as_dir" >&2;} 4641 5412 { (exit 1); exit 1; }; }; } 4642 4643 5413 ac_builddir=. 4644 5414 4645 if test "$ac_dir" != .; then 5415 case "$ac_dir" in 5416 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 5417 *) 4646 5418 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 4647 # A "../" for each directory in $ac_dir_suffix. 4648 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 4649 else 4650 ac_dir_suffix= ac_top_builddir= 4651 fi 5419 # A ".." for each directory in $ac_dir_suffix. 5420 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 5421 case $ac_top_builddir_sub in 5422 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 5423 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 5424 esac ;; 5425 esac 5426 ac_abs_top_builddir=$ac_pwd 5427 ac_abs_builddir=$ac_pwd$ac_dir_suffix 5428 # for backward compatibility: 5429 ac_top_builddir=$ac_top_build_prefix 4652 5430 4653 5431 case $srcdir in 4654 .) # No --srcdir option.We are building in place.5432 .) # We are building in place. 4655 5433 ac_srcdir=. 4656 if test -z "$ac_top_builddir"; then 4657 ac_top_srcdir=. 4658 else 4659 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 4660 fi ;; 4661 [\\/]* | ?:[\\/]* ) # Absolute path. 5434 ac_top_srcdir=$ac_top_builddir_sub 5435 ac_abs_top_srcdir=$ac_pwd ;; 5436 [\\/]* | ?:[\\/]* ) # Absolute name. 4662 5437 ac_srcdir=$srcdir$ac_dir_suffix; 4663 ac_top_srcdir=$srcdir ;; 4664 *) # Relative path. 4665 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 4666 ac_top_srcdir=$ac_top_builddir$srcdir ;; 4667 esac 4668 4669 # Do not use `cd foo && pwd` to compute absolute paths, because 4670 # the directories may not exist. 4671 case `pwd` in 4672 .) ac_abs_builddir="$ac_dir";; 4673 *) 4674 case "$ac_dir" in 4675 .) ac_abs_builddir=`pwd`;; 4676 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 4677 *) ac_abs_builddir=`pwd`/"$ac_dir";; 4678 esac;; 4679 esac 4680 case $ac_abs_builddir in 4681 .) ac_abs_top_builddir=${ac_top_builddir}.;; 4682 *) 4683 case ${ac_top_builddir}. in 4684 .) ac_abs_top_builddir=$ac_abs_builddir;; 4685 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 4686 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 4687 esac;; 4688 esac 4689 case $ac_abs_builddir in 4690 .) ac_abs_srcdir=$ac_srcdir;; 4691 *) 4692 case $ac_srcdir in 4693 .) ac_abs_srcdir=$ac_abs_builddir;; 4694 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 4695 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 4696 esac;; 4697 esac 4698 case $ac_abs_builddir in 4699 .) ac_abs_top_srcdir=$ac_top_srcdir;; 4700 *) 4701 case $ac_top_srcdir in 4702 .) ac_abs_top_srcdir=$ac_abs_builddir;; 4703 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 4704 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 4705 esac;; 4706 esac 4707 5438 ac_top_srcdir=$srcdir 5439 ac_abs_top_srcdir=$srcdir ;; 5440 *) # Relative name. 5441 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 5442 ac_top_srcdir=$ac_top_build_prefix$srcdir 5443 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 5444 esac 5445 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 5446 5447 5448 case $ac_mode in 5449 :F) 5450 # 5451 # CONFIG_FILE 5452 # 4708 5453 4709 5454 case $INSTALL in 4710 5455 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 4711 *) ac_INSTALL=$ac_top_build dir$INSTALL ;;5456 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 4712 5457 esac 4713 4714 # Let's still pretend it is `configure' which instantiates (i.e., don't 4715 # use $as_me), people would be surprised to read: 4716 # /* config.h. Generated by config.status. */ 4717 if test x"$ac_file" = x-; then 4718 configure_input= 4719 else 4720 configure_input="$ac_file. " 4721 fi 4722 configure_input=$configure_input"Generated from `echo $ac_file_in | 4723 sed 's,.*/,,'` by configure." 4724 4725 # First look for the input files in the build tree, otherwise in the 4726 # src tree. 4727 ac_file_inputs=`IFS=: 4728 for f in $ac_file_in; do 4729 case $f in 4730 -) echo $tmp/stdin ;; 4731 [\\/$]*) 4732 # Absolute (can't be DOS-style, as IFS=:) 4733 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 4734 echo "$as_me: error: cannot find input file: $f" >&2;} 4735 { (exit 1); exit 1; }; } 4736 echo "$f";; 4737 *) # Relative 4738 if test -f "$f"; then 4739 # Build tree 4740 echo "$f" 4741 elif test -f "$srcdir/$f"; then 4742 # Source tree 4743 echo "$srcdir/$f" 4744 else 4745 # /dev/null tree 4746 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 4747 echo "$as_me: error: cannot find input file: $f" >&2;} 4748 { (exit 1); exit 1; }; } 4749 fi;; 4750 esac 4751 done` || { (exit 1); exit 1; } 4752 4753 if test x"$ac_file" != x-; then 4754 { echo "$as_me:$LINENO: creating $ac_file" >&5 4755 echo "$as_me: creating $ac_file" >&6;} 4756 rm -f "$ac_file" 4757 fi 4758 _ACEOF 5458 _ACEOF 5459 5460 cat >>$CONFIG_STATUS <<\_ACEOF 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 5465 case `sed -n '/datarootdir/ { 5466 p 5467 q 5468 } 5469 /@datadir@/p 5470 /@docdir@/p 5471 /@infodir@/p 5472 /@localedir@/p 5473 /@mandir@/p 5474 ' $ac_file_inputs` in 5475 *datarootdir*) ac_datarootdir_seen=yes;; 5476 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 5477 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 5478 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 5479 _ACEOF 5480 cat >>$CONFIG_STATUS <<_ACEOF 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? 4759 5494 cat >>$CONFIG_STATUS <<_ACEOF 4760 5495 sed "$ac_vpsub … … 4764 5499 :t 4765 5500 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 4766 s,@configure_input@,$configure_input,;t t 4767 s,@srcdir@,$ac_srcdir,;t t 4768 s,@abs_srcdir@,$ac_abs_srcdir,;t t 4769 s,@top_srcdir@,$ac_top_srcdir,;t t 4770 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 4771 s,@builddir@,$ac_builddir,;t t 4772 s,@abs_builddir@,$ac_abs_builddir,;t t 4773 s,@top_builddir@,$ac_top_builddir,;t t 4774 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 4775 s,@INSTALL@,$ac_INSTALL,;t t 4776 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 4777 rm -f $tmp/stdin 4778 if test x"$ac_file" != x-; then 4779 mv $tmp/out $ac_file 4780 else 4781 cat $tmp/out 4782 rm -f $tmp/out 4783 fi 4784 4785 done 4786 _ACEOF 4787 4788 cat >>$CONFIG_STATUS <<\_ACEOF 5501 s&@configure_input@&$configure_input&;t t 5502 s&@top_builddir@&$ac_top_builddir_sub&;t t 5503 s&@srcdir@&$ac_srcdir&;t t 5504 s&@abs_srcdir@&$ac_abs_srcdir&;t t 5505 s&@top_srcdir@&$ac_top_srcdir&;t t 5506 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 5507 s&@builddir@&$ac_builddir&;t t 5508 s&@abs_builddir@&$ac_abs_builddir&;t t 5509 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 5510 s&@INSTALL@&$ac_INSTALL&;t t 5511 $ac_datarootdir_hack 5512 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out 5513 5514 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 5515 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 5516 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 5517 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 5518 which seems to be undefined. Please make sure it is defined." >&5 5519 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 5520 which seems to be undefined. Please make sure it is defined." >&2;} 5521 5522 rm -f "$tmp/stdin" 5523 case $ac_file in 5524 -) cat "$tmp/out"; rm -f "$tmp/out";; 5525 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 5526 esac 5527 ;; 5528 5529 5530 5531 esac 5532 5533 done # for ac_tag 5534 4789 5535 4790 5536 { (exit 0); exit 0; } -
trunk/vizservers/configure.in
r760 r914 29 29 AC_PROG_CC 30 30 AC_LANG_C 31 32 AC_PROG_RANLIB 31 33 32 34 AC_PROG_CXX … … 189 191 nanoscale/Makefile \ 190 192 nanovis/Makefile \ 193 nanovis/newmat11/Makefile \ 194 nanovis/R2/src/Makefile \ 191 195 pymolproxy/Makefile \ 192 196 start_viz.sh ) -
trunk/vizservers/pymolproxy/pymolproxy.c
r721 r914 1 2 /* 3 * ---------------------------------------------------------------------- 4 * proxypymol.c 5 * 6 * This module creates the Tcl interface to the pymol server. It acts as 7 * a go-between establishing communication between a molvisviewer widget 8 * and the pymol server. The communication protocol from the molvisviewer 9 * widget is the Tcl language. Commands are then relayed to the pymol 10 * server. Responses from the pymol server are translated into Tcl 11 * commands * and send to the molvisviewer widget. For example, resulting 12 * image rendered offscreen is returned as BMP-formatted image data. 13 * 14 * Copyright (c) 2004-2006 Purdue Research Foundation 15 * 16 * See the file "license.terms" for information on usage and 17 * redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. 18 * ====================================================================== 19 */ 20 1 21 #include <stdio.h> 22 #include <assert.h> 2 23 #include <unistd.h> 3 24 #include <stdlib.h> … … 18 39 #include <tcl.h> 19 40 41 #undef INLINE 42 #ifdef __GNUC__ 43 # define INLINE __inline__ 44 #else 45 # define INLINE 46 #endif 47 20 48 #define IO_TIMEOUT (30000) 21 49 22 struct dyBuffer 23 { 50 static FILE *flog; 51 static int debug = 1; 52 53 static void 54 trace TCL_VARARGS_DEF(char *, arg1) 55 { 56 if (debug) { 57 char *format; 58 va_list args; 59 60 format = TCL_VARARGS_START(char *, arg1, args); 61 vfprintf(flog, format, args); 62 fprintf(flog, "\n"); 63 fflush(flog); 64 } 65 } 66 67 typedef struct { 24 68 char *data; 25 int used; 26 int allocated; 27 }; 28 29 struct pymol_proxy 30 { 31 int p_stdin; 32 int p_stdout; 33 int p_stderr; 34 int c_stdin; 35 int c_stdout; 36 struct dyBuffer image; 37 int need_update; 38 int can_update; 39 int immediate_update; 40 int sync; 41 int labels; 42 int frame; 43 int rock_offset; 44 int cacheid; 45 int invalidate_cache; 46 int error; 47 int status; 48 }; 69 int used; 70 int allocated; 71 } DyBuffer; 72 73 typedef struct { 74 int p_stdin; 75 int p_stdout; 76 int p_stderr; 77 int c_stdin; 78 int c_stdout; 79 DyBuffer image; 80 int need_update; 81 int can_update; 82 int immediate_update; 83 int sync; 84 int labels; 85 int frame; 86 int rock_offset; 87 int cacheid; 88 int invalidate_cache; 89 int error; 90 int status; 91 } PymolProxy; 92 93 INLINE static void 94 dyBufferInit(DyBuffer *buffer) 95 { 96 buffer->data = NULL; 97 buffer->used = 0; 98 buffer->allocated = 0; 99 } 100 101 INLINE static void 102 dyBufferFree(DyBuffer *buffer) 103 { 104 assert(buffer != NULL); 105 free(buffer->data); 106 dyBufferInit(buffer); 107 } 49 108 50 109 void 51 dyBufferInit(struct dyBuffer *buffer) 52 { 53 buffer->data = NULL; 54 buffer->used = 0; 55 buffer->allocated = 0; 56 } 57 58 void 59 dyBufferFree(struct dyBuffer *buffer) 60 { 61 if (buffer == NULL) 62 return; 63 64 free(buffer->data); 65 66 dyBufferInit(buffer); 67 68 return; 69 } 70 71 void 72 dyBufferSetLength(struct dyBuffer *buffer, int length) 73 { 74 char *newdata; 75 76 if (buffer == NULL) 77 return; 78 79 if (length == 0) 80 dyBufferFree(buffer); 81 else if (length > buffer->used) { 82 newdata = realloc(buffer->data, length); 83 84 if (newdata != NULL) { 85 buffer->data = newdata; 86 buffer->used = length; 87 buffer->allocated = length; 88 } 110 dyBufferSetLength(DyBuffer *buffer, int length) 111 { 112 assert(buffer != NULL); 113 if (length == 0) { 114 dyBufferFree(buffer); 115 } else if (length > buffer->used) { 116 char *newdata; 117 118 newdata = realloc(buffer->data, length); 119 if (newdata != NULL) { 120 buffer->data = newdata; 121 buffer->used = length; 122 buffer->allocated = length; 89 123 } 90 else 91 buffer->used = length; 92 } 93 94 void 95 dyBufferAppend(struct dyBuffer *buffer, const char *data, int length) 124 } else { 125 buffer->used = length; 126 } 127 } 128 129 static void 130 dyBufferAppend(DyBuffer *buffer, const char *data, int length) 96 131 { 97 132 int offset; 98 133 134 assert(buffer != NULL); 99 135 offset = buffer->used; 100 101 136 dyBufferSetLength(buffer, offset + length); 102 103 137 memcpy(buffer->data + offset, data, length); 104 138 } 105 139 106 int140 static int 107 141 bwrite(int sock, char *buffer, int size) 108 142 { … … 111 145 int left = size; 112 146 113 while(1) { 114 result = write(sock,buffer+total,left); 115 116 if (result <= 0) 117 break; 118 119 total += result; 120 left -= result; 121 122 if (total == size) 123 break; 124 } 125 147 trace("bwrite: want to write %d bytes\n", size); 148 while(1) { 149 result = write(sock,buffer+total,left); 150 151 if (result <= 0) 152 break; 153 154 total += result; 155 left -= result; 156 157 if (total == size) 158 break; 159 } 160 trace("bwrite: wrote %d bytes\n", total); 126 161 return(total); 127 162 } 128 163 129 int164 static int 130 165 bread(int sock, char *buffer, int size) 131 166 { 132 167 int result, total, left; 133 168 134 for( total = 0, left = size; left > 0; left -= result) 135 { 136 result = read(sock,buffer+total,left); 137 138 if (result > 0) { 139 total += result; 140 continue; 141 } 142 143 if ((result < 0) && (errno != EAGAIN) && (errno != EINTR)) 144 { 145 fprintf(stderr,"pymolproxy: Error reading sock(%d), %d/%s\n", sock, errno,strerror(errno)); 146 break; 147 } 148 149 result = 0; 150 } 169 for( total = 0, left = size; left > 0; left -= result) 170 { 171 result = read(sock,buffer+total,left); 172 173 if (result > 0) { 174 total += result; 175 continue; 176 } 177 178 if ((result < 0) && (errno != EAGAIN) && (errno != EINTR)) 179 { 180 trace("pymolproxy: Error reading sock(%d), %d/%s\n", 181 sock, errno,strerror(errno)); 182 break; 183 } 184 185 result = 0; 186 } 151 187 152 188 return(total); 153 189 } 154 190 155 int191 static int 156 192 bflush(int sock, char *buffer, int size, int bytes) 157 193 { 158 159 160 161 162 163 164 165 166 167 168 169 bytes -= bsize; 170 194 int bsize; 195 196 while(bytes) 197 { 198 if (bytes > size) 199 bsize = size; 200 else 201 bsize = bytes; 202 203 bsize = bread(sock,buffer,bsize); 204 205 bytes -= bsize; 206 } 171 207 } 172 208 … … 174 210 #undef timeradd 175 211 176 void212 static void 177 213 timersub(struct timeval *a, struct timeval *b, struct timeval *result) 178 214 { 179 215 result->tv_sec = a->tv_sec - b->tv_sec; 180 216 result->tv_usec = a->tv_usec - b->tv_usec; 181 217 182 218 while(result->tv_usec < 0) { 183 184 185 186 } 187 188 void219 result->tv_sec -= 1; 220 result->tv_usec += 1000000; 221 } 222 } 223 224 static void 189 225 timersub_ms(struct timeval *a, struct timeval *b, int *result) 190 226 { 191 227 struct timeval tmp; 192 228 193 229 tmp.tv_sec = a->tv_sec - b->tv_sec; 194 230 tmp.tv_usec = a->tv_usec - b->tv_usec; 195 231 196 232 while(tmp.tv_usec < 0) { 197 198 199 200 201 202 } 203 204 205 void233 tmp.tv_sec -= 1; 234 tmp.tv_usec += 1000000; 235 } 236 237 *result = (tmp.tv_sec * 1000) + (tmp.tv_usec / 1000); 238 } 239 240 241 static void 206 242 timeradd(struct timeval *a, struct timeval *b, struct timeval *result) 207 243 { 208 244 result->tv_sec = a->tv_sec + b->tv_sec; 209 245 result->tv_usec = a->tv_usec + b->tv_usec; 210 246 211 212 213 214 215 } 216 217 void247 while(result->tv_usec >= 1000000) { 248 result->tv_sec += 1; 249 result->tv_usec -= 1000000; 250 } 251 } 252 253 static void 218 254 timerset_ms(struct timeval *result, int timeout) 219 255 { … … 222 258 } 223 259 224 int260 static int 225 261 getline(int sock, char *buffer, int size, long timeout) 226 262 { 227 263 int pos = 0, status, timeo; 228 264 struct timeval now, end, tmo; 229 265 struct pollfd ufd; 230 266 231 232 267 gettimeofday(&now,NULL); 268 timerset_ms(&tmo, timeout); 233 269 timeradd(&now,&tmo,&end); 234 270 235 236 271 ufd.fd = sock; 272 ufd.events = POLLIN; 237 273 238 274 size--; 239 275 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 } 268 269 270 271 272 } 273 274 int275 waitForString( struct pymol_proxy *pymol, char *string, char *buffer, int length)276 while(pos < size) { 277 if (timeout > 0) { 278 gettimeofday(&now,NULL); 279 timersub_ms(&now,&end,&timeo); 280 } 281 else 282 timeo = -1; 283 284 status = poll(&ufd, 1, timeo); 285 286 if (status > 0) 287 status = read(sock,&buffer[pos],1); 288 289 if ( (status < 0) && ( (errno == EINTR) || (errno == EAGAIN) ) ) 290 continue; /* try again, if interrupted/blocking */ 291 292 if (status <= 0) 293 break; 294 295 if (buffer[pos] == '\n') 296 { 297 pos++; 298 break; 299 } 300 301 pos++; 302 303 } 304 305 buffer[pos]=0; 306 307 return(pos); 308 } 309 310 static int 311 waitForString(PymolProxy *pymol, char *string, char *buffer, int length) 276 312 { 277 313 int sock; 278 314 279 if ((pymol == NULL) || (buffer == NULL)) 280 return(TCL_ERROR); 281 282 if (pymol->status != TCL_OK) 283 return(pymol->status); 284 285 sock = pymol->p_stdout; 286 315 assert(buffer != NULL); 316 if (pymol->status != TCL_OK) 317 return pymol->status; 318 319 sock = pymol->p_stdout; 320 trace("want to match (%s)\n", string); 287 321 while(1) { 288 if (getline(sock,buffer,length,IO_TIMEOUT) == 0) { 289 pymol->error = 2; 290 pymol->status = TCL_ERROR; 291 break; 292 } 293 294 if (strncmp(buffer,string,strlen(string)) == 0) { 295 //fprintf(stderr,"stdout-e> %s",buffer); 296 pymol->error = 0; 297 pymol->status = TCL_OK; 298 break; 299 } 300 301 //fprintf(stderr,"stdout-u> %s",buffer); 302 } 303 304 return(pymol->status); 305 } 306 307 int 308 clear_error(struct pymol_proxy *pymol) 309 { 310 if (pymol == NULL) 311 return(TCL_ERROR); 312 313 pymol->error = 0; 314 pymol->status = TCL_OK; 315 316 return(pymol->status); 317 } 318 319 int 320 sendf(struct pymol_proxy *pymol, char *format, ...) 322 if (getline(sock,buffer,length,IO_TIMEOUT) == 0) { 323 pymol->error = 2; 324 pymol->status = TCL_ERROR; 325 break; 326 } 327 if (strncmp(buffer, string, strlen(string)) == 0) { 328 trace("stdout-e> %s",buffer); 329 pymol->error = 0; 330 pymol->status = TCL_OK; 331 break; 332 } 333 trace("stdout-u>(%s)", buffer); 334 } 335 336 return pymol->status; 337 } 338 339 INLINE static int 340 clear_error(PymolProxy *pymol) 341 { 342 pymol->error = 0; 343 pymol->status = TCL_OK; 344 return pymol->status; 345 } 346 347 static int 348 send_expect(PymolProxy *pymol, char *expect, char *cmd) 349 { 350 char string[800]; 351 352 if (pymol->error) 353 return(TCL_ERROR); 354 355 trace("to-pymol>(%s)", cmd); 356 write(pymol->p_stdin, cmd, strlen(cmd)); 357 if (waitForString(pymol, expect, cmd, 800)) { 358 trace("pymolproxy: Timeout reading data [%s]\n",cmd); 359 pymol->error = 1; 360 pymol->status = TCL_ERROR; 361 return pymol->status; 362 } 363 return( pymol->status ); 364 } 365 366 static int 367 sendf(PymolProxy *pymol, char *format, ...) 321 368 { 322 369 va_list ap; 323 370 char buffer[800]; 324 371 325 if (pymol == NULL) 326 return(TCL_ERROR); 327 328 if (pymol->error) 329 return(TCL_ERROR); 372 if (pymol->error) 373 return(TCL_ERROR); 330 374 331 375 va_start(ap, format); 332 376 vsnprintf(buffer, 800, format, ap); 333 377 va_end(ap); 334 //fprintf(stderr,"stdin> %s", buffer);378 trace("to-pymol>(%s)", buffer); 335 379 write(pymol->p_stdin, buffer, strlen(buffer)); 336 380 337 381 if (waitForString(pymol, "PyMOL>", buffer, 800)) { 338 fprintf(stderr,"pymolproxy: Timeout reading data [%s]\n",buffer);339 340 341 return (pymol->status);342 } 343 344 345 } 346 347 int348 Ball AndStickCmd(ClientData cdata, Tcl_Interp *interp, int argc, const char *argv[])382 trace("pymolproxy: Timeout reading data [%s]\n",buffer); 383 pymol->error = 1; 384 pymol->status = TCL_ERROR; 385 return pymol->status; 386 } 387 388 return( pymol->status ); 389 } 390 391 static int 392 BallNStickCmd(ClientData cdata, Tcl_Interp *interp, int argc, const char *argv[]) 349 393 { 350 394 int ghost = 0, defer = 0, push = 0, arg; 351 const char *model = "all"; 352 struct pymol_proxy *pymol = (struct pymol_proxy *) cdata; 353 354 if (pymol == NULL) 355 return(TCL_ERROR); 356 357 clear_error(pymol); 395 const char *model = "all"; 396 PymolProxy *pymol = (PymolProxy *) cdata; 397 398 clear_error(pymol); 358 399 359 400 for(arg = 1; arg < argc; arg++) { 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 401 if ( strcmp(argv[arg],"-defer") == 0 ) 402 defer = 1; 403 else if (strcmp(argv[arg],"-push") == 0) 404 push = 1; 405 else if (strcmp(argv[arg],"-ghost") == 0) 406 ghost = 1; 407 else if (strcmp(argv[arg],"-normal") == 0) 408 ghost = 0; 409 else if (strcmp(argv[arg],"-model") == 0) { 410 if (++arg < argc) 411 model = argv[arg]; 412 } 413 else 414 model = argv[arg]; 415 } 416 417 pymol->invalidate_cache = 1; 418 pymol->need_update = !defer || push; 378 419 pymol->immediate_update |= push; 379 420 380 381 382 383 384 385 386 387 388 421 sendf(pymol, "hide everything,%s\n",model); 422 sendf(pymol, "set stick_color,white,%s\n",model); 423 424 if (ghost) 425 sendf(pymol, "set stick_radius,0.1,%s\n",model); 426 else 427 sendf(pymol, "set stick_radius,0.14,%s\n",model); 428 429 sendf(pymol, "set sphere_scale=0.25,%s\n", model); 389 430 390 431 if (ghost) { … … 392 433 sendf(pymol, "set stick_transparency,0.75,%s\n", model); 393 434 } 394 435 else { 395 436 sendf(pymol, "set sphere_transparency,0,%s\n", model); 396 437 sendf(pymol, "set stick_transparency,0,%s\n", model); 397 438 } 398 439 399 400 401 402 403 404 405 406 } 407 408 int440 sendf(pymol, "show sticks,%s\n",model); 441 sendf(pymol, "show spheres,%s\n",model); 442 443 if (pymol->labels) 444 sendf(pymol, "show labels,%s\n", model); 445 446 return( pymol->status ); 447 } 448 449 static int 409 450 SpheresCmd(ClientData cdata, Tcl_Interp *interp, int argc, const char *argv[]) 410 451 { 411 452 int defer = 0, ghost = 0, push = 0, arg; 412 const char *model = "all"; 413 struct pymol_proxy *pymol = (struct pymol_proxy *) cdata; 414 415 if (pymol == NULL) 416 return(TCL_ERROR); 417 418 clear_error(pymol); 453 const char *model = "all"; 454 PymolProxy *pymol = (PymolProxy *) cdata; 455 456 clear_error(pymol); 419 457 420 458 for(arg = 1; arg < argc; arg++) { 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 459 if ( strcmp(argv[arg],"-defer") == 0 ) 460 defer = 1; 461 else if (strcmp(argv[arg],"-push") == 0) 462 push = 1; 463 else if (strcmp(argv[arg],"-ghost") == 0) 464 ghost = 1; 465 else if (strcmp(argv[arg],"-normal") == 0) 466 ghost = 0; 467 else if (strcmp(argv[arg],"-model") == 0) { 468 if (++arg < argc) 469 model = argv[arg]; 470 } 471 else 472 model = argv[arg]; 473 } 474 475 pymol->invalidate_cache = 1; 476 pymol->need_update = !defer || push; 477 pymol->immediate_update |= push; 440 478 441 479 sendf(pymol, "hide everything, %s\n", model); … … 446 484 if (ghost) 447 485 sendf(pymol, "set sphere_transparency,.75,%s\n", model); 448 486 else 449 487 sendf(pymol, "set sphere_transparency,0,%s\n", model); 450 488 451 489 sendf(pymol, "show spheres,%s\n", model); 452 490 453 454 455 456 return(pymol->status);457 } 458 459 int491 if (pymol->labels) 492 sendf(pymol, "show labels,%s\n", model); 493 494 return pymol->status; 495 } 496 497 static int 460 498 LinesCmd(ClientData cdata, Tcl_Interp *interp, int argc, const char *argv[]) 461 499 { 462 500 int ghost = 0, defer = 0, push = 0, arg; 463 const char *model = "all"; 464 struct pymol_proxy *pymol = (struct pymol_proxy *) cdata; 465 466 if (pymol == NULL) 467 return(TCL_ERROR); 468 469 clear_error(pymol); 501 const char *model = "all"; 502 PymolProxy *pymol = (PymolProxy *) cdata; 503 504 clear_error(pymol); 470 505 471 506 for(arg = 1; arg < argc; arg++) { 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 507 if ( strcmp(argv[arg],"-defer") == 0 ) 508 defer = 1; 509 else if (strcmp(argv[arg],"-push") == 0) 510 push = 1; 511 else if (strcmp(argv[arg],"-ghost") == 0) 512 ghost = 1; 513 else if (strcmp(argv[arg],"-normal") == 0) 514 ghost = 0; 515 else if (strcmp(argv[arg],"-model") == 0) { 516 if (++arg < argc) 517 model = argv[arg]; 518 } 519 else 520 model = argv[arg]; 521 } 522 523 pymol->invalidate_cache = 1; 524 pymol->need_update = !defer || push; 525 pymol->immediate_update |= push; 491 526 492 527 sendf(pymol, "hide everything,%s\n",model); 493 528 494 529 if (ghost) 495 496 497 530 sendf(pymol, "set line_width,.25,%s\n",model); 531 else 532 sendf(pymol, "set line_width,1,%s\n",model); 498 533 499 534 sendf(pymol, "show lines,%s\n",model); 500 535 501 502 503 504 return(pymol->status);505 } 506 507 int536 if (pymol->labels) 537 sendf(pymol, "show labels,%s\n",model); 538 539 return pymol->status; 540 } 541 542 static int 508 543 DisableCmd(ClientData cdata, Tcl_Interp *interp, int argc, const char *argv[]) 509 544 { 510 struct pymol_proxy *pymol = (struct pymol_proxy *) cdata;545 PymolProxy *pymol = (PymolProxy *) cdata; 511 546 const char *model = "all"; 512 int arg, defer = 0, push = 0; 513 514 if (pymol == NULL) 515 return(TCL_ERROR); 516 517 clear_error(pymol); 547 int arg, defer = 0, push = 0; 548 549 clear_error(pymol); 518 550 519 551 for(arg = 1; arg < argc; arg++) { 520 552 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 return(pymol->status);537 } 538 539 int553 if (strcmp(argv[arg], "-defer") == 0 ) 554 defer = 1; 555 else if (strcmp(argv[arg], "-push") == 0 ) 556 push = 1; 557 else 558 model = argv[arg]; 559 560 } 561 562 pymol->need_update = !defer || push; 563 pymol->immediate_update |= push; 564 pymol->invalidate_cache = 1; 565 566 sendf( pymol, "disable %s\n", model); 567 568 return pymol->status; 569 } 570 571 static int 540 572 EnableCmd(ClientData cdata, Tcl_Interp *interp, int argc, const char *argv[]) 541 573 { 542 struct pymol_proxy *pymol = (struct pymol_proxy *) cdata;574 PymolProxy *pymol = (PymolProxy *) cdata; 543 575 const char *model = "all"; 544 int arg, defer = 0, push = 0; 545 546 if (pymol == NULL) 547 return(TCL_ERROR); 548 549 clear_error(pymol); 550 551 for(arg = 1; arg < argc; arg++) { 552 553 if (strcmp(argv[arg],"-defer") == 0) 554 defer = 1; 555 else if (strcmp(argv[arg], "-push") == 0 ) 556 push = 1; 557 else 558 model = argv[arg]; 559 560 } 561 562 pymol->need_update = !defer || push; 563 pymol->immediate_update |= push; 564 pymol->invalidate_cache = 1; 565 566 sendf( pymol, "enable %s\n", model); 567 568 return(pymol->status); 569 } 570 571 int 576 int arg, defer = 0, push = 0; 577 578 clear_error(pymol); 579 580 for(arg = 1; arg < argc; arg++) { 581 582 if (strcmp(argv[arg],"-defer") == 0) 583 defer = 1; 584 else if (strcmp(argv[arg], "-push") == 0 ) 585 push = 1; 586 else 587 model = argv[arg]; 588 589 } 590 591 pymol->need_update = !defer || push; 592 pymol->immediate_update |= push; 593 pymol->invalidate_cache = 1; 594 595 sendf( pymol, "enable %s\n", model); 596 597 return pymol->status; 598 } 599 600 static int 572 601 VMouseCmd(ClientData cdata, Tcl_Interp *interp, int argc, const char *argv[]) 573 602 { 574 struct pymol_proxy *pymol = (struct pymol_proxy *) cdata;603 PymolProxy *pymol = (PymolProxy *) cdata; 575 604 int arg, defer = 0, push = 0, varg = 1; 576 605 int arg1 = 0, arg2 = 0, arg3 = 0, arg4 = 0, arg5 = 0; 577 606 578 if (pymol == NULL) 579 return(TCL_ERROR); 580 581 clear_error(pymol); 607 clear_error(pymol); 582 608 583 609 for(arg = 1; arg < argc; arg++) { 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 610 if (strcmp(argv[arg], "-defer") == 0) 611 defer = 1; 612 else if (strcmp(argv[arg], "-push") == 0) 613 push = 1; 614 else if (varg == 1) { 615 arg1 = atoi(argv[arg]); 616 varg++; 617 } 618 else if (varg == 2) { 619 arg2 = atoi(argv[arg]); 620 varg++; 621 } 622 else if (varg == 3) { 623 arg3 = atoi(argv[arg]); 624 varg++; 625 } 626 else if (varg == 4) { 627 arg4 = atoi(argv[arg]); 628 varg++; 629 } 630 else if (varg == 5) { 631 arg5 = atoi(argv[arg]); 632 varg++; 633 } 608 634 } 609 635 610 636 pymol->need_update = !defer || push; 611 637 pymol->immediate_update |= push; 612 638 pymol->invalidate_cache = 1; 613 639 614 640 sendf(pymol, "vmouse %d,%d,%d,%d,%d\n", arg1,arg2,arg3,arg4,arg5); 615 641 616 return(pymol->status);617 } 618 619 int642 return pymol->status; 643 } 644 645 static int 620 646 RawCmd(ClientData cdata, Tcl_Interp *interp, int argc, const char *argv[]) 621 647 { 622 struct pymol_proxy *pymol = (struct pymol_proxy *) cdata;623 struct dyBuffer buffer;648 PymolProxy *pymol = (PymolProxy *) cdata; 649 DyBuffer buffer; 624 650 int arg, defer = 0, push = 0; 625 626 if (pymol == NULL) 627 return(TCL_ERROR); 628 629 clear_error(pymol); 651 const char *cmd; 652 clear_error(pymol); 630 653 631 654 dyBufferInit(&buffer); 632 655 633 for(arg = 1; arg < argc; arg++) { 634 if (strcmp(argv[arg], "-defer") == 0) 635 defer = 1; 636 else if (strcmp(argv[arg], "-push") == 0) 637 push = 1; 638 else { 639 dyBufferAppend(&buffer,argv[arg],(int)strlen(argv[arg])); 640 dyBufferAppend(&buffer," ",1); 641 } 642 } 643 644 pymol->need_update = !defer || push; 645 pymol->immediate_update |= push; 646 pymol->invalidate_cache = 1; 647 648 sendf(pymol,"%s\n",buffer); 649 650 dyBufferFree(&buffer); 651 652 return(pymol->status); 653 } 654 655 int 656 cmd = NULL; 657 for(arg = 1; arg < argc; arg++) { 658 if (strcmp(argv[arg], "-defer") == 0) 659 defer = 1; 660 else if (strcmp(argv[arg], "-push") == 0) 661 push = 1; 662 else { 663 cmd = argv[arg]; 664 } 665 } 666 667 pymol->need_update = !defer || push; 668 pymol->immediate_update |= push; 669 pymol->invalidate_cache = 1; 670 671 sendf(pymol,"%s\n", cmd); 672 dyBufferFree(&buffer); 673 674 return pymol->status; 675 } 676 677 static int 656 678 LabelCmd(ClientData cdata, Tcl_Interp *interp, int argc, const char *argv[]) 657 679 { 658 struct pymol_proxy *pymol = (struct pymol_proxy *) cdata;680 PymolProxy *pymol = (PymolProxy *) cdata; 659 681 int state = 1; 660 int arg, push = 0, defer = 0; 661 662 if (pymol == NULL) 663 return(TCL_ERROR); 664 665 clear_error(pymol); 666 667 for(arg = 1; arg < argc; arg++) { 668 if ( strcmp(argv[arg],"-defer") == 0 ) 669 defer = 1; 670 else if (strcmp(argv[arg],"-push") == 0 ) 671 push = 1; 672 else if (strcmp(argv[arg],"on") == 0 ) 673 state = 1; 674 else if (strcmp(argv[arg],"off") == 0 ) 675 state = 0; 676 else if (strcmp(argv[arg],"toggle") == 0 ) 677 state = !pymol->labels; 678 } 679 680 pymol->need_update = !defer || push; 681 pymol->immediate_update |= push; 682 pymol->invalidate_cache = 1; 682 int arg, push = 0, defer = 0; 683 684 clear_error(pymol); 685 686 for(arg = 1; arg < argc; arg++) { 687 if ( strcmp(argv[arg],"-defer") == 0 ) 688 defer = 1; 689 else if (strcmp(argv[arg],"-push") == 0 ) 690 push = 1; 691 else if (strcmp(argv[arg],"on") == 0 ) 692 state = 1; 693 else if (strcmp(argv[arg],"off") == 0 ) 694 state = 0; 695 else if (strcmp(argv[arg],"toggle") == 0 ) 696 state = !pymol->labels; 697 } 698 699 pymol->need_update = !defer || push; 700 pymol->immediate_update |= push; 701 pymol->invalidate_cache = 1; 683 702 684 703 if (state) { 685 686 687 688 } 689 690 691 692 693 694 return (pymol->status);695 } 696 697 int704 sendf(pymol, "set label_color,white,all\n"); 705 sendf(pymol, "set label_size,14,all\n"); 706 sendf(pymol, "label all,\"%%s%%s\" %% (ID,name)\n"); 707 } 708 else 709 sendf(pymol, "label all\n"); 710 711 pymol->labels = state; 712 713 return pymol->status; 714 } 715 716 static int 698 717 FrameCmd(ClientData cdata, Tcl_Interp *interp, int argc, const char *argv[]) 699 718 { 700 struct pymol_proxy *pymol = (struct pymol_proxy *) cdata;719 PymolProxy *pymol = (PymolProxy *) cdata; 701 720 int frame = 0; 702 int arg, push = 0, defer = 0; 703 704 if (pymol == NULL) 705 return(TCL_ERROR); 706 707 clear_error(pymol); 708 709 for(arg = 1; arg < argc; arg++) { 710 if ( strcmp(argv[arg],"-defer") == 0 ) 711 defer = 1; 712 else if (strcmp(argv[arg],"-push") == 0 ) 713 push = 1; 714 else 715 frame = atoi(argv[arg]); 716 } 717 718 pymol->need_update = !defer || push; 721 int arg, push = 0, defer = 0; 722 723 clear_error(pymol); 724 725 for(arg = 1; arg < argc; arg++) { 726 if ( strcmp(argv[arg],"-defer") == 0 ) 727 defer = 1; 728 else if (strcmp(argv[arg],"-push") == 0 ) 729 push = 1; 730 else 731 frame = atoi(argv[arg]); 732 } 733 734 pymol->need_update = !defer || push; 719 735 pymol->immediate_update |= push; 720 736 721 737 pymol->frame = frame; 722 738 723 724 725 return(pymol->status);726 } 727 728 int739 sendf(pymol,"frame %d\n", frame); 740 741 return pymol->status; 742 } 743 744 static int 729 745 ResetCmd(ClientData cdata, Tcl_Interp *interp, int argc, const char *argv[]) 730 746 { 731 struct pymol_proxy *pymol = (struct pymol_proxy *) cdata;747 PymolProxy *pymol = (PymolProxy *) cdata; 732 748 int arg, push = 0, defer = 0; 733 749 734 if (pymol == NULL) 735 return(TCL_ERROR); 736 737 clear_error(pymol); 738 739 for(arg = 1; arg < argc; arg++) { 740 if ( strcmp(argv[arg],"-defer") == 0 ) 741 defer = 1; 742 else if (strcmp(argv[arg],"-push") == 0 ) 743 push = 1; 744 } 745 746 pymol->need_update = !defer || push; 747 pymol->immediate_update |= push; 748 pymol->invalidate_cache = 1; 749 750 sendf(pymol, "reset\n"); 751 sendf(pymol, "zoom buffer=2\n"); 752 753 return(pymol->status); 754 } 755 756 int 750 clear_error(pymol); 751 752 for(arg = 1; arg < argc; arg++) { 753 if ( strcmp(argv[arg],"-defer") == 0 ) 754 defer = 1; 755 else if (strcmp(argv[arg],"-push") == 0 ) 756 push = 1; 757 } 758 759 pymol->need_update = !defer || push; 760 pymol->immediate_update |= push; 761 pymol->invalidate_cache = 1; 762 763 sendf(pymol, "reset\n"); 764 sendf(pymol, "zoom buffer=2\n"); 765 766 return pymol->status; 767 } 768 769 static int 757 770 RockCmd(ClientData cdata, Tcl_Interp *interp, int argc, const char *argv[]) 758 771 { 759 struct pymol_proxy *pymol = (struct pymol_proxy *) cdata;760 772 PymolProxy *pymol = (PymolProxy *) cdata; 773 float y = 0.0; 761 774 int arg, push = 0, defer = 0; 762 775 763 if (pymol == NULL) 764 return(TCL_ERROR); 765 766 clear_error(pymol); 767 768 for(arg = 1; arg < argc; arg++) { 769 if ( strcmp(argv[arg],"-defer") == 0 ) 770 defer = 1; 771 else if (strcmp(argv[arg],"-push") == 0 ) 772 push = 1; 773 else 774 y = atof( argv[arg] ); 775 } 776 777 pymol->need_update = !defer || push; 776 clear_error(pymol); 777 778 for(arg = 1; arg < argc; arg++) { 779 if ( strcmp(argv[arg],"-defer") == 0 ) 780 defer = 1; 781 else if (strcmp(argv[arg],"-push") == 0 ) 782 push = 1; 783 else 784 y = atof( argv[arg] ); 785 } 786 787 pymol->need_update = !defer || push; 778 788 pymol->immediate_update |= push; 779 789 780 781 782 783 784 return(pymol->status);785 } 786 787 int790 sendf(pymol,"turn y, %f\n", y - pymol->rock_offset); 791 792 pymol->rock_offset = y; 793 794 return pymol->status; 795 } 796 797 static int 788 798 ViewportCmd(ClientData cdata, Tcl_Interp *interp, int argc, const char *argv[]) 789 799 { 790 struct pymol_proxy *pymol = (struct pymol_proxy *) cdata;800 PymolProxy *pymol = (PymolProxy *) cdata; 791 801 int width = 640, height = 480; 792 802 int defer = 0, push = 0, arg, varg = 1; 793 803 794 if (pymol == NULL) 795 return(TCL_ERROR); 796 797 clear_error(pymol); 798 799 for(arg = 1; arg < argc; arg++) { 800 if ( strcmp(argv[arg],"-defer") == 0 ) 801 defer = 1; 802 else if ( strcmp(argv[arg], "-push") == 0 ) 803 push = 1; 804 else if (varg == 1) { 805 width = atoi(argv[arg]); 806 height = width; 807 varg++; 808 } 809 else if (varg == 2) { 810 height = atoi(argv[arg]); 811 varg++; 812 } 804 clear_error(pymol); 805 806 for(arg = 1; arg < argc; arg++) { 807 if ( strcmp(argv[arg],"-defer") == 0 ) 808 defer = 1; 809 else if ( strcmp(argv[arg], "-push") == 0 ) 810 push = 1; 811 else if (varg == 1) { 812 width = atoi(argv[arg]); 813 height = width; 814 varg++; 815 } 816 else if (varg == 2) { 817 height = atoi(argv[arg]); 818 varg++; 819 } 820 } 821 822 pymol->need_update = !defer || push; 823 pymol->immediate_update |= push; 824 pymol->invalidate_cache = 1; 825 826 sendf(pymol, "viewport %d,%d\n", width, height); 827 828 //usleep(205000); // .2s delay for pymol to update its geometry *HACK ALERT* 829 830 return pymol->status; 831 } 832 833 static int 834 LoadPDBCmd(ClientData cdata, Tcl_Interp *interp, int argc, const char *argv[]) 835 { 836 const char *pdbdata, *pdb, *name; 837 char *buf; 838 char buffer[800]; 839 PymolProxy *pymol = (PymolProxy *) cdata; 840 int state = 1; 841 int arg, defer = 0, push = 0, varg = 1; 842 char filename[] = "/tmp/fileXXXXXX.pdb"; 843 844 clear_error(pymol); 845 846 for(arg = 1; arg < argc; arg++) { 847 if ( strcmp(argv[arg],"-defer") == 0 ) 848 defer = 1; 849 else if (strcmp(argv[arg],"-push") == 0) 850 push = 1; 851 else if (varg == 1) { 852 pdbdata = argv[arg]; 853 varg++; 854 } 855 else if (varg == 2) { 856 name = argv[arg]; 857 varg++; 858 } 859 else if (varg == 3) { 860 state = atoi( argv[arg] ); 861 varg++; 862 } 863 } 864 865 pymol->need_update = !defer || push; 866 pymol->immediate_update |= push; 867 868 #ifdef notdef 869 { 870 /* Pymol expects to load the pdb from a file. 871 * Should create a rappture owned directory to write files. 872 */ 873 int fd; 874 char fileName[200]; 875 876 sprintf(fileName, "/tmp/pymol-%d.pdb", getpid()); 877 fd = open(fileName,O_WRONLY | O_TRUNC | O_CREAT, 0600); 878 if (fd < 0) { 879 Tcl_AppendResult(interp, "pymolproxy: error opening \"", fileName, 880 "\": ", strerror(errno), (char *)NULL); 881 pymol->status = TCL_ERROR; 882 return TCL_ERROR; 813 883 } 814 815 pymol->need_update = !defer || push; 816 pymol->immediate_update |= push; 817 pymol->invalidate_cache = 1; 818 819 sendf(pymol, "viewport %d,%d\n", width, height); 820 821 //usleep(205000); // .2s delay for pymol to update its geometry *HACK ALERT* 884 write(fd, pdbdata, strlen(pdbdata)); 885 close(fd); 886 sendf(pymol, "load %s, %s, %d\n", fileName, name, state); 887 } 888 #else 889 { 890 int count; 891 const char *p; 892 char *q, *newdata; 893 894 count = 0; 895 for (p = pdbdata; *p != '\0'; p++) { 896 if (*p == '\n') { 897 count++; 898 } 899 count++; 900 } 822 901 823 return(pymol->status); 824 } 825 826 int 827 LoadPDBStrCmd(ClientData cdata, Tcl_Interp *interp, int argc, const char *argv[]) 828 { 829 const char *pdbdata, *pdb, *name; 830 char *buf; 831 char buffer[800]; 832 struct pymol_proxy *pymol = (struct pymol_proxy *) cdata; 833 int state = 1; 834 int tmpf; 835 int arg, defer = 0, push = 0, varg = 1; 836 char filename[] = "/tmp/fileXXXXXX.pdb"; 837 838 if (pymol == NULL) 839 return(TCL_ERROR); 840 841 clear_error(pymol); 842 843 for(arg = 1; arg < argc; arg++) { 844 if ( strcmp(argv[arg],"-defer") == 0 ) 845 defer = 1; 846 else if (strcmp(argv[arg],"-push") == 0) 847 push = 1; 848 else if (varg == 1) { 849 pdbdata = argv[arg]; 850 varg++; 851 } 852 else if (varg == 2) { 853 name = argv[arg]; 854 varg++; 855 } 856 else if (varg == 3) { 857 state = atoi( argv[arg] ); 858 varg++; 859 } 902 q = newdata = malloc(count + 100); 903 strcpy(newdata, "cmd.read_pdbstr(\"\"\"\\\n"); 904 q = newdata + strlen(newdata); 905 for (p = pdbdata; *p != '\0'; p++, q++) { 906 if (*p == '\n') { 907 *q++ = '\\'; 908 } 909 *q = *p; 860 910 } 861 862 pymol->need_update = !defer || push; 863 pymol->immediate_update |= push; 864 865 tmpf = open(filename,O_RDWR|O_TRUNC|O_CREAT,0700); 866 867 if (tmpf <= 0) 868 fprintf(stderr,"pymolproxy: error opening file %d\n",errno); 869 870 write(tmpf,pdbdata,strlen(pdbdata)); 871 close(tmpf); 872 873 sendf(pymol, "load %s, %s, %d\n", filename, name, state); 874 sendf(pymol, "zoom buffer=2\n"); 875 876 return(pymol->status); 877 } 878 879 int 911 sprintf(q, "\\\n\"\"\",\"%s\",%d)\n", name, state); 912 { 913 char expect[800]; 914 915 sprintf(expect, "PyMOL>\"\"\",\"%s\",%d)\n", name, state); 916 send_expect(pymol, expect, newdata); 917 } 918 free(newdata); 919 } 920 #endif 921 sendf(pymol, "zoom buffer=2\n"); 922 923 return pymol->status; 924 } 925 926 static int 880 927 RotateCmd(ClientData cdata, Tcl_Interp *interp, int argc, const char *argv[]) 881 928 { 882 883 884 885 struct pymol_proxy *pymol = (struct pymol_proxy *) cdata;929 double turnx = 0.0; 930 double turny = 0.0; 931 double turnz = 0.0; 932 PymolProxy *pymol = (PymolProxy *) cdata; 886 933 int defer = 0, push = 0, arg, varg = 1; 887 934 888 if (pymol == NULL) 889 return(TCL_ERROR); 890 891 clear_error(pymol); 935 clear_error(pymol); 892 936 893 937 for(arg = 1; arg < argc; arg++) 894 895 896 897 898 899 else if (varg == 1) {900 901 902 903 904 905 906 907 else if (varg == 3) {908 909 910 911 }938 { 939 if (strcmp(argv[arg],"-defer") == 0) 940 defer = 1; 941 else if (strcmp(argv[arg],"-push") == 0) 942 push = 1; 943 else if (varg == 1) { 944 turnx = atof(argv[arg]); 945 varg++; 946 } 947 else if (varg == 2) { 948 turny = atof(argv[arg]); 949 varg++; 950 } 951 else if (varg == 3) { 952 turnz = atof(argv[arg]); 953 varg++; 954 } 955 } 912 956 913 957 pymol->need_update = !defer || push; 914 915 916 917 918 919 920 921 922 923 924 925 926 return(pymol->status);927 } 928 929 int958 pymol->immediate_update |= push; 959 pymol->invalidate_cache = 1; 960 961 if (turnx != 0.0) 962 sendf(pymol,"turn x, %f\n", turnx); 963 964 if (turny != 0.0) 965 sendf(pymol,"turn y, %f\n", turny); 966 967 if (turnz != 0.0) 968 sendf(pymol,"turn z, %f\n", turnz); 969 970 return pymol->status; 971 } 972 973 static int 930 974 ZoomCmd(ClientData cdata, Tcl_Interp *interp, int argc, const char *argv[]) 931 975 { 932 976 double factor = 0.0; 933 977 double zmove = 0.0; 934 struct pymol_proxy *pymol = (struct pymol_proxy *) cdata;978 PymolProxy *pymol = (PymolProxy *) cdata; 935 979 int defer = 0, push = 0, arg, varg = 1; 936 980 937 if (pymol == NULL) 938 return(TCL_ERROR); 939 940 clear_error(pymol); 981 clear_error(pymol); 941 982 942 983 for(arg = 1; arg < argc; arg++) 943 944 945 946 947 948 949 950 951 952 }953 954 984 { 985 if (strcmp(argv[arg],"-defer") == 0) 986 defer = 1; 987 else if (strcmp(argv[arg],"-push") == 0) 988 push = 1; 989 else if (varg == 1) { 990 factor = atof(argv[arg]); 991 varg++; 992 } 993 } 994 995 zmove = factor * -75; 955 996 956 997 pymol->need_update = !defer || push; 957 958 959 960 961 962 963 return(pymol->status);964 } 965 966 int998 pymol->immediate_update |= push; 999 pymol->invalidate_cache = 1; 1000 1001 if (zmove != 0.0) 1002 sendf(pymol,"move z, %f\n", factor); 1003 1004 return pymol->status; 1005 } 1006 1007 static int 967 1008 PNGCmd(ClientData cdata, Tcl_Interp *interp, int argc, const char *argv[]) 968 1009 { 969 char buffer[800]; 970 unsigned int bytes=0; 971 float samples = 0.0; 972 struct pymol_proxy *pymol = (struct pymol_proxy *) cdata; 973 974 if (pymol == NULL) 975 return(TCL_ERROR); 976 977 clear_error(pymol); 1010 char buffer[800]; 1011 unsigned int bytes=0; 1012 float samples = 0.0; 1013 PymolProxy *pymol = (PymolProxy *) cdata; 1014 1015 clear_error(pymol); 978 1016 979 1017 if (pymol->invalidate_cache) 980 981 982 983 984 985 986 987 988 989 990 1018 pymol->cacheid++; 1019 1020 pymol->need_update = 0; 1021 pymol->immediate_update = 0; 1022 pymol->invalidate_cache = 0; 1023 1024 sendf(pymol,"png -\n"); 1025 1026 waitForString(pymol, "image follows: ", buffer, 800); 1027 1028 sscanf(buffer, "image follows: %d %f\n", &bytes, &samples); 991 1029 992 1030 write(3,&samples,sizeof(samples)); 993 1031 994 1032 dyBufferSetLength(&pymol->image, bytes); 995 1033 996 997 998 1034 bread(pymol->p_stdout, pymol->image.data, pymol->image.used); 1035 1036 waitForString(pymol, " ScenePNG", buffer,800); 999 1037 1000 1038 if (bytes && (pymol->image.used == bytes)) { 1001 sprintf(buffer, "nv>image %d %d,%d,%d\n", 1002 bytes, pymol->cacheid, pymol->frame, pymol->rock_offset); 1003 1004 write(pymol->c_stdin, buffer, strlen(buffer)); 1005 bwrite(pymol->c_stdin, pymol->image.data, bytes); 1006 } 1007 1008 return(pymol->status); 1009 } 1010 1011 int 1039 sprintf(buffer, "nv>image %d %d %d %d\n", 1040 bytes, pymol->cacheid, pymol->frame, pymol->rock_offset); 1041 trace("to-molvis> %s", buffer); 1042 write(pymol->c_stdin, buffer, strlen(buffer)); 1043 bwrite(pymol->c_stdin, pymol->image.data, bytes); 1044 } 1045 return pymol->status; 1046 } 1047 1048 static int 1012 1049 BMPCmd(ClientData cdata, Tcl_Interp *interp, int argc, const char *argv[]) 1013 1050 { 1014 char buffer[800]; 1015 unsigned int bytes=0; 1016 float samples = 0.0; 1017 struct pymol_proxy *pymol = (struct pymol_proxy *) cdata; 1018 1019 if (pymol == NULL) 1020 return(TCL_ERROR); 1021 1022 clear_error(pymol); 1051 char buffer[800]; 1052 unsigned int bytes=0; 1053 float samples = 0.0; 1054 PymolProxy *pymol = (PymolProxy *) cdata; 1055 1056 clear_error(pymol); 1023 1057 1024 1058 if (pymol->invalidate_cache) 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1059 pymol->cacheid++; 1060 1061 pymol->need_update = 0; 1062 pymol->immediate_update = 0; 1063 pymol->invalidate_cache = 0; 1064 1065 sendf(pymol,"bmp -\n"); 1066 1067 waitForString(pymol, "image follows: ", buffer, 800); 1068 1069 sscanf(buffer, "image follows: %d %f\n", &bytes, &samples); 1070 write(3,&samples,sizeof(samples)); 1037 1071 1038 1072 dyBufferSetLength(&pymol->image, bytes); 1039 1073 1040 1074 bread(pymol->p_stdout, pymol->image.data, pymol->image.used); 1041 1075 1042 1076 if (bytes && (pymol->image.used == bytes)) { 1043 sprintf(buffer, "nv>image %d %d,%d,%d\n",1044 1045 1046 //fprintf(stderr,buffer);1047 1048 } 1049 1050 return(pymol->status); 1051 } 1052 1053 int pyMol_Proxy(int c_in, int c_out, char *command, char *argv[])1077 sprintf(buffer, "nv>image %d %d %d %d\n", 1078 bytes, pymol->cacheid, pymol->frame, pymol->rock_offset); 1079 write(pymol->c_stdin, buffer, strlen(buffer)); 1080 trace("to-molvis buffer=%s\n", buffer); 1081 bwrite(pymol->c_stdin, pymol->image.data, bytes); 1082 } 1083 return pymol->status; 1084 } 1085 1086 static int 1087 ProxyInit(int c_in, int c_out, char *const *argv) 1054 1088 { 1055 1089 int flags, status, result = 0; 1056 1057 1058 1059 1060 1061 1062 struct dyBuffer dybuffer, dybuffer2;1063 1064 1065 struct pymol_proxy pymol;1066 1067 1068 1069 /* Create three pipes for communication with the external application */ 1070 /* One each for the applications's: stdin, stdout, and stderr*/1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 /* Fork the new process. Connect i/o to the new socket.*/1090 1091 1090 int pairIn[2]; 1091 int pairOut[2]; 1092 int pairErr[2]; 1093 char buffer[800]; 1094 Tcl_Interp *interp; 1095 Tcl_DString cmdbuffer; 1096 DyBuffer dybuffer, dybuffer2; 1097 struct pollfd ufd[3]; 1098 int pid; 1099 PymolProxy pymol; 1100 struct timeval now,end; 1101 int timeout; 1102 1103 /* Create three pipes for communication with the external application. One 1104 * each for the applications's: stdin, stdout, and stderr */ 1105 1106 if (pipe(pairIn) == -1) 1107 return(-1); 1108 1109 if (pipe(pairOut) == -1) { 1110 close(pairIn[0]); 1111 close(pairIn[1]); 1112 return(-1); 1113 } 1114 1115 if (pipe(pairErr) == -1) { 1116 close(pairIn[0]); 1117 close(pairIn[1]); 1118 close(pairOut[0]); 1119 close(pairOut[1]); 1120 return(-1); 1121 } 1122 1123 /* Fork the new process. Connect i/o to the new socket. */ 1124 1125 pid = fork(); 1092 1126 1093 if (pid < 0) 1094 return(-3); 1095 1096 if (pid == 0) /* child process */ 1097 { 1098 int i, fd; 1099 1100 /* create a new process group, so we can later kill this process and 1101 * all its children without affecting the process that created this one 1102 */ 1103 1104 setpgid(pid, 0); 1105 1106 /* Redirect stdin, stdout, and stderr to pipes before execing */ 1107 1108 dup2(pairIn[0] ,0); // stdin 1109 dup2(pairOut[1],1); // stdout 1110 dup2(pairErr[1],2); // stderr 1111 1112 for(fd = 3; fd < FD_SETSIZE; fd++) /* close all other descriptors */ 1113 close(fd); 1114 1115 execvp(command,argv); 1116 fprintf(stderr,"pymolproxy: Failed to start pyMol\n"); 1117 exit(-1); 1118 } 1127 if (pid < 0) 1128 return(-3); 1129 1130 if (pid == 0) /* child process */ 1131 { 1132 int i, fd; 1133 1134 /* Create a new process group, so we can later kill this process 1135 * and all its children without affecting the process that created 1136 * this one 1137 */ 1138 1139 setpgid(pid, 0); 1140 1141 /* Redirect stdin, stdout, and stderr to pipes before execing */ 1142 1143 dup2(pairIn[0] ,0); // stdin 1144 dup2(pairOut[1],1); // stdout 1145 dup2(pairErr[1],2); // stderr 1146 1147 for(fd = 3; fd < FD_SETSIZE; fd++) /* close all other descriptors */ 1148 close(fd); 1149 1150 execvp(argv[0], argv); 1151 trace("pymolproxy: Failed to start pyMol\n"); 1152 exit(-1); 1153 } 1119 1154 1120 /* close opposite end of pipe, these now belong to the child process*/1155 /* close opposite end of pipe, these now belong to the child process */ 1121 1156 close(pairIn[0]); 1122 1157 close(pairOut[1]); 1123 1158 close(pairErr[1]); 1124 1159 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1160 signal(SIGPIPE, SIG_IGN); // ignore SIGPIPE (ie if nanoscale terminates) 1161 1162 pymol.p_stdin = pairIn[1]; 1163 pymol.p_stdout = pairOut[0]; 1164 pymol.p_stderr = pairErr[0]; 1165 pymol.c_stdin = c_in; 1166 pymol.c_stdout = c_out; 1167 pymol.labels = 0; 1168 pymol.need_update = 0; 1169 pymol.can_update = 1; 1170 pymol.immediate_update = 0; 1171 pymol.sync = 0; 1137 1172 pymol.frame = 1; 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1173 pymol.rock_offset = 0; 1174 pymol.cacheid = 0; 1175 pymol.invalidate_cache = 0; 1176 1177 ufd[0].fd = pymol.c_stdout; 1178 ufd[0].events = POLLIN | POLLHUP; /* ensure catching EOF */ 1179 ufd[1].fd = pymol.p_stdout; 1180 ufd[1].events = POLLIN | POLLHUP; 1181 ufd[2].fd = pymol.p_stderr; 1182 ufd[2].events = POLLIN | POLLHUP; 1148 1183 1149 1184 flags = fcntl(pymol.p_stdout, F_GETFL); 1150 1185 fcntl(pymol.p_stdout, F_SETFL, flags|O_NONBLOCK); 1151 1186 1152 1153 1154 1155 1156 1187 interp = Tcl_CreateInterp(); 1188 Tcl_MakeSafe(interp); 1189 1190 Tcl_DStringInit(&cmdbuffer); 1191 dyBufferInit(&pymol.image); 1157 1192 dyBufferInit(&dybuffer); 1158 1193 dyBufferInit(&dybuffer2); 1159 1194 1160 Tcl_CreateCommand(interp,"bmp",BMPCmd,(ClientData)&pymol, (Tcl_CmdDeleteProc*)NULL); 1161 Tcl_CreateCommand(interp,"png",PNGCmd,(ClientData)&pymol, (Tcl_CmdDeleteProc*)NULL); 1162 Tcl_CreateCommand(interp,"screen",ViewportCmd,(ClientData)&pymol, (Tcl_CmdDeleteProc*)NULL); 1163 Tcl_CreateCommand(interp,"viewport",ViewportCmd,(ClientData)&pymol, (Tcl_CmdDeleteProc*)NULL); 1164 Tcl_CreateCommand(interp,"rotate",RotateCmd,(ClientData)&pymol, (Tcl_CmdDeleteProc*)NULL); 1165 Tcl_CreateCommand(interp,"zoom",ZoomCmd,(ClientData)&pymol, (Tcl_CmdDeleteProc*)NULL); 1166 Tcl_CreateCommand(interp,"loadpdb", LoadPDBStrCmd, (ClientData)&pymol, (Tcl_CmdDeleteProc *)NULL); 1167 Tcl_CreateCommand(interp,"ball_and_stick", BallAndStickCmd, (ClientData)&pymol, (Tcl_CmdDeleteProc*)NULL); 1168 Tcl_CreateCommand(interp,"spheres", SpheresCmd, (ClientData)&pymol, (Tcl_CmdDeleteProc*)NULL); 1169 Tcl_CreateCommand(interp,"lines", LinesCmd, (ClientData)&pymol, (Tcl_CmdDeleteProc*)NULL); 1170 Tcl_CreateCommand(interp,"raw", RawCmd, (ClientData)&pymol, (Tcl_CmdDeleteProc*)NULL); 1171 Tcl_CreateCommand(interp,"label", LabelCmd, (ClientData)&pymol, (Tcl_CmdDeleteProc*)NULL); 1172 Tcl_CreateCommand(interp,"reset", ResetCmd, (ClientData)&pymol, (Tcl_CmdDeleteProc*)NULL); 1173 Tcl_CreateCommand(interp,"rock", RockCmd, (ClientData)&pymol, (Tcl_CmdDeleteProc*)NULL); 1174 Tcl_CreateCommand(interp,"frame", FrameCmd, (ClientData)&pymol, (Tcl_CmdDeleteProc*)NULL); 1175 Tcl_CreateCommand(interp,"vmouse", VMouseCmd, (ClientData)&pymol, (Tcl_CmdDeleteProc*)NULL); 1176 Tcl_CreateCommand(interp,"disable", DisableCmd, (ClientData)&pymol, (Tcl_CmdDeleteProc*)NULL); 1177 Tcl_CreateCommand(interp,"enable", EnableCmd, (ClientData)&pymol, (Tcl_CmdDeleteProc*)NULL); 1178 1179 // Main Proxy Loop 1180 // accept tcl commands from socket 1181 // translate them into pyMol commands, and issue them to child proccess 1182 // send images back 1183 1184 gettimeofday(&end, NULL); 1185 1186 while(1) 1187 { 1188 char ch; 1189 1190 gettimeofday(&now,NULL); 1191 1192 if ( (!pymol.need_update) ) 1193 timeout = -1; 1194 else if ((now.tv_sec > end.tv_sec) || ( (now.tv_sec == end.tv_sec) && (now.tv_usec >= end.tv_usec)) ) 1195 timeout = 0; 1196 else 1195 Tcl_CreateCommand(interp, "bmp", BMPCmd, &pymol, NULL); 1196 Tcl_CreateCommand(interp, "png", PNGCmd, &pymol, NULL); 1197 Tcl_CreateCommand(interp, "screen", ViewportCmd, &pymol, NULL); 1198 Tcl_CreateCommand(interp, "viewport",ViewportCmd, &pymol, NULL); 1199 Tcl_CreateCommand(interp, "rotate", RotateCmd, &pymol, NULL); 1200 Tcl_CreateCommand(interp, "zoom", ZoomCmd, &pymol, NULL); 1201 Tcl_CreateCommand(interp, "loadpdb", LoadPDBCmd, &pymol, NULL); 1202 Tcl_CreateCommand(interp, "ballnstick",BallNStickCmd, &pymol, NULL); 1203 Tcl_CreateCommand(interp, "spheres", SpheresCmd, &pymol, NULL); 1204 Tcl_CreateCommand(interp, "lines", LinesCmd, &pymol, NULL); 1205 Tcl_CreateCommand(interp, "raw", RawCmd, &pymol, NULL); 1206 Tcl_CreateCommand(interp, "label", LabelCmd, &pymol, NULL); 1207 Tcl_CreateCommand(interp, "reset", ResetCmd, &pymol, NULL); 1208 Tcl_CreateCommand(interp, "rock", RockCmd, &pymol, NULL); 1209 Tcl_CreateCommand(interp, "frame", FrameCmd, &pymol, NULL); 1210 Tcl_CreateCommand(interp, "vmouse", VMouseCmd, &pymol, NULL); 1211 Tcl_CreateCommand(interp, "disable", DisableCmd, &pymol, NULL); 1212 Tcl_CreateCommand(interp, "enable", EnableCmd, &pymol, NULL); 1213 1214 // Main Proxy Loop 1215 // accept tcl commands from socket 1216 // translate them into pyMol commands, and issue them to child proccess 1217 // send images back 1218 1219 gettimeofday(&end, NULL); 1220 1221 while(1) 1197 1222 { 1198 timeout = (end.tv_sec - now.tv_sec) * 1000; 1199 1200 if (end.tv_usec > now.tv_usec) 1201 timeout += (end.tv_usec - now.tv_usec) / 1000; 1223 char ch; 1224 1225 gettimeofday(&now,NULL); 1226 1227 if ( (!pymol.need_update) ) 1228 timeout = -1; 1229 else if ((now.tv_sec > end.tv_sec) || ( (now.tv_sec == end.tv_sec) && (now.tv_usec >= end.tv_usec)) ) 1230 timeout = 0; 1202 1231 else 1203 timeout += (((1000000 + end.tv_usec) - now.tv_usec) / 1000) - 1000; 1204 1205 } 1206 1207 if (!pymol.immediate_update) 1208 status = poll(ufd, 3, timeout); 1209 else 1210 status = 0; 1211 1212 if ( status < 0 ) 1213 { 1214 fprintf(stderr, "pymolproxy: POLL ERROR: status = %d, errno = %d, %s \n", status,errno,strerror(errno)); 1215 } 1216 else if (status > 0) 1217 { 1218 gettimeofday(&now,NULL); 1219 1220 if (ufd[0].revents) { /* Client Stdout Connection: command input */ 1221 if (read(ufd[0].fd,&ch,1) <= 0) 1222 { 1223 if (errno != EINTR) 1224 { 1225 fprintf(stderr,"pymolproxy: lost client connection (%d).\n", errno); 1226 break; 1227 } 1228 } 1229 else 1230 { 1231 Tcl_DStringAppend(&cmdbuffer, &ch, 1); 1232 1233 if (ch == '\n' && Tcl_CommandComplete(Tcl_DStringValue(&cmdbuffer))) { 1234 Tcl_Eval(interp, Tcl_DStringValue(&cmdbuffer)); 1235 //fprintf(stderr,"Executed(%d,%d): %s", pymol.need_update, pymol.immediate_update, Tcl_DStringValue(&cmdbuffer)); 1236 Tcl_DStringSetLength(&cmdbuffer, 0); 1237 1238 if (timeout == 0) status = 0; // send update 1239 } 1240 } 1241 } 1242 1243 if (ufd[1].revents ) { /* pyMol Stdout Connection: pymol (unexpected) output */ 1244 if (read(ufd[1].fd, &ch, 1) <= 0) 1245 { 1246 if (errno != EINTR) { 1247 fprintf(stderr,"pymolproxy: lost connection (stdout) to pymol server\n"); 1248 break; 1249 } 1250 } 1251 else 1252 { 1253 dyBufferAppend(&dybuffer, &ch, 1); 1254 1255 if (ch == '\n') { 1256 ch = 0; 1257 dyBufferAppend(&dybuffer, &ch, 1); 1258 fprintf(stderr,"STDOUT>%s",dybuffer.data); 1259 dyBufferSetLength(&dybuffer,0); 1260 } 1261 } 1262 } 1263 1264 if (ufd[2].revents) { /* pyMol Stderr Connection: pymol standard error output */ 1265 if (read(ufd[2].fd, &ch, 1) <= 0) 1266 { 1267 if (errno != EINTR) { 1268 fprintf(stderr,"pymolproxy: lost connection (stderr) to pymol server\n"); 1269 break; 1270 } 1271 } 1272 else { 1273 dyBufferAppend(&dybuffer2, &ch, 1); 1274 1275 if (ch == '\n') { 1276 ch = 0; 1277 dyBufferAppend(&dybuffer2, &ch, 1); 1278 fprintf(stderr,"stderr>%s", dybuffer2.data); 1279 dyBufferSetLength(&dybuffer2,0); 1280 } 1281 } 1282 } 1283 } 1284 1285 if (status == 0) 1286 { 1287 gettimeofday(&now,NULL); 1288 1289 if (pymol.need_update && pymol.can_update) 1290 Tcl_Eval(interp, "bmp -\n"); 1291 1292 end.tv_sec = now.tv_sec; 1293 end.tv_usec = now.tv_usec + 150000; 1294 1295 if (end.tv_usec >= 1000000) 1296 { 1297 end.tv_sec++; 1298 end.tv_usec -= 1000000; 1299 } 1300 1301 } 1302 1303 } 1304 1305 status = waitpid(pid, &result, WNOHANG); 1306 1307 if (status == -1) 1308 fprintf(stderr, "pymolproxy: error waiting on pymol server to exit (%d)\n", errno); 1309 else if (status == 0) { 1310 fprintf(stderr, "pymolproxy: attempting to SIGTERM pymol server\n"); 1311 kill(-pid, SIGTERM); // kill process group 1312 alarm(5); 1313 status = waitpid(pid, &result, 0); 1314 alarm(0); 1315 1316 while ((status == -1) && (errno == EINTR)) 1317 { 1318 fprintf(stderr, "pymolproxy: Attempting to SIGKILL process.\n"); 1319 kill(-pid, SIGKILL); // kill process group 1320 alarm(10); 1321 status = waitpid(pid, &result, 0); 1322 alarm(0); 1323 } 1324 } 1325 1326 fprintf(stderr, "pymolproxy: pymol server process ended (%d)\n", result); 1327 1328 dyBufferFree(&pymol.image); 1329 1330 Tcl_DeleteInterp(interp); 1331 1332 return( (status == pid) ? 0 : 1); 1232 { 1233 timeout = (end.tv_sec - now.tv_sec) * 1000; 1234 1235 if (end.tv_usec > now.tv_usec) 1236 timeout += (end.tv_usec - now.tv_usec) / 1000; 1237 else 1238 timeout += (((1000000 + end.tv_usec) - now.tv_usec) / 1000) - 1000; 1239 1240 } 1241 1242 if (!pymol.immediate_update) 1243 status = poll(ufd, 3, timeout); 1244 else 1245 status = 0; 1246 1247 if ( status < 0 ) 1248 { 1249 trace("pymolproxy: POLL ERROR: status = %d, errno = %d, %s \n", status,errno,strerror(errno)); 1250 } 1251 else if (status > 0) 1252 { 1253 gettimeofday(&now,NULL); 1254 1255 if (ufd[0].revents) { /* Client Stdout Connection: command input */ 1256 if (read(ufd[0].fd,&ch,1) <= 0) 1257 { 1258 if (errno != EINTR) 1259 { 1260 trace("pymolproxy: lost client connection (%d).\n", errno); 1261 break; 1262 } 1263 } 1264 else 1265 { 1266 Tcl_DStringAppend(&cmdbuffer, &ch, 1); 1267 1268 if (ch == '\n' && Tcl_CommandComplete(Tcl_DStringValue(&cmdbuffer))) { 1269 Tcl_Eval(interp, Tcl_DStringValue(&cmdbuffer)); 1270 trace("Executed(%d,%d): %s", pymol.need_update, pymol.immediate_update, Tcl_DStringValue(&cmdbuffer)); 1271 Tcl_DStringSetLength(&cmdbuffer, 0); 1272 1273 if (timeout == 0) status = 0; // send update 1274 } 1275 } 1276 } 1277 1278 if (ufd[1].revents ) { /* pyMol Stdout Connection: pymol (unexpected) output */ 1279 if (read(ufd[1].fd, &ch, 1) <= 0) 1280 { 1281 if (errno != EINTR) { 1282 trace("pymolproxy: lost connection (stdout) to pymol server\n"); 1283 break; 1284 } 1285 } 1286 else 1287 { 1288 dyBufferAppend(&dybuffer, &ch, 1); 1289 1290 if (ch == '\n') { 1291 ch = 0; 1292 dyBufferAppend(&dybuffer, &ch, 1); 1293 trace("STDOUT>%s",dybuffer.data); 1294 dyBufferSetLength(&dybuffer,0); 1295 } 1296 } 1297 } 1298 1299 if (ufd[2].revents) { /* pyMol Stderr Connection: pymol standard error output */ 1300 if (read(ufd[2].fd, &ch, 1) <= 0) 1301 { 1302 if (errno != EINTR) { 1303 trace("pymolproxy: lost connection (stderr) to pymol server\n"); 1304 break; 1305 } 1306 } 1307 else { 1308 dyBufferAppend(&dybuffer2, &ch, 1); 1309 1310 if (ch == '\n') { 1311 ch = 0; 1312 dyBufferAppend(&dybuffer2, &ch, 1); 1313 trace("stderr>%s", dybuffer2.data); 1314 dyBufferSetLength(&dybuffer2,0); 1315 } 1316 } 1317 } 1318 } 1319 1320 if (status == 0) 1321 { 1322 gettimeofday(&now,NULL); 1323 1324 if (pymol.need_update && pymol.can_update) 1325 Tcl_Eval(interp, "bmp -\n"); 1326 1327 end.tv_sec = now.tv_sec; 1328 end.tv_usec = now.tv_usec + 150000; 1329 1330 if (end.tv_usec >= 1000000) 1331 { 1332 end.tv_sec++; 1333 end.tv_usec -= 1000000; 1334 } 1335 1336 } 1337 1338 } 1339 1340 status = waitpid(pid, &result, WNOHANG); 1341 1342 if (status == -1) { 1343 trace("pymolproxy: error waiting on pymol server to exit (%d)\n", errno); 1344 } else if (status == 0) { 1345 trace("pymolproxy: attempting to SIGTERM pymol server\n"); 1346 kill(-pid, SIGTERM); // kill process group 1347 alarm(5); 1348 status = waitpid(pid, &result, 0); 1349 alarm(0); 1350 1351 while ((status == -1) && (errno == EINTR)) 1352 { 1353 trace("pymolproxy: Attempting to SIGKILL process.\n"); 1354 kill(-pid, SIGKILL); // kill process group 1355 alarm(10); 1356 status = waitpid(pid, &result, 0); 1357 alarm(0); 1358 } 1359 } 1360 1361 trace("pymolproxy: pymol server process ended (%d)\n", result); 1362 1363 dyBufferFree(&pymol.image); 1364 1365 Tcl_DeleteInterp(interp); 1366 1367 return( (status == pid) ? 0 : 1); 1333 1368 } 1334 1369 1335 1370 #ifdef STANDALONE 1336 1337 #define MAX_ARGS 1001338 1371 1339 1372 int 1340 1373 main(int argc, char *argv[]) 1341 1374 { 1342 int arg; 1343 char *myargv[MAX_ARGS+1]; 1344 1345 if (argc > MAX_ARGS+1) { 1346 fprintf(stderr, "%s: Argument list too long (%d > %d arguments).", argv[0], argc, MAX_ARGS + 1); 1347 return(1); 1348 } 1349 1350 for(arg = 1; arg < argc; arg++) 1351 myargv[arg-1] = argv[arg]; 1352 1353 myargv[arg-1] = NULL; 1354 1355 pyMol_Proxy(fileno(stdout), fileno(stdin), myargv[0], myargv); 1375 if (debug) { 1376 flog = stderr; 1377 flog = fopen("/tmp/pymolproxy.log", "w"); 1378 } 1379 ProxyInit(fileno(stdout), fileno(stdin), argv + 1); 1380 return 0; 1356 1381 } 1357 1382
Note: See TracChangeset
for help on using the changeset viewer.