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 --enable-debug=[no/yes] Debugging information == no <--> optimization == yes" 16ac_help="$ac_help 17 --enable-system=[yes/no] Use "system" libc function to run commands " 18ac_help="$ac_help 19 --enable-mtrace=[no/yes] Trace memory (de)allocation calls to detect memory leaks " 20ac_help="$ac_help 21 --enable-stlport do we need stlport " 22ac_help="$ac_help 23 --with-stlport-lib where stlport library is located" 24ac_help="$ac_help 25 --enable-stlport do we need stlport " 26ac_help="$ac_help 27 --with-stlport-includes where stlport headers are located" 28 29# Initialize some variables set by options. 30# The variables have the same names as the options, with 31# dashes changed to underlines. 32build=NONE 33cache_file=./config.cache 34exec_prefix=NONE 35host=NONE 36no_create= 37nonopt=NONE 38no_recursion= 39prefix=NONE 40program_prefix=NONE 41program_suffix=NONE 42program_transform_name=s,x,x, 43silent= 44site= 45srcdir= 46target=NONE 47verbose= 48x_includes=NONE 49x_libraries=NONE 50bindir='${exec_prefix}/bin' 51sbindir='${exec_prefix}/sbin' 52libexecdir='${exec_prefix}/libexec' 53datadir='${prefix}/share' 54sysconfdir='${prefix}/etc' 55sharedstatedir='${prefix}/com' 56localstatedir='${prefix}/var' 57libdir='${exec_prefix}/lib' 58includedir='${prefix}/include' 59oldincludedir='/usr/include' 60infodir='${prefix}/info' 61mandir='${prefix}/man' 62 63# Initialize some other variables. 64subdirs= 65MFLAGS= MAKEFLAGS= 66SHELL=${CONFIG_SHELL-/bin/sh} 67# Maximum number of lines to put in a shell here document. 68ac_max_here_lines=12 69 70ac_prev= 71for ac_option 72do 73 74 # If the previous option needs an argument, assign it. 75 if test -n "$ac_prev"; then 76 eval "$ac_prev=\$ac_option" 77 ac_prev= 78 continue 79 fi 80 81 case "$ac_option" in 82 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 83 *) ac_optarg= ;; 84 esac 85 86 # Accept the important Cygnus configure options, so we can diagnose typos. 87 88 case "$ac_option" in 89 90 -bindir | --bindir | --bindi | --bind | --bin | --bi) 91 ac_prev=bindir ;; 92 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 93 bindir="$ac_optarg" ;; 94 95 -build | --build | --buil | --bui | --bu) 96 ac_prev=build ;; 97 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 98 build="$ac_optarg" ;; 99 100 -cache-file | --cache-file | --cache-fil | --cache-fi \ 101 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 102 ac_prev=cache_file ;; 103 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 104 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 105 cache_file="$ac_optarg" ;; 106 107 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 108 ac_prev=datadir ;; 109 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 110 | --da=*) 111 datadir="$ac_optarg" ;; 112 113 -disable-* | --disable-*) 114 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 115 # Reject names that are not valid shell variable names. 116 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 117 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 118 fi 119 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 120 eval "enable_${ac_feature}=no" ;; 121 122 -enable-* | --enable-*) 123 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 124 # Reject names that are not valid shell variable names. 125 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 126 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 127 fi 128 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 129 case "$ac_option" in 130 *=*) ;; 131 *) ac_optarg=yes ;; 132 esac 133 eval "enable_${ac_feature}='$ac_optarg'" ;; 134 135 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 136 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 137 | --exec | --exe | --ex) 138 ac_prev=exec_prefix ;; 139 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 140 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 141 | --exec=* | --exe=* | --ex=*) 142 exec_prefix="$ac_optarg" ;; 143 144 -gas | --gas | --ga | --g) 145 # Obsolete; use --with-gas. 146 with_gas=yes ;; 147 148 -help | --help | --hel | --he) 149 # Omit some internal or obsolete options to make the list less imposing. 150 # This message is too long to be a string in the A/UX 3.1 sh. 151 cat << EOF 152Usage: configure [options] [host] 153Options: [defaults in brackets after descriptions] 154Configuration: 155 --cache-file=FILE cache test results in FILE 156 --help print this message 157 --no-create do not create output files 158 --quiet, --silent do not print \`checking...' messages 159 --version print the version of autoconf that created configure 160Directory and file names: 161 --prefix=PREFIX install architecture-independent files in PREFIX 162 [$ac_default_prefix] 163 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 164 [same as prefix] 165 --bindir=DIR user executables in DIR [EPREFIX/bin] 166 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 167 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 168 --datadir=DIR read-only architecture-independent data in DIR 169 [PREFIX/share] 170 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 171 --sharedstatedir=DIR modifiable architecture-independent data in DIR 172 [PREFIX/com] 173 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 174 --libdir=DIR object code libraries in DIR [EPREFIX/lib] 175 --includedir=DIR C header files in DIR [PREFIX/include] 176 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 177 --infodir=DIR info documentation in DIR [PREFIX/info] 178 --mandir=DIR man documentation in DIR [PREFIX/man] 179 --srcdir=DIR find the sources in DIR [configure dir or ..] 180 --program-prefix=PREFIX prepend PREFIX to installed program names 181 --program-suffix=SUFFIX append SUFFIX to installed program names 182 --program-transform-name=PROGRAM 183 run sed PROGRAM on installed program names 184EOF 185 cat << EOF 186Host type: 187 --build=BUILD configure for building on BUILD [BUILD=HOST] 188 --host=HOST configure for HOST [guessed] 189 --target=TARGET configure for TARGET [TARGET=HOST] 190Features and packages: 191 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 192 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 193 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 194 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 195 --x-includes=DIR X include files are in DIR 196 --x-libraries=DIR X library files are in DIR 197EOF 198 if test -n "$ac_help"; then 199 echo "--enable and --with options recognized:$ac_help" 200 fi 201 exit 0 ;; 202 203 -host | --host | --hos | --ho) 204 ac_prev=host ;; 205 -host=* | --host=* | --hos=* | --ho=*) 206 host="$ac_optarg" ;; 207 208 -includedir | --includedir | --includedi | --included | --include \ 209 | --includ | --inclu | --incl | --inc) 210 ac_prev=includedir ;; 211 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 212 | --includ=* | --inclu=* | --incl=* | --inc=*) 213 includedir="$ac_optarg" ;; 214 215 -infodir | --infodir | --infodi | --infod | --info | --inf) 216 ac_prev=infodir ;; 217 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 218 infodir="$ac_optarg" ;; 219 220 -libdir | --libdir | --libdi | --libd) 221 ac_prev=libdir ;; 222 -libdir=* | --libdir=* | --libdi=* | --libd=*) 223 libdir="$ac_optarg" ;; 224 225 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 226 | --libexe | --libex | --libe) 227 ac_prev=libexecdir ;; 228 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 229 | --libexe=* | --libex=* | --libe=*) 230 libexecdir="$ac_optarg" ;; 231 232 -localstatedir | --localstatedir | --localstatedi | --localstated \ 233 | --localstate | --localstat | --localsta | --localst \ 234 | --locals | --local | --loca | --loc | --lo) 235 ac_prev=localstatedir ;; 236 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 237 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 238 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 239 localstatedir="$ac_optarg" ;; 240 241 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 242 ac_prev=mandir ;; 243 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 244 mandir="$ac_optarg" ;; 245 246 -nfp | --nfp | --nf) 247 # Obsolete; use --without-fp. 248 with_fp=no ;; 249 250 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 251 | --no-cr | --no-c) 252 no_create=yes ;; 253 254 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 255 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 256 no_recursion=yes ;; 257 258 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 259 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 260 | --oldin | --oldi | --old | --ol | --o) 261 ac_prev=oldincludedir ;; 262 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 263 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 264 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 265 oldincludedir="$ac_optarg" ;; 266 267 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 268 ac_prev=prefix ;; 269 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 270 prefix="$ac_optarg" ;; 271 272 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 273 | --program-pre | --program-pr | --program-p) 274 ac_prev=program_prefix ;; 275 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 276 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 277 program_prefix="$ac_optarg" ;; 278 279 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 280 | --program-suf | --program-su | --program-s) 281 ac_prev=program_suffix ;; 282 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 283 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 284 program_suffix="$ac_optarg" ;; 285 286 -program-transform-name | --program-transform-name \ 287 | --program-transform-nam | --program-transform-na \ 288 | --program-transform-n | --program-transform- \ 289 | --program-transform | --program-transfor \ 290 | --program-transfo | --program-transf \ 291 | --program-trans | --program-tran \ 292 | --progr-tra | --program-tr | --program-t) 293 ac_prev=program_transform_name ;; 294 -program-transform-name=* | --program-transform-name=* \ 295 | --program-transform-nam=* | --program-transform-na=* \ 296 | --program-transform-n=* | --program-transform-=* \ 297 | --program-transform=* | --program-transfor=* \ 298 | --program-transfo=* | --program-transf=* \ 299 | --program-trans=* | --program-tran=* \ 300 | --progr-tra=* | --program-tr=* | --program-t=*) 301 program_transform_name="$ac_optarg" ;; 302 303 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 304 | -silent | --silent | --silen | --sile | --sil) 305 silent=yes ;; 306 307 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 308 ac_prev=sbindir ;; 309 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 310 | --sbi=* | --sb=*) 311 sbindir="$ac_optarg" ;; 312 313 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 314 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 315 | --sharedst | --shareds | --shared | --share | --shar \ 316 | --sha | --sh) 317 ac_prev=sharedstatedir ;; 318 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 319 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 320 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 321 | --sha=* | --sh=*) 322 sharedstatedir="$ac_optarg" ;; 323 324 -site | --site | --sit) 325 ac_prev=site ;; 326 -site=* | --site=* | --sit=*) 327 site="$ac_optarg" ;; 328 329 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 330 ac_prev=srcdir ;; 331 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 332 srcdir="$ac_optarg" ;; 333 334 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 335 | --syscon | --sysco | --sysc | --sys | --sy) 336 ac_prev=sysconfdir ;; 337 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 338 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 339 sysconfdir="$ac_optarg" ;; 340 341 -target | --target | --targe | --targ | --tar | --ta | --t) 342 ac_prev=target ;; 343 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 344 target="$ac_optarg" ;; 345 346 -v | -verbose | --verbose | --verbos | --verbo | --verb) 347 verbose=yes ;; 348 349 -version | --version | --versio | --versi | --vers) 350 echo "configure generated by autoconf version 2.13" 351 exit 0 ;; 352 353 -with-* | --with-*) 354 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 355 # Reject names that are not valid shell variable names. 356 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 357 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 358 fi 359 ac_package=`echo $ac_package| sed 's/-/_/g'` 360 case "$ac_option" in 361 *=*) ;; 362 *) ac_optarg=yes ;; 363 esac 364 eval "with_${ac_package}='$ac_optarg'" ;; 365 366 -without-* | --without-*) 367 ac_package=`echo $ac_option|sed -e 's/-*without-//'` 368 # Reject names that are not valid shell variable names. 369 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 370 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 371 fi 372 ac_package=`echo $ac_package| sed 's/-/_/g'` 373 eval "with_${ac_package}=no" ;; 374 375 --x) 376 # Obsolete; use --with-x. 377 with_x=yes ;; 378 379 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 380 | --x-incl | --x-inc | --x-in | --x-i) 381 ac_prev=x_includes ;; 382 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 383 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 384 x_includes="$ac_optarg" ;; 385 386 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 387 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 388 ac_prev=x_libraries ;; 389 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 390 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 391 x_libraries="$ac_optarg" ;; 392 393 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 394 ;; 395 396 *) 397 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 398 echo "configure: warning: $ac_option: invalid host type" 1>&2 399 fi 400 if test "x$nonopt" != xNONE; then 401 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 402 fi 403 nonopt="$ac_option" 404 ;; 405 406 esac 407done 408 409if test -n "$ac_prev"; then 410 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 411fi 412 413trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 414 415# File descriptor usage: 416# 0 standard input 417# 1 file creation 418# 2 errors and warnings 419# 3 some systems may open it to /dev/tty 420# 4 used on the Kubota Titan 421# 6 checking for... messages and results 422# 5 compiler messages saved in config.log 423if test "$silent" = yes; then 424 exec 6>/dev/null 425else 426 exec 6>&1 427fi 428exec 5>./config.log 429 430echo "\ 431This file contains any messages produced by compilers while 432running configure, to aid debugging if configure makes a mistake. 433" 1>&5 434 435# Strip out --no-create and --no-recursion so they do not pile up. 436# Also quote any args containing shell metacharacters. 437ac_configure_args= 438for ac_arg 439do 440 case "$ac_arg" in 441 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 442 | --no-cr | --no-c) ;; 443 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 444 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 445 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 446 ac_configure_args="$ac_configure_args '$ac_arg'" ;; 447 *) ac_configure_args="$ac_configure_args $ac_arg" ;; 448 esac 449done 450 451# NLS nuisances. 452# Only set these to C if already set. These must not be set unconditionally 453# because not all systems understand e.g. LANG=C (notably SCO). 454# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 455# Non-C LC_CTYPE values break the ctype check. 456if test "${LANG+set}" = set; then LANG=C; export LANG; fi 457if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 458if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 459if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 460 461# confdefs.h avoids OS command line length limits that DEFS can exceed. 462rm -rf conftest* confdefs.h 463# AIX cpp loses on an empty file, so make sure it contains at least a newline. 464echo > confdefs.h 465 466# A filename unique to this package, relative to the directory that 467# configure is in, which we can look for to find out if srcdir is correct. 468ac_unique_file=configure.in 469 470# Find the source files, if location was not specified. 471if test -z "$srcdir"; then 472 ac_srcdir_defaulted=yes 473 # Try the directory containing this script, then its parent. 474 ac_prog=$0 475 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 476 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 477 srcdir=$ac_confdir 478 if test ! -r $srcdir/$ac_unique_file; then 479 srcdir=.. 480 fi 481else 482 ac_srcdir_defaulted=no 483fi 484if test ! -r $srcdir/$ac_unique_file; then 485 if test "$ac_srcdir_defaulted" = yes; then 486 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 487 else 488 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 489 fi 490fi 491srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 492 493# Prefer explicitly selected file to automatically selected ones. 494if test -z "$CONFIG_SITE"; then 495 if test "x$prefix" != xNONE; then 496 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 497 else 498 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 499 fi 500fi 501for ac_site_file in $CONFIG_SITE; do 502 if test -r "$ac_site_file"; then 503 echo "loading site script $ac_site_file" 504 . "$ac_site_file" 505 fi 506done 507 508if test -r "$cache_file"; then 509 echo "loading cache $cache_file" 510 . $cache_file 511else 512 echo "creating cache $cache_file" 513 > $cache_file 514fi 515 516ac_ext=c 517# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 518ac_cpp='$CPP $CPPFLAGS' 519ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 520ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 521cross_compiling=$ac_cv_prog_cc_cross 522 523ac_exeext= 524ac_objext=o 525if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 526 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 527 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 528 ac_n= ac_c=' 529' ac_t=' ' 530 else 531 ac_n=-n ac_c= ac_t= 532 fi 533else 534 ac_n= ac_c='\c' ac_t= 535fi 536 537 538ac_aux_dir= 539for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 540 if test -f $ac_dir/install-sh; then 541 ac_aux_dir=$ac_dir 542 ac_install_sh="$ac_aux_dir/install-sh -c" 543 break 544 elif test -f $ac_dir/install.sh; then 545 ac_aux_dir=$ac_dir 546 ac_install_sh="$ac_aux_dir/install.sh -c" 547 break 548 fi 549done 550if test -z "$ac_aux_dir"; then 551 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } 552fi 553ac_config_guess=$ac_aux_dir/config.guess 554ac_config_sub=$ac_aux_dir/config.sub 555ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 556 557am__api_version="1.4" 558# Find a good install program. We prefer a C program (faster), 559# so one script is as good as another. But avoid the broken or 560# incompatible versions: 561# SysV /etc/install, /usr/sbin/install 562# SunOS /usr/etc/install 563# IRIX /sbin/install 564# AIX /bin/install 565# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 566# AFS /usr/afsws/bin/install, which mishandles nonexistent args 567# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 568# ./install, which can be erroneously created by make from ./install.sh. 569echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 570echo "configure:571: checking for a BSD compatible install" >&5 571if test -z "$INSTALL"; then 572if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 573 echo $ac_n "(cached) $ac_c" 1>&6 574else 575 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 576 for ac_dir in $PATH; do 577 # Account for people who put trailing slashes in PATH elements. 578 case "$ac_dir/" in 579 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 580 *) 581 # OSF1 and SCO ODT 3.0 have their own names for install. 582 # Don't use installbsd from OSF since it installs stuff as root 583 # by default. 584 for ac_prog in ginstall scoinst install; do 585 if test -f $ac_dir/$ac_prog; then 586 if test $ac_prog = install && 587 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 588 # AIX install. It has an incompatible calling convention. 589 : 590 else 591 ac_cv_path_install="$ac_dir/$ac_prog -c" 592 break 2 593 fi 594 fi 595 done 596 ;; 597 esac 598 done 599 IFS="$ac_save_IFS" 600 601fi 602 if test "${ac_cv_path_install+set}" = set; then 603 INSTALL="$ac_cv_path_install" 604 else 605 # As a last resort, use the slow shell script. We don't cache a 606 # path for INSTALL within a source directory, because that will 607 # break other packages using the cache if that directory is 608 # removed, or if the path is relative. 609 INSTALL="$ac_install_sh" 610 fi 611fi 612echo "$ac_t""$INSTALL" 1>&6 613 614# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 615# It thinks the first close brace ends the variable substitution. 616test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 617 618test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 619 620test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 621 622echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 623echo "configure:624: checking whether build environment is sane" >&5 624# Just in case 625sleep 1 626echo timestamp > conftestfile 627# Do `set' in a subshell so we don't clobber the current shell's 628# arguments. Must try -L first in case configure is actually a 629# symlink; some systems play weird games with the mod time of symlinks 630# (eg FreeBSD returns the mod time of the symlink's containing 631# directory). 632if ( 633 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` 634 if test "$*" = "X"; then 635 # -L didn't work. 636 set X `ls -t $srcdir/configure conftestfile` 637 fi 638 if test "$*" != "X $srcdir/configure conftestfile" \ 639 && test "$*" != "X conftestfile $srcdir/configure"; then 640 641 # If neither matched, then we have a broken ls. This can happen 642 # if, for instance, CONFIG_SHELL is bash and it inherits a 643 # broken ls alias from the environment. This has actually 644 # happened. Such a system could not be considered "sane". 645 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken 646alias in your environment" 1>&2; exit 1; } 647 fi 648 649 test "$2" = conftestfile 650 ) 651then 652 # Ok. 653 : 654else 655 { echo "configure: error: newly created file is older than distributed files! 656Check your system clock" 1>&2; exit 1; } 657fi 658rm -f conftest* 659echo "$ac_t""yes" 1>&6 660if test "$program_transform_name" = s,x,x,; then 661 program_transform_name= 662else 663 # Double any \ or $. echo might interpret backslashes. 664 cat <<\EOF_SED > conftestsed 665s,\\,\\\\,g; s,\$,$$,g 666EOF_SED 667 program_transform_name="`echo $program_transform_name|sed -f conftestsed`" 668 rm -f conftestsed 669fi 670test "$program_prefix" != NONE && 671 program_transform_name="s,^,${program_prefix},; $program_transform_name" 672# Use a double $ so make ignores it. 673test "$program_suffix" != NONE && 674 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" 675 676# sed with no file args requires a program. 677test "$program_transform_name" = "" && program_transform_name="s,x,x," 678 679echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 680echo "configure:681: checking whether ${MAKE-make} sets \${MAKE}" >&5 681set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 682if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 683 echo $ac_n "(cached) $ac_c" 1>&6 684else 685 cat > conftestmake <<\EOF 686all: 687 @echo 'ac_maketemp="${MAKE}"' 688EOF 689# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 690eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` 691if test -n "$ac_maketemp"; then 692 eval ac_cv_prog_make_${ac_make}_set=yes 693else 694 eval ac_cv_prog_make_${ac_make}_set=no 695fi 696rm -f conftestmake 697fi 698if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 699 echo "$ac_t""yes" 1>&6 700 SET_MAKE= 701else 702 echo "$ac_t""no" 1>&6 703 SET_MAKE="MAKE=${MAKE-make}" 704fi 705 706 707PACKAGE=gmrun 708 709VERSION=0.9.2 710 711if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then 712 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } 713fi 714cat >> confdefs.h <<EOF 715#define PACKAGE "$PACKAGE" 716EOF 717 718cat >> confdefs.h <<EOF 719#define VERSION "$VERSION" 720EOF 721 722 723 724missing_dir=`cd $ac_aux_dir && pwd` 725echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6 726echo "configure:727: checking for working aclocal-${am__api_version}" >&5 727# Run test in a subshell; some versions of sh will print an error if 728# an executable is not found, even if stderr is redirected. 729# Redirect stdin to placate older versions of autoconf. Sigh. 730if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then 731 ACLOCAL=aclocal-${am__api_version} 732 echo "$ac_t""found" 1>&6 733else 734 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}" 735 echo "$ac_t""missing" 1>&6 736fi 737 738echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 739echo "configure:740: checking for working autoconf" >&5 740# Run test in a subshell; some versions of sh will print an error if 741# an executable is not found, even if stderr is redirected. 742# Redirect stdin to placate older versions of autoconf. Sigh. 743if (autoconf --version) < /dev/null > /dev/null 2>&1; then 744 AUTOCONF=autoconf 745 echo "$ac_t""found" 1>&6 746else 747 AUTOCONF="$missing_dir/missing autoconf" 748 echo "$ac_t""missing" 1>&6 749fi 750 751echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6 752echo "configure:753: checking for working automake-${am__api_version}" >&5 753# Run test in a subshell; some versions of sh will print an error if 754# an executable is not found, even if stderr is redirected. 755# Redirect stdin to placate older versions of autoconf. Sigh. 756if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then 757 AUTOMAKE=automake-${am__api_version} 758 echo "$ac_t""found" 1>&6 759else 760 AUTOMAKE="$missing_dir/missing automake-${am__api_version}" 761 echo "$ac_t""missing" 1>&6 762fi 763 764echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 765echo "configure:766: checking for working autoheader" >&5 766# Run test in a subshell; some versions of sh will print an error if 767# an executable is not found, even if stderr is redirected. 768# Redirect stdin to placate older versions of autoconf. Sigh. 769if (autoheader --version) < /dev/null > /dev/null 2>&1; then 770 AUTOHEADER=autoheader 771 echo "$ac_t""found" 1>&6 772else 773 AUTOHEADER="$missing_dir/missing autoheader" 774 echo "$ac_t""missing" 1>&6 775fi 776 777echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 778echo "configure:779: checking for working makeinfo" >&5 779# Run test in a subshell; some versions of sh will print an error if 780# an executable is not found, even if stderr is redirected. 781# Redirect stdin to placate older versions of autoconf. Sigh. 782if (makeinfo --version) < /dev/null > /dev/null 2>&1; then 783 MAKEINFO=makeinfo 784 echo "$ac_t""found" 1>&6 785else 786 MAKEINFO="$missing_dir/missing makeinfo" 787 echo "$ac_t""missing" 1>&6 788fi 789 790 791 792 793 794 795# Check whether --enable-debug or --disable-debug was given. 796if test "${enable_debug+set}" = set; then 797 enableval="$enable_debug" 798 : 799else 800 enable_debug=no 801fi 802 803 804if ! test "x$enable_debug" != "xyes"; then 805 CFLAGS="-g3 -O0 -DDEBUG" 806 CXXFLAGS="-g3 -O0 -DDEBUG" 807fi 808 809# Check whether --enable-system or --disable-system was given. 810if test "${enable_system+set}" = set; then 811 enableval="$enable_system" 812 : 813else 814 enable_system=no 815fi 816 817 818if ! test "x$enable_system" != "xyes"; then 819 CFLAGS="$CFLAGS -DUSE_SYSTEM" 820 CXXFLAGS="$CXXFLAGS -DUSE_SYSTEM" 821fi 822 823# Check whether --enable-mtrace or --disable-mtrace was given. 824if test "${enable_mtrace+set}" = set; then 825 enableval="$enable_mtrace" 826 : 827else 828 enable_mtrace=no 829fi 830 831 832if ! test "x$enable_mtrace" != "xyes"; then 833 CFLAGS="$CFLAGS -DMTRACE" 834 CXXFLAGS="$CXXFLAGS -DMTRACE" 835fi 836 837 838 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6 839echo "configure:840: checking for strerror in -lcposix" >&5 840ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'` 841if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 842 echo $ac_n "(cached) $ac_c" 1>&6 843else 844 ac_save_LIBS="$LIBS" 845LIBS="-lcposix $LIBS" 846cat > conftest.$ac_ext <<EOF 847#line 848 "configure" 848#include "confdefs.h" 849/* Override any gcc2 internal prototype to avoid an error. */ 850/* We use char because int might match the return type of a gcc2 851 builtin and then its argument prototype would still apply. */ 852char strerror(); 853 854int main() { 855strerror() 856; return 0; } 857EOF 858if { (eval echo configure:859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 859 rm -rf conftest* 860 eval "ac_cv_lib_$ac_lib_var=yes" 861else 862 echo "configure: failed program was:" >&5 863 cat conftest.$ac_ext >&5 864 rm -rf conftest* 865 eval "ac_cv_lib_$ac_lib_var=no" 866fi 867rm -f conftest* 868LIBS="$ac_save_LIBS" 869 870fi 871if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 872 echo "$ac_t""yes" 1>&6 873 LIBS="$LIBS -lcposix" 874else 875 echo "$ac_t""no" 1>&6 876fi 877 878 879 880# Extract the first word of "gcc", so it can be a program name with args. 881set dummy gcc; ac_word=$2 882echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 883echo "configure:884: checking for $ac_word" >&5 884if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 885 echo $ac_n "(cached) $ac_c" 1>&6 886else 887 if test -n "$CC"; then 888 ac_cv_prog_CC="$CC" # Let the user override the test. 889else 890 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 891 ac_dummy="$PATH" 892 for ac_dir in $ac_dummy; do 893 test -z "$ac_dir" && ac_dir=. 894 if test -f $ac_dir/$ac_word; then 895 ac_cv_prog_CC="gcc" 896 break 897 fi 898 done 899 IFS="$ac_save_ifs" 900fi 901fi 902CC="$ac_cv_prog_CC" 903if test -n "$CC"; then 904 echo "$ac_t""$CC" 1>&6 905else 906 echo "$ac_t""no" 1>&6 907fi 908 909if test -z "$CC"; then 910 # Extract the first word of "cc", so it can be a program name with args. 911set dummy cc; ac_word=$2 912echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 913echo "configure:914: checking for $ac_word" >&5 914if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 915 echo $ac_n "(cached) $ac_c" 1>&6 916else 917 if test -n "$CC"; then 918 ac_cv_prog_CC="$CC" # Let the user override the test. 919else 920 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 921 ac_prog_rejected=no 922 ac_dummy="$PATH" 923 for ac_dir in $ac_dummy; do 924 test -z "$ac_dir" && ac_dir=. 925 if test -f $ac_dir/$ac_word; then 926 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 927 ac_prog_rejected=yes 928 continue 929 fi 930 ac_cv_prog_CC="cc" 931 break 932 fi 933 done 934 IFS="$ac_save_ifs" 935if test $ac_prog_rejected = yes; then 936 # We found a bogon in the path, so make sure we never use it. 937 set dummy $ac_cv_prog_CC 938 shift 939 if test $# -gt 0; then 940 # We chose a different compiler from the bogus one. 941 # However, it has the same basename, so the bogon will be chosen 942 # first if we set CC to just the basename; use the full file name. 943 shift 944 set dummy "$ac_dir/$ac_word" "$@" 945 shift 946 ac_cv_prog_CC="$@" 947 fi 948fi 949fi 950fi 951CC="$ac_cv_prog_CC" 952if test -n "$CC"; then 953 echo "$ac_t""$CC" 1>&6 954else 955 echo "$ac_t""no" 1>&6 956fi 957 958 if test -z "$CC"; then 959 case "`uname -s`" in 960 *win32* | *WIN32*) 961 # Extract the first word of "cl", so it can be a program name with args. 962set dummy cl; ac_word=$2 963echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 964echo "configure:965: checking for $ac_word" >&5 965if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 966 echo $ac_n "(cached) $ac_c" 1>&6 967else 968 if test -n "$CC"; then 969 ac_cv_prog_CC="$CC" # Let the user override the test. 970else 971 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 972 ac_dummy="$PATH" 973 for ac_dir in $ac_dummy; do 974 test -z "$ac_dir" && ac_dir=. 975 if test -f $ac_dir/$ac_word; then 976 ac_cv_prog_CC="cl" 977 break 978 fi 979 done 980 IFS="$ac_save_ifs" 981fi 982fi 983CC="$ac_cv_prog_CC" 984if test -n "$CC"; then 985 echo "$ac_t""$CC" 1>&6 986else 987 echo "$ac_t""no" 1>&6 988fi 989 ;; 990 esac 991 fi 992 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 993fi 994 995echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 996echo "configure:997: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 997 998ac_ext=c 999# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1000ac_cpp='$CPP $CPPFLAGS' 1001ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1002ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1003cross_compiling=$ac_cv_prog_cc_cross 1004 1005cat > conftest.$ac_ext << EOF 1006 1007#line 1008 "configure" 1008#include "confdefs.h" 1009 1010main(){return(0);} 1011EOF 1012if { (eval echo configure:1013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1013 ac_cv_prog_cc_works=yes 1014 # If we can't run a trivial program, we are probably using a cross compiler. 1015 if (./conftest; exit) 2>/dev/null; then 1016 ac_cv_prog_cc_cross=no 1017 else 1018 ac_cv_prog_cc_cross=yes 1019 fi 1020else 1021 echo "configure: failed program was:" >&5 1022 cat conftest.$ac_ext >&5 1023 ac_cv_prog_cc_works=no 1024fi 1025rm -fr conftest* 1026ac_ext=c 1027# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1028ac_cpp='$CPP $CPPFLAGS' 1029ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1030ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1031cross_compiling=$ac_cv_prog_cc_cross 1032 1033echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1034if test $ac_cv_prog_cc_works = no; then 1035 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1036fi 1037echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1038echo "configure:1039: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1039echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1040cross_compiling=$ac_cv_prog_cc_cross 1041 1042echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1043echo "configure:1044: checking whether we are using GNU C" >&5 1044if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 1045 echo $ac_n "(cached) $ac_c" 1>&6 1046else 1047 cat > conftest.c <<EOF 1048#ifdef __GNUC__ 1049 yes; 1050#endif 1051EOF 1052if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1053 ac_cv_prog_gcc=yes 1054else 1055 ac_cv_prog_gcc=no 1056fi 1057fi 1058 1059echo "$ac_t""$ac_cv_prog_gcc" 1>&6 1060 1061if test $ac_cv_prog_gcc = yes; then 1062 GCC=yes 1063else 1064 GCC= 1065fi 1066 1067ac_test_CFLAGS="${CFLAGS+set}" 1068ac_save_CFLAGS="$CFLAGS" 1069CFLAGS= 1070echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1071echo "configure:1072: checking whether ${CC-cc} accepts -g" >&5 1072if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 1073 echo $ac_n "(cached) $ac_c" 1>&6 1074else 1075 echo 'void f(){}' > conftest.c 1076if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1077 ac_cv_prog_cc_g=yes 1078else 1079 ac_cv_prog_cc_g=no 1080fi 1081rm -f conftest* 1082 1083fi 1084 1085echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 1086if test "$ac_test_CFLAGS" = set; then 1087 CFLAGS="$ac_save_CFLAGS" 1088elif test $ac_cv_prog_cc_g = yes; then 1089 if test "$GCC" = yes; then 1090 CFLAGS="-g -O2" 1091 else 1092 CFLAGS="-g" 1093 fi 1094else 1095 if test "$GCC" = yes; then 1096 CFLAGS="-O2" 1097 else 1098 CFLAGS= 1099 fi 1100fi 1101 1102 1103 1104 1105echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6 1106echo "configure:1107: checking for ${CC-cc} option to accept ANSI C" >&5 1107if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then 1108 echo $ac_n "(cached) $ac_c" 1>&6 1109else 1110 am_cv_prog_cc_stdc=no 1111ac_save_CC="$CC" 1112# Don't try gcc -ansi; that turns off useful extensions and 1113# breaks some systems' header files. 1114# AIX -qlanglvl=ansi 1115# Ultrix and OSF/1 -std1 1116# HP-UX -Aa -D_HPUX_SOURCE 1117# SVR4 -Xc -D__EXTENSIONS__ 1118for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 1119do 1120 CC="$ac_save_CC $ac_arg" 1121 cat > conftest.$ac_ext <<EOF 1122#line 1123 "configure" 1123#include "confdefs.h" 1124#include <stdarg.h> 1125#include <stdio.h> 1126#include <sys/types.h> 1127#include <sys/stat.h> 1128/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 1129struct buf { int x; }; 1130FILE * (*rcsopen) (struct buf *, struct stat *, int); 1131static char *e (p, i) 1132 char **p; 1133 int i; 1134{ 1135 return p[i]; 1136} 1137static char *f (char * (*g) (char **, int), char **p, ...) 1138{ 1139 char *s; 1140 va_list v; 1141 va_start (v,p); 1142 s = g (p, va_arg (v,int)); 1143 va_end (v); 1144 return s; 1145} 1146int test (int i, double x); 1147struct s1 {int (*f) (int a);}; 1148struct s2 {int (*f) (double a);}; 1149int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 1150int argc; 1151char **argv; 1152 1153int main() { 1154 1155return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 1156 1157; return 0; } 1158EOF 1159if { (eval echo configure:1160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1160 rm -rf conftest* 1161 am_cv_prog_cc_stdc="$ac_arg"; break 1162else 1163 echo "configure: failed program was:" >&5 1164 cat conftest.$ac_ext >&5 1165fi 1166rm -f conftest* 1167done 1168CC="$ac_save_CC" 1169 1170fi 1171 1172if test -z "$am_cv_prog_cc_stdc"; then 1173 echo "$ac_t""none needed" 1>&6 1174else 1175 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6 1176fi 1177case "x$am_cv_prog_cc_stdc" in 1178 x|xno) ;; 1179 *) CC="$CC $am_cv_prog_cc_stdc" ;; 1180esac 1181 1182ac_header_dirent=no 1183for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h 1184do 1185ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1186echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 1187echo "configure:1188: checking for $ac_hdr that defines DIR" >&5 1188if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then 1189 echo $ac_n "(cached) $ac_c" 1>&6 1190else 1191 cat > conftest.$ac_ext <<EOF 1192#line 1193 "configure" 1193#include "confdefs.h" 1194#include <sys/types.h> 1195#include <$ac_hdr> 1196int main() { 1197DIR *dirp = 0; 1198; return 0; } 1199EOF 1200if { (eval echo configure:1201: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1201 rm -rf conftest* 1202 eval "ac_cv_header_dirent_$ac_safe=yes" 1203else 1204 echo "configure: failed program was:" >&5 1205 cat conftest.$ac_ext >&5 1206 rm -rf conftest* 1207 eval "ac_cv_header_dirent_$ac_safe=no" 1208fi 1209rm -f conftest* 1210fi 1211if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then 1212 echo "$ac_t""yes" 1>&6 1213 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1214 cat >> confdefs.h <<EOF 1215#define $ac_tr_hdr 1 1216EOF 1217 ac_header_dirent=$ac_hdr; break 1218else 1219 echo "$ac_t""no" 1>&6 1220fi 1221done 1222# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 1223if test $ac_header_dirent = dirent.h; then 1224echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 1225echo "configure:1226: checking for opendir in -ldir" >&5 1226ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` 1227if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1228 echo $ac_n "(cached) $ac_c" 1>&6 1229else 1230 ac_save_LIBS="$LIBS" 1231LIBS="-ldir $LIBS" 1232cat > conftest.$ac_ext <<EOF 1233#line 1234 "configure" 1234#include "confdefs.h" 1235/* Override any gcc2 internal prototype to avoid an error. */ 1236/* We use char because int might match the return type of a gcc2 1237 builtin and then its argument prototype would still apply. */ 1238char opendir(); 1239 1240int main() { 1241opendir() 1242; return 0; } 1243EOF 1244if { (eval echo configure:1245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1245 rm -rf conftest* 1246 eval "ac_cv_lib_$ac_lib_var=yes" 1247else 1248 echo "configure: failed program was:" >&5 1249 cat conftest.$ac_ext >&5 1250 rm -rf conftest* 1251 eval "ac_cv_lib_$ac_lib_var=no" 1252fi 1253rm -f conftest* 1254LIBS="$ac_save_LIBS" 1255 1256fi 1257if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1258 echo "$ac_t""yes" 1>&6 1259 LIBS="$LIBS -ldir" 1260else 1261 echo "$ac_t""no" 1>&6 1262fi 1263 1264else 1265echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 1266echo "configure:1267: checking for opendir in -lx" >&5 1267ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` 1268if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1269 echo $ac_n "(cached) $ac_c" 1>&6 1270else 1271 ac_save_LIBS="$LIBS" 1272LIBS="-lx $LIBS" 1273cat > conftest.$ac_ext <<EOF 1274#line 1275 "configure" 1275#include "confdefs.h" 1276/* Override any gcc2 internal prototype to avoid an error. */ 1277/* We use char because int might match the return type of a gcc2 1278 builtin and then its argument prototype would still apply. */ 1279char opendir(); 1280 1281int main() { 1282opendir() 1283; return 0; } 1284EOF 1285if { (eval echo configure:1286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1286 rm -rf conftest* 1287 eval "ac_cv_lib_$ac_lib_var=yes" 1288else 1289 echo "configure: failed program was:" >&5 1290 cat conftest.$ac_ext >&5 1291 rm -rf conftest* 1292 eval "ac_cv_lib_$ac_lib_var=no" 1293fi 1294rm -f conftest* 1295LIBS="$ac_save_LIBS" 1296 1297fi 1298if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1299 echo "$ac_t""yes" 1>&6 1300 LIBS="$LIBS -lx" 1301else 1302 echo "$ac_t""no" 1>&6 1303fi 1304 1305fi 1306 1307echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1308echo "configure:1309: checking how to run the C preprocessor" >&5 1309# On Suns, sometimes $CPP names a directory. 1310if test -n "$CPP" && test -d "$CPP"; then 1311 CPP= 1312fi 1313if test -z "$CPP"; then 1314if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 1315 echo $ac_n "(cached) $ac_c" 1>&6 1316else 1317 # This must be in double quotes, not single quotes, because CPP may get 1318 # substituted into the Makefile and "${CC-cc}" will confuse make. 1319 CPP="${CC-cc} -E" 1320 # On the NeXT, cc -E runs the code through the compiler's parser, 1321 # not just through cpp. 1322 cat > conftest.$ac_ext <<EOF 1323#line 1324 "configure" 1324#include "confdefs.h" 1325#include <assert.h> 1326Syntax Error 1327EOF 1328ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1329{ (eval echo configure:1330: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1330ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1331if test -z "$ac_err"; then 1332 : 1333else 1334 echo "$ac_err" >&5 1335 echo "configure: failed program was:" >&5 1336 cat conftest.$ac_ext >&5 1337 rm -rf conftest* 1338 CPP="${CC-cc} -E -traditional-cpp" 1339 cat > conftest.$ac_ext <<EOF 1340#line 1341 "configure" 1341#include "confdefs.h" 1342#include <assert.h> 1343Syntax Error 1344EOF 1345ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1346{ (eval echo configure:1347: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1347ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1348if test -z "$ac_err"; then 1349 : 1350else 1351 echo "$ac_err" >&5 1352 echo "configure: failed program was:" >&5 1353 cat conftest.$ac_ext >&5 1354 rm -rf conftest* 1355 CPP="${CC-cc} -nologo -E" 1356 cat > conftest.$ac_ext <<EOF 1357#line 1358 "configure" 1358#include "confdefs.h" 1359#include <assert.h> 1360Syntax Error 1361EOF 1362ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1363{ (eval echo configure:1364: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1364ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1365if test -z "$ac_err"; then 1366 : 1367else 1368 echo "$ac_err" >&5 1369 echo "configure: failed program was:" >&5 1370 cat conftest.$ac_ext >&5 1371 rm -rf conftest* 1372 CPP=/lib/cpp 1373fi 1374rm -f conftest* 1375fi 1376rm -f conftest* 1377fi 1378rm -f conftest* 1379 ac_cv_prog_CPP="$CPP" 1380fi 1381 CPP="$ac_cv_prog_CPP" 1382else 1383 ac_cv_prog_CPP="$CPP" 1384fi 1385echo "$ac_t""$CPP" 1>&6 1386 1387echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 1388echo "configure:1389: checking for ANSI C header files" >&5 1389if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 1390 echo $ac_n "(cached) $ac_c" 1>&6 1391else 1392 cat > conftest.$ac_ext <<EOF 1393#line 1394 "configure" 1394#include "confdefs.h" 1395#include <stdlib.h> 1396#include <stdarg.h> 1397#include <string.h> 1398#include <float.h> 1399EOF 1400ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1401{ (eval echo configure:1402: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1402ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1403if test -z "$ac_err"; then 1404 rm -rf conftest* 1405 ac_cv_header_stdc=yes 1406else 1407 echo "$ac_err" >&5 1408 echo "configure: failed program was:" >&5 1409 cat conftest.$ac_ext >&5 1410 rm -rf conftest* 1411 ac_cv_header_stdc=no 1412fi 1413rm -f conftest* 1414 1415if test $ac_cv_header_stdc = yes; then 1416 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 1417cat > conftest.$ac_ext <<EOF 1418#line 1419 "configure" 1419#include "confdefs.h" 1420#include <string.h> 1421EOF 1422if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1423 egrep "memchr" >/dev/null 2>&1; then 1424 : 1425else 1426 rm -rf conftest* 1427 ac_cv_header_stdc=no 1428fi 1429rm -f conftest* 1430 1431fi 1432 1433if test $ac_cv_header_stdc = yes; then 1434 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 1435cat > conftest.$ac_ext <<EOF 1436#line 1437 "configure" 1437#include "confdefs.h" 1438#include <stdlib.h> 1439EOF 1440if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1441 egrep "free" >/dev/null 2>&1; then 1442 : 1443else 1444 rm -rf conftest* 1445 ac_cv_header_stdc=no 1446fi 1447rm -f conftest* 1448 1449fi 1450 1451if test $ac_cv_header_stdc = yes; then 1452 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 1453if test "$cross_compiling" = yes; then 1454 : 1455else 1456 cat > conftest.$ac_ext <<EOF 1457#line 1458 "configure" 1458#include "confdefs.h" 1459#include <ctype.h> 1460#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 1461#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 1462#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 1463int main () { int i; for (i = 0; i < 256; i++) 1464if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 1465exit (0); } 1466 1467EOF 1468if { (eval echo configure:1469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1469then 1470 : 1471else 1472 echo "configure: failed program was:" >&5 1473 cat conftest.$ac_ext >&5 1474 rm -fr conftest* 1475 ac_cv_header_stdc=no 1476fi 1477rm -fr conftest* 1478fi 1479 1480fi 1481fi 1482 1483echo "$ac_t""$ac_cv_header_stdc" 1>&6 1484if test $ac_cv_header_stdc = yes; then 1485 cat >> confdefs.h <<\EOF 1486#define STDC_HEADERS 1 1487EOF 1488 1489fi 1490 1491for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl 1492do 1493# Extract the first word of "$ac_prog", so it can be a program name with args. 1494set dummy $ac_prog; ac_word=$2 1495echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1496echo "configure:1497: checking for $ac_word" >&5 1497if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then 1498 echo $ac_n "(cached) $ac_c" 1>&6 1499else 1500 if test -n "$CXX"; then 1501 ac_cv_prog_CXX="$CXX" # Let the user override the test. 1502else 1503 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1504 ac_dummy="$PATH" 1505 for ac_dir in $ac_dummy; do 1506 test -z "$ac_dir" && ac_dir=. 1507 if test -f $ac_dir/$ac_word; then 1508 ac_cv_prog_CXX="$ac_prog" 1509 break 1510 fi 1511 done 1512 IFS="$ac_save_ifs" 1513fi 1514fi 1515CXX="$ac_cv_prog_CXX" 1516if test -n "$CXX"; then 1517 echo "$ac_t""$CXX" 1>&6 1518else 1519 echo "$ac_t""no" 1>&6 1520fi 1521 1522test -n "$CXX" && break 1523done 1524test -n "$CXX" || CXX="gcc" 1525 1526 1527echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1528echo "configure:1529: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 1529 1530ac_ext=C 1531# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1532ac_cpp='$CXXCPP $CPPFLAGS' 1533ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1534ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1535cross_compiling=$ac_cv_prog_cxx_cross 1536 1537cat > conftest.$ac_ext << EOF 1538 1539#line 1540 "configure" 1540#include "confdefs.h" 1541 1542int main(){return(0);} 1543EOF 1544if { (eval echo configure:1545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1545 ac_cv_prog_cxx_works=yes 1546 # If we can't run a trivial program, we are probably using a cross compiler. 1547 if (./conftest; exit) 2>/dev/null; then 1548 ac_cv_prog_cxx_cross=no 1549 else 1550 ac_cv_prog_cxx_cross=yes 1551 fi 1552else 1553 echo "configure: failed program was:" >&5 1554 cat conftest.$ac_ext >&5 1555 ac_cv_prog_cxx_works=no 1556fi 1557rm -fr conftest* 1558ac_ext=c 1559# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1560ac_cpp='$CPP $CPPFLAGS' 1561ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1562ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1563cross_compiling=$ac_cv_prog_cc_cross 1564 1565echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 1566if test $ac_cv_prog_cxx_works = no; then 1567 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } 1568fi 1569echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1570echo "configure:1571: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 1571echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 1572cross_compiling=$ac_cv_prog_cxx_cross 1573 1574echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 1575echo "configure:1576: checking whether we are using GNU C++" >&5 1576if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then 1577 echo $ac_n "(cached) $ac_c" 1>&6 1578else 1579 cat > conftest.C <<EOF 1580#ifdef __GNUC__ 1581 yes; 1582#endif 1583EOF 1584if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1585 ac_cv_prog_gxx=yes 1586else 1587 ac_cv_prog_gxx=no 1588fi 1589fi 1590 1591echo "$ac_t""$ac_cv_prog_gxx" 1>&6 1592 1593if test $ac_cv_prog_gxx = yes; then 1594 GXX=yes 1595else 1596 GXX= 1597fi 1598 1599ac_test_CXXFLAGS="${CXXFLAGS+set}" 1600ac_save_CXXFLAGS="$CXXFLAGS" 1601CXXFLAGS= 1602echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 1603echo "configure:1604: checking whether ${CXX-g++} accepts -g" >&5 1604if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then 1605 echo $ac_n "(cached) $ac_c" 1>&6 1606else 1607 echo 'void f(){}' > conftest.cc 1608if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then 1609 ac_cv_prog_cxx_g=yes 1610else 1611 ac_cv_prog_cxx_g=no 1612fi 1613rm -f conftest* 1614 1615fi 1616 1617echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 1618if test "$ac_test_CXXFLAGS" = set; then 1619 CXXFLAGS="$ac_save_CXXFLAGS" 1620elif test $ac_cv_prog_cxx_g = yes; then 1621 if test "$GXX" = yes; then 1622 CXXFLAGS="-g -O2" 1623 else 1624 CXXFLAGS="-g" 1625 fi 1626else 1627 if test "$GXX" = yes; then 1628 CXXFLAGS="-O2" 1629 else 1630 CXXFLAGS= 1631 fi 1632fi 1633 1634 1635 1636 echo $ac_n "checking for stlport libraries""... $ac_c" 1>&6 1637echo "configure:1638: checking for stlport libraries" >&5 1638 1639 ac_stlport_lib="no" 1640 1641 ac_enable_stlport="yes" 1642 1643 # Check whether --enable-stlport or --disable-stlport was given. 1644if test "${enable_stlport+set}" = set; then 1645 enableval="$enable_stlport" 1646 ac_enable_stlport="$enableval" 1647fi 1648 1649 if test "$ac_enable_stlport" = "no"; then 1650 1651 1652 have_stlport_inc="no" 1653 else 1654 1655 # Check whether --with-stlport-lib or --without-stlport-lib was given. 1656if test "${with_stlport_lib+set}" = set; then 1657 withval="$with_stlport_lib" 1658 ac_stlport_lib="$withval" 1659fi 1660 1661 1662 1663 if eval "test \"`echo '$''{'ac_cv_lib_stlport_lib'+set}'`\" = set"; then 1664 echo $ac_n "(cached) $ac_c" 1>&6 1665else 1666 1667 1668 1669 if test "$ac_stlport_lib" = "no"; then 1670 1671 stlport_lib_dirs="\ 1672 $STLPORTDIR/lib \ 1673 /usr/lib \ 1674 /usr/local/lib \ 1675 /usr/local/tiit/lib" 1676 1677 for dir in $stlport_lib_dirs; do 1678 if test -r "$dir/libstlport_gcc.so"; then 1679 ac_stlport_lib=$dir 1680 break 1681 fi 1682 done 1683 fi 1684 1685 ac_cv_lib_stlport_lib=$ac_stlport_lib 1686 1687fi 1688 1689 1690 if test "$ac_cv_lib_stlport_lib" = "no"; then 1691 have_stlport_lib="no" 1692 STLPORT_LIBDIR="" 1693 STLPORT_LDFLAGS="" 1694 else 1695 have_stlport_lib="yes" 1696 STLPORT_LIBDIR="$ac_cv_lib_stlport_lib" 1697 STLPORT_LDFLAGS="-L$STLPORT_LIBDIR -lstlport_gcc -lpthread" 1698 fi 1699 1700 1701 1702 fi 1703 1704 echo "$ac_t""$ac_cv_lib_stlport_lib" 1>&6 1705 1706 1707 1708 echo $ac_n "checking for stlport headers""... $ac_c" 1>&6 1709echo "configure:1710: checking for stlport headers" >&5 1710 1711 ac_stlport_includes="no" 1712 ac_enable_stlport="yes" 1713 1714 # Check whether --enable-stlport or --disable-stlport was given. 1715if test "${enable_stlport+set}" = set; then 1716 enableval="$enable_stlport" 1717 ac_enable_stlport="$enableval" 1718fi 1719 1720 if test "$ac_enable_stlport" = "no"; then 1721 1722 1723 have_stlport_inc="no" 1724 else 1725 1726 # Check whether --with-stlport-includes or --without-stlport-includes was given. 1727if test "${with_stlport_includes+set}" = set; then 1728 withval="$with_stlport_includes" 1729 ac_stlport_includes="$withval" 1730fi 1731 1732 1733 1734 if eval "test \"`echo '$''{'ac_cv_header_stlport_includes'+set}'`\" = set"; then 1735 echo $ac_n "(cached) $ac_c" 1>&6 1736else 1737 1738 1739 1740 if test "$ac_stlport_includes" = "no"; then 1741 1742 stlport_include_dirs="\ 1743 $LIBCONFIGDIR/include/stlport \ 1744 /usr/include/stlport \ 1745 /usr/local/include/stlport \ 1746 /usr/local/include/ 1747 /usr/local/stlport/include" 1748 1749 for dir in $stlport_include_dirs; do 1750 if test -r "$dir/algorithm"; then 1751 ac_stlport_includes=$dir 1752 break 1753 fi 1754 done 1755 fi 1756 1757 ac_cv_header_stlport_includes=$ac_stlport_includes 1758 1759fi 1760 1761 1762 if test "$ac_cv_header_stlport_includes" = "no"; then 1763 have_stlport_inc="no" 1764 STLPORT_INCDIR="" 1765 STLPORT_CXXFLAGS="" 1766 else 1767 have_stlport_inc="yes" 1768 STLPORT_INCDIR="$ac_cv_header_stlport_includes" 1769 STLPORT_CXXFLAGS="-I$STLPORT_INCDIR" 1770 fi 1771 1772 1773 1774 1775 fi 1776 1777 echo "$ac_t""$ac_cv_header_stlport_includes" 1>&6 1778 1779 1780 1781echo $ac_n "checking for poptGetContext""... $ac_c" 1>&6 1782echo "configure:1783: checking for poptGetContext" >&5 1783if eval "test \"`echo '$''{'ac_cv_func_poptGetContext'+set}'`\" = set"; then 1784 echo $ac_n "(cached) $ac_c" 1>&6 1785else 1786 cat > conftest.$ac_ext <<EOF 1787#line 1788 "configure" 1788#include "confdefs.h" 1789/* System header to define __stub macros and hopefully few prototypes, 1790 which can conflict with char poptGetContext(); below. */ 1791#include <assert.h> 1792/* Override any gcc2 internal prototype to avoid an error. */ 1793/* We use char because int might match the return type of a gcc2 1794 builtin and then its argument prototype would still apply. */ 1795char poptGetContext(); 1796 1797int main() { 1798 1799/* The GNU C library defines this for functions which it implements 1800 to always fail with ENOSYS. Some functions are actually named 1801 something starting with __ and the normal name is an alias. */ 1802#if defined (__stub_poptGetContext) || defined (__stub___poptGetContext) 1803choke me 1804#else 1805poptGetContext(); 1806#endif 1807 1808; return 0; } 1809EOF 1810if { (eval echo configure:1811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1811 rm -rf conftest* 1812 eval "ac_cv_func_poptGetContext=yes" 1813else 1814 echo "configure: failed program was:" >&5 1815 cat conftest.$ac_ext >&5 1816 rm -rf conftest* 1817 eval "ac_cv_func_poptGetContext=no" 1818fi 1819rm -f conftest* 1820fi 1821 1822if eval "test \"`echo '$ac_cv_func_'poptGetContext`\" = yes"; then 1823 echo "$ac_t""yes" 1>&6 1824 : 1825else 1826 echo "$ac_t""no" 1>&6 1827echo $ac_n "checking for poptGetContext in -lpopt""... $ac_c" 1>&6 1828echo "configure:1829: checking for poptGetContext in -lpopt" >&5 1829ac_lib_var=`echo popt'_'poptGetContext | sed 'y%./+-%__p_%'` 1830if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1831 echo $ac_n "(cached) $ac_c" 1>&6 1832else 1833 ac_save_LIBS="$LIBS" 1834LIBS="-lpopt $LIBS" 1835cat > conftest.$ac_ext <<EOF 1836#line 1837 "configure" 1837#include "confdefs.h" 1838/* Override any gcc2 internal prototype to avoid an error. */ 1839/* We use char because int might match the return type of a gcc2 1840 builtin and then its argument prototype would still apply. */ 1841char poptGetContext(); 1842 1843int main() { 1844poptGetContext() 1845; return 0; } 1846EOF 1847if { (eval echo configure:1848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1848 rm -rf conftest* 1849 eval "ac_cv_lib_$ac_lib_var=yes" 1850else 1851 echo "configure: failed program was:" >&5 1852 cat conftest.$ac_ext >&5 1853 rm -rf conftest* 1854 eval "ac_cv_lib_$ac_lib_var=no" 1855fi 1856rm -f conftest* 1857LIBS="$ac_save_LIBS" 1858 1859fi 1860if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1861 echo "$ac_t""yes" 1>&6 1862 LIBS="${LIBS} -lpopt" 1863else 1864 echo "$ac_t""no" 1>&6 1865echo "*** You need to get libpopt ***";exit 1866 1867fi 1868 1869 1870fi 1871 1872 1873 1874 succeeded=no 1875 1876 if test -z "$PKG_CONFIG"; then 1877 # Extract the first word of "pkg-config", so it can be a program name with args. 1878set dummy pkg-config; ac_word=$2 1879echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1880echo "configure:1881: checking for $ac_word" >&5 1881if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then 1882 echo $ac_n "(cached) $ac_c" 1>&6 1883else 1884 case "$PKG_CONFIG" in 1885 /*) 1886 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 1887 ;; 1888 ?:/*) 1889 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. 1890 ;; 1891 *) 1892 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1893 ac_dummy="$PATH" 1894 for ac_dir in $ac_dummy; do 1895 test -z "$ac_dir" && ac_dir=. 1896 if test -f $ac_dir/$ac_word; then 1897 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" 1898 break 1899 fi 1900 done 1901 IFS="$ac_save_ifs" 1902 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 1903 ;; 1904esac 1905fi 1906PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 1907if test -n "$PKG_CONFIG"; then 1908 echo "$ac_t""$PKG_CONFIG" 1>&6 1909else 1910 echo "$ac_t""no" 1>&6 1911fi 1912 1913 fi 1914 1915 if test "$PKG_CONFIG" = "no" ; then 1916 echo "*** The pkg-config script could not be found. Make sure it is" 1917 echo "*** in your path, or set the PKG_CONFIG environment variable" 1918 echo "*** to the full path to pkg-config." 1919 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." 1920 else 1921 PKG_CONFIG_MIN_VERSION=0.9.0 1922 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 1923 echo $ac_n "checking for glib-2.0 >= 2.0.4 1924 gobject-2.0 >= 2.0.4 1925 gthread-2.0 >= 2.0.4""... $ac_c" 1>&6 1926echo "configure:1927: checking for glib-2.0 >= 2.0.4 1927 gobject-2.0 >= 2.0.4 1928 gthread-2.0 >= 2.0.4" >&5 1929 1930 if $PKG_CONFIG --exists "glib-2.0 >= 2.0.4 1931 gobject-2.0 >= 2.0.4 1932 gthread-2.0 >= 2.0.4" ; then 1933 echo "$ac_t""yes" 1>&6 1934 succeeded=yes 1935 1936 echo $ac_n "checking GLIB_CFLAGS""... $ac_c" 1>&6 1937echo "configure:1938: checking GLIB_CFLAGS" >&5 1938 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.0.4 1939 gobject-2.0 >= 2.0.4 1940 gthread-2.0 >= 2.0.4"` 1941 echo "$ac_t""$GLIB_CFLAGS" 1>&6 1942 1943 echo $ac_n "checking GLIB_LIBS""... $ac_c" 1>&6 1944echo "configure:1945: checking GLIB_LIBS" >&5 1945 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.0.4 1946 gobject-2.0 >= 2.0.4 1947 gthread-2.0 >= 2.0.4"` 1948 echo "$ac_t""$GLIB_LIBS" 1>&6 1949 else 1950 GLIB_CFLAGS="" 1951 GLIB_LIBS="" 1952 ## If we have a custom action on failure, don't print errors, but 1953 ## do set a variable so people can do so. 1954 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.0.4 1955 gobject-2.0 >= 2.0.4 1956 gthread-2.0 >= 2.0.4"` 1957 echo $GLIB_PKG_ERRORS 1958 fi 1959 1960 1961 1962 else 1963 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." 1964 echo "*** See http://www.freedesktop.org/software/pkgconfig" 1965 fi 1966 fi 1967 1968 if test $succeeded = yes; then 1969 : 1970 else 1971 { echo "configure: error: Library requirements (glib-2.0 >= 2.0.4 1972 gobject-2.0 >= 2.0.4 1973 gthread-2.0 >= 2.0.4) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." 1>&2; exit 1; } 1974 fi 1975 1976 1977 1978 1979 1980 succeeded=no 1981 1982 if test -z "$PKG_CONFIG"; then 1983 # Extract the first word of "pkg-config", so it can be a program name with args. 1984set dummy pkg-config; ac_word=$2 1985echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1986echo "configure:1987: checking for $ac_word" >&5 1987if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then 1988 echo $ac_n "(cached) $ac_c" 1>&6 1989else 1990 case "$PKG_CONFIG" in 1991 /*) 1992 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 1993 ;; 1994 ?:/*) 1995 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. 1996 ;; 1997 *) 1998 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1999 ac_dummy="$PATH" 2000 for ac_dir in $ac_dummy; do 2001 test -z "$ac_dir" && ac_dir=. 2002 if test -f $ac_dir/$ac_word; then 2003 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" 2004 break 2005 fi 2006 done 2007 IFS="$ac_save_ifs" 2008 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 2009 ;; 2010esac 2011fi 2012PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 2013if test -n "$PKG_CONFIG"; then 2014 echo "$ac_t""$PKG_CONFIG" 1>&6 2015else 2016 echo "$ac_t""no" 1>&6 2017fi 2018 2019 fi 2020 2021 if test "$PKG_CONFIG" = "no" ; then 2022 echo "*** The pkg-config script could not be found. Make sure it is" 2023 echo "*** in your path, or set the PKG_CONFIG environment variable" 2024 echo "*** to the full path to pkg-config." 2025 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." 2026 else 2027 PKG_CONFIG_MIN_VERSION=0.9.0 2028 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 2029 echo $ac_n "checking for gtk+-2.0 >= 2.0.5""... $ac_c" 1>&6 2030echo "configure:2031: checking for gtk+-2.0 >= 2.0.5" >&5 2031 2032 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.0.5" ; then 2033 echo "$ac_t""yes" 1>&6 2034 succeeded=yes 2035 2036 echo $ac_n "checking GTK_CFLAGS""... $ac_c" 1>&6 2037echo "configure:2038: checking GTK_CFLAGS" >&5 2038 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.0.5"` 2039 echo "$ac_t""$GTK_CFLAGS" 1>&6 2040 2041 echo $ac_n "checking GTK_LIBS""... $ac_c" 1>&6 2042echo "configure:2043: checking GTK_LIBS" >&5 2043 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.0.5"` 2044 echo "$ac_t""$GTK_LIBS" 1>&6 2045 else 2046 GTK_CFLAGS="" 2047 GTK_LIBS="" 2048 ## If we have a custom action on failure, don't print errors, but 2049 ## do set a variable so people can do so. 2050 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.0.5"` 2051 echo $GTK_PKG_ERRORS 2052 fi 2053 2054 2055 2056 else 2057 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." 2058 echo "*** See http://www.freedesktop.org/software/pkgconfig" 2059 fi 2060 fi 2061 2062 if test $succeeded = yes; then 2063 : 2064 else 2065 { echo "configure: error: Library requirements (gtk+-2.0 >= 2.0.5) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." 1>&2; exit 1; } 2066 fi 2067 2068 2069 2070 2071if test "x${datadir}" = 'x${prefix}/share'; then 2072 if test "x${prefix}" = "xNONE"; then 2073 prefix=/usr/local 2074 cat >> confdefs.h <<EOF 2075#define PACKAGE_DATA_DIR "${ac_default_prefix}/share/${PACKAGE}" 2076EOF 2077 2078 PACKAGE_DATA_DIR="${ac_default_prefix}/share/${PACKAGE}" 2079 else 2080 cat >> confdefs.h <<EOF 2081#define PACKAGE_DATA_DIR "${prefix}/share/${PACKAGE}" 2082EOF 2083 2084 PACKAGE_DATA_DIR="${prefix}/share/${PACKAGE}" 2085 fi 2086else 2087 cat >> confdefs.h <<EOF 2088#define PACKAGE_DATA_DIR "${datadir}/${PACKAGE}" 2089EOF 2090 2091 PACKAGE_DATA_DIR="${datadir}/${PACKAGE}" 2092fi 2093 2094 2095PREFIX=${prefix} 2096 2097 2098packagesrcdir=`cd $srcdir && pwd` 2099cat >> confdefs.h <<EOF 2100#define PACKAGE_SOURCE_DIR "${packagesrcdir}" 2101EOF 2102 2103 2104if test "x$GCC" = "xyes"; then 2105 case " $CFLAGS " in 2106 *[\ \ ]-Wall[\ \ ]*) ;; 2107 *) CFLAGS="$CFLAGS -Wall" ;; 2108 esac 2109fi 2110 2111trap '' 1 2 15 2112cat > confcache <<\EOF 2113# This file is a shell script that caches the results of configure 2114# tests run on this system so they can be shared between configure 2115# scripts and configure runs. It is not useful on other systems. 2116# If it contains results you don't want to keep, you may remove or edit it. 2117# 2118# By default, configure uses ./config.cache as the cache file, 2119# creating it if it does not exist already. You can give configure 2120# the --cache-file=FILE option to use a different cache file; that is 2121# what configure does when it calls configure scripts in 2122# subdirectories, so they share the cache. 2123# Giving --cache-file=/dev/null disables caching, for debugging configure. 2124# config.status only pays attention to the cache file if you give it the 2125# --recheck option to rerun configure. 2126# 2127EOF 2128# The following way of writing the cache mishandles newlines in values, 2129# but we know of no workaround that is simple, portable, and efficient. 2130# So, don't put newlines in cache variables' values. 2131# Ultrix sh set writes to stderr and can't be redirected directly, 2132# and sets the high bit in the cache file unless we assign to the vars. 2133(set) 2>&1 | 2134 case `(ac_space=' '; set | grep ac_space) 2>&1` in 2135 *ac_space=\ *) 2136 # `set' does not quote correctly, so add quotes (double-quote substitution 2137 # turns \\\\ into \\, and sed turns \\ into \). 2138 sed -n \ 2139 -e "s/'/'\\\\''/g" \ 2140 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 2141 ;; 2142 *) 2143 # `set' quotes correctly as required by POSIX, so do not add quotes. 2144 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 2145 ;; 2146 esac >> confcache 2147if cmp -s $cache_file confcache; then 2148 : 2149else 2150 if test -w $cache_file; then 2151 echo "updating cache $cache_file" 2152 cat confcache > $cache_file 2153 else 2154 echo "not updating unwritable cache $cache_file" 2155 fi 2156fi 2157rm -f confcache 2158 2159trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 2160 2161test "x$prefix" = xNONE && prefix=$ac_default_prefix 2162# Let make expand exec_prefix. 2163test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 2164 2165# Any assignment to VPATH causes Sun make to only execute 2166# the first set of double-colon rules, so remove it if not needed. 2167# If there is a colon in the path, we need to keep it. 2168if test "x$srcdir" = x.; then 2169 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 2170fi 2171 2172trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 2173 2174DEFS=-DHAVE_CONFIG_H 2175 2176# Without the "./", some shells look in PATH for config.status. 2177: ${CONFIG_STATUS=./config.status} 2178 2179echo creating $CONFIG_STATUS 2180rm -f $CONFIG_STATUS 2181cat > $CONFIG_STATUS <<EOF 2182#! /bin/sh 2183# Generated automatically by configure. 2184# Run this file to recreate the current configuration. 2185# This directory was configured as follows, 2186# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 2187# 2188# $0 $ac_configure_args 2189# 2190# Compiler output produced by configure, useful for debugging 2191# configure, is in ./config.log if it exists. 2192 2193ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 2194for ac_option 2195do 2196 case "\$ac_option" in 2197 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 2198 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 2199 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 2200 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 2201 echo "$CONFIG_STATUS generated by autoconf version 2.13" 2202 exit 0 ;; 2203 -help | --help | --hel | --he | --h) 2204 echo "\$ac_cs_usage"; exit 0 ;; 2205 *) echo "\$ac_cs_usage"; exit 1 ;; 2206 esac 2207done 2208 2209ac_given_srcdir=$srcdir 2210ac_given_INSTALL="$INSTALL" 2211 2212trap 'rm -fr `echo " 2213Makefile 2214src/Makefile 2215config/Makefile 2216gmrun.spec 2217 config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 2218EOF 2219cat >> $CONFIG_STATUS <<EOF 2220 2221# Protect against being on the right side of a sed subst in config.status. 2222sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 2223 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 2224$ac_vpsub 2225$extrasub 2226s%@SHELL@%$SHELL%g 2227s%@CFLAGS@%$CFLAGS%g 2228s%@CPPFLAGS@%$CPPFLAGS%g 2229s%@CXXFLAGS@%$CXXFLAGS%g 2230s%@FFLAGS@%$FFLAGS%g 2231s%@DEFS@%$DEFS%g 2232s%@LDFLAGS@%$LDFLAGS%g 2233s%@LIBS@%$LIBS%g 2234s%@exec_prefix@%$exec_prefix%g 2235s%@prefix@%$prefix%g 2236s%@program_transform_name@%$program_transform_name%g 2237s%@bindir@%$bindir%g 2238s%@sbindir@%$sbindir%g 2239s%@libexecdir@%$libexecdir%g 2240s%@datadir@%$datadir%g 2241s%@sysconfdir@%$sysconfdir%g 2242s%@sharedstatedir@%$sharedstatedir%g 2243s%@localstatedir@%$localstatedir%g 2244s%@libdir@%$libdir%g 2245s%@includedir@%$includedir%g 2246s%@oldincludedir@%$oldincludedir%g 2247s%@infodir@%$infodir%g 2248s%@mandir@%$mandir%g 2249s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 2250s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g 2251s%@INSTALL_DATA@%$INSTALL_DATA%g 2252s%@PACKAGE@%$PACKAGE%g 2253s%@VERSION@%$VERSION%g 2254s%@ACLOCAL@%$ACLOCAL%g 2255s%@AUTOCONF@%$AUTOCONF%g 2256s%@AUTOMAKE@%$AUTOMAKE%g 2257s%@AUTOHEADER@%$AUTOHEADER%g 2258s%@MAKEINFO@%$MAKEINFO%g 2259s%@SET_MAKE@%$SET_MAKE%g 2260s%@CC@%$CC%g 2261s%@CPP@%$CPP%g 2262s%@CXX@%$CXX%g 2263s%@STLPORT_INCDIR@%$STLPORT_INCDIR%g 2264s%@STLPORT_INCLUDES@%$STLPORT_INCLUDES%g 2265s%@STLPORT_LIBDIR@%$STLPORT_LIBDIR%g 2266s%@STLPORT_LDFLAGS@%$STLPORT_LDFLAGS%g 2267s%@STLPORT_CXXFLAGS@%$STLPORT_CXXFLAGS%g 2268s%@PKG_CONFIG@%$PKG_CONFIG%g 2269s%@GLIB_CFLAGS@%$GLIB_CFLAGS%g 2270s%@GLIB_LIBS@%$GLIB_LIBS%g 2271s%@GTK_CFLAGS@%$GTK_CFLAGS%g 2272s%@GTK_LIBS@%$GTK_LIBS%g 2273s%@PACKAGE_DATA_DIR@%$PACKAGE_DATA_DIR%g 2274s%@PREFIX@%$PREFIX%g 2275 2276CEOF 2277EOF 2278 2279cat >> $CONFIG_STATUS <<\EOF 2280 2281# Split the substitutions into bite-sized pieces for seds with 2282# small command number limits, like on Digital OSF/1 and HP-UX. 2283ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 2284ac_file=1 # Number of current file. 2285ac_beg=1 # First line for current file. 2286ac_end=$ac_max_sed_cmds # Line after last line for current file. 2287ac_more_lines=: 2288ac_sed_cmds="" 2289while $ac_more_lines; do 2290 if test $ac_beg -gt 1; then 2291 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 2292 else 2293 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 2294 fi 2295 if test ! -s conftest.s$ac_file; then 2296 ac_more_lines=false 2297 rm -f conftest.s$ac_file 2298 else 2299 if test -z "$ac_sed_cmds"; then 2300 ac_sed_cmds="sed -f conftest.s$ac_file" 2301 else 2302 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 2303 fi 2304 ac_file=`expr $ac_file + 1` 2305 ac_beg=$ac_end 2306 ac_end=`expr $ac_end + $ac_max_sed_cmds` 2307 fi 2308done 2309if test -z "$ac_sed_cmds"; then 2310 ac_sed_cmds=cat 2311fi 2312EOF 2313 2314cat >> $CONFIG_STATUS <<EOF 2315 2316CONFIG_FILES=\${CONFIG_FILES-"Makefile 2317src/Makefile 2318config/Makefile 2319gmrun.spec 2320"} 2321EOF 2322cat >> $CONFIG_STATUS <<\EOF 2323for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 2324 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 2325 case "$ac_file" in 2326 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 2327 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 2328 *) ac_file_in="${ac_file}.in" ;; 2329 esac 2330 2331 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 2332 2333 # Remove last slash and all that follows it. Not all systems have dirname. 2334 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 2335 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 2336 # The file is in a subdirectory. 2337 test ! -d "$ac_dir" && mkdir "$ac_dir" 2338 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 2339 # A "../" for each directory in $ac_dir_suffix. 2340 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 2341 else 2342 ac_dir_suffix= ac_dots= 2343 fi 2344 2345 case "$ac_given_srcdir" in 2346 .) srcdir=. 2347 if test -z "$ac_dots"; then top_srcdir=. 2348 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 2349 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 2350 *) # Relative path. 2351 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 2352 top_srcdir="$ac_dots$ac_given_srcdir" ;; 2353 esac 2354 2355 case "$ac_given_INSTALL" in 2356 [/$]*) INSTALL="$ac_given_INSTALL" ;; 2357 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; 2358 esac 2359 2360 echo creating "$ac_file" 2361 rm -f "$ac_file" 2362 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 2363 case "$ac_file" in 2364 *Makefile*) ac_comsub="1i\\ 2365# $configure_input" ;; 2366 *) ac_comsub= ;; 2367 esac 2368 2369 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 2370 sed -e "$ac_comsub 2371s%@configure_input@%$configure_input%g 2372s%@srcdir@%$srcdir%g 2373s%@top_srcdir@%$top_srcdir%g 2374s%@INSTALL@%$INSTALL%g 2375" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 2376fi; done 2377rm -f conftest.s* 2378 2379# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 2380# NAME is the cpp macro being defined and VALUE is the value it is being given. 2381# 2382# ac_d sets the value in "#define NAME VALUE" lines. 2383ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' 2384ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' 2385ac_dC='\3' 2386ac_dD='%g' 2387# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 2388ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 2389ac_uB='\([ ]\)%\1#\2define\3' 2390ac_uC=' ' 2391ac_uD='\4%g' 2392# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 2393ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 2394ac_eB='$%\1#\2define\3' 2395ac_eC=' ' 2396ac_eD='%g' 2397 2398if test "${CONFIG_HEADERS+set}" != set; then 2399EOF 2400cat >> $CONFIG_STATUS <<EOF 2401 CONFIG_HEADERS="config.h" 2402EOF 2403cat >> $CONFIG_STATUS <<\EOF 2404fi 2405for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 2406 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 2407 case "$ac_file" in 2408 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 2409 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 2410 *) ac_file_in="${ac_file}.in" ;; 2411 esac 2412 2413 echo creating $ac_file 2414 2415 rm -f conftest.frag conftest.in conftest.out 2416 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 2417 cat $ac_file_inputs > conftest.in 2418 2419EOF 2420 2421# Transform confdefs.h into a sed script conftest.vals that substitutes 2422# the proper values into config.h.in to produce config.h. And first: 2423# Protect against being on the right side of a sed subst in config.status. 2424# Protect against being in an unquoted here document in config.status. 2425rm -f conftest.vals 2426cat > conftest.hdr <<\EOF 2427s/[\\&%]/\\&/g 2428s%[\\$`]%\\&%g 2429s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 2430s%ac_d%ac_u%gp 2431s%ac_u%ac_e%gp 2432EOF 2433sed -n -f conftest.hdr confdefs.h > conftest.vals 2434rm -f conftest.hdr 2435 2436# This sed command replaces #undef with comments. This is necessary, for 2437# example, in the case of _POSIX_SOURCE, which is predefined and required 2438# on some systems where configure will not decide to define it. 2439cat >> conftest.vals <<\EOF 2440s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 2441EOF 2442 2443# Break up conftest.vals because some shells have a limit on 2444# the size of here documents, and old seds have small limits too. 2445 2446rm -f conftest.tail 2447while : 2448do 2449 ac_lines=`grep -c . conftest.vals` 2450 # grep -c gives empty output for an empty file on some AIX systems. 2451 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi 2452 # Write a limited-size here document to conftest.frag. 2453 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 2454 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 2455 echo 'CEOF 2456 sed -f conftest.frag conftest.in > conftest.out 2457 rm -f conftest.in 2458 mv conftest.out conftest.in 2459' >> $CONFIG_STATUS 2460 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 2461 rm -f conftest.vals 2462 mv conftest.tail conftest.vals 2463done 2464rm -f conftest.vals 2465 2466cat >> $CONFIG_STATUS <<\EOF 2467 rm -f conftest.frag conftest.h 2468 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 2469 cat conftest.in >> conftest.h 2470 rm -f conftest.in 2471 if cmp -s $ac_file conftest.h 2>/dev/null; then 2472 echo "$ac_file is unchanged" 2473 rm -f conftest.h 2474 else 2475 # Remove last slash and all that follows it. Not all systems have dirname. 2476 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 2477 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 2478 # The file is in a subdirectory. 2479 test ! -d "$ac_dir" && mkdir "$ac_dir" 2480 fi 2481 rm -f $ac_file 2482 mv conftest.h $ac_file 2483 fi 2484fi; done 2485 2486EOF 2487cat >> $CONFIG_STATUS <<EOF 2488 2489 2490EOF 2491cat >> $CONFIG_STATUS <<\EOF 2492test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h 2493 2494exit 0 2495EOF 2496chmod +x $CONFIG_STATUS 2497rm -fr confdefs* $ac_clean_files 2498test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 2499 2500 2501