1#! /bin/sh 2 3# Guess values for system-dependent variables and create Makefiles. 4# Generated automatically using autoconf version 2.13 5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. 6# 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9 10# Defaults: 11ac_help= 12ac_default_prefix=/usr/local 13# Any additions from configure.in: 14ac_help="$ac_help 15 --with-tcl=DIR use Tcl 8.0 binaries from DIR" 16 17# Initialize some variables set by options. 18# The variables have the same names as the options, with 19# dashes changed to underlines. 20build=NONE 21cache_file=./config.cache 22exec_prefix=NONE 23host=NONE 24no_create= 25nonopt=NONE 26no_recursion= 27prefix=NONE 28program_prefix=NONE 29program_suffix=NONE 30program_transform_name=s,x,x, 31silent= 32site= 33srcdir= 34target=NONE 35verbose= 36x_includes=NONE 37x_libraries=NONE 38bindir='${exec_prefix}/bin' 39sbindir='${exec_prefix}/sbin' 40libexecdir='${exec_prefix}/libexec' 41datadir='${prefix}/share' 42sysconfdir='${prefix}/etc' 43sharedstatedir='${prefix}/com' 44localstatedir='${prefix}/var' 45libdir='${exec_prefix}/lib' 46includedir='${prefix}/include' 47oldincludedir='/usr/include' 48infodir='${prefix}/info' 49mandir='${prefix}/man' 50 51# Initialize some other variables. 52subdirs= 53MFLAGS= MAKEFLAGS= 54SHELL=${CONFIG_SHELL-/bin/sh} 55# Maximum number of lines to put in a shell here document. 56ac_max_here_lines=12 57 58ac_prev= 59for ac_option 60do 61 62 # If the previous option needs an argument, assign it. 63 if test -n "$ac_prev"; then 64 eval "$ac_prev=\$ac_option" 65 ac_prev= 66 continue 67 fi 68 69 case "$ac_option" in 70 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 71 *) ac_optarg= ;; 72 esac 73 74 # Accept the important Cygnus configure options, so we can diagnose typos. 75 76 case "$ac_option" in 77 78 -bindir | --bindir | --bindi | --bind | --bin | --bi) 79 ac_prev=bindir ;; 80 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 81 bindir="$ac_optarg" ;; 82 83 -build | --build | --buil | --bui | --bu) 84 ac_prev=build ;; 85 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 86 build="$ac_optarg" ;; 87 88 -cache-file | --cache-file | --cache-fil | --cache-fi \ 89 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 90 ac_prev=cache_file ;; 91 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 92 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 93 cache_file="$ac_optarg" ;; 94 95 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 96 ac_prev=datadir ;; 97 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 98 | --da=*) 99 datadir="$ac_optarg" ;; 100 101 -disable-* | --disable-*) 102 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 103 # Reject names that are not valid shell variable names. 104 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 105 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 106 fi 107 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 108 eval "enable_${ac_feature}=no" ;; 109 110 -enable-* | --enable-*) 111 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 112 # Reject names that are not valid shell variable names. 113 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 114 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 115 fi 116 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 117 case "$ac_option" in 118 *=*) ;; 119 *) ac_optarg=yes ;; 120 esac 121 eval "enable_${ac_feature}='$ac_optarg'" ;; 122 123 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 124 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 125 | --exec | --exe | --ex) 126 ac_prev=exec_prefix ;; 127 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 128 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 129 | --exec=* | --exe=* | --ex=*) 130 exec_prefix="$ac_optarg" ;; 131 132 -gas | --gas | --ga | --g) 133 # Obsolete; use --with-gas. 134 with_gas=yes ;; 135 136 -help | --help | --hel | --he) 137 # Omit some internal or obsolete options to make the list less imposing. 138 # This message is too long to be a string in the A/UX 3.1 sh. 139 cat << EOF 140Usage: configure [options] [host] 141Options: [defaults in brackets after descriptions] 142Configuration: 143 --cache-file=FILE cache test results in FILE 144 --help print this message 145 --no-create do not create output files 146 --quiet, --silent do not print \`checking...' messages 147 --version print the version of autoconf that created configure 148Directory and file names: 149 --prefix=PREFIX install architecture-independent files in PREFIX 150 [$ac_default_prefix] 151 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 152 [same as prefix] 153 --bindir=DIR user executables in DIR [EPREFIX/bin] 154 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 155 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 156 --datadir=DIR read-only architecture-independent data in DIR 157 [PREFIX/share] 158 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 159 --sharedstatedir=DIR modifiable architecture-independent data in DIR 160 [PREFIX/com] 161 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 162 --libdir=DIR object code libraries in DIR [EPREFIX/lib] 163 --includedir=DIR C header files in DIR [PREFIX/include] 164 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 165 --infodir=DIR info documentation in DIR [PREFIX/info] 166 --mandir=DIR man documentation in DIR [PREFIX/man] 167 --srcdir=DIR find the sources in DIR [configure dir or ..] 168 --program-prefix=PREFIX prepend PREFIX to installed program names 169 --program-suffix=SUFFIX append SUFFIX to installed program names 170 --program-transform-name=PROGRAM 171 run sed PROGRAM on installed program names 172EOF 173 cat << EOF 174Host type: 175 --build=BUILD configure for building on BUILD [BUILD=HOST] 176 --host=HOST configure for HOST [guessed] 177 --target=TARGET configure for TARGET [TARGET=HOST] 178Features and packages: 179 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 180 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 181 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 182 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 183 --x-includes=DIR X include files are in DIR 184 --x-libraries=DIR X library files are in DIR 185EOF 186 if test -n "$ac_help"; then 187 echo "--enable and --with options recognized:$ac_help" 188 fi 189 exit 0 ;; 190 191 -host | --host | --hos | --ho) 192 ac_prev=host ;; 193 -host=* | --host=* | --hos=* | --ho=*) 194 host="$ac_optarg" ;; 195 196 -includedir | --includedir | --includedi | --included | --include \ 197 | --includ | --inclu | --incl | --inc) 198 ac_prev=includedir ;; 199 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 200 | --includ=* | --inclu=* | --incl=* | --inc=*) 201 includedir="$ac_optarg" ;; 202 203 -infodir | --infodir | --infodi | --infod | --info | --inf) 204 ac_prev=infodir ;; 205 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 206 infodir="$ac_optarg" ;; 207 208 -libdir | --libdir | --libdi | --libd) 209 ac_prev=libdir ;; 210 -libdir=* | --libdir=* | --libdi=* | --libd=*) 211 libdir="$ac_optarg" ;; 212 213 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 214 | --libexe | --libex | --libe) 215 ac_prev=libexecdir ;; 216 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 217 | --libexe=* | --libex=* | --libe=*) 218 libexecdir="$ac_optarg" ;; 219 220 -localstatedir | --localstatedir | --localstatedi | --localstated \ 221 | --localstate | --localstat | --localsta | --localst \ 222 | --locals | --local | --loca | --loc | --lo) 223 ac_prev=localstatedir ;; 224 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 225 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 226 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 227 localstatedir="$ac_optarg" ;; 228 229 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 230 ac_prev=mandir ;; 231 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 232 mandir="$ac_optarg" ;; 233 234 -nfp | --nfp | --nf) 235 # Obsolete; use --without-fp. 236 with_fp=no ;; 237 238 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 239 | --no-cr | --no-c) 240 no_create=yes ;; 241 242 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 243 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 244 no_recursion=yes ;; 245 246 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 247 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 248 | --oldin | --oldi | --old | --ol | --o) 249 ac_prev=oldincludedir ;; 250 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 251 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 252 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 253 oldincludedir="$ac_optarg" ;; 254 255 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 256 ac_prev=prefix ;; 257 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 258 prefix="$ac_optarg" ;; 259 260 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 261 | --program-pre | --program-pr | --program-p) 262 ac_prev=program_prefix ;; 263 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 264 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 265 program_prefix="$ac_optarg" ;; 266 267 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 268 | --program-suf | --program-su | --program-s) 269 ac_prev=program_suffix ;; 270 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 271 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 272 program_suffix="$ac_optarg" ;; 273 274 -program-transform-name | --program-transform-name \ 275 | --program-transform-nam | --program-transform-na \ 276 | --program-transform-n | --program-transform- \ 277 | --program-transform | --program-transfor \ 278 | --program-transfo | --program-transf \ 279 | --program-trans | --program-tran \ 280 | --progr-tra | --program-tr | --program-t) 281 ac_prev=program_transform_name ;; 282 -program-transform-name=* | --program-transform-name=* \ 283 | --program-transform-nam=* | --program-transform-na=* \ 284 | --program-transform-n=* | --program-transform-=* \ 285 | --program-transform=* | --program-transfor=* \ 286 | --program-transfo=* | --program-transf=* \ 287 | --program-trans=* | --program-tran=* \ 288 | --progr-tra=* | --program-tr=* | --program-t=*) 289 program_transform_name="$ac_optarg" ;; 290 291 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 292 | -silent | --silent | --silen | --sile | --sil) 293 silent=yes ;; 294 295 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 296 ac_prev=sbindir ;; 297 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 298 | --sbi=* | --sb=*) 299 sbindir="$ac_optarg" ;; 300 301 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 302 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 303 | --sharedst | --shareds | --shared | --share | --shar \ 304 | --sha | --sh) 305 ac_prev=sharedstatedir ;; 306 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 307 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 308 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 309 | --sha=* | --sh=*) 310 sharedstatedir="$ac_optarg" ;; 311 312 -site | --site | --sit) 313 ac_prev=site ;; 314 -site=* | --site=* | --sit=*) 315 site="$ac_optarg" ;; 316 317 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 318 ac_prev=srcdir ;; 319 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 320 srcdir="$ac_optarg" ;; 321 322 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 323 | --syscon | --sysco | --sysc | --sys | --sy) 324 ac_prev=sysconfdir ;; 325 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 326 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 327 sysconfdir="$ac_optarg" ;; 328 329 -target | --target | --targe | --targ | --tar | --ta | --t) 330 ac_prev=target ;; 331 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 332 target="$ac_optarg" ;; 333 334 -v | -verbose | --verbose | --verbos | --verbo | --verb) 335 verbose=yes ;; 336 337 -version | --version | --versio | --versi | --vers) 338 echo "configure generated by autoconf version 2.13" 339 exit 0 ;; 340 341 -with-* | --with-*) 342 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 343 # Reject names that are not valid shell variable names. 344 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 345 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 346 fi 347 ac_package=`echo $ac_package| sed 's/-/_/g'` 348 case "$ac_option" in 349 *=*) ;; 350 *) ac_optarg=yes ;; 351 esac 352 eval "with_${ac_package}='$ac_optarg'" ;; 353 354 -without-* | --without-*) 355 ac_package=`echo $ac_option|sed -e 's/-*without-//'` 356 # Reject names that are not valid shell variable names. 357 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 358 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 359 fi 360 ac_package=`echo $ac_package| sed 's/-/_/g'` 361 eval "with_${ac_package}=no" ;; 362 363 --x) 364 # Obsolete; use --with-x. 365 with_x=yes ;; 366 367 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 368 | --x-incl | --x-inc | --x-in | --x-i) 369 ac_prev=x_includes ;; 370 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 371 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 372 x_includes="$ac_optarg" ;; 373 374 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 375 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 376 ac_prev=x_libraries ;; 377 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 378 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 379 x_libraries="$ac_optarg" ;; 380 381 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 382 ;; 383 384 *) 385 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 386 echo "configure: warning: $ac_option: invalid host type" 1>&2 387 fi 388 if test "x$nonopt" != xNONE; then 389 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 390 fi 391 nonopt="$ac_option" 392 ;; 393 394 esac 395done 396 397if test -n "$ac_prev"; then 398 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 399fi 400 401trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 402 403# File descriptor usage: 404# 0 standard input 405# 1 file creation 406# 2 errors and warnings 407# 3 some systems may open it to /dev/tty 408# 4 used on the Kubota Titan 409# 6 checking for... messages and results 410# 5 compiler messages saved in config.log 411if test "$silent" = yes; then 412 exec 6>/dev/null 413else 414 exec 6>&1 415fi 416exec 5>./config.log 417 418echo "\ 419This file contains any messages produced by compilers while 420running configure, to aid debugging if configure makes a mistake. 421" 1>&5 422 423# Strip out --no-create and --no-recursion so they do not pile up. 424# Also quote any args containing shell metacharacters. 425ac_configure_args= 426for ac_arg 427do 428 case "$ac_arg" in 429 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 430 | --no-cr | --no-c) ;; 431 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 432 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 433 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 434 ac_configure_args="$ac_configure_args '$ac_arg'" ;; 435 *) ac_configure_args="$ac_configure_args $ac_arg" ;; 436 esac 437done 438 439# NLS nuisances. 440# Only set these to C if already set. These must not be set unconditionally 441# because not all systems understand e.g. LANG=C (notably SCO). 442# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 443# Non-C LC_CTYPE values break the ctype check. 444if test "${LANG+set}" = set; then LANG=C; export LANG; fi 445if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 446if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 447if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 448 449# confdefs.h avoids OS command line length limits that DEFS can exceed. 450rm -rf conftest* confdefs.h 451# AIX cpp loses on an empty file, so make sure it contains at least a newline. 452echo > confdefs.h 453 454# A filename unique to this package, relative to the directory that 455# configure is in, which we can look for to find out if srcdir is correct. 456ac_unique_file=signal_ext.c 457 458# Find the source files, if location was not specified. 459if test -z "$srcdir"; then 460 ac_srcdir_defaulted=yes 461 # Try the directory containing this script, then its parent. 462 ac_prog=$0 463 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 464 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 465 srcdir=$ac_confdir 466 if test ! -r $srcdir/$ac_unique_file; then 467 srcdir=.. 468 fi 469else 470 ac_srcdir_defaulted=no 471fi 472if test ! -r $srcdir/$ac_unique_file; then 473 if test "$ac_srcdir_defaulted" = yes; then 474 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 475 else 476 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 477 fi 478fi 479srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 480 481# Prefer explicitly selected file to automatically selected ones. 482if test -z "$CONFIG_SITE"; then 483 if test "x$prefix" != xNONE; then 484 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 485 else 486 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 487 fi 488fi 489for ac_site_file in $CONFIG_SITE; do 490 if test -r "$ac_site_file"; then 491 echo "loading site script $ac_site_file" 492 . "$ac_site_file" 493 fi 494done 495 496if test -r "$cache_file"; then 497 echo "loading cache $cache_file" 498 . $cache_file 499else 500 echo "creating cache $cache_file" 501 > $cache_file 502fi 503 504ac_ext=c 505# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 506ac_cpp='$CPP $CPPFLAGS' 507ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 508ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 509cross_compiling=$ac_cv_prog_cc_cross 510 511ac_exeext= 512ac_objext=o 513if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 514 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 515 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 516 ac_n= ac_c=' 517' ac_t=' ' 518 else 519 ac_n=-n ac_c= ac_t= 520 fi 521else 522 ac_n= ac_c='\c' ac_t= 523fi 524 525 526if test "$program_transform_name" = s,x,x,; then 527 program_transform_name= 528else 529 # Double any \ or $. echo might interpret backslashes. 530 cat <<\EOF_SED > conftestsed 531s,\\,\\\\,g; s,\$,$$,g 532EOF_SED 533 program_transform_name="`echo $program_transform_name|sed -f conftestsed`" 534 rm -f conftestsed 535fi 536test "$program_prefix" != NONE && 537 program_transform_name="s,^,${program_prefix},; $program_transform_name" 538# Use a double $ so make ignores it. 539test "$program_suffix" != NONE && 540 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" 541 542# sed with no file args requires a program. 543test "$program_transform_name" = "" && program_transform_name="s,x,x," 544 545 546PRODUCT=signal 547VERSION=1.3 548 549# Check whether --with-tcl or --without-tcl was given. 550if test "${with_tcl+set}" = set; then 551 withval="$with_tcl" 552 TCL_BIN_DIR=$withval 553else 554 TCL_BIN_DIR=$prefix/bin 555fi 556 557if test ! -d $TCL_BIN_DIR; then 558 { echo "configure: error: Tcl directory $TCL_BIN_DIR doesn't exist" 1>&2; exit 1; } 559fi 560 561# -MODIFIED- 562# from 1.4 to 1.4-confpatch by tilman kranz 563# totally bogus (sorry) auto-detection for "tclInit.sh" 564TclConfigSh=$TCL_BIN_DIR//tclConfig.sh 565if test -r $TclConfigSh ; then 566 . $TclConfigSh 567else 568 echo "configure: warning: \$TclConfigSh=$TclConfigSh not found, running detection" 1>&2 569 for this_tcl_version in 8.1 8.2 8.3 8.4 8.5 ; do 570 echo $ac_n "checking \$this_tcl_version=$this_tcl_version""... $ac_c" 1>&6 571echo "configure:572: checking \$this_tcl_version=$this_tcl_version" >&5 572 test_tclsh=$prefix/lib/tcl$this_tcl_version/tclConfig.sh 573 if test -r $test_tclsh ; then 574 echo "$ac_t""found $test_tclsh" 1>&6 575 ok_tclsh=$test_tclsh 576 . $ok_tclsh 577 else 578 echo "$ac_t""not found" 1>&6 579 fi 580 done 581 if test -n "$ok_tclsh" ; then 582 : 583 else 584 { echo "configure: error: auto-detection for tclConfig.sh failed" 1>&2; exit 1; } 585 fi 586fi 587# -MODIFIED- stop 588 589 590 591echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 592echo "configure:593: checking how to run the C preprocessor" >&5 593# On Suns, sometimes $CPP names a directory. 594if test -n "$CPP" && test -d "$CPP"; then 595 CPP= 596fi 597if test -z "$CPP"; then 598if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 599 echo $ac_n "(cached) $ac_c" 1>&6 600else 601 # This must be in double quotes, not single quotes, because CPP may get 602 # substituted into the Makefile and "${CC-cc}" will confuse make. 603 CPP="${CC-cc} -E" 604 # On the NeXT, cc -E runs the code through the compiler's parser, 605 # not just through cpp. 606 cat > conftest.$ac_ext <<EOF 607#line 608 "configure" 608#include "confdefs.h" 609#include <assert.h> 610Syntax Error 611EOF 612ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 613{ (eval echo configure:614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 614ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 615if test -z "$ac_err"; then 616 : 617else 618 echo "$ac_err" >&5 619 echo "configure: failed program was:" >&5 620 cat conftest.$ac_ext >&5 621 rm -rf conftest* 622 CPP="${CC-cc} -E -traditional-cpp" 623 cat > conftest.$ac_ext <<EOF 624#line 625 "configure" 625#include "confdefs.h" 626#include <assert.h> 627Syntax Error 628EOF 629ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 630{ (eval echo configure:631: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 631ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 632if test -z "$ac_err"; then 633 : 634else 635 echo "$ac_err" >&5 636 echo "configure: failed program was:" >&5 637 cat conftest.$ac_ext >&5 638 rm -rf conftest* 639 CPP="${CC-cc} -nologo -E" 640 cat > conftest.$ac_ext <<EOF 641#line 642 "configure" 642#include "confdefs.h" 643#include <assert.h> 644Syntax Error 645EOF 646ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 647{ (eval echo configure:648: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 648ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 649if test -z "$ac_err"; then 650 : 651else 652 echo "$ac_err" >&5 653 echo "configure: failed program was:" >&5 654 cat conftest.$ac_ext >&5 655 rm -rf conftest* 656 CPP=/lib/cpp 657fi 658rm -f conftest* 659fi 660rm -f conftest* 661fi 662rm -f conftest* 663 ac_cv_prog_CPP="$CPP" 664fi 665 CPP="$ac_cv_prog_CPP" 666else 667 ac_cv_prog_CPP="$CPP" 668fi 669echo "$ac_t""$CPP" 1>&6 670 671echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 672echo "configure:673: checking for ANSI C header files" >&5 673if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 674 echo $ac_n "(cached) $ac_c" 1>&6 675else 676 cat > conftest.$ac_ext <<EOF 677#line 678 "configure" 678#include "confdefs.h" 679#include <stdlib.h> 680#include <stdarg.h> 681#include <string.h> 682#include <float.h> 683EOF 684ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 685{ (eval echo configure:686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 686ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 687if test -z "$ac_err"; then 688 rm -rf conftest* 689 ac_cv_header_stdc=yes 690else 691 echo "$ac_err" >&5 692 echo "configure: failed program was:" >&5 693 cat conftest.$ac_ext >&5 694 rm -rf conftest* 695 ac_cv_header_stdc=no 696fi 697rm -f conftest* 698 699if test $ac_cv_header_stdc = yes; then 700 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 701cat > conftest.$ac_ext <<EOF 702#line 703 "configure" 703#include "confdefs.h" 704#include <string.h> 705EOF 706if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 707 egrep "memchr" >/dev/null 2>&1; then 708 : 709else 710 rm -rf conftest* 711 ac_cv_header_stdc=no 712fi 713rm -f conftest* 714 715fi 716 717if test $ac_cv_header_stdc = yes; then 718 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 719cat > conftest.$ac_ext <<EOF 720#line 721 "configure" 721#include "confdefs.h" 722#include <stdlib.h> 723EOF 724if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 725 egrep "free" >/dev/null 2>&1; then 726 : 727else 728 rm -rf conftest* 729 ac_cv_header_stdc=no 730fi 731rm -f conftest* 732 733fi 734 735if test $ac_cv_header_stdc = yes; then 736 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 737if test "$cross_compiling" = yes; then 738 : 739else 740 cat > conftest.$ac_ext <<EOF 741#line 742 "configure" 742#include "confdefs.h" 743#include <ctype.h> 744#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 745#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 746#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 747int main () { int i; for (i = 0; i < 256; i++) 748if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 749exit (0); } 750 751EOF 752if { (eval echo configure:753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 753then 754 : 755else 756 echo "configure: failed program was:" >&5 757 cat conftest.$ac_ext >&5 758 rm -fr conftest* 759 ac_cv_header_stdc=no 760fi 761rm -fr conftest* 762fi 763 764fi 765fi 766 767echo "$ac_t""$ac_cv_header_stdc" 1>&6 768if test $ac_cv_header_stdc = yes; then 769 cat >> confdefs.h <<\EOF 770#define STDC_HEADERS 1 771EOF 772 773fi 774 775for ac_hdr in unistd.h 776do 777ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 778echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 779echo "configure:780: checking for $ac_hdr" >&5 780if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 781 echo $ac_n "(cached) $ac_c" 1>&6 782else 783 cat > conftest.$ac_ext <<EOF 784#line 785 "configure" 785#include "confdefs.h" 786#include <$ac_hdr> 787EOF 788ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 789{ (eval echo configure:790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 790ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 791if test -z "$ac_err"; then 792 rm -rf conftest* 793 eval "ac_cv_header_$ac_safe=yes" 794else 795 echo "$ac_err" >&5 796 echo "configure: failed program was:" >&5 797 cat conftest.$ac_ext >&5 798 rm -rf conftest* 799 eval "ac_cv_header_$ac_safe=no" 800fi 801rm -f conftest* 802fi 803if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 804 echo "$ac_t""yes" 1>&6 805 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 806 cat >> confdefs.h <<EOF 807#define $ac_tr_hdr 1 808EOF 809 810else 811 echo "$ac_t""no" 1>&6 812fi 813done 814 815 816echo $ac_n "checking for working const""... $ac_c" 1>&6 817echo "configure:818: checking for working const" >&5 818if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 819 echo $ac_n "(cached) $ac_c" 1>&6 820else 821 cat > conftest.$ac_ext <<EOF 822#line 823 "configure" 823#include "confdefs.h" 824 825int main() { 826 827/* Ultrix mips cc rejects this. */ 828typedef int charset[2]; const charset x; 829/* SunOS 4.1.1 cc rejects this. */ 830char const *const *ccp; 831char **p; 832/* NEC SVR4.0.2 mips cc rejects this. */ 833struct point {int x, y;}; 834static struct point const zero = {0,0}; 835/* AIX XL C 1.02.0.0 rejects this. 836 It does not let you subtract one const X* pointer from another in an arm 837 of an if-expression whose if-part is not a constant expression */ 838const char *g = "string"; 839ccp = &g + (g ? g-g : 0); 840/* HPUX 7.0 cc rejects these. */ 841++ccp; 842p = (char**) ccp; 843ccp = (char const *const *) p; 844{ /* SCO 3.2v4 cc rejects this. */ 845 char *t; 846 char const *s = 0 ? (char *) 0 : (char const *) 0; 847 848 *t++ = 0; 849} 850{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 851 int x[] = {25, 17}; 852 const int *foo = &x[0]; 853 ++foo; 854} 855{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 856 typedef const int *iptr; 857 iptr p = 0; 858 ++p; 859} 860{ /* AIX XL C 1.02.0.0 rejects this saying 861 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 862 struct s { int j; const int *ap[3]; }; 863 struct s *b; b->j = 5; 864} 865{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 866 const int foo = 10; 867} 868 869; return 0; } 870EOF 871if { (eval echo configure:872: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 872 rm -rf conftest* 873 ac_cv_c_const=yes 874else 875 echo "configure: failed program was:" >&5 876 cat conftest.$ac_ext >&5 877 rm -rf conftest* 878 ac_cv_c_const=no 879fi 880rm -f conftest* 881fi 882 883echo "$ac_t""$ac_cv_c_const" 1>&6 884if test $ac_cv_c_const = no; then 885 cat >> confdefs.h <<\EOF 886#define const 887EOF 888 889fi 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912for ac_func in strdup strerror 913do 914echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 915echo "configure:916: checking for $ac_func" >&5 916if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 917 echo $ac_n "(cached) $ac_c" 1>&6 918else 919 cat > conftest.$ac_ext <<EOF 920#line 921 "configure" 921#include "confdefs.h" 922/* System header to define __stub macros and hopefully few prototypes, 923 which can conflict with char $ac_func(); below. */ 924#include <assert.h> 925/* Override any gcc2 internal prototype to avoid an error. */ 926/* We use char because int might match the return type of a gcc2 927 builtin and then its argument prototype would still apply. */ 928char $ac_func(); 929 930int main() { 931 932/* The GNU C library defines this for functions which it implements 933 to always fail with ENOSYS. Some functions are actually named 934 something starting with __ and the normal name is an alias. */ 935#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 936choke me 937#else 938$ac_func(); 939#endif 940 941; return 0; } 942EOF 943if { (eval echo configure:944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 944 rm -rf conftest* 945 eval "ac_cv_func_$ac_func=yes" 946else 947 echo "configure: failed program was:" >&5 948 cat conftest.$ac_ext >&5 949 rm -rf conftest* 950 eval "ac_cv_func_$ac_func=no" 951fi 952rm -f conftest* 953fi 954 955if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 956 echo "$ac_t""yes" 1>&6 957 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 958 cat >> confdefs.h <<EOF 959#define $ac_tr_func 1 960EOF 961 962else 963 echo "$ac_t""no" 1>&6 964fi 965done 966 967 968ac_aux_dir= 969for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 970 if test -f $ac_dir/install-sh; then 971 ac_aux_dir=$ac_dir 972 ac_install_sh="$ac_aux_dir/install-sh -c" 973 break 974 elif test -f $ac_dir/install.sh; then 975 ac_aux_dir=$ac_dir 976 ac_install_sh="$ac_aux_dir/install.sh -c" 977 break 978 fi 979done 980if test -z "$ac_aux_dir"; then 981 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } 982fi 983ac_config_guess=$ac_aux_dir/config.guess 984ac_config_sub=$ac_aux_dir/config.sub 985ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 986 987# Find a good install program. We prefer a C program (faster), 988# so one script is as good as another. But avoid the broken or 989# incompatible versions: 990# SysV /etc/install, /usr/sbin/install 991# SunOS /usr/etc/install 992# IRIX /sbin/install 993# AIX /bin/install 994# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 995# AFS /usr/afsws/bin/install, which mishandles nonexistent args 996# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 997# ./install, which can be erroneously created by make from ./install.sh. 998echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 999echo "configure:1000: checking for a BSD compatible install" >&5 1000if test -z "$INSTALL"; then 1001if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 1002 echo $ac_n "(cached) $ac_c" 1>&6 1003else 1004 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 1005 for ac_dir in $PATH; do 1006 # Account for people who put trailing slashes in PATH elements. 1007 case "$ac_dir/" in 1008 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 1009 *) 1010 # OSF1 and SCO ODT 3.0 have their own names for install. 1011 # Don't use installbsd from OSF since it installs stuff as root 1012 # by default. 1013 for ac_prog in ginstall scoinst install; do 1014 if test -f $ac_dir/$ac_prog; then 1015 if test $ac_prog = install && 1016 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 1017 # AIX install. It has an incompatible calling convention. 1018 : 1019 else 1020 ac_cv_path_install="$ac_dir/$ac_prog -c" 1021 break 2 1022 fi 1023 fi 1024 done 1025 ;; 1026 esac 1027 done 1028 IFS="$ac_save_IFS" 1029 1030fi 1031 if test "${ac_cv_path_install+set}" = set; then 1032 INSTALL="$ac_cv_path_install" 1033 else 1034 # As a last resort, use the slow shell script. We don't cache a 1035 # path for INSTALL within a source directory, because that will 1036 # break other packages using the cache if that directory is 1037 # removed, or if the path is relative. 1038 INSTALL="$ac_install_sh" 1039 fi 1040fi 1041echo "$ac_t""$INSTALL" 1>&6 1042 1043# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1044# It thinks the first close brace ends the variable substitution. 1045test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1046 1047test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 1048 1049test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1050 1051trap '' 1 2 15 1052cat > confcache <<\EOF 1053# This file is a shell script that caches the results of configure 1054# tests run on this system so they can be shared between configure 1055# scripts and configure runs. It is not useful on other systems. 1056# If it contains results you don't want to keep, you may remove or edit it. 1057# 1058# By default, configure uses ./config.cache as the cache file, 1059# creating it if it does not exist already. You can give configure 1060# the --cache-file=FILE option to use a different cache file; that is 1061# what configure does when it calls configure scripts in 1062# subdirectories, so they share the cache. 1063# Giving --cache-file=/dev/null disables caching, for debugging configure. 1064# config.status only pays attention to the cache file if you give it the 1065# --recheck option to rerun configure. 1066# 1067EOF 1068# The following way of writing the cache mishandles newlines in values, 1069# but we know of no workaround that is simple, portable, and efficient. 1070# So, don't put newlines in cache variables' values. 1071# Ultrix sh set writes to stderr and can't be redirected directly, 1072# and sets the high bit in the cache file unless we assign to the vars. 1073(set) 2>&1 | 1074 case `(ac_space=' '; set | grep ac_space) 2>&1` in 1075 *ac_space=\ *) 1076 # `set' does not quote correctly, so add quotes (double-quote substitution 1077 # turns \\\\ into \\, and sed turns \\ into \). 1078 sed -n \ 1079 -e "s/'/'\\\\''/g" \ 1080 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 1081 ;; 1082 *) 1083 # `set' quotes correctly as required by POSIX, so do not add quotes. 1084 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 1085 ;; 1086 esac >> confcache 1087if cmp -s $cache_file confcache; then 1088 : 1089else 1090 if test -w $cache_file; then 1091 echo "updating cache $cache_file" 1092 cat confcache > $cache_file 1093 else 1094 echo "not updating unwritable cache $cache_file" 1095 fi 1096fi 1097rm -f confcache 1098 1099trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 1100 1101test "x$prefix" = xNONE && prefix=$ac_default_prefix 1102# Let make expand exec_prefix. 1103test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 1104 1105# Any assignment to VPATH causes Sun make to only execute 1106# the first set of double-colon rules, so remove it if not needed. 1107# If there is a colon in the path, we need to keep it. 1108if test "x$srcdir" = x.; then 1109 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 1110fi 1111 1112trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 1113 1114# Transform confdefs.h into DEFS. 1115# Protect against shell expansion while executing Makefile rules. 1116# Protect against Makefile macro expansion. 1117cat > conftest.defs <<\EOF 1118s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g 1119s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g 1120s%\[%\\&%g 1121s%\]%\\&%g 1122s%\$%$$%g 1123EOF 1124DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` 1125rm -f conftest.defs 1126 1127 1128# Without the "./", some shells look in PATH for config.status. 1129: ${CONFIG_STATUS=./config.status} 1130 1131echo creating $CONFIG_STATUS 1132rm -f $CONFIG_STATUS 1133cat > $CONFIG_STATUS <<EOF 1134#! /bin/sh 1135# Generated automatically by configure. 1136# Run this file to recreate the current configuration. 1137# This directory was configured as follows, 1138# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 1139# 1140# $0 $ac_configure_args 1141# 1142# Compiler output produced by configure, useful for debugging 1143# configure, is in ./config.log if it exists. 1144 1145ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 1146for ac_option 1147do 1148 case "\$ac_option" in 1149 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 1150 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 1151 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 1152 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 1153 echo "$CONFIG_STATUS generated by autoconf version 2.13" 1154 exit 0 ;; 1155 -help | --help | --hel | --he | --h) 1156 echo "\$ac_cs_usage"; exit 0 ;; 1157 *) echo "\$ac_cs_usage"; exit 1 ;; 1158 esac 1159done 1160 1161ac_given_srcdir=$srcdir 1162ac_given_INSTALL="$INSTALL" 1163 1164trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 1165EOF 1166cat >> $CONFIG_STATUS <<EOF 1167 1168# Protect against being on the right side of a sed subst in config.status. 1169sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 1170 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 1171$ac_vpsub 1172$extrasub 1173s%@SHELL@%$SHELL%g 1174s%@CFLAGS@%$CFLAGS%g 1175s%@CPPFLAGS@%$CPPFLAGS%g 1176s%@CXXFLAGS@%$CXXFLAGS%g 1177s%@FFLAGS@%$FFLAGS%g 1178s%@DEFS@%$DEFS%g 1179s%@LDFLAGS@%$LDFLAGS%g 1180s%@LIBS@%$LIBS%g 1181s%@exec_prefix@%$exec_prefix%g 1182s%@prefix@%$prefix%g 1183s%@program_transform_name@%$program_transform_name%g 1184s%@bindir@%$bindir%g 1185s%@sbindir@%$sbindir%g 1186s%@libexecdir@%$libexecdir%g 1187s%@datadir@%$datadir%g 1188s%@sysconfdir@%$sysconfdir%g 1189s%@sharedstatedir@%$sharedstatedir%g 1190s%@localstatedir@%$localstatedir%g 1191s%@libdir@%$libdir%g 1192s%@includedir@%$includedir%g 1193s%@oldincludedir@%$oldincludedir%g 1194s%@infodir@%$infodir%g 1195s%@mandir@%$mandir%g 1196s%@CPP@%$CPP%g 1197s%@TCL_CC@%$TCL_CC%g 1198s%@TCL_INCLUDE_SPEC@%$TCL_INCLUDE_SPEC%g 1199s%@TCL_INC_DIR@%$TCL_INC_DIR%g 1200s%@TCL_LIB_FILE@%$TCL_LIB_FILE%g 1201s%@TCL_PREFIX@%$TCL_PREFIX%g 1202s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g 1203s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g 1204s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g 1205s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g 1206s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g 1207s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g 1208s%@TCL_PACKAGE_PATH@%$TCL_PACKAGE_PATH%g 1209s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g 1210s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g 1211s%@TCL_EXEC_PREFIX@%$TCL_EXEC_PREFIX%g 1212s%@TCL_VERSION@%$TCL_VERSION%g 1213s%@TCL_LIBS@%$TCL_LIBS%g 1214s%@TCL_DEFS@%$TCL_DEFS%g 1215s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 1216s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g 1217s%@INSTALL_DATA@%$INSTALL_DATA%g 1218 1219CEOF 1220EOF 1221 1222cat >> $CONFIG_STATUS <<\EOF 1223 1224# Split the substitutions into bite-sized pieces for seds with 1225# small command number limits, like on Digital OSF/1 and HP-UX. 1226ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 1227ac_file=1 # Number of current file. 1228ac_beg=1 # First line for current file. 1229ac_end=$ac_max_sed_cmds # Line after last line for current file. 1230ac_more_lines=: 1231ac_sed_cmds="" 1232while $ac_more_lines; do 1233 if test $ac_beg -gt 1; then 1234 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 1235 else 1236 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 1237 fi 1238 if test ! -s conftest.s$ac_file; then 1239 ac_more_lines=false 1240 rm -f conftest.s$ac_file 1241 else 1242 if test -z "$ac_sed_cmds"; then 1243 ac_sed_cmds="sed -f conftest.s$ac_file" 1244 else 1245 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 1246 fi 1247 ac_file=`expr $ac_file + 1` 1248 ac_beg=$ac_end 1249 ac_end=`expr $ac_end + $ac_max_sed_cmds` 1250 fi 1251done 1252if test -z "$ac_sed_cmds"; then 1253 ac_sed_cmds=cat 1254fi 1255EOF 1256 1257cat >> $CONFIG_STATUS <<EOF 1258 1259CONFIG_FILES=\${CONFIG_FILES-"Makefile"} 1260EOF 1261cat >> $CONFIG_STATUS <<\EOF 1262for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 1263 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 1264 case "$ac_file" in 1265 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 1266 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 1267 *) ac_file_in="${ac_file}.in" ;; 1268 esac 1269 1270 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 1271 1272 # Remove last slash and all that follows it. Not all systems have dirname. 1273 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 1274 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 1275 # The file is in a subdirectory. 1276 test ! -d "$ac_dir" && mkdir "$ac_dir" 1277 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 1278 # A "../" for each directory in $ac_dir_suffix. 1279 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 1280 else 1281 ac_dir_suffix= ac_dots= 1282 fi 1283 1284 case "$ac_given_srcdir" in 1285 .) srcdir=. 1286 if test -z "$ac_dots"; then top_srcdir=. 1287 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 1288 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 1289 *) # Relative path. 1290 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 1291 top_srcdir="$ac_dots$ac_given_srcdir" ;; 1292 esac 1293 1294 case "$ac_given_INSTALL" in 1295 [/$]*) INSTALL="$ac_given_INSTALL" ;; 1296 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; 1297 esac 1298 1299 echo creating "$ac_file" 1300 rm -f "$ac_file" 1301 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 1302 case "$ac_file" in 1303 *Makefile*) ac_comsub="1i\\ 1304# $configure_input" ;; 1305 *) ac_comsub= ;; 1306 esac 1307 1308 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 1309 sed -e "$ac_comsub 1310s%@configure_input@%$configure_input%g 1311s%@srcdir@%$srcdir%g 1312s%@top_srcdir@%$top_srcdir%g 1313s%@INSTALL@%$INSTALL%g 1314" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 1315fi; done 1316rm -f conftest.s* 1317 1318EOF 1319cat >> $CONFIG_STATUS <<EOF 1320 1321EOF 1322cat >> $CONFIG_STATUS <<\EOF 1323 1324exit 0 1325EOF 1326chmod +x $CONFIG_STATUS 1327rm -fr confdefs* $ac_clean_files 1328test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 1329 1330