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-charconv={auto|iconv|libjcode|win|no} specify character conversion" 16ac_help="$ac_help 17 --enable-visualize enable search space visualization on X11 and GTK" 18ac_help="$ac_help 19 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" 20ac_help="$ac_help 21 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" 22ac_help="$ac_help 23 --disable-gtktest Do not try to compile and run a test GTK program" 24ac_help="$ac_help 25 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib" 26ac_help="$ac_help 27 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib" 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=main.c 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 538 539ac_aux_dir= 540for ac_dir in ../support $srcdir/../support; do 541 if test -f $ac_dir/install-sh; then 542 ac_aux_dir=$ac_dir 543 ac_install_sh="$ac_aux_dir/install-sh -c" 544 break 545 elif test -f $ac_dir/install.sh; then 546 ac_aux_dir=$ac_dir 547 ac_install_sh="$ac_aux_dir/install.sh -c" 548 break 549 fi 550done 551if test -z "$ac_aux_dir"; then 552 { echo "configure: error: can not find install-sh or install.sh in ../support $srcdir/../support" 1>&2; exit 1; } 553fi 554ac_config_guess=$ac_aux_dir/config.guess 555ac_config_sub=$ac_aux_dir/config.sub 556ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 557 558 559 560# Check whether --enable-charconv or --disable-charconv was given. 561if test "${enable_charconv+set}" = set; then 562 enableval="$enable_charconv" 563 use_charconv=$enableval 564 565else 566 use_charconv=auto 567fi 568 569 570# visualization (use GTK) 571# Check whether --enable-visualize or --disable-visualize was given. 572if test "${enable_visualize+set}" = set; then 573 enableval="$enable_visualize" 574 if test "$enableval" = yes; then 575 want_gtk=yes 576fi 577 578else 579 want_gtk=no 580fi 581 582 583 584# Make sure we can run config.sub. 585if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : 586else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } 587fi 588 589echo $ac_n "checking host system type""... $ac_c" 1>&6 590echo "configure:591: checking host system type" >&5 591 592host_alias=$host 593case "$host_alias" in 594NONE) 595 case $nonopt in 596 NONE) 597 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : 598 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } 599 fi ;; 600 *) host_alias=$nonopt ;; 601 esac ;; 602esac 603 604host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` 605host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 606host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 607host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 608echo "$ac_t""$host" 1>&6 609 610 611echo $ac_n "checking host-specific optimization flag""... $ac_c" 1>&6 612echo "configure:613: checking host-specific optimization flag" >&5 613if test -z "$CFLAGS" ; then 614 OPTFLAG=../support/cflags.${host_cpu}-${host_vendor}-${host_os} 615 if test -f "$OPTFLAG" ; then 616 . $OPTFLAG 617 echo "$ac_t""$OPTFLAG" 1>&6 618 else 619 echo "$ac_t""no" 1>&6 620 fi 621else 622 echo "$ac_t""skipped" 1>&6 623fi 624 625# Extract the first word of "gcc", so it can be a program name with args. 626set dummy gcc; ac_word=$2 627echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 628echo "configure:629: checking for $ac_word" >&5 629if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 630 echo $ac_n "(cached) $ac_c" 1>&6 631else 632 if test -n "$CC"; then 633 ac_cv_prog_CC="$CC" # Let the user override the test. 634else 635 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 636 ac_dummy="$PATH" 637 for ac_dir in $ac_dummy; do 638 test -z "$ac_dir" && ac_dir=. 639 if test -f $ac_dir/$ac_word; then 640 ac_cv_prog_CC="gcc" 641 break 642 fi 643 done 644 IFS="$ac_save_ifs" 645fi 646fi 647CC="$ac_cv_prog_CC" 648if test -n "$CC"; then 649 echo "$ac_t""$CC" 1>&6 650else 651 echo "$ac_t""no" 1>&6 652fi 653 654if test -z "$CC"; then 655 # Extract the first word of "cc", so it can be a program name with args. 656set dummy cc; ac_word=$2 657echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 658echo "configure:659: checking for $ac_word" >&5 659if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 660 echo $ac_n "(cached) $ac_c" 1>&6 661else 662 if test -n "$CC"; then 663 ac_cv_prog_CC="$CC" # Let the user override the test. 664else 665 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 666 ac_prog_rejected=no 667 ac_dummy="$PATH" 668 for ac_dir in $ac_dummy; do 669 test -z "$ac_dir" && ac_dir=. 670 if test -f $ac_dir/$ac_word; then 671 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 672 ac_prog_rejected=yes 673 continue 674 fi 675 ac_cv_prog_CC="cc" 676 break 677 fi 678 done 679 IFS="$ac_save_ifs" 680if test $ac_prog_rejected = yes; then 681 # We found a bogon in the path, so make sure we never use it. 682 set dummy $ac_cv_prog_CC 683 shift 684 if test $# -gt 0; then 685 # We chose a different compiler from the bogus one. 686 # However, it has the same basename, so the bogon will be chosen 687 # first if we set CC to just the basename; use the full file name. 688 shift 689 set dummy "$ac_dir/$ac_word" "$@" 690 shift 691 ac_cv_prog_CC="$@" 692 fi 693fi 694fi 695fi 696CC="$ac_cv_prog_CC" 697if test -n "$CC"; then 698 echo "$ac_t""$CC" 1>&6 699else 700 echo "$ac_t""no" 1>&6 701fi 702 703 if test -z "$CC"; then 704 case "`uname -s`" in 705 *win32* | *WIN32*) 706 # Extract the first word of "cl", so it can be a program name with args. 707set dummy cl; ac_word=$2 708echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 709echo "configure:710: checking for $ac_word" >&5 710if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 711 echo $ac_n "(cached) $ac_c" 1>&6 712else 713 if test -n "$CC"; then 714 ac_cv_prog_CC="$CC" # Let the user override the test. 715else 716 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 717 ac_dummy="$PATH" 718 for ac_dir in $ac_dummy; do 719 test -z "$ac_dir" && ac_dir=. 720 if test -f $ac_dir/$ac_word; then 721 ac_cv_prog_CC="cl" 722 break 723 fi 724 done 725 IFS="$ac_save_ifs" 726fi 727fi 728CC="$ac_cv_prog_CC" 729if test -n "$CC"; then 730 echo "$ac_t""$CC" 1>&6 731else 732 echo "$ac_t""no" 1>&6 733fi 734 ;; 735 esac 736 fi 737 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 738fi 739 740echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 741echo "configure:742: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 742 743ac_ext=c 744# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 745ac_cpp='$CPP $CPPFLAGS' 746ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 747ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 748cross_compiling=$ac_cv_prog_cc_cross 749 750cat > conftest.$ac_ext << EOF 751 752#line 753 "configure" 753#include "confdefs.h" 754 755main(){return(0);} 756EOF 757if { (eval echo configure:758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 758 ac_cv_prog_cc_works=yes 759 # If we can't run a trivial program, we are probably using a cross compiler. 760 if (./conftest; exit) 2>/dev/null; then 761 ac_cv_prog_cc_cross=no 762 else 763 ac_cv_prog_cc_cross=yes 764 fi 765else 766 echo "configure: failed program was:" >&5 767 cat conftest.$ac_ext >&5 768 ac_cv_prog_cc_works=no 769fi 770rm -fr conftest* 771ac_ext=c 772# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 773ac_cpp='$CPP $CPPFLAGS' 774ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 775ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 776cross_compiling=$ac_cv_prog_cc_cross 777 778echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 779if test $ac_cv_prog_cc_works = no; then 780 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 781fi 782echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 783echo "configure:784: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 784echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 785cross_compiling=$ac_cv_prog_cc_cross 786 787echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 788echo "configure:789: checking whether we are using GNU C" >&5 789if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 790 echo $ac_n "(cached) $ac_c" 1>&6 791else 792 cat > conftest.c <<EOF 793#ifdef __GNUC__ 794 yes; 795#endif 796EOF 797if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:798: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 798 ac_cv_prog_gcc=yes 799else 800 ac_cv_prog_gcc=no 801fi 802fi 803 804echo "$ac_t""$ac_cv_prog_gcc" 1>&6 805 806if test $ac_cv_prog_gcc = yes; then 807 GCC=yes 808else 809 GCC= 810fi 811 812ac_test_CFLAGS="${CFLAGS+set}" 813ac_save_CFLAGS="$CFLAGS" 814CFLAGS= 815echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 816echo "configure:817: checking whether ${CC-cc} accepts -g" >&5 817if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 818 echo $ac_n "(cached) $ac_c" 1>&6 819else 820 echo 'void f(){}' > conftest.c 821if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 822 ac_cv_prog_cc_g=yes 823else 824 ac_cv_prog_cc_g=no 825fi 826rm -f conftest* 827 828fi 829 830echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 831if test "$ac_test_CFLAGS" = set; then 832 CFLAGS="$ac_save_CFLAGS" 833elif test $ac_cv_prog_cc_g = yes; then 834 if test "$GCC" = yes; then 835 CFLAGS="-g -O2" 836 else 837 CFLAGS="-g" 838 fi 839else 840 if test "$GCC" = yes; then 841 CFLAGS="-O2" 842 else 843 CFLAGS= 844 fi 845fi 846 847echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 848echo "configure:849: checking how to run the C preprocessor" >&5 849# On Suns, sometimes $CPP names a directory. 850if test -n "$CPP" && test -d "$CPP"; then 851 CPP= 852fi 853if test -z "$CPP"; then 854if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 855 echo $ac_n "(cached) $ac_c" 1>&6 856else 857 # This must be in double quotes, not single quotes, because CPP may get 858 # substituted into the Makefile and "${CC-cc}" will confuse make. 859 CPP="${CC-cc} -E" 860 # On the NeXT, cc -E runs the code through the compiler's parser, 861 # not just through cpp. 862 cat > conftest.$ac_ext <<EOF 863#line 864 "configure" 864#include "confdefs.h" 865#include <assert.h> 866Syntax Error 867EOF 868ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 869{ (eval echo configure:870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 870ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 871if test -z "$ac_err"; then 872 : 873else 874 echo "$ac_err" >&5 875 echo "configure: failed program was:" >&5 876 cat conftest.$ac_ext >&5 877 rm -rf conftest* 878 CPP="${CC-cc} -E -traditional-cpp" 879 cat > conftest.$ac_ext <<EOF 880#line 881 "configure" 881#include "confdefs.h" 882#include <assert.h> 883Syntax Error 884EOF 885ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 886{ (eval echo configure:887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 887ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 888if test -z "$ac_err"; then 889 : 890else 891 echo "$ac_err" >&5 892 echo "configure: failed program was:" >&5 893 cat conftest.$ac_ext >&5 894 rm -rf conftest* 895 CPP="${CC-cc} -nologo -E" 896 cat > conftest.$ac_ext <<EOF 897#line 898 "configure" 898#include "confdefs.h" 899#include <assert.h> 900Syntax Error 901EOF 902ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 903{ (eval echo configure:904: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 904ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 905if test -z "$ac_err"; then 906 : 907else 908 echo "$ac_err" >&5 909 echo "configure: failed program was:" >&5 910 cat conftest.$ac_ext >&5 911 rm -rf conftest* 912 CPP=/lib/cpp 913fi 914rm -f conftest* 915fi 916rm -f conftest* 917fi 918rm -f conftest* 919 ac_cv_prog_CPP="$CPP" 920fi 921 CPP="$ac_cv_prog_CPP" 922else 923 ac_cv_prog_CPP="$CPP" 924fi 925echo "$ac_t""$CPP" 1>&6 926 927 928# Find a good install program. We prefer a C program (faster), 929# so one script is as good as another. But avoid the broken or 930# incompatible versions: 931# SysV /etc/install, /usr/sbin/install 932# SunOS /usr/etc/install 933# IRIX /sbin/install 934# AIX /bin/install 935# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 936# AFS /usr/afsws/bin/install, which mishandles nonexistent args 937# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 938# ./install, which can be erroneously created by make from ./install.sh. 939echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 940echo "configure:941: checking for a BSD compatible install" >&5 941if test -z "$INSTALL"; then 942if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 943 echo $ac_n "(cached) $ac_c" 1>&6 944else 945 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 946 for ac_dir in $PATH; do 947 # Account for people who put trailing slashes in PATH elements. 948 case "$ac_dir/" in 949 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 950 *) 951 # OSF1 and SCO ODT 3.0 have their own names for install. 952 # Don't use installbsd from OSF since it installs stuff as root 953 # by default. 954 for ac_prog in ginstall scoinst install; do 955 if test -f $ac_dir/$ac_prog; then 956 if test $ac_prog = install && 957 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 958 # AIX install. It has an incompatible calling convention. 959 : 960 else 961 ac_cv_path_install="$ac_dir/$ac_prog -c" 962 break 2 963 fi 964 fi 965 done 966 ;; 967 esac 968 done 969 IFS="$ac_save_IFS" 970 971fi 972 if test "${ac_cv_path_install+set}" = set; then 973 INSTALL="$ac_cv_path_install" 974 else 975 # As a last resort, use the slow shell script. We don't cache a 976 # path for INSTALL within a source directory, because that will 977 # break other packages using the cache if that directory is 978 # removed, or if the path is relative. 979 INSTALL="$ac_install_sh" 980 fi 981fi 982echo "$ac_t""$INSTALL" 1>&6 983 984# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 985# It thinks the first close brace ends the variable substitution. 986test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 987 988test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 989 990test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 991 992# Extract the first word of "rm", so it can be a program name with args. 993set dummy rm; ac_word=$2 994echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 995echo "configure:996: checking for $ac_word" >&5 996if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then 997 echo $ac_n "(cached) $ac_c" 1>&6 998else 999 case "$RM" in 1000 /*) 1001 ac_cv_path_RM="$RM" # Let the user override the test with a path. 1002 ;; 1003 ?:/*) 1004 ac_cv_path_RM="$RM" # Let the user override the test with a dos path. 1005 ;; 1006 *) 1007 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1008 ac_dummy="$PATH" 1009 for ac_dir in $ac_dummy; do 1010 test -z "$ac_dir" && ac_dir=. 1011 if test -f $ac_dir/$ac_word; then 1012 ac_cv_path_RM="$ac_dir/$ac_word" 1013 break 1014 fi 1015 done 1016 IFS="$ac_save_ifs" 1017 ;; 1018esac 1019fi 1020RM="$ac_cv_path_RM" 1021if test -n "$RM"; then 1022 echo "$ac_t""$RM" 1>&6 1023else 1024 echo "$ac_t""no" 1>&6 1025fi 1026 1027 1028 1029if test "$want_gtk" = yes; then 1030 cat >> confdefs.h <<\EOF 1031#define VISUALIZE 1 1032EOF 1033 1034 # Check whether --with-gtk-prefix or --without-gtk-prefix was given. 1035if test "${with_gtk_prefix+set}" = set; then 1036 withval="$with_gtk_prefix" 1037 gtk_config_prefix="$withval" 1038else 1039 gtk_config_prefix="" 1040fi 1041 1042# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. 1043if test "${with_gtk_exec_prefix+set}" = set; then 1044 withval="$with_gtk_exec_prefix" 1045 gtk_config_exec_prefix="$withval" 1046else 1047 gtk_config_exec_prefix="" 1048fi 1049 1050# Check whether --enable-gtktest or --disable-gtktest was given. 1051if test "${enable_gtktest+set}" = set; then 1052 enableval="$enable_gtktest" 1053 : 1054else 1055 enable_gtktest=yes 1056fi 1057 1058 1059 for module in . 1060 do 1061 case "$module" in 1062 gthread) 1063 gtk_config_args="$gtk_config_args gthread" 1064 ;; 1065 esac 1066 done 1067 1068 if test x$gtk_config_exec_prefix != x ; then 1069 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" 1070 if test x${GTK_CONFIG+set} != xset ; then 1071 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config 1072 fi 1073 fi 1074 if test x$gtk_config_prefix != x ; then 1075 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" 1076 if test x${GTK_CONFIG+set} != xset ; then 1077 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config 1078 fi 1079 fi 1080 1081 # Extract the first word of "gtk-config", so it can be a program name with args. 1082set dummy gtk-config; ac_word=$2 1083echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1084echo "configure:1085: checking for $ac_word" >&5 1085if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then 1086 echo $ac_n "(cached) $ac_c" 1>&6 1087else 1088 case "$GTK_CONFIG" in 1089 /*) 1090 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. 1091 ;; 1092 ?:/*) 1093 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. 1094 ;; 1095 *) 1096 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1097 ac_dummy="$PATH" 1098 for ac_dir in $ac_dummy; do 1099 test -z "$ac_dir" && ac_dir=. 1100 if test -f $ac_dir/$ac_word; then 1101 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" 1102 break 1103 fi 1104 done 1105 IFS="$ac_save_ifs" 1106 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" 1107 ;; 1108esac 1109fi 1110GTK_CONFIG="$ac_cv_path_GTK_CONFIG" 1111if test -n "$GTK_CONFIG"; then 1112 echo "$ac_t""$GTK_CONFIG" 1>&6 1113else 1114 echo "$ac_t""no" 1>&6 1115fi 1116 1117 min_gtk_version=0.99.7 1118 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 1119echo "configure:1120: checking for GTK - version >= $min_gtk_version" >&5 1120 no_gtk="" 1121 if test "$GTK_CONFIG" = "no" ; then 1122 no_gtk=yes 1123 else 1124 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` 1125 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` 1126 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ 1127 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 1128 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ 1129 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 1130 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ 1131 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 1132 if test "x$enable_gtktest" = "xyes" ; then 1133 ac_save_CFLAGS="$CFLAGS" 1134 ac_save_LIBS="$LIBS" 1135 CFLAGS="$CFLAGS $GTK_CFLAGS" 1136 LIBS="$GTK_LIBS $LIBS" 1137 rm -f conf.gtktest 1138 if test "$cross_compiling" = yes; then 1139 echo $ac_n "cross compiling; assumed OK... $ac_c" 1140else 1141 cat > conftest.$ac_ext <<EOF 1142#line 1143 "configure" 1143#include "confdefs.h" 1144 1145#include <gtk/gtk.h> 1146#include <stdio.h> 1147#include <stdlib.h> 1148 1149int 1150main () 1151{ 1152 int major, minor, micro; 1153 char *tmp_version; 1154 1155 system ("touch conf.gtktest"); 1156 1157 /* HP/UX 9 (%@#!) writes to sscanf strings */ 1158 tmp_version = g_strdup("$min_gtk_version"); 1159 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 1160 printf("%s, bad version string\n", "$min_gtk_version"); 1161 exit(1); 1162 } 1163 1164 if ((gtk_major_version != $gtk_config_major_version) || 1165 (gtk_minor_version != $gtk_config_minor_version) || 1166 (gtk_micro_version != $gtk_config_micro_version)) 1167 { 1168 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 1169 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, 1170 gtk_major_version, gtk_minor_version, gtk_micro_version); 1171 printf ("*** was found! If gtk-config was correct, then it is best\n"); 1172 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); 1173 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); 1174 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); 1175 printf("*** required on your system.\n"); 1176 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); 1177 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); 1178 printf("*** before re-running configure\n"); 1179 } 1180#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) 1181 else if ((gtk_major_version != GTK_MAJOR_VERSION) || 1182 (gtk_minor_version != GTK_MINOR_VERSION) || 1183 (gtk_micro_version != GTK_MICRO_VERSION)) 1184 { 1185 printf("*** GTK+ header files (version %d.%d.%d) do not match\n", 1186 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); 1187 printf("*** library (version %d.%d.%d)\n", 1188 gtk_major_version, gtk_minor_version, gtk_micro_version); 1189 } 1190#endif /* defined (GTK_MAJOR_VERSION) ... */ 1191 else 1192 { 1193 if ((gtk_major_version > major) || 1194 ((gtk_major_version == major) && (gtk_minor_version > minor)) || 1195 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) 1196 { 1197 return 0; 1198 } 1199 else 1200 { 1201 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", 1202 gtk_major_version, gtk_minor_version, gtk_micro_version); 1203 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", 1204 major, minor, micro); 1205 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); 1206 printf("***\n"); 1207 printf("*** If you have already installed a sufficiently new version, this error\n"); 1208 printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); 1209 printf("*** being found. The easiest way to fix this is to remove the old version\n"); 1210 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); 1211 printf("*** correct copy of gtk-config. (In this case, you will have to\n"); 1212 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); 1213 printf("*** so that the correct libraries are found at run-time))\n"); 1214 } 1215 } 1216 return 1; 1217} 1218 1219EOF 1220if { (eval echo configure:1221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1221then 1222 : 1223else 1224 echo "configure: failed program was:" >&5 1225 cat conftest.$ac_ext >&5 1226 rm -fr conftest* 1227 no_gtk=yes 1228fi 1229rm -fr conftest* 1230fi 1231 1232 CFLAGS="$ac_save_CFLAGS" 1233 LIBS="$ac_save_LIBS" 1234 fi 1235 fi 1236 if test "x$no_gtk" = x ; then 1237 echo "$ac_t""yes" 1>&6 1238 : 1239 else 1240 echo "$ac_t""no" 1>&6 1241 if test "$GTK_CONFIG" = "no" ; then 1242 echo "*** The gtk-config script installed by GTK could not be found" 1243 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" 1244 echo "*** your path, or set the GTK_CONFIG environment variable to the" 1245 echo "*** full path to gtk-config." 1246 else 1247 if test -f conf.gtktest ; then 1248 : 1249 else 1250 echo "*** Could not run GTK test program, checking why..." 1251 CFLAGS="$CFLAGS $GTK_CFLAGS" 1252 LIBS="$LIBS $GTK_LIBS" 1253 cat > conftest.$ac_ext <<EOF 1254#line 1255 "configure" 1255#include "confdefs.h" 1256 1257#include <gtk/gtk.h> 1258#include <stdio.h> 1259 1260int main() { 1261 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); 1262; return 0; } 1263EOF 1264if { (eval echo configure:1265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1265 rm -rf conftest* 1266 echo "*** The test program compiled, but did not run. This usually means" 1267 echo "*** that the run-time linker is not finding GTK or finding the wrong" 1268 echo "*** version of GTK. If it is not finding GTK, you'll need to set your" 1269 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 1270 echo "*** to the installed location Also, make sure you have run ldconfig if that" 1271 echo "*** is required on your system" 1272 echo "***" 1273 echo "*** If you have an old version installed, it is best to remove it, although" 1274 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 1275 echo "***" 1276 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" 1277 echo "*** came with the system with the command" 1278 echo "***" 1279 echo "*** rpm --erase --nodeps gtk gtk-devel" 1280else 1281 echo "configure: failed program was:" >&5 1282 cat conftest.$ac_ext >&5 1283 rm -rf conftest* 1284 echo "*** The test program failed to compile or link. See the file config.log for the" 1285 echo "*** exact error that occured. This usually means GTK was incorrectly installed" 1286 echo "*** or that you have moved GTK since it was installed. In the latter case, you" 1287 echo "*** may want to edit the gtk-config script: $GTK_CONFIG" 1288fi 1289rm -f conftest* 1290 CFLAGS="$ac_save_CFLAGS" 1291 LIBS="$ac_save_LIBS" 1292 fi 1293 fi 1294 GTK_CFLAGS="" 1295 GTK_LIBS="" 1296 { echo "configure: error: gtk not found for visualization" 1>&2; exit 1; } 1297 fi 1298 1299 1300 rm -f conf.gtktest 1301 1302 echo $ac_n "checking for playing capability""... $ac_c" 1>&6 1303echo "configure:1304: checking for playing capability" >&5 1304 case "$host_os" in 1305 linux*) 1306 echo "$ac_t""yes" 1>&6 1307 cat >> confdefs.h <<\EOF 1308#define PLAYCOMMAND "sox -r %d -c 1 -s -w -t .raw -x %s -t ossdsp /dev/dsp" 1309EOF 1310 1311 ;; 1312 solaris2*) 1313 echo "$ac_t""yes" 1>&6 1314 cat >> confdefs.h <<\EOF 1315#define PLAYCOMMAND "sox -r %d -c 1 -s -w -t .raw %s -t sunau /dev/audio" 1316EOF 1317 1318 ;; 1319 *) 1320 echo "$ac_t""no" 1>&6 1321 esac 1322fi 1323 1324echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 1325echo "configure:1326: checking for ANSI C header files" >&5 1326if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 1327 echo $ac_n "(cached) $ac_c" 1>&6 1328else 1329 cat > conftest.$ac_ext <<EOF 1330#line 1331 "configure" 1331#include "confdefs.h" 1332#include <stdlib.h> 1333#include <stdarg.h> 1334#include <string.h> 1335#include <float.h> 1336EOF 1337ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1338{ (eval echo configure:1339: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1339ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1340if test -z "$ac_err"; then 1341 rm -rf conftest* 1342 ac_cv_header_stdc=yes 1343else 1344 echo "$ac_err" >&5 1345 echo "configure: failed program was:" >&5 1346 cat conftest.$ac_ext >&5 1347 rm -rf conftest* 1348 ac_cv_header_stdc=no 1349fi 1350rm -f conftest* 1351 1352if test $ac_cv_header_stdc = yes; then 1353 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 1354cat > conftest.$ac_ext <<EOF 1355#line 1356 "configure" 1356#include "confdefs.h" 1357#include <string.h> 1358EOF 1359if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1360 egrep "memchr" >/dev/null 2>&1; then 1361 : 1362else 1363 rm -rf conftest* 1364 ac_cv_header_stdc=no 1365fi 1366rm -f conftest* 1367 1368fi 1369 1370if test $ac_cv_header_stdc = yes; then 1371 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 1372cat > conftest.$ac_ext <<EOF 1373#line 1374 "configure" 1374#include "confdefs.h" 1375#include <stdlib.h> 1376EOF 1377if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1378 egrep "free" >/dev/null 2>&1; then 1379 : 1380else 1381 rm -rf conftest* 1382 ac_cv_header_stdc=no 1383fi 1384rm -f conftest* 1385 1386fi 1387 1388if test $ac_cv_header_stdc = yes; then 1389 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 1390if test "$cross_compiling" = yes; then 1391 : 1392else 1393 cat > conftest.$ac_ext <<EOF 1394#line 1395 "configure" 1395#include "confdefs.h" 1396#include <ctype.h> 1397#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 1398#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 1399#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 1400int main () { int i; for (i = 0; i < 256; i++) 1401if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 1402exit (0); } 1403 1404EOF 1405if { (eval echo configure:1406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1406then 1407 : 1408else 1409 echo "configure: failed program was:" >&5 1410 cat conftest.$ac_ext >&5 1411 rm -fr conftest* 1412 ac_cv_header_stdc=no 1413fi 1414rm -fr conftest* 1415fi 1416 1417fi 1418fi 1419 1420echo "$ac_t""$ac_cv_header_stdc" 1>&6 1421if test $ac_cv_header_stdc = yes; then 1422 cat >> confdefs.h <<\EOF 1423#define STDC_HEADERS 1 1424EOF 1425 1426fi 1427 1428 1429echo $ac_n "checking for working const""... $ac_c" 1>&6 1430echo "configure:1431: checking for working const" >&5 1431if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 1432 echo $ac_n "(cached) $ac_c" 1>&6 1433else 1434 cat > conftest.$ac_ext <<EOF 1435#line 1436 "configure" 1436#include "confdefs.h" 1437 1438int main() { 1439 1440/* Ultrix mips cc rejects this. */ 1441typedef int charset[2]; const charset x; 1442/* SunOS 4.1.1 cc rejects this. */ 1443char const *const *ccp; 1444char **p; 1445/* NEC SVR4.0.2 mips cc rejects this. */ 1446struct point {int x, y;}; 1447static struct point const zero = {0,0}; 1448/* AIX XL C 1.02.0.0 rejects this. 1449 It does not let you subtract one const X* pointer from another in an arm 1450 of an if-expression whose if-part is not a constant expression */ 1451const char *g = "string"; 1452ccp = &g + (g ? g-g : 0); 1453/* HPUX 7.0 cc rejects these. */ 1454++ccp; 1455p = (char**) ccp; 1456ccp = (char const *const *) p; 1457{ /* SCO 3.2v4 cc rejects this. */ 1458 char *t; 1459 char const *s = 0 ? (char *) 0 : (char const *) 0; 1460 1461 *t++ = 0; 1462} 1463{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 1464 int x[] = {25, 17}; 1465 const int *foo = &x[0]; 1466 ++foo; 1467} 1468{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 1469 typedef const int *iptr; 1470 iptr p = 0; 1471 ++p; 1472} 1473{ /* AIX XL C 1.02.0.0 rejects this saying 1474 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 1475 struct s { int j; const int *ap[3]; }; 1476 struct s *b; b->j = 5; 1477} 1478{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 1479 const int foo = 10; 1480} 1481 1482; return 0; } 1483EOF 1484if { (eval echo configure:1485: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1485 rm -rf conftest* 1486 ac_cv_c_const=yes 1487else 1488 echo "configure: failed program was:" >&5 1489 cat conftest.$ac_ext >&5 1490 rm -rf conftest* 1491 ac_cv_c_const=no 1492fi 1493rm -f conftest* 1494fi 1495 1496echo "$ac_t""$ac_cv_c_const" 1>&6 1497if test $ac_cv_c_const = no; then 1498 cat >> confdefs.h <<\EOF 1499#define const 1500EOF 1501 1502fi 1503 1504 1505 1506if test "$use_charconv" = no; then 1507 CCOBJ="" 1508else 1509 echo $ac_n "checking for charset conversion""... $ac_c" 1>&6 1510echo "configure:1511: checking for charset conversion" >&5 1511 CCOBJ="charconv.o" 1512 case "$host_os" in 1513 mingw*) 1514 cat >> confdefs.h <<\EOF 1515#define USE_WIN32_MULTIBYTE 1 1516EOF 1517 1518 CCOBJ="${CCOBJ} charconv_win32.o" 1519 CCOBJ="${CCOBJ} charconv_libjcode.o libjcode/libjcode.o libjcode/detect.o" 1520 ccdesc="Win32 API + libjcode" 1521 cat >> confdefs.h <<\EOF 1522#define CHARACTER_CONVERSION 1 1523EOF 1524 1525 echo "$ac_t""win32" 1>&6 1526 ;; 1527*) 1528 case "$use_charconv" in 1529 auto) 1530 1531 1532 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. 1533if test "${with_libiconv_prefix+set}" = set; then 1534 withval="$with_libiconv_prefix" 1535 1536 for dir in `echo "$withval" | tr : ' '`; do 1537 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi 1538 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi 1539 done 1540 1541fi 1542 1543 1544 echo $ac_n "checking for iconv""... $ac_c" 1>&6 1545echo "configure:1546: checking for iconv" >&5 1546if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then 1547 echo $ac_n "(cached) $ac_c" 1>&6 1548else 1549 1550 am_cv_func_iconv="no, consider installing GNU libiconv" 1551 am_cv_lib_iconv=no 1552 cat > conftest.$ac_ext <<EOF 1553#line 1554 "configure" 1554#include "confdefs.h" 1555#include <stdlib.h> 1556#include <iconv.h> 1557int main() { 1558iconv_t cd = iconv_open("",""); 1559 iconv(cd,NULL,NULL,NULL,NULL); 1560 iconv_close(cd); 1561; return 0; } 1562EOF 1563if { (eval echo configure:1564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1564 rm -rf conftest* 1565 am_cv_func_iconv=yes 1566else 1567 echo "configure: failed program was:" >&5 1568 cat conftest.$ac_ext >&5 1569fi 1570rm -f conftest* 1571 if test "$am_cv_func_iconv" != yes; then 1572 am_save_LIBS="$LIBS" 1573 LIBS="$LIBS -liconv" 1574 cat > conftest.$ac_ext <<EOF 1575#line 1576 "configure" 1576#include "confdefs.h" 1577#include <stdlib.h> 1578#include <iconv.h> 1579int main() { 1580iconv_t cd = iconv_open("",""); 1581 iconv(cd,NULL,NULL,NULL,NULL); 1582 iconv_close(cd); 1583; return 0; } 1584EOF 1585if { (eval echo configure:1586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1586 rm -rf conftest* 1587 am_cv_lib_iconv=yes 1588 am_cv_func_iconv=yes 1589else 1590 echo "configure: failed program was:" >&5 1591 cat conftest.$ac_ext >&5 1592fi 1593rm -f conftest* 1594 LIBS="$am_save_LIBS" 1595 fi 1596 1597fi 1598 1599echo "$ac_t""$am_cv_func_iconv" 1>&6 1600 if test "$am_cv_func_iconv" = yes; then 1601 cat >> confdefs.h <<\EOF 1602#define HAVE_ICONV 1 1603EOF 1604 1605 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6 1606echo "configure:1607: checking for iconv declaration" >&5 1607 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then 1608 echo $ac_n "(cached) $ac_c" 1>&6 1609else 1610 1611 cat > conftest.$ac_ext <<EOF 1612#line 1613 "configure" 1613#include "confdefs.h" 1614 1615#include <stdlib.h> 1616#include <iconv.h> 1617extern 1618#ifdef __cplusplus 1619"C" 1620#endif 1621#if defined(__STDC__) || defined(__cplusplus) 1622size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 1623#else 1624size_t iconv(); 1625#endif 1626 1627int main() { 1628 1629; return 0; } 1630EOF 1631if { (eval echo configure:1632: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1632 rm -rf conftest* 1633 am_cv_proto_iconv_arg1="" 1634else 1635 echo "configure: failed program was:" >&5 1636 cat conftest.$ac_ext >&5 1637 rm -rf conftest* 1638 am_cv_proto_iconv_arg1="const" 1639fi 1640rm -f conftest* 1641 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" 1642fi 1643 1644 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 1645 echo "$ac_t""${ac_t:- 1646 }$am_cv_proto_iconv" 1>&6 1647 cat >> confdefs.h <<EOF 1648#define ICONV_CONST $am_cv_proto_iconv_arg1 1649EOF 1650 1651 fi 1652 LIBICONV= 1653 if test "$am_cv_lib_iconv" = yes; then 1654 LIBICONV="-liconv" 1655 fi 1656 1657 1658 if test "$am_cv_func_iconv" = yes; then 1659 CCOBJ="${CCOBJ} charconv_iconv.o" 1660 ccdesc="iconv library" 1661 echo "$ac_t""iconv" 1>&6 1662 else 1663 cat >> confdefs.h <<\EOF 1664#define USE_LIBJCODE 1 1665EOF 1666 1667 CCOBJ="${CCOBJ} charconv_libjcode.o libjcode/libjcode.o libjcode/detect.o" 1668 ccdesc="built-in libjcode (Japanese codes only)" 1669 echo "$ac_t""libjcode" 1>&6 1670 fi 1671 cat >> confdefs.h <<\EOF 1672#define CHARACTER_CONVERSION 1 1673EOF 1674 1675 ;; 1676 iconv) 1677 1678 1679 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. 1680if test "${with_libiconv_prefix+set}" = set; then 1681 withval="$with_libiconv_prefix" 1682 1683 for dir in `echo "$withval" | tr : ' '`; do 1684 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi 1685 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi 1686 done 1687 1688fi 1689 1690 1691 echo $ac_n "checking for iconv""... $ac_c" 1>&6 1692echo "configure:1693: checking for iconv" >&5 1693if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then 1694 echo $ac_n "(cached) $ac_c" 1>&6 1695else 1696 1697 am_cv_func_iconv="no, consider installing GNU libiconv" 1698 am_cv_lib_iconv=no 1699 cat > conftest.$ac_ext <<EOF 1700#line 1701 "configure" 1701#include "confdefs.h" 1702#include <stdlib.h> 1703#include <iconv.h> 1704int main() { 1705iconv_t cd = iconv_open("",""); 1706 iconv(cd,NULL,NULL,NULL,NULL); 1707 iconv_close(cd); 1708; return 0; } 1709EOF 1710if { (eval echo configure:1711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1711 rm -rf conftest* 1712 am_cv_func_iconv=yes 1713else 1714 echo "configure: failed program was:" >&5 1715 cat conftest.$ac_ext >&5 1716fi 1717rm -f conftest* 1718 if test "$am_cv_func_iconv" != yes; then 1719 am_save_LIBS="$LIBS" 1720 LIBS="$LIBS -liconv" 1721 cat > conftest.$ac_ext <<EOF 1722#line 1723 "configure" 1723#include "confdefs.h" 1724#include <stdlib.h> 1725#include <iconv.h> 1726int main() { 1727iconv_t cd = iconv_open("",""); 1728 iconv(cd,NULL,NULL,NULL,NULL); 1729 iconv_close(cd); 1730; return 0; } 1731EOF 1732if { (eval echo configure:1733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1733 rm -rf conftest* 1734 am_cv_lib_iconv=yes 1735 am_cv_func_iconv=yes 1736else 1737 echo "configure: failed program was:" >&5 1738 cat conftest.$ac_ext >&5 1739fi 1740rm -f conftest* 1741 LIBS="$am_save_LIBS" 1742 fi 1743 1744fi 1745 1746echo "$ac_t""$am_cv_func_iconv" 1>&6 1747 if test "$am_cv_func_iconv" = yes; then 1748 cat >> confdefs.h <<\EOF 1749#define HAVE_ICONV 1 1750EOF 1751 1752 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6 1753echo "configure:1754: checking for iconv declaration" >&5 1754 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then 1755 echo $ac_n "(cached) $ac_c" 1>&6 1756else 1757 1758 cat > conftest.$ac_ext <<EOF 1759#line 1760 "configure" 1760#include "confdefs.h" 1761 1762#include <stdlib.h> 1763#include <iconv.h> 1764extern 1765#ifdef __cplusplus 1766"C" 1767#endif 1768#if defined(__STDC__) || defined(__cplusplus) 1769size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 1770#else 1771size_t iconv(); 1772#endif 1773 1774int main() { 1775 1776; return 0; } 1777EOF 1778if { (eval echo configure:1779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1779 rm -rf conftest* 1780 am_cv_proto_iconv_arg1="" 1781else 1782 echo "configure: failed program was:" >&5 1783 cat conftest.$ac_ext >&5 1784 rm -rf conftest* 1785 am_cv_proto_iconv_arg1="const" 1786fi 1787rm -f conftest* 1788 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" 1789fi 1790 1791 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 1792 echo "$ac_t""${ac_t:- 1793 }$am_cv_proto_iconv" 1>&6 1794 cat >> confdefs.h <<EOF 1795#define ICONV_CONST $am_cv_proto_iconv_arg1 1796EOF 1797 1798 fi 1799 LIBICONV= 1800 if test "$am_cv_lib_iconv" = yes; then 1801 LIBICONV="-liconv" 1802 fi 1803 1804 1805 if test "$am_cv_func_iconv" = yes; then 1806 CCOBJ="${CCOBJ} charconv_iconv.o" 1807 EXTRALIB="$EXTRALIB $LIBICONV" 1808 cat >> confdefs.h <<\EOF 1809#define CHARACTER_CONVERSION 1 1810EOF 1811 1812 ccdesc="iconv libraru" 1813 echo "$ac_t""iconv" 1>&6 1814 else 1815 CCOBJ="" 1816 ccdesc="no" 1817 { echo "configure: error: iconv function not found!" 1>&2; exit 1; } 1818 echo "$ac_t""no" 1>&6 1819 fi 1820 ;; 1821 libjcode) 1822 cat >> confdefs.h <<\EOF 1823#define USE_LIBJCODE 1 1824EOF 1825 1826 CCOBJ="${CCOBJ} charconv_libjcode.o libjcode/libjcode.o libjcode/detect.o" 1827 ccdesc="built-in libjcode (Japanese codes only)" 1828 cat >> confdefs.h <<\EOF 1829#define CHARACTER_CONVERSION 1 1830EOF 1831 1832 echo "$ac_t""libjcode" 1>&6 1833 ;; 1834 no) 1835 ccdesc="no" 1836 echo "$ac_t""no" 1>&6 1837 ;; 1838 *) 1839 { echo "configure: error: wrong argument for charconv!" 1>&2; exit 1; } 1840 esac 1841 esac 1842fi 1843 1844 1845 1846trap '' 1 2 15 1847cat > confcache <<\EOF 1848# This file is a shell script that caches the results of configure 1849# tests run on this system so they can be shared between configure 1850# scripts and configure runs. It is not useful on other systems. 1851# If it contains results you don't want to keep, you may remove or edit it. 1852# 1853# By default, configure uses ./config.cache as the cache file, 1854# creating it if it does not exist already. You can give configure 1855# the --cache-file=FILE option to use a different cache file; that is 1856# what configure does when it calls configure scripts in 1857# subdirectories, so they share the cache. 1858# Giving --cache-file=/dev/null disables caching, for debugging configure. 1859# config.status only pays attention to the cache file if you give it the 1860# --recheck option to rerun configure. 1861# 1862EOF 1863# The following way of writing the cache mishandles newlines in values, 1864# but we know of no workaround that is simple, portable, and efficient. 1865# So, don't put newlines in cache variables' values. 1866# Ultrix sh set writes to stderr and can't be redirected directly, 1867# and sets the high bit in the cache file unless we assign to the vars. 1868(set) 2>&1 | 1869 case `(ac_space=' '; set | grep ac_space) 2>&1` in 1870 *ac_space=\ *) 1871 # `set' does not quote correctly, so add quotes (double-quote substitution 1872 # turns \\\\ into \\, and sed turns \\ into \). 1873 sed -n \ 1874 -e "s/'/'\\\\''/g" \ 1875 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 1876 ;; 1877 *) 1878 # `set' quotes correctly as required by POSIX, so do not add quotes. 1879 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 1880 ;; 1881 esac >> confcache 1882if cmp -s $cache_file confcache; then 1883 : 1884else 1885 if test -w $cache_file; then 1886 echo "updating cache $cache_file" 1887 cat confcache > $cache_file 1888 else 1889 echo "not updating unwritable cache $cache_file" 1890 fi 1891fi 1892rm -f confcache 1893 1894trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 1895 1896test "x$prefix" = xNONE && prefix=$ac_default_prefix 1897# Let make expand exec_prefix. 1898test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 1899 1900# Any assignment to VPATH causes Sun make to only execute 1901# the first set of double-colon rules, so remove it if not needed. 1902# If there is a colon in the path, we need to keep it. 1903if test "x$srcdir" = x.; then 1904 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 1905fi 1906 1907trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 1908 1909DEFS=-DHAVE_CONFIG_H 1910 1911# Without the "./", some shells look in PATH for config.status. 1912: ${CONFIG_STATUS=./config.status} 1913 1914echo creating $CONFIG_STATUS 1915rm -f $CONFIG_STATUS 1916cat > $CONFIG_STATUS <<EOF 1917#! /bin/sh 1918# Generated automatically by configure. 1919# Run this file to recreate the current configuration. 1920# This directory was configured as follows, 1921# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 1922# 1923# $0 $ac_configure_args 1924# 1925# Compiler output produced by configure, useful for debugging 1926# configure, is in ./config.log if it exists. 1927 1928ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 1929for ac_option 1930do 1931 case "\$ac_option" in 1932 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 1933 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 1934 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 1935 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 1936 echo "$CONFIG_STATUS generated by autoconf version 2.13" 1937 exit 0 ;; 1938 -help | --help | --hel | --he | --h) 1939 echo "\$ac_cs_usage"; exit 0 ;; 1940 *) echo "\$ac_cs_usage"; exit 1 ;; 1941 esac 1942done 1943 1944ac_given_srcdir=$srcdir 1945ac_given_INSTALL="$INSTALL" 1946 1947trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 1948EOF 1949cat >> $CONFIG_STATUS <<EOF 1950 1951# Protect against being on the right side of a sed subst in config.status. 1952sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 1953 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 1954$ac_vpsub 1955$extrasub 1956s%@SHELL@%$SHELL%g 1957s%@CFLAGS@%$CFLAGS%g 1958s%@CPPFLAGS@%$CPPFLAGS%g 1959s%@CXXFLAGS@%$CXXFLAGS%g 1960s%@FFLAGS@%$FFLAGS%g 1961s%@DEFS@%$DEFS%g 1962s%@LDFLAGS@%$LDFLAGS%g 1963s%@LIBS@%$LIBS%g 1964s%@exec_prefix@%$exec_prefix%g 1965s%@prefix@%$prefix%g 1966s%@program_transform_name@%$program_transform_name%g 1967s%@bindir@%$bindir%g 1968s%@sbindir@%$sbindir%g 1969s%@libexecdir@%$libexecdir%g 1970s%@datadir@%$datadir%g 1971s%@sysconfdir@%$sysconfdir%g 1972s%@sharedstatedir@%$sharedstatedir%g 1973s%@localstatedir@%$localstatedir%g 1974s%@libdir@%$libdir%g 1975s%@includedir@%$includedir%g 1976s%@oldincludedir@%$oldincludedir%g 1977s%@infodir@%$infodir%g 1978s%@mandir@%$mandir%g 1979s%@host@%$host%g 1980s%@host_alias@%$host_alias%g 1981s%@host_cpu@%$host_cpu%g 1982s%@host_vendor@%$host_vendor%g 1983s%@host_os@%$host_os%g 1984s%@CC@%$CC%g 1985s%@CPP@%$CPP%g 1986s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 1987s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g 1988s%@INSTALL_DATA@%$INSTALL_DATA%g 1989s%@RM@%$RM%g 1990s%@GTK_CONFIG@%$GTK_CONFIG%g 1991s%@GTK_CFLAGS@%$GTK_CFLAGS%g 1992s%@GTK_LIBS@%$GTK_LIBS%g 1993s%@LIBICONV@%$LIBICONV%g 1994s%@CCOBJ@%$CCOBJ%g 1995 1996CEOF 1997EOF 1998 1999cat >> $CONFIG_STATUS <<\EOF 2000 2001# Split the substitutions into bite-sized pieces for seds with 2002# small command number limits, like on Digital OSF/1 and HP-UX. 2003ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 2004ac_file=1 # Number of current file. 2005ac_beg=1 # First line for current file. 2006ac_end=$ac_max_sed_cmds # Line after last line for current file. 2007ac_more_lines=: 2008ac_sed_cmds="" 2009while $ac_more_lines; do 2010 if test $ac_beg -gt 1; then 2011 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 2012 else 2013 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 2014 fi 2015 if test ! -s conftest.s$ac_file; then 2016 ac_more_lines=false 2017 rm -f conftest.s$ac_file 2018 else 2019 if test -z "$ac_sed_cmds"; then 2020 ac_sed_cmds="sed -f conftest.s$ac_file" 2021 else 2022 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 2023 fi 2024 ac_file=`expr $ac_file + 1` 2025 ac_beg=$ac_end 2026 ac_end=`expr $ac_end + $ac_max_sed_cmds` 2027 fi 2028done 2029if test -z "$ac_sed_cmds"; then 2030 ac_sed_cmds=cat 2031fi 2032EOF 2033 2034cat >> $CONFIG_STATUS <<EOF 2035 2036CONFIG_FILES=\${CONFIG_FILES-"Makefile"} 2037EOF 2038cat >> $CONFIG_STATUS <<\EOF 2039for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 2040 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 2041 case "$ac_file" in 2042 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 2043 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 2044 *) ac_file_in="${ac_file}.in" ;; 2045 esac 2046 2047 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 2048 2049 # Remove last slash and all that follows it. Not all systems have dirname. 2050 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 2051 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 2052 # The file is in a subdirectory. 2053 test ! -d "$ac_dir" && mkdir "$ac_dir" 2054 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 2055 # A "../" for each directory in $ac_dir_suffix. 2056 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 2057 else 2058 ac_dir_suffix= ac_dots= 2059 fi 2060 2061 case "$ac_given_srcdir" in 2062 .) srcdir=. 2063 if test -z "$ac_dots"; then top_srcdir=. 2064 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 2065 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 2066 *) # Relative path. 2067 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 2068 top_srcdir="$ac_dots$ac_given_srcdir" ;; 2069 esac 2070 2071 case "$ac_given_INSTALL" in 2072 [/$]*) INSTALL="$ac_given_INSTALL" ;; 2073 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; 2074 esac 2075 2076 echo creating "$ac_file" 2077 rm -f "$ac_file" 2078 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 2079 case "$ac_file" in 2080 *Makefile*) ac_comsub="1i\\ 2081# $configure_input" ;; 2082 *) ac_comsub= ;; 2083 esac 2084 2085 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 2086 sed -e "$ac_comsub 2087s%@configure_input@%$configure_input%g 2088s%@srcdir@%$srcdir%g 2089s%@top_srcdir@%$top_srcdir%g 2090s%@INSTALL@%$INSTALL%g 2091" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 2092fi; done 2093rm -f conftest.s* 2094 2095# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 2096# NAME is the cpp macro being defined and VALUE is the value it is being given. 2097# 2098# ac_d sets the value in "#define NAME VALUE" lines. 2099ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' 2100ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' 2101ac_dC='\3' 2102ac_dD='%g' 2103# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 2104ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 2105ac_uB='\([ ]\)%\1#\2define\3' 2106ac_uC=' ' 2107ac_uD='\4%g' 2108# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 2109ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 2110ac_eB='$%\1#\2define\3' 2111ac_eC=' ' 2112ac_eD='%g' 2113 2114if test "${CONFIG_HEADERS+set}" != set; then 2115EOF 2116cat >> $CONFIG_STATUS <<EOF 2117 CONFIG_HEADERS="config.h" 2118EOF 2119cat >> $CONFIG_STATUS <<\EOF 2120fi 2121for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 2122 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 2123 case "$ac_file" in 2124 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 2125 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 2126 *) ac_file_in="${ac_file}.in" ;; 2127 esac 2128 2129 echo creating $ac_file 2130 2131 rm -f conftest.frag conftest.in conftest.out 2132 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 2133 cat $ac_file_inputs > conftest.in 2134 2135EOF 2136 2137# Transform confdefs.h into a sed script conftest.vals that substitutes 2138# the proper values into config.h.in to produce config.h. And first: 2139# Protect against being on the right side of a sed subst in config.status. 2140# Protect against being in an unquoted here document in config.status. 2141rm -f conftest.vals 2142cat > conftest.hdr <<\EOF 2143s/[\\&%]/\\&/g 2144s%[\\$`]%\\&%g 2145s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 2146s%ac_d%ac_u%gp 2147s%ac_u%ac_e%gp 2148EOF 2149sed -n -f conftest.hdr confdefs.h > conftest.vals 2150rm -f conftest.hdr 2151 2152# This sed command replaces #undef with comments. This is necessary, for 2153# example, in the case of _POSIX_SOURCE, which is predefined and required 2154# on some systems where configure will not decide to define it. 2155cat >> conftest.vals <<\EOF 2156s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 2157EOF 2158 2159# Break up conftest.vals because some shells have a limit on 2160# the size of here documents, and old seds have small limits too. 2161 2162rm -f conftest.tail 2163while : 2164do 2165 ac_lines=`grep -c . conftest.vals` 2166 # grep -c gives empty output for an empty file on some AIX systems. 2167 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi 2168 # Write a limited-size here document to conftest.frag. 2169 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 2170 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 2171 echo 'CEOF 2172 sed -f conftest.frag conftest.in > conftest.out 2173 rm -f conftest.in 2174 mv conftest.out conftest.in 2175' >> $CONFIG_STATUS 2176 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 2177 rm -f conftest.vals 2178 mv conftest.tail conftest.vals 2179done 2180rm -f conftest.vals 2181 2182cat >> $CONFIG_STATUS <<\EOF 2183 rm -f conftest.frag conftest.h 2184 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 2185 cat conftest.in >> conftest.h 2186 rm -f conftest.in 2187 if cmp -s $ac_file conftest.h 2>/dev/null; then 2188 echo "$ac_file is unchanged" 2189 rm -f conftest.h 2190 else 2191 # Remove last slash and all that follows it. Not all systems have dirname. 2192 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 2193 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 2194 # The file is in a subdirectory. 2195 test ! -d "$ac_dir" && mkdir "$ac_dir" 2196 fi 2197 rm -f $ac_file 2198 mv conftest.h $ac_file 2199 fi 2200fi; done 2201 2202EOF 2203cat >> $CONFIG_STATUS <<EOF 2204 2205EOF 2206cat >> $CONFIG_STATUS <<\EOF 2207 2208exit 0 2209EOF 2210chmod +x $CONFIG_STATUS 2211rm -fr confdefs* $ac_clean_files 2212test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 2213 2214