1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68. 4# 5# 6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 8# Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137if test "x$CONFIG_SHELL" = x; then 138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 139 emulate sh 140 NULLCMD=: 141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 142 # is contrary to our usage. Disable this feature. 143 alias -g '\${1+\"\$@\"}'='\"\$@\"' 144 setopt NO_GLOB_SUBST 145else 146 case \`(set -o) 2>/dev/null\` in #( 147 *posix*) : 148 set -o posix ;; #( 149 *) : 150 ;; 151esac 152fi 153" 154 as_required="as_fn_return () { (exit \$1); } 155as_fn_success () { as_fn_return 0; } 156as_fn_failure () { as_fn_return 1; } 157as_fn_ret_success () { return 0; } 158as_fn_ret_failure () { return 1; } 159 160exitcode=0 161as_fn_success || { exitcode=1; echo as_fn_success failed.; } 162as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 163as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 164as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 165if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 166 167else 168 exitcode=1; echo positional parameters were not saved. 169fi 170test x\$exitcode = x0 || exit 1" 171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 175test \$(( 1 + 1 )) = 2 || exit 1" 176 if (eval "$as_required") 2>/dev/null; then : 177 as_have_required=yes 178else 179 as_have_required=no 180fi 181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 182 183else 184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 185as_found=false 186for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 187do 188 IFS=$as_save_IFS 189 test -z "$as_dir" && as_dir=. 190 as_found=: 191 case $as_dir in #( 192 /*) 193 for as_base in sh bash ksh sh5; do 194 # Try only shells that exist, to save several forks. 195 as_shell=$as_dir/$as_base 196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 198 CONFIG_SHELL=$as_shell as_have_required=yes 199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 200 break 2 201fi 202fi 203 done;; 204 esac 205 as_found=false 206done 207$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 209 CONFIG_SHELL=$SHELL as_have_required=yes 210fi; } 211IFS=$as_save_IFS 212 213 214 if test "x$CONFIG_SHELL" != x; then : 215 # We cannot yet assume a decent shell, so we have to provide a 216 # neutralization value for shells without unset; and this also 217 # works around shells that cannot unset nonexistent variables. 218 # Preserve -v and -x to the replacement shell. 219 BASH_ENV=/dev/null 220 ENV=/dev/null 221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 222 export CONFIG_SHELL 223 case $- in # (((( 224 *v*x* | *x*v* ) as_opts=-vx ;; 225 *v* ) as_opts=-v ;; 226 *x* ) as_opts=-x ;; 227 * ) as_opts= ;; 228 esac 229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 230fi 231 232 if test x$as_have_required = xno; then : 233 $as_echo "$0: This script requires a shell more modern than all" 234 $as_echo "$0: the shells that I found on your system." 235 if test x${ZSH_VERSION+set} = xset ; then 236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 237 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 238 else 239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 240$0: including any error possibly output before this 241$0: message. Then install a modern shell, or manually run 242$0: the script under such a shell if you do have one." 243 fi 244 exit 1 245fi 246fi 247fi 248SHELL=${CONFIG_SHELL-/bin/sh} 249export SHELL 250# Unset more variables known to interfere with behavior of common tools. 251CLICOLOR_FORCE= GREP_OPTIONS= 252unset CLICOLOR_FORCE GREP_OPTIONS 253 254## --------------------- ## 255## M4sh Shell Functions. ## 256## --------------------- ## 257# as_fn_unset VAR 258# --------------- 259# Portably unset VAR. 260as_fn_unset () 261{ 262 { eval $1=; unset $1;} 263} 264as_unset=as_fn_unset 265 266# as_fn_set_status STATUS 267# ----------------------- 268# Set $? to STATUS, without forking. 269as_fn_set_status () 270{ 271 return $1 272} # as_fn_set_status 273 274# as_fn_exit STATUS 275# ----------------- 276# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 277as_fn_exit () 278{ 279 set +e 280 as_fn_set_status $1 281 exit $1 282} # as_fn_exit 283 284# as_fn_mkdir_p 285# ------------- 286# Create "$as_dir" as a directory, including parents if necessary. 287as_fn_mkdir_p () 288{ 289 290 case $as_dir in #( 291 -*) as_dir=./$as_dir;; 292 esac 293 test -d "$as_dir" || eval $as_mkdir_p || { 294 as_dirs= 295 while :; do 296 case $as_dir in #( 297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 298 *) as_qdir=$as_dir;; 299 esac 300 as_dirs="'$as_qdir' $as_dirs" 301 as_dir=`$as_dirname -- "$as_dir" || 302$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 303 X"$as_dir" : 'X\(//\)[^/]' \| \ 304 X"$as_dir" : 'X\(//\)$' \| \ 305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 306$as_echo X"$as_dir" | 307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 308 s//\1/ 309 q 310 } 311 /^X\(\/\/\)[^/].*/{ 312 s//\1/ 313 q 314 } 315 /^X\(\/\/\)$/{ 316 s//\1/ 317 q 318 } 319 /^X\(\/\).*/{ 320 s//\1/ 321 q 322 } 323 s/.*/./; q'` 324 test -d "$as_dir" && break 325 done 326 test -z "$as_dirs" || eval "mkdir $as_dirs" 327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 328 329 330} # as_fn_mkdir_p 331# as_fn_append VAR VALUE 332# ---------------------- 333# Append the text in VALUE to the end of the definition contained in VAR. Take 334# advantage of any shell optimizations that allow amortized linear growth over 335# repeated appends, instead of the typical quadratic growth present in naive 336# implementations. 337if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 338 eval 'as_fn_append () 339 { 340 eval $1+=\$2 341 }' 342else 343 as_fn_append () 344 { 345 eval $1=\$$1\$2 346 } 347fi # as_fn_append 348 349# as_fn_arith ARG... 350# ------------------ 351# Perform arithmetic evaluation on the ARGs, and store the result in the 352# global $as_val. Take advantage of shells that can avoid forks. The arguments 353# must be portable across $(()) and expr. 354if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 355 eval 'as_fn_arith () 356 { 357 as_val=$(( $* )) 358 }' 359else 360 as_fn_arith () 361 { 362 as_val=`expr "$@" || test $? -eq 1` 363 } 364fi # as_fn_arith 365 366 367# as_fn_error STATUS ERROR [LINENO LOG_FD] 368# ---------------------------------------- 369# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 370# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 371# script with STATUS, using 1 if that was 0. 372as_fn_error () 373{ 374 as_status=$1; test $as_status -eq 0 && as_status=1 375 if test "$4"; then 376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 378 fi 379 $as_echo "$as_me: error: $2" >&2 380 as_fn_exit $as_status 381} # as_fn_error 382 383if expr a : '\(a\)' >/dev/null 2>&1 && 384 test "X`expr 00001 : '.*\(...\)'`" = X001; then 385 as_expr=expr 386else 387 as_expr=false 388fi 389 390if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 391 as_basename=basename 392else 393 as_basename=false 394fi 395 396if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 397 as_dirname=dirname 398else 399 as_dirname=false 400fi 401 402as_me=`$as_basename -- "$0" || 403$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 404 X"$0" : 'X\(//\)$' \| \ 405 X"$0" : 'X\(/\)' \| . 2>/dev/null || 406$as_echo X/"$0" | 407 sed '/^.*\/\([^/][^/]*\)\/*$/{ 408 s//\1/ 409 q 410 } 411 /^X\/\(\/\/\)$/{ 412 s//\1/ 413 q 414 } 415 /^X\/\(\/\).*/{ 416 s//\1/ 417 q 418 } 419 s/.*/./; q'` 420 421# Avoid depending upon Character Ranges. 422as_cr_letters='abcdefghijklmnopqrstuvwxyz' 423as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 424as_cr_Letters=$as_cr_letters$as_cr_LETTERS 425as_cr_digits='0123456789' 426as_cr_alnum=$as_cr_Letters$as_cr_digits 427 428 429 as_lineno_1=$LINENO as_lineno_1a=$LINENO 430 as_lineno_2=$LINENO as_lineno_2a=$LINENO 431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 434 sed -n ' 435 p 436 /[$]LINENO/= 437 ' <$as_myself | 438 sed ' 439 s/[$]LINENO.*/&-/ 440 t lineno 441 b 442 :lineno 443 N 444 :loop 445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 446 t loop 447 s/-\n.*// 448 ' >$as_me.lineno && 449 chmod +x "$as_me.lineno" || 450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 451 452 # Don't try to exec as it changes $[0], causing all sort of problems 453 # (the dirname of $[0] is not the place where we might find the 454 # original and so on. Autoconf is especially sensitive to this). 455 . "./$as_me.lineno" 456 # Exit status is that of the last command. 457 exit 458} 459 460ECHO_C= ECHO_N= ECHO_T= 461case `echo -n x` in #((((( 462-n*) 463 case `echo 'xy\c'` in 464 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 465 xy) ECHO_C='\c';; 466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 467 ECHO_T=' ';; 468 esac;; 469*) 470 ECHO_N='-n';; 471esac 472 473rm -f conf$$ conf$$.exe conf$$.file 474if test -d conf$$.dir; then 475 rm -f conf$$.dir/conf$$.file 476else 477 rm -f conf$$.dir 478 mkdir conf$$.dir 2>/dev/null 479fi 480if (echo >conf$$.file) 2>/dev/null; then 481 if ln -s conf$$.file conf$$ 2>/dev/null; then 482 as_ln_s='ln -s' 483 # ... but there are two gotchas: 484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 486 # In both cases, we have to default to `cp -p'. 487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 488 as_ln_s='cp -p' 489 elif ln conf$$.file conf$$ 2>/dev/null; then 490 as_ln_s=ln 491 else 492 as_ln_s='cp -p' 493 fi 494else 495 as_ln_s='cp -p' 496fi 497rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 498rmdir conf$$.dir 2>/dev/null 499 500if mkdir -p . 2>/dev/null; then 501 as_mkdir_p='mkdir -p "$as_dir"' 502else 503 test -d ./-p && rmdir ./-p 504 as_mkdir_p=false 505fi 506 507if test -x / >/dev/null 2>&1; then 508 as_test_x='test -x' 509else 510 if ls -dL / >/dev/null 2>&1; then 511 as_ls_L_option=L 512 else 513 as_ls_L_option= 514 fi 515 as_test_x=' 516 eval sh -c '\'' 517 if test -d "$1"; then 518 test -d "$1/."; 519 else 520 case $1 in #( 521 -*)set "./$1";; 522 esac; 523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 524 ???[sx]*):;;*)false;;esac;fi 525 '\'' sh 526 ' 527fi 528as_executable_p=$as_test_x 529 530# Sed expression to map a string onto a valid CPP name. 531as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 532 533# Sed expression to map a string onto a valid variable name. 534as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 535 536 537test -n "$DJDIR" || exec 7<&0 </dev/null 538exec 6>&1 539 540# Name of the host. 541# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 542# so uname gets run too. 543ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 544 545# 546# Initializations. 547# 548ac_default_prefix=/usr/local 549ac_clean_files= 550ac_config_libobj_dir=. 551LIBOBJS= 552cross_compiling=no 553subdirs= 554MFLAGS= 555MAKEFLAGS= 556 557# Identity of this package. 558PACKAGE_NAME= 559PACKAGE_TARNAME= 560PACKAGE_VERSION= 561PACKAGE_STRING= 562PACKAGE_BUGREPORT= 563PACKAGE_URL= 564 565ac_unique_file="include/config.h.in" 566# Factoring default headers for most tests. 567ac_includes_default="\ 568#include <stdio.h> 569#ifdef HAVE_SYS_TYPES_H 570# include <sys/types.h> 571#endif 572#ifdef HAVE_SYS_STAT_H 573# include <sys/stat.h> 574#endif 575#ifdef STDC_HEADERS 576# include <stdlib.h> 577# include <stddef.h> 578#else 579# ifdef HAVE_STDLIB_H 580# include <stdlib.h> 581# endif 582#endif 583#ifdef HAVE_STRING_H 584# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 585# include <memory.h> 586# endif 587# include <string.h> 588#endif 589#ifdef HAVE_STRINGS_H 590# include <strings.h> 591#endif 592#ifdef HAVE_INTTYPES_H 593# include <inttypes.h> 594#endif 595#ifdef HAVE_STDINT_H 596# include <stdint.h> 597#endif 598#ifdef HAVE_UNISTD_H 599# include <unistd.h> 600#endif" 601 602ac_header_list= 603ac_subst_vars='LTLIBOBJS 604LIBOBJS 605XSANE_ICON 606DLL_PRELOAD 607V_MINOR 608V_MAJOR 609BINPROGS 610INCLUDES 611GIMP_TOOL 612GIMP_CONFIG 613GTK_CONFIG 614GTK_LIBS 615GTK_CFLAGS 616GIMP_PLUGIN_DIR 617GIMP_DATA_DIR 618GIMP_LIBS_NOUI 619GIMP_CFLAGS_NOUI 620GIMP_LIBS 621GIMP_CFLAGS 622PKG_CONFIG 623SANE_PREFIX 624SANE_LIBS 625SANE_CFLAGS 626SANE_LDFLAGS 627SANE_CONFIG 628INTLSUB 629l 630MKINSTALLDIRS 631GT_YES 632GT_NO 633INCLUDE_LOCALE_H 634POSUB 635POFILES 636INTLOBJS 637INTLLIBS 638INTLDEPS 639INSTOBJEXT 640GMOFILES 641DATADIRNAME 642CATOBJEXT 643CATALOGS 644USE_INCLUDED_LIBINTL 645GENCAT 646XGETTEXT 647GMSGFMT 648MSGFMT 649USE_NLS 650RANLIB 651ALLOCA 652SET_MAKE 653INSTALL_DATA 654INSTALL_SCRIPT 655INSTALL_PROGRAM 656EGREP 657GREP 658CPP 659OBJEXT 660EXEEXT 661ac_ct_CC 662CPPFLAGS 663LDFLAGS 664CFLAGS 665CC 666SANE_MAJOR 667XSANE_PACKAGE_VERSION 668VERSION 669PACKAGE 670target_alias 671host_alias 672build_alias 673LIBS 674ECHO_T 675ECHO_N 676ECHO_C 677DEFS 678mandir 679localedir 680libdir 681psdir 682pdfdir 683dvidir 684htmldir 685infodir 686docdir 687oldincludedir 688includedir 689localstatedir 690sharedstatedir 691sysconfdir 692datadir 693datarootdir 694libexecdir 695sbindir 696bindir 697program_transform_name 698prefix 699exec_prefix 700PACKAGE_URL 701PACKAGE_BUGREPORT 702PACKAGE_STRING 703PACKAGE_VERSION 704PACKAGE_TARNAME 705PACKAGE_NAME 706PATH_SEPARATOR 707SHELL' 708ac_subst_files='' 709ac_user_opts=' 710enable_option_checking 711enable_gtk2 712enable_gimp 713enable_gimp2 714enable_jpeg 715enable_png 716enable_tiff 717enable_lcms 718enable_nls 719with_included_gettext 720with_catgets 721enable_sanetest 722enable_gimptest 723enable_gtktest 724with_gtk_prefix 725with_gtk_exec_prefix 726with_gimp_prefix 727with_gimp_exec_prefix 728enable_foo1 729enable_foo2 730' 731 ac_precious_vars='build_alias 732host_alias 733target_alias 734CC 735CFLAGS 736LDFLAGS 737LIBS 738CPPFLAGS 739CPP' 740 741 742# Initialize some variables set by options. 743ac_init_help= 744ac_init_version=false 745ac_unrecognized_opts= 746ac_unrecognized_sep= 747# The variables have the same names as the options, with 748# dashes changed to underlines. 749cache_file=/dev/null 750exec_prefix=NONE 751no_create= 752no_recursion= 753prefix=NONE 754program_prefix=NONE 755program_suffix=NONE 756program_transform_name=s,x,x, 757silent= 758site= 759srcdir= 760verbose= 761x_includes=NONE 762x_libraries=NONE 763 764# Installation directory options. 765# These are left unexpanded so users can "make install exec_prefix=/foo" 766# and all the variables that are supposed to be based on exec_prefix 767# by default will actually change. 768# Use braces instead of parens because sh, perl, etc. also accept them. 769# (The list follows the same order as the GNU Coding Standards.) 770bindir='${exec_prefix}/bin' 771sbindir='${exec_prefix}/sbin' 772libexecdir='${exec_prefix}/libexec' 773datarootdir='${prefix}/share' 774datadir='${datarootdir}' 775sysconfdir='${prefix}/etc' 776sharedstatedir='${prefix}/com' 777localstatedir='${prefix}/var' 778includedir='${prefix}/include' 779oldincludedir='/usr/include' 780docdir='${datarootdir}/doc/${PACKAGE}' 781infodir='${datarootdir}/info' 782htmldir='${docdir}' 783dvidir='${docdir}' 784pdfdir='${docdir}' 785psdir='${docdir}' 786libdir='${exec_prefix}/lib' 787localedir='${datarootdir}/locale' 788mandir='${datarootdir}/man' 789 790ac_prev= 791ac_dashdash= 792for ac_option 793do 794 # If the previous option needs an argument, assign it. 795 if test -n "$ac_prev"; then 796 eval $ac_prev=\$ac_option 797 ac_prev= 798 continue 799 fi 800 801 case $ac_option in 802 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 803 *=) ac_optarg= ;; 804 *) ac_optarg=yes ;; 805 esac 806 807 # Accept the important Cygnus configure options, so we can diagnose typos. 808 809 case $ac_dashdash$ac_option in 810 --) 811 ac_dashdash=yes ;; 812 813 -bindir | --bindir | --bindi | --bind | --bin | --bi) 814 ac_prev=bindir ;; 815 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 816 bindir=$ac_optarg ;; 817 818 -build | --build | --buil | --bui | --bu) 819 ac_prev=build_alias ;; 820 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 821 build_alias=$ac_optarg ;; 822 823 -cache-file | --cache-file | --cache-fil | --cache-fi \ 824 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 825 ac_prev=cache_file ;; 826 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 827 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 828 cache_file=$ac_optarg ;; 829 830 --config-cache | -C) 831 cache_file=config.cache ;; 832 833 -datadir | --datadir | --datadi | --datad) 834 ac_prev=datadir ;; 835 -datadir=* | --datadir=* | --datadi=* | --datad=*) 836 datadir=$ac_optarg ;; 837 838 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 839 | --dataroo | --dataro | --datar) 840 ac_prev=datarootdir ;; 841 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 842 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 843 datarootdir=$ac_optarg ;; 844 845 -disable-* | --disable-*) 846 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 847 # Reject names that are not valid shell variable names. 848 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 849 as_fn_error $? "invalid feature name: $ac_useropt" 850 ac_useropt_orig=$ac_useropt 851 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 852 case $ac_user_opts in 853 *" 854"enable_$ac_useropt" 855"*) ;; 856 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 857 ac_unrecognized_sep=', ';; 858 esac 859 eval enable_$ac_useropt=no ;; 860 861 -docdir | --docdir | --docdi | --doc | --do) 862 ac_prev=docdir ;; 863 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 864 docdir=$ac_optarg ;; 865 866 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 867 ac_prev=dvidir ;; 868 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 869 dvidir=$ac_optarg ;; 870 871 -enable-* | --enable-*) 872 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 873 # Reject names that are not valid shell variable names. 874 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 875 as_fn_error $? "invalid feature name: $ac_useropt" 876 ac_useropt_orig=$ac_useropt 877 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 878 case $ac_user_opts in 879 *" 880"enable_$ac_useropt" 881"*) ;; 882 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 883 ac_unrecognized_sep=', ';; 884 esac 885 eval enable_$ac_useropt=\$ac_optarg ;; 886 887 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 888 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 889 | --exec | --exe | --ex) 890 ac_prev=exec_prefix ;; 891 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 892 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 893 | --exec=* | --exe=* | --ex=*) 894 exec_prefix=$ac_optarg ;; 895 896 -gas | --gas | --ga | --g) 897 # Obsolete; use --with-gas. 898 with_gas=yes ;; 899 900 -help | --help | --hel | --he | -h) 901 ac_init_help=long ;; 902 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 903 ac_init_help=recursive ;; 904 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 905 ac_init_help=short ;; 906 907 -host | --host | --hos | --ho) 908 ac_prev=host_alias ;; 909 -host=* | --host=* | --hos=* | --ho=*) 910 host_alias=$ac_optarg ;; 911 912 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 913 ac_prev=htmldir ;; 914 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 915 | --ht=*) 916 htmldir=$ac_optarg ;; 917 918 -includedir | --includedir | --includedi | --included | --include \ 919 | --includ | --inclu | --incl | --inc) 920 ac_prev=includedir ;; 921 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 922 | --includ=* | --inclu=* | --incl=* | --inc=*) 923 includedir=$ac_optarg ;; 924 925 -infodir | --infodir | --infodi | --infod | --info | --inf) 926 ac_prev=infodir ;; 927 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 928 infodir=$ac_optarg ;; 929 930 -libdir | --libdir | --libdi | --libd) 931 ac_prev=libdir ;; 932 -libdir=* | --libdir=* | --libdi=* | --libd=*) 933 libdir=$ac_optarg ;; 934 935 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 936 | --libexe | --libex | --libe) 937 ac_prev=libexecdir ;; 938 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 939 | --libexe=* | --libex=* | --libe=*) 940 libexecdir=$ac_optarg ;; 941 942 -localedir | --localedir | --localedi | --localed | --locale) 943 ac_prev=localedir ;; 944 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 945 localedir=$ac_optarg ;; 946 947 -localstatedir | --localstatedir | --localstatedi | --localstated \ 948 | --localstate | --localstat | --localsta | --localst | --locals) 949 ac_prev=localstatedir ;; 950 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 951 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 952 localstatedir=$ac_optarg ;; 953 954 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 955 ac_prev=mandir ;; 956 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 957 mandir=$ac_optarg ;; 958 959 -nfp | --nfp | --nf) 960 # Obsolete; use --without-fp. 961 with_fp=no ;; 962 963 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 964 | --no-cr | --no-c | -n) 965 no_create=yes ;; 966 967 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 968 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 969 no_recursion=yes ;; 970 971 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 972 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 973 | --oldin | --oldi | --old | --ol | --o) 974 ac_prev=oldincludedir ;; 975 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 976 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 977 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 978 oldincludedir=$ac_optarg ;; 979 980 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 981 ac_prev=prefix ;; 982 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 983 prefix=$ac_optarg ;; 984 985 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 986 | --program-pre | --program-pr | --program-p) 987 ac_prev=program_prefix ;; 988 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 989 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 990 program_prefix=$ac_optarg ;; 991 992 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 993 | --program-suf | --program-su | --program-s) 994 ac_prev=program_suffix ;; 995 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 996 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 997 program_suffix=$ac_optarg ;; 998 999 -program-transform-name | --program-transform-name \ 1000 | --program-transform-nam | --program-transform-na \ 1001 | --program-transform-n | --program-transform- \ 1002 | --program-transform | --program-transfor \ 1003 | --program-transfo | --program-transf \ 1004 | --program-trans | --program-tran \ 1005 | --progr-tra | --program-tr | --program-t) 1006 ac_prev=program_transform_name ;; 1007 -program-transform-name=* | --program-transform-name=* \ 1008 | --program-transform-nam=* | --program-transform-na=* \ 1009 | --program-transform-n=* | --program-transform-=* \ 1010 | --program-transform=* | --program-transfor=* \ 1011 | --program-transfo=* | --program-transf=* \ 1012 | --program-trans=* | --program-tran=* \ 1013 | --progr-tra=* | --program-tr=* | --program-t=*) 1014 program_transform_name=$ac_optarg ;; 1015 1016 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1017 ac_prev=pdfdir ;; 1018 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1019 pdfdir=$ac_optarg ;; 1020 1021 -psdir | --psdir | --psdi | --psd | --ps) 1022 ac_prev=psdir ;; 1023 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1024 psdir=$ac_optarg ;; 1025 1026 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1027 | -silent | --silent | --silen | --sile | --sil) 1028 silent=yes ;; 1029 1030 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1031 ac_prev=sbindir ;; 1032 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1033 | --sbi=* | --sb=*) 1034 sbindir=$ac_optarg ;; 1035 1036 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1037 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1038 | --sharedst | --shareds | --shared | --share | --shar \ 1039 | --sha | --sh) 1040 ac_prev=sharedstatedir ;; 1041 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1042 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1043 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1044 | --sha=* | --sh=*) 1045 sharedstatedir=$ac_optarg ;; 1046 1047 -site | --site | --sit) 1048 ac_prev=site ;; 1049 -site=* | --site=* | --sit=*) 1050 site=$ac_optarg ;; 1051 1052 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1053 ac_prev=srcdir ;; 1054 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1055 srcdir=$ac_optarg ;; 1056 1057 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1058 | --syscon | --sysco | --sysc | --sys | --sy) 1059 ac_prev=sysconfdir ;; 1060 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1061 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1062 sysconfdir=$ac_optarg ;; 1063 1064 -target | --target | --targe | --targ | --tar | --ta | --t) 1065 ac_prev=target_alias ;; 1066 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1067 target_alias=$ac_optarg ;; 1068 1069 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1070 verbose=yes ;; 1071 1072 -version | --version | --versio | --versi | --vers | -V) 1073 ac_init_version=: ;; 1074 1075 -with-* | --with-*) 1076 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1077 # Reject names that are not valid shell variable names. 1078 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1079 as_fn_error $? "invalid package name: $ac_useropt" 1080 ac_useropt_orig=$ac_useropt 1081 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1082 case $ac_user_opts in 1083 *" 1084"with_$ac_useropt" 1085"*) ;; 1086 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1087 ac_unrecognized_sep=', ';; 1088 esac 1089 eval with_$ac_useropt=\$ac_optarg ;; 1090 1091 -without-* | --without-*) 1092 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1093 # Reject names that are not valid shell variable names. 1094 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1095 as_fn_error $? "invalid package name: $ac_useropt" 1096 ac_useropt_orig=$ac_useropt 1097 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1098 case $ac_user_opts in 1099 *" 1100"with_$ac_useropt" 1101"*) ;; 1102 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1103 ac_unrecognized_sep=', ';; 1104 esac 1105 eval with_$ac_useropt=no ;; 1106 1107 --x) 1108 # Obsolete; use --with-x. 1109 with_x=yes ;; 1110 1111 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1112 | --x-incl | --x-inc | --x-in | --x-i) 1113 ac_prev=x_includes ;; 1114 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1115 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1116 x_includes=$ac_optarg ;; 1117 1118 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1119 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1120 ac_prev=x_libraries ;; 1121 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1122 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1123 x_libraries=$ac_optarg ;; 1124 1125 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1126Try \`$0 --help' for more information" 1127 ;; 1128 1129 *=*) 1130 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1131 # Reject names that are not valid shell variable names. 1132 case $ac_envvar in #( 1133 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1134 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1135 esac 1136 eval $ac_envvar=\$ac_optarg 1137 export $ac_envvar ;; 1138 1139 *) 1140 # FIXME: should be removed in autoconf 3.0. 1141 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1142 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1143 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1144 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1145 ;; 1146 1147 esac 1148done 1149 1150if test -n "$ac_prev"; then 1151 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1152 as_fn_error $? "missing argument to $ac_option" 1153fi 1154 1155if test -n "$ac_unrecognized_opts"; then 1156 case $enable_option_checking in 1157 no) ;; 1158 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1159 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1160 esac 1161fi 1162 1163# Check all directory arguments for consistency. 1164for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1165 datadir sysconfdir sharedstatedir localstatedir includedir \ 1166 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1167 libdir localedir mandir 1168do 1169 eval ac_val=\$$ac_var 1170 # Remove trailing slashes. 1171 case $ac_val in 1172 */ ) 1173 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1174 eval $ac_var=\$ac_val;; 1175 esac 1176 # Be sure to have absolute directory names. 1177 case $ac_val in 1178 [\\/$]* | ?:[\\/]* ) continue;; 1179 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1180 esac 1181 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1182done 1183 1184# There might be people who depend on the old broken behavior: `$host' 1185# used to hold the argument of --host etc. 1186# FIXME: To remove some day. 1187build=$build_alias 1188host=$host_alias 1189target=$target_alias 1190 1191# FIXME: To remove some day. 1192if test "x$host_alias" != x; then 1193 if test "x$build_alias" = x; then 1194 cross_compiling=maybe 1195 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1196 If a cross compiler is detected then cross compile mode will be used" >&2 1197 elif test "x$build_alias" != "x$host_alias"; then 1198 cross_compiling=yes 1199 fi 1200fi 1201 1202ac_tool_prefix= 1203test -n "$host_alias" && ac_tool_prefix=$host_alias- 1204 1205test "$silent" = yes && exec 6>/dev/null 1206 1207 1208ac_pwd=`pwd` && test -n "$ac_pwd" && 1209ac_ls_di=`ls -di .` && 1210ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1211 as_fn_error $? "working directory cannot be determined" 1212test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1213 as_fn_error $? "pwd does not report name of working directory" 1214 1215 1216# Find the source files, if location was not specified. 1217if test -z "$srcdir"; then 1218 ac_srcdir_defaulted=yes 1219 # Try the directory containing this script, then the parent directory. 1220 ac_confdir=`$as_dirname -- "$as_myself" || 1221$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1222 X"$as_myself" : 'X\(//\)[^/]' \| \ 1223 X"$as_myself" : 'X\(//\)$' \| \ 1224 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1225$as_echo X"$as_myself" | 1226 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1227 s//\1/ 1228 q 1229 } 1230 /^X\(\/\/\)[^/].*/{ 1231 s//\1/ 1232 q 1233 } 1234 /^X\(\/\/\)$/{ 1235 s//\1/ 1236 q 1237 } 1238 /^X\(\/\).*/{ 1239 s//\1/ 1240 q 1241 } 1242 s/.*/./; q'` 1243 srcdir=$ac_confdir 1244 if test ! -r "$srcdir/$ac_unique_file"; then 1245 srcdir=.. 1246 fi 1247else 1248 ac_srcdir_defaulted=no 1249fi 1250if test ! -r "$srcdir/$ac_unique_file"; then 1251 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1252 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1253fi 1254ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1255ac_abs_confdir=`( 1256 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1257 pwd)` 1258# When building in place, set srcdir=. 1259if test "$ac_abs_confdir" = "$ac_pwd"; then 1260 srcdir=. 1261fi 1262# Remove unnecessary trailing slashes from srcdir. 1263# Double slashes in file names in object file debugging info 1264# mess up M-x gdb in Emacs. 1265case $srcdir in 1266*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1267esac 1268for ac_var in $ac_precious_vars; do 1269 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1270 eval ac_env_${ac_var}_value=\$${ac_var} 1271 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1272 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1273done 1274 1275# 1276# Report the --help message. 1277# 1278if test "$ac_init_help" = "long"; then 1279 # Omit some internal or obsolete options to make the list less imposing. 1280 # This message is too long to be a string in the A/UX 3.1 sh. 1281 cat <<_ACEOF 1282\`configure' configures this package to adapt to many kinds of systems. 1283 1284Usage: $0 [OPTION]... [VAR=VALUE]... 1285 1286To assign environment variables (e.g., CC, CFLAGS...), specify them as 1287VAR=VALUE. See below for descriptions of some of the useful variables. 1288 1289Defaults for the options are specified in brackets. 1290 1291Configuration: 1292 -h, --help display this help and exit 1293 --help=short display options specific to this package 1294 --help=recursive display the short help of all the included packages 1295 -V, --version display version information and exit 1296 -q, --quiet, --silent do not print \`checking ...' messages 1297 --cache-file=FILE cache test results in FILE [disabled] 1298 -C, --config-cache alias for \`--cache-file=config.cache' 1299 -n, --no-create do not create output files 1300 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1301 1302Installation directories: 1303 --prefix=PREFIX install architecture-independent files in PREFIX 1304 [$ac_default_prefix] 1305 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1306 [PREFIX] 1307 1308By default, \`make install' will install all the files in 1309\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1310an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1311for instance \`--prefix=\$HOME'. 1312 1313For better control, use the options below. 1314 1315Fine tuning of the installation directories: 1316 --bindir=DIR user executables [EPREFIX/bin] 1317 --sbindir=DIR system admin executables [EPREFIX/sbin] 1318 --libexecdir=DIR program executables [EPREFIX/libexec] 1319 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1320 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1321 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1322 --libdir=DIR object code libraries [EPREFIX/lib] 1323 --includedir=DIR C header files [PREFIX/include] 1324 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1325 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1326 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1327 --infodir=DIR info documentation [DATAROOTDIR/info] 1328 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1329 --mandir=DIR man documentation [DATAROOTDIR/man] 1330 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1331 --htmldir=DIR html documentation [DOCDIR] 1332 --dvidir=DIR dvi documentation [DOCDIR] 1333 --pdfdir=DIR pdf documentation [DOCDIR] 1334 --psdir=DIR ps documentation [DOCDIR] 1335_ACEOF 1336 1337 cat <<\_ACEOF 1338_ACEOF 1339fi 1340 1341if test -n "$ac_init_help"; then 1342 1343 cat <<\_ACEOF 1344 1345Optional Features: 1346 --disable-option-checking ignore unrecognized --enable/--with options 1347 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1348 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1349 --disable-gtk2 do not use GTK+-2.0, if available use GTK+-1.2 1350 --disable-gimp do not include GIMP plugin mode 1351 --disable-gimp2 do not use GIMP-2.0, use GIMP-1.x if available 1352 --disable-jpeg do not include JPEG support 1353 --disable-png do not include PNG support 1354 --disable-tiff do not include TIFF support 1355 --disable-lcms do not include LCMS support 1356 --disable-nls do not use Native Language Support 1357 --disable-sanetest Do not try to compile and run a test SANE program 1358 --disable-gimptest do not try to compile and run a test GIMP program 1359 --disable-gtktest do not try to compile and run a test GTK+ program 1360 1361Used environment variables that can be set by user: 1362 CFLAGS, CPPFLAGS, LDFLAGS, LIBS 1363 1364To add include or library paths call: 1365 env CPPFLAGS=\"-I/path/to/foo/include\" LDFLAGS=\"-L/path/to/foo/libs\" ./configure 1366 1367Optional Packages: 1368 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1369 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1370 --with-included-gettext use the GNU gettext library included here 1371 --with-catgets use catgets functions if available 1372 --with-gtk-prefix=PFX Prefix where GTK is installed (optional) 1373 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) 1374 --with-gimp-prefix=PFX Prefix where GIMP is installed (optional) 1375 --with-gimp-exec-prefix=PFX Exec prefix where GIMP is installed (optional) 1376 1377Some influential environment variables: 1378 CC C compiler command 1379 CFLAGS C compiler flags 1380 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1381 nonstandard directory <lib dir> 1382 LIBS libraries to pass to the linker, e.g. -l<library> 1383 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1384 you have headers in a nonstandard directory <include dir> 1385 CPP C preprocessor 1386 1387Use these variables to override the choices made by `configure' or to help 1388it to find libraries and programs with nonstandard names/locations. 1389 1390Report bugs to the package provider. 1391_ACEOF 1392ac_status=$? 1393fi 1394 1395if test "$ac_init_help" = "recursive"; then 1396 # If there are subdirs, report their specific --help. 1397 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1398 test -d "$ac_dir" || 1399 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1400 continue 1401 ac_builddir=. 1402 1403case "$ac_dir" in 1404.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1405*) 1406 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1407 # A ".." for each directory in $ac_dir_suffix. 1408 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1409 case $ac_top_builddir_sub in 1410 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1411 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1412 esac ;; 1413esac 1414ac_abs_top_builddir=$ac_pwd 1415ac_abs_builddir=$ac_pwd$ac_dir_suffix 1416# for backward compatibility: 1417ac_top_builddir=$ac_top_build_prefix 1418 1419case $srcdir in 1420 .) # We are building in place. 1421 ac_srcdir=. 1422 ac_top_srcdir=$ac_top_builddir_sub 1423 ac_abs_top_srcdir=$ac_pwd ;; 1424 [\\/]* | ?:[\\/]* ) # Absolute name. 1425 ac_srcdir=$srcdir$ac_dir_suffix; 1426 ac_top_srcdir=$srcdir 1427 ac_abs_top_srcdir=$srcdir ;; 1428 *) # Relative name. 1429 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1430 ac_top_srcdir=$ac_top_build_prefix$srcdir 1431 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1432esac 1433ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1434 1435 cd "$ac_dir" || { ac_status=$?; continue; } 1436 # Check for guested configure. 1437 if test -f "$ac_srcdir/configure.gnu"; then 1438 echo && 1439 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1440 elif test -f "$ac_srcdir/configure"; then 1441 echo && 1442 $SHELL "$ac_srcdir/configure" --help=recursive 1443 else 1444 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1445 fi || ac_status=$? 1446 cd "$ac_pwd" || { ac_status=$?; break; } 1447 done 1448fi 1449 1450test -n "$ac_init_help" && exit $ac_status 1451if $ac_init_version; then 1452 cat <<\_ACEOF 1453configure 1454generated by GNU Autoconf 2.68 1455 1456Copyright (C) 2010 Free Software Foundation, Inc. 1457This configure script is free software; the Free Software Foundation 1458gives unlimited permission to copy, distribute and modify it. 1459_ACEOF 1460 exit 1461fi 1462 1463## ------------------------ ## 1464## Autoconf initialization. ## 1465## ------------------------ ## 1466 1467# ac_fn_c_try_compile LINENO 1468# -------------------------- 1469# Try to compile conftest.$ac_ext, and return whether this succeeded. 1470ac_fn_c_try_compile () 1471{ 1472 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1473 rm -f conftest.$ac_objext 1474 if { { ac_try="$ac_compile" 1475case "(($ac_try" in 1476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1477 *) ac_try_echo=$ac_try;; 1478esac 1479eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1480$as_echo "$ac_try_echo"; } >&5 1481 (eval "$ac_compile") 2>conftest.err 1482 ac_status=$? 1483 if test -s conftest.err; then 1484 grep -v '^ *+' conftest.err >conftest.er1 1485 cat conftest.er1 >&5 1486 mv -f conftest.er1 conftest.err 1487 fi 1488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1489 test $ac_status = 0; } && { 1490 test -z "$ac_c_werror_flag" || 1491 test ! -s conftest.err 1492 } && test -s conftest.$ac_objext; then : 1493 ac_retval=0 1494else 1495 $as_echo "$as_me: failed program was:" >&5 1496sed 's/^/| /' conftest.$ac_ext >&5 1497 1498 ac_retval=1 1499fi 1500 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1501 as_fn_set_status $ac_retval 1502 1503} # ac_fn_c_try_compile 1504 1505# ac_fn_c_try_cpp LINENO 1506# ---------------------- 1507# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1508ac_fn_c_try_cpp () 1509{ 1510 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1511 if { { ac_try="$ac_cpp conftest.$ac_ext" 1512case "(($ac_try" in 1513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1514 *) ac_try_echo=$ac_try;; 1515esac 1516eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1517$as_echo "$ac_try_echo"; } >&5 1518 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1519 ac_status=$? 1520 if test -s conftest.err; then 1521 grep -v '^ *+' conftest.err >conftest.er1 1522 cat conftest.er1 >&5 1523 mv -f conftest.er1 conftest.err 1524 fi 1525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1526 test $ac_status = 0; } > conftest.i && { 1527 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1528 test ! -s conftest.err 1529 }; then : 1530 ac_retval=0 1531else 1532 $as_echo "$as_me: failed program was:" >&5 1533sed 's/^/| /' conftest.$ac_ext >&5 1534 1535 ac_retval=1 1536fi 1537 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1538 as_fn_set_status $ac_retval 1539 1540} # ac_fn_c_try_cpp 1541 1542# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1543# ------------------------------------------------------- 1544# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1545# the include files in INCLUDES and setting the cache variable VAR 1546# accordingly. 1547ac_fn_c_check_header_mongrel () 1548{ 1549 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1550 if eval \${$3+:} false; then : 1551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1552$as_echo_n "checking for $2... " >&6; } 1553if eval \${$3+:} false; then : 1554 $as_echo_n "(cached) " >&6 1555fi 1556eval ac_res=\$$3 1557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1558$as_echo "$ac_res" >&6; } 1559else 1560 # Is the header compilable? 1561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1562$as_echo_n "checking $2 usability... " >&6; } 1563cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1564/* end confdefs.h. */ 1565$4 1566#include <$2> 1567_ACEOF 1568if ac_fn_c_try_compile "$LINENO"; then : 1569 ac_header_compiler=yes 1570else 1571 ac_header_compiler=no 1572fi 1573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1575$as_echo "$ac_header_compiler" >&6; } 1576 1577# Is the header present? 1578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1579$as_echo_n "checking $2 presence... " >&6; } 1580cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1581/* end confdefs.h. */ 1582#include <$2> 1583_ACEOF 1584if ac_fn_c_try_cpp "$LINENO"; then : 1585 ac_header_preproc=yes 1586else 1587 ac_header_preproc=no 1588fi 1589rm -f conftest.err conftest.i conftest.$ac_ext 1590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1591$as_echo "$ac_header_preproc" >&6; } 1592 1593# So? What about this header? 1594case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1595 yes:no: ) 1596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1597$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1599$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1600 ;; 1601 no:yes:* ) 1602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1603$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1605$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1607$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1609$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1611$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1612 ;; 1613esac 1614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1615$as_echo_n "checking for $2... " >&6; } 1616if eval \${$3+:} false; then : 1617 $as_echo_n "(cached) " >&6 1618else 1619 eval "$3=\$ac_header_compiler" 1620fi 1621eval ac_res=\$$3 1622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1623$as_echo "$ac_res" >&6; } 1624fi 1625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1626 1627} # ac_fn_c_check_header_mongrel 1628 1629# ac_fn_c_try_run LINENO 1630# ---------------------- 1631# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1632# that executables *can* be run. 1633ac_fn_c_try_run () 1634{ 1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1636 if { { ac_try="$ac_link" 1637case "(($ac_try" in 1638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1639 *) ac_try_echo=$ac_try;; 1640esac 1641eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1642$as_echo "$ac_try_echo"; } >&5 1643 (eval "$ac_link") 2>&5 1644 ac_status=$? 1645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1646 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1647 { { case "(($ac_try" in 1648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1649 *) ac_try_echo=$ac_try;; 1650esac 1651eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1652$as_echo "$ac_try_echo"; } >&5 1653 (eval "$ac_try") 2>&5 1654 ac_status=$? 1655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1656 test $ac_status = 0; }; }; then : 1657 ac_retval=0 1658else 1659 $as_echo "$as_me: program exited with status $ac_status" >&5 1660 $as_echo "$as_me: failed program was:" >&5 1661sed 's/^/| /' conftest.$ac_ext >&5 1662 1663 ac_retval=$ac_status 1664fi 1665 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1667 as_fn_set_status $ac_retval 1668 1669} # ac_fn_c_try_run 1670 1671# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1672# ------------------------------------------------------- 1673# Tests whether HEADER exists and can be compiled using the include files in 1674# INCLUDES, setting the cache variable VAR accordingly. 1675ac_fn_c_check_header_compile () 1676{ 1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1679$as_echo_n "checking for $2... " >&6; } 1680if eval \${$3+:} false; then : 1681 $as_echo_n "(cached) " >&6 1682else 1683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1684/* end confdefs.h. */ 1685$4 1686#include <$2> 1687_ACEOF 1688if ac_fn_c_try_compile "$LINENO"; then : 1689 eval "$3=yes" 1690else 1691 eval "$3=no" 1692fi 1693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1694fi 1695eval ac_res=\$$3 1696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1697$as_echo "$ac_res" >&6; } 1698 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1699 1700} # ac_fn_c_check_header_compile 1701 1702# ac_fn_c_try_link LINENO 1703# ----------------------- 1704# Try to link conftest.$ac_ext, and return whether this succeeded. 1705ac_fn_c_try_link () 1706{ 1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1708 rm -f conftest.$ac_objext conftest$ac_exeext 1709 if { { ac_try="$ac_link" 1710case "(($ac_try" in 1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1712 *) ac_try_echo=$ac_try;; 1713esac 1714eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1715$as_echo "$ac_try_echo"; } >&5 1716 (eval "$ac_link") 2>conftest.err 1717 ac_status=$? 1718 if test -s conftest.err; then 1719 grep -v '^ *+' conftest.err >conftest.er1 1720 cat conftest.er1 >&5 1721 mv -f conftest.er1 conftest.err 1722 fi 1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1724 test $ac_status = 0; } && { 1725 test -z "$ac_c_werror_flag" || 1726 test ! -s conftest.err 1727 } && test -s conftest$ac_exeext && { 1728 test "$cross_compiling" = yes || 1729 $as_test_x conftest$ac_exeext 1730 }; then : 1731 ac_retval=0 1732else 1733 $as_echo "$as_me: failed program was:" >&5 1734sed 's/^/| /' conftest.$ac_ext >&5 1735 1736 ac_retval=1 1737fi 1738 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1739 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1740 # interfere with the next link command; also delete a directory that is 1741 # left behind by Apple's compiler. We do this before executing the actions. 1742 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1744 as_fn_set_status $ac_retval 1745 1746} # ac_fn_c_try_link 1747 1748# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1749# ------------------------------------------- 1750# Tests whether TYPE exists after having included INCLUDES, setting cache 1751# variable VAR accordingly. 1752ac_fn_c_check_type () 1753{ 1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1756$as_echo_n "checking for $2... " >&6; } 1757if eval \${$3+:} false; then : 1758 $as_echo_n "(cached) " >&6 1759else 1760 eval "$3=no" 1761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1762/* end confdefs.h. */ 1763$4 1764int 1765main () 1766{ 1767if (sizeof ($2)) 1768 return 0; 1769 ; 1770 return 0; 1771} 1772_ACEOF 1773if ac_fn_c_try_compile "$LINENO"; then : 1774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1775/* end confdefs.h. */ 1776$4 1777int 1778main () 1779{ 1780if (sizeof (($2))) 1781 return 0; 1782 ; 1783 return 0; 1784} 1785_ACEOF 1786if ac_fn_c_try_compile "$LINENO"; then : 1787 1788else 1789 eval "$3=yes" 1790fi 1791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1792fi 1793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1794fi 1795eval ac_res=\$$3 1796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1797$as_echo "$ac_res" >&6; } 1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1799 1800} # ac_fn_c_check_type 1801 1802# ac_fn_c_check_func LINENO FUNC VAR 1803# ---------------------------------- 1804# Tests whether FUNC exists, setting the cache variable VAR accordingly 1805ac_fn_c_check_func () 1806{ 1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1809$as_echo_n "checking for $2... " >&6; } 1810if eval \${$3+:} false; then : 1811 $as_echo_n "(cached) " >&6 1812else 1813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1814/* end confdefs.h. */ 1815/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1816 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1817#define $2 innocuous_$2 1818 1819/* System header to define __stub macros and hopefully few prototypes, 1820 which can conflict with char $2 (); below. 1821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1822 <limits.h> exists even on freestanding compilers. */ 1823 1824#ifdef __STDC__ 1825# include <limits.h> 1826#else 1827# include <assert.h> 1828#endif 1829 1830#undef $2 1831 1832/* Override any GCC internal prototype to avoid an error. 1833 Use char because int might match the return type of a GCC 1834 builtin and then its argument prototype would still apply. */ 1835#ifdef __cplusplus 1836extern "C" 1837#endif 1838char $2 (); 1839/* The GNU C library defines this for functions which it implements 1840 to always fail with ENOSYS. Some functions are actually named 1841 something starting with __ and the normal name is an alias. */ 1842#if defined __stub_$2 || defined __stub___$2 1843choke me 1844#endif 1845 1846int 1847main () 1848{ 1849return $2 (); 1850 ; 1851 return 0; 1852} 1853_ACEOF 1854if ac_fn_c_try_link "$LINENO"; then : 1855 eval "$3=yes" 1856else 1857 eval "$3=no" 1858fi 1859rm -f core conftest.err conftest.$ac_objext \ 1860 conftest$ac_exeext conftest.$ac_ext 1861fi 1862eval ac_res=\$$3 1863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1864$as_echo "$ac_res" >&6; } 1865 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1866 1867} # ac_fn_c_check_func 1868cat >config.log <<_ACEOF 1869This file contains any messages produced by compilers while 1870running configure, to aid debugging if configure makes a mistake. 1871 1872It was created by $as_me, which was 1873generated by GNU Autoconf 2.68. Invocation command line was 1874 1875 $ $0 $@ 1876 1877_ACEOF 1878exec 5>>config.log 1879{ 1880cat <<_ASUNAME 1881## --------- ## 1882## Platform. ## 1883## --------- ## 1884 1885hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1886uname -m = `(uname -m) 2>/dev/null || echo unknown` 1887uname -r = `(uname -r) 2>/dev/null || echo unknown` 1888uname -s = `(uname -s) 2>/dev/null || echo unknown` 1889uname -v = `(uname -v) 2>/dev/null || echo unknown` 1890 1891/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1892/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1893 1894/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1895/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1896/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1897/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1898/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1899/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1900/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1901 1902_ASUNAME 1903 1904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1905for as_dir in $PATH 1906do 1907 IFS=$as_save_IFS 1908 test -z "$as_dir" && as_dir=. 1909 $as_echo "PATH: $as_dir" 1910 done 1911IFS=$as_save_IFS 1912 1913} >&5 1914 1915cat >&5 <<_ACEOF 1916 1917 1918## ----------- ## 1919## Core tests. ## 1920## ----------- ## 1921 1922_ACEOF 1923 1924 1925# Keep a trace of the command line. 1926# Strip out --no-create and --no-recursion so they do not pile up. 1927# Strip out --silent because we don't want to record it for future runs. 1928# Also quote any args containing shell meta-characters. 1929# Make two passes to allow for proper duplicate-argument suppression. 1930ac_configure_args= 1931ac_configure_args0= 1932ac_configure_args1= 1933ac_must_keep_next=false 1934for ac_pass in 1 2 1935do 1936 for ac_arg 1937 do 1938 case $ac_arg in 1939 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1940 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1941 | -silent | --silent | --silen | --sile | --sil) 1942 continue ;; 1943 *\'*) 1944 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1945 esac 1946 case $ac_pass in 1947 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1948 2) 1949 as_fn_append ac_configure_args1 " '$ac_arg'" 1950 if test $ac_must_keep_next = true; then 1951 ac_must_keep_next=false # Got value, back to normal. 1952 else 1953 case $ac_arg in 1954 *=* | --config-cache | -C | -disable-* | --disable-* \ 1955 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1956 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1957 | -with-* | --with-* | -without-* | --without-* | --x) 1958 case "$ac_configure_args0 " in 1959 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1960 esac 1961 ;; 1962 -* ) ac_must_keep_next=true ;; 1963 esac 1964 fi 1965 as_fn_append ac_configure_args " '$ac_arg'" 1966 ;; 1967 esac 1968 done 1969done 1970{ ac_configure_args0=; unset ac_configure_args0;} 1971{ ac_configure_args1=; unset ac_configure_args1;} 1972 1973# When interrupted or exit'd, cleanup temporary files, and complete 1974# config.log. We remove comments because anyway the quotes in there 1975# would cause problems or look ugly. 1976# WARNING: Use '\'' to represent an apostrophe within the trap. 1977# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1978trap 'exit_status=$? 1979 # Save into config.log some information that might help in debugging. 1980 { 1981 echo 1982 1983 $as_echo "## ---------------- ## 1984## Cache variables. ## 1985## ---------------- ##" 1986 echo 1987 # The following way of writing the cache mishandles newlines in values, 1988( 1989 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1990 eval ac_val=\$$ac_var 1991 case $ac_val in #( 1992 *${as_nl}*) 1993 case $ac_var in #( 1994 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1995$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1996 esac 1997 case $ac_var in #( 1998 _ | IFS | as_nl) ;; #( 1999 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2000 *) { eval $ac_var=; unset $ac_var;} ;; 2001 esac ;; 2002 esac 2003 done 2004 (set) 2>&1 | 2005 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2006 *${as_nl}ac_space=\ *) 2007 sed -n \ 2008 "s/'\''/'\''\\\\'\'''\''/g; 2009 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2010 ;; #( 2011 *) 2012 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2013 ;; 2014 esac | 2015 sort 2016) 2017 echo 2018 2019 $as_echo "## ----------------- ## 2020## Output variables. ## 2021## ----------------- ##" 2022 echo 2023 for ac_var in $ac_subst_vars 2024 do 2025 eval ac_val=\$$ac_var 2026 case $ac_val in 2027 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2028 esac 2029 $as_echo "$ac_var='\''$ac_val'\''" 2030 done | sort 2031 echo 2032 2033 if test -n "$ac_subst_files"; then 2034 $as_echo "## ------------------- ## 2035## File substitutions. ## 2036## ------------------- ##" 2037 echo 2038 for ac_var in $ac_subst_files 2039 do 2040 eval ac_val=\$$ac_var 2041 case $ac_val in 2042 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2043 esac 2044 $as_echo "$ac_var='\''$ac_val'\''" 2045 done | sort 2046 echo 2047 fi 2048 2049 if test -s confdefs.h; then 2050 $as_echo "## ----------- ## 2051## confdefs.h. ## 2052## ----------- ##" 2053 echo 2054 cat confdefs.h 2055 echo 2056 fi 2057 test "$ac_signal" != 0 && 2058 $as_echo "$as_me: caught signal $ac_signal" 2059 $as_echo "$as_me: exit $exit_status" 2060 } >&5 2061 rm -f core *.core core.conftest.* && 2062 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2063 exit $exit_status 2064' 0 2065for ac_signal in 1 2 13 15; do 2066 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2067done 2068ac_signal=0 2069 2070# confdefs.h avoids OS command line length limits that DEFS can exceed. 2071rm -f -r conftest* confdefs.h 2072 2073$as_echo "/* confdefs.h */" > confdefs.h 2074 2075# Predefined preprocessor variables. 2076 2077cat >>confdefs.h <<_ACEOF 2078#define PACKAGE_NAME "$PACKAGE_NAME" 2079_ACEOF 2080 2081cat >>confdefs.h <<_ACEOF 2082#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2083_ACEOF 2084 2085cat >>confdefs.h <<_ACEOF 2086#define PACKAGE_VERSION "$PACKAGE_VERSION" 2087_ACEOF 2088 2089cat >>confdefs.h <<_ACEOF 2090#define PACKAGE_STRING "$PACKAGE_STRING" 2091_ACEOF 2092 2093cat >>confdefs.h <<_ACEOF 2094#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2095_ACEOF 2096 2097cat >>confdefs.h <<_ACEOF 2098#define PACKAGE_URL "$PACKAGE_URL" 2099_ACEOF 2100 2101 2102# Let the site file select an alternate cache file if it wants to. 2103# Prefer an explicitly selected file to automatically selected ones. 2104ac_site_file1=NONE 2105ac_site_file2=NONE 2106if test -n "$CONFIG_SITE"; then 2107 # We do not want a PATH search for config.site. 2108 case $CONFIG_SITE in #(( 2109 -*) ac_site_file1=./$CONFIG_SITE;; 2110 */*) ac_site_file1=$CONFIG_SITE;; 2111 *) ac_site_file1=./$CONFIG_SITE;; 2112 esac 2113elif test "x$prefix" != xNONE; then 2114 ac_site_file1=$prefix/share/config.site 2115 ac_site_file2=$prefix/etc/config.site 2116else 2117 ac_site_file1=$ac_default_prefix/share/config.site 2118 ac_site_file2=$ac_default_prefix/etc/config.site 2119fi 2120for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2121do 2122 test "x$ac_site_file" = xNONE && continue 2123 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2124 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2125$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2126 sed 's/^/| /' "$ac_site_file" >&5 2127 . "$ac_site_file" \ 2128 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2129$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2130as_fn_error $? "failed to load site script $ac_site_file 2131See \`config.log' for more details" "$LINENO" 5; } 2132 fi 2133done 2134 2135if test -r "$cache_file"; then 2136 # Some versions of bash will fail to source /dev/null (special files 2137 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2138 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2139 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2140$as_echo "$as_me: loading cache $cache_file" >&6;} 2141 case $cache_file in 2142 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2143 *) . "./$cache_file";; 2144 esac 2145 fi 2146else 2147 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2148$as_echo "$as_me: creating cache $cache_file" >&6;} 2149 >$cache_file 2150fi 2151 2152as_fn_append ac_header_list " stdlib.h" 2153as_fn_append ac_header_list " unistd.h" 2154as_fn_append ac_header_list " sys/param.h" 2155# Check that the precious variables saved in the cache have kept the same 2156# value. 2157ac_cache_corrupted=false 2158for ac_var in $ac_precious_vars; do 2159 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2160 eval ac_new_set=\$ac_env_${ac_var}_set 2161 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2162 eval ac_new_val=\$ac_env_${ac_var}_value 2163 case $ac_old_set,$ac_new_set in 2164 set,) 2165 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2166$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2167 ac_cache_corrupted=: ;; 2168 ,set) 2169 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2170$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2171 ac_cache_corrupted=: ;; 2172 ,);; 2173 *) 2174 if test "x$ac_old_val" != "x$ac_new_val"; then 2175 # differences in whitespace do not lead to failure. 2176 ac_old_val_w=`echo x $ac_old_val` 2177 ac_new_val_w=`echo x $ac_new_val` 2178 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2179 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2180$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2181 ac_cache_corrupted=: 2182 else 2183 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2184$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2185 eval $ac_var=\$ac_old_val 2186 fi 2187 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2188$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2189 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2190$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2191 fi;; 2192 esac 2193 # Pass precious variables to config.status. 2194 if test "$ac_new_set" = set; then 2195 case $ac_new_val in 2196 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2197 *) ac_arg=$ac_var=$ac_new_val ;; 2198 esac 2199 case " $ac_configure_args " in 2200 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2201 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2202 esac 2203 fi 2204done 2205if $ac_cache_corrupted; then 2206 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2207$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2208 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2209$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2210 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2211fi 2212## -------------------- ## 2213## Main body of script. ## 2214## -------------------- ## 2215 2216ac_ext=c 2217ac_cpp='$CPP $CPPFLAGS' 2218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2220ac_compiler_gnu=$ac_cv_c_compiler_gnu 2221 2222 2223ac_config_headers="$ac_config_headers include/config.h" 2224 2225# AC_PREREQ(2.10)dnl dnl Minimum Autoconf version required. 2226# AC_ARG_PROGRAM 2227 2228# version code: 2229V_MAJOR=0 2230V_MINOR=999 2231 2232PACKAGE=xsane 2233 2234BINPROGS="xsane" 2235 2236# languages 2237ALL_LINGUAS="ca cs da de es fi fr hu it ja nl pa pl pt pt_BR ro ru sk sl sr sv vi tr zh zh_CN" 2238 2239SANE_V_MAJOR=1 2240VERSION=${V_MAJOR}.${V_MINOR} 2241XSANE_PACKAGE_VERSION="$PACKAGE-$VERSION" 2242 2243cat >>confdefs.h <<_ACEOF 2244#define PACKAGE "$PACKAGE" 2245_ACEOF 2246 2247 2248cat >>confdefs.h <<_ACEOF 2249#define VERSION "$VERSION" 2250_ACEOF 2251 2252 2253cat >>confdefs.h <<_ACEOF 2254#define XSANE_PACKAGE_VERSION "$XSANE_PACKAGE_VERSION" 2255_ACEOF 2256 2257 2258 2259 2260 2261 2262 2263 2264echo "" 2265echo "**************************************************************************" 2266echo "" 2267 2268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GTK+-2.0 is requested" >&5 2269$as_echo_n "checking whether GTK+-2.0 is requested... " >&6; } 2270# Check whether --enable-gtk2 was given. 2271if test "${enable_gtk2+set}" = set; then : 2272 enableval=$enable_gtk2; USE_GTK2=$enableval 2273else 2274 USE_GTK2=yes 2275fi 2276 2277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_GTK2" >&5 2278$as_echo "$USE_GTK2" >&6; } 2279 2280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GIMP plugin is requested" >&5 2281$as_echo_n "checking whether GIMP plugin is requested... " >&6; } 2282# Check whether --enable-gimp was given. 2283if test "${enable_gimp+set}" = set; then : 2284 enableval=$enable_gimp; USE_GIMP=$enableval 2285else 2286 USE_GIMP=yes 2287fi 2288 2289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_GIMP" >&5 2290$as_echo "$USE_GIMP" >&6; } 2291 2292if test "${USE_GIMP}" = "yes"; then 2293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GIMP-2.0 is requested" >&5 2294$as_echo_n "checking whether GIMP-2.0 is requested... " >&6; } 2295 # Check whether --enable-gimp2 was given. 2296if test "${enable_gimp2+set}" = set; then : 2297 enableval=$enable_gimp2; TRY_GIMP_2=$enableval 2298else 2299 TRY_GIMP_2=yes 2300fi 2301 2302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRY_GIMP_2" >&5 2303$as_echo "$TRY_GIMP_2" >&6; } 2304fi 2305 2306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether JPEG support is requested" >&5 2307$as_echo_n "checking whether JPEG support is requested... " >&6; } 2308# Check whether --enable-jpeg was given. 2309if test "${enable_jpeg+set}" = set; then : 2310 enableval=$enable_jpeg; USE_JPEG=$enableval 2311else 2312 USE_JPEG=yes 2313fi 2314 2315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_JPEG" >&5 2316$as_echo "$USE_JPEG" >&6; } 2317 2318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PNG support is requested" >&5 2319$as_echo_n "checking whether PNG support is requested... " >&6; } 2320# Check whether --enable-png was given. 2321if test "${enable_png+set}" = set; then : 2322 enableval=$enable_png; USE_PNG=$enableval 2323else 2324 USE_PNG=yes 2325fi 2326 2327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_PNG" >&5 2328$as_echo "$USE_PNG" >&6; } 2329 2330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TIFF support is requested" >&5 2331$as_echo_n "checking whether TIFF support is requested... " >&6; } 2332# Check whether --enable-tiff was given. 2333if test "${enable_tiff+set}" = set; then : 2334 enableval=$enable_tiff; USE_TIFF=$enableval 2335else 2336 USE_TIFF=yes 2337fi 2338 2339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_TIFF" >&5 2340$as_echo "$USE_TIFF" >&6; } 2341 2342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether LCMS (color management) support is requested" >&5 2343$as_echo_n "checking whether LCMS (color management) support is requested... " >&6; } 2344# Check whether --enable-lcms was given. 2345if test "${enable_lcms+set}" = set; then : 2346 enableval=$enable_lcms; USE_LCMS=$enableval 2347else 2348 USE_LCMS=yes 2349fi 2350 2351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_LCMS" >&5 2352$as_echo "$USE_LCMS" >&6; } 2353 2354echo "" 2355echo "**************************************************************************" 2356echo "" 2357 2358ac_ext=c 2359ac_cpp='$CPP $CPPFLAGS' 2360ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2361ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2362ac_compiler_gnu=$ac_cv_c_compiler_gnu 2363if test -n "$ac_tool_prefix"; then 2364 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2365set dummy ${ac_tool_prefix}gcc; ac_word=$2 2366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2367$as_echo_n "checking for $ac_word... " >&6; } 2368if ${ac_cv_prog_CC+:} false; then : 2369 $as_echo_n "(cached) " >&6 2370else 2371 if test -n "$CC"; then 2372 ac_cv_prog_CC="$CC" # Let the user override the test. 2373else 2374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2375for as_dir in $PATH 2376do 2377 IFS=$as_save_IFS 2378 test -z "$as_dir" && as_dir=. 2379 for ac_exec_ext in '' $ac_executable_extensions; do 2380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2381 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2383 break 2 2384 fi 2385done 2386 done 2387IFS=$as_save_IFS 2388 2389fi 2390fi 2391CC=$ac_cv_prog_CC 2392if test -n "$CC"; then 2393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2394$as_echo "$CC" >&6; } 2395else 2396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2397$as_echo "no" >&6; } 2398fi 2399 2400 2401fi 2402if test -z "$ac_cv_prog_CC"; then 2403 ac_ct_CC=$CC 2404 # Extract the first word of "gcc", so it can be a program name with args. 2405set dummy gcc; ac_word=$2 2406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2407$as_echo_n "checking for $ac_word... " >&6; } 2408if ${ac_cv_prog_ac_ct_CC+:} false; then : 2409 $as_echo_n "(cached) " >&6 2410else 2411 if test -n "$ac_ct_CC"; then 2412 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2413else 2414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2415for as_dir in $PATH 2416do 2417 IFS=$as_save_IFS 2418 test -z "$as_dir" && as_dir=. 2419 for ac_exec_ext in '' $ac_executable_extensions; do 2420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2421 ac_cv_prog_ac_ct_CC="gcc" 2422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2423 break 2 2424 fi 2425done 2426 done 2427IFS=$as_save_IFS 2428 2429fi 2430fi 2431ac_ct_CC=$ac_cv_prog_ac_ct_CC 2432if test -n "$ac_ct_CC"; then 2433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2434$as_echo "$ac_ct_CC" >&6; } 2435else 2436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2437$as_echo "no" >&6; } 2438fi 2439 2440 if test "x$ac_ct_CC" = x; then 2441 CC="" 2442 else 2443 case $cross_compiling:$ac_tool_warned in 2444yes:) 2445{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2446$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2447ac_tool_warned=yes ;; 2448esac 2449 CC=$ac_ct_CC 2450 fi 2451else 2452 CC="$ac_cv_prog_CC" 2453fi 2454 2455if test -z "$CC"; then 2456 if test -n "$ac_tool_prefix"; then 2457 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2458set dummy ${ac_tool_prefix}cc; ac_word=$2 2459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2460$as_echo_n "checking for $ac_word... " >&6; } 2461if ${ac_cv_prog_CC+:} false; then : 2462 $as_echo_n "(cached) " >&6 2463else 2464 if test -n "$CC"; then 2465 ac_cv_prog_CC="$CC" # Let the user override the test. 2466else 2467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2468for as_dir in $PATH 2469do 2470 IFS=$as_save_IFS 2471 test -z "$as_dir" && as_dir=. 2472 for ac_exec_ext in '' $ac_executable_extensions; do 2473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2474 ac_cv_prog_CC="${ac_tool_prefix}cc" 2475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2476 break 2 2477 fi 2478done 2479 done 2480IFS=$as_save_IFS 2481 2482fi 2483fi 2484CC=$ac_cv_prog_CC 2485if test -n "$CC"; then 2486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2487$as_echo "$CC" >&6; } 2488else 2489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2490$as_echo "no" >&6; } 2491fi 2492 2493 2494 fi 2495fi 2496if test -z "$CC"; then 2497 # Extract the first word of "cc", so it can be a program name with args. 2498set dummy cc; ac_word=$2 2499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2500$as_echo_n "checking for $ac_word... " >&6; } 2501if ${ac_cv_prog_CC+:} false; then : 2502 $as_echo_n "(cached) " >&6 2503else 2504 if test -n "$CC"; then 2505 ac_cv_prog_CC="$CC" # Let the user override the test. 2506else 2507 ac_prog_rejected=no 2508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2509for as_dir in $PATH 2510do 2511 IFS=$as_save_IFS 2512 test -z "$as_dir" && as_dir=. 2513 for ac_exec_ext in '' $ac_executable_extensions; do 2514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2515 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2516 ac_prog_rejected=yes 2517 continue 2518 fi 2519 ac_cv_prog_CC="cc" 2520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2521 break 2 2522 fi 2523done 2524 done 2525IFS=$as_save_IFS 2526 2527if test $ac_prog_rejected = yes; then 2528 # We found a bogon in the path, so make sure we never use it. 2529 set dummy $ac_cv_prog_CC 2530 shift 2531 if test $# != 0; then 2532 # We chose a different compiler from the bogus one. 2533 # However, it has the same basename, so the bogon will be chosen 2534 # first if we set CC to just the basename; use the full file name. 2535 shift 2536 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2537 fi 2538fi 2539fi 2540fi 2541CC=$ac_cv_prog_CC 2542if test -n "$CC"; then 2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2544$as_echo "$CC" >&6; } 2545else 2546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2547$as_echo "no" >&6; } 2548fi 2549 2550 2551fi 2552if test -z "$CC"; then 2553 if test -n "$ac_tool_prefix"; then 2554 for ac_prog in cl.exe 2555 do 2556 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2557set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2559$as_echo_n "checking for $ac_word... " >&6; } 2560if ${ac_cv_prog_CC+:} false; then : 2561 $as_echo_n "(cached) " >&6 2562else 2563 if test -n "$CC"; then 2564 ac_cv_prog_CC="$CC" # Let the user override the test. 2565else 2566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2567for as_dir in $PATH 2568do 2569 IFS=$as_save_IFS 2570 test -z "$as_dir" && as_dir=. 2571 for ac_exec_ext in '' $ac_executable_extensions; do 2572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2573 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2575 break 2 2576 fi 2577done 2578 done 2579IFS=$as_save_IFS 2580 2581fi 2582fi 2583CC=$ac_cv_prog_CC 2584if test -n "$CC"; then 2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2586$as_echo "$CC" >&6; } 2587else 2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2589$as_echo "no" >&6; } 2590fi 2591 2592 2593 test -n "$CC" && break 2594 done 2595fi 2596if test -z "$CC"; then 2597 ac_ct_CC=$CC 2598 for ac_prog in cl.exe 2599do 2600 # Extract the first word of "$ac_prog", so it can be a program name with args. 2601set dummy $ac_prog; ac_word=$2 2602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2603$as_echo_n "checking for $ac_word... " >&6; } 2604if ${ac_cv_prog_ac_ct_CC+:} false; then : 2605 $as_echo_n "(cached) " >&6 2606else 2607 if test -n "$ac_ct_CC"; then 2608 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2609else 2610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2611for as_dir in $PATH 2612do 2613 IFS=$as_save_IFS 2614 test -z "$as_dir" && as_dir=. 2615 for ac_exec_ext in '' $ac_executable_extensions; do 2616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2617 ac_cv_prog_ac_ct_CC="$ac_prog" 2618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2619 break 2 2620 fi 2621done 2622 done 2623IFS=$as_save_IFS 2624 2625fi 2626fi 2627ac_ct_CC=$ac_cv_prog_ac_ct_CC 2628if test -n "$ac_ct_CC"; then 2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2630$as_echo "$ac_ct_CC" >&6; } 2631else 2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2633$as_echo "no" >&6; } 2634fi 2635 2636 2637 test -n "$ac_ct_CC" && break 2638done 2639 2640 if test "x$ac_ct_CC" = x; then 2641 CC="" 2642 else 2643 case $cross_compiling:$ac_tool_warned in 2644yes:) 2645{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2646$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2647ac_tool_warned=yes ;; 2648esac 2649 CC=$ac_ct_CC 2650 fi 2651fi 2652 2653fi 2654 2655 2656test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2657$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2658as_fn_error $? "no acceptable C compiler found in \$PATH 2659See \`config.log' for more details" "$LINENO" 5; } 2660 2661# Provide some information about the compiler. 2662$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2663set X $ac_compile 2664ac_compiler=$2 2665for ac_option in --version -v -V -qversion; do 2666 { { ac_try="$ac_compiler $ac_option >&5" 2667case "(($ac_try" in 2668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2669 *) ac_try_echo=$ac_try;; 2670esac 2671eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2672$as_echo "$ac_try_echo"; } >&5 2673 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2674 ac_status=$? 2675 if test -s conftest.err; then 2676 sed '10a\ 2677... rest of stderr output deleted ... 2678 10q' conftest.err >conftest.er1 2679 cat conftest.er1 >&5 2680 fi 2681 rm -f conftest.er1 conftest.err 2682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2683 test $ac_status = 0; } 2684done 2685 2686cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2687/* end confdefs.h. */ 2688 2689int 2690main () 2691{ 2692 2693 ; 2694 return 0; 2695} 2696_ACEOF 2697ac_clean_files_save=$ac_clean_files 2698ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2699# Try to create an executable without -o first, disregard a.out. 2700# It will help us diagnose broken compilers, and finding out an intuition 2701# of exeext. 2702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2703$as_echo_n "checking whether the C compiler works... " >&6; } 2704ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2705 2706# The possible output files: 2707ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2708 2709ac_rmfiles= 2710for ac_file in $ac_files 2711do 2712 case $ac_file in 2713 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2714 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2715 esac 2716done 2717rm -f $ac_rmfiles 2718 2719if { { ac_try="$ac_link_default" 2720case "(($ac_try" in 2721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2722 *) ac_try_echo=$ac_try;; 2723esac 2724eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2725$as_echo "$ac_try_echo"; } >&5 2726 (eval "$ac_link_default") 2>&5 2727 ac_status=$? 2728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2729 test $ac_status = 0; }; then : 2730 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2731# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2732# in a Makefile. We should not override ac_cv_exeext if it was cached, 2733# so that the user can short-circuit this test for compilers unknown to 2734# Autoconf. 2735for ac_file in $ac_files '' 2736do 2737 test -f "$ac_file" || continue 2738 case $ac_file in 2739 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2740 ;; 2741 [ab].out ) 2742 # We found the default executable, but exeext='' is most 2743 # certainly right. 2744 break;; 2745 *.* ) 2746 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2747 then :; else 2748 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2749 fi 2750 # We set ac_cv_exeext here because the later test for it is not 2751 # safe: cross compilers may not add the suffix if given an `-o' 2752 # argument, so we may need to know it at that point already. 2753 # Even if this section looks crufty: it has the advantage of 2754 # actually working. 2755 break;; 2756 * ) 2757 break;; 2758 esac 2759done 2760test "$ac_cv_exeext" = no && ac_cv_exeext= 2761 2762else 2763 ac_file='' 2764fi 2765if test -z "$ac_file"; then : 2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2767$as_echo "no" >&6; } 2768$as_echo "$as_me: failed program was:" >&5 2769sed 's/^/| /' conftest.$ac_ext >&5 2770 2771{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2772$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2773as_fn_error 77 "C compiler cannot create executables 2774See \`config.log' for more details" "$LINENO" 5; } 2775else 2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2777$as_echo "yes" >&6; } 2778fi 2779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2780$as_echo_n "checking for C compiler default output file name... " >&6; } 2781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2782$as_echo "$ac_file" >&6; } 2783ac_exeext=$ac_cv_exeext 2784 2785rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2786ac_clean_files=$ac_clean_files_save 2787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2788$as_echo_n "checking for suffix of executables... " >&6; } 2789if { { ac_try="$ac_link" 2790case "(($ac_try" in 2791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2792 *) ac_try_echo=$ac_try;; 2793esac 2794eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2795$as_echo "$ac_try_echo"; } >&5 2796 (eval "$ac_link") 2>&5 2797 ac_status=$? 2798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2799 test $ac_status = 0; }; then : 2800 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2801# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2802# work properly (i.e., refer to `conftest.exe'), while it won't with 2803# `rm'. 2804for ac_file in conftest.exe conftest conftest.*; do 2805 test -f "$ac_file" || continue 2806 case $ac_file in 2807 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2808 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2809 break;; 2810 * ) break;; 2811 esac 2812done 2813else 2814 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2815$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2816as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2817See \`config.log' for more details" "$LINENO" 5; } 2818fi 2819rm -f conftest conftest$ac_cv_exeext 2820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2821$as_echo "$ac_cv_exeext" >&6; } 2822 2823rm -f conftest.$ac_ext 2824EXEEXT=$ac_cv_exeext 2825ac_exeext=$EXEEXT 2826cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2827/* end confdefs.h. */ 2828#include <stdio.h> 2829int 2830main () 2831{ 2832FILE *f = fopen ("conftest.out", "w"); 2833 return ferror (f) || fclose (f) != 0; 2834 2835 ; 2836 return 0; 2837} 2838_ACEOF 2839ac_clean_files="$ac_clean_files conftest.out" 2840# Check that the compiler produces executables we can run. If not, either 2841# the compiler is broken, or we cross compile. 2842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2843$as_echo_n "checking whether we are cross compiling... " >&6; } 2844if test "$cross_compiling" != yes; then 2845 { { ac_try="$ac_link" 2846case "(($ac_try" in 2847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2848 *) ac_try_echo=$ac_try;; 2849esac 2850eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2851$as_echo "$ac_try_echo"; } >&5 2852 (eval "$ac_link") 2>&5 2853 ac_status=$? 2854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2855 test $ac_status = 0; } 2856 if { ac_try='./conftest$ac_cv_exeext' 2857 { { case "(($ac_try" in 2858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2859 *) ac_try_echo=$ac_try;; 2860esac 2861eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2862$as_echo "$ac_try_echo"; } >&5 2863 (eval "$ac_try") 2>&5 2864 ac_status=$? 2865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2866 test $ac_status = 0; }; }; then 2867 cross_compiling=no 2868 else 2869 if test "$cross_compiling" = maybe; then 2870 cross_compiling=yes 2871 else 2872 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2873$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2874as_fn_error $? "cannot run C compiled programs. 2875If you meant to cross compile, use \`--host'. 2876See \`config.log' for more details" "$LINENO" 5; } 2877 fi 2878 fi 2879fi 2880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2881$as_echo "$cross_compiling" >&6; } 2882 2883rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 2884ac_clean_files=$ac_clean_files_save 2885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2886$as_echo_n "checking for suffix of object files... " >&6; } 2887if ${ac_cv_objext+:} false; then : 2888 $as_echo_n "(cached) " >&6 2889else 2890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2891/* end confdefs.h. */ 2892 2893int 2894main () 2895{ 2896 2897 ; 2898 return 0; 2899} 2900_ACEOF 2901rm -f conftest.o conftest.obj 2902if { { ac_try="$ac_compile" 2903case "(($ac_try" in 2904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2905 *) ac_try_echo=$ac_try;; 2906esac 2907eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2908$as_echo "$ac_try_echo"; } >&5 2909 (eval "$ac_compile") 2>&5 2910 ac_status=$? 2911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2912 test $ac_status = 0; }; then : 2913 for ac_file in conftest.o conftest.obj conftest.*; do 2914 test -f "$ac_file" || continue; 2915 case $ac_file in 2916 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2917 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2918 break;; 2919 esac 2920done 2921else 2922 $as_echo "$as_me: failed program was:" >&5 2923sed 's/^/| /' conftest.$ac_ext >&5 2924 2925{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2926$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2927as_fn_error $? "cannot compute suffix of object files: cannot compile 2928See \`config.log' for more details" "$LINENO" 5; } 2929fi 2930rm -f conftest.$ac_cv_objext conftest.$ac_ext 2931fi 2932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 2933$as_echo "$ac_cv_objext" >&6; } 2934OBJEXT=$ac_cv_objext 2935ac_objext=$OBJEXT 2936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 2937$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2938if ${ac_cv_c_compiler_gnu+:} false; then : 2939 $as_echo_n "(cached) " >&6 2940else 2941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2942/* end confdefs.h. */ 2943 2944int 2945main () 2946{ 2947#ifndef __GNUC__ 2948 choke me 2949#endif 2950 2951 ; 2952 return 0; 2953} 2954_ACEOF 2955if ac_fn_c_try_compile "$LINENO"; then : 2956 ac_compiler_gnu=yes 2957else 2958 ac_compiler_gnu=no 2959fi 2960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2961ac_cv_c_compiler_gnu=$ac_compiler_gnu 2962 2963fi 2964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 2965$as_echo "$ac_cv_c_compiler_gnu" >&6; } 2966if test $ac_compiler_gnu = yes; then 2967 GCC=yes 2968else 2969 GCC= 2970fi 2971ac_test_CFLAGS=${CFLAGS+set} 2972ac_save_CFLAGS=$CFLAGS 2973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 2974$as_echo_n "checking whether $CC accepts -g... " >&6; } 2975if ${ac_cv_prog_cc_g+:} false; then : 2976 $as_echo_n "(cached) " >&6 2977else 2978 ac_save_c_werror_flag=$ac_c_werror_flag 2979 ac_c_werror_flag=yes 2980 ac_cv_prog_cc_g=no 2981 CFLAGS="-g" 2982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2983/* end confdefs.h. */ 2984 2985int 2986main () 2987{ 2988 2989 ; 2990 return 0; 2991} 2992_ACEOF 2993if ac_fn_c_try_compile "$LINENO"; then : 2994 ac_cv_prog_cc_g=yes 2995else 2996 CFLAGS="" 2997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2998/* end confdefs.h. */ 2999 3000int 3001main () 3002{ 3003 3004 ; 3005 return 0; 3006} 3007_ACEOF 3008if ac_fn_c_try_compile "$LINENO"; then : 3009 3010else 3011 ac_c_werror_flag=$ac_save_c_werror_flag 3012 CFLAGS="-g" 3013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3014/* end confdefs.h. */ 3015 3016int 3017main () 3018{ 3019 3020 ; 3021 return 0; 3022} 3023_ACEOF 3024if ac_fn_c_try_compile "$LINENO"; then : 3025 ac_cv_prog_cc_g=yes 3026fi 3027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3028fi 3029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3030fi 3031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3032 ac_c_werror_flag=$ac_save_c_werror_flag 3033fi 3034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3035$as_echo "$ac_cv_prog_cc_g" >&6; } 3036if test "$ac_test_CFLAGS" = set; then 3037 CFLAGS=$ac_save_CFLAGS 3038elif test $ac_cv_prog_cc_g = yes; then 3039 if test "$GCC" = yes; then 3040 CFLAGS="-g -O2" 3041 else 3042 CFLAGS="-g" 3043 fi 3044else 3045 if test "$GCC" = yes; then 3046 CFLAGS="-O2" 3047 else 3048 CFLAGS= 3049 fi 3050fi 3051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3052$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3053if ${ac_cv_prog_cc_c89+:} false; then : 3054 $as_echo_n "(cached) " >&6 3055else 3056 ac_cv_prog_cc_c89=no 3057ac_save_CC=$CC 3058cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3059/* end confdefs.h. */ 3060#include <stdarg.h> 3061#include <stdio.h> 3062#include <sys/types.h> 3063#include <sys/stat.h> 3064/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3065struct buf { int x; }; 3066FILE * (*rcsopen) (struct buf *, struct stat *, int); 3067static char *e (p, i) 3068 char **p; 3069 int i; 3070{ 3071 return p[i]; 3072} 3073static char *f (char * (*g) (char **, int), char **p, ...) 3074{ 3075 char *s; 3076 va_list v; 3077 va_start (v,p); 3078 s = g (p, va_arg (v,int)); 3079 va_end (v); 3080 return s; 3081} 3082 3083/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3084 function prototypes and stuff, but not '\xHH' hex character constants. 3085 These don't provoke an error unfortunately, instead are silently treated 3086 as 'x'. The following induces an error, until -std is added to get 3087 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3088 array size at least. It's necessary to write '\x00'==0 to get something 3089 that's true only with -std. */ 3090int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3091 3092/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3093 inside strings and character constants. */ 3094#define FOO(x) 'x' 3095int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3096 3097int test (int i, double x); 3098struct s1 {int (*f) (int a);}; 3099struct s2 {int (*f) (double a);}; 3100int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3101int argc; 3102char **argv; 3103int 3104main () 3105{ 3106return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3107 ; 3108 return 0; 3109} 3110_ACEOF 3111for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3112 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3113do 3114 CC="$ac_save_CC $ac_arg" 3115 if ac_fn_c_try_compile "$LINENO"; then : 3116 ac_cv_prog_cc_c89=$ac_arg 3117fi 3118rm -f core conftest.err conftest.$ac_objext 3119 test "x$ac_cv_prog_cc_c89" != "xno" && break 3120done 3121rm -f conftest.$ac_ext 3122CC=$ac_save_CC 3123 3124fi 3125# AC_CACHE_VAL 3126case "x$ac_cv_prog_cc_c89" in 3127 x) 3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3129$as_echo "none needed" >&6; } ;; 3130 xno) 3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3132$as_echo "unsupported" >&6; } ;; 3133 *) 3134 CC="$CC $ac_cv_prog_cc_c89" 3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3136$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3137esac 3138if test "x$ac_cv_prog_cc_c89" != xno; then : 3139 3140fi 3141 3142ac_ext=c 3143ac_cpp='$CPP $CPPFLAGS' 3144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3146ac_compiler_gnu=$ac_cv_c_compiler_gnu 3147 3148 3149ac_ext=c 3150ac_cpp='$CPP $CPPFLAGS' 3151ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3152ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3153ac_compiler_gnu=$ac_cv_c_compiler_gnu 3154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3155$as_echo_n "checking how to run the C preprocessor... " >&6; } 3156# On Suns, sometimes $CPP names a directory. 3157if test -n "$CPP" && test -d "$CPP"; then 3158 CPP= 3159fi 3160if test -z "$CPP"; then 3161 if ${ac_cv_prog_CPP+:} false; then : 3162 $as_echo_n "(cached) " >&6 3163else 3164 # Double quotes because CPP needs to be expanded 3165 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3166 do 3167 ac_preproc_ok=false 3168for ac_c_preproc_warn_flag in '' yes 3169do 3170 # Use a header file that comes with gcc, so configuring glibc 3171 # with a fresh cross-compiler works. 3172 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3173 # <limits.h> exists even on freestanding compilers. 3174 # On the NeXT, cc -E runs the code through the compiler's parser, 3175 # not just through cpp. "Syntax error" is here to catch this case. 3176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3177/* end confdefs.h. */ 3178#ifdef __STDC__ 3179# include <limits.h> 3180#else 3181# include <assert.h> 3182#endif 3183 Syntax error 3184_ACEOF 3185if ac_fn_c_try_cpp "$LINENO"; then : 3186 3187else 3188 # Broken: fails on valid input. 3189continue 3190fi 3191rm -f conftest.err conftest.i conftest.$ac_ext 3192 3193 # OK, works on sane cases. Now check whether nonexistent headers 3194 # can be detected and how. 3195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3196/* end confdefs.h. */ 3197#include <ac_nonexistent.h> 3198_ACEOF 3199if ac_fn_c_try_cpp "$LINENO"; then : 3200 # Broken: success on invalid input. 3201continue 3202else 3203 # Passes both tests. 3204ac_preproc_ok=: 3205break 3206fi 3207rm -f conftest.err conftest.i conftest.$ac_ext 3208 3209done 3210# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3211rm -f conftest.i conftest.err conftest.$ac_ext 3212if $ac_preproc_ok; then : 3213 break 3214fi 3215 3216 done 3217 ac_cv_prog_CPP=$CPP 3218 3219fi 3220 CPP=$ac_cv_prog_CPP 3221else 3222 ac_cv_prog_CPP=$CPP 3223fi 3224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3225$as_echo "$CPP" >&6; } 3226ac_preproc_ok=false 3227for ac_c_preproc_warn_flag in '' yes 3228do 3229 # Use a header file that comes with gcc, so configuring glibc 3230 # with a fresh cross-compiler works. 3231 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3232 # <limits.h> exists even on freestanding compilers. 3233 # On the NeXT, cc -E runs the code through the compiler's parser, 3234 # not just through cpp. "Syntax error" is here to catch this case. 3235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3236/* end confdefs.h. */ 3237#ifdef __STDC__ 3238# include <limits.h> 3239#else 3240# include <assert.h> 3241#endif 3242 Syntax error 3243_ACEOF 3244if ac_fn_c_try_cpp "$LINENO"; then : 3245 3246else 3247 # Broken: fails on valid input. 3248continue 3249fi 3250rm -f conftest.err conftest.i conftest.$ac_ext 3251 3252 # OK, works on sane cases. Now check whether nonexistent headers 3253 # can be detected and how. 3254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3255/* end confdefs.h. */ 3256#include <ac_nonexistent.h> 3257_ACEOF 3258if ac_fn_c_try_cpp "$LINENO"; then : 3259 # Broken: success on invalid input. 3260continue 3261else 3262 # Passes both tests. 3263ac_preproc_ok=: 3264break 3265fi 3266rm -f conftest.err conftest.i conftest.$ac_ext 3267 3268done 3269# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3270rm -f conftest.i conftest.err conftest.$ac_ext 3271if $ac_preproc_ok; then : 3272 3273else 3274 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3275$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3276as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3277See \`config.log' for more details" "$LINENO" 5; } 3278fi 3279 3280ac_ext=c 3281ac_cpp='$CPP $CPPFLAGS' 3282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3284ac_compiler_gnu=$ac_cv_c_compiler_gnu 3285 3286 3287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3288$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3289if ${ac_cv_path_GREP+:} false; then : 3290 $as_echo_n "(cached) " >&6 3291else 3292 if test -z "$GREP"; then 3293 ac_path_GREP_found=false 3294 # Loop through the user's path and test for each of PROGNAME-LIST 3295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3296for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3297do 3298 IFS=$as_save_IFS 3299 test -z "$as_dir" && as_dir=. 3300 for ac_prog in grep ggrep; do 3301 for ac_exec_ext in '' $ac_executable_extensions; do 3302 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3303 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3304# Check for GNU ac_path_GREP and select it if it is found. 3305 # Check for GNU $ac_path_GREP 3306case `"$ac_path_GREP" --version 2>&1` in 3307*GNU*) 3308 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3309*) 3310 ac_count=0 3311 $as_echo_n 0123456789 >"conftest.in" 3312 while : 3313 do 3314 cat "conftest.in" "conftest.in" >"conftest.tmp" 3315 mv "conftest.tmp" "conftest.in" 3316 cp "conftest.in" "conftest.nl" 3317 $as_echo 'GREP' >> "conftest.nl" 3318 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3319 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3320 as_fn_arith $ac_count + 1 && ac_count=$as_val 3321 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3322 # Best one so far, save it but keep looking for a better one 3323 ac_cv_path_GREP="$ac_path_GREP" 3324 ac_path_GREP_max=$ac_count 3325 fi 3326 # 10*(2^10) chars as input seems more than enough 3327 test $ac_count -gt 10 && break 3328 done 3329 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3330esac 3331 3332 $ac_path_GREP_found && break 3 3333 done 3334 done 3335 done 3336IFS=$as_save_IFS 3337 if test -z "$ac_cv_path_GREP"; then 3338 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3339 fi 3340else 3341 ac_cv_path_GREP=$GREP 3342fi 3343 3344fi 3345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3346$as_echo "$ac_cv_path_GREP" >&6; } 3347 GREP="$ac_cv_path_GREP" 3348 3349 3350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3351$as_echo_n "checking for egrep... " >&6; } 3352if ${ac_cv_path_EGREP+:} false; then : 3353 $as_echo_n "(cached) " >&6 3354else 3355 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3356 then ac_cv_path_EGREP="$GREP -E" 3357 else 3358 if test -z "$EGREP"; then 3359 ac_path_EGREP_found=false 3360 # Loop through the user's path and test for each of PROGNAME-LIST 3361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3362for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3363do 3364 IFS=$as_save_IFS 3365 test -z "$as_dir" && as_dir=. 3366 for ac_prog in egrep; do 3367 for ac_exec_ext in '' $ac_executable_extensions; do 3368 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3369 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3370# Check for GNU ac_path_EGREP and select it if it is found. 3371 # Check for GNU $ac_path_EGREP 3372case `"$ac_path_EGREP" --version 2>&1` in 3373*GNU*) 3374 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3375*) 3376 ac_count=0 3377 $as_echo_n 0123456789 >"conftest.in" 3378 while : 3379 do 3380 cat "conftest.in" "conftest.in" >"conftest.tmp" 3381 mv "conftest.tmp" "conftest.in" 3382 cp "conftest.in" "conftest.nl" 3383 $as_echo 'EGREP' >> "conftest.nl" 3384 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3385 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3386 as_fn_arith $ac_count + 1 && ac_count=$as_val 3387 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3388 # Best one so far, save it but keep looking for a better one 3389 ac_cv_path_EGREP="$ac_path_EGREP" 3390 ac_path_EGREP_max=$ac_count 3391 fi 3392 # 10*(2^10) chars as input seems more than enough 3393 test $ac_count -gt 10 && break 3394 done 3395 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3396esac 3397 3398 $ac_path_EGREP_found && break 3 3399 done 3400 done 3401 done 3402IFS=$as_save_IFS 3403 if test -z "$ac_cv_path_EGREP"; then 3404 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3405 fi 3406else 3407 ac_cv_path_EGREP=$EGREP 3408fi 3409 3410 fi 3411fi 3412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3413$as_echo "$ac_cv_path_EGREP" >&6; } 3414 EGREP="$ac_cv_path_EGREP" 3415 3416 3417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3418$as_echo_n "checking for ANSI C header files... " >&6; } 3419if ${ac_cv_header_stdc+:} false; then : 3420 $as_echo_n "(cached) " >&6 3421else 3422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3423/* end confdefs.h. */ 3424#include <stdlib.h> 3425#include <stdarg.h> 3426#include <string.h> 3427#include <float.h> 3428 3429int 3430main () 3431{ 3432 3433 ; 3434 return 0; 3435} 3436_ACEOF 3437if ac_fn_c_try_compile "$LINENO"; then : 3438 ac_cv_header_stdc=yes 3439else 3440 ac_cv_header_stdc=no 3441fi 3442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3443 3444if test $ac_cv_header_stdc = yes; then 3445 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3447/* end confdefs.h. */ 3448#include <string.h> 3449 3450_ACEOF 3451if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3452 $EGREP "memchr" >/dev/null 2>&1; then : 3453 3454else 3455 ac_cv_header_stdc=no 3456fi 3457rm -f conftest* 3458 3459fi 3460 3461if test $ac_cv_header_stdc = yes; then 3462 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3464/* end confdefs.h. */ 3465#include <stdlib.h> 3466 3467_ACEOF 3468if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3469 $EGREP "free" >/dev/null 2>&1; then : 3470 3471else 3472 ac_cv_header_stdc=no 3473fi 3474rm -f conftest* 3475 3476fi 3477 3478if test $ac_cv_header_stdc = yes; then 3479 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3480 if test "$cross_compiling" = yes; then : 3481 : 3482else 3483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3484/* end confdefs.h. */ 3485#include <ctype.h> 3486#include <stdlib.h> 3487#if ((' ' & 0x0FF) == 0x020) 3488# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3489# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3490#else 3491# define ISLOWER(c) \ 3492 (('a' <= (c) && (c) <= 'i') \ 3493 || ('j' <= (c) && (c) <= 'r') \ 3494 || ('s' <= (c) && (c) <= 'z')) 3495# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3496#endif 3497 3498#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3499int 3500main () 3501{ 3502 int i; 3503 for (i = 0; i < 256; i++) 3504 if (XOR (islower (i), ISLOWER (i)) 3505 || toupper (i) != TOUPPER (i)) 3506 return 2; 3507 return 0; 3508} 3509_ACEOF 3510if ac_fn_c_try_run "$LINENO"; then : 3511 3512else 3513 ac_cv_header_stdc=no 3514fi 3515rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3516 conftest.$ac_objext conftest.beam conftest.$ac_ext 3517fi 3518 3519fi 3520fi 3521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3522$as_echo "$ac_cv_header_stdc" >&6; } 3523if test $ac_cv_header_stdc = yes; then 3524 3525$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3526 3527fi 3528 3529# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3530for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3531 inttypes.h stdint.h unistd.h 3532do : 3533 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3534ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3535" 3536if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3537 cat >>confdefs.h <<_ACEOF 3538#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3539_ACEOF 3540 3541fi 3542 3543done 3544 3545 3546 3547 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 3548if test "x$ac_cv_header_minix_config_h" = xyes; then : 3549 MINIX=yes 3550else 3551 MINIX= 3552fi 3553 3554 3555 if test "$MINIX" = yes; then 3556 3557$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 3558 3559 3560$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 3561 3562 3563$as_echo "#define _MINIX 1" >>confdefs.h 3564 3565 fi 3566 3567 3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3569$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3570if ${ac_cv_safe_to_define___extensions__+:} false; then : 3571 $as_echo_n "(cached) " >&6 3572else 3573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3574/* end confdefs.h. */ 3575 3576# define __EXTENSIONS__ 1 3577 $ac_includes_default 3578int 3579main () 3580{ 3581 3582 ; 3583 return 0; 3584} 3585_ACEOF 3586if ac_fn_c_try_compile "$LINENO"; then : 3587 ac_cv_safe_to_define___extensions__=yes 3588else 3589 ac_cv_safe_to_define___extensions__=no 3590fi 3591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3592fi 3593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3594$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 3595 test $ac_cv_safe_to_define___extensions__ = yes && 3596 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 3597 3598 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 3599 3600 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 3601 3602 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3603 3604 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 3605 3606 3607 3608 3609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 3610$as_echo_n "checking for library containing strerror... " >&6; } 3611if ${ac_cv_search_strerror+:} false; then : 3612 $as_echo_n "(cached) " >&6 3613else 3614 ac_func_search_save_LIBS=$LIBS 3615cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3616/* end confdefs.h. */ 3617 3618/* Override any GCC internal prototype to avoid an error. 3619 Use char because int might match the return type of a GCC 3620 builtin and then its argument prototype would still apply. */ 3621#ifdef __cplusplus 3622extern "C" 3623#endif 3624char strerror (); 3625int 3626main () 3627{ 3628return strerror (); 3629 ; 3630 return 0; 3631} 3632_ACEOF 3633for ac_lib in '' cposix; do 3634 if test -z "$ac_lib"; then 3635 ac_res="none required" 3636 else 3637 ac_res=-l$ac_lib 3638 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3639 fi 3640 if ac_fn_c_try_link "$LINENO"; then : 3641 ac_cv_search_strerror=$ac_res 3642fi 3643rm -f core conftest.err conftest.$ac_objext \ 3644 conftest$ac_exeext 3645 if ${ac_cv_search_strerror+:} false; then : 3646 break 3647fi 3648done 3649if ${ac_cv_search_strerror+:} false; then : 3650 3651else 3652 ac_cv_search_strerror=no 3653fi 3654rm conftest.$ac_ext 3655LIBS=$ac_func_search_save_LIBS 3656fi 3657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 3658$as_echo "$ac_cv_search_strerror" >&6; } 3659ac_res=$ac_cv_search_strerror 3660if test "$ac_res" != no; then : 3661 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 3662 3663fi 3664 3665ac_ext=c 3666ac_cpp='$CPP $CPPFLAGS' 3667ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3668ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3669ac_compiler_gnu=$ac_cv_c_compiler_gnu 3670if test -n "$ac_tool_prefix"; then 3671 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3672set dummy ${ac_tool_prefix}gcc; ac_word=$2 3673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3674$as_echo_n "checking for $ac_word... " >&6; } 3675if ${ac_cv_prog_CC+:} false; then : 3676 $as_echo_n "(cached) " >&6 3677else 3678 if test -n "$CC"; then 3679 ac_cv_prog_CC="$CC" # Let the user override the test. 3680else 3681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3682for as_dir in $PATH 3683do 3684 IFS=$as_save_IFS 3685 test -z "$as_dir" && as_dir=. 3686 for ac_exec_ext in '' $ac_executable_extensions; do 3687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3688 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3690 break 2 3691 fi 3692done 3693 done 3694IFS=$as_save_IFS 3695 3696fi 3697fi 3698CC=$ac_cv_prog_CC 3699if test -n "$CC"; then 3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3701$as_echo "$CC" >&6; } 3702else 3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3704$as_echo "no" >&6; } 3705fi 3706 3707 3708fi 3709if test -z "$ac_cv_prog_CC"; then 3710 ac_ct_CC=$CC 3711 # Extract the first word of "gcc", so it can be a program name with args. 3712set dummy gcc; ac_word=$2 3713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3714$as_echo_n "checking for $ac_word... " >&6; } 3715if ${ac_cv_prog_ac_ct_CC+:} false; then : 3716 $as_echo_n "(cached) " >&6 3717else 3718 if test -n "$ac_ct_CC"; then 3719 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3720else 3721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3722for as_dir in $PATH 3723do 3724 IFS=$as_save_IFS 3725 test -z "$as_dir" && as_dir=. 3726 for ac_exec_ext in '' $ac_executable_extensions; do 3727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3728 ac_cv_prog_ac_ct_CC="gcc" 3729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3730 break 2 3731 fi 3732done 3733 done 3734IFS=$as_save_IFS 3735 3736fi 3737fi 3738ac_ct_CC=$ac_cv_prog_ac_ct_CC 3739if test -n "$ac_ct_CC"; then 3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3741$as_echo "$ac_ct_CC" >&6; } 3742else 3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3744$as_echo "no" >&6; } 3745fi 3746 3747 if test "x$ac_ct_CC" = x; then 3748 CC="" 3749 else 3750 case $cross_compiling:$ac_tool_warned in 3751yes:) 3752{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3753$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3754ac_tool_warned=yes ;; 3755esac 3756 CC=$ac_ct_CC 3757 fi 3758else 3759 CC="$ac_cv_prog_CC" 3760fi 3761 3762if test -z "$CC"; then 3763 if test -n "$ac_tool_prefix"; then 3764 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3765set dummy ${ac_tool_prefix}cc; ac_word=$2 3766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3767$as_echo_n "checking for $ac_word... " >&6; } 3768if ${ac_cv_prog_CC+:} false; then : 3769 $as_echo_n "(cached) " >&6 3770else 3771 if test -n "$CC"; then 3772 ac_cv_prog_CC="$CC" # Let the user override the test. 3773else 3774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3775for as_dir in $PATH 3776do 3777 IFS=$as_save_IFS 3778 test -z "$as_dir" && as_dir=. 3779 for ac_exec_ext in '' $ac_executable_extensions; do 3780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3781 ac_cv_prog_CC="${ac_tool_prefix}cc" 3782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3783 break 2 3784 fi 3785done 3786 done 3787IFS=$as_save_IFS 3788 3789fi 3790fi 3791CC=$ac_cv_prog_CC 3792if test -n "$CC"; then 3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3794$as_echo "$CC" >&6; } 3795else 3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3797$as_echo "no" >&6; } 3798fi 3799 3800 3801 fi 3802fi 3803if test -z "$CC"; then 3804 # Extract the first word of "cc", so it can be a program name with args. 3805set dummy cc; ac_word=$2 3806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3807$as_echo_n "checking for $ac_word... " >&6; } 3808if ${ac_cv_prog_CC+:} false; then : 3809 $as_echo_n "(cached) " >&6 3810else 3811 if test -n "$CC"; then 3812 ac_cv_prog_CC="$CC" # Let the user override the test. 3813else 3814 ac_prog_rejected=no 3815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3816for as_dir in $PATH 3817do 3818 IFS=$as_save_IFS 3819 test -z "$as_dir" && as_dir=. 3820 for ac_exec_ext in '' $ac_executable_extensions; do 3821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3822 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3823 ac_prog_rejected=yes 3824 continue 3825 fi 3826 ac_cv_prog_CC="cc" 3827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3828 break 2 3829 fi 3830done 3831 done 3832IFS=$as_save_IFS 3833 3834if test $ac_prog_rejected = yes; then 3835 # We found a bogon in the path, so make sure we never use it. 3836 set dummy $ac_cv_prog_CC 3837 shift 3838 if test $# != 0; then 3839 # We chose a different compiler from the bogus one. 3840 # However, it has the same basename, so the bogon will be chosen 3841 # first if we set CC to just the basename; use the full file name. 3842 shift 3843 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3844 fi 3845fi 3846fi 3847fi 3848CC=$ac_cv_prog_CC 3849if test -n "$CC"; then 3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3851$as_echo "$CC" >&6; } 3852else 3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3854$as_echo "no" >&6; } 3855fi 3856 3857 3858fi 3859if test -z "$CC"; then 3860 if test -n "$ac_tool_prefix"; then 3861 for ac_prog in cl.exe 3862 do 3863 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3864set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3866$as_echo_n "checking for $ac_word... " >&6; } 3867if ${ac_cv_prog_CC+:} false; then : 3868 $as_echo_n "(cached) " >&6 3869else 3870 if test -n "$CC"; then 3871 ac_cv_prog_CC="$CC" # Let the user override the test. 3872else 3873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3874for as_dir in $PATH 3875do 3876 IFS=$as_save_IFS 3877 test -z "$as_dir" && as_dir=. 3878 for ac_exec_ext in '' $ac_executable_extensions; do 3879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3880 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3882 break 2 3883 fi 3884done 3885 done 3886IFS=$as_save_IFS 3887 3888fi 3889fi 3890CC=$ac_cv_prog_CC 3891if test -n "$CC"; then 3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3893$as_echo "$CC" >&6; } 3894else 3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3896$as_echo "no" >&6; } 3897fi 3898 3899 3900 test -n "$CC" && break 3901 done 3902fi 3903if test -z "$CC"; then 3904 ac_ct_CC=$CC 3905 for ac_prog in cl.exe 3906do 3907 # Extract the first word of "$ac_prog", so it can be a program name with args. 3908set dummy $ac_prog; ac_word=$2 3909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3910$as_echo_n "checking for $ac_word... " >&6; } 3911if ${ac_cv_prog_ac_ct_CC+:} false; then : 3912 $as_echo_n "(cached) " >&6 3913else 3914 if test -n "$ac_ct_CC"; then 3915 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3916else 3917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3918for as_dir in $PATH 3919do 3920 IFS=$as_save_IFS 3921 test -z "$as_dir" && as_dir=. 3922 for ac_exec_ext in '' $ac_executable_extensions; do 3923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3924 ac_cv_prog_ac_ct_CC="$ac_prog" 3925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3926 break 2 3927 fi 3928done 3929 done 3930IFS=$as_save_IFS 3931 3932fi 3933fi 3934ac_ct_CC=$ac_cv_prog_ac_ct_CC 3935if test -n "$ac_ct_CC"; then 3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3937$as_echo "$ac_ct_CC" >&6; } 3938else 3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3940$as_echo "no" >&6; } 3941fi 3942 3943 3944 test -n "$ac_ct_CC" && break 3945done 3946 3947 if test "x$ac_ct_CC" = x; then 3948 CC="" 3949 else 3950 case $cross_compiling:$ac_tool_warned in 3951yes:) 3952{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3953$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3954ac_tool_warned=yes ;; 3955esac 3956 CC=$ac_ct_CC 3957 fi 3958fi 3959 3960fi 3961 3962 3963test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3964$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3965as_fn_error $? "no acceptable C compiler found in \$PATH 3966See \`config.log' for more details" "$LINENO" 5; } 3967 3968# Provide some information about the compiler. 3969$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3970set X $ac_compile 3971ac_compiler=$2 3972for ac_option in --version -v -V -qversion; do 3973 { { ac_try="$ac_compiler $ac_option >&5" 3974case "(($ac_try" in 3975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3976 *) ac_try_echo=$ac_try;; 3977esac 3978eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3979$as_echo "$ac_try_echo"; } >&5 3980 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3981 ac_status=$? 3982 if test -s conftest.err; then 3983 sed '10a\ 3984... rest of stderr output deleted ... 3985 10q' conftest.err >conftest.er1 3986 cat conftest.er1 >&5 3987 fi 3988 rm -f conftest.er1 conftest.err 3989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3990 test $ac_status = 0; } 3991done 3992 3993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3994$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3995if ${ac_cv_c_compiler_gnu+:} false; then : 3996 $as_echo_n "(cached) " >&6 3997else 3998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3999/* end confdefs.h. */ 4000 4001int 4002main () 4003{ 4004#ifndef __GNUC__ 4005 choke me 4006#endif 4007 4008 ; 4009 return 0; 4010} 4011_ACEOF 4012if ac_fn_c_try_compile "$LINENO"; then : 4013 ac_compiler_gnu=yes 4014else 4015 ac_compiler_gnu=no 4016fi 4017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4018ac_cv_c_compiler_gnu=$ac_compiler_gnu 4019 4020fi 4021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4022$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4023if test $ac_compiler_gnu = yes; then 4024 GCC=yes 4025else 4026 GCC= 4027fi 4028ac_test_CFLAGS=${CFLAGS+set} 4029ac_save_CFLAGS=$CFLAGS 4030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4031$as_echo_n "checking whether $CC accepts -g... " >&6; } 4032if ${ac_cv_prog_cc_g+:} false; then : 4033 $as_echo_n "(cached) " >&6 4034else 4035 ac_save_c_werror_flag=$ac_c_werror_flag 4036 ac_c_werror_flag=yes 4037 ac_cv_prog_cc_g=no 4038 CFLAGS="-g" 4039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4040/* end confdefs.h. */ 4041 4042int 4043main () 4044{ 4045 4046 ; 4047 return 0; 4048} 4049_ACEOF 4050if ac_fn_c_try_compile "$LINENO"; then : 4051 ac_cv_prog_cc_g=yes 4052else 4053 CFLAGS="" 4054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4055/* end confdefs.h. */ 4056 4057int 4058main () 4059{ 4060 4061 ; 4062 return 0; 4063} 4064_ACEOF 4065if ac_fn_c_try_compile "$LINENO"; then : 4066 4067else 4068 ac_c_werror_flag=$ac_save_c_werror_flag 4069 CFLAGS="-g" 4070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4071/* end confdefs.h. */ 4072 4073int 4074main () 4075{ 4076 4077 ; 4078 return 0; 4079} 4080_ACEOF 4081if ac_fn_c_try_compile "$LINENO"; then : 4082 ac_cv_prog_cc_g=yes 4083fi 4084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4085fi 4086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4087fi 4088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4089 ac_c_werror_flag=$ac_save_c_werror_flag 4090fi 4091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4092$as_echo "$ac_cv_prog_cc_g" >&6; } 4093if test "$ac_test_CFLAGS" = set; then 4094 CFLAGS=$ac_save_CFLAGS 4095elif test $ac_cv_prog_cc_g = yes; then 4096 if test "$GCC" = yes; then 4097 CFLAGS="-g -O2" 4098 else 4099 CFLAGS="-g" 4100 fi 4101else 4102 if test "$GCC" = yes; then 4103 CFLAGS="-O2" 4104 else 4105 CFLAGS= 4106 fi 4107fi 4108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4109$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4110if ${ac_cv_prog_cc_c89+:} false; then : 4111 $as_echo_n "(cached) " >&6 4112else 4113 ac_cv_prog_cc_c89=no 4114ac_save_CC=$CC 4115cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4116/* end confdefs.h. */ 4117#include <stdarg.h> 4118#include <stdio.h> 4119#include <sys/types.h> 4120#include <sys/stat.h> 4121/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4122struct buf { int x; }; 4123FILE * (*rcsopen) (struct buf *, struct stat *, int); 4124static char *e (p, i) 4125 char **p; 4126 int i; 4127{ 4128 return p[i]; 4129} 4130static char *f (char * (*g) (char **, int), char **p, ...) 4131{ 4132 char *s; 4133 va_list v; 4134 va_start (v,p); 4135 s = g (p, va_arg (v,int)); 4136 va_end (v); 4137 return s; 4138} 4139 4140/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4141 function prototypes and stuff, but not '\xHH' hex character constants. 4142 These don't provoke an error unfortunately, instead are silently treated 4143 as 'x'. The following induces an error, until -std is added to get 4144 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4145 array size at least. It's necessary to write '\x00'==0 to get something 4146 that's true only with -std. */ 4147int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4148 4149/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4150 inside strings and character constants. */ 4151#define FOO(x) 'x' 4152int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4153 4154int test (int i, double x); 4155struct s1 {int (*f) (int a);}; 4156struct s2 {int (*f) (double a);}; 4157int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4158int argc; 4159char **argv; 4160int 4161main () 4162{ 4163return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4164 ; 4165 return 0; 4166} 4167_ACEOF 4168for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4169 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4170do 4171 CC="$ac_save_CC $ac_arg" 4172 if ac_fn_c_try_compile "$LINENO"; then : 4173 ac_cv_prog_cc_c89=$ac_arg 4174fi 4175rm -f core conftest.err conftest.$ac_objext 4176 test "x$ac_cv_prog_cc_c89" != "xno" && break 4177done 4178rm -f conftest.$ac_ext 4179CC=$ac_save_CC 4180 4181fi 4182# AC_CACHE_VAL 4183case "x$ac_cv_prog_cc_c89" in 4184 x) 4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4186$as_echo "none needed" >&6; } ;; 4187 xno) 4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4189$as_echo "unsupported" >&6; } ;; 4190 *) 4191 CC="$CC $ac_cv_prog_cc_c89" 4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4193$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4194esac 4195if test "x$ac_cv_prog_cc_c89" != xno; then : 4196 4197fi 4198 4199ac_ext=c 4200ac_cpp='$CPP $CPPFLAGS' 4201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4203ac_compiler_gnu=$ac_cv_c_compiler_gnu 4204 4205 4206am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc 4207 4208ac_aux_dir= 4209for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 4210 if test -f "$ac_dir/install-sh"; then 4211 ac_aux_dir=$ac_dir 4212 ac_install_sh="$ac_aux_dir/install-sh -c" 4213 break 4214 elif test -f "$ac_dir/install.sh"; then 4215 ac_aux_dir=$ac_dir 4216 ac_install_sh="$ac_aux_dir/install.sh -c" 4217 break 4218 elif test -f "$ac_dir/shtool"; then 4219 ac_aux_dir=$ac_dir 4220 ac_install_sh="$ac_aux_dir/shtool install -c" 4221 break 4222 fi 4223done 4224if test -z "$ac_aux_dir"; then 4225 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 4226fi 4227 4228# These three variables are undocumented and unsupported, 4229# and are intended to be withdrawn in a future Autoconf release. 4230# They can cause serious problems if a builder's source tree is in a directory 4231# whose full name contains unusual characters. 4232ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 4233ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 4234ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 4235 4236 4237# Find a good install program. We prefer a C program (faster), 4238# so one script is as good as another. But avoid the broken or 4239# incompatible versions: 4240# SysV /etc/install, /usr/sbin/install 4241# SunOS /usr/etc/install 4242# IRIX /sbin/install 4243# AIX /bin/install 4244# AmigaOS /C/install, which installs bootblocks on floppy discs 4245# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4246# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4247# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4248# OS/2's system install, which has a completely different semantic 4249# ./install, which can be erroneously created by make from ./install.sh. 4250# Reject install programs that cannot install multiple files. 4251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 4252$as_echo_n "checking for a BSD-compatible install... " >&6; } 4253if test -z "$INSTALL"; then 4254if ${ac_cv_path_install+:} false; then : 4255 $as_echo_n "(cached) " >&6 4256else 4257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4258for as_dir in $PATH 4259do 4260 IFS=$as_save_IFS 4261 test -z "$as_dir" && as_dir=. 4262 # Account for people who put trailing slashes in PATH elements. 4263case $as_dir/ in #(( 4264 ./ | .// | /[cC]/* | \ 4265 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4266 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 4267 /usr/ucb/* ) ;; 4268 *) 4269 # OSF1 and SCO ODT 3.0 have their own names for install. 4270 # Don't use installbsd from OSF since it installs stuff as root 4271 # by default. 4272 for ac_prog in ginstall scoinst install; do 4273 for ac_exec_ext in '' $ac_executable_extensions; do 4274 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 4275 if test $ac_prog = install && 4276 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4277 # AIX install. It has an incompatible calling convention. 4278 : 4279 elif test $ac_prog = install && 4280 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4281 # program-specific install script used by HP pwplus--don't use. 4282 : 4283 else 4284 rm -rf conftest.one conftest.two conftest.dir 4285 echo one > conftest.one 4286 echo two > conftest.two 4287 mkdir conftest.dir 4288 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 4289 test -s conftest.one && test -s conftest.two && 4290 test -s conftest.dir/conftest.one && 4291 test -s conftest.dir/conftest.two 4292 then 4293 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 4294 break 3 4295 fi 4296 fi 4297 fi 4298 done 4299 done 4300 ;; 4301esac 4302 4303 done 4304IFS=$as_save_IFS 4305 4306rm -rf conftest.one conftest.two conftest.dir 4307 4308fi 4309 if test "${ac_cv_path_install+set}" = set; then 4310 INSTALL=$ac_cv_path_install 4311 else 4312 # As a last resort, use the slow shell script. Don't cache a 4313 # value for INSTALL within a source directory, because that will 4314 # break other packages using the cache if that directory is 4315 # removed, or if the value is a relative name. 4316 INSTALL=$ac_install_sh 4317 fi 4318fi 4319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 4320$as_echo "$INSTALL" >&6; } 4321 4322# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4323# It thinks the first close brace ends the variable substitution. 4324test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4325 4326test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4327 4328test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4329 4330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4331$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4332set x ${MAKE-make} 4333ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4334if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4335 $as_echo_n "(cached) " >&6 4336else 4337 cat >conftest.make <<\_ACEOF 4338SHELL = /bin/sh 4339all: 4340 @echo '@@@%%%=$(MAKE)=@@@%%%' 4341_ACEOF 4342# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4343case `${MAKE-make} -f conftest.make 2>/dev/null` in 4344 *@@@%%%=?*=@@@%%%*) 4345 eval ac_cv_prog_make_${ac_make}_set=yes;; 4346 *) 4347 eval ac_cv_prog_make_${ac_make}_set=no;; 4348esac 4349rm -f conftest.make 4350fi 4351if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4353$as_echo "yes" >&6; } 4354 SET_MAKE= 4355else 4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4357$as_echo "no" >&6; } 4358 SET_MAKE="MAKE=${MAKE-make}" 4359fi 4360 4361ac_ext=c 4362ac_cpp='$CPP $CPPFLAGS' 4363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4365ac_compiler_gnu=$ac_cv_c_compiler_gnu 4366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4367$as_echo_n "checking how to run the C preprocessor... " >&6; } 4368# On Suns, sometimes $CPP names a directory. 4369if test -n "$CPP" && test -d "$CPP"; then 4370 CPP= 4371fi 4372if test -z "$CPP"; then 4373 if ${ac_cv_prog_CPP+:} false; then : 4374 $as_echo_n "(cached) " >&6 4375else 4376 # Double quotes because CPP needs to be expanded 4377 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4378 do 4379 ac_preproc_ok=false 4380for ac_c_preproc_warn_flag in '' yes 4381do 4382 # Use a header file that comes with gcc, so configuring glibc 4383 # with a fresh cross-compiler works. 4384 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4385 # <limits.h> exists even on freestanding compilers. 4386 # On the NeXT, cc -E runs the code through the compiler's parser, 4387 # not just through cpp. "Syntax error" is here to catch this case. 4388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4389/* end confdefs.h. */ 4390#ifdef __STDC__ 4391# include <limits.h> 4392#else 4393# include <assert.h> 4394#endif 4395 Syntax error 4396_ACEOF 4397if ac_fn_c_try_cpp "$LINENO"; then : 4398 4399else 4400 # Broken: fails on valid input. 4401continue 4402fi 4403rm -f conftest.err conftest.i conftest.$ac_ext 4404 4405 # OK, works on sane cases. Now check whether nonexistent headers 4406 # can be detected and how. 4407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4408/* end confdefs.h. */ 4409#include <ac_nonexistent.h> 4410_ACEOF 4411if ac_fn_c_try_cpp "$LINENO"; then : 4412 # Broken: success on invalid input. 4413continue 4414else 4415 # Passes both tests. 4416ac_preproc_ok=: 4417break 4418fi 4419rm -f conftest.err conftest.i conftest.$ac_ext 4420 4421done 4422# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4423rm -f conftest.i conftest.err conftest.$ac_ext 4424if $ac_preproc_ok; then : 4425 break 4426fi 4427 4428 done 4429 ac_cv_prog_CPP=$CPP 4430 4431fi 4432 CPP=$ac_cv_prog_CPP 4433else 4434 ac_cv_prog_CPP=$CPP 4435fi 4436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4437$as_echo "$CPP" >&6; } 4438ac_preproc_ok=false 4439for ac_c_preproc_warn_flag in '' yes 4440do 4441 # Use a header file that comes with gcc, so configuring glibc 4442 # with a fresh cross-compiler works. 4443 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4444 # <limits.h> exists even on freestanding compilers. 4445 # On the NeXT, cc -E runs the code through the compiler's parser, 4446 # not just through cpp. "Syntax error" is here to catch this case. 4447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4448/* end confdefs.h. */ 4449#ifdef __STDC__ 4450# include <limits.h> 4451#else 4452# include <assert.h> 4453#endif 4454 Syntax error 4455_ACEOF 4456if ac_fn_c_try_cpp "$LINENO"; then : 4457 4458else 4459 # Broken: fails on valid input. 4460continue 4461fi 4462rm -f conftest.err conftest.i conftest.$ac_ext 4463 4464 # OK, works on sane cases. Now check whether nonexistent headers 4465 # can be detected and how. 4466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4467/* end confdefs.h. */ 4468#include <ac_nonexistent.h> 4469_ACEOF 4470if ac_fn_c_try_cpp "$LINENO"; then : 4471 # Broken: success on invalid input. 4472continue 4473else 4474 # Passes both tests. 4475ac_preproc_ok=: 4476break 4477fi 4478rm -f conftest.err conftest.i conftest.$ac_ext 4479 4480done 4481# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4482rm -f conftest.i conftest.err conftest.$ac_ext 4483if $ac_preproc_ok; then : 4484 4485else 4486 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4487$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4488as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4489See \`config.log' for more details" "$LINENO" 5; } 4490fi 4491 4492ac_ext=c 4493ac_cpp='$CPP $CPPFLAGS' 4494ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4495ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4496ac_compiler_gnu=$ac_cv_c_compiler_gnu 4497 4498if test $ac_cv_c_compiler_gnu = yes; then 4499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 4500$as_echo_n "checking whether $CC needs -traditional... " >&6; } 4501if ${ac_cv_prog_gcc_traditional+:} false; then : 4502 $as_echo_n "(cached) " >&6 4503else 4504 ac_pattern="Autoconf.*'x'" 4505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4506/* end confdefs.h. */ 4507#include <sgtty.h> 4508Autoconf TIOCGETP 4509_ACEOF 4510if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4511 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 4512 ac_cv_prog_gcc_traditional=yes 4513else 4514 ac_cv_prog_gcc_traditional=no 4515fi 4516rm -f conftest* 4517 4518 4519 if test $ac_cv_prog_gcc_traditional = no; then 4520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4521/* end confdefs.h. */ 4522#include <termio.h> 4523Autoconf TCGETA 4524_ACEOF 4525if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4526 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 4527 ac_cv_prog_gcc_traditional=yes 4528fi 4529rm -f conftest* 4530 4531 fi 4532fi 4533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 4534$as_echo "$ac_cv_prog_gcc_traditional" >&6; } 4535 if test $ac_cv_prog_gcc_traditional = yes; then 4536 CC="$CC -traditional" 4537 fi 4538fi 4539 4540 4541INCLUDES="${INCLUDES} -I/usr/local/include" 4542CPPFLAGS="${CPPFLAGS} -D_GNU_SOURCE" 4543if test "${ac_cv_c_compiler_gnu}" = "yes"; then 4544 CFLAGS="${CFLAGS} -Wall" 4545fi 4546 4547 for ac_header in windows.h 4548do : 4549 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" 4550if test "x$ac_cv_header_windows_h" = xyes; then : 4551 cat >>confdefs.h <<_ACEOF 4552#define HAVE_WINDOWS_H 1 4553_ACEOF 4554 4555 if test x"$GCC" = xyes; then 4556 msnative_struct='' 4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get MSVC-compatible struct packing" >&5 4558$as_echo_n "checking how to get MSVC-compatible struct packing... " >&6; } 4559 if test -z "$ac_cv_prog_CC"; then 4560 our_gcc="$CC" 4561 else 4562 our_gcc="$ac_cv_prog_CC" 4563 fi 4564 case `$our_gcc --version | sed -e 's,\..*,.,' -e q` in 4565 2.) 4566 if $our_gcc -v --help 2>/dev/null | grep fnative-struct >/dev/null; then 4567 msnative_struct='-fnative-struct' 4568 fi 4569 ;; 4570 *) 4571 if $our_gcc -v --help 2>/dev/null | grep ms-bitfields >/dev/null; then 4572 msnative_struct='-mms-bitfields' 4573 fi 4574 ;; 4575 esac 4576 if test x"$msnative_struct" = x ; then 4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no way" >&5 4578$as_echo "no way" >&6; } 4579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: produced libraries might be incompatible with MSVC-compiled code" >&5 4580$as_echo "$as_me: WARNING: produced libraries might be incompatible with MSVC-compiled code" >&2;} 4581 else 4582 CFLAGS="$CFLAGS $msnative_struct" 4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${msnative_struct}" >&5 4584$as_echo "${msnative_struct}" >&6; } 4585 fi 4586 fi 4587 4588fi 4589 4590done 4591 4592 4593if test "${ac_cv_header_windows_h}" = "yes"; then 4594 LDFLAGS="${LDFLAGS} -mwindows" 4595 XSANE_ICON="xsane-icon.opc" 4596fi 4597 4598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4599$as_echo_n "checking for ANSI C header files... " >&6; } 4600if ${ac_cv_header_stdc+:} false; then : 4601 $as_echo_n "(cached) " >&6 4602else 4603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4604/* end confdefs.h. */ 4605#include <stdlib.h> 4606#include <stdarg.h> 4607#include <string.h> 4608#include <float.h> 4609 4610int 4611main () 4612{ 4613 4614 ; 4615 return 0; 4616} 4617_ACEOF 4618if ac_fn_c_try_compile "$LINENO"; then : 4619 ac_cv_header_stdc=yes 4620else 4621 ac_cv_header_stdc=no 4622fi 4623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4624 4625if test $ac_cv_header_stdc = yes; then 4626 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4628/* end confdefs.h. */ 4629#include <string.h> 4630 4631_ACEOF 4632if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4633 $EGREP "memchr" >/dev/null 2>&1; then : 4634 4635else 4636 ac_cv_header_stdc=no 4637fi 4638rm -f conftest* 4639 4640fi 4641 4642if test $ac_cv_header_stdc = yes; then 4643 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4645/* end confdefs.h. */ 4646#include <stdlib.h> 4647 4648_ACEOF 4649if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4650 $EGREP "free" >/dev/null 2>&1; then : 4651 4652else 4653 ac_cv_header_stdc=no 4654fi 4655rm -f conftest* 4656 4657fi 4658 4659if test $ac_cv_header_stdc = yes; then 4660 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4661 if test "$cross_compiling" = yes; then : 4662 : 4663else 4664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4665/* end confdefs.h. */ 4666#include <ctype.h> 4667#include <stdlib.h> 4668#if ((' ' & 0x0FF) == 0x020) 4669# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4670# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4671#else 4672# define ISLOWER(c) \ 4673 (('a' <= (c) && (c) <= 'i') \ 4674 || ('j' <= (c) && (c) <= 'r') \ 4675 || ('s' <= (c) && (c) <= 'z')) 4676# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4677#endif 4678 4679#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4680int 4681main () 4682{ 4683 int i; 4684 for (i = 0; i < 256; i++) 4685 if (XOR (islower (i), ISLOWER (i)) 4686 || toupper (i) != TOUPPER (i)) 4687 return 2; 4688 return 0; 4689} 4690_ACEOF 4691if ac_fn_c_try_run "$LINENO"; then : 4692 4693else 4694 ac_cv_header_stdc=no 4695fi 4696rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4697 conftest.$ac_objext conftest.beam conftest.$ac_ext 4698fi 4699 4700fi 4701fi 4702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4703$as_echo "$ac_cv_header_stdc" >&6; } 4704if test $ac_cv_header_stdc = yes; then 4705 4706$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4707 4708fi 4709 4710for ac_header in windows.h os2.h fcntl.h unistd.h libc.h sys/time.h sys/types.h zlib.h 4711do : 4712 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4713ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 4714if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4715 cat >>confdefs.h <<_ACEOF 4716#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4717_ACEOF 4718 4719fi 4720 4721done 4722 4723 4724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 4725$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 4726if ${ac_cv_c_const+:} false; then : 4727 $as_echo_n "(cached) " >&6 4728else 4729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4730/* end confdefs.h. */ 4731 4732int 4733main () 4734{ 4735/* FIXME: Include the comments suggested by Paul. */ 4736#ifndef __cplusplus 4737 /* Ultrix mips cc rejects this. */ 4738 typedef int charset[2]; 4739 const charset cs; 4740 /* SunOS 4.1.1 cc rejects this. */ 4741 char const *const *pcpcc; 4742 char **ppc; 4743 /* NEC SVR4.0.2 mips cc rejects this. */ 4744 struct point {int x, y;}; 4745 static struct point const zero = {0,0}; 4746 /* AIX XL C 1.02.0.0 rejects this. 4747 It does not let you subtract one const X* pointer from another in 4748 an arm of an if-expression whose if-part is not a constant 4749 expression */ 4750 const char *g = "string"; 4751 pcpcc = &g + (g ? g-g : 0); 4752 /* HPUX 7.0 cc rejects these. */ 4753 ++pcpcc; 4754 ppc = (char**) pcpcc; 4755 pcpcc = (char const *const *) ppc; 4756 { /* SCO 3.2v4 cc rejects this. */ 4757 char *t; 4758 char const *s = 0 ? (char *) 0 : (char const *) 0; 4759 4760 *t++ = 0; 4761 if (s) return 0; 4762 } 4763 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 4764 int x[] = {25, 17}; 4765 const int *foo = &x[0]; 4766 ++foo; 4767 } 4768 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 4769 typedef const int *iptr; 4770 iptr p = 0; 4771 ++p; 4772 } 4773 { /* AIX XL C 1.02.0.0 rejects this saying 4774 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 4775 struct s { int j; const int *ap[3]; }; 4776 struct s *b; b->j = 5; 4777 } 4778 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 4779 const int foo = 10; 4780 if (!foo) return 0; 4781 } 4782 return !cs[0] && !zero.x; 4783#endif 4784 4785 ; 4786 return 0; 4787} 4788_ACEOF 4789if ac_fn_c_try_compile "$LINENO"; then : 4790 ac_cv_c_const=yes 4791else 4792 ac_cv_c_const=no 4793fi 4794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4795fi 4796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 4797$as_echo "$ac_cv_c_const" >&6; } 4798if test $ac_cv_c_const = no; then 4799 4800$as_echo "#define const /**/" >>confdefs.h 4801 4802fi 4803 4804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 4805$as_echo_n "checking for inline... " >&6; } 4806if ${ac_cv_c_inline+:} false; then : 4807 $as_echo_n "(cached) " >&6 4808else 4809 ac_cv_c_inline=no 4810for ac_kw in inline __inline__ __inline; do 4811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4812/* end confdefs.h. */ 4813#ifndef __cplusplus 4814typedef int foo_t; 4815static $ac_kw foo_t static_foo () {return 0; } 4816$ac_kw foo_t foo () {return 0; } 4817#endif 4818 4819_ACEOF 4820if ac_fn_c_try_compile "$LINENO"; then : 4821 ac_cv_c_inline=$ac_kw 4822fi 4823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4824 test "$ac_cv_c_inline" != no && break 4825done 4826 4827fi 4828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 4829$as_echo "$ac_cv_c_inline" >&6; } 4830 4831case $ac_cv_c_inline in 4832 inline | yes) ;; 4833 *) 4834 case $ac_cv_c_inline in 4835 no) ac_val=;; 4836 *) ac_val=$ac_cv_c_inline;; 4837 esac 4838 cat >>confdefs.h <<_ACEOF 4839#ifndef __cplusplus 4840#define inline $ac_val 4841#endif 4842_ACEOF 4843 ;; 4844esac 4845 4846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 4847$as_echo_n "checking return type of signal handlers... " >&6; } 4848if ${ac_cv_type_signal+:} false; then : 4849 $as_echo_n "(cached) " >&6 4850else 4851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4852/* end confdefs.h. */ 4853#include <sys/types.h> 4854#include <signal.h> 4855 4856int 4857main () 4858{ 4859return *(signal (0, 0)) (0) == 1; 4860 ; 4861 return 0; 4862} 4863_ACEOF 4864if ac_fn_c_try_compile "$LINENO"; then : 4865 ac_cv_type_signal=int 4866else 4867 ac_cv_type_signal=void 4868fi 4869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4870fi 4871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 4872$as_echo "$ac_cv_type_signal" >&6; } 4873 4874cat >>confdefs.h <<_ACEOF 4875#define RETSIGTYPE $ac_cv_type_signal 4876_ACEOF 4877 4878 4879ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 4880if test "x$ac_cv_type_size_t" = xyes; then : 4881 4882else 4883 4884cat >>confdefs.h <<_ACEOF 4885#define size_t unsigned int 4886_ACEOF 4887 4888fi 4889 4890ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 4891if test "x$ac_cv_type_pid_t" = xyes; then : 4892 4893else 4894 4895cat >>confdefs.h <<_ACEOF 4896#define pid_t int 4897_ACEOF 4898 4899fi 4900 4901ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 4902if test "x$ac_cv_type_ssize_t" = xyes; then : 4903 4904else 4905 4906cat >>confdefs.h <<_ACEOF 4907#define ssize_t long 4908_ACEOF 4909 4910fi 4911 4912ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "$ac_includes_default" 4913if test "x$ac_cv_type_u_char" = xyes; then : 4914 4915else 4916 4917cat >>confdefs.h <<_ACEOF 4918#define u_char unsigned char 4919_ACEOF 4920 4921fi 4922 4923ac_fn_c_check_type "$LINENO" "u_int" "ac_cv_type_u_int" "$ac_includes_default" 4924if test "x$ac_cv_type_u_int" = xyes; then : 4925 4926else 4927 4928cat >>confdefs.h <<_ACEOF 4929#define u_int unsigned int 4930_ACEOF 4931 4932fi 4933 4934ac_fn_c_check_type "$LINENO" "u_long" "ac_cv_type_u_long" "$ac_includes_default" 4935if test "x$ac_cv_type_u_long" = xyes; then : 4936 4937else 4938 4939cat >>confdefs.h <<_ACEOF 4940#define u_long unsigned long 4941_ACEOF 4942 4943fi 4944 4945 4946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5 4947$as_echo_n "checking for sqrt in -lm... " >&6; } 4948if ${ac_cv_lib_m_sqrt+:} false; then : 4949 $as_echo_n "(cached) " >&6 4950else 4951 ac_check_lib_save_LIBS=$LIBS 4952LIBS="-lm $LIBS" 4953cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4954/* end confdefs.h. */ 4955 4956/* Override any GCC internal prototype to avoid an error. 4957 Use char because int might match the return type of a GCC 4958 builtin and then its argument prototype would still apply. */ 4959#ifdef __cplusplus 4960extern "C" 4961#endif 4962char sqrt (); 4963int 4964main () 4965{ 4966return sqrt (); 4967 ; 4968 return 0; 4969} 4970_ACEOF 4971if ac_fn_c_try_link "$LINENO"; then : 4972 ac_cv_lib_m_sqrt=yes 4973else 4974 ac_cv_lib_m_sqrt=no 4975fi 4976rm -f core conftest.err conftest.$ac_objext \ 4977 conftest$ac_exeext conftest.$ac_ext 4978LIBS=$ac_check_lib_save_LIBS 4979fi 4980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5 4981$as_echo "$ac_cv_lib_m_sqrt" >&6; } 4982if test "x$ac_cv_lib_m_sqrt" = xyes; then : 4983 cat >>confdefs.h <<_ACEOF 4984#define HAVE_LIBM 1 4985_ACEOF 4986 4987 LIBS="-lm $LIBS" 4988 4989fi 4990 4991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflateInit_ in -lz" >&5 4992$as_echo_n "checking for deflateInit_ in -lz... " >&6; } 4993if ${ac_cv_lib_z_deflateInit_+:} false; then : 4994 $as_echo_n "(cached) " >&6 4995else 4996 ac_check_lib_save_LIBS=$LIBS 4997LIBS="-lz $LIBS" 4998cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4999/* end confdefs.h. */ 5000 5001/* Override any GCC internal prototype to avoid an error. 5002 Use char because int might match the return type of a GCC 5003 builtin and then its argument prototype would still apply. */ 5004#ifdef __cplusplus 5005extern "C" 5006#endif 5007char deflateInit_ (); 5008int 5009main () 5010{ 5011return deflateInit_ (); 5012 ; 5013 return 0; 5014} 5015_ACEOF 5016if ac_fn_c_try_link "$LINENO"; then : 5017 ac_cv_lib_z_deflateInit_=yes 5018else 5019 ac_cv_lib_z_deflateInit_=no 5020fi 5021rm -f core conftest.err conftest.$ac_objext \ 5022 conftest$ac_exeext conftest.$ac_ext 5023LIBS=$ac_check_lib_save_LIBS 5024fi 5025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflateInit_" >&5 5026$as_echo "$ac_cv_lib_z_deflateInit_" >&6; } 5027if test "x$ac_cv_lib_z_deflateInit_" = xyes; then : 5028 cat >>confdefs.h <<_ACEOF 5029#define HAVE_LIBZ 1 5030_ACEOF 5031 5032 LIBS="-lz $LIBS" 5033 5034fi 5035 5036 5037if test "${USE_JPEG}" = "yes"; then 5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_start_decompress in -ljpeg" >&5 5039$as_echo_n "checking for jpeg_start_decompress in -ljpeg... " >&6; } 5040if ${ac_cv_lib_jpeg_jpeg_start_decompress+:} false; then : 5041 $as_echo_n "(cached) " >&6 5042else 5043 ac_check_lib_save_LIBS=$LIBS 5044LIBS="-ljpeg $LIBS" 5045cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5046/* end confdefs.h. */ 5047 5048/* Override any GCC internal prototype to avoid an error. 5049 Use char because int might match the return type of a GCC 5050 builtin and then its argument prototype would still apply. */ 5051#ifdef __cplusplus 5052extern "C" 5053#endif 5054char jpeg_start_decompress (); 5055int 5056main () 5057{ 5058return jpeg_start_decompress (); 5059 ; 5060 return 0; 5061} 5062_ACEOF 5063if ac_fn_c_try_link "$LINENO"; then : 5064 ac_cv_lib_jpeg_jpeg_start_decompress=yes 5065else 5066 ac_cv_lib_jpeg_jpeg_start_decompress=no 5067fi 5068rm -f core conftest.err conftest.$ac_objext \ 5069 conftest$ac_exeext conftest.$ac_ext 5070LIBS=$ac_check_lib_save_LIBS 5071fi 5072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5 5073$as_echo "$ac_cv_lib_jpeg_jpeg_start_decompress" >&6; } 5074if test "x$ac_cv_lib_jpeg_jpeg_start_decompress" = xyes; then : 5075 cat >>confdefs.h <<_ACEOF 5076#define HAVE_LIBJPEG 1 5077_ACEOF 5078 5079 LIBS="-ljpeg $LIBS" 5080 5081fi 5082 5083fi 5084 5085# tiff test must stand after test for zlib 5086if test "${USE_TIFF}" = "yes"; then 5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5 5088$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; } 5089if ${ac_cv_lib_tiff_TIFFOpen+:} false; then : 5090 $as_echo_n "(cached) " >&6 5091else 5092 ac_check_lib_save_LIBS=$LIBS 5093LIBS="-ltiff $LIBS" 5094cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5095/* end confdefs.h. */ 5096 5097/* Override any GCC internal prototype to avoid an error. 5098 Use char because int might match the return type of a GCC 5099 builtin and then its argument prototype would still apply. */ 5100#ifdef __cplusplus 5101extern "C" 5102#endif 5103char TIFFOpen (); 5104int 5105main () 5106{ 5107return TIFFOpen (); 5108 ; 5109 return 0; 5110} 5111_ACEOF 5112if ac_fn_c_try_link "$LINENO"; then : 5113 ac_cv_lib_tiff_TIFFOpen=yes 5114else 5115 ac_cv_lib_tiff_TIFFOpen=no 5116fi 5117rm -f core conftest.err conftest.$ac_objext \ 5118 conftest$ac_exeext conftest.$ac_ext 5119LIBS=$ac_check_lib_save_LIBS 5120fi 5121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5 5122$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; } 5123if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then : 5124 cat >>confdefs.h <<_ACEOF 5125#define HAVE_LIBTIFF 1 5126_ACEOF 5127 5128 LIBS="-ltiff $LIBS" 5129 5130fi 5131 5132fi 5133 5134if test "${USE_LCMS}" = "yes"; then 5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5 5136$as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; } 5137if ${ac_cv_lib_lcms_cmsOpenProfileFromFile+:} false; then : 5138 $as_echo_n "(cached) " >&6 5139else 5140 ac_check_lib_save_LIBS=$LIBS 5141LIBS="-llcms $LIBS" 5142cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5143/* end confdefs.h. */ 5144 5145/* Override any GCC internal prototype to avoid an error. 5146 Use char because int might match the return type of a GCC 5147 builtin and then its argument prototype would still apply. */ 5148#ifdef __cplusplus 5149extern "C" 5150#endif 5151char cmsOpenProfileFromFile (); 5152int 5153main () 5154{ 5155return cmsOpenProfileFromFile (); 5156 ; 5157 return 0; 5158} 5159_ACEOF 5160if ac_fn_c_try_link "$LINENO"; then : 5161 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes 5162else 5163 ac_cv_lib_lcms_cmsOpenProfileFromFile=no 5164fi 5165rm -f core conftest.err conftest.$ac_objext \ 5166 conftest$ac_exeext conftest.$ac_ext 5167LIBS=$ac_check_lib_save_LIBS 5168fi 5169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5 5170$as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; } 5171if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = xyes; then : 5172 cat >>confdefs.h <<_ACEOF 5173#define HAVE_LIBLCMS 1 5174_ACEOF 5175 5176 LIBS="-llcms $LIBS" 5177 5178fi 5179 5180fi 5181 5182# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 5183# for constant arguments. Useless! 5184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 5185$as_echo_n "checking for working alloca.h... " >&6; } 5186if ${ac_cv_working_alloca_h+:} false; then : 5187 $as_echo_n "(cached) " >&6 5188else 5189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5190/* end confdefs.h. */ 5191#include <alloca.h> 5192int 5193main () 5194{ 5195char *p = (char *) alloca (2 * sizeof (int)); 5196 if (p) return 0; 5197 ; 5198 return 0; 5199} 5200_ACEOF 5201if ac_fn_c_try_link "$LINENO"; then : 5202 ac_cv_working_alloca_h=yes 5203else 5204 ac_cv_working_alloca_h=no 5205fi 5206rm -f core conftest.err conftest.$ac_objext \ 5207 conftest$ac_exeext conftest.$ac_ext 5208fi 5209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 5210$as_echo "$ac_cv_working_alloca_h" >&6; } 5211if test $ac_cv_working_alloca_h = yes; then 5212 5213$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 5214 5215fi 5216 5217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 5218$as_echo_n "checking for alloca... " >&6; } 5219if ${ac_cv_func_alloca_works+:} false; then : 5220 $as_echo_n "(cached) " >&6 5221else 5222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5223/* end confdefs.h. */ 5224#ifdef __GNUC__ 5225# define alloca __builtin_alloca 5226#else 5227# ifdef _MSC_VER 5228# include <malloc.h> 5229# define alloca _alloca 5230# else 5231# ifdef HAVE_ALLOCA_H 5232# include <alloca.h> 5233# else 5234# ifdef _AIX 5235 #pragma alloca 5236# else 5237# ifndef alloca /* predefined by HP cc +Olibcalls */ 5238void *alloca (size_t); 5239# endif 5240# endif 5241# endif 5242# endif 5243#endif 5244 5245int 5246main () 5247{ 5248char *p = (char *) alloca (1); 5249 if (p) return 0; 5250 ; 5251 return 0; 5252} 5253_ACEOF 5254if ac_fn_c_try_link "$LINENO"; then : 5255 ac_cv_func_alloca_works=yes 5256else 5257 ac_cv_func_alloca_works=no 5258fi 5259rm -f core conftest.err conftest.$ac_objext \ 5260 conftest$ac_exeext conftest.$ac_ext 5261fi 5262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 5263$as_echo "$ac_cv_func_alloca_works" >&6; } 5264 5265if test $ac_cv_func_alloca_works = yes; then 5266 5267$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 5268 5269else 5270 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 5271# that cause trouble. Some versions do not even contain alloca or 5272# contain a buggy version. If you still want to use their alloca, 5273# use ar to extract alloca.o from them instead of compiling alloca.c. 5274 5275ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 5276 5277$as_echo "#define C_ALLOCA 1" >>confdefs.h 5278 5279 5280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 5281$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 5282if ${ac_cv_os_cray+:} false; then : 5283 $as_echo_n "(cached) " >&6 5284else 5285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5286/* end confdefs.h. */ 5287#if defined CRAY && ! defined CRAY2 5288webecray 5289#else 5290wenotbecray 5291#endif 5292 5293_ACEOF 5294if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5295 $EGREP "webecray" >/dev/null 2>&1; then : 5296 ac_cv_os_cray=yes 5297else 5298 ac_cv_os_cray=no 5299fi 5300rm -f conftest* 5301 5302fi 5303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 5304$as_echo "$ac_cv_os_cray" >&6; } 5305if test $ac_cv_os_cray = yes; then 5306 for ac_func in _getb67 GETB67 getb67; do 5307 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 5308ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 5309if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 5310 5311cat >>confdefs.h <<_ACEOF 5312#define CRAY_STACKSEG_END $ac_func 5313_ACEOF 5314 5315 break 5316fi 5317 5318 done 5319fi 5320 5321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 5322$as_echo_n "checking stack direction for C alloca... " >&6; } 5323if ${ac_cv_c_stack_direction+:} false; then : 5324 $as_echo_n "(cached) " >&6 5325else 5326 if test "$cross_compiling" = yes; then : 5327 ac_cv_c_stack_direction=0 5328else 5329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5330/* end confdefs.h. */ 5331$ac_includes_default 5332int 5333find_stack_direction () 5334{ 5335 static char *addr = 0; 5336 auto char dummy; 5337 if (addr == 0) 5338 { 5339 addr = &dummy; 5340 return find_stack_direction (); 5341 } 5342 else 5343 return (&dummy > addr) ? 1 : -1; 5344} 5345 5346int 5347main () 5348{ 5349 return find_stack_direction () < 0; 5350} 5351_ACEOF 5352if ac_fn_c_try_run "$LINENO"; then : 5353 ac_cv_c_stack_direction=1 5354else 5355 ac_cv_c_stack_direction=-1 5356fi 5357rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5358 conftest.$ac_objext conftest.beam conftest.$ac_ext 5359fi 5360 5361fi 5362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 5363$as_echo "$ac_cv_c_stack_direction" >&6; } 5364cat >>confdefs.h <<_ACEOF 5365#define STACK_DIRECTION $ac_cv_c_stack_direction 5366_ACEOF 5367 5368 5369fi 5370 5371 5372 5373 5374 for ac_header in $ac_header_list 5375do : 5376 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5377ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5378" 5379if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5380 cat >>confdefs.h <<_ACEOF 5381#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5382_ACEOF 5383 5384fi 5385 5386done 5387 5388 5389 5390 5391 5392 5393 5394 5395for ac_func in getpagesize 5396do : 5397 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 5398if test "x$ac_cv_func_getpagesize" = xyes; then : 5399 cat >>confdefs.h <<_ACEOF 5400#define HAVE_GETPAGESIZE 1 5401_ACEOF 5402 5403fi 5404done 5405 5406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 5407$as_echo_n "checking for working mmap... " >&6; } 5408if ${ac_cv_func_mmap_fixed_mapped+:} false; then : 5409 $as_echo_n "(cached) " >&6 5410else 5411 if test "$cross_compiling" = yes; then : 5412 ac_cv_func_mmap_fixed_mapped=no 5413else 5414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5415/* end confdefs.h. */ 5416$ac_includes_default 5417/* malloc might have been renamed as rpl_malloc. */ 5418#undef malloc 5419 5420/* Thanks to Mike Haertel and Jim Avera for this test. 5421 Here is a matrix of mmap possibilities: 5422 mmap private not fixed 5423 mmap private fixed at somewhere currently unmapped 5424 mmap private fixed at somewhere already mapped 5425 mmap shared not fixed 5426 mmap shared fixed at somewhere currently unmapped 5427 mmap shared fixed at somewhere already mapped 5428 For private mappings, we should verify that changes cannot be read() 5429 back from the file, nor mmap's back from the file at a different 5430 address. (There have been systems where private was not correctly 5431 implemented like the infamous i386 svr4.0, and systems where the 5432 VM page cache was not coherent with the file system buffer cache 5433 like early versions of FreeBSD and possibly contemporary NetBSD.) 5434 For shared mappings, we should conversely verify that changes get 5435 propagated back to all the places they're supposed to be. 5436 5437 Grep wants private fixed already mapped. 5438 The main things grep needs to know about mmap are: 5439 * does it exist and is it safe to write into the mmap'd area 5440 * how to use it (BSD variants) */ 5441 5442#include <fcntl.h> 5443#include <sys/mman.h> 5444 5445#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 5446char *malloc (); 5447#endif 5448 5449/* This mess was copied from the GNU getpagesize.h. */ 5450#ifndef HAVE_GETPAGESIZE 5451# ifdef _SC_PAGESIZE 5452# define getpagesize() sysconf(_SC_PAGESIZE) 5453# else /* no _SC_PAGESIZE */ 5454# ifdef HAVE_SYS_PARAM_H 5455# include <sys/param.h> 5456# ifdef EXEC_PAGESIZE 5457# define getpagesize() EXEC_PAGESIZE 5458# else /* no EXEC_PAGESIZE */ 5459# ifdef NBPG 5460# define getpagesize() NBPG * CLSIZE 5461# ifndef CLSIZE 5462# define CLSIZE 1 5463# endif /* no CLSIZE */ 5464# else /* no NBPG */ 5465# ifdef NBPC 5466# define getpagesize() NBPC 5467# else /* no NBPC */ 5468# ifdef PAGESIZE 5469# define getpagesize() PAGESIZE 5470# endif /* PAGESIZE */ 5471# endif /* no NBPC */ 5472# endif /* no NBPG */ 5473# endif /* no EXEC_PAGESIZE */ 5474# else /* no HAVE_SYS_PARAM_H */ 5475# define getpagesize() 8192 /* punt totally */ 5476# endif /* no HAVE_SYS_PARAM_H */ 5477# endif /* no _SC_PAGESIZE */ 5478 5479#endif /* no HAVE_GETPAGESIZE */ 5480 5481int 5482main () 5483{ 5484 char *data, *data2, *data3; 5485 const char *cdata2; 5486 int i, pagesize; 5487 int fd, fd2; 5488 5489 pagesize = getpagesize (); 5490 5491 /* First, make a file with some known garbage in it. */ 5492 data = (char *) malloc (pagesize); 5493 if (!data) 5494 return 1; 5495 for (i = 0; i < pagesize; ++i) 5496 *(data + i) = rand (); 5497 umask (0); 5498 fd = creat ("conftest.mmap", 0600); 5499 if (fd < 0) 5500 return 2; 5501 if (write (fd, data, pagesize) != pagesize) 5502 return 3; 5503 close (fd); 5504 5505 /* Next, check that the tail of a page is zero-filled. File must have 5506 non-zero length, otherwise we risk SIGBUS for entire page. */ 5507 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 5508 if (fd2 < 0) 5509 return 4; 5510 cdata2 = ""; 5511 if (write (fd2, cdata2, 1) != 1) 5512 return 5; 5513 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 5514 if (data2 == MAP_FAILED) 5515 return 6; 5516 for (i = 0; i < pagesize; ++i) 5517 if (*(data2 + i)) 5518 return 7; 5519 close (fd2); 5520 if (munmap (data2, pagesize)) 5521 return 8; 5522 5523 /* Next, try to mmap the file at a fixed address which already has 5524 something else allocated at it. If we can, also make sure that 5525 we see the same garbage. */ 5526 fd = open ("conftest.mmap", O_RDWR); 5527 if (fd < 0) 5528 return 9; 5529 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 5530 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 5531 return 10; 5532 for (i = 0; i < pagesize; ++i) 5533 if (*(data + i) != *(data2 + i)) 5534 return 11; 5535 5536 /* Finally, make sure that changes to the mapped area do not 5537 percolate back to the file as seen by read(). (This is a bug on 5538 some variants of i386 svr4.0.) */ 5539 for (i = 0; i < pagesize; ++i) 5540 *(data2 + i) = *(data2 + i) + 1; 5541 data3 = (char *) malloc (pagesize); 5542 if (!data3) 5543 return 12; 5544 if (read (fd, data3, pagesize) != pagesize) 5545 return 13; 5546 for (i = 0; i < pagesize; ++i) 5547 if (*(data + i) != *(data3 + i)) 5548 return 14; 5549 close (fd); 5550 return 0; 5551} 5552_ACEOF 5553if ac_fn_c_try_run "$LINENO"; then : 5554 ac_cv_func_mmap_fixed_mapped=yes 5555else 5556 ac_cv_func_mmap_fixed_mapped=no 5557fi 5558rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5559 conftest.$ac_objext conftest.beam conftest.$ac_ext 5560fi 5561 5562fi 5563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 5564$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 5565if test $ac_cv_func_mmap_fixed_mapped = yes; then 5566 5567$as_echo "#define HAVE_MMAP 1" >>confdefs.h 5568 5569fi 5570rm -f conftest.mmap conftest.txt 5571 5572for ac_func in atexit mkdir sigprocmask strdup strndup strftime strstr strsep strtod snprintf usleep strcasecmp strncasecmp lstat 5573do : 5574 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 5575ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 5576if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 5577 cat >>confdefs.h <<_ACEOF 5578#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 5579_ACEOF 5580 5581fi 5582done 5583 5584 5585if test -n "$ac_tool_prefix"; then 5586 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5587set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5589$as_echo_n "checking for $ac_word... " >&6; } 5590if ${ac_cv_prog_RANLIB+:} false; then : 5591 $as_echo_n "(cached) " >&6 5592else 5593 if test -n "$RANLIB"; then 5594 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5595else 5596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5597for as_dir in $PATH 5598do 5599 IFS=$as_save_IFS 5600 test -z "$as_dir" && as_dir=. 5601 for ac_exec_ext in '' $ac_executable_extensions; do 5602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5603 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5605 break 2 5606 fi 5607done 5608 done 5609IFS=$as_save_IFS 5610 5611fi 5612fi 5613RANLIB=$ac_cv_prog_RANLIB 5614if test -n "$RANLIB"; then 5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5616$as_echo "$RANLIB" >&6; } 5617else 5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5619$as_echo "no" >&6; } 5620fi 5621 5622 5623fi 5624if test -z "$ac_cv_prog_RANLIB"; then 5625 ac_ct_RANLIB=$RANLIB 5626 # Extract the first word of "ranlib", so it can be a program name with args. 5627set dummy ranlib; ac_word=$2 5628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5629$as_echo_n "checking for $ac_word... " >&6; } 5630if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5631 $as_echo_n "(cached) " >&6 5632else 5633 if test -n "$ac_ct_RANLIB"; then 5634 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5635else 5636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5637for as_dir in $PATH 5638do 5639 IFS=$as_save_IFS 5640 test -z "$as_dir" && as_dir=. 5641 for ac_exec_ext in '' $ac_executable_extensions; do 5642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5643 ac_cv_prog_ac_ct_RANLIB="ranlib" 5644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5645 break 2 5646 fi 5647done 5648 done 5649IFS=$as_save_IFS 5650 5651fi 5652fi 5653ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5654if test -n "$ac_ct_RANLIB"; then 5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5656$as_echo "$ac_ct_RANLIB" >&6; } 5657else 5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5659$as_echo "no" >&6; } 5660fi 5661 5662 if test "x$ac_ct_RANLIB" = x; then 5663 RANLIB=":" 5664 else 5665 case $cross_compiling:$ac_tool_warned in 5666yes:) 5667{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5668$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5669ac_tool_warned=yes ;; 5670esac 5671 RANLIB=$ac_ct_RANLIB 5672 fi 5673else 5674 RANLIB="$ac_cv_prog_RANLIB" 5675fi 5676 5677ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 5678if test "x$ac_cv_type_off_t" = xyes; then : 5679 5680else 5681 5682cat >>confdefs.h <<_ACEOF 5683#define off_t long int 5684_ACEOF 5685 5686fi 5687 5688 5689 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \ 5690unistd.h values.h sys/param.h 5691do : 5692 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5693ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 5694if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5695 cat >>confdefs.h <<_ACEOF 5696#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5697_ACEOF 5698 5699fi 5700 5701done 5702 5703 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ 5704__argz_count __argz_stringify __argz_next 5705do : 5706 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 5707ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 5708if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 5709 cat >>confdefs.h <<_ACEOF 5710#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 5711_ACEOF 5712 5713fi 5714done 5715 5716 5717 if test "${ac_cv_func_stpcpy+set}" != "set"; then 5718 for ac_func in stpcpy 5719do : 5720 ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy" 5721if test "x$ac_cv_func_stpcpy" = xyes; then : 5722 cat >>confdefs.h <<_ACEOF 5723#define HAVE_STPCPY 1 5724_ACEOF 5725 5726fi 5727done 5728 5729 fi 5730 if test "${ac_cv_func_stpcpy}" = "yes"; then 5731 $as_echo "#define HAVE_STPCPY 1" >>confdefs.h 5732 5733 fi 5734 5735 if test $ac_cv_header_locale_h = yes; then 5736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 5737$as_echo_n "checking for LC_MESSAGES... " >&6; } 5738if ${am_cv_val_LC_MESSAGES+:} false; then : 5739 $as_echo_n "(cached) " >&6 5740else 5741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5742/* end confdefs.h. */ 5743#include <locale.h> 5744int 5745main () 5746{ 5747return LC_MESSAGES 5748 ; 5749 return 0; 5750} 5751_ACEOF 5752if ac_fn_c_try_link "$LINENO"; then : 5753 am_cv_val_LC_MESSAGES=yes 5754else 5755 am_cv_val_LC_MESSAGES=no 5756fi 5757rm -f core conftest.err conftest.$ac_objext \ 5758 conftest$ac_exeext conftest.$ac_ext 5759fi 5760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5 5761$as_echo "$am_cv_val_LC_MESSAGES" >&6; } 5762 if test $am_cv_val_LC_MESSAGES = yes; then 5763 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h 5764 5765 fi 5766 fi 5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 5768$as_echo_n "checking whether NLS is requested... " >&6; } 5769 # Check whether --enable-nls was given. 5770if test "${enable_nls+set}" = set; then : 5771 enableval=$enable_nls; USE_NLS=$enableval 5772else 5773 USE_NLS=yes 5774fi 5775 5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 5777$as_echo "$USE_NLS" >&6; } 5778 5779 5780 USE_INCLUDED_LIBINTL=no 5781 5782 if test "$USE_NLS" = "yes"; then 5783 $as_echo "#define ENABLE_NLS 1" >>confdefs.h 5784 5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5 5786$as_echo_n "checking whether included gettext is requested... " >&6; } 5787 5788# Check whether --with-included-gettext was given. 5789if test "${with_included_gettext+set}" = set; then : 5790 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval 5791else 5792 nls_cv_force_use_gnu_gettext=no 5793fi 5794 5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5 5796$as_echo "$nls_cv_force_use_gnu_gettext" >&6; } 5797 5798 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" 5799 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then 5800 nls_cv_header_intl= 5801 nls_cv_header_libgt= 5802 CATOBJEXT=NONE 5803 5804 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default" 5805if test "x$ac_cv_header_libintl_h" = xyes; then : 5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in libc" >&5 5807$as_echo_n "checking for gettext in libc... " >&6; } 5808if ${gt_cv_func_gettext_libc+:} false; then : 5809 $as_echo_n "(cached) " >&6 5810else 5811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5812/* end confdefs.h. */ 5813#include <libintl.h> 5814int 5815main () 5816{ 5817return (int) gettext ("") 5818 ; 5819 return 0; 5820} 5821_ACEOF 5822if ac_fn_c_try_link "$LINENO"; then : 5823 gt_cv_func_gettext_libc=yes 5824else 5825 gt_cv_func_gettext_libc=no 5826fi 5827rm -f core conftest.err conftest.$ac_objext \ 5828 conftest$ac_exeext conftest.$ac_ext 5829fi 5830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gettext_libc" >&5 5831$as_echo "$gt_cv_func_gettext_libc" >&6; } 5832 5833 if test "$gt_cv_func_gettext_libc" != "yes"; then 5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5 5835$as_echo_n "checking for bindtextdomain in -lintl... " >&6; } 5836if ${ac_cv_lib_intl_bindtextdomain+:} false; then : 5837 $as_echo_n "(cached) " >&6 5838else 5839 ac_check_lib_save_LIBS=$LIBS 5840LIBS="-lintl $LIBS" 5841cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5842/* end confdefs.h. */ 5843 5844/* Override any GCC internal prototype to avoid an error. 5845 Use char because int might match the return type of a GCC 5846 builtin and then its argument prototype would still apply. */ 5847#ifdef __cplusplus 5848extern "C" 5849#endif 5850char bindtextdomain (); 5851int 5852main () 5853{ 5854return bindtextdomain (); 5855 ; 5856 return 0; 5857} 5858_ACEOF 5859if ac_fn_c_try_link "$LINENO"; then : 5860 ac_cv_lib_intl_bindtextdomain=yes 5861else 5862 ac_cv_lib_intl_bindtextdomain=no 5863fi 5864rm -f core conftest.err conftest.$ac_objext \ 5865 conftest$ac_exeext conftest.$ac_ext 5866LIBS=$ac_check_lib_save_LIBS 5867fi 5868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5 5869$as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; } 5870if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then : 5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in libintl" >&5 5872$as_echo_n "checking for gettext in libintl... " >&6; } 5873if ${gt_cv_func_gettext_libintl+:} false; then : 5874 $as_echo_n "(cached) " >&6 5875else 5876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5877/* end confdefs.h. */ 5878 5879int 5880main () 5881{ 5882return (int) gettext ("") 5883 ; 5884 return 0; 5885} 5886_ACEOF 5887if ac_fn_c_try_link "$LINENO"; then : 5888 gt_cv_func_gettext_libintl=yes 5889else 5890 gt_cv_func_gettext_libintl=no 5891fi 5892rm -f core conftest.err conftest.$ac_objext \ 5893 conftest$ac_exeext conftest.$ac_ext 5894fi 5895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gettext_libintl" >&5 5896$as_echo "$gt_cv_func_gettext_libintl" >&6; } 5897fi 5898 5899 fi 5900 5901 if test "$gt_cv_func_gettext_libintl" = "yes"; then 5902 LIBS="-lintl $LIBS" 5903 fi 5904 5905 if test "$gt_cv_func_gettext_libc" = "yes" \ 5906 || test "$gt_cv_func_gettext_libintl" = "yes"; then 5907 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 5908 5909 # Extract the first word of "msgfmt", so it can be a program name with args. 5910set dummy msgfmt; ac_word=$2 5911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5912$as_echo_n "checking for $ac_word... " >&6; } 5913if ${ac_cv_path_MSGFMT+:} false; then : 5914 $as_echo_n "(cached) " >&6 5915else 5916 case "$MSGFMT" in 5917 /*) 5918 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 5919 ;; 5920 *) 5921 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 5922 for ac_dir in $PATH; do 5923 test -z "$ac_dir" && ac_dir=. 5924 if test -f $ac_dir/$ac_word; then 5925 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then 5926 ac_cv_path_MSGFMT="$ac_dir/$ac_word" 5927 break 5928 fi 5929 fi 5930 done 5931 IFS="$ac_save_ifs" 5932 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" 5933 ;; 5934esac 5935fi 5936MSGFMT="$ac_cv_path_MSGFMT" 5937if test -n "$MSGFMT"; then 5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 5939$as_echo "$MSGFMT" >&6; } 5940else 5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5942$as_echo "no" >&6; } 5943fi 5944 if test "$MSGFMT" != "no"; then 5945 for ac_func in dcgettext 5946do : 5947 ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext" 5948if test "x$ac_cv_func_dcgettext" = xyes; then : 5949 cat >>confdefs.h <<_ACEOF 5950#define HAVE_DCGETTEXT 1 5951_ACEOF 5952 5953fi 5954done 5955 5956 # Extract the first word of "gmsgfmt", so it can be a program name with args. 5957set dummy gmsgfmt; ac_word=$2 5958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5959$as_echo_n "checking for $ac_word... " >&6; } 5960if ${ac_cv_path_GMSGFMT+:} false; then : 5961 $as_echo_n "(cached) " >&6 5962else 5963 case $GMSGFMT in 5964 [\\/]* | ?:[\\/]*) 5965 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 5966 ;; 5967 *) 5968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5969for as_dir in $PATH 5970do 5971 IFS=$as_save_IFS 5972 test -z "$as_dir" && as_dir=. 5973 for ac_exec_ext in '' $ac_executable_extensions; do 5974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5975 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 5976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5977 break 2 5978 fi 5979done 5980 done 5981IFS=$as_save_IFS 5982 5983 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 5984 ;; 5985esac 5986fi 5987GMSGFMT=$ac_cv_path_GMSGFMT 5988if test -n "$GMSGFMT"; then 5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 5990$as_echo "$GMSGFMT" >&6; } 5991else 5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5993$as_echo "no" >&6; } 5994fi 5995 5996 5997 # Extract the first word of "xgettext", so it can be a program name with args. 5998set dummy xgettext; ac_word=$2 5999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6000$as_echo_n "checking for $ac_word... " >&6; } 6001if ${ac_cv_path_XGETTEXT+:} false; then : 6002 $as_echo_n "(cached) " >&6 6003else 6004 case "$XGETTEXT" in 6005 /*) 6006 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 6007 ;; 6008 *) 6009 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 6010 for ac_dir in $PATH; do 6011 test -z "$ac_dir" && ac_dir=. 6012 if test -f $ac_dir/$ac_word; then 6013 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then 6014 ac_cv_path_XGETTEXT="$ac_dir/$ac_word" 6015 break 6016 fi 6017 fi 6018 done 6019 IFS="$ac_save_ifs" 6020 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 6021 ;; 6022esac 6023fi 6024XGETTEXT="$ac_cv_path_XGETTEXT" 6025if test -n "$XGETTEXT"; then 6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 6027$as_echo "$XGETTEXT" >&6; } 6028else 6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6030$as_echo "no" >&6; } 6031fi 6032 6033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6034/* end confdefs.h. */ 6035 6036int 6037main () 6038{ 6039extern int _nl_msg_cat_cntr; 6040 return _nl_msg_cat_cntr 6041 ; 6042 return 0; 6043} 6044_ACEOF 6045if ac_fn_c_try_link "$LINENO"; then : 6046 CATOBJEXT=.gmo 6047 DATADIRNAME=share 6048else 6049 CATOBJEXT=.mo 6050 DATADIRNAME=lib 6051fi 6052rm -f core conftest.err conftest.$ac_objext \ 6053 conftest$ac_exeext conftest.$ac_ext 6054 INSTOBJEXT=.mo 6055 fi 6056 fi 6057 6058fi 6059 6060 6061 6062 if test "$CATOBJEXT" = "NONE"; then 6063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether catgets can be used" >&5 6064$as_echo_n "checking whether catgets can be used... " >&6; } 6065 6066# Check whether --with-catgets was given. 6067if test "${with_catgets+set}" = set; then : 6068 withval=$with_catgets; nls_cv_use_catgets=$withval 6069else 6070 nls_cv_use_catgets=no 6071fi 6072 6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_use_catgets" >&5 6074$as_echo "$nls_cv_use_catgets" >&6; } 6075 6076 if test "$nls_cv_use_catgets" = "yes"; then 6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -li" >&5 6078$as_echo_n "checking for main in -li... " >&6; } 6079if ${ac_cv_lib_i_main+:} false; then : 6080 $as_echo_n "(cached) " >&6 6081else 6082 ac_check_lib_save_LIBS=$LIBS 6083LIBS="-li $LIBS" 6084cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6085/* end confdefs.h. */ 6086 6087 6088int 6089main () 6090{ 6091return main (); 6092 ; 6093 return 0; 6094} 6095_ACEOF 6096if ac_fn_c_try_link "$LINENO"; then : 6097 ac_cv_lib_i_main=yes 6098else 6099 ac_cv_lib_i_main=no 6100fi 6101rm -f core conftest.err conftest.$ac_objext \ 6102 conftest$ac_exeext conftest.$ac_ext 6103LIBS=$ac_check_lib_save_LIBS 6104fi 6105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i_main" >&5 6106$as_echo "$ac_cv_lib_i_main" >&6; } 6107if test "x$ac_cv_lib_i_main" = xyes; then : 6108 cat >>confdefs.h <<_ACEOF 6109#define HAVE_LIBI 1 6110_ACEOF 6111 6112 LIBS="-li $LIBS" 6113 6114fi 6115 6116 ac_fn_c_check_func "$LINENO" "catgets" "ac_cv_func_catgets" 6117if test "x$ac_cv_func_catgets" = xyes; then : 6118 $as_echo "#define HAVE_CATGETS 1" >>confdefs.h 6119 6120 INTLOBJS="\$(CATOBJS)" 6121 # Extract the first word of "gencat", so it can be a program name with args. 6122set dummy gencat; ac_word=$2 6123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6124$as_echo_n "checking for $ac_word... " >&6; } 6125if ${ac_cv_path_GENCAT+:} false; then : 6126 $as_echo_n "(cached) " >&6 6127else 6128 case $GENCAT in 6129 [\\/]* | ?:[\\/]*) 6130 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path. 6131 ;; 6132 *) 6133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6134for as_dir in $PATH 6135do 6136 IFS=$as_save_IFS 6137 test -z "$as_dir" && as_dir=. 6138 for ac_exec_ext in '' $ac_executable_extensions; do 6139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6140 ac_cv_path_GENCAT="$as_dir/$ac_word$ac_exec_ext" 6141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6142 break 2 6143 fi 6144done 6145 done 6146IFS=$as_save_IFS 6147 6148 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no" 6149 ;; 6150esac 6151fi 6152GENCAT=$ac_cv_path_GENCAT 6153if test -n "$GENCAT"; then 6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENCAT" >&5 6155$as_echo "$GENCAT" >&6; } 6156else 6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6158$as_echo "no" >&6; } 6159fi 6160 6161 if test "$GENCAT" != "no"; then 6162 # Extract the first word of "gmsgfmt", so it can be a program name with args. 6163set dummy gmsgfmt; ac_word=$2 6164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6165$as_echo_n "checking for $ac_word... " >&6; } 6166if ${ac_cv_path_GMSGFMT+:} false; then : 6167 $as_echo_n "(cached) " >&6 6168else 6169 case $GMSGFMT in 6170 [\\/]* | ?:[\\/]*) 6171 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 6172 ;; 6173 *) 6174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6175for as_dir in $PATH 6176do 6177 IFS=$as_save_IFS 6178 test -z "$as_dir" && as_dir=. 6179 for ac_exec_ext in '' $ac_executable_extensions; do 6180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6181 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 6182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6183 break 2 6184 fi 6185done 6186 done 6187IFS=$as_save_IFS 6188 6189 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no" 6190 ;; 6191esac 6192fi 6193GMSGFMT=$ac_cv_path_GMSGFMT 6194if test -n "$GMSGFMT"; then 6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 6196$as_echo "$GMSGFMT" >&6; } 6197else 6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6199$as_echo "no" >&6; } 6200fi 6201 6202 6203 if test "$GMSGFMT" = "no"; then 6204 # Extract the first word of "msgfmt", so it can be a program name with args. 6205set dummy msgfmt; ac_word=$2 6206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6207$as_echo_n "checking for $ac_word... " >&6; } 6208if ${ac_cv_path_GMSGFMT+:} false; then : 6209 $as_echo_n "(cached) " >&6 6210else 6211 case "$GMSGFMT" in 6212 /*) 6213 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 6214 ;; 6215 *) 6216 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 6217 for ac_dir in $PATH; do 6218 test -z "$ac_dir" && ac_dir=. 6219 if test -f $ac_dir/$ac_word; then 6220 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then 6221 ac_cv_path_GMSGFMT="$ac_dir/$ac_word" 6222 break 6223 fi 6224 fi 6225 done 6226 IFS="$ac_save_ifs" 6227 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no" 6228 ;; 6229esac 6230fi 6231GMSGFMT="$ac_cv_path_GMSGFMT" 6232if test -n "$GMSGFMT"; then 6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 6234$as_echo "$GMSGFMT" >&6; } 6235else 6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6237$as_echo "no" >&6; } 6238fi 6239 6240 fi 6241 # Extract the first word of "xgettext", so it can be a program name with args. 6242set dummy xgettext; ac_word=$2 6243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6244$as_echo_n "checking for $ac_word... " >&6; } 6245if ${ac_cv_path_XGETTEXT+:} false; then : 6246 $as_echo_n "(cached) " >&6 6247else 6248 case "$XGETTEXT" in 6249 /*) 6250 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 6251 ;; 6252 *) 6253 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 6254 for ac_dir in $PATH; do 6255 test -z "$ac_dir" && ac_dir=. 6256 if test -f $ac_dir/$ac_word; then 6257 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then 6258 ac_cv_path_XGETTEXT="$ac_dir/$ac_word" 6259 break 6260 fi 6261 fi 6262 done 6263 IFS="$ac_save_ifs" 6264 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 6265 ;; 6266esac 6267fi 6268XGETTEXT="$ac_cv_path_XGETTEXT" 6269if test -n "$XGETTEXT"; then 6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 6271$as_echo "$XGETTEXT" >&6; } 6272else 6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6274$as_echo "no" >&6; } 6275fi 6276 6277 USE_INCLUDED_LIBINTL=yes 6278 CATOBJEXT=.cat 6279 INSTOBJEXT=.cat 6280 DATADIRNAME=lib 6281 INTLDEPS='$(top_builddir)/intl/libintl.a' 6282 INTLLIBS=$INTLDEPS 6283 LIBS=`echo $LIBS | sed -e 's/-lintl//'` 6284 nls_cv_header_intl=intl/libintl.h 6285 nls_cv_header_libgt=intl/libgettext.h 6286 fi 6287fi 6288 6289 fi 6290 fi 6291 6292 if test "$CATOBJEXT" = "NONE"; then 6293 nls_cv_use_gnu_gettext=yes 6294 fi 6295 fi 6296 6297 if test "$nls_cv_use_gnu_gettext" = "yes"; then 6298 INTLOBJS="\$(GETTOBJS)" 6299 # Extract the first word of "msgfmt", so it can be a program name with args. 6300set dummy msgfmt; ac_word=$2 6301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6302$as_echo_n "checking for $ac_word... " >&6; } 6303if ${ac_cv_path_MSGFMT+:} false; then : 6304 $as_echo_n "(cached) " >&6 6305else 6306 case "$MSGFMT" in 6307 /*) 6308 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 6309 ;; 6310 *) 6311 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 6312 for ac_dir in $PATH; do 6313 test -z "$ac_dir" && ac_dir=. 6314 if test -f $ac_dir/$ac_word; then 6315 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then 6316 ac_cv_path_MSGFMT="$ac_dir/$ac_word" 6317 break 6318 fi 6319 fi 6320 done 6321 IFS="$ac_save_ifs" 6322 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" 6323 ;; 6324esac 6325fi 6326MSGFMT="$ac_cv_path_MSGFMT" 6327if test -n "$MSGFMT"; then 6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 6329$as_echo "$MSGFMT" >&6; } 6330else 6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6332$as_echo "no" >&6; } 6333fi 6334 6335 # Extract the first word of "gmsgfmt", so it can be a program name with args. 6336set dummy gmsgfmt; ac_word=$2 6337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6338$as_echo_n "checking for $ac_word... " >&6; } 6339if ${ac_cv_path_GMSGFMT+:} false; then : 6340 $as_echo_n "(cached) " >&6 6341else 6342 case $GMSGFMT in 6343 [\\/]* | ?:[\\/]*) 6344 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 6345 ;; 6346 *) 6347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6348for as_dir in $PATH 6349do 6350 IFS=$as_save_IFS 6351 test -z "$as_dir" && as_dir=. 6352 for ac_exec_ext in '' $ac_executable_extensions; do 6353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6354 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 6355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6356 break 2 6357 fi 6358done 6359 done 6360IFS=$as_save_IFS 6361 6362 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 6363 ;; 6364esac 6365fi 6366GMSGFMT=$ac_cv_path_GMSGFMT 6367if test -n "$GMSGFMT"; then 6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 6369$as_echo "$GMSGFMT" >&6; } 6370else 6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6372$as_echo "no" >&6; } 6373fi 6374 6375 6376 # Extract the first word of "xgettext", so it can be a program name with args. 6377set dummy xgettext; ac_word=$2 6378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6379$as_echo_n "checking for $ac_word... " >&6; } 6380if ${ac_cv_path_XGETTEXT+:} false; then : 6381 $as_echo_n "(cached) " >&6 6382else 6383 case "$XGETTEXT" in 6384 /*) 6385 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 6386 ;; 6387 *) 6388 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 6389 for ac_dir in $PATH; do 6390 test -z "$ac_dir" && ac_dir=. 6391 if test -f $ac_dir/$ac_word; then 6392 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then 6393 ac_cv_path_XGETTEXT="$ac_dir/$ac_word" 6394 break 6395 fi 6396 fi 6397 done 6398 IFS="$ac_save_ifs" 6399 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 6400 ;; 6401esac 6402fi 6403XGETTEXT="$ac_cv_path_XGETTEXT" 6404if test -n "$XGETTEXT"; then 6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 6406$as_echo "$XGETTEXT" >&6; } 6407else 6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6409$as_echo "no" >&6; } 6410fi 6411 6412 6413 USE_INCLUDED_LIBINTL=yes 6414 CATOBJEXT=.gmo 6415 INSTOBJEXT=.mo 6416 DATADIRNAME=share 6417 INTLDEPS='$(top_builddir)/intl/libintl.a' 6418 INTLLIBS=$INTLDEPS 6419 LIBS=`echo $LIBS | sed -e 's/-lintl//'` 6420 nls_cv_header_intl=intl/libintl.h 6421 nls_cv_header_libgt=intl/libgettext.h 6422 fi 6423 6424 if test "$XGETTEXT" != ":"; then 6425 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then 6426 : ; 6427 else 6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext programs is not GNU xgettext; ignore it" >&5 6429$as_echo "found xgettext programs is not GNU xgettext; ignore it" >&6; } 6430 XGETTEXT=":" 6431 fi 6432 fi 6433 6434 # We need to process the po/ directory. 6435 POSUB=po 6436 else 6437 DATADIRNAME=share 6438 nls_cv_header_intl=intl/libintl.h 6439 nls_cv_header_libgt=intl/libgettext.h 6440 fi 6441 6442 # If this is used in GNU gettext we have to set USE_NLS to `yes' 6443 # because some of the sources are only built for this goal. 6444 if test "$PACKAGE" = gettext; then 6445 USE_NLS=yes 6446 USE_INCLUDED_LIBINTL=yes 6447 fi 6448 6449 for lang in $ALL_LINGUAS; do 6450 GMOFILES="$GMOFILES $lang.gmo" 6451 POFILES="$POFILES $lang.po" 6452 done 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 if test "x$CATOBJEXT" != "x"; then 6468 if test "x$ALL_LINGUAS" = "x"; then 6469 LINGUAS= 6470 else 6471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 6472$as_echo_n "checking for catalogs to be installed... " >&6; } 6473 NEW_LINGUAS= 6474 for lang in ${LINGUAS=$ALL_LINGUAS}; do 6475 case "$ALL_LINGUAS" in 6476 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; 6477 esac 6478 done 6479 LINGUAS=$NEW_LINGUAS 6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 6481$as_echo "$LINGUAS" >&6; } 6482 fi 6483 6484 if test -n "$LINGUAS"; then 6485 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done 6486 fi 6487 fi 6488 6489 if test $ac_cv_header_locale_h = yes; then 6490 INCLUDE_LOCALE_H="#include <locale.h>" 6491 else 6492 INCLUDE_LOCALE_H="\ 6493/* The system does not provide the header <locale.h>. Take care yourself. */" 6494 fi 6495 6496 6497 test -d intl || mkdir intl 6498 if test "$CATOBJEXT" = ".cat"; then 6499 ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default" 6500if test "x$ac_cv_header_linux_version_h" = xyes; then : 6501 msgformat=linux 6502else 6503 msgformat=xopen 6504fi 6505 6506 6507 6508 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed 6509 fi 6510 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ 6511 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed 6512 6513 if test "$PACKAGE" = "gettext"; then 6514 GT_NO="#NO#" 6515 GT_YES= 6516 else 6517 GT_NO= 6518 GT_YES="#YES#" 6519 fi 6520 6521 6522 6523 MKINSTALLDIRS= 6524 if test -z "$MKINSTALLDIRS"; then 6525 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 6526 fi 6527 6528 6529 l= 6530 6531 6532ac_sources="$nls_cv_header_libgt" 6533ac_dests="$nls_cv_header_intl" 6534while test -n "$ac_sources"; do 6535 set $ac_dests; ac_dest=$1; shift; ac_dests=$* 6536 set $ac_sources; ac_source=$1; shift; ac_sources=$* 6537 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source" 6538done 6539ac_config_links="$ac_config_links $ac_config_links_1" 6540 6541 6542if test "$USE_NLS" = yes; then 6543 if test "$USE_INCLUDED_LIBINTL" = yes; then 6544 CPPFLAGS="$CPPFLAGS -I\$(top_builddir)/intl" 6545 INTLSUB=intl 6546 fi 6547fi 6548 6549 6550 6551 # Check whether --enable-sanetest was given. 6552if test "${enable_sanetest+set}" = set; then : 6553 enableval=$enable_sanetest; 6554else 6555 enable_sanetest=yes 6556fi 6557 6558 6559 # Extract the first word of "sane-config", so it can be a program name with args. 6560set dummy sane-config; ac_word=$2 6561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6562$as_echo_n "checking for $ac_word... " >&6; } 6563if ${ac_cv_path_SANE_CONFIG+:} false; then : 6564 $as_echo_n "(cached) " >&6 6565else 6566 case $SANE_CONFIG in 6567 [\\/]* | ?:[\\/]*) 6568 ac_cv_path_SANE_CONFIG="$SANE_CONFIG" # Let the user override the test with a path. 6569 ;; 6570 *) 6571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6572for as_dir in $PATH 6573do 6574 IFS=$as_save_IFS 6575 test -z "$as_dir" && as_dir=. 6576 for ac_exec_ext in '' $ac_executable_extensions; do 6577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6578 ac_cv_path_SANE_CONFIG="$as_dir/$ac_word$ac_exec_ext" 6579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6580 break 2 6581 fi 6582done 6583 done 6584IFS=$as_save_IFS 6585 6586 test -z "$ac_cv_path_SANE_CONFIG" && ac_cv_path_SANE_CONFIG="no" 6587 ;; 6588esac 6589fi 6590SANE_CONFIG=$ac_cv_path_SANE_CONFIG 6591if test -n "$SANE_CONFIG"; then 6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SANE_CONFIG" >&5 6593$as_echo "$SANE_CONFIG" >&6; } 6594else 6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6596$as_echo "no" >&6; } 6597fi 6598 6599 6600 min_sane_version=1.0.0 6601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SANE - version >= $min_sane_version" >&5 6602$as_echo_n "checking for SANE - version >= $min_sane_version... " >&6; } 6603 no_sane="" 6604 if test "$SANE_CONFIG" = "no" ; then 6605 no_sane=yes 6606 else 6607 SANE_CFLAGS=`$SANE_CONFIG $sane_config_args --cflags` 6608 SANE_LDFLAGS=`$SANE_CONFIG $sane_config_args --ldflags` 6609# SANE_LIBS=`$SANE_CONFIG $sane_config_args --libs` 6610 SANE_LIBS=`$SANE_CONFIG $sane_config_args --libs | sed -e 's/-lintl//g'` 6611 SANE_PREFIX=`$SANE_CONFIG $sane_config_args --prefix` 6612 sane_config_major_version=`$SANE_CONFIG $sane_config_args --version | \ 6613 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 6614 sane_config_minor_version=`$SANE_CONFIG $sane_config_args --version | \ 6615 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 6616 sane_config_micro_version=`$SANE_CONFIG $sane_config_args --version | \ 6617 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 6618 if test "x$enable_sanetest" = "xyes" ; then 6619 ac_save_CFLAGS="$CFLAGS" 6620 ac_save_LDFLAGS="$LDFLAGS" 6621 ac_save_LIBS="$LIBS" 6622 CFLAGS="$CFLAGS $SANE_CFLAGS" 6623 LDFLAGS="$LDFLAGS $SANE_LDFLAGS" 6624 LIBS="$LIBS $SANE_LIBS" 6625 rm -f conf.sanetest 6626 if test "$cross_compiling" = yes; then : 6627 echo $ac_n "cross compiling; assumed OK... $ac_c" 6628else 6629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6630/* end confdefs.h. */ 6631 6632#include <sane/sane.h> 6633#include <stdio.h> 6634 6635int 6636main () 6637{ 6638 int major, minor, micro; 6639 6640 system ("touch conf.sanetest"); 6641 6642 if (sscanf("$min_sane_version", "%d.%d.%d", &major, &minor, µ) != 3) { 6643 printf("%s, bad version string\n", "$min_sane_version"); 6644 exit(1); 6645 } 6646 6647 if ( ($sane_config_major_version == major) && 6648 ( ($sane_config_minor_version > minor) || 6649 ( ($sane_config_minor_version == minor) && ($sane_config_micro_version >= micro)))) 6650 { 6651 return 0; 6652 } 6653 else if ($sane_config_major_version > major) 6654 { 6655 printf("\n*** A too new version of SANE (%d.%d.%d) was found.\n", 6656 $sane_config_major_version, $sane_config_minor_version, $sane_config_micro_version); 6657 printf("*** You need a version of SANE with the major version number %d.\n", major); 6658 } 6659 else 6660 { 6661 printf("\n*** An old version of SANE (%d.%d.%d) was found.\n", 6662 $sane_config_major_version, $sane_config_minor_version, $sane_config_micro_version); 6663 printf("*** You need a version of SANE newer than %d.%d.%d. The latest version of\n", 6664 major, minor, micro); 6665 } 6666 6667 printf("*** SANE is always available from ftp://ftp.mostang.com\n"); 6668 printf("***\n"); 6669 printf("*** If you have already installed a sufficient version, this error\n"); 6670 printf("*** probably means that the wrong copy of the sane-config shell script is\n"); 6671 printf("*** being found. The easiest way to fix this is to remove the old version\n"); 6672 printf("*** of SANE, but you can also set the SANE_CONFIG environment to point to the\n"); 6673 printf("*** correct copy of sane-config. (In this case, you will have to\n"); 6674 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); 6675 printf("*** so that the correct libraries are found at run-time))\n"); 6676 6677 return 1; 6678} 6679 6680_ACEOF 6681if ac_fn_c_try_run "$LINENO"; then : 6682 6683else 6684 no_sane=yes 6685fi 6686rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6687 conftest.$ac_objext conftest.beam conftest.$ac_ext 6688fi 6689 6690 CFLAGS="$ac_save_CFLAGS" 6691 LDFLAGS="$ac_save_LDFLAGS" 6692 LIBS="$ac_save_LIBS" 6693 fi 6694 fi 6695 if test "x$no_sane" = x ; then 6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6697$as_echo "yes" >&6; } 6698 HAVE_SANE=yes 6699 else 6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6701$as_echo "no" >&6; } 6702 if test "$SANE_CONFIG" = "no" ; then 6703 echo "*** The sane-config script installed by SANE could not be found" 6704 echo "*** If SANE was installed in PREFIX, make sure PREFIX/bin is in" 6705 echo "*** your path, or set the SANE_CONFIG environment variable to the" 6706 echo "*** full path to sane-config." 6707 else 6708 if test -f conf.sanetest ; then 6709 : 6710 else 6711 echo "*** Could not run SANE test program, checking why..." 6712 CFLAGS="$CFLAGS $SANE_CFLAGS" 6713 LIBS="$LIBS $SANE_LIBS" 6714 LDFLAGS="$LDFLAGS $SANE_LDFLAGS" 6715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6716/* end confdefs.h. */ 6717 6718#include <sane/sane.h> 6719#include <stdio.h> 6720 6721int 6722main () 6723{ 6724 return (SANE_CURRENT_MAJOR); 6725 ; 6726 return 0; 6727} 6728_ACEOF 6729if ac_fn_c_try_link "$LINENO"; then : 6730 echo "*** The test program compiled, but did not run. This usually means" 6731 echo "*** that the run-time linker is not finding SANE or finding the wrong" 6732 echo "*** version of SANE. If it is not finding SANE, you'll need to set your" 6733 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 6734 echo "*** to the installed location Also, make sure you have run ldconfig if that" 6735 echo "*** is required on your system" 6736 echo "***" 6737 echo "*** If you have an old version installed, it is best to remove it, although" 6738 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 6739 echo "***" 6740 echo "*** The test program failed to compile or link. See the file config.log for the" 6741 echo "*** exact error that occured. This usually means SANE was incorrectly installed" 6742 echo "*** or that you have moved SANE since it was installed. In the latter case, you" 6743 echo "*** may want to edit the sane-config script: $SANE_CONFIG" 6744fi 6745rm -f core conftest.err conftest.$ac_objext \ 6746 conftest$ac_exeext conftest.$ac_ext 6747 CFLAGS="$ac_save_CFLAGS" 6748 LDFLAGS="$ac_save_LDFLAGS" 6749 LIBS="$ac_save_LIBS" 6750 fi 6751 fi 6752 SANE_CFLAGS="" 6753 SANE_LDFLAGS="" 6754 SANE_LIBS="" 6755 : 6756 fi 6757 6758 6759 6760 6761 rm -f conf.sanetest 6762 6763 6764if test "${USE_GIMP}" = "yes"; then 6765 if test "${TRY_GIMP_2}" = "yes"; then 6766 6767# Check whether --enable-gimptest was given. 6768if test "${enable_gimptest+set}" = set; then : 6769 enableval=$enable_gimptest; 6770else 6771 enable_gimptest=yes 6772fi 6773 6774 6775 pkg_name=gimp-2.0 6776 pkg_config_args="$pkg_name gimpui-2.0" 6777 6778 no_gimp="" 6779 6780 # Extract the first word of "pkg-config", so it can be a program name with args. 6781set dummy pkg-config; ac_word=$2 6782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6783$as_echo_n "checking for $ac_word... " >&6; } 6784if ${ac_cv_path_PKG_CONFIG+:} false; then : 6785 $as_echo_n "(cached) " >&6 6786else 6787 case $PKG_CONFIG in 6788 [\\/]* | ?:[\\/]*) 6789 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 6790 ;; 6791 *) 6792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6793for as_dir in $PATH 6794do 6795 IFS=$as_save_IFS 6796 test -z "$as_dir" && as_dir=. 6797 for ac_exec_ext in '' $ac_executable_extensions; do 6798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6799 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 6800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6801 break 2 6802 fi 6803done 6804 done 6805IFS=$as_save_IFS 6806 6807 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 6808 ;; 6809esac 6810fi 6811PKG_CONFIG=$ac_cv_path_PKG_CONFIG 6812if test -n "$PKG_CONFIG"; then 6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 6814$as_echo "$PKG_CONFIG" >&6; } 6815else 6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6817$as_echo "no" >&6; } 6818fi 6819 6820 6821 6822 if test x$PKG_CONFIG != xno ; then 6823 if pkg-config --atleast-pkgconfig-version 0.7 ; then 6824 : 6825 else 6826 echo *** pkg-config too old; version 0.7 or better required. 6827 no_gimp=yes 6828 PKG_CONFIG=no 6829 fi 6830 else 6831 no_gimp=yes 6832 fi 6833 6834 min_gimp_version=1.3.23 6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIMP - version >= $min_gimp_version" >&5 6836$as_echo_n "checking for GIMP - version >= $min_gimp_version... " >&6; } 6837 6838 if test x$PKG_CONFIG != xno ; then 6839 ## don't try to run the test against uninstalled libtool libs 6840 if $PKG_CONFIG --uninstalled $pkg_config_args; then 6841 echo "Will use uninstalled version of GIMP found in PKG_CONFIG_PATH" 6842 enable_gimptest=no 6843 fi 6844 6845 if $PKG_CONFIG --atleast-version $min_gimp_version $pkg_config_args; then 6846 : 6847 else 6848 no_gimp=yes 6849 fi 6850 fi 6851 6852 if test x"$no_gimp" = x ; then 6853 GIMP_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` 6854 GIMP_LIBS=`$PKG_CONFIG $pkg_config_args --libs` 6855 GIMP_CFLAGS_NOUI=`$PKG_CONFIG $pkg_name --cflags` 6856 GIMP_LIBS_NOUI=`$PKG_CONFIG $pkg_name --libs` 6857 GIMP_DATA_DIR=`$PKG_CONFIG $pkg_name --variable=gimpdatadir` 6858 GIMP_PLUGIN_DIR=`$PKG_CONFIG $pkg_name --variable=gimplibdir` 6859 6860 gimp_pkg_major_version=`$PKG_CONFIG --modversion $pkg_name | \ 6861 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 6862 gimp_pkg_minor_version=`$PKG_CONFIG --modversion $pkg_name | \ 6863 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 6864 gimp_pkg_micro_version=`$PKG_CONFIG --modversion $pkg_name | \ 6865 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 6866 if test "x$enable_gimptest" = "xyes" ; then 6867 ac_save_CFLAGS="$CFLAGS" 6868 ac_save_LIBS="$LIBS" 6869 CFLAGS="$CFLAGS $GIMP_CFLAGS" 6870 LIBS="$GIMP_LIBS $LIBS" 6871 6872 rm -f conf.gimptest 6873 if test "$cross_compiling" = yes; then : 6874 echo $ac_n "cross compiling; assumed OK... $ac_c" 6875else 6876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6877/* end confdefs.h. */ 6878 6879#include <stdio.h> 6880#include <stdlib.h> 6881 6882#include <libgimp/gimp.h> 6883 6884GimpPlugInInfo PLUG_IN_INFO = 6885{ 6886 NULL, /* init_proc */ 6887 NULL, /* quit_proc */ 6888 NULL, /* query_proc */ 6889 NULL /* run_proc */ 6890}; 6891 6892int main () 6893{ 6894 int major, minor, micro; 6895 char *tmp_version; 6896 6897 system ("touch conf.gimptest"); 6898 6899 /* HP/UX 9 (%@#!) writes to sscanf strings */ 6900 tmp_version = g_strdup("$min_gimp_version"); 6901 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 6902 printf("%s, bad version string\n", "$min_gimp_version"); 6903 exit(1); 6904 } 6905 6906 if (($gimp_pkg_major_version > major) || 6907 (($gimp_pkg_major_version == major) && ($gimp_pkg_minor_version > minor)) || 6908 (($gimp_pkg_major_version == major) && ($gimp_pkg_minor_version == minor) && ($gimp_pkg_micro_version >= micro))) 6909 { 6910 return 0; 6911 } 6912 else 6913 { 6914 printf("\n*** 'pkg-config --modversion %s' returned %d.%d.%d, but the minimum version\n", "$pkg_name", $gimp_pkg_major_version, $gimp_pkg_minor_version, $gimp_pkg_micro_version); 6915 printf("*** of GIMP required is %d.%d.%d. If pkg-config is correct, then it is\n", major, minor, micro); 6916 printf("*** best to upgrade to the required version.\n"); 6917 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); 6918 printf("*** to point to the correct the correct configuration files\n"); 6919 return 1; 6920 } 6921} 6922 6923 6924_ACEOF 6925if ac_fn_c_try_run "$LINENO"; then : 6926 6927else 6928 no_gimp=yes 6929fi 6930rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6931 conftest.$ac_objext conftest.beam conftest.$ac_ext 6932fi 6933 6934 CFLAGS="$ac_save_CFLAGS" 6935 LIBS="$ac_save_LIBS" 6936 fi 6937 fi 6938 if test "x$no_gimp" = x ; then 6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $gimp_pkg_major_version.$gimp_pkg_minor_version.$gimp_pkg_micro_version)" >&5 6940$as_echo "yes (version $gimp_pkg_major_version.$gimp_pkg_minor_version.$gimp_pkg_micro_version)" >&6; } 6941 HAVE_GIMP=yes 6942 else 6943 if test "$PKG_CONFIG" = "no" ; then 6944 echo "*** A new enough version of pkg-config was not found." 6945 echo "*** See http://www.freedesktop.org/software/pkgconfig/" 6946 else 6947 if test -f conf.gimptest ; then 6948 : 6949 else 6950 echo "" 6951 echo "*** Could not run GIMP test program, checking why..." 6952 CFLAGS="$CFLAGS $GIMP_CFLAGS" 6953 LIBS="$LIBS $GIMP_LIBS" 6954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6955/* end confdefs.h. */ 6956 6957#include <stdio.h> 6958#include <libgimp/gimp.h> 6959 6960GimpPlugInInfo PLUG_IN_INFO = 6961{ 6962 NULL, /* init_proc */ 6963 NULL, /* quit_proc */ 6964 NULL, /* query_proc */ 6965 NULL /* run_proc */ 6966}; 6967 6968int 6969main () 6970{ 6971 return 0; 6972 ; 6973 return 0; 6974} 6975_ACEOF 6976if ac_fn_c_try_link "$LINENO"; then : 6977 echo "*** The test program compiled, but did not run. This usually means" 6978 echo "*** that the run-time linker is not finding GIMP or finding the wrong" 6979 echo "*** version of GIMP. If it is not finding GIMP, you'll need to set your" 6980 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 6981 echo "*** to the installed location Also, make sure you have run ldconfig if that" 6982 echo "*** is required on your system" 6983 echo "***" 6984 echo "*** If you have an old version installed, it is best to remove it, although" 6985 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 6986else 6987 echo "*** The test program failed to compile or link. See the file config.log for the" 6988 echo "*** exact error that occured. This usually means GIMP is incorrectly installed." 6989 echo "*** When gimp-2.0 is not installed but gimp-1.x is installed then you can" 6990 echo "*** ignore this error message." 6991fi 6992rm -f core conftest.err conftest.$ac_objext \ 6993 conftest$ac_exeext conftest.$ac_ext 6994 CFLAGS="$ac_save_CFLAGS" 6995 LIBS="$ac_save_LIBS" 6996 fi 6997 fi 6998 GIMP_CFLAGS="" 6999 GIMP_LIBS="" 7000 GIMP_CFLAGS_NOUI="" 7001 GIMP_LIBS_NOUI="" 7002 : 7003 fi 7004 7005 7006 7007 7008 7009 7010 rm -f conf.gimptest 7011 7012 fi 7013fi 7014 7015if test "${HAVE_GIMP}" = "yes"; then 7016 HAVE_GTK=yes 7017 7018$as_echo "#define HAVE_GIMP_2 1" >>confdefs.h 7019 7020else 7021 7022 if test "${USE_GTK2}" = "yes"; then 7023 # Check whether --enable-gtktest was given. 7024if test "${enable_gtktest+set}" = set; then : 7025 enableval=$enable_gtktest; 7026else 7027 enable_gtktest=yes 7028fi 7029 7030 7031 pkg_config_args=gtk+-2.0 7032 for module in . 7033 do 7034 case "$module" in 7035 gthread) 7036 pkg_config_args="$pkg_config_args gthread-2.0" 7037 ;; 7038 esac 7039 done 7040 7041 no_gtk="" 7042 7043 # Extract the first word of "pkg-config", so it can be a program name with args. 7044set dummy pkg-config; ac_word=$2 7045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7046$as_echo_n "checking for $ac_word... " >&6; } 7047if ${ac_cv_path_PKG_CONFIG+:} false; then : 7048 $as_echo_n "(cached) " >&6 7049else 7050 case $PKG_CONFIG in 7051 [\\/]* | ?:[\\/]*) 7052 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 7053 ;; 7054 *) 7055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7056for as_dir in $PATH 7057do 7058 IFS=$as_save_IFS 7059 test -z "$as_dir" && as_dir=. 7060 for ac_exec_ext in '' $ac_executable_extensions; do 7061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7062 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 7063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7064 break 2 7065 fi 7066done 7067 done 7068IFS=$as_save_IFS 7069 7070 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 7071 ;; 7072esac 7073fi 7074PKG_CONFIG=$ac_cv_path_PKG_CONFIG 7075if test -n "$PKG_CONFIG"; then 7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 7077$as_echo "$PKG_CONFIG" >&6; } 7078else 7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7080$as_echo "no" >&6; } 7081fi 7082 7083 7084 7085 if test x$PKG_CONFIG != xno ; then 7086 if pkg-config --atleast-pkgconfig-version 0.7 ; then 7087 : 7088 else 7089 echo *** pkg-config too old; version 0.7 or better required. 7090 no_gtk=yes 7091 PKG_CONFIG=no 7092 fi 7093 else 7094 no_gtk=yes 7095 fi 7096 7097 min_gtk_version=2.0.0 7098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK+ - version >= $min_gtk_version" >&5 7099$as_echo_n "checking for GTK+ - version >= $min_gtk_version... " >&6; } 7100 7101 if test x$PKG_CONFIG != xno ; then 7102 ## don't try to run the test against uninstalled libtool libs 7103 if $PKG_CONFIG --uninstalled $pkg_config_args; then 7104 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" 7105 enable_gtktest=no 7106 fi 7107 7108 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then 7109 : 7110 else 7111 no_gtk=yes 7112 fi 7113 fi 7114 7115 if test x"$no_gtk" = x ; then 7116 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` 7117 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` 7118 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 7119 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 7120 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 7121 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 7122 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 7123 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 7124 if test "x$enable_gtktest" = "xyes" ; then 7125 ac_save_CFLAGS="$CFLAGS" 7126 ac_save_LIBS="$LIBS" 7127 CFLAGS="$CFLAGS $GTK_CFLAGS" 7128 LIBS="$GTK_LIBS $LIBS" 7129 rm -f conf.gtktest 7130 if test "$cross_compiling" = yes; then : 7131 echo $ac_n "cross compiling; assumed OK... $ac_c" 7132else 7133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7134/* end confdefs.h. */ 7135 7136#include <gtk/gtk.h> 7137#include <stdio.h> 7138#include <stdlib.h> 7139 7140int 7141main () 7142{ 7143 int major, minor, micro; 7144 char *tmp_version; 7145 7146 system ("touch conf.gtktest"); 7147 7148 /* HP/UX 9 (%@#!) writes to sscanf strings */ 7149 tmp_version = g_strdup("$min_gtk_version"); 7150 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 7151 printf("%s, bad version string\n", "$min_gtk_version"); 7152 exit(1); 7153 } 7154 7155 if ((gtk_major_version != $gtk_config_major_version) || 7156 (gtk_minor_version != $gtk_config_minor_version) || 7157 (gtk_micro_version != $gtk_config_micro_version)) 7158 { 7159 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 7160 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, 7161 gtk_major_version, gtk_minor_version, gtk_micro_version); 7162 printf ("*** was found! If pkg-config was correct, then it is best\n"); 7163 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); 7164 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); 7165 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); 7166 printf("*** required on your system.\n"); 7167 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); 7168 printf("*** to point to the correct configuration files\n"); 7169 } 7170 else if ((gtk_major_version != GTK_MAJOR_VERSION) || 7171 (gtk_minor_version != GTK_MINOR_VERSION) || 7172 (gtk_micro_version != GTK_MICRO_VERSION)) 7173 { 7174 printf("*** GTK+ header files (version %d.%d.%d) do not match\n", 7175 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); 7176 printf("*** library (version %d.%d.%d)\n", 7177 gtk_major_version, gtk_minor_version, gtk_micro_version); 7178 } 7179 else 7180 { 7181 if ((gtk_major_version > major) || 7182 ((gtk_major_version == major) && (gtk_minor_version > minor)) || 7183 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) 7184 { 7185 return 0; 7186 } 7187 else 7188 { 7189 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", 7190 gtk_major_version, gtk_minor_version, gtk_micro_version); 7191 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", 7192 major, minor, micro); 7193 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); 7194 printf("***\n"); 7195 printf("*** If you have already installed a sufficiently new version, this error\n"); 7196 printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); 7197 printf("*** being found. The easiest way to fix this is to remove the old version\n"); 7198 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); 7199 printf("*** correct copy of pkg-config. (In this case, you will have to\n"); 7200 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); 7201 printf("*** so that the correct libraries are found at run-time))\n"); 7202 } 7203 } 7204 return 1; 7205} 7206 7207_ACEOF 7208if ac_fn_c_try_run "$LINENO"; then : 7209 7210else 7211 no_gtk=yes 7212fi 7213rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7214 conftest.$ac_objext conftest.beam conftest.$ac_ext 7215fi 7216 7217 CFLAGS="$ac_save_CFLAGS" 7218 LIBS="$ac_save_LIBS" 7219 fi 7220 fi 7221 if test "x$no_gtk" = x ; then 7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 7223$as_echo "yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; } 7224 HAVE_GTK=yes 7225 else 7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7227$as_echo "no" >&6; } 7228 if test "$PKG_CONFIG" = "no" ; then 7229 echo "*** A new enough version of pkg-config was not found." 7230 echo "*** See http://pkgconfig.sourceforge.net" 7231 else 7232 if test -f conf.gtktest ; then 7233 : 7234 else 7235 echo "*** Could not run GTK+ test program, checking why..." 7236 ac_save_CFLAGS="$CFLAGS" 7237 ac_save_LIBS="$LIBS" 7238 CFLAGS="$CFLAGS $GTK_CFLAGS" 7239 LIBS="$LIBS $GTK_LIBS" 7240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7241/* end confdefs.h. */ 7242 7243#include <gtk/gtk.h> 7244#include <stdio.h> 7245 7246int 7247main () 7248{ 7249 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); 7250 ; 7251 return 0; 7252} 7253_ACEOF 7254if ac_fn_c_try_link "$LINENO"; then : 7255 echo "*** The test program compiled, but did not run. This usually means" 7256 echo "*** that the run-time linker is not finding GTK+ or finding the wrong" 7257 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" 7258 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 7259 echo "*** to the installed location Also, make sure you have run ldconfig if that" 7260 echo "*** is required on your system" 7261 echo "***" 7262 echo "*** If you have an old version installed, it is best to remove it, although" 7263 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 7264else 7265 echo "*** The test program failed to compile or link. See the file config.log for the" 7266 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." 7267fi 7268rm -f core conftest.err conftest.$ac_objext \ 7269 conftest$ac_exeext conftest.$ac_ext 7270 CFLAGS="$ac_save_CFLAGS" 7271 LIBS="$ac_save_LIBS" 7272 fi 7273 fi 7274 GTK_CFLAGS="" 7275 GTK_LIBS="" 7276 : 7277 fi 7278 7279 7280 rm -f conf.gtktest 7281 7282 fi 7283 7284 if test "x${HAVE_GTK}" = "x"; then 7285 7286# Check whether --with-gtk-prefix was given. 7287if test "${with_gtk_prefix+set}" = set; then : 7288 withval=$with_gtk_prefix; gtk_config_prefix="$withval" 7289else 7290 gtk_config_prefix="" 7291fi 7292 7293 7294# Check whether --with-gtk-exec-prefix was given. 7295if test "${with_gtk_exec_prefix+set}" = set; then : 7296 withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval" 7297else 7298 gtk_config_exec_prefix="" 7299fi 7300 7301# Check whether --enable-gtktest was given. 7302if test "${enable_gtktest+set}" = set; then : 7303 enableval=$enable_gtktest; 7304else 7305 enable_gtktest=yes 7306fi 7307 7308 7309 for module in . 7310 do 7311 case "$module" in 7312 gthread) 7313 gtk_config_args="$gtk_config_args gthread" 7314 ;; 7315 esac 7316 done 7317 7318 if test x$gtk_config_exec_prefix != x ; then 7319 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" 7320 if test x${GTK_CONFIG+set} != xset ; then 7321 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config 7322 fi 7323 fi 7324 if test x$gtk_config_prefix != x ; then 7325 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" 7326 if test x${GTK_CONFIG+set} != xset ; then 7327 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config 7328 fi 7329 fi 7330 7331 # Extract the first word of "gtk-config", so it can be a program name with args. 7332set dummy gtk-config; ac_word=$2 7333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7334$as_echo_n "checking for $ac_word... " >&6; } 7335if ${ac_cv_path_GTK_CONFIG+:} false; then : 7336 $as_echo_n "(cached) " >&6 7337else 7338 case $GTK_CONFIG in 7339 [\\/]* | ?:[\\/]*) 7340 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. 7341 ;; 7342 *) 7343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7344for as_dir in $PATH 7345do 7346 IFS=$as_save_IFS 7347 test -z "$as_dir" && as_dir=. 7348 for ac_exec_ext in '' $ac_executable_extensions; do 7349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7350 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" 7351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7352 break 2 7353 fi 7354done 7355 done 7356IFS=$as_save_IFS 7357 7358 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" 7359 ;; 7360esac 7361fi 7362GTK_CONFIG=$ac_cv_path_GTK_CONFIG 7363if test -n "$GTK_CONFIG"; then 7364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CONFIG" >&5 7365$as_echo "$GTK_CONFIG" >&6; } 7366else 7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7368$as_echo "no" >&6; } 7369fi 7370 7371 7372 min_gtk_version=1.2.0 7373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5 7374$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } 7375 no_gtk="" 7376 if test "$GTK_CONFIG" = "no" ; then 7377 no_gtk=yes 7378 else 7379 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` 7380 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` 7381 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ 7382 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 7383 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ 7384 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 7385 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ 7386 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 7387 if test "x$enable_gtktest" = "xyes" ; then 7388 ac_save_CFLAGS="$CFLAGS" 7389 ac_save_LIBS="$LIBS" 7390 CFLAGS="$CFLAGS $GTK_CFLAGS" 7391 LIBS="$GTK_LIBS $LIBS" 7392 rm -f conf.gtktest 7393 if test "$cross_compiling" = yes; then : 7394 echo $ac_n "cross compiling; assumed OK... $ac_c" 7395else 7396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7397/* end confdefs.h. */ 7398 7399#include <gtk/gtk.h> 7400#include <stdio.h> 7401#include <stdlib.h> 7402 7403int 7404main () 7405{ 7406 int major, minor, micro; 7407 char *tmp_version; 7408 7409 system ("touch conf.gtktest"); 7410 7411 /* HP/UX 9 (%@#!) writes to sscanf strings */ 7412 tmp_version = g_strdup("$min_gtk_version"); 7413 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 7414 printf("%s, bad version string\n", "$min_gtk_version"); 7415 exit(1); 7416 } 7417 7418 if ((gtk_major_version != $gtk_config_major_version) || 7419 (gtk_minor_version != $gtk_config_minor_version) || 7420 (gtk_micro_version != $gtk_config_micro_version)) 7421 { 7422 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 7423 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, 7424 gtk_major_version, gtk_minor_version, gtk_micro_version); 7425 printf ("*** was found! If gtk-config was correct, then it is best\n"); 7426 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); 7427 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); 7428 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); 7429 printf("*** required on your system.\n"); 7430 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); 7431 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); 7432 printf("*** before re-running configure\n"); 7433 } 7434#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) 7435 else if ((gtk_major_version != GTK_MAJOR_VERSION) || 7436 (gtk_minor_version != GTK_MINOR_VERSION) || 7437 (gtk_micro_version != GTK_MICRO_VERSION)) 7438 { 7439 printf("*** GTK+ header files (version %d.%d.%d) do not match\n", 7440 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); 7441 printf("*** library (version %d.%d.%d)\n", 7442 gtk_major_version, gtk_minor_version, gtk_micro_version); 7443 } 7444#endif /* defined (GTK_MAJOR_VERSION) ... */ 7445 else 7446 { 7447 if ((gtk_major_version > major) || 7448 ((gtk_major_version == major) && (gtk_minor_version > minor)) || 7449 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) 7450 { 7451 return 0; 7452 } 7453 else 7454 { 7455 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", 7456 gtk_major_version, gtk_minor_version, gtk_micro_version); 7457 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", 7458 major, minor, micro); 7459 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); 7460 printf("***\n"); 7461 printf("*** If you have already installed a sufficiently new version, this error\n"); 7462 printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); 7463 printf("*** being found. The easiest way to fix this is to remove the old version\n"); 7464 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); 7465 printf("*** correct copy of gtk-config. (In this case, you will have to\n"); 7466 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); 7467 printf("*** so that the correct libraries are found at run-time))\n"); 7468 } 7469 } 7470 return 1; 7471} 7472 7473_ACEOF 7474if ac_fn_c_try_run "$LINENO"; then : 7475 7476else 7477 no_gtk=yes 7478fi 7479rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7480 conftest.$ac_objext conftest.beam conftest.$ac_ext 7481fi 7482 7483 CFLAGS="$ac_save_CFLAGS" 7484 LIBS="$ac_save_LIBS" 7485 fi 7486 fi 7487 if test "x$no_gtk" = x ; then 7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7489$as_echo "yes" >&6; } 7490 HAVE_GTK=yes 7491 else 7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7493$as_echo "no" >&6; } 7494 if test "$GTK_CONFIG" = "no" ; then 7495 echo "*** The gtk-config script installed by GTK could not be found" 7496 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" 7497 echo "*** your path, or set the GTK_CONFIG environment variable to the" 7498 echo "*** full path to gtk-config." 7499 else 7500 if test -f conf.gtktest ; then 7501 : 7502 else 7503 echo "*** Could not run GTK test program, checking why..." 7504 CFLAGS="$CFLAGS $GTK_CFLAGS" 7505 LIBS="$LIBS $GTK_LIBS" 7506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7507/* end confdefs.h. */ 7508 7509#include <gtk/gtk.h> 7510#include <stdio.h> 7511 7512int 7513main () 7514{ 7515 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); 7516 ; 7517 return 0; 7518} 7519_ACEOF 7520if ac_fn_c_try_link "$LINENO"; then : 7521 echo "*** The test program compiled, but did not run. This usually means" 7522 echo "*** that the run-time linker is not finding GTK or finding the wrong" 7523 echo "*** version of GTK. If it is not finding GTK, you'll need to set your" 7524 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 7525 echo "*** to the installed location Also, make sure you have run ldconfig if that" 7526 echo "*** is required on your system" 7527 echo "***" 7528 echo "*** If you have an old version installed, it is best to remove it, although" 7529 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 7530 echo "***" 7531 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" 7532 echo "*** came with the system with the command" 7533 echo "***" 7534 echo "*** rpm --erase --nodeps gtk gtk-devel" 7535else 7536 echo "*** The test program failed to compile or link. See the file config.log for the" 7537 echo "*** exact error that occured. This usually means GTK was incorrectly installed" 7538 echo "*** or that you have moved GTK since it was installed. In the latter case, you" 7539 echo "*** may want to edit the gtk-config script: $GTK_CONFIG" 7540fi 7541rm -f core conftest.err conftest.$ac_objext \ 7542 conftest$ac_exeext conftest.$ac_ext 7543 CFLAGS="$ac_save_CFLAGS" 7544 LIBS="$ac_save_LIBS" 7545 fi 7546 fi 7547 GTK_CFLAGS="" 7548 GTK_LIBS="" 7549 : 7550 fi 7551 7552 7553 rm -f conf.gtktest 7554 7555 fi 7556 7557 if test "${USE_GIMP}" = "yes"; then 7558 7559# Check whether --with-gimp-prefix was given. 7560if test "${with_gimp_prefix+set}" = set; then : 7561 withval=$with_gimp_prefix; gimp_config_prefix="$withval" 7562else 7563 gimp_config_prefix="" 7564fi 7565 7566 7567# Check whether --with-gimp-exec-prefix was given. 7568if test "${with_gimp_exec_prefix+set}" = set; then : 7569 withval=$with_gimp_exec_prefix; gimp_config_exec_prefix="$withval" 7570else 7571 gimp_config_exec_prefix="" 7572fi 7573 7574 # Check whether --enable-gimptest was given. 7575if test "${enable_gimptest+set}" = set; then : 7576 enableval=$enable_gimptest; 7577else 7578 enable_gimptest=yes 7579fi 7580 7581 7582 ac_save_CFLAGS="$CFLAGS" 7583 ac_save_LIBS="$LIBS" 7584 ac_save_GTK_CFLAGS="$GTK_CFLAGS" 7585 ac_save_GTK_LIBS="$GTK_LIBS" 7586 7587 if test x$gimp_config_exec_prefix != x ; then 7588 gimp_config_args="$gimp_config_args --exec-prefix=$gimp_config_exec_prefix" 7589 if test x${GIMP_CONFIG+set} != xset ; then 7590 GIMP_CONFIG=$gimp_config_exec_prefix/bin/gimp-config 7591 fi 7592 fi 7593 7594 if test x$gimp_config_prefix != x ; then 7595 gimp_config_args="$gimp_config_args --prefix=$gimp_config_prefix" 7596 if test x${GIMP_CONFIG+set} != xset ; then 7597 GIMP_CONFIG=$gimp_config_prefix/bin/gimp-config 7598 fi 7599 fi 7600 7601 # Extract the first word of "gimp-config", so it can be a program name with args. 7602set dummy gimp-config; ac_word=$2 7603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7604$as_echo_n "checking for $ac_word... " >&6; } 7605if ${ac_cv_path_GIMP_CONFIG+:} false; then : 7606 $as_echo_n "(cached) " >&6 7607else 7608 case $GIMP_CONFIG in 7609 [\\/]* | ?:[\\/]*) 7610 ac_cv_path_GIMP_CONFIG="$GIMP_CONFIG" # Let the user override the test with a path. 7611 ;; 7612 *) 7613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7614for as_dir in $PATH 7615do 7616 IFS=$as_save_IFS 7617 test -z "$as_dir" && as_dir=. 7618 for ac_exec_ext in '' $ac_executable_extensions; do 7619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7620 ac_cv_path_GIMP_CONFIG="$as_dir/$ac_word$ac_exec_ext" 7621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7622 break 2 7623 fi 7624done 7625 done 7626IFS=$as_save_IFS 7627 7628 test -z "$ac_cv_path_GIMP_CONFIG" && ac_cv_path_GIMP_CONFIG="no" 7629 ;; 7630esac 7631fi 7632GIMP_CONFIG=$ac_cv_path_GIMP_CONFIG 7633if test -n "$GIMP_CONFIG"; then 7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIMP_CONFIG" >&5 7635$as_echo "$GIMP_CONFIG" >&6; } 7636else 7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7638$as_echo "no" >&6; } 7639fi 7640 7641 7642 if test "$GIMP_CONFIG" = "no" ; then 7643 if test x$gimp_config_exec_prefix != x ; then 7644 gimp_config_args="$gimp_config_args --exec-prefix=$gimp_config_exec_prefix" 7645 if test x${GIMP_TOOL+set} != xset ; then 7646 GIMP_TOOL=$gimp_config_exec_prefix/bin/gimptool 7647 fi 7648 fi 7649 if test x$gimp_config_prefix != x ; then 7650 gimp_config_args="$gimp_config_args --prefix=$gimp_config_prefix" 7651 if test x${GIMP_TOOL+set} != xset ; then 7652 GIMP_TOOL=$gimp_config_prefix/bin/gimptool 7653 fi 7654 fi 7655 # Extract the first word of "gimptool", so it can be a program name with args. 7656set dummy gimptool; ac_word=$2 7657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7658$as_echo_n "checking for $ac_word... " >&6; } 7659if ${ac_cv_path_GIMP_TOOL+:} false; then : 7660 $as_echo_n "(cached) " >&6 7661else 7662 case $GIMP_TOOL in 7663 [\\/]* | ?:[\\/]*) 7664 ac_cv_path_GIMP_TOOL="$GIMP_TOOL" # Let the user override the test with a path. 7665 ;; 7666 *) 7667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7668for as_dir in $PATH 7669do 7670 IFS=$as_save_IFS 7671 test -z "$as_dir" && as_dir=. 7672 for ac_exec_ext in '' $ac_executable_extensions; do 7673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7674 ac_cv_path_GIMP_TOOL="$as_dir/$ac_word$ac_exec_ext" 7675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7676 break 2 7677 fi 7678done 7679 done 7680IFS=$as_save_IFS 7681 7682 test -z "$ac_cv_path_GIMP_TOOL" && ac_cv_path_GIMP_TOOL="no" 7683 ;; 7684esac 7685fi 7686GIMP_TOOL=$ac_cv_path_GIMP_TOOL 7687if test -n "$GIMP_TOOL"; then 7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIMP_TOOL" >&5 7689$as_echo "$GIMP_TOOL" >&6; } 7690else 7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7692$as_echo "no" >&6; } 7693fi 7694 7695 7696 GIMP_CONFIG=$GIMP_TOOL 7697 fi 7698 7699 min_gimp_version=1.0.0 7700 no_gimp="" 7701 7702 if test "$GIMP_CONFIG" = "no" ; then 7703 ac_save_CPPFLAGS="$CPPFLAGS" 7704 CPPFLAGS="${CPPFLAGS} ${GTK_CFLAGS}" 7705 for ac_header in libgimp/gimp.h 7706do : 7707 ac_fn_c_check_header_mongrel "$LINENO" "libgimp/gimp.h" "ac_cv_header_libgimp_gimp_h" "$ac_includes_default" 7708if test "x$ac_cv_header_libgimp_gimp_h" = xyes; then : 7709 cat >>confdefs.h <<_ACEOF 7710#define HAVE_LIBGIMP_GIMP_H 1 7711_ACEOF 7712 GIMP_LIBS="-lgimp" 7713else 7714 no_gimp=yes 7715fi 7716 7717done 7718 7719 for ac_header in libgimp/gimpfeatures.h 7720do : 7721 ac_fn_c_check_header_mongrel "$LINENO" "libgimp/gimpfeatures.h" "ac_cv_header_libgimp_gimpfeatures_h" "$ac_includes_default" 7722if test "x$ac_cv_header_libgimp_gimpfeatures_h" = xyes; then : 7723 cat >>confdefs.h <<_ACEOF 7724#define HAVE_LIBGIMP_GIMPFEATURES_H 1 7725_ACEOF 7726 7727fi 7728 7729done 7730 7731 CPPFLAGS="$ac_save_CPPFLAGS" 7732 CFLAGS="${CFLAGS} ${GTK_CFLAGS}" 7733 LIBS="${LIBS} ${GTK_LIBS} ${GIMP_LIBS}" 7734 7735 if test "x$no_gimp" = x ; then 7736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GIMP compilation" >&5 7737$as_echo_n "checking GIMP compilation... " >&6; } 7738 gimp_config_major_version=-1 7739 gimp_config_minor_version=0 7740 gimp_config_micro_version=0 7741 fi 7742 else 7743 GTK_CFLAGS="" 7744 GTK_LIBS="" 7745 GIMP_CFLAGS=`$GIMP_CONFIG $gimp_config_args --cflags` 7746 GIMP_LIBS=`$GIMP_CONFIG $gimp_config_args --libs`" -lgimp" 7747 gimp_config_major_version=`$GIMP_CONFIG $gimp_config_args --version | \ 7748 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 7749 gimp_config_minor_version=`$GIMP_CONFIG $gimp_config_args --version | \ 7750 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 7751 gimp_config_micro_version=`$GIMP_CONFIG $gimp_config_args --version | \ 7752 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 7753 CFLAGS="${CFLAGS} ${GIMP_CFLAGS}" 7754 LIBS="${LIBS} ${GIMP_LIBS}" 7755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIMP - version >= $min_gimp_version" >&5 7756$as_echo_n "checking for GIMP - version >= $min_gimp_version... " >&6; } 7757 fi 7758 7759 if test "x$no_gimp" = x ; then 7760 if test "$enable_gimptest" = "yes" ; then 7761 rm -f conf.gimptest 7762 if test "$cross_compiling" = yes; then : 7763 echo $ac_n "cross compiling; assumed OK... $ac_c" 7764else 7765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7766/* end confdefs.h. */ 7767 7768#include <libgimp/gimp.h> 7769#include <stdio.h> 7770 7771#define GIMP_TEST_CHECK_VERSION(major, minor, micro) \ 7772 ($gimp_config_major_version > (major) || \ 7773 ($gimp_config_major_version == (major) && $gimp_config_minor_version > (minor)) || \ 7774 ($gimp_config_major_version == (major) && $gimp_config_minor_version == (minor) && \ 7775 $gimp_config_micro_version >= (micro))) 7776 7777#if !GIMP_TEST_CHECK_VERSION(1,1,25) 7778# define GimpPlugInInfo GPlugInInfo /* do test with gimp interface version 1.0 */ 7779#endif 7780 7781GimpPlugInInfo PLUG_IN_INFO = 7782{ 7783 NULL, NULL, NULL, NULL 7784}; 7785 7786 7787int 7788main () 7789{ 7790 int major, minor, micro; 7791 7792 system ("touch conf.gimptest"); 7793 7794 if (sscanf("$min_gimp_version", "%d.%d.%d", &major, &minor, µ) != 3) { 7795 printf("%s, bad version string\n", "$min_gimp_version"); 7796 exit(1); 7797 } 7798 7799 if ( ($gimp_config_major_version != -1) && 7800 ((gimp_major_version != $gimp_config_major_version) || 7801 (gimp_minor_version != $gimp_config_minor_version) || 7802 (gimp_micro_version != $gimp_config_micro_version)) ) 7803 { 7804 printf("\n*** 'gimp-config --version' returned %d.%d.%d, but GIMP (%d.%d.%d)\n", 7805 $gimp_config_major_version, $gimp_config_minor_version, $gimp_config_micro_version, 7806 gimp_major_version, gimp_minor_version, gimp_micro_version); 7807 printf ("*** was found! If gimp-config was correct, then it is best\n"); 7808 printf ("*** to remove the old version of GIMP. You may also be able to fix the error\n"); 7809 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); 7810 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); 7811 printf("*** required on your system.\n"); 7812 printf("*** If gimp-config was wrong, set the environment variable GIMP_CONFIG\n"); 7813 printf("*** to point to the correct copy of gimp-config, and remove the file config.cache\n"); 7814 printf("*** before re-running configure\n"); 7815 } 7816 else 7817 { 7818 if ((gimp_major_version > major) || 7819 ((gimp_major_version == major) && (gimp_minor_version > minor)) || 7820 ((gimp_major_version == major) && (gimp_minor_version == minor) && (gimp_micro_version >= micro))) 7821 { 7822 return 0; 7823 } 7824 else 7825 { 7826 printf("\n*** An old version of GIMP (%d.%d.%d) was found.\n", 7827 gimp_major_version, gimp_minor_version, gimp_micro_version); 7828 printf("*** You need a version of GIMP newer than %d.%d.%d. The latest version of\n", 7829 major, minor, micro); 7830 printf("*** GIMP is always available from ftp://ftp.gimp.org.\n"); 7831 printf("***\n"); 7832 printf("*** If you have already installed a sufficiently new version, this error\n"); 7833 printf("*** probably means that the wrong copy of the gimp-config shell script is\n"); 7834 printf("*** being found. The easiest way to fix this is to remove the old version\n"); 7835 printf("*** of GIMP, but you can also set the GIMP_CONFIG environment to point to the\n"); 7836 printf("*** correct copy of gimp-config. (In this case, you will have to\n"); 7837 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); 7838 printf("*** so that the correct libraries are found at run-time))\n"); 7839 } 7840 } 7841 return 1; 7842} 7843 7844_ACEOF 7845if ac_fn_c_try_run "$LINENO"; then : 7846 7847else 7848 no_gimp=yes 7849fi 7850rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7851 conftest.$ac_objext conftest.beam conftest.$ac_ext 7852fi 7853 7854 fi 7855 fi 7856 7857 if test "x$no_gimp" = x ; then 7858 if test "$enable_gimptest" = "yes" ; then 7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7860$as_echo "yes" >&6; } 7861 else 7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not tested" >&5 7863$as_echo "not tested" >&6; } 7864 fi 7865 if test "$GIMP_CONFIG" != "no" ; then 7866 ac_save_CPPFLAGS="$CPPFLAGS" 7867 CPPFLAGS="${CPPFLAGS} ${GIMP_CFLAGS}" 7868 for ac_header in libgimp/gimp.h 7869do : 7870 ac_fn_c_check_header_mongrel "$LINENO" "libgimp/gimp.h" "ac_cv_header_libgimp_gimp_h" "$ac_includes_default" 7871if test "x$ac_cv_header_libgimp_gimp_h" = xyes; then : 7872 cat >>confdefs.h <<_ACEOF 7873#define HAVE_LIBGIMP_GIMP_H 1 7874_ACEOF 7875 7876fi 7877 7878done 7879 7880 for ac_header in libgimp/gimpfeatures.h 7881do : 7882 ac_fn_c_check_header_mongrel "$LINENO" "libgimp/gimpfeatures.h" "ac_cv_header_libgimp_gimpfeatures_h" "$ac_includes_default" 7883if test "x$ac_cv_header_libgimp_gimpfeatures_h" = xyes; then : 7884 cat >>confdefs.h <<_ACEOF 7885#define HAVE_LIBGIMP_GIMPFEATURES_H 1 7886_ACEOF 7887 7888fi 7889 7890done 7891 7892 CPPFLAGS="$ac_save_CPPFLAGS" 7893 fi 7894 CFLAGS="$ac_save_CFLAGS" 7895 LIBS="$ac_save_LIBS" 7896 HAVE_GIMP=yes 7897 else 7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7899$as_echo "no" >&6; } 7900 if test -f conf.gimptest ; then 7901 : 7902 else 7903 echo "" 7904 echo "*** Could not run GIMP test program, checking why..." 7905 CFLAGS="$CFLAGS $GIMP_CFLAGS" 7906 LIBS="$LIBS $GIMP_LIBS" 7907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7908/* end confdefs.h. */ 7909 7910#include <libgimp/gimp.h> 7911#include <stdio.h> 7912#define GIMP_TEST_CHECK_VERSION(major, minor, micro) \ 7913 ($gimp_config_major_version > (major) || \ 7914 ($gimp_config_major_version == (major) && $gimp_config_minor_version > (minor)) || \ 7915 ($gimp_config_major_version == (major) && $gimp_config_minor_version == (minor) && \ 7916 $gimp_config_micro_version >= (micro))) 7917 7918#if !GIMP_TEST_CHECK_VERSION(1,1,25) 7919# define GimpPlugInInfo GPlugInInfo /* do test with gimp interface version 1.0 */ 7920#endif 7921GimpPlugInInfo PLUG_IN_INFO = { NULL, NULL, NULL, NULL }; 7922 7923int 7924main () 7925{ 7926 return ((gimp_major_version) || (gimp_minor_version) || (gimp_micro_version)); 7927 ; 7928 return 0; 7929} 7930_ACEOF 7931if ac_fn_c_try_link "$LINENO"; then : 7932 echo "*** The test program compiled, but did not run. This usually means" 7933 echo "*** that the run-time linker is not finding GIMP or finding the wrong" 7934 echo "*** version of GIMP. If it is not finding GIMP, you'll need to set your" 7935 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 7936 echo "*** to the installed location Also, make sure you have run ldconfig if that" 7937 echo "*** is required on your system" 7938 echo "***" 7939 echo "*** If you have an old version installed, it is best to remove it, although" 7940 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 7941 echo "***" 7942 echo "***" 7943fi 7944rm -f core conftest.err conftest.$ac_objext \ 7945 conftest$ac_exeext conftest.$ac_ext 7946 CFLAGS="$ac_save_CFLAGS" 7947 LIBS="$ac_save_LIBS" 7948 fi 7949 7950 GIMP_CFLAGS="" 7951 GIMP_LIBS="" 7952 GTK_CFLAGS="$ac_save_GTK_CFLAGS" 7953 GTK_LIBS="$ac_save_GTK_LIBS" 7954 CFLAGS="${CFLAGS} ${GTK_CFLAGS}" 7955 LIBS="${LIBS} ${GTK_LIBS}" 7956 : 7957 fi 7958 7959 7960 rm -f conf.gimptest 7961 7962 fi 7963fi 7964 7965if test "${HAVE_GIMP}" = "yes"; then 7966 7967$as_echo "#define HAVE_ANY_GIMP 1" >>confdefs.h 7968 7969fi 7970 7971 7972# png test must stand after test for zlib 7973# png test must stand behind GTK-check (X-Window-check) 7974# because png.h is located in the X11 directory on some systems 7975# so we have to use GTK_CFLAGS and GTK_LIBS to test for png 7976if test "${USE_PNG}" = "yes"; then 7977 saved_CPPFLAGS="${CPPFLAGS}" 7978 7979 if test "x${HAVE_GTK}" != "x"; then 7980 CPPFLAGS="${CPPFLAGS} ${GTK_CFLAGS}" 7981 fi 7982 7983 for ac_header in png.h 7984do : 7985 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default" 7986if test "x$ac_cv_header_png_h" = xyes; then : 7987 cat >>confdefs.h <<_ACEOF 7988#define HAVE_PNG_H 1 7989_ACEOF 7990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_create_info_struct in -lpng" >&5 7991$as_echo_n "checking for png_create_info_struct in -lpng... " >&6; } 7992if ${ac_cv_lib_png_png_create_info_struct+:} false; then : 7993 $as_echo_n "(cached) " >&6 7994else 7995 ac_check_lib_save_LIBS=$LIBS 7996LIBS="-lpng ${GTK_LIBS} $LIBS" 7997cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7998/* end confdefs.h. */ 7999 8000/* Override any GCC internal prototype to avoid an error. 8001 Use char because int might match the return type of a GCC 8002 builtin and then its argument prototype would still apply. */ 8003#ifdef __cplusplus 8004extern "C" 8005#endif 8006char png_create_info_struct (); 8007int 8008main () 8009{ 8010return png_create_info_struct (); 8011 ; 8012 return 0; 8013} 8014_ACEOF 8015if ac_fn_c_try_link "$LINENO"; then : 8016 ac_cv_lib_png_png_create_info_struct=yes 8017else 8018 ac_cv_lib_png_png_create_info_struct=no 8019fi 8020rm -f core conftest.err conftest.$ac_objext \ 8021 conftest$ac_exeext conftest.$ac_ext 8022LIBS=$ac_check_lib_save_LIBS 8023fi 8024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_create_info_struct" >&5 8025$as_echo "$ac_cv_lib_png_png_create_info_struct" >&6; } 8026if test "x$ac_cv_lib_png_png_create_info_struct" = xyes; then : 8027 cat >>confdefs.h <<_ACEOF 8028#define HAVE_LIBPNG 1 8029_ACEOF 8030 8031 LIBS="-lpng $LIBS" 8032 8033fi 8034 8035fi 8036 8037done 8038 8039 CPPFLAGS="${saved_CPPFLAGS}" 8040fi 8041 8042 8043 8044 8045 8046 8047 8048CPPFLAGS="${CPPFLAGS} \ 8049 -DV_MAJOR=${V_MAJOR} -DV_MINOR=${V_MINOR} -DSANE_V_MAJOR=${SANE_V_MAJOR}" 8050 8051if test "x${HAVE_SANE}" = "x"; then 8052 echo "****************************************************************" 8053 echo "ERROR: SANE-1.0.0 or newer is needed for compiling xsane" 8054 echo " - if you installed SANE as rpm make sure you also included" 8055 echo " sane-devel" 8056 echo "****************************************************************" 8057 echo "" 8058 exit 8059fi 8060 8061if test "x${HAVE_GTK}" = "x"; then 8062 echo "****************************************************************" 8063 echo "ERROR: GTK-1.2.0 or newer is needed for compiling xsane" 8064 echo " if you installed gtk as rpm make sure you also included" 8065 echo " gtk-devel" 8066 echo "****************************************************************" 8067 echo "" 8068 exit 8069fi 8070 8071 8072 8073 8074 8075 8076 8077 8078# Check whether --enable-foo1 was given. 8079if test "${enable_foo1+set}" = set; then : 8080 enableval=$enable_foo1; 8081fi 8082 8083 8084# Check whether --enable-foo2 was given. 8085if test "${enable_foo2+set}" = set; then : 8086 enableval=$enable_foo2; 8087fi 8088 8089 8090ac_config_files="$ac_config_files Makefile intl/Makefile po/Makefile lib/Makefile src/Makefile include/Makefile doc/Makefile xsane.spec" 8091 8092cat >confcache <<\_ACEOF 8093# This file is a shell script that caches the results of configure 8094# tests run on this system so they can be shared between configure 8095# scripts and configure runs, see configure's option --config-cache. 8096# It is not useful on other systems. If it contains results you don't 8097# want to keep, you may remove or edit it. 8098# 8099# config.status only pays attention to the cache file if you give it 8100# the --recheck option to rerun configure. 8101# 8102# `ac_cv_env_foo' variables (set or unset) will be overridden when 8103# loading this file, other *unset* `ac_cv_foo' will be assigned the 8104# following values. 8105 8106_ACEOF 8107 8108# The following way of writing the cache mishandles newlines in values, 8109# but we know of no workaround that is simple, portable, and efficient. 8110# So, we kill variables containing newlines. 8111# Ultrix sh set writes to stderr and can't be redirected directly, 8112# and sets the high bit in the cache file unless we assign to the vars. 8113( 8114 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 8115 eval ac_val=\$$ac_var 8116 case $ac_val in #( 8117 *${as_nl}*) 8118 case $ac_var in #( 8119 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 8120$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 8121 esac 8122 case $ac_var in #( 8123 _ | IFS | as_nl) ;; #( 8124 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 8125 *) { eval $ac_var=; unset $ac_var;} ;; 8126 esac ;; 8127 esac 8128 done 8129 8130 (set) 2>&1 | 8131 case $as_nl`(ac_space=' '; set) 2>&1` in #( 8132 *${as_nl}ac_space=\ *) 8133 # `set' does not quote correctly, so add quotes: double-quote 8134 # substitution turns \\\\ into \\, and sed turns \\ into \. 8135 sed -n \ 8136 "s/'/'\\\\''/g; 8137 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 8138 ;; #( 8139 *) 8140 # `set' quotes correctly as required by POSIX, so do not add quotes. 8141 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 8142 ;; 8143 esac | 8144 sort 8145) | 8146 sed ' 8147 /^ac_cv_env_/b end 8148 t clear 8149 :clear 8150 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 8151 t end 8152 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 8153 :end' >>confcache 8154if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 8155 if test -w "$cache_file"; then 8156 if test "x$cache_file" != "x/dev/null"; then 8157 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 8158$as_echo "$as_me: updating cache $cache_file" >&6;} 8159 if test ! -f "$cache_file" || test -h "$cache_file"; then 8160 cat confcache >"$cache_file" 8161 else 8162 case $cache_file in #( 8163 */* | ?:*) 8164 mv -f confcache "$cache_file"$$ && 8165 mv -f "$cache_file"$$ "$cache_file" ;; #( 8166 *) 8167 mv -f confcache "$cache_file" ;; 8168 esac 8169 fi 8170 fi 8171 else 8172 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 8173$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 8174 fi 8175fi 8176rm -f confcache 8177 8178test "x$prefix" = xNONE && prefix=$ac_default_prefix 8179# Let make expand exec_prefix. 8180test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 8181 8182DEFS=-DHAVE_CONFIG_H 8183 8184ac_libobjs= 8185ac_ltlibobjs= 8186U= 8187for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 8188 # 1. Remove the extension, and $U if already installed. 8189 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 8190 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 8191 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 8192 # will be set to the directory where LIBOBJS objects are built. 8193 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 8194 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 8195done 8196LIBOBJS=$ac_libobjs 8197 8198LTLIBOBJS=$ac_ltlibobjs 8199 8200 8201 8202: "${CONFIG_STATUS=./config.status}" 8203ac_write_fail=0 8204ac_clean_files_save=$ac_clean_files 8205ac_clean_files="$ac_clean_files $CONFIG_STATUS" 8206{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 8207$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 8208as_write_fail=0 8209cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 8210#! $SHELL 8211# Generated by $as_me. 8212# Run this file to recreate the current configuration. 8213# Compiler output produced by configure, useful for debugging 8214# configure, is in config.log if it exists. 8215 8216debug=false 8217ac_cs_recheck=false 8218ac_cs_silent=false 8219 8220SHELL=\${CONFIG_SHELL-$SHELL} 8221export SHELL 8222_ASEOF 8223cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 8224## -------------------- ## 8225## M4sh Initialization. ## 8226## -------------------- ## 8227 8228# Be more Bourne compatible 8229DUALCASE=1; export DUALCASE # for MKS sh 8230if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 8231 emulate sh 8232 NULLCMD=: 8233 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 8234 # is contrary to our usage. Disable this feature. 8235 alias -g '${1+"$@"}'='"$@"' 8236 setopt NO_GLOB_SUBST 8237else 8238 case `(set -o) 2>/dev/null` in #( 8239 *posix*) : 8240 set -o posix ;; #( 8241 *) : 8242 ;; 8243esac 8244fi 8245 8246 8247as_nl=' 8248' 8249export as_nl 8250# Printing a long string crashes Solaris 7 /usr/bin/printf. 8251as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 8252as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 8253as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 8254# Prefer a ksh shell builtin over an external printf program on Solaris, 8255# but without wasting forks for bash or zsh. 8256if test -z "$BASH_VERSION$ZSH_VERSION" \ 8257 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 8258 as_echo='print -r --' 8259 as_echo_n='print -rn --' 8260elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 8261 as_echo='printf %s\n' 8262 as_echo_n='printf %s' 8263else 8264 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 8265 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 8266 as_echo_n='/usr/ucb/echo -n' 8267 else 8268 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 8269 as_echo_n_body='eval 8270 arg=$1; 8271 case $arg in #( 8272 *"$as_nl"*) 8273 expr "X$arg" : "X\\(.*\\)$as_nl"; 8274 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 8275 esac; 8276 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 8277 ' 8278 export as_echo_n_body 8279 as_echo_n='sh -c $as_echo_n_body as_echo' 8280 fi 8281 export as_echo_body 8282 as_echo='sh -c $as_echo_body as_echo' 8283fi 8284 8285# The user is always right. 8286if test "${PATH_SEPARATOR+set}" != set; then 8287 PATH_SEPARATOR=: 8288 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 8289 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 8290 PATH_SEPARATOR=';' 8291 } 8292fi 8293 8294 8295# IFS 8296# We need space, tab and new line, in precisely that order. Quoting is 8297# there to prevent editors from complaining about space-tab. 8298# (If _AS_PATH_WALK were called with IFS unset, it would disable word 8299# splitting by setting IFS to empty value.) 8300IFS=" "" $as_nl" 8301 8302# Find who we are. Look in the path if we contain no directory separator. 8303as_myself= 8304case $0 in #(( 8305 *[\\/]* ) as_myself=$0 ;; 8306 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8307for as_dir in $PATH 8308do 8309 IFS=$as_save_IFS 8310 test -z "$as_dir" && as_dir=. 8311 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 8312 done 8313IFS=$as_save_IFS 8314 8315 ;; 8316esac 8317# We did not find ourselves, most probably we were run as `sh COMMAND' 8318# in which case we are not to be found in the path. 8319if test "x$as_myself" = x; then 8320 as_myself=$0 8321fi 8322if test ! -f "$as_myself"; then 8323 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 8324 exit 1 8325fi 8326 8327# Unset variables that we do not need and which cause bugs (e.g. in 8328# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 8329# suppresses any "Segmentation fault" message there. '((' could 8330# trigger a bug in pdksh 5.2.14. 8331for as_var in BASH_ENV ENV MAIL MAILPATH 8332do eval test x\${$as_var+set} = xset \ 8333 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 8334done 8335PS1='$ ' 8336PS2='> ' 8337PS4='+ ' 8338 8339# NLS nuisances. 8340LC_ALL=C 8341export LC_ALL 8342LANGUAGE=C 8343export LANGUAGE 8344 8345# CDPATH. 8346(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 8347 8348 8349# as_fn_error STATUS ERROR [LINENO LOG_FD] 8350# ---------------------------------------- 8351# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 8352# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 8353# script with STATUS, using 1 if that was 0. 8354as_fn_error () 8355{ 8356 as_status=$1; test $as_status -eq 0 && as_status=1 8357 if test "$4"; then 8358 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 8359 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 8360 fi 8361 $as_echo "$as_me: error: $2" >&2 8362 as_fn_exit $as_status 8363} # as_fn_error 8364 8365 8366# as_fn_set_status STATUS 8367# ----------------------- 8368# Set $? to STATUS, without forking. 8369as_fn_set_status () 8370{ 8371 return $1 8372} # as_fn_set_status 8373 8374# as_fn_exit STATUS 8375# ----------------- 8376# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 8377as_fn_exit () 8378{ 8379 set +e 8380 as_fn_set_status $1 8381 exit $1 8382} # as_fn_exit 8383 8384# as_fn_unset VAR 8385# --------------- 8386# Portably unset VAR. 8387as_fn_unset () 8388{ 8389 { eval $1=; unset $1;} 8390} 8391as_unset=as_fn_unset 8392# as_fn_append VAR VALUE 8393# ---------------------- 8394# Append the text in VALUE to the end of the definition contained in VAR. Take 8395# advantage of any shell optimizations that allow amortized linear growth over 8396# repeated appends, instead of the typical quadratic growth present in naive 8397# implementations. 8398if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 8399 eval 'as_fn_append () 8400 { 8401 eval $1+=\$2 8402 }' 8403else 8404 as_fn_append () 8405 { 8406 eval $1=\$$1\$2 8407 } 8408fi # as_fn_append 8409 8410# as_fn_arith ARG... 8411# ------------------ 8412# Perform arithmetic evaluation on the ARGs, and store the result in the 8413# global $as_val. Take advantage of shells that can avoid forks. The arguments 8414# must be portable across $(()) and expr. 8415if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 8416 eval 'as_fn_arith () 8417 { 8418 as_val=$(( $* )) 8419 }' 8420else 8421 as_fn_arith () 8422 { 8423 as_val=`expr "$@" || test $? -eq 1` 8424 } 8425fi # as_fn_arith 8426 8427 8428if expr a : '\(a\)' >/dev/null 2>&1 && 8429 test "X`expr 00001 : '.*\(...\)'`" = X001; then 8430 as_expr=expr 8431else 8432 as_expr=false 8433fi 8434 8435if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 8436 as_basename=basename 8437else 8438 as_basename=false 8439fi 8440 8441if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 8442 as_dirname=dirname 8443else 8444 as_dirname=false 8445fi 8446 8447as_me=`$as_basename -- "$0" || 8448$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 8449 X"$0" : 'X\(//\)$' \| \ 8450 X"$0" : 'X\(/\)' \| . 2>/dev/null || 8451$as_echo X/"$0" | 8452 sed '/^.*\/\([^/][^/]*\)\/*$/{ 8453 s//\1/ 8454 q 8455 } 8456 /^X\/\(\/\/\)$/{ 8457 s//\1/ 8458 q 8459 } 8460 /^X\/\(\/\).*/{ 8461 s//\1/ 8462 q 8463 } 8464 s/.*/./; q'` 8465 8466# Avoid depending upon Character Ranges. 8467as_cr_letters='abcdefghijklmnopqrstuvwxyz' 8468as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 8469as_cr_Letters=$as_cr_letters$as_cr_LETTERS 8470as_cr_digits='0123456789' 8471as_cr_alnum=$as_cr_Letters$as_cr_digits 8472 8473ECHO_C= ECHO_N= ECHO_T= 8474case `echo -n x` in #((((( 8475-n*) 8476 case `echo 'xy\c'` in 8477 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 8478 xy) ECHO_C='\c';; 8479 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 8480 ECHO_T=' ';; 8481 esac;; 8482*) 8483 ECHO_N='-n';; 8484esac 8485 8486rm -f conf$$ conf$$.exe conf$$.file 8487if test -d conf$$.dir; then 8488 rm -f conf$$.dir/conf$$.file 8489else 8490 rm -f conf$$.dir 8491 mkdir conf$$.dir 2>/dev/null 8492fi 8493if (echo >conf$$.file) 2>/dev/null; then 8494 if ln -s conf$$.file conf$$ 2>/dev/null; then 8495 as_ln_s='ln -s' 8496 # ... but there are two gotchas: 8497 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 8498 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 8499 # In both cases, we have to default to `cp -p'. 8500 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 8501 as_ln_s='cp -p' 8502 elif ln conf$$.file conf$$ 2>/dev/null; then 8503 as_ln_s=ln 8504 else 8505 as_ln_s='cp -p' 8506 fi 8507else 8508 as_ln_s='cp -p' 8509fi 8510rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 8511rmdir conf$$.dir 2>/dev/null 8512 8513 8514# as_fn_mkdir_p 8515# ------------- 8516# Create "$as_dir" as a directory, including parents if necessary. 8517as_fn_mkdir_p () 8518{ 8519 8520 case $as_dir in #( 8521 -*) as_dir=./$as_dir;; 8522 esac 8523 test -d "$as_dir" || eval $as_mkdir_p || { 8524 as_dirs= 8525 while :; do 8526 case $as_dir in #( 8527 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 8528 *) as_qdir=$as_dir;; 8529 esac 8530 as_dirs="'$as_qdir' $as_dirs" 8531 as_dir=`$as_dirname -- "$as_dir" || 8532$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 8533 X"$as_dir" : 'X\(//\)[^/]' \| \ 8534 X"$as_dir" : 'X\(//\)$' \| \ 8535 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 8536$as_echo X"$as_dir" | 8537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 8538 s//\1/ 8539 q 8540 } 8541 /^X\(\/\/\)[^/].*/{ 8542 s//\1/ 8543 q 8544 } 8545 /^X\(\/\/\)$/{ 8546 s//\1/ 8547 q 8548 } 8549 /^X\(\/\).*/{ 8550 s//\1/ 8551 q 8552 } 8553 s/.*/./; q'` 8554 test -d "$as_dir" && break 8555 done 8556 test -z "$as_dirs" || eval "mkdir $as_dirs" 8557 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 8558 8559 8560} # as_fn_mkdir_p 8561if mkdir -p . 2>/dev/null; then 8562 as_mkdir_p='mkdir -p "$as_dir"' 8563else 8564 test -d ./-p && rmdir ./-p 8565 as_mkdir_p=false 8566fi 8567 8568if test -x / >/dev/null 2>&1; then 8569 as_test_x='test -x' 8570else 8571 if ls -dL / >/dev/null 2>&1; then 8572 as_ls_L_option=L 8573 else 8574 as_ls_L_option= 8575 fi 8576 as_test_x=' 8577 eval sh -c '\'' 8578 if test -d "$1"; then 8579 test -d "$1/."; 8580 else 8581 case $1 in #( 8582 -*)set "./$1";; 8583 esac; 8584 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 8585 ???[sx]*):;;*)false;;esac;fi 8586 '\'' sh 8587 ' 8588fi 8589as_executable_p=$as_test_x 8590 8591# Sed expression to map a string onto a valid CPP name. 8592as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 8593 8594# Sed expression to map a string onto a valid variable name. 8595as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 8596 8597 8598exec 6>&1 8599## ----------------------------------- ## 8600## Main body of $CONFIG_STATUS script. ## 8601## ----------------------------------- ## 8602_ASEOF 8603test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 8604 8605cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8606# Save the log message, to keep $0 and so on meaningful, and to 8607# report actual input values of CONFIG_FILES etc. instead of their 8608# values after options handling. 8609ac_log=" 8610This file was extended by $as_me, which was 8611generated by GNU Autoconf 2.68. Invocation command line was 8612 8613 CONFIG_FILES = $CONFIG_FILES 8614 CONFIG_HEADERS = $CONFIG_HEADERS 8615 CONFIG_LINKS = $CONFIG_LINKS 8616 CONFIG_COMMANDS = $CONFIG_COMMANDS 8617 $ $0 $@ 8618 8619on `(hostname || uname -n) 2>/dev/null | sed 1q` 8620" 8621 8622_ACEOF 8623 8624case $ac_config_files in *" 8625"*) set x $ac_config_files; shift; ac_config_files=$*;; 8626esac 8627 8628case $ac_config_headers in *" 8629"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 8630esac 8631 8632 8633cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8634# Files that config.status was made for. 8635config_files="$ac_config_files" 8636config_headers="$ac_config_headers" 8637config_links="$ac_config_links" 8638 8639_ACEOF 8640 8641cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8642ac_cs_usage="\ 8643\`$as_me' instantiates files and other configuration actions 8644from templates according to the current configuration. Unless the files 8645and actions are specified as TAGs, all are instantiated by default. 8646 8647Usage: $0 [OPTION]... [TAG]... 8648 8649 -h, --help print this help, then exit 8650 -V, --version print version number and configuration settings, then exit 8651 --config print configuration, then exit 8652 -q, --quiet, --silent 8653 do not print progress messages 8654 -d, --debug don't remove temporary files 8655 --recheck update $as_me by reconfiguring in the same conditions 8656 --file=FILE[:TEMPLATE] 8657 instantiate the configuration file FILE 8658 --header=FILE[:TEMPLATE] 8659 instantiate the configuration header FILE 8660 8661Configuration files: 8662$config_files 8663 8664Configuration headers: 8665$config_headers 8666 8667Configuration links: 8668$config_links 8669 8670Report bugs to the package provider." 8671 8672_ACEOF 8673cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8674ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 8675ac_cs_version="\\ 8676config.status 8677configured by $0, generated by GNU Autoconf 2.68, 8678 with options \\"\$ac_cs_config\\" 8679 8680Copyright (C) 2010 Free Software Foundation, Inc. 8681This config.status script is free software; the Free Software Foundation 8682gives unlimited permission to copy, distribute and modify it." 8683 8684ac_pwd='$ac_pwd' 8685srcdir='$srcdir' 8686INSTALL='$INSTALL' 8687test -n "\$AWK" || AWK=awk 8688_ACEOF 8689 8690cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8691# The default lists apply if the user does not specify any file. 8692ac_need_defaults=: 8693while test $# != 0 8694do 8695 case $1 in 8696 --*=?*) 8697 ac_option=`expr "X$1" : 'X\([^=]*\)='` 8698 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 8699 ac_shift=: 8700 ;; 8701 --*=) 8702 ac_option=`expr "X$1" : 'X\([^=]*\)='` 8703 ac_optarg= 8704 ac_shift=: 8705 ;; 8706 *) 8707 ac_option=$1 8708 ac_optarg=$2 8709 ac_shift=shift 8710 ;; 8711 esac 8712 8713 case $ac_option in 8714 # Handling of the options. 8715 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 8716 ac_cs_recheck=: ;; 8717 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 8718 $as_echo "$ac_cs_version"; exit ;; 8719 --config | --confi | --conf | --con | --co | --c ) 8720 $as_echo "$ac_cs_config"; exit ;; 8721 --debug | --debu | --deb | --de | --d | -d ) 8722 debug=: ;; 8723 --file | --fil | --fi | --f ) 8724 $ac_shift 8725 case $ac_optarg in 8726 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 8727 '') as_fn_error $? "missing file argument" ;; 8728 esac 8729 as_fn_append CONFIG_FILES " '$ac_optarg'" 8730 ac_need_defaults=false;; 8731 --header | --heade | --head | --hea ) 8732 $ac_shift 8733 case $ac_optarg in 8734 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 8735 esac 8736 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 8737 ac_need_defaults=false;; 8738 --he | --h) 8739 # Conflict between --help and --header 8740 as_fn_error $? "ambiguous option: \`$1' 8741Try \`$0 --help' for more information.";; 8742 --help | --hel | -h ) 8743 $as_echo "$ac_cs_usage"; exit ;; 8744 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 8745 | -silent | --silent | --silen | --sile | --sil | --si | --s) 8746 ac_cs_silent=: ;; 8747 8748 # This is an error. 8749 -*) as_fn_error $? "unrecognized option: \`$1' 8750Try \`$0 --help' for more information." ;; 8751 8752 *) as_fn_append ac_config_targets " $1" 8753 ac_need_defaults=false ;; 8754 8755 esac 8756 shift 8757done 8758 8759ac_configure_extra_args= 8760 8761if $ac_cs_silent; then 8762 exec 6>/dev/null 8763 ac_configure_extra_args="$ac_configure_extra_args --silent" 8764fi 8765 8766_ACEOF 8767cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8768if \$ac_cs_recheck; then 8769 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 8770 shift 8771 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 8772 CONFIG_SHELL='$SHELL' 8773 export CONFIG_SHELL 8774 exec "\$@" 8775fi 8776 8777_ACEOF 8778cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8779exec 5>>config.log 8780{ 8781 echo 8782 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 8783## Running $as_me. ## 8784_ASBOX 8785 $as_echo "$ac_log" 8786} >&5 8787 8788_ACEOF 8789cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8790_ACEOF 8791 8792cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8793 8794# Handling of arguments. 8795for ac_config_target in $ac_config_targets 8796do 8797 case $ac_config_target in 8798 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;; 8799 "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;; 8800 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 8801 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;; 8802 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; 8803 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 8804 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 8805 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 8806 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 8807 "xsane.spec") CONFIG_FILES="$CONFIG_FILES xsane.spec" ;; 8808 8809 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 8810 esac 8811done 8812 8813 8814# If the user did not use the arguments to specify the items to instantiate, 8815# then the envvar interface is used. Set only those that are not. 8816# We use the long form for the default assignment because of an extremely 8817# bizarre bug on SunOS 4.1.3. 8818if $ac_need_defaults; then 8819 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 8820 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 8821 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links 8822fi 8823 8824# Have a temporary directory for convenience. Make it in the build tree 8825# simply because there is no reason against having it here, and in addition, 8826# creating and moving files from /tmp can sometimes cause problems. 8827# Hook for its removal unless debugging. 8828# Note that there is a small window in which the directory will not be cleaned: 8829# after its creation but before its name has been assigned to `$tmp'. 8830$debug || 8831{ 8832 tmp= ac_tmp= 8833 trap 'exit_status=$? 8834 : "${ac_tmp:=$tmp}" 8835 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 8836' 0 8837 trap 'as_fn_exit 1' 1 2 13 15 8838} 8839# Create a (secure) tmp directory for tmp files. 8840 8841{ 8842 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 8843 test -d "$tmp" 8844} || 8845{ 8846 tmp=./conf$$-$RANDOM 8847 (umask 077 && mkdir "$tmp") 8848} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 8849ac_tmp=$tmp 8850 8851# Set up the scripts for CONFIG_FILES section. 8852# No need to generate them if there are no CONFIG_FILES. 8853# This happens for instance with `./config.status config.h'. 8854if test -n "$CONFIG_FILES"; then 8855 8856 8857ac_cr=`echo X | tr X '\015'` 8858# On cygwin, bash can eat \r inside `` if the user requested igncr. 8859# But we know of no other shell where ac_cr would be empty at this 8860# point, so we can use a bashism as a fallback. 8861if test "x$ac_cr" = x; then 8862 eval ac_cr=\$\'\\r\' 8863fi 8864ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 8865if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 8866 ac_cs_awk_cr='\\r' 8867else 8868 ac_cs_awk_cr=$ac_cr 8869fi 8870 8871echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 8872_ACEOF 8873 8874 8875{ 8876 echo "cat >conf$$subs.awk <<_ACEOF" && 8877 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 8878 echo "_ACEOF" 8879} >conf$$subs.sh || 8880 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 8881ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 8882ac_delim='%!_!# ' 8883for ac_last_try in false false false false false :; do 8884 . ./conf$$subs.sh || 8885 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 8886 8887 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 8888 if test $ac_delim_n = $ac_delim_num; then 8889 break 8890 elif $ac_last_try; then 8891 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 8892 else 8893 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 8894 fi 8895done 8896rm -f conf$$subs.sh 8897 8898cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8899cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 8900_ACEOF 8901sed -n ' 8902h 8903s/^/S["/; s/!.*/"]=/ 8904p 8905g 8906s/^[^!]*!// 8907:repl 8908t repl 8909s/'"$ac_delim"'$// 8910t delim 8911:nl 8912h 8913s/\(.\{148\}\)..*/\1/ 8914t more1 8915s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 8916p 8917n 8918b repl 8919:more1 8920s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 8921p 8922g 8923s/.\{148\}// 8924t nl 8925:delim 8926h 8927s/\(.\{148\}\)..*/\1/ 8928t more2 8929s/["\\]/\\&/g; s/^/"/; s/$/"/ 8930p 8931b 8932:more2 8933s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 8934p 8935g 8936s/.\{148\}// 8937t delim 8938' <conf$$subs.awk | sed ' 8939/^[^""]/{ 8940 N 8941 s/\n// 8942} 8943' >>$CONFIG_STATUS || ac_write_fail=1 8944rm -f conf$$subs.awk 8945cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8946_ACAWK 8947cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 8948 for (key in S) S_is_set[key] = 1 8949 FS = "" 8950 8951} 8952{ 8953 line = $ 0 8954 nfields = split(line, field, "@") 8955 substed = 0 8956 len = length(field[1]) 8957 for (i = 2; i < nfields; i++) { 8958 key = field[i] 8959 keylen = length(key) 8960 if (S_is_set[key]) { 8961 value = S[key] 8962 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 8963 len += length(value) + length(field[++i]) 8964 substed = 1 8965 } else 8966 len += 1 + keylen 8967 } 8968 8969 print line 8970} 8971 8972_ACAWK 8973_ACEOF 8974cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8975if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 8976 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 8977else 8978 cat 8979fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 8980 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 8981_ACEOF 8982 8983# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 8984# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 8985# trailing colons and then remove the whole line if VPATH becomes empty 8986# (actually we leave an empty line to preserve line numbers). 8987if test "x$srcdir" = x.; then 8988 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 8989h 8990s/// 8991s/^/:/ 8992s/[ ]*$/:/ 8993s/:\$(srcdir):/:/g 8994s/:\${srcdir}:/:/g 8995s/:@srcdir@:/:/g 8996s/^:*// 8997s/:*$// 8998x 8999s/\(=[ ]*\).*/\1/ 9000G 9001s/\n// 9002s/^[^=]*=[ ]*$// 9003}' 9004fi 9005 9006cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9007fi # test -n "$CONFIG_FILES" 9008 9009# Set up the scripts for CONFIG_HEADERS section. 9010# No need to generate them if there are no CONFIG_HEADERS. 9011# This happens for instance with `./config.status Makefile'. 9012if test -n "$CONFIG_HEADERS"; then 9013cat >"$ac_tmp/defines.awk" <<\_ACAWK || 9014BEGIN { 9015_ACEOF 9016 9017# Transform confdefs.h into an awk script `defines.awk', embedded as 9018# here-document in config.status, that substitutes the proper values into 9019# config.h.in to produce config.h. 9020 9021# Create a delimiter string that does not exist in confdefs.h, to ease 9022# handling of long lines. 9023ac_delim='%!_!# ' 9024for ac_last_try in false false :; do 9025 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 9026 if test -z "$ac_tt"; then 9027 break 9028 elif $ac_last_try; then 9029 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 9030 else 9031 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 9032 fi 9033done 9034 9035# For the awk script, D is an array of macro values keyed by name, 9036# likewise P contains macro parameters if any. Preserve backslash 9037# newline sequences. 9038 9039ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 9040sed -n ' 9041s/.\{148\}/&'"$ac_delim"'/g 9042t rset 9043:rset 9044s/^[ ]*#[ ]*define[ ][ ]*/ / 9045t def 9046d 9047:def 9048s/\\$// 9049t bsnl 9050s/["\\]/\\&/g 9051s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 9052D["\1"]=" \3"/p 9053s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 9054d 9055:bsnl 9056s/["\\]/\\&/g 9057s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 9058D["\1"]=" \3\\\\\\n"\\/p 9059t cont 9060s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 9061t cont 9062d 9063:cont 9064n 9065s/.\{148\}/&'"$ac_delim"'/g 9066t clear 9067:clear 9068s/\\$// 9069t bsnlc 9070s/["\\]/\\&/g; s/^/"/; s/$/"/p 9071d 9072:bsnlc 9073s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 9074b cont 9075' <confdefs.h | sed ' 9076s/'"$ac_delim"'/"\\\ 9077"/g' >>$CONFIG_STATUS || ac_write_fail=1 9078 9079cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9080 for (key in D) D_is_set[key] = 1 9081 FS = "" 9082} 9083/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 9084 line = \$ 0 9085 split(line, arg, " ") 9086 if (arg[1] == "#") { 9087 defundef = arg[2] 9088 mac1 = arg[3] 9089 } else { 9090 defundef = substr(arg[1], 2) 9091 mac1 = arg[2] 9092 } 9093 split(mac1, mac2, "(") #) 9094 macro = mac2[1] 9095 prefix = substr(line, 1, index(line, defundef) - 1) 9096 if (D_is_set[macro]) { 9097 # Preserve the white space surrounding the "#". 9098 print prefix "define", macro P[macro] D[macro] 9099 next 9100 } else { 9101 # Replace #undef with comments. This is necessary, for example, 9102 # in the case of _POSIX_SOURCE, which is predefined and required 9103 # on some systems where configure will not decide to define it. 9104 if (defundef == "undef") { 9105 print "/*", prefix defundef, macro, "*/" 9106 next 9107 } 9108 } 9109} 9110{ print } 9111_ACAWK 9112_ACEOF 9113cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9114 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 9115fi # test -n "$CONFIG_HEADERS" 9116 9117 9118eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS " 9119shift 9120for ac_tag 9121do 9122 case $ac_tag in 9123 :[FHLC]) ac_mode=$ac_tag; continue;; 9124 esac 9125 case $ac_mode$ac_tag in 9126 :[FHL]*:*);; 9127 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 9128 :[FH]-) ac_tag=-:-;; 9129 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 9130 esac 9131 ac_save_IFS=$IFS 9132 IFS=: 9133 set x $ac_tag 9134 IFS=$ac_save_IFS 9135 shift 9136 ac_file=$1 9137 shift 9138 9139 case $ac_mode in 9140 :L) ac_source=$1;; 9141 :[FH]) 9142 ac_file_inputs= 9143 for ac_f 9144 do 9145 case $ac_f in 9146 -) ac_f="$ac_tmp/stdin";; 9147 *) # Look for the file first in the build tree, then in the source tree 9148 # (if the path is not absolute). The absolute path cannot be DOS-style, 9149 # because $ac_f cannot contain `:'. 9150 test -f "$ac_f" || 9151 case $ac_f in 9152 [\\/$]*) false;; 9153 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 9154 esac || 9155 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 9156 esac 9157 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 9158 as_fn_append ac_file_inputs " '$ac_f'" 9159 done 9160 9161 # Let's still pretend it is `configure' which instantiates (i.e., don't 9162 # use $as_me), people would be surprised to read: 9163 # /* config.h. Generated by config.status. */ 9164 configure_input='Generated from '` 9165 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 9166 `' by configure.' 9167 if test x"$ac_file" != x-; then 9168 configure_input="$ac_file. $configure_input" 9169 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 9170$as_echo "$as_me: creating $ac_file" >&6;} 9171 fi 9172 # Neutralize special characters interpreted by sed in replacement strings. 9173 case $configure_input in #( 9174 *\&* | *\|* | *\\* ) 9175 ac_sed_conf_input=`$as_echo "$configure_input" | 9176 sed 's/[\\\\&|]/\\\\&/g'`;; #( 9177 *) ac_sed_conf_input=$configure_input;; 9178 esac 9179 9180 case $ac_tag in 9181 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 9182 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 9183 esac 9184 ;; 9185 esac 9186 9187 ac_dir=`$as_dirname -- "$ac_file" || 9188$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9189 X"$ac_file" : 'X\(//\)[^/]' \| \ 9190 X"$ac_file" : 'X\(//\)$' \| \ 9191 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 9192$as_echo X"$ac_file" | 9193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 9194 s//\1/ 9195 q 9196 } 9197 /^X\(\/\/\)[^/].*/{ 9198 s//\1/ 9199 q 9200 } 9201 /^X\(\/\/\)$/{ 9202 s//\1/ 9203 q 9204 } 9205 /^X\(\/\).*/{ 9206 s//\1/ 9207 q 9208 } 9209 s/.*/./; q'` 9210 as_dir="$ac_dir"; as_fn_mkdir_p 9211 ac_builddir=. 9212 9213case "$ac_dir" in 9214.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 9215*) 9216 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 9217 # A ".." for each directory in $ac_dir_suffix. 9218 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 9219 case $ac_top_builddir_sub in 9220 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 9221 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 9222 esac ;; 9223esac 9224ac_abs_top_builddir=$ac_pwd 9225ac_abs_builddir=$ac_pwd$ac_dir_suffix 9226# for backward compatibility: 9227ac_top_builddir=$ac_top_build_prefix 9228 9229case $srcdir in 9230 .) # We are building in place. 9231 ac_srcdir=. 9232 ac_top_srcdir=$ac_top_builddir_sub 9233 ac_abs_top_srcdir=$ac_pwd ;; 9234 [\\/]* | ?:[\\/]* ) # Absolute name. 9235 ac_srcdir=$srcdir$ac_dir_suffix; 9236 ac_top_srcdir=$srcdir 9237 ac_abs_top_srcdir=$srcdir ;; 9238 *) # Relative name. 9239 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 9240 ac_top_srcdir=$ac_top_build_prefix$srcdir 9241 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 9242esac 9243ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 9244 9245 9246 case $ac_mode in 9247 :F) 9248 # 9249 # CONFIG_FILE 9250 # 9251 9252 case $INSTALL in 9253 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 9254 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 9255 esac 9256_ACEOF 9257 9258cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9259# If the template does not know about datarootdir, expand it. 9260# FIXME: This hack should be removed a few years after 2.60. 9261ac_datarootdir_hack=; ac_datarootdir_seen= 9262ac_sed_dataroot=' 9263/datarootdir/ { 9264 p 9265 q 9266} 9267/@datadir@/p 9268/@docdir@/p 9269/@infodir@/p 9270/@localedir@/p 9271/@mandir@/p' 9272case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 9273*datarootdir*) ac_datarootdir_seen=yes;; 9274*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 9275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 9276$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 9277_ACEOF 9278cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9279 ac_datarootdir_hack=' 9280 s&@datadir@&$datadir&g 9281 s&@docdir@&$docdir&g 9282 s&@infodir@&$infodir&g 9283 s&@localedir@&$localedir&g 9284 s&@mandir@&$mandir&g 9285 s&\\\${datarootdir}&$datarootdir&g' ;; 9286esac 9287_ACEOF 9288 9289# Neutralize VPATH when `$srcdir' = `.'. 9290# Shell code in configure.ac might set extrasub. 9291# FIXME: do we really want to maintain this feature? 9292cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9293ac_sed_extra="$ac_vpsub 9294$extrasub 9295_ACEOF 9296cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9297:t 9298/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 9299s|@configure_input@|$ac_sed_conf_input|;t t 9300s&@top_builddir@&$ac_top_builddir_sub&;t t 9301s&@top_build_prefix@&$ac_top_build_prefix&;t t 9302s&@srcdir@&$ac_srcdir&;t t 9303s&@abs_srcdir@&$ac_abs_srcdir&;t t 9304s&@top_srcdir@&$ac_top_srcdir&;t t 9305s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 9306s&@builddir@&$ac_builddir&;t t 9307s&@abs_builddir@&$ac_abs_builddir&;t t 9308s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 9309s&@INSTALL@&$ac_INSTALL&;t t 9310$ac_datarootdir_hack 9311" 9312eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 9313 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 9314 9315test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 9316 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 9317 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 9318 "$ac_tmp/out"`; test -z "$ac_out"; } && 9319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 9320which seems to be undefined. Please make sure it is defined" >&5 9321$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 9322which seems to be undefined. Please make sure it is defined" >&2;} 9323 9324 rm -f "$ac_tmp/stdin" 9325 case $ac_file in 9326 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 9327 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 9328 esac \ 9329 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 9330 ;; 9331 :H) 9332 # 9333 # CONFIG_HEADER 9334 # 9335 if test x"$ac_file" != x-; then 9336 { 9337 $as_echo "/* $configure_input */" \ 9338 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 9339 } >"$ac_tmp/config.h" \ 9340 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 9341 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 9342 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 9343$as_echo "$as_me: $ac_file is unchanged" >&6;} 9344 else 9345 rm -f "$ac_file" 9346 mv "$ac_tmp/config.h" "$ac_file" \ 9347 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 9348 fi 9349 else 9350 $as_echo "/* $configure_input */" \ 9351 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 9352 || as_fn_error $? "could not create -" "$LINENO" 5 9353 fi 9354 ;; 9355 :L) 9356 # 9357 # CONFIG_LINK 9358 # 9359 9360 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then 9361 : 9362 else 9363 # Prefer the file from the source tree if names are identical. 9364 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then 9365 ac_source=$srcdir/$ac_source 9366 fi 9367 9368 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5 9369$as_echo "$as_me: linking $ac_source to $ac_file" >&6;} 9370 9371 if test ! -r "$ac_source"; then 9372 as_fn_error $? "$ac_source: file not found" "$LINENO" 5 9373 fi 9374 rm -f "$ac_file" 9375 9376 # Try a relative symlink, then a hard link, then a copy. 9377 case $ac_source in 9378 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;; 9379 *) ac_rel_source=$ac_top_build_prefix$ac_source ;; 9380 esac 9381 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null || 9382 ln "$ac_source" "$ac_file" 2>/dev/null || 9383 cp -p "$ac_source" "$ac_file" || 9384 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5 9385 fi 9386 ;; 9387 9388 esac 9389 9390done # for ac_tag 9391 9392 9393as_fn_exit 0 9394_ACEOF 9395ac_clean_files=$ac_clean_files_save 9396 9397test $ac_write_fail = 0 || 9398 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 9399 9400 9401# configure is writing to config.log, and then calls config.status. 9402# config.status does its own redirection, appending to config.log. 9403# Unfortunately, on DOS this fails, as config.log is still kept open 9404# by configure, so config.status won't be able to write to it; its 9405# output is simply discarded. So we exec the FD to /dev/null, 9406# effectively closing config.log, so it can be properly (re)opened and 9407# appended to by config.status. When coming back to configure, we 9408# need to make the FD available again. 9409if test "$no_create" != yes; then 9410 ac_cs_success=: 9411 ac_config_status_args= 9412 test "$silent" = yes && 9413 ac_config_status_args="$ac_config_status_args --quiet" 9414 exec 5>/dev/null 9415 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 9416 exec 5>>config.log 9417 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 9418 # would make configure fail if this is the last instruction. 9419 $ac_cs_success || as_fn_exit 1 9420fi 9421if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 9422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 9423$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 9424fi 9425 9426 9427echo "****************************************************************" 9428echo "* *" 9429echo "* XSANE configure status: *" 9430echo "* ----------------------- *" 9431 9432if test "${USE_NLS}" = "yes"; then 9433 if test "$USE_INCLUDED_LIBINTL" = yes; then 9434 echo "* - NLS activated (package internal) *" 9435 else 9436 echo "* - NLS activated (external) *" 9437 fi 9438else 9439 echo "* - NLS deactivated *" 9440fi 9441 9442if test "${GIMP_LIBS}set" != "set"; then 9443 echo "* - GIMP plugin activated *" 9444else 9445 echo "* - GIMP plugin deactivated *" 9446fi 9447 9448if test "${ac_cv_lib_jpeg_jpeg_start_decompress}" = "yes"; then 9449 echo "* - JPEG support activated *" 9450else 9451 echo "* - JPEG support deactivated *" 9452fi 9453 9454if test "${ac_cv_lib_tiff_TIFFOpen}" = "yes"; then 9455 echo "* - TIFF support activated *" 9456else 9457 echo "* - TIFF support deactivated *" 9458fi 9459 9460if test "${ac_cv_lib_png_png_create_info_struct}" = "yes"; then 9461 echo "* - PNG support activated *" 9462else 9463 echo "* - PNG support deactivated *" 9464fi 9465 9466if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile}" = "yes"; then 9467 echo "* - LCMS (color management) support activated *" 9468else 9469 echo "* - LCMS (color management) support deactivated *" 9470fi 9471 9472echo "* *" 9473echo "****************************************************************" 9474echo "* *" 9475echo "* To compile XSANE: *" 9476echo "* ----------------- *" 9477echo "* make *" 9478echo "* make install *" 9479echo "* *" 9480echo "* ------------------------------------------------------------ *" 9481echo "* ... PLEASE READ SANE DOCUMENTATION BEFORE STARTING XSANE ... *" 9482echo "* ------------------------------------------------------------ *" 9483echo "****************************************************************" 9484cat xsane.NEWS 9485