1#! /bin/sh 2# From configure.in Revision: 1.29 . 3# Guess values for system-dependent variables and create Makefiles. 4# Generated by GNU Autoconf 2.61. 5# 6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 7# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 8# This configure script is free software; the Free Software Foundation 9# gives unlimited permission to copy, distribute and modify it. 10## --------------------- ## 11## M4sh Initialization. ## 12## --------------------- ## 13 14# Be more Bourne compatible 15DUALCASE=1; export DUALCASE # for MKS sh 16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 17 emulate sh 18 NULLCMD=: 19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 20 # is contrary to our usage. Disable this feature. 21 alias -g '${1+"$@"}'='"$@"' 22 setopt NO_GLOB_SUBST 23else 24 case `(set -o) 2>/dev/null` in 25 *posix*) set -o posix ;; 26esac 27 28fi 29 30 31 32 33# PATH needs CR 34# Avoid depending upon Character Ranges. 35as_cr_letters='abcdefghijklmnopqrstuvwxyz' 36as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 37as_cr_Letters=$as_cr_letters$as_cr_LETTERS 38as_cr_digits='0123456789' 39as_cr_alnum=$as_cr_Letters$as_cr_digits 40 41# The user is always right. 42if test "${PATH_SEPARATOR+set}" != set; then 43 echo "#! /bin/sh" >conf$$.sh 44 echo "exit 0" >>conf$$.sh 45 chmod +x conf$$.sh 46 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 47 PATH_SEPARATOR=';' 48 else 49 PATH_SEPARATOR=: 50 fi 51 rm -f conf$$.sh 52fi 53 54# Support unset when possible. 55if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 56 as_unset=unset 57else 58 as_unset=false 59fi 60 61 62# IFS 63# We need space, tab and new line, in precisely that order. Quoting is 64# there to prevent editors from complaining about space-tab. 65# (If _AS_PATH_WALK were called with IFS unset, it would disable word 66# splitting by setting IFS to empty value.) 67as_nl=' 68' 69IFS=" "" $as_nl" 70 71# Find who we are. Look in the path if we contain no directory separator. 72case $0 in 73 *[\\/]* ) as_myself=$0 ;; 74 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 75for as_dir in $PATH 76do 77 IFS=$as_save_IFS 78 test -z "$as_dir" && as_dir=. 79 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 80done 81IFS=$as_save_IFS 82 83 ;; 84esac 85# We did not find ourselves, most probably we were run as `sh COMMAND' 86# in which case we are not to be found in the path. 87if test "x$as_myself" = x; then 88 as_myself=$0 89fi 90if test ! -f "$as_myself"; then 91 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 92 { (exit 1); exit 1; } 93fi 94 95# Work around bugs in pre-3.0 UWIN ksh. 96for as_var in ENV MAIL MAILPATH 97do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 98done 99PS1='$ ' 100PS2='> ' 101PS4='+ ' 102 103# NLS nuisances. 104for as_var in \ 105 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 106 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 107 LC_TELEPHONE LC_TIME 108do 109 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 110 eval $as_var=C; export $as_var 111 else 112 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 113 fi 114done 115 116# Required to use basename. 117if expr a : '\(a\)' >/dev/null 2>&1 && 118 test "X`expr 00001 : '.*\(...\)'`" = X001; then 119 as_expr=expr 120else 121 as_expr=false 122fi 123 124if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 125 as_basename=basename 126else 127 as_basename=false 128fi 129 130 131# Name of the executable. 132as_me=`$as_basename -- "$0" || 133$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 134 X"$0" : 'X\(//\)$' \| \ 135 X"$0" : 'X\(/\)' \| . 2>/dev/null || 136echo X/"$0" | 137 sed '/^.*\/\([^/][^/]*\)\/*$/{ 138 s//\1/ 139 q 140 } 141 /^X\/\(\/\/\)$/{ 142 s//\1/ 143 q 144 } 145 /^X\/\(\/\).*/{ 146 s//\1/ 147 q 148 } 149 s/.*/./; q'` 150 151# CDPATH. 152$as_unset CDPATH 153 154 155if test "x$CONFIG_SHELL" = x; then 156 if (eval ":") 2>/dev/null; then 157 as_have_required=yes 158else 159 as_have_required=no 160fi 161 162 if test $as_have_required = yes && (eval ": 163(as_func_return () { 164 (exit \$1) 165} 166as_func_success () { 167 as_func_return 0 168} 169as_func_failure () { 170 as_func_return 1 171} 172as_func_ret_success () { 173 return 0 174} 175as_func_ret_failure () { 176 return 1 177} 178 179exitcode=0 180if as_func_success; then 181 : 182else 183 exitcode=1 184 echo as_func_success failed. 185fi 186 187if as_func_failure; then 188 exitcode=1 189 echo as_func_failure succeeded. 190fi 191 192if as_func_ret_success; then 193 : 194else 195 exitcode=1 196 echo as_func_ret_success failed. 197fi 198 199if as_func_ret_failure; then 200 exitcode=1 201 echo as_func_ret_failure succeeded. 202fi 203 204if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 205 : 206else 207 exitcode=1 208 echo positional parameters were not saved. 209fi 210 211test \$exitcode = 0) || { (exit 1); exit 1; } 212 213( 214 as_lineno_1=\$LINENO 215 as_lineno_2=\$LINENO 216 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 217 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 218") 2> /dev/null; then 219 : 220else 221 as_candidate_shells= 222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 223for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 224do 225 IFS=$as_save_IFS 226 test -z "$as_dir" && as_dir=. 227 case $as_dir in 228 /*) 229 for as_base in sh bash ksh sh5; do 230 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 231 done;; 232 esac 233done 234IFS=$as_save_IFS 235 236 237 for as_shell in $as_candidate_shells $SHELL; do 238 # Try only shells that exist, to save several forks. 239 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 240 { ("$as_shell") 2> /dev/null <<\_ASEOF 241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 242 emulate sh 243 NULLCMD=: 244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 245 # is contrary to our usage. Disable this feature. 246 alias -g '${1+"$@"}'='"$@"' 247 setopt NO_GLOB_SUBST 248else 249 case `(set -o) 2>/dev/null` in 250 *posix*) set -o posix ;; 251esac 252 253fi 254 255 256: 257_ASEOF 258}; then 259 CONFIG_SHELL=$as_shell 260 as_have_required=yes 261 if { "$as_shell" 2> /dev/null <<\_ASEOF 262if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 263 emulate sh 264 NULLCMD=: 265 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 266 # is contrary to our usage. Disable this feature. 267 alias -g '${1+"$@"}'='"$@"' 268 setopt NO_GLOB_SUBST 269else 270 case `(set -o) 2>/dev/null` in 271 *posix*) set -o posix ;; 272esac 273 274fi 275 276 277: 278(as_func_return () { 279 (exit $1) 280} 281as_func_success () { 282 as_func_return 0 283} 284as_func_failure () { 285 as_func_return 1 286} 287as_func_ret_success () { 288 return 0 289} 290as_func_ret_failure () { 291 return 1 292} 293 294exitcode=0 295if as_func_success; then 296 : 297else 298 exitcode=1 299 echo as_func_success failed. 300fi 301 302if as_func_failure; then 303 exitcode=1 304 echo as_func_failure succeeded. 305fi 306 307if as_func_ret_success; then 308 : 309else 310 exitcode=1 311 echo as_func_ret_success failed. 312fi 313 314if as_func_ret_failure; then 315 exitcode=1 316 echo as_func_ret_failure succeeded. 317fi 318 319if ( set x; as_func_ret_success y && test x = "$1" ); then 320 : 321else 322 exitcode=1 323 echo positional parameters were not saved. 324fi 325 326test $exitcode = 0) || { (exit 1); exit 1; } 327 328( 329 as_lineno_1=$LINENO 330 as_lineno_2=$LINENO 331 test "x$as_lineno_1" != "x$as_lineno_2" && 332 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 333 334_ASEOF 335}; then 336 break 337fi 338 339fi 340 341 done 342 343 if test "x$CONFIG_SHELL" != x; then 344 for as_var in BASH_ENV ENV 345 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 346 done 347 export CONFIG_SHELL 348 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 349fi 350 351 352 if test $as_have_required = no; then 353 echo This script requires a shell more modern than all the 354 echo shells that I found on your system. Please install a 355 echo modern shell, or manually run the script under such a 356 echo shell if you do have one. 357 { (exit 1); exit 1; } 358fi 359 360 361fi 362 363fi 364 365 366 367(eval "as_func_return () { 368 (exit \$1) 369} 370as_func_success () { 371 as_func_return 0 372} 373as_func_failure () { 374 as_func_return 1 375} 376as_func_ret_success () { 377 return 0 378} 379as_func_ret_failure () { 380 return 1 381} 382 383exitcode=0 384if as_func_success; then 385 : 386else 387 exitcode=1 388 echo as_func_success failed. 389fi 390 391if as_func_failure; then 392 exitcode=1 393 echo as_func_failure succeeded. 394fi 395 396if as_func_ret_success; then 397 : 398else 399 exitcode=1 400 echo as_func_ret_success failed. 401fi 402 403if as_func_ret_failure; then 404 exitcode=1 405 echo as_func_ret_failure succeeded. 406fi 407 408if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 409 : 410else 411 exitcode=1 412 echo positional parameters were not saved. 413fi 414 415test \$exitcode = 0") || { 416 echo No shell found that supports shell functions. 417 echo Please tell autoconf@gnu.org about your system, 418 echo including any error possibly output before this 419 echo message 420} 421 422 423 424 as_lineno_1=$LINENO 425 as_lineno_2=$LINENO 426 test "x$as_lineno_1" != "x$as_lineno_2" && 427 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 428 429 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 430 # uniformly replaced by the line number. The first 'sed' inserts a 431 # line-number line after each line using $LINENO; the second 'sed' 432 # does the real work. The second script uses 'N' to pair each 433 # line-number line with the line containing $LINENO, and appends 434 # trailing '-' during substitution so that $LINENO is not a special 435 # case at line end. 436 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 437 # scripts with optimization help from Paolo Bonzini. Blame Lee 438 # E. McMahon (1931-1989) for sed's syntax. :-) 439 sed -n ' 440 p 441 /[$]LINENO/= 442 ' <$as_myself | 443 sed ' 444 s/[$]LINENO.*/&-/ 445 t lineno 446 b 447 :lineno 448 N 449 :loop 450 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 451 t loop 452 s/-\n.*// 453 ' >$as_me.lineno && 454 chmod +x "$as_me.lineno" || 455 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 456 { (exit 1); exit 1; }; } 457 458 # Don't try to exec as it changes $[0], causing all sort of problems 459 # (the dirname of $[0] is not the place where we might find the 460 # original and so on. Autoconf is especially sensitive to this). 461 . "./$as_me.lineno" 462 # Exit status is that of the last command. 463 exit 464} 465 466 467if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 468 as_dirname=dirname 469else 470 as_dirname=false 471fi 472 473ECHO_C= ECHO_N= ECHO_T= 474case `echo -n x` in 475-n*) 476 case `echo 'x\c'` in 477 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 478 *) ECHO_C='\c';; 479 esac;; 480*) 481 ECHO_N='-n';; 482esac 483 484if expr a : '\(a\)' >/dev/null 2>&1 && 485 test "X`expr 00001 : '.*\(...\)'`" = X001; then 486 as_expr=expr 487else 488 as_expr=false 489fi 490 491rm -f conf$$ conf$$.exe conf$$.file 492if test -d conf$$.dir; then 493 rm -f conf$$.dir/conf$$.file 494else 495 rm -f conf$$.dir 496 mkdir conf$$.dir 497fi 498echo >conf$$.file 499if ln -s conf$$.file conf$$ 2>/dev/null; then 500 as_ln_s='ln -s' 501 # ... but there are two gotchas: 502 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 503 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 504 # In both cases, we have to default to `cp -p'. 505 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 506 as_ln_s='cp -p' 507elif ln conf$$.file conf$$ 2>/dev/null; then 508 as_ln_s=ln 509else 510 as_ln_s='cp -p' 511fi 512rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 513rmdir conf$$.dir 2>/dev/null 514 515if mkdir -p . 2>/dev/null; then 516 as_mkdir_p=: 517else 518 test -d ./-p && rmdir ./-p 519 as_mkdir_p=false 520fi 521 522if test -x / >/dev/null 2>&1; then 523 as_test_x='test -x' 524else 525 if ls -dL / >/dev/null 2>&1; then 526 as_ls_L_option=L 527 else 528 as_ls_L_option= 529 fi 530 as_test_x=' 531 eval sh -c '\'' 532 if test -d "$1"; then 533 test -d "$1/."; 534 else 535 case $1 in 536 -*)set "./$1";; 537 esac; 538 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 539 ???[sx]*):;;*)false;;esac;fi 540 '\'' sh 541 ' 542fi 543as_executable_p=$as_test_x 544 545# Sed expression to map a string onto a valid CPP name. 546as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 547 548# Sed expression to map a string onto a valid variable name. 549as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 550 551 552 553exec 7<&0 </dev/null 6>&1 554 555# Name of the host. 556# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 557# so uname gets run too. 558ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 559 560# 561# Initializations. 562# 563ac_default_prefix=/usr/local 564ac_clean_files= 565ac_config_libobj_dir=. 566LIBOBJS= 567cross_compiling=no 568subdirs= 569MFLAGS= 570MAKEFLAGS= 571SHELL=${CONFIG_SHELL-/bin/sh} 572 573# Identity of this package. 574PACKAGE_NAME= 575PACKAGE_TARNAME= 576PACKAGE_VERSION= 577PACKAGE_STRING= 578PACKAGE_BUGREPORT= 579 580ac_unique_file="configure.in" 581# Factoring default headers for most tests. 582ac_includes_default="\ 583#include <stdio.h> 584#ifdef HAVE_SYS_TYPES_H 585# include <sys/types.h> 586#endif 587#ifdef HAVE_SYS_STAT_H 588# include <sys/stat.h> 589#endif 590#ifdef STDC_HEADERS 591# include <stdlib.h> 592# include <stddef.h> 593#else 594# ifdef HAVE_STDLIB_H 595# include <stdlib.h> 596# endif 597#endif 598#ifdef HAVE_STRING_H 599# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 600# include <memory.h> 601# endif 602# include <string.h> 603#endif 604#ifdef HAVE_STRINGS_H 605# include <strings.h> 606#endif 607#ifdef HAVE_INTTYPES_H 608# include <inttypes.h> 609#endif 610#ifdef HAVE_STDINT_H 611# include <stdint.h> 612#endif 613#ifdef HAVE_UNISTD_H 614# include <unistd.h> 615#endif" 616 617ac_subst_vars='SHELL 618PATH_SEPARATOR 619PACKAGE_NAME 620PACKAGE_TARNAME 621PACKAGE_VERSION 622PACKAGE_STRING 623PACKAGE_BUGREPORT 624exec_prefix 625prefix 626program_transform_name 627bindir 628sbindir 629libexecdir 630datarootdir 631datadir 632sysconfdir 633sharedstatedir 634localstatedir 635includedir 636oldincludedir 637docdir 638infodir 639htmldir 640dvidir 641pdfdir 642psdir 643libdir 644localedir 645mandir 646DEFS 647ECHO_C 648ECHO_N 649ECHO_T 650LIBS 651build_alias 652host_alias 653target_alias 654INSTALL_PROGRAM 655INSTALL_SCRIPT 656INSTALL_DATA 657am__isrc 658CYGPATH_W 659PACKAGE 660VERSION 661ACLOCAL 662AUTOCONF 663AUTOMAKE 664AUTOHEADER 665MAKEINFO 666install_sh 667STRIP 668INSTALL_STRIP_PROGRAM 669mkdir_p 670AWK 671SET_MAKE 672am__leading_dot 673AMTAR 674am__tar 675am__untar 676MAINTAINER_MODE_TRUE 677MAINTAINER_MODE_FALSE 678MAINT 679INTLTOOL_DESKTOP_RULE 680INTLTOOL_DIRECTORY_RULE 681INTLTOOL_KEYS_RULE 682INTLTOOL_PROP_RULE 683INTLTOOL_OAF_RULE 684INTLTOOL_PONG_RULE 685INTLTOOL_SERVER_RULE 686INTLTOOL_SHEET_RULE 687INTLTOOL_SOUNDLIST_RULE 688INTLTOOL_UI_RULE 689INTLTOOL_XAM_RULE 690INTLTOOL_KBD_RULE 691INTLTOOL_XML_RULE 692INTLTOOL_XML_NOMERGE_RULE 693INTLTOOL_CAVES_RULE 694INTLTOOL_SCHEMAS_RULE 695INTLTOOL_THEME_RULE 696INTLTOOL_SERVICE_RULE 697INTLTOOL_POLICY_RULE 698XGETTEXT 699MSGMERGE 700MSGFMT 701INTLTOOL_EXTRACT 702INTLTOOL_MERGE 703INTLTOOL_UPDATE 704INTLTOOL_PERL 705ALL_LINGUAS 706CC 707CFLAGS 708LDFLAGS 709CPPFLAGS 710ac_ct_CC 711EXEEXT 712OBJEXT 713DEPDIR 714am__include 715am__quote 716AMDEP_TRUE 717AMDEP_FALSE 718AMDEPBACKSLASH 719CCDEPMODE 720am__fastdepCC_TRUE 721am__fastdepCC_FALSE 722DATADIRNAME 723CPP 724GREP 725EGREP 726RANLIB 727SED 728BC 729XMKMF 730X_CFLAGS 731X_PRE_LIBS 732X_LIBS 733X_EXTRA_LIBS 734SCROLLKEEPER_BUILD_REQUIRED 735SK_CONFIG 736MK 737DOCBOOK2X_MAN 738XML2PO 739GETTEXT_PACKAGE 740USE_NLS 741MSGFMT_OPTS 742GMSGFMT 743CATALOGS 744CATOBJEXT 745GMOFILES 746INSTOBJEXT 747INTLLIBS 748PO_IN_DATADIR_TRUE 749PO_IN_DATADIR_FALSE 750POFILES 751POSUB 752MKINSTALLDIRS 753PKG_CONFIG 754PACKAGE_CFLAGS 755PACKAGE_LIBS 756SOLARIS_TRUE 757SOLARIS_FALSE 758LINUX_TRUE 759LINUX_FALSE 760HPUX_TRUE 761HPUX_FALSE 762FREEBSD_TRUE 763FREEBSD_FALSE 764HAVE_LIBMP3LAME_TRUE 765HAVE_LIBMP3LAME_FALSE 766HAVE_LIBTHEORA_TRUE 767HAVE_LIBTHEORA_FALSE 768build 769build_cpu 770build_vendor 771build_os 772host 773host_cpu 774host_vendor 775host_os 776acx_pthread_config 777PTHREAD_CC 778PTHREAD_LIBS 779PTHREAD_CFLAGS 780STATIC_AVFORMAT_TRUE 781STATIC_AVFORMAT_FALSE 782STATIC_AVCODEC_TRUE 783STATIC_AVCODEC_FALSE 784STATIC_AVUTIL_TRUE 785STATIC_AVUTIL_FALSE 786LIBOBJS 787HAVE_GETOPT_LONG_TRUE 788HAVE_GETOPT_LONG_FALSE 789HAVE_MALLOC_TRUE 790HAVE_MALLOC_FALSE 791HAVE_REALLOC_TRUE 792HAVE_REALLOC_FALSE 793HAVE_FFMPEG_AUDIO_TRUE 794HAVE_FFMPEG_AUDIO_FALSE 795USE_DBUS_TRUE 796USE_DBUS_FALSE 797LTLIBOBJS' 798ac_subst_files='' 799 ac_precious_vars='build_alias 800host_alias 801target_alias 802CC 803CFLAGS 804LDFLAGS 805LIBS 806CPPFLAGS 807CPP 808XMKMF 809PKG_CONFIG 810PACKAGE_CFLAGS 811PACKAGE_LIBS' 812 813 814# Initialize some variables set by options. 815ac_init_help= 816ac_init_version=false 817# The variables have the same names as the options, with 818# dashes changed to underlines. 819cache_file=/dev/null 820exec_prefix=NONE 821no_create= 822no_recursion= 823prefix=NONE 824program_prefix=NONE 825program_suffix=NONE 826program_transform_name=s,x,x, 827silent= 828site= 829srcdir= 830verbose= 831x_includes=NONE 832x_libraries=NONE 833 834# Installation directory options. 835# These are left unexpanded so users can "make install exec_prefix=/foo" 836# and all the variables that are supposed to be based on exec_prefix 837# by default will actually change. 838# Use braces instead of parens because sh, perl, etc. also accept them. 839# (The list follows the same order as the GNU Coding Standards.) 840bindir='${exec_prefix}/bin' 841sbindir='${exec_prefix}/sbin' 842libexecdir='${exec_prefix}/libexec' 843datarootdir='${prefix}/share' 844datadir='${datarootdir}' 845sysconfdir='${prefix}/etc' 846sharedstatedir='${prefix}/com' 847localstatedir='${prefix}/var' 848includedir='${prefix}/include' 849oldincludedir='/usr/include' 850docdir='${datarootdir}/doc/${PACKAGE}' 851infodir='${datarootdir}/info' 852htmldir='${docdir}' 853dvidir='${docdir}' 854pdfdir='${docdir}' 855psdir='${docdir}' 856libdir='${exec_prefix}/lib' 857localedir='${datarootdir}/locale' 858mandir='${datarootdir}/man' 859 860ac_prev= 861ac_dashdash= 862for ac_option 863do 864 # If the previous option needs an argument, assign it. 865 if test -n "$ac_prev"; then 866 eval $ac_prev=\$ac_option 867 ac_prev= 868 continue 869 fi 870 871 case $ac_option in 872 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 873 *) ac_optarg=yes ;; 874 esac 875 876 # Accept the important Cygnus configure options, so we can diagnose typos. 877 878 case $ac_dashdash$ac_option in 879 --) 880 ac_dashdash=yes ;; 881 882 -bindir | --bindir | --bindi | --bind | --bin | --bi) 883 ac_prev=bindir ;; 884 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 885 bindir=$ac_optarg ;; 886 887 -build | --build | --buil | --bui | --bu) 888 ac_prev=build_alias ;; 889 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 890 build_alias=$ac_optarg ;; 891 892 -cache-file | --cache-file | --cache-fil | --cache-fi \ 893 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 894 ac_prev=cache_file ;; 895 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 896 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 897 cache_file=$ac_optarg ;; 898 899 --config-cache | -C) 900 cache_file=config.cache ;; 901 902 -datadir | --datadir | --datadi | --datad) 903 ac_prev=datadir ;; 904 -datadir=* | --datadir=* | --datadi=* | --datad=*) 905 datadir=$ac_optarg ;; 906 907 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 908 | --dataroo | --dataro | --datar) 909 ac_prev=datarootdir ;; 910 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 911 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 912 datarootdir=$ac_optarg ;; 913 914 -disable-* | --disable-*) 915 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 916 # Reject names that are not valid shell variable names. 917 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 918 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 919 { (exit 1); exit 1; }; } 920 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 921 eval enable_$ac_feature=no ;; 922 923 -docdir | --docdir | --docdi | --doc | --do) 924 ac_prev=docdir ;; 925 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 926 docdir=$ac_optarg ;; 927 928 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 929 ac_prev=dvidir ;; 930 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 931 dvidir=$ac_optarg ;; 932 933 -enable-* | --enable-*) 934 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 935 # Reject names that are not valid shell variable names. 936 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 937 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 938 { (exit 1); exit 1; }; } 939 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 940 eval enable_$ac_feature=\$ac_optarg ;; 941 942 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 943 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 944 | --exec | --exe | --ex) 945 ac_prev=exec_prefix ;; 946 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 947 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 948 | --exec=* | --exe=* | --ex=*) 949 exec_prefix=$ac_optarg ;; 950 951 -gas | --gas | --ga | --g) 952 # Obsolete; use --with-gas. 953 with_gas=yes ;; 954 955 -help | --help | --hel | --he | -h) 956 ac_init_help=long ;; 957 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 958 ac_init_help=recursive ;; 959 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 960 ac_init_help=short ;; 961 962 -host | --host | --hos | --ho) 963 ac_prev=host_alias ;; 964 -host=* | --host=* | --hos=* | --ho=*) 965 host_alias=$ac_optarg ;; 966 967 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 968 ac_prev=htmldir ;; 969 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 970 | --ht=*) 971 htmldir=$ac_optarg ;; 972 973 -includedir | --includedir | --includedi | --included | --include \ 974 | --includ | --inclu | --incl | --inc) 975 ac_prev=includedir ;; 976 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 977 | --includ=* | --inclu=* | --incl=* | --inc=*) 978 includedir=$ac_optarg ;; 979 980 -infodir | --infodir | --infodi | --infod | --info | --inf) 981 ac_prev=infodir ;; 982 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 983 infodir=$ac_optarg ;; 984 985 -libdir | --libdir | --libdi | --libd) 986 ac_prev=libdir ;; 987 -libdir=* | --libdir=* | --libdi=* | --libd=*) 988 libdir=$ac_optarg ;; 989 990 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 991 | --libexe | --libex | --libe) 992 ac_prev=libexecdir ;; 993 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 994 | --libexe=* | --libex=* | --libe=*) 995 libexecdir=$ac_optarg ;; 996 997 -localedir | --localedir | --localedi | --localed | --locale) 998 ac_prev=localedir ;; 999 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1000 localedir=$ac_optarg ;; 1001 1002 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1003 | --localstate | --localstat | --localsta | --localst | --locals) 1004 ac_prev=localstatedir ;; 1005 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1006 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1007 localstatedir=$ac_optarg ;; 1008 1009 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1010 ac_prev=mandir ;; 1011 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1012 mandir=$ac_optarg ;; 1013 1014 -nfp | --nfp | --nf) 1015 # Obsolete; use --without-fp. 1016 with_fp=no ;; 1017 1018 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1019 | --no-cr | --no-c | -n) 1020 no_create=yes ;; 1021 1022 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1023 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1024 no_recursion=yes ;; 1025 1026 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1027 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1028 | --oldin | --oldi | --old | --ol | --o) 1029 ac_prev=oldincludedir ;; 1030 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1031 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1032 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1033 oldincludedir=$ac_optarg ;; 1034 1035 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1036 ac_prev=prefix ;; 1037 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1038 prefix=$ac_optarg ;; 1039 1040 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1041 | --program-pre | --program-pr | --program-p) 1042 ac_prev=program_prefix ;; 1043 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1044 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1045 program_prefix=$ac_optarg ;; 1046 1047 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1048 | --program-suf | --program-su | --program-s) 1049 ac_prev=program_suffix ;; 1050 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1051 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1052 program_suffix=$ac_optarg ;; 1053 1054 -program-transform-name | --program-transform-name \ 1055 | --program-transform-nam | --program-transform-na \ 1056 | --program-transform-n | --program-transform- \ 1057 | --program-transform | --program-transfor \ 1058 | --program-transfo | --program-transf \ 1059 | --program-trans | --program-tran \ 1060 | --progr-tra | --program-tr | --program-t) 1061 ac_prev=program_transform_name ;; 1062 -program-transform-name=* | --program-transform-name=* \ 1063 | --program-transform-nam=* | --program-transform-na=* \ 1064 | --program-transform-n=* | --program-transform-=* \ 1065 | --program-transform=* | --program-transfor=* \ 1066 | --program-transfo=* | --program-transf=* \ 1067 | --program-trans=* | --program-tran=* \ 1068 | --progr-tra=* | --program-tr=* | --program-t=*) 1069 program_transform_name=$ac_optarg ;; 1070 1071 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1072 ac_prev=pdfdir ;; 1073 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1074 pdfdir=$ac_optarg ;; 1075 1076 -psdir | --psdir | --psdi | --psd | --ps) 1077 ac_prev=psdir ;; 1078 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1079 psdir=$ac_optarg ;; 1080 1081 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1082 | -silent | --silent | --silen | --sile | --sil) 1083 silent=yes ;; 1084 1085 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1086 ac_prev=sbindir ;; 1087 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1088 | --sbi=* | --sb=*) 1089 sbindir=$ac_optarg ;; 1090 1091 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1092 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1093 | --sharedst | --shareds | --shared | --share | --shar \ 1094 | --sha | --sh) 1095 ac_prev=sharedstatedir ;; 1096 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1097 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1098 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1099 | --sha=* | --sh=*) 1100 sharedstatedir=$ac_optarg ;; 1101 1102 -site | --site | --sit) 1103 ac_prev=site ;; 1104 -site=* | --site=* | --sit=*) 1105 site=$ac_optarg ;; 1106 1107 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1108 ac_prev=srcdir ;; 1109 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1110 srcdir=$ac_optarg ;; 1111 1112 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1113 | --syscon | --sysco | --sysc | --sys | --sy) 1114 ac_prev=sysconfdir ;; 1115 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1116 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1117 sysconfdir=$ac_optarg ;; 1118 1119 -target | --target | --targe | --targ | --tar | --ta | --t) 1120 ac_prev=target_alias ;; 1121 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1122 target_alias=$ac_optarg ;; 1123 1124 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1125 verbose=yes ;; 1126 1127 -version | --version | --versio | --versi | --vers | -V) 1128 ac_init_version=: ;; 1129 1130 -with-* | --with-*) 1131 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1132 # Reject names that are not valid shell variable names. 1133 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1134 { echo "$as_me: error: invalid package name: $ac_package" >&2 1135 { (exit 1); exit 1; }; } 1136 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1137 eval with_$ac_package=\$ac_optarg ;; 1138 1139 -without-* | --without-*) 1140 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1141 # Reject names that are not valid shell variable names. 1142 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1143 { echo "$as_me: error: invalid package name: $ac_package" >&2 1144 { (exit 1); exit 1; }; } 1145 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1146 eval with_$ac_package=no ;; 1147 1148 --x) 1149 # Obsolete; use --with-x. 1150 with_x=yes ;; 1151 1152 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1153 | --x-incl | --x-inc | --x-in | --x-i) 1154 ac_prev=x_includes ;; 1155 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1156 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1157 x_includes=$ac_optarg ;; 1158 1159 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1160 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1161 ac_prev=x_libraries ;; 1162 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1163 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1164 x_libraries=$ac_optarg ;; 1165 1166 -*) { echo "$as_me: error: unrecognized option: $ac_option 1167Try \`$0 --help' for more information." >&2 1168 { (exit 1); exit 1; }; } 1169 ;; 1170 1171 *=*) 1172 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1173 # Reject names that are not valid shell variable names. 1174 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1175 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1176 { (exit 1); exit 1; }; } 1177 eval $ac_envvar=\$ac_optarg 1178 export $ac_envvar ;; 1179 1180 *) 1181 # FIXME: should be removed in autoconf 3.0. 1182 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1183 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1184 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1185 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1186 ;; 1187 1188 esac 1189done 1190 1191if test -n "$ac_prev"; then 1192 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1193 { echo "$as_me: error: missing argument to $ac_option" >&2 1194 { (exit 1); exit 1; }; } 1195fi 1196 1197# Be sure to have absolute directory names. 1198for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1199 datadir sysconfdir sharedstatedir localstatedir includedir \ 1200 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1201 libdir localedir mandir 1202do 1203 eval ac_val=\$$ac_var 1204 case $ac_val in 1205 [\\/$]* | ?:[\\/]* ) continue;; 1206 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1207 esac 1208 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1209 { (exit 1); exit 1; }; } 1210done 1211 1212# There might be people who depend on the old broken behavior: `$host' 1213# used to hold the argument of --host etc. 1214# FIXME: To remove some day. 1215build=$build_alias 1216host=$host_alias 1217target=$target_alias 1218 1219# FIXME: To remove some day. 1220if test "x$host_alias" != x; then 1221 if test "x$build_alias" = x; then 1222 cross_compiling=maybe 1223 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1224 If a cross compiler is detected then cross compile mode will be used." >&2 1225 elif test "x$build_alias" != "x$host_alias"; then 1226 cross_compiling=yes 1227 fi 1228fi 1229 1230ac_tool_prefix= 1231test -n "$host_alias" && ac_tool_prefix=$host_alias- 1232 1233test "$silent" = yes && exec 6>/dev/null 1234 1235 1236ac_pwd=`pwd` && test -n "$ac_pwd" && 1237ac_ls_di=`ls -di .` && 1238ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1239 { echo "$as_me: error: Working directory cannot be determined" >&2 1240 { (exit 1); exit 1; }; } 1241test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1242 { echo "$as_me: error: pwd does not report name of working directory" >&2 1243 { (exit 1); exit 1; }; } 1244 1245 1246# Find the source files, if location was not specified. 1247if test -z "$srcdir"; then 1248 ac_srcdir_defaulted=yes 1249 # Try the directory containing this script, then the parent directory. 1250 ac_confdir=`$as_dirname -- "$0" || 1251$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1252 X"$0" : 'X\(//\)[^/]' \| \ 1253 X"$0" : 'X\(//\)$' \| \ 1254 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1255echo X"$0" | 1256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1257 s//\1/ 1258 q 1259 } 1260 /^X\(\/\/\)[^/].*/{ 1261 s//\1/ 1262 q 1263 } 1264 /^X\(\/\/\)$/{ 1265 s//\1/ 1266 q 1267 } 1268 /^X\(\/\).*/{ 1269 s//\1/ 1270 q 1271 } 1272 s/.*/./; q'` 1273 srcdir=$ac_confdir 1274 if test ! -r "$srcdir/$ac_unique_file"; then 1275 srcdir=.. 1276 fi 1277else 1278 ac_srcdir_defaulted=no 1279fi 1280if test ! -r "$srcdir/$ac_unique_file"; then 1281 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1282 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1283 { (exit 1); exit 1; }; } 1284fi 1285ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1286ac_abs_confdir=`( 1287 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1288 { (exit 1); exit 1; }; } 1289 pwd)` 1290# When building in place, set srcdir=. 1291if test "$ac_abs_confdir" = "$ac_pwd"; then 1292 srcdir=. 1293fi 1294# Remove unnecessary trailing slashes from srcdir. 1295# Double slashes in file names in object file debugging info 1296# mess up M-x gdb in Emacs. 1297case $srcdir in 1298*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1299esac 1300for ac_var in $ac_precious_vars; do 1301 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1302 eval ac_env_${ac_var}_value=\$${ac_var} 1303 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1304 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1305done 1306 1307# 1308# Report the --help message. 1309# 1310if test "$ac_init_help" = "long"; then 1311 # Omit some internal or obsolete options to make the list less imposing. 1312 # This message is too long to be a string in the A/UX 3.1 sh. 1313 cat <<_ACEOF 1314\`configure' configures this package to adapt to many kinds of systems. 1315 1316Usage: $0 [OPTION]... [VAR=VALUE]... 1317 1318To assign environment variables (e.g., CC, CFLAGS...), specify them as 1319VAR=VALUE. See below for descriptions of some of the useful variables. 1320 1321Defaults for the options are specified in brackets. 1322 1323Configuration: 1324 -h, --help display this help and exit 1325 --help=short display options specific to this package 1326 --help=recursive display the short help of all the included packages 1327 -V, --version display version information and exit 1328 -q, --quiet, --silent do not print \`checking...' messages 1329 --cache-file=FILE cache test results in FILE [disabled] 1330 -C, --config-cache alias for \`--cache-file=config.cache' 1331 -n, --no-create do not create output files 1332 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1333 1334Installation directories: 1335 --prefix=PREFIX install architecture-independent files in PREFIX 1336 [$ac_default_prefix] 1337 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1338 [PREFIX] 1339 1340By default, \`make install' will install all the files in 1341\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1342an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1343for instance \`--prefix=\$HOME'. 1344 1345For better control, use the options below. 1346 1347Fine tuning of the installation directories: 1348 --bindir=DIR user executables [EPREFIX/bin] 1349 --sbindir=DIR system admin executables [EPREFIX/sbin] 1350 --libexecdir=DIR program executables [EPREFIX/libexec] 1351 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1352 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1353 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1354 --libdir=DIR object code libraries [EPREFIX/lib] 1355 --includedir=DIR C header files [PREFIX/include] 1356 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1357 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1358 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1359 --infodir=DIR info documentation [DATAROOTDIR/info] 1360 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1361 --mandir=DIR man documentation [DATAROOTDIR/man] 1362 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1363 --htmldir=DIR html documentation [DOCDIR] 1364 --dvidir=DIR dvi documentation [DOCDIR] 1365 --pdfdir=DIR pdf documentation [DOCDIR] 1366 --psdir=DIR ps documentation [DOCDIR] 1367_ACEOF 1368 1369 cat <<\_ACEOF 1370 1371Program names: 1372 --program-prefix=PREFIX prepend PREFIX to installed program names 1373 --program-suffix=SUFFIX append SUFFIX to installed program names 1374 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1375 1376X features: 1377 --x-includes=DIR X include files are in DIR 1378 --x-libraries=DIR X library files are in DIR 1379 1380System types: 1381 --build=BUILD configure for building on BUILD [guessed] 1382 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1383_ACEOF 1384fi 1385 1386if test -n "$ac_init_help"; then 1387 1388 cat <<\_ACEOF 1389 1390Optional Features: 1391 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1392 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1393 --enable-maintainer-mode enable make rules and dependencies not useful 1394 (and sometimes confusing) to the casual installer 1395 --disable-dependency-tracking speeds up one-time build 1396 --enable-dependency-tracking do not reject slow dependency extractors 1397 --enable-libmp3lame use libmp3lame if found (default=enabled) 1398 --enable-libtheora use libtheora if found (default=disabled) 1399 1400Optional Packages: 1401 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1402 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1403 --with-x use the X Window System 1404 --without-forced-embedded-ffmpeg 1405 try to use ffmpeg provided by the system rather than 1406 the one included (default=always use included 1407 ffmpeg) 1408 1409Some influential environment variables: 1410 CC C compiler command 1411 CFLAGS C compiler flags 1412 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1413 nonstandard directory <lib dir> 1414 LIBS libraries to pass to the linker, e.g. -l<library> 1415 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1416 you have headers in a nonstandard directory <include dir> 1417 CPP C preprocessor 1418 XMKMF Path to xmkmf, Makefile generator for X Window System 1419 PKG_CONFIG path to pkg-config utility 1420 PACKAGE_CFLAGS 1421 C compiler flags for PACKAGE, overriding pkg-config 1422 PACKAGE_LIBS 1423 linker flags for PACKAGE, overriding pkg-config 1424 1425Use these variables to override the choices made by `configure' or to help 1426it to find libraries and programs with nonstandard names/locations. 1427 1428_ACEOF 1429ac_status=$? 1430fi 1431 1432if test "$ac_init_help" = "recursive"; then 1433 # If there are subdirs, report their specific --help. 1434 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1435 test -d "$ac_dir" || continue 1436 ac_builddir=. 1437 1438case "$ac_dir" in 1439.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1440*) 1441 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1442 # A ".." for each directory in $ac_dir_suffix. 1443 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1444 case $ac_top_builddir_sub in 1445 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1446 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1447 esac ;; 1448esac 1449ac_abs_top_builddir=$ac_pwd 1450ac_abs_builddir=$ac_pwd$ac_dir_suffix 1451# for backward compatibility: 1452ac_top_builddir=$ac_top_build_prefix 1453 1454case $srcdir in 1455 .) # We are building in place. 1456 ac_srcdir=. 1457 ac_top_srcdir=$ac_top_builddir_sub 1458 ac_abs_top_srcdir=$ac_pwd ;; 1459 [\\/]* | ?:[\\/]* ) # Absolute name. 1460 ac_srcdir=$srcdir$ac_dir_suffix; 1461 ac_top_srcdir=$srcdir 1462 ac_abs_top_srcdir=$srcdir ;; 1463 *) # Relative name. 1464 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1465 ac_top_srcdir=$ac_top_build_prefix$srcdir 1466 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1467esac 1468ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1469 1470 cd "$ac_dir" || { ac_status=$?; continue; } 1471 # Check for guested configure. 1472 if test -f "$ac_srcdir/configure.gnu"; then 1473 echo && 1474 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1475 elif test -f "$ac_srcdir/configure"; then 1476 echo && 1477 $SHELL "$ac_srcdir/configure" --help=recursive 1478 else 1479 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1480 fi || ac_status=$? 1481 cd "$ac_pwd" || { ac_status=$?; break; } 1482 done 1483fi 1484 1485test -n "$ac_init_help" && exit $ac_status 1486if $ac_init_version; then 1487 cat <<\_ACEOF 1488configure 1489generated by GNU Autoconf 2.61 1490 1491Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 14922002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1493This configure script is free software; the Free Software Foundation 1494gives unlimited permission to copy, distribute and modify it. 1495_ACEOF 1496 exit 1497fi 1498cat >config.log <<_ACEOF 1499This file contains any messages produced by compilers while 1500running configure, to aid debugging if configure makes a mistake. 1501 1502It was created by $as_me, which was 1503generated by GNU Autoconf 2.61. Invocation command line was 1504 1505 $ $0 $@ 1506 1507_ACEOF 1508exec 5>>config.log 1509{ 1510cat <<_ASUNAME 1511## --------- ## 1512## Platform. ## 1513## --------- ## 1514 1515hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1516uname -m = `(uname -m) 2>/dev/null || echo unknown` 1517uname -r = `(uname -r) 2>/dev/null || echo unknown` 1518uname -s = `(uname -s) 2>/dev/null || echo unknown` 1519uname -v = `(uname -v) 2>/dev/null || echo unknown` 1520 1521/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1522/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1523 1524/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1525/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1526/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1527/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1528/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1529/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1530/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1531 1532_ASUNAME 1533 1534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1535for as_dir in $PATH 1536do 1537 IFS=$as_save_IFS 1538 test -z "$as_dir" && as_dir=. 1539 echo "PATH: $as_dir" 1540done 1541IFS=$as_save_IFS 1542 1543} >&5 1544 1545cat >&5 <<_ACEOF 1546 1547 1548## ----------- ## 1549## Core tests. ## 1550## ----------- ## 1551 1552_ACEOF 1553 1554 1555# Keep a trace of the command line. 1556# Strip out --no-create and --no-recursion so they do not pile up. 1557# Strip out --silent because we don't want to record it for future runs. 1558# Also quote any args containing shell meta-characters. 1559# Make two passes to allow for proper duplicate-argument suppression. 1560ac_configure_args= 1561ac_configure_args0= 1562ac_configure_args1= 1563ac_must_keep_next=false 1564for ac_pass in 1 2 1565do 1566 for ac_arg 1567 do 1568 case $ac_arg in 1569 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1570 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1571 | -silent | --silent | --silen | --sile | --sil) 1572 continue ;; 1573 *\'*) 1574 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1575 esac 1576 case $ac_pass in 1577 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1578 2) 1579 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1580 if test $ac_must_keep_next = true; then 1581 ac_must_keep_next=false # Got value, back to normal. 1582 else 1583 case $ac_arg in 1584 *=* | --config-cache | -C | -disable-* | --disable-* \ 1585 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1586 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1587 | -with-* | --with-* | -without-* | --without-* | --x) 1588 case "$ac_configure_args0 " in 1589 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1590 esac 1591 ;; 1592 -* ) ac_must_keep_next=true ;; 1593 esac 1594 fi 1595 ac_configure_args="$ac_configure_args '$ac_arg'" 1596 ;; 1597 esac 1598 done 1599done 1600$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1601$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1602 1603# When interrupted or exit'd, cleanup temporary files, and complete 1604# config.log. We remove comments because anyway the quotes in there 1605# would cause problems or look ugly. 1606# WARNING: Use '\'' to represent an apostrophe within the trap. 1607# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1608trap 'exit_status=$? 1609 # Save into config.log some information that might help in debugging. 1610 { 1611 echo 1612 1613 cat <<\_ASBOX 1614## ---------------- ## 1615## Cache variables. ## 1616## ---------------- ## 1617_ASBOX 1618 echo 1619 # The following way of writing the cache mishandles newlines in values, 1620( 1621 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1622 eval ac_val=\$$ac_var 1623 case $ac_val in #( 1624 *${as_nl}*) 1625 case $ac_var in #( 1626 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1627echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1628 esac 1629 case $ac_var in #( 1630 _ | IFS | as_nl) ;; #( 1631 *) $as_unset $ac_var ;; 1632 esac ;; 1633 esac 1634 done 1635 (set) 2>&1 | 1636 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1637 *${as_nl}ac_space=\ *) 1638 sed -n \ 1639 "s/'\''/'\''\\\\'\'''\''/g; 1640 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1641 ;; #( 1642 *) 1643 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1644 ;; 1645 esac | 1646 sort 1647) 1648 echo 1649 1650 cat <<\_ASBOX 1651## ----------------- ## 1652## Output variables. ## 1653## ----------------- ## 1654_ASBOX 1655 echo 1656 for ac_var in $ac_subst_vars 1657 do 1658 eval ac_val=\$$ac_var 1659 case $ac_val in 1660 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1661 esac 1662 echo "$ac_var='\''$ac_val'\''" 1663 done | sort 1664 echo 1665 1666 if test -n "$ac_subst_files"; then 1667 cat <<\_ASBOX 1668## ------------------- ## 1669## File substitutions. ## 1670## ------------------- ## 1671_ASBOX 1672 echo 1673 for ac_var in $ac_subst_files 1674 do 1675 eval ac_val=\$$ac_var 1676 case $ac_val in 1677 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1678 esac 1679 echo "$ac_var='\''$ac_val'\''" 1680 done | sort 1681 echo 1682 fi 1683 1684 if test -s confdefs.h; then 1685 cat <<\_ASBOX 1686## ----------- ## 1687## confdefs.h. ## 1688## ----------- ## 1689_ASBOX 1690 echo 1691 cat confdefs.h 1692 echo 1693 fi 1694 test "$ac_signal" != 0 && 1695 echo "$as_me: caught signal $ac_signal" 1696 echo "$as_me: exit $exit_status" 1697 } >&5 1698 rm -f core *.core core.conftest.* && 1699 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1700 exit $exit_status 1701' 0 1702for ac_signal in 1 2 13 15; do 1703 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1704done 1705ac_signal=0 1706 1707# confdefs.h avoids OS command line length limits that DEFS can exceed. 1708rm -f -r conftest* confdefs.h 1709 1710# Predefined preprocessor variables. 1711 1712cat >>confdefs.h <<_ACEOF 1713#define PACKAGE_NAME "$PACKAGE_NAME" 1714_ACEOF 1715 1716 1717cat >>confdefs.h <<_ACEOF 1718#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1719_ACEOF 1720 1721 1722cat >>confdefs.h <<_ACEOF 1723#define PACKAGE_VERSION "$PACKAGE_VERSION" 1724_ACEOF 1725 1726 1727cat >>confdefs.h <<_ACEOF 1728#define PACKAGE_STRING "$PACKAGE_STRING" 1729_ACEOF 1730 1731 1732cat >>confdefs.h <<_ACEOF 1733#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1734_ACEOF 1735 1736 1737# Let the site file select an alternate cache file if it wants to. 1738# Prefer explicitly selected file to automatically selected ones. 1739if test -n "$CONFIG_SITE"; then 1740 set x "$CONFIG_SITE" 1741elif test "x$prefix" != xNONE; then 1742 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1743else 1744 set x "$ac_default_prefix/share/config.site" \ 1745 "$ac_default_prefix/etc/config.site" 1746fi 1747shift 1748for ac_site_file 1749do 1750 if test -r "$ac_site_file"; then 1751 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1752echo "$as_me: loading site script $ac_site_file" >&6;} 1753 sed 's/^/| /' "$ac_site_file" >&5 1754 . "$ac_site_file" 1755 fi 1756done 1757 1758if test -r "$cache_file"; then 1759 # Some versions of bash will fail to source /dev/null (special 1760 # files actually), so we avoid doing that. 1761 if test -f "$cache_file"; then 1762 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1763echo "$as_me: loading cache $cache_file" >&6;} 1764 case $cache_file in 1765 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1766 *) . "./$cache_file";; 1767 esac 1768 fi 1769else 1770 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1771echo "$as_me: creating cache $cache_file" >&6;} 1772 >$cache_file 1773fi 1774 1775# Check that the precious variables saved in the cache have kept the same 1776# value. 1777ac_cache_corrupted=false 1778for ac_var in $ac_precious_vars; do 1779 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1780 eval ac_new_set=\$ac_env_${ac_var}_set 1781 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1782 eval ac_new_val=\$ac_env_${ac_var}_value 1783 case $ac_old_set,$ac_new_set in 1784 set,) 1785 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1786echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1787 ac_cache_corrupted=: ;; 1788 ,set) 1789 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1790echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1791 ac_cache_corrupted=: ;; 1792 ,);; 1793 *) 1794 if test "x$ac_old_val" != "x$ac_new_val"; then 1795 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1796echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1797 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1798echo "$as_me: former value: $ac_old_val" >&2;} 1799 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1800echo "$as_me: current value: $ac_new_val" >&2;} 1801 ac_cache_corrupted=: 1802 fi;; 1803 esac 1804 # Pass precious variables to config.status. 1805 if test "$ac_new_set" = set; then 1806 case $ac_new_val in 1807 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1808 *) ac_arg=$ac_var=$ac_new_val ;; 1809 esac 1810 case " $ac_configure_args " in 1811 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1812 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1813 esac 1814 fi 1815done 1816if $ac_cache_corrupted; then 1817 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1818echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1819 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1820echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1821 { (exit 1); exit 1; }; } 1822fi 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840ac_ext=c 1841ac_cpp='$CPP $CPPFLAGS' 1842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1844ac_compiler_gnu=$ac_cv_c_compiler_gnu 1845 1846 1847am__api_version='1.10' 1848 1849ac_aux_dir= 1850for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 1851 if test -f "$ac_dir/install-sh"; then 1852 ac_aux_dir=$ac_dir 1853 ac_install_sh="$ac_aux_dir/install-sh -c" 1854 break 1855 elif test -f "$ac_dir/install.sh"; then 1856 ac_aux_dir=$ac_dir 1857 ac_install_sh="$ac_aux_dir/install.sh -c" 1858 break 1859 elif test -f "$ac_dir/shtool"; then 1860 ac_aux_dir=$ac_dir 1861 ac_install_sh="$ac_aux_dir/shtool install -c" 1862 break 1863 fi 1864done 1865if test -z "$ac_aux_dir"; then 1866 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 1867echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 1868 { (exit 1); exit 1; }; } 1869fi 1870 1871# These three variables are undocumented and unsupported, 1872# and are intended to be withdrawn in a future Autoconf release. 1873# They can cause serious problems if a builder's source tree is in a directory 1874# whose full name contains unusual characters. 1875ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1876ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1877ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1878 1879 1880# Find a good install program. We prefer a C program (faster), 1881# so one script is as good as another. But avoid the broken or 1882# incompatible versions: 1883# SysV /etc/install, /usr/sbin/install 1884# SunOS /usr/etc/install 1885# IRIX /sbin/install 1886# AIX /bin/install 1887# AmigaOS /C/install, which installs bootblocks on floppy discs 1888# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1889# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1890# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1891# OS/2's system install, which has a completely different semantic 1892# ./install, which can be erroneously created by make from ./install.sh. 1893{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1894echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 1895if test -z "$INSTALL"; then 1896if test "${ac_cv_path_install+set}" = set; then 1897 echo $ECHO_N "(cached) $ECHO_C" >&6 1898else 1899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1900for as_dir in $PATH 1901do 1902 IFS=$as_save_IFS 1903 test -z "$as_dir" && as_dir=. 1904 # Account for people who put trailing slashes in PATH elements. 1905case $as_dir/ in 1906 ./ | .// | /cC/* | \ 1907 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1908 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1909 /usr/ucb/* ) ;; 1910 *) 1911 # OSF1 and SCO ODT 3.0 have their own names for install. 1912 # Don't use installbsd from OSF since it installs stuff as root 1913 # by default. 1914 for ac_prog in ginstall scoinst install; do 1915 for ac_exec_ext in '' $ac_executable_extensions; do 1916 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 1917 if test $ac_prog = install && 1918 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1919 # AIX install. It has an incompatible calling convention. 1920 : 1921 elif test $ac_prog = install && 1922 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1923 # program-specific install script used by HP pwplus--don't use. 1924 : 1925 else 1926 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1927 break 3 1928 fi 1929 fi 1930 done 1931 done 1932 ;; 1933esac 1934done 1935IFS=$as_save_IFS 1936 1937 1938fi 1939 if test "${ac_cv_path_install+set}" = set; then 1940 INSTALL=$ac_cv_path_install 1941 else 1942 # As a last resort, use the slow shell script. Don't cache a 1943 # value for INSTALL within a source directory, because that will 1944 # break other packages using the cache if that directory is 1945 # removed, or if the value is a relative name. 1946 INSTALL=$ac_install_sh 1947 fi 1948fi 1949{ echo "$as_me:$LINENO: result: $INSTALL" >&5 1950echo "${ECHO_T}$INSTALL" >&6; } 1951 1952# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1953# It thinks the first close brace ends the variable substitution. 1954test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1955 1956test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1957 1958test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1959 1960{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1961echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 1962# Just in case 1963sleep 1 1964echo timestamp > conftest.file 1965# Do `set' in a subshell so we don't clobber the current shell's 1966# arguments. Must try -L first in case configure is actually a 1967# symlink; some systems play weird games with the mod time of symlinks 1968# (eg FreeBSD returns the mod time of the symlink's containing 1969# directory). 1970if ( 1971 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1972 if test "$*" = "X"; then 1973 # -L didn't work. 1974 set X `ls -t $srcdir/configure conftest.file` 1975 fi 1976 rm -f conftest.file 1977 if test "$*" != "X $srcdir/configure conftest.file" \ 1978 && test "$*" != "X conftest.file $srcdir/configure"; then 1979 1980 # If neither matched, then we have a broken ls. This can happen 1981 # if, for instance, CONFIG_SHELL is bash and it inherits a 1982 # broken ls alias from the environment. This has actually 1983 # happened. Such a system could not be considered "sane". 1984 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1985alias in your environment" >&5 1986echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1987alias in your environment" >&2;} 1988 { (exit 1); exit 1; }; } 1989 fi 1990 1991 test "$2" = conftest.file 1992 ) 1993then 1994 # Ok. 1995 : 1996else 1997 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1998Check your system clock" >&5 1999echo "$as_me: error: newly created file is older than distributed files! 2000Check your system clock" >&2;} 2001 { (exit 1); exit 1; }; } 2002fi 2003{ echo "$as_me:$LINENO: result: yes" >&5 2004echo "${ECHO_T}yes" >&6; } 2005test "$program_prefix" != NONE && 2006 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2007# Use a double $ so make ignores it. 2008test "$program_suffix" != NONE && 2009 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2010# Double any \ or $. echo might interpret backslashes. 2011# By default was `s,x,x', remove it if useless. 2012cat <<\_ACEOF >conftest.sed 2013s/[\\$]/&&/g;s/;s,x,x,$// 2014_ACEOF 2015program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2016rm -f conftest.sed 2017 2018# expand $ac_aux_dir to an absolute path 2019am_aux_dir=`cd $ac_aux_dir && pwd` 2020 2021test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2022# Use eval to expand $SHELL 2023if eval "$MISSING --run true"; then 2024 am_missing_run="$MISSING --run " 2025else 2026 am_missing_run= 2027 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2028echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2029fi 2030 2031{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2032echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } 2033if test -z "$MKDIR_P"; then 2034 if test "${ac_cv_path_mkdir+set}" = set; then 2035 echo $ECHO_N "(cached) $ECHO_C" >&6 2036else 2037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2038for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2039do 2040 IFS=$as_save_IFS 2041 test -z "$as_dir" && as_dir=. 2042 for ac_prog in mkdir gmkdir; do 2043 for ac_exec_ext in '' $ac_executable_extensions; do 2044 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2045 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2046 'mkdir (GNU coreutils) '* | \ 2047 'mkdir (coreutils) '* | \ 2048 'mkdir (fileutils) '4.1*) 2049 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2050 break 3;; 2051 esac 2052 done 2053 done 2054done 2055IFS=$as_save_IFS 2056 2057fi 2058 2059 if test "${ac_cv_path_mkdir+set}" = set; then 2060 MKDIR_P="$ac_cv_path_mkdir -p" 2061 else 2062 # As a last resort, use the slow shell script. Don't cache a 2063 # value for MKDIR_P within a source directory, because that will 2064 # break other packages using the cache if that directory is 2065 # removed, or if the value is a relative name. 2066 test -d ./--version && rmdir ./--version 2067 MKDIR_P="$ac_install_sh -d" 2068 fi 2069fi 2070{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2071echo "${ECHO_T}$MKDIR_P" >&6; } 2072 2073mkdir_p="$MKDIR_P" 2074case $mkdir_p in 2075 [\\/$]* | ?:[\\/]*) ;; 2076 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2077esac 2078 2079for ac_prog in gawk mawk nawk awk 2080do 2081 # Extract the first word of "$ac_prog", so it can be a program name with args. 2082set dummy $ac_prog; ac_word=$2 2083{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2084echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2085if test "${ac_cv_prog_AWK+set}" = set; then 2086 echo $ECHO_N "(cached) $ECHO_C" >&6 2087else 2088 if test -n "$AWK"; then 2089 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2090else 2091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2092for as_dir in $PATH 2093do 2094 IFS=$as_save_IFS 2095 test -z "$as_dir" && as_dir=. 2096 for ac_exec_ext in '' $ac_executable_extensions; do 2097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2098 ac_cv_prog_AWK="$ac_prog" 2099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2100 break 2 2101 fi 2102done 2103done 2104IFS=$as_save_IFS 2105 2106fi 2107fi 2108AWK=$ac_cv_prog_AWK 2109if test -n "$AWK"; then 2110 { echo "$as_me:$LINENO: result: $AWK" >&5 2111echo "${ECHO_T}$AWK" >&6; } 2112else 2113 { echo "$as_me:$LINENO: result: no" >&5 2114echo "${ECHO_T}no" >&6; } 2115fi 2116 2117 2118 test -n "$AWK" && break 2119done 2120 2121{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2122echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2123set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2124if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2125 echo $ECHO_N "(cached) $ECHO_C" >&6 2126else 2127 cat >conftest.make <<\_ACEOF 2128SHELL = /bin/sh 2129all: 2130 @echo '@@@%%%=$(MAKE)=@@@%%%' 2131_ACEOF 2132# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2133case `${MAKE-make} -f conftest.make 2>/dev/null` in 2134 *@@@%%%=?*=@@@%%%*) 2135 eval ac_cv_prog_make_${ac_make}_set=yes;; 2136 *) 2137 eval ac_cv_prog_make_${ac_make}_set=no;; 2138esac 2139rm -f conftest.make 2140fi 2141if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2142 { echo "$as_me:$LINENO: result: yes" >&5 2143echo "${ECHO_T}yes" >&6; } 2144 SET_MAKE= 2145else 2146 { echo "$as_me:$LINENO: result: no" >&5 2147echo "${ECHO_T}no" >&6; } 2148 SET_MAKE="MAKE=${MAKE-make}" 2149fi 2150 2151rm -rf .tst 2>/dev/null 2152mkdir .tst 2>/dev/null 2153if test -d .tst; then 2154 am__leading_dot=. 2155else 2156 am__leading_dot=_ 2157fi 2158rmdir .tst 2>/dev/null 2159 2160if test "`cd $srcdir && pwd`" != "`pwd`"; then 2161 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2162 # is not polluted with repeated "-I." 2163 am__isrc=' -I$(srcdir)' 2164 # test to see if srcdir already configured 2165 if test -f $srcdir/config.status; then 2166 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2167echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2168 { (exit 1); exit 1; }; } 2169 fi 2170fi 2171 2172# test whether we have cygpath 2173if test -z "$CYGPATH_W"; then 2174 if (cygpath --version) >/dev/null 2>/dev/null; then 2175 CYGPATH_W='cygpath -w' 2176 else 2177 CYGPATH_W=echo 2178 fi 2179fi 2180 2181 2182# Define the identity of the package. 2183 PACKAGE=xvidcap 2184 VERSION=1.1.7 2185 2186 2187cat >>confdefs.h <<_ACEOF 2188#define PACKAGE "$PACKAGE" 2189_ACEOF 2190 2191 2192cat >>confdefs.h <<_ACEOF 2193#define VERSION "$VERSION" 2194_ACEOF 2195 2196# Some tools Automake needs. 2197 2198ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2199 2200 2201AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2202 2203 2204AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2205 2206 2207AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2208 2209 2210MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2211 2212install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2213 2214# Installed binaries are usually stripped using `strip' when the user 2215# run `make install-strip'. However `strip' might not be the right 2216# tool to use in cross-compilation environments, therefore Automake 2217# will honor the `STRIP' environment variable to overrule this program. 2218if test "$cross_compiling" != no; then 2219 if test -n "$ac_tool_prefix"; then 2220 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2221set dummy ${ac_tool_prefix}strip; ac_word=$2 2222{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2224if test "${ac_cv_prog_STRIP+set}" = set; then 2225 echo $ECHO_N "(cached) $ECHO_C" >&6 2226else 2227 if test -n "$STRIP"; then 2228 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2229else 2230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2231for as_dir in $PATH 2232do 2233 IFS=$as_save_IFS 2234 test -z "$as_dir" && as_dir=. 2235 for ac_exec_ext in '' $ac_executable_extensions; do 2236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2237 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2239 break 2 2240 fi 2241done 2242done 2243IFS=$as_save_IFS 2244 2245fi 2246fi 2247STRIP=$ac_cv_prog_STRIP 2248if test -n "$STRIP"; then 2249 { echo "$as_me:$LINENO: result: $STRIP" >&5 2250echo "${ECHO_T}$STRIP" >&6; } 2251else 2252 { echo "$as_me:$LINENO: result: no" >&5 2253echo "${ECHO_T}no" >&6; } 2254fi 2255 2256 2257fi 2258if test -z "$ac_cv_prog_STRIP"; then 2259 ac_ct_STRIP=$STRIP 2260 # Extract the first word of "strip", so it can be a program name with args. 2261set dummy strip; ac_word=$2 2262{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2264if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2265 echo $ECHO_N "(cached) $ECHO_C" >&6 2266else 2267 if test -n "$ac_ct_STRIP"; then 2268 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2269else 2270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2271for as_dir in $PATH 2272do 2273 IFS=$as_save_IFS 2274 test -z "$as_dir" && as_dir=. 2275 for ac_exec_ext in '' $ac_executable_extensions; do 2276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2277 ac_cv_prog_ac_ct_STRIP="strip" 2278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2279 break 2 2280 fi 2281done 2282done 2283IFS=$as_save_IFS 2284 2285fi 2286fi 2287ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2288if test -n "$ac_ct_STRIP"; then 2289 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2290echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2291else 2292 { echo "$as_me:$LINENO: result: no" >&5 2293echo "${ECHO_T}no" >&6; } 2294fi 2295 2296 if test "x$ac_ct_STRIP" = x; then 2297 STRIP=":" 2298 else 2299 case $cross_compiling:$ac_tool_warned in 2300yes:) 2301{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2302whose name does not start with the host triplet. If you think this 2303configuration is useful to you, please write to autoconf@gnu.org." >&5 2304echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2305whose name does not start with the host triplet. If you think this 2306configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2307ac_tool_warned=yes ;; 2308esac 2309 STRIP=$ac_ct_STRIP 2310 fi 2311else 2312 STRIP="$ac_cv_prog_STRIP" 2313fi 2314 2315fi 2316INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2317 2318# We need awk for the "check" target. The system "awk" is bad on 2319# some platforms. 2320# Always define AMTAR for backward compatibility. 2321 2322AMTAR=${AMTAR-"${am_missing_run}tar"} 2323 2324am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2325 2326 2327 2328 2329 2330ac_config_headers="$ac_config_headers config.h" 2331 2332{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2333echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; } 2334 # Check whether --enable-maintainer-mode was given. 2335if test "${enable_maintainer_mode+set}" = set; then 2336 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2337else 2338 USE_MAINTAINER_MODE=no 2339fi 2340 2341 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2342echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; } 2343 if test $USE_MAINTAINER_MODE = yes; then 2344 MAINTAINER_MODE_TRUE= 2345 MAINTAINER_MODE_FALSE='#' 2346else 2347 MAINTAINER_MODE_TRUE='#' 2348 MAINTAINER_MODE_FALSE= 2349fi 2350 2351 MAINT=$MAINTAINER_MODE_TRUE 2352 2353 2354 2355DEPDIR="${am__leading_dot}deps" 2356 2357ac_config_commands="$ac_config_commands depfiles" 2358 2359 2360am_make=${MAKE-make} 2361cat > confinc << 'END' 2362am__doit: 2363 @echo done 2364.PHONY: am__doit 2365END 2366# If we don't find an include directive, just comment out the code. 2367{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2368echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 2369am__include="#" 2370am__quote= 2371_am_result=none 2372# First try GNU make style include. 2373echo "include confinc" > confmf 2374# We grep out `Entering directory' and `Leaving directory' 2375# messages which can occur if `w' ends up in MAKEFLAGS. 2376# In particular we don't look at `^make:' because GNU make might 2377# be invoked under some other name (usually "gmake"), in which 2378# case it prints its new name instead of `make'. 2379if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2380 am__include=include 2381 am__quote= 2382 _am_result=GNU 2383fi 2384# Now try BSD make style include. 2385if test "$am__include" = "#"; then 2386 echo '.include "confinc"' > confmf 2387 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2388 am__include=.include 2389 am__quote="\"" 2390 _am_result=BSD 2391 fi 2392fi 2393 2394 2395{ echo "$as_me:$LINENO: result: $_am_result" >&5 2396echo "${ECHO_T}$_am_result" >&6; } 2397rm -f confinc confmf 2398 2399# Check whether --enable-dependency-tracking was given. 2400if test "${enable_dependency_tracking+set}" = set; then 2401 enableval=$enable_dependency_tracking; 2402fi 2403 2404if test "x$enable_dependency_tracking" != xno; then 2405 am_depcomp="$ac_aux_dir/depcomp" 2406 AMDEPBACKSLASH='\' 2407fi 2408 if test "x$enable_dependency_tracking" != xno; then 2409 AMDEP_TRUE= 2410 AMDEP_FALSE='#' 2411else 2412 AMDEP_TRUE='#' 2413 AMDEP_FALSE= 2414fi 2415 2416 2417ac_ext=c 2418ac_cpp='$CPP $CPPFLAGS' 2419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2421ac_compiler_gnu=$ac_cv_c_compiler_gnu 2422if test -n "$ac_tool_prefix"; then 2423 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2424set dummy ${ac_tool_prefix}gcc; ac_word=$2 2425{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2427if test "${ac_cv_prog_CC+set}" = set; then 2428 echo $ECHO_N "(cached) $ECHO_C" >&6 2429else 2430 if test -n "$CC"; then 2431 ac_cv_prog_CC="$CC" # Let the user override the test. 2432else 2433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2434for as_dir in $PATH 2435do 2436 IFS=$as_save_IFS 2437 test -z "$as_dir" && as_dir=. 2438 for ac_exec_ext in '' $ac_executable_extensions; do 2439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2440 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2442 break 2 2443 fi 2444done 2445done 2446IFS=$as_save_IFS 2447 2448fi 2449fi 2450CC=$ac_cv_prog_CC 2451if test -n "$CC"; then 2452 { echo "$as_me:$LINENO: result: $CC" >&5 2453echo "${ECHO_T}$CC" >&6; } 2454else 2455 { echo "$as_me:$LINENO: result: no" >&5 2456echo "${ECHO_T}no" >&6; } 2457fi 2458 2459 2460fi 2461if test -z "$ac_cv_prog_CC"; then 2462 ac_ct_CC=$CC 2463 # Extract the first word of "gcc", so it can be a program name with args. 2464set dummy gcc; ac_word=$2 2465{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2467if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2468 echo $ECHO_N "(cached) $ECHO_C" >&6 2469else 2470 if test -n "$ac_ct_CC"; then 2471 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2472else 2473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2474for as_dir in $PATH 2475do 2476 IFS=$as_save_IFS 2477 test -z "$as_dir" && as_dir=. 2478 for ac_exec_ext in '' $ac_executable_extensions; do 2479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2480 ac_cv_prog_ac_ct_CC="gcc" 2481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2482 break 2 2483 fi 2484done 2485done 2486IFS=$as_save_IFS 2487 2488fi 2489fi 2490ac_ct_CC=$ac_cv_prog_ac_ct_CC 2491if test -n "$ac_ct_CC"; then 2492 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2493echo "${ECHO_T}$ac_ct_CC" >&6; } 2494else 2495 { echo "$as_me:$LINENO: result: no" >&5 2496echo "${ECHO_T}no" >&6; } 2497fi 2498 2499 if test "x$ac_ct_CC" = x; then 2500 CC="" 2501 else 2502 case $cross_compiling:$ac_tool_warned in 2503yes:) 2504{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2505whose name does not start with the host triplet. If you think this 2506configuration is useful to you, please write to autoconf@gnu.org." >&5 2507echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2508whose name does not start with the host triplet. If you think this 2509configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2510ac_tool_warned=yes ;; 2511esac 2512 CC=$ac_ct_CC 2513 fi 2514else 2515 CC="$ac_cv_prog_CC" 2516fi 2517 2518if test -z "$CC"; then 2519 if test -n "$ac_tool_prefix"; then 2520 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2521set dummy ${ac_tool_prefix}cc; ac_word=$2 2522{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2523echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2524if test "${ac_cv_prog_CC+set}" = set; then 2525 echo $ECHO_N "(cached) $ECHO_C" >&6 2526else 2527 if test -n "$CC"; then 2528 ac_cv_prog_CC="$CC" # Let the user override the test. 2529else 2530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2531for as_dir in $PATH 2532do 2533 IFS=$as_save_IFS 2534 test -z "$as_dir" && as_dir=. 2535 for ac_exec_ext in '' $ac_executable_extensions; do 2536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2537 ac_cv_prog_CC="${ac_tool_prefix}cc" 2538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2539 break 2 2540 fi 2541done 2542done 2543IFS=$as_save_IFS 2544 2545fi 2546fi 2547CC=$ac_cv_prog_CC 2548if test -n "$CC"; then 2549 { echo "$as_me:$LINENO: result: $CC" >&5 2550echo "${ECHO_T}$CC" >&6; } 2551else 2552 { echo "$as_me:$LINENO: result: no" >&5 2553echo "${ECHO_T}no" >&6; } 2554fi 2555 2556 2557 fi 2558fi 2559if test -z "$CC"; then 2560 # Extract the first word of "cc", so it can be a program name with args. 2561set dummy cc; ac_word=$2 2562{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2564if test "${ac_cv_prog_CC+set}" = set; then 2565 echo $ECHO_N "(cached) $ECHO_C" >&6 2566else 2567 if test -n "$CC"; then 2568 ac_cv_prog_CC="$CC" # Let the user override the test. 2569else 2570 ac_prog_rejected=no 2571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2572for as_dir in $PATH 2573do 2574 IFS=$as_save_IFS 2575 test -z "$as_dir" && as_dir=. 2576 for ac_exec_ext in '' $ac_executable_extensions; do 2577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2578 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2579 ac_prog_rejected=yes 2580 continue 2581 fi 2582 ac_cv_prog_CC="cc" 2583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2584 break 2 2585 fi 2586done 2587done 2588IFS=$as_save_IFS 2589 2590if test $ac_prog_rejected = yes; then 2591 # We found a bogon in the path, so make sure we never use it. 2592 set dummy $ac_cv_prog_CC 2593 shift 2594 if test $# != 0; then 2595 # We chose a different compiler from the bogus one. 2596 # However, it has the same basename, so the bogon will be chosen 2597 # first if we set CC to just the basename; use the full file name. 2598 shift 2599 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2600 fi 2601fi 2602fi 2603fi 2604CC=$ac_cv_prog_CC 2605if test -n "$CC"; then 2606 { echo "$as_me:$LINENO: result: $CC" >&5 2607echo "${ECHO_T}$CC" >&6; } 2608else 2609 { echo "$as_me:$LINENO: result: no" >&5 2610echo "${ECHO_T}no" >&6; } 2611fi 2612 2613 2614fi 2615if test -z "$CC"; then 2616 if test -n "$ac_tool_prefix"; then 2617 for ac_prog in cl.exe 2618 do 2619 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2620set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2621{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2623if test "${ac_cv_prog_CC+set}" = set; then 2624 echo $ECHO_N "(cached) $ECHO_C" >&6 2625else 2626 if test -n "$CC"; then 2627 ac_cv_prog_CC="$CC" # Let the user override the test. 2628else 2629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2630for as_dir in $PATH 2631do 2632 IFS=$as_save_IFS 2633 test -z "$as_dir" && as_dir=. 2634 for ac_exec_ext in '' $ac_executable_extensions; do 2635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2636 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2638 break 2 2639 fi 2640done 2641done 2642IFS=$as_save_IFS 2643 2644fi 2645fi 2646CC=$ac_cv_prog_CC 2647if test -n "$CC"; then 2648 { echo "$as_me:$LINENO: result: $CC" >&5 2649echo "${ECHO_T}$CC" >&6; } 2650else 2651 { echo "$as_me:$LINENO: result: no" >&5 2652echo "${ECHO_T}no" >&6; } 2653fi 2654 2655 2656 test -n "$CC" && break 2657 done 2658fi 2659if test -z "$CC"; then 2660 ac_ct_CC=$CC 2661 for ac_prog in cl.exe 2662do 2663 # Extract the first word of "$ac_prog", so it can be a program name with args. 2664set dummy $ac_prog; ac_word=$2 2665{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2667if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2668 echo $ECHO_N "(cached) $ECHO_C" >&6 2669else 2670 if test -n "$ac_ct_CC"; then 2671 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2672else 2673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2674for as_dir in $PATH 2675do 2676 IFS=$as_save_IFS 2677 test -z "$as_dir" && as_dir=. 2678 for ac_exec_ext in '' $ac_executable_extensions; do 2679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2680 ac_cv_prog_ac_ct_CC="$ac_prog" 2681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2682 break 2 2683 fi 2684done 2685done 2686IFS=$as_save_IFS 2687 2688fi 2689fi 2690ac_ct_CC=$ac_cv_prog_ac_ct_CC 2691if test -n "$ac_ct_CC"; then 2692 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2693echo "${ECHO_T}$ac_ct_CC" >&6; } 2694else 2695 { echo "$as_me:$LINENO: result: no" >&5 2696echo "${ECHO_T}no" >&6; } 2697fi 2698 2699 2700 test -n "$ac_ct_CC" && break 2701done 2702 2703 if test "x$ac_ct_CC" = x; then 2704 CC="" 2705 else 2706 case $cross_compiling:$ac_tool_warned in 2707yes:) 2708{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2709whose name does not start with the host triplet. If you think this 2710configuration is useful to you, please write to autoconf@gnu.org." >&5 2711echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2712whose name does not start with the host triplet. If you think this 2713configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2714ac_tool_warned=yes ;; 2715esac 2716 CC=$ac_ct_CC 2717 fi 2718fi 2719 2720fi 2721 2722 2723test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2724See \`config.log' for more details." >&5 2725echo "$as_me: error: no acceptable C compiler found in \$PATH 2726See \`config.log' for more details." >&2;} 2727 { (exit 1); exit 1; }; } 2728 2729# Provide some information about the compiler. 2730echo "$as_me:$LINENO: checking for C compiler version" >&5 2731ac_compiler=`set X $ac_compile; echo $2` 2732{ (ac_try="$ac_compiler --version >&5" 2733case "(($ac_try" in 2734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2735 *) ac_try_echo=$ac_try;; 2736esac 2737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2738 (eval "$ac_compiler --version >&5") 2>&5 2739 ac_status=$? 2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2741 (exit $ac_status); } 2742{ (ac_try="$ac_compiler -v >&5" 2743case "(($ac_try" in 2744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2745 *) ac_try_echo=$ac_try;; 2746esac 2747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2748 (eval "$ac_compiler -v >&5") 2>&5 2749 ac_status=$? 2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2751 (exit $ac_status); } 2752{ (ac_try="$ac_compiler -V >&5" 2753case "(($ac_try" in 2754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2755 *) ac_try_echo=$ac_try;; 2756esac 2757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2758 (eval "$ac_compiler -V >&5") 2>&5 2759 ac_status=$? 2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2761 (exit $ac_status); } 2762 2763cat >conftest.$ac_ext <<_ACEOF 2764/* confdefs.h. */ 2765_ACEOF 2766cat confdefs.h >>conftest.$ac_ext 2767cat >>conftest.$ac_ext <<_ACEOF 2768/* end confdefs.h. */ 2769 2770int 2771main () 2772{ 2773 2774 ; 2775 return 0; 2776} 2777_ACEOF 2778ac_clean_files_save=$ac_clean_files 2779ac_clean_files="$ac_clean_files a.out a.exe b.out" 2780# Try to create an executable without -o first, disregard a.out. 2781# It will help us diagnose broken compilers, and finding out an intuition 2782# of exeext. 2783{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2784echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2785ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2786# 2787# List of possible output files, starting from the most likely. 2788# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2789# only as a last resort. b.out is created by i960 compilers. 2790ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2791# 2792# The IRIX 6 linker writes into existing files which may not be 2793# executable, retaining their permissions. Remove them first so a 2794# subsequent execution test works. 2795ac_rmfiles= 2796for ac_file in $ac_files 2797do 2798 case $ac_file in 2799 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2800 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2801 esac 2802done 2803rm -f $ac_rmfiles 2804 2805if { (ac_try="$ac_link_default" 2806case "(($ac_try" in 2807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2808 *) ac_try_echo=$ac_try;; 2809esac 2810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2811 (eval "$ac_link_default") 2>&5 2812 ac_status=$? 2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2814 (exit $ac_status); }; then 2815 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2816# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2817# in a Makefile. We should not override ac_cv_exeext if it was cached, 2818# so that the user can short-circuit this test for compilers unknown to 2819# Autoconf. 2820for ac_file in $ac_files '' 2821do 2822 test -f "$ac_file" || continue 2823 case $ac_file in 2824 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2825 ;; 2826 [ab].out ) 2827 # We found the default executable, but exeext='' is most 2828 # certainly right. 2829 break;; 2830 *.* ) 2831 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2832 then :; else 2833 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2834 fi 2835 # We set ac_cv_exeext here because the later test for it is not 2836 # safe: cross compilers may not add the suffix if given an `-o' 2837 # argument, so we may need to know it at that point already. 2838 # Even if this section looks crufty: it has the advantage of 2839 # actually working. 2840 break;; 2841 * ) 2842 break;; 2843 esac 2844done 2845test "$ac_cv_exeext" = no && ac_cv_exeext= 2846 2847else 2848 ac_file='' 2849fi 2850 2851{ echo "$as_me:$LINENO: result: $ac_file" >&5 2852echo "${ECHO_T}$ac_file" >&6; } 2853if test -z "$ac_file"; then 2854 echo "$as_me: failed program was:" >&5 2855sed 's/^/| /' conftest.$ac_ext >&5 2856 2857{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2858See \`config.log' for more details." >&5 2859echo "$as_me: error: C compiler cannot create executables 2860See \`config.log' for more details." >&2;} 2861 { (exit 77); exit 77; }; } 2862fi 2863 2864ac_exeext=$ac_cv_exeext 2865 2866# Check that the compiler produces executables we can run. If not, either 2867# the compiler is broken, or we cross compile. 2868{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2869echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2870# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2871# If not cross compiling, check that we can run a simple program. 2872if test "$cross_compiling" != yes; then 2873 if { ac_try='./$ac_file' 2874 { (case "(($ac_try" in 2875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2876 *) ac_try_echo=$ac_try;; 2877esac 2878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2879 (eval "$ac_try") 2>&5 2880 ac_status=$? 2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2882 (exit $ac_status); }; }; then 2883 cross_compiling=no 2884 else 2885 if test "$cross_compiling" = maybe; then 2886 cross_compiling=yes 2887 else 2888 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2889If you meant to cross compile, use \`--host'. 2890See \`config.log' for more details." >&5 2891echo "$as_me: error: cannot run C compiled programs. 2892If you meant to cross compile, use \`--host'. 2893See \`config.log' for more details." >&2;} 2894 { (exit 1); exit 1; }; } 2895 fi 2896 fi 2897fi 2898{ echo "$as_me:$LINENO: result: yes" >&5 2899echo "${ECHO_T}yes" >&6; } 2900 2901rm -f a.out a.exe conftest$ac_cv_exeext b.out 2902ac_clean_files=$ac_clean_files_save 2903# Check that the compiler produces executables we can run. If not, either 2904# the compiler is broken, or we cross compile. 2905{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2906echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2907{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2908echo "${ECHO_T}$cross_compiling" >&6; } 2909 2910{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2911echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2912if { (ac_try="$ac_link" 2913case "(($ac_try" in 2914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2915 *) ac_try_echo=$ac_try;; 2916esac 2917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2918 (eval "$ac_link") 2>&5 2919 ac_status=$? 2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2921 (exit $ac_status); }; then 2922 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2923# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2924# work properly (i.e., refer to `conftest.exe'), while it won't with 2925# `rm'. 2926for ac_file in conftest.exe conftest conftest.*; do 2927 test -f "$ac_file" || continue 2928 case $ac_file in 2929 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2930 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2931 break;; 2932 * ) break;; 2933 esac 2934done 2935else 2936 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2937See \`config.log' for more details." >&5 2938echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2939See \`config.log' for more details." >&2;} 2940 { (exit 1); exit 1; }; } 2941fi 2942 2943rm -f conftest$ac_cv_exeext 2944{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2945echo "${ECHO_T}$ac_cv_exeext" >&6; } 2946 2947rm -f conftest.$ac_ext 2948EXEEXT=$ac_cv_exeext 2949ac_exeext=$EXEEXT 2950{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2951echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2952if test "${ac_cv_objext+set}" = set; then 2953 echo $ECHO_N "(cached) $ECHO_C" >&6 2954else 2955 cat >conftest.$ac_ext <<_ACEOF 2956/* confdefs.h. */ 2957_ACEOF 2958cat confdefs.h >>conftest.$ac_ext 2959cat >>conftest.$ac_ext <<_ACEOF 2960/* end confdefs.h. */ 2961 2962int 2963main () 2964{ 2965 2966 ; 2967 return 0; 2968} 2969_ACEOF 2970rm -f conftest.o conftest.obj 2971if { (ac_try="$ac_compile" 2972case "(($ac_try" in 2973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2974 *) ac_try_echo=$ac_try;; 2975esac 2976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2977 (eval "$ac_compile") 2>&5 2978 ac_status=$? 2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2980 (exit $ac_status); }; then 2981 for ac_file in conftest.o conftest.obj conftest.*; do 2982 test -f "$ac_file" || continue; 2983 case $ac_file in 2984 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2985 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2986 break;; 2987 esac 2988done 2989else 2990 echo "$as_me: failed program was:" >&5 2991sed 's/^/| /' conftest.$ac_ext >&5 2992 2993{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2994See \`config.log' for more details." >&5 2995echo "$as_me: error: cannot compute suffix of object files: cannot compile 2996See \`config.log' for more details." >&2;} 2997 { (exit 1); exit 1; }; } 2998fi 2999 3000rm -f conftest.$ac_cv_objext conftest.$ac_ext 3001fi 3002{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3003echo "${ECHO_T}$ac_cv_objext" >&6; } 3004OBJEXT=$ac_cv_objext 3005ac_objext=$OBJEXT 3006{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3007echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3008if test "${ac_cv_c_compiler_gnu+set}" = set; then 3009 echo $ECHO_N "(cached) $ECHO_C" >&6 3010else 3011 cat >conftest.$ac_ext <<_ACEOF 3012/* confdefs.h. */ 3013_ACEOF 3014cat confdefs.h >>conftest.$ac_ext 3015cat >>conftest.$ac_ext <<_ACEOF 3016/* end confdefs.h. */ 3017 3018int 3019main () 3020{ 3021#ifndef __GNUC__ 3022 choke me 3023#endif 3024 3025 ; 3026 return 0; 3027} 3028_ACEOF 3029rm -f conftest.$ac_objext 3030if { (ac_try="$ac_compile" 3031case "(($ac_try" in 3032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3033 *) ac_try_echo=$ac_try;; 3034esac 3035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3036 (eval "$ac_compile") 2>conftest.er1 3037 ac_status=$? 3038 grep -v '^ *+' conftest.er1 >conftest.err 3039 rm -f conftest.er1 3040 cat conftest.err >&5 3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3042 (exit $ac_status); } && { 3043 test -z "$ac_c_werror_flag" || 3044 test ! -s conftest.err 3045 } && test -s conftest.$ac_objext; then 3046 ac_compiler_gnu=yes 3047else 3048 echo "$as_me: failed program was:" >&5 3049sed 's/^/| /' conftest.$ac_ext >&5 3050 3051 ac_compiler_gnu=no 3052fi 3053 3054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3055ac_cv_c_compiler_gnu=$ac_compiler_gnu 3056 3057fi 3058{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3059echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3060GCC=`test $ac_compiler_gnu = yes && echo yes` 3061ac_test_CFLAGS=${CFLAGS+set} 3062ac_save_CFLAGS=$CFLAGS 3063{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3064echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3065if test "${ac_cv_prog_cc_g+set}" = set; then 3066 echo $ECHO_N "(cached) $ECHO_C" >&6 3067else 3068 ac_save_c_werror_flag=$ac_c_werror_flag 3069 ac_c_werror_flag=yes 3070 ac_cv_prog_cc_g=no 3071 CFLAGS="-g" 3072 cat >conftest.$ac_ext <<_ACEOF 3073/* confdefs.h. */ 3074_ACEOF 3075cat confdefs.h >>conftest.$ac_ext 3076cat >>conftest.$ac_ext <<_ACEOF 3077/* end confdefs.h. */ 3078 3079int 3080main () 3081{ 3082 3083 ; 3084 return 0; 3085} 3086_ACEOF 3087rm -f conftest.$ac_objext 3088if { (ac_try="$ac_compile" 3089case "(($ac_try" in 3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3091 *) ac_try_echo=$ac_try;; 3092esac 3093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3094 (eval "$ac_compile") 2>conftest.er1 3095 ac_status=$? 3096 grep -v '^ *+' conftest.er1 >conftest.err 3097 rm -f conftest.er1 3098 cat conftest.err >&5 3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3100 (exit $ac_status); } && { 3101 test -z "$ac_c_werror_flag" || 3102 test ! -s conftest.err 3103 } && test -s conftest.$ac_objext; then 3104 ac_cv_prog_cc_g=yes 3105else 3106 echo "$as_me: failed program was:" >&5 3107sed 's/^/| /' conftest.$ac_ext >&5 3108 3109 CFLAGS="" 3110 cat >conftest.$ac_ext <<_ACEOF 3111/* confdefs.h. */ 3112_ACEOF 3113cat confdefs.h >>conftest.$ac_ext 3114cat >>conftest.$ac_ext <<_ACEOF 3115/* end confdefs.h. */ 3116 3117int 3118main () 3119{ 3120 3121 ; 3122 return 0; 3123} 3124_ACEOF 3125rm -f conftest.$ac_objext 3126if { (ac_try="$ac_compile" 3127case "(($ac_try" in 3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3129 *) ac_try_echo=$ac_try;; 3130esac 3131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3132 (eval "$ac_compile") 2>conftest.er1 3133 ac_status=$? 3134 grep -v '^ *+' conftest.er1 >conftest.err 3135 rm -f conftest.er1 3136 cat conftest.err >&5 3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3138 (exit $ac_status); } && { 3139 test -z "$ac_c_werror_flag" || 3140 test ! -s conftest.err 3141 } && test -s conftest.$ac_objext; then 3142 : 3143else 3144 echo "$as_me: failed program was:" >&5 3145sed 's/^/| /' conftest.$ac_ext >&5 3146 3147 ac_c_werror_flag=$ac_save_c_werror_flag 3148 CFLAGS="-g" 3149 cat >conftest.$ac_ext <<_ACEOF 3150/* confdefs.h. */ 3151_ACEOF 3152cat confdefs.h >>conftest.$ac_ext 3153cat >>conftest.$ac_ext <<_ACEOF 3154/* end confdefs.h. */ 3155 3156int 3157main () 3158{ 3159 3160 ; 3161 return 0; 3162} 3163_ACEOF 3164rm -f conftest.$ac_objext 3165if { (ac_try="$ac_compile" 3166case "(($ac_try" in 3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3168 *) ac_try_echo=$ac_try;; 3169esac 3170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3171 (eval "$ac_compile") 2>conftest.er1 3172 ac_status=$? 3173 grep -v '^ *+' conftest.er1 >conftest.err 3174 rm -f conftest.er1 3175 cat conftest.err >&5 3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3177 (exit $ac_status); } && { 3178 test -z "$ac_c_werror_flag" || 3179 test ! -s conftest.err 3180 } && test -s conftest.$ac_objext; then 3181 ac_cv_prog_cc_g=yes 3182else 3183 echo "$as_me: failed program was:" >&5 3184sed 's/^/| /' conftest.$ac_ext >&5 3185 3186 3187fi 3188 3189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3190fi 3191 3192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3193fi 3194 3195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3196 ac_c_werror_flag=$ac_save_c_werror_flag 3197fi 3198{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3199echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3200if test "$ac_test_CFLAGS" = set; then 3201 CFLAGS=$ac_save_CFLAGS 3202elif test $ac_cv_prog_cc_g = yes; then 3203 if test "$GCC" = yes; then 3204 CFLAGS="-g -O2" 3205 else 3206 CFLAGS="-g" 3207 fi 3208else 3209 if test "$GCC" = yes; then 3210 CFLAGS="-O2" 3211 else 3212 CFLAGS= 3213 fi 3214fi 3215{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3216echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3217if test "${ac_cv_prog_cc_c89+set}" = set; then 3218 echo $ECHO_N "(cached) $ECHO_C" >&6 3219else 3220 ac_cv_prog_cc_c89=no 3221ac_save_CC=$CC 3222cat >conftest.$ac_ext <<_ACEOF 3223/* confdefs.h. */ 3224_ACEOF 3225cat confdefs.h >>conftest.$ac_ext 3226cat >>conftest.$ac_ext <<_ACEOF 3227/* end confdefs.h. */ 3228#include <stdarg.h> 3229#include <stdio.h> 3230#include <sys/types.h> 3231#include <sys/stat.h> 3232/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3233struct buf { int x; }; 3234FILE * (*rcsopen) (struct buf *, struct stat *, int); 3235static char *e (p, i) 3236 char **p; 3237 int i; 3238{ 3239 return p[i]; 3240} 3241static char *f (char * (*g) (char **, int), char **p, ...) 3242{ 3243 char *s; 3244 va_list v; 3245 va_start (v,p); 3246 s = g (p, va_arg (v,int)); 3247 va_end (v); 3248 return s; 3249} 3250 3251/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3252 function prototypes and stuff, but not '\xHH' hex character constants. 3253 These don't provoke an error unfortunately, instead are silently treated 3254 as 'x'. The following induces an error, until -std is added to get 3255 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3256 array size at least. It's necessary to write '\x00'==0 to get something 3257 that's true only with -std. */ 3258int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3259 3260/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3261 inside strings and character constants. */ 3262#define FOO(x) 'x' 3263int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3264 3265int test (int i, double x); 3266struct s1 {int (*f) (int a);}; 3267struct s2 {int (*f) (double a);}; 3268int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3269int argc; 3270char **argv; 3271int 3272main () 3273{ 3274return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3275 ; 3276 return 0; 3277} 3278_ACEOF 3279for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3280 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3281do 3282 CC="$ac_save_CC $ac_arg" 3283 rm -f conftest.$ac_objext 3284if { (ac_try="$ac_compile" 3285case "(($ac_try" in 3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3287 *) ac_try_echo=$ac_try;; 3288esac 3289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3290 (eval "$ac_compile") 2>conftest.er1 3291 ac_status=$? 3292 grep -v '^ *+' conftest.er1 >conftest.err 3293 rm -f conftest.er1 3294 cat conftest.err >&5 3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3296 (exit $ac_status); } && { 3297 test -z "$ac_c_werror_flag" || 3298 test ! -s conftest.err 3299 } && test -s conftest.$ac_objext; then 3300 ac_cv_prog_cc_c89=$ac_arg 3301else 3302 echo "$as_me: failed program was:" >&5 3303sed 's/^/| /' conftest.$ac_ext >&5 3304 3305 3306fi 3307 3308rm -f core conftest.err conftest.$ac_objext 3309 test "x$ac_cv_prog_cc_c89" != "xno" && break 3310done 3311rm -f conftest.$ac_ext 3312CC=$ac_save_CC 3313 3314fi 3315# AC_CACHE_VAL 3316case "x$ac_cv_prog_cc_c89" in 3317 x) 3318 { echo "$as_me:$LINENO: result: none needed" >&5 3319echo "${ECHO_T}none needed" >&6; } ;; 3320 xno) 3321 { echo "$as_me:$LINENO: result: unsupported" >&5 3322echo "${ECHO_T}unsupported" >&6; } ;; 3323 *) 3324 CC="$CC $ac_cv_prog_cc_c89" 3325 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3326echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3327esac 3328 3329 3330ac_ext=c 3331ac_cpp='$CPP $CPPFLAGS' 3332ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3333ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3334ac_compiler_gnu=$ac_cv_c_compiler_gnu 3335 3336depcc="$CC" am_compiler_list= 3337 3338{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3339echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3340if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3341 echo $ECHO_N "(cached) $ECHO_C" >&6 3342else 3343 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3344 # We make a subdir and do the tests there. Otherwise we can end up 3345 # making bogus files that we don't know about and never remove. For 3346 # instance it was reported that on HP-UX the gcc test will end up 3347 # making a dummy file named `D' -- because `-MD' means `put the output 3348 # in D'. 3349 mkdir conftest.dir 3350 # Copy depcomp to subdir because otherwise we won't find it if we're 3351 # using a relative directory. 3352 cp "$am_depcomp" conftest.dir 3353 cd conftest.dir 3354 # We will build objects and dependencies in a subdirectory because 3355 # it helps to detect inapplicable dependency modes. For instance 3356 # both Tru64's cc and ICC support -MD to output dependencies as a 3357 # side effect of compilation, but ICC will put the dependencies in 3358 # the current directory while Tru64 will put them in the object 3359 # directory. 3360 mkdir sub 3361 3362 am_cv_CC_dependencies_compiler_type=none 3363 if test "$am_compiler_list" = ""; then 3364 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3365 fi 3366 for depmode in $am_compiler_list; do 3367 # Setup a source with many dependencies, because some compilers 3368 # like to wrap large dependency lists on column 80 (with \), and 3369 # we should not choose a depcomp mode which is confused by this. 3370 # 3371 # We need to recreate these files for each test, as the compiler may 3372 # overwrite some of them when testing with obscure command lines. 3373 # This happens at least with the AIX C compiler. 3374 : > sub/conftest.c 3375 for i in 1 2 3 4 5 6; do 3376 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3377 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3378 # Solaris 8's {/usr,}/bin/sh. 3379 touch sub/conftst$i.h 3380 done 3381 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3382 3383 case $depmode in 3384 nosideeffect) 3385 # after this tag, mechanisms are not by side-effect, so they'll 3386 # only be used when explicitly requested 3387 if test "x$enable_dependency_tracking" = xyes; then 3388 continue 3389 else 3390 break 3391 fi 3392 ;; 3393 none) break ;; 3394 esac 3395 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3396 # mode. It turns out that the SunPro C++ compiler does not properly 3397 # handle `-M -o', and we need to detect this. 3398 if depmode=$depmode \ 3399 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3400 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3401 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3402 >/dev/null 2>conftest.err && 3403 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3404 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3405 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3406 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3407 # icc doesn't choke on unknown options, it will just issue warnings 3408 # or remarks (even with -Werror). So we grep stderr for any message 3409 # that says an option was ignored or not supported. 3410 # When given -MP, icc 7.0 and 7.1 complain thusly: 3411 # icc: Command line warning: ignoring option '-M'; no argument required 3412 # The diagnosis changed in icc 8.0: 3413 # icc: Command line remark: option '-MP' not supported 3414 if (grep 'ignoring option' conftest.err || 3415 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3416 am_cv_CC_dependencies_compiler_type=$depmode 3417 break 3418 fi 3419 fi 3420 done 3421 3422 cd .. 3423 rm -rf conftest.dir 3424else 3425 am_cv_CC_dependencies_compiler_type=none 3426fi 3427 3428fi 3429{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3430echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 3431CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3432 3433 if 3434 test "x$enable_dependency_tracking" != xno \ 3435 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3436 am__fastdepCC_TRUE= 3437 am__fastdepCC_FALSE='#' 3438else 3439 am__fastdepCC_TRUE='#' 3440 am__fastdepCC_FALSE= 3441fi 3442 3443 3444 3445 3446case "$am__api_version" in 3447 1.01234) 3448 { { echo "$as_me:$LINENO: error: Automake 1.5 or newer is required to use intltool" >&5 3449echo "$as_me: error: Automake 1.5 or newer is required to use intltool" >&2;} 3450 { (exit 1); exit 1; }; } 3451 ;; 3452 *) 3453 ;; 3454esac 3455 3456if test -n ""; then 3457 { echo "$as_me:$LINENO: checking for intltool >= " >&5 3458echo $ECHO_N "checking for intltool >= ... $ECHO_C" >&6; } 3459 3460 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` 3461 INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { print $ 2; }' ${ac_aux_dir}/intltool-update.in` 3462 INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($ 2, VERSION, "."); print VERSION[1] * 1000 + VERSION[2] * 100 + VERSION[3];}' ${ac_aux_dir}/intltool-update.in` 3463 3464 { echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5 3465echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6; } 3466 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" || 3467 { { echo "$as_me:$LINENO: error: Your intltool is too old. You need intltool or later." >&5 3468echo "$as_me: error: Your intltool is too old. You need intltool or later." >&2;} 3469 { (exit 1); exit 1; }; } 3470fi 3471 3472 INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 3473INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 3474 INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 3475 INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 3476 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@' 3477 INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 3478 INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 3479 INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 3480INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 3481 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 3482 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 3483 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@' 3484 INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 3485 INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 3486 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 3487 INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 3488 INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 3489 INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 3490 INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512# Check the gettext tools to make sure they are GNU 3513# Extract the first word of "xgettext", so it can be a program name with args. 3514set dummy xgettext; ac_word=$2 3515{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3516echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3517if test "${ac_cv_path_XGETTEXT+set}" = set; then 3518 echo $ECHO_N "(cached) $ECHO_C" >&6 3519else 3520 case $XGETTEXT in 3521 [\\/]* | ?:[\\/]*) 3522 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 3523 ;; 3524 *) 3525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3526for as_dir in $PATH 3527do 3528 IFS=$as_save_IFS 3529 test -z "$as_dir" && as_dir=. 3530 for ac_exec_ext in '' $ac_executable_extensions; do 3531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3532 ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext" 3533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3534 break 2 3535 fi 3536done 3537done 3538IFS=$as_save_IFS 3539 3540 ;; 3541esac 3542fi 3543XGETTEXT=$ac_cv_path_XGETTEXT 3544if test -n "$XGETTEXT"; then 3545 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5 3546echo "${ECHO_T}$XGETTEXT" >&6; } 3547else 3548 { echo "$as_me:$LINENO: result: no" >&5 3549echo "${ECHO_T}no" >&6; } 3550fi 3551 3552 3553# Extract the first word of "msgmerge", so it can be a program name with args. 3554set dummy msgmerge; ac_word=$2 3555{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3556echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3557if test "${ac_cv_path_MSGMERGE+set}" = set; then 3558 echo $ECHO_N "(cached) $ECHO_C" >&6 3559else 3560 case $MSGMERGE in 3561 [\\/]* | ?:[\\/]*) 3562 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 3563 ;; 3564 *) 3565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3566for as_dir in $PATH 3567do 3568 IFS=$as_save_IFS 3569 test -z "$as_dir" && as_dir=. 3570 for ac_exec_ext in '' $ac_executable_extensions; do 3571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3572 ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext" 3573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3574 break 2 3575 fi 3576done 3577done 3578IFS=$as_save_IFS 3579 3580 ;; 3581esac 3582fi 3583MSGMERGE=$ac_cv_path_MSGMERGE 3584if test -n "$MSGMERGE"; then 3585 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5 3586echo "${ECHO_T}$MSGMERGE" >&6; } 3587else 3588 { echo "$as_me:$LINENO: result: no" >&5 3589echo "${ECHO_T}no" >&6; } 3590fi 3591 3592 3593# Extract the first word of "msgfmt", so it can be a program name with args. 3594set dummy msgfmt; ac_word=$2 3595{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3596echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3597if test "${ac_cv_path_MSGFMT+set}" = set; then 3598 echo $ECHO_N "(cached) $ECHO_C" >&6 3599else 3600 case $MSGFMT in 3601 [\\/]* | ?:[\\/]*) 3602 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 3603 ;; 3604 *) 3605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3606for as_dir in $PATH 3607do 3608 IFS=$as_save_IFS 3609 test -z "$as_dir" && as_dir=. 3610 for ac_exec_ext in '' $ac_executable_extensions; do 3611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3612 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" 3613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3614 break 2 3615 fi 3616done 3617done 3618IFS=$as_save_IFS 3619 3620 ;; 3621esac 3622fi 3623MSGFMT=$ac_cv_path_MSGFMT 3624if test -n "$MSGFMT"; then 3625 { echo "$as_me:$LINENO: result: $MSGFMT" >&5 3626echo "${ECHO_T}$MSGFMT" >&6; } 3627else 3628 { echo "$as_me:$LINENO: result: no" >&5 3629echo "${ECHO_T}no" >&6; } 3630fi 3631 3632 3633if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then 3634 { { echo "$as_me:$LINENO: error: GNU gettext tools not found; required for intltool" >&5 3635echo "$as_me: error: GNU gettext tools not found; required for intltool" >&2;} 3636 { (exit 1); exit 1; }; } 3637fi 3638xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`" 3639mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`" 3640mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`" 3641if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then 3642 { { echo "$as_me:$LINENO: error: GNU gettext tools not found; required for intltool" >&5 3643echo "$as_me: error: GNU gettext tools not found; required for intltool" >&2;} 3644 { (exit 1); exit 1; }; } 3645fi 3646 3647# Use the tools built into the package, not the ones that are installed. 3648INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract' 3649 3650INTLTOOL_MERGE='$(top_builddir)/intltool-merge' 3651 3652INTLTOOL_UPDATE='$(top_builddir)/intltool-update' 3653 3654 3655# Extract the first word of "perl", so it can be a program name with args. 3656set dummy perl; ac_word=$2 3657{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3658echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3659if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then 3660 echo $ECHO_N "(cached) $ECHO_C" >&6 3661else 3662 case $INTLTOOL_PERL in 3663 [\\/]* | ?:[\\/]*) 3664 ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path. 3665 ;; 3666 *) 3667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3668for as_dir in $PATH 3669do 3670 IFS=$as_save_IFS 3671 test -z "$as_dir" && as_dir=. 3672 for ac_exec_ext in '' $ac_executable_extensions; do 3673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3674 ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext" 3675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3676 break 2 3677 fi 3678done 3679done 3680IFS=$as_save_IFS 3681 3682 ;; 3683esac 3684fi 3685INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL 3686if test -n "$INTLTOOL_PERL"; then 3687 { echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5 3688echo "${ECHO_T}$INTLTOOL_PERL" >&6; } 3689else 3690 { echo "$as_me:$LINENO: result: no" >&5 3691echo "${ECHO_T}no" >&6; } 3692fi 3693 3694 3695if test -z "$INTLTOOL_PERL"; then 3696 { { echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5 3697echo "$as_me: error: perl not found; required for intltool" >&2;} 3698 { (exit 1); exit 1; }; } 3699fi 3700if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then 3701 { { echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5 3702echo "$as_me: error: perl 5.x required for intltool" >&2;} 3703 { (exit 1); exit 1; }; } 3704fi 3705if test "x" != "xno-xml"; then 3706 { echo "$as_me:$LINENO: checking for XML::Parser" >&5 3707echo $ECHO_N "checking for XML::Parser... $ECHO_C" >&6; } 3708 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then 3709 { echo "$as_me:$LINENO: result: ok" >&5 3710echo "${ECHO_T}ok" >&6; } 3711 else 3712 { { echo "$as_me:$LINENO: error: XML::Parser perl module is required for intltool" >&5 3713echo "$as_me: error: XML::Parser perl module is required for intltool" >&2;} 3714 { (exit 1); exit 1; }; } 3715 fi 3716fi 3717 3718# Substitute ALL_LINGUAS so we can use it in po/Makefile 3719 3720 3721# Set DATADIRNAME correctly if it is not set yet 3722# (copied from glib-gettext.m4) 3723if test -z "$DATADIRNAME"; then 3724 cat >conftest.$ac_ext <<_ACEOF 3725/* confdefs.h. */ 3726_ACEOF 3727cat confdefs.h >>conftest.$ac_ext 3728cat >>conftest.$ac_ext <<_ACEOF 3729/* end confdefs.h. */ 3730 3731int 3732main () 3733{ 3734extern int _nl_msg_cat_cntr; 3735 return _nl_msg_cat_cntr 3736 ; 3737 return 0; 3738} 3739_ACEOF 3740rm -f conftest.$ac_objext conftest$ac_exeext 3741if { (ac_try="$ac_link" 3742case "(($ac_try" in 3743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3744 *) ac_try_echo=$ac_try;; 3745esac 3746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3747 (eval "$ac_link") 2>conftest.er1 3748 ac_status=$? 3749 grep -v '^ *+' conftest.er1 >conftest.err 3750 rm -f conftest.er1 3751 cat conftest.err >&5 3752 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3753 (exit $ac_status); } && { 3754 test -z "$ac_c_werror_flag" || 3755 test ! -s conftest.err 3756 } && test -s conftest$ac_exeext && 3757 $as_test_x conftest$ac_exeext; then 3758 DATADIRNAME=share 3759else 3760 echo "$as_me: failed program was:" >&5 3761sed 's/^/| /' conftest.$ac_ext >&5 3762 3763 case $host in 3764 *-*-solaris*) 3765 { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5 3766echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; } 3767if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then 3768 echo $ECHO_N "(cached) $ECHO_C" >&6 3769else 3770 cat >conftest.$ac_ext <<_ACEOF 3771/* confdefs.h. */ 3772_ACEOF 3773cat confdefs.h >>conftest.$ac_ext 3774cat >>conftest.$ac_ext <<_ACEOF 3775/* end confdefs.h. */ 3776/* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset. 3777 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 3778#define bind_textdomain_codeset innocuous_bind_textdomain_codeset 3779 3780/* System header to define __stub macros and hopefully few prototypes, 3781 which can conflict with char bind_textdomain_codeset (); below. 3782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3783 <limits.h> exists even on freestanding compilers. */ 3784 3785#ifdef __STDC__ 3786# include <limits.h> 3787#else 3788# include <assert.h> 3789#endif 3790 3791#undef bind_textdomain_codeset 3792 3793/* Override any GCC internal prototype to avoid an error. 3794 Use char because int might match the return type of a GCC 3795 builtin and then its argument prototype would still apply. */ 3796#ifdef __cplusplus 3797extern "C" 3798#endif 3799char bind_textdomain_codeset (); 3800/* The GNU C library defines this for functions which it implements 3801 to always fail with ENOSYS. Some functions are actually named 3802 something starting with __ and the normal name is an alias. */ 3803#if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset 3804choke me 3805#endif 3806 3807int 3808main () 3809{ 3810return bind_textdomain_codeset (); 3811 ; 3812 return 0; 3813} 3814_ACEOF 3815rm -f conftest.$ac_objext conftest$ac_exeext 3816if { (ac_try="$ac_link" 3817case "(($ac_try" in 3818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3819 *) ac_try_echo=$ac_try;; 3820esac 3821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3822 (eval "$ac_link") 2>conftest.er1 3823 ac_status=$? 3824 grep -v '^ *+' conftest.er1 >conftest.err 3825 rm -f conftest.er1 3826 cat conftest.err >&5 3827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3828 (exit $ac_status); } && { 3829 test -z "$ac_c_werror_flag" || 3830 test ! -s conftest.err 3831 } && test -s conftest$ac_exeext && 3832 $as_test_x conftest$ac_exeext; then 3833 ac_cv_func_bind_textdomain_codeset=yes 3834else 3835 echo "$as_me: failed program was:" >&5 3836sed 's/^/| /' conftest.$ac_ext >&5 3837 3838 ac_cv_func_bind_textdomain_codeset=no 3839fi 3840 3841rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3842 conftest$ac_exeext conftest.$ac_ext 3843fi 3844{ echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5 3845echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; } 3846if test $ac_cv_func_bind_textdomain_codeset = yes; then 3847 DATADIRNAME=share 3848else 3849 DATADIRNAME=lib 3850fi 3851 3852 ;; 3853 *) 3854 DATADIRNAME=lib 3855 ;; 3856 esac 3857fi 3858 3859rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3860 conftest$ac_exeext conftest.$ac_ext 3861fi 3862 3863 3864 3865 3866 3867ac_config_commands="$ac_config_commands intltool" 3868 3869 3870 3871 3872 3873 3874{ echo "$as_me:$LINENO: checking for library containing strerror" >&5 3875echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } 3876if test "${ac_cv_search_strerror+set}" = set; then 3877 echo $ECHO_N "(cached) $ECHO_C" >&6 3878else 3879 ac_func_search_save_LIBS=$LIBS 3880cat >conftest.$ac_ext <<_ACEOF 3881/* confdefs.h. */ 3882_ACEOF 3883cat confdefs.h >>conftest.$ac_ext 3884cat >>conftest.$ac_ext <<_ACEOF 3885/* end confdefs.h. */ 3886 3887/* Override any GCC internal prototype to avoid an error. 3888 Use char because int might match the return type of a GCC 3889 builtin and then its argument prototype would still apply. */ 3890#ifdef __cplusplus 3891extern "C" 3892#endif 3893char strerror (); 3894int 3895main () 3896{ 3897return strerror (); 3898 ; 3899 return 0; 3900} 3901_ACEOF 3902for ac_lib in '' cposix; do 3903 if test -z "$ac_lib"; then 3904 ac_res="none required" 3905 else 3906 ac_res=-l$ac_lib 3907 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3908 fi 3909 rm -f conftest.$ac_objext conftest$ac_exeext 3910if { (ac_try="$ac_link" 3911case "(($ac_try" in 3912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3913 *) ac_try_echo=$ac_try;; 3914esac 3915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3916 (eval "$ac_link") 2>conftest.er1 3917 ac_status=$? 3918 grep -v '^ *+' conftest.er1 >conftest.err 3919 rm -f conftest.er1 3920 cat conftest.err >&5 3921 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3922 (exit $ac_status); } && { 3923 test -z "$ac_c_werror_flag" || 3924 test ! -s conftest.err 3925 } && test -s conftest$ac_exeext && 3926 $as_test_x conftest$ac_exeext; then 3927 ac_cv_search_strerror=$ac_res 3928else 3929 echo "$as_me: failed program was:" >&5 3930sed 's/^/| /' conftest.$ac_ext >&5 3931 3932 3933fi 3934 3935rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3936 conftest$ac_exeext 3937 if test "${ac_cv_search_strerror+set}" = set; then 3938 break 3939fi 3940done 3941if test "${ac_cv_search_strerror+set}" = set; then 3942 : 3943else 3944 ac_cv_search_strerror=no 3945fi 3946rm conftest.$ac_ext 3947LIBS=$ac_func_search_save_LIBS 3948fi 3949{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 3950echo "${ECHO_T}$ac_cv_search_strerror" >&6; } 3951ac_res=$ac_cv_search_strerror 3952if test "$ac_res" != no; then 3953 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 3954 3955fi 3956 3957ac_ext=c 3958ac_cpp='$CPP $CPPFLAGS' 3959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3961ac_compiler_gnu=$ac_cv_c_compiler_gnu 3962if test -n "$ac_tool_prefix"; then 3963 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3964set dummy ${ac_tool_prefix}gcc; ac_word=$2 3965{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3967if test "${ac_cv_prog_CC+set}" = set; then 3968 echo $ECHO_N "(cached) $ECHO_C" >&6 3969else 3970 if test -n "$CC"; then 3971 ac_cv_prog_CC="$CC" # Let the user override the test. 3972else 3973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3974for as_dir in $PATH 3975do 3976 IFS=$as_save_IFS 3977 test -z "$as_dir" && as_dir=. 3978 for ac_exec_ext in '' $ac_executable_extensions; do 3979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3980 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3982 break 2 3983 fi 3984done 3985done 3986IFS=$as_save_IFS 3987 3988fi 3989fi 3990CC=$ac_cv_prog_CC 3991if test -n "$CC"; then 3992 { echo "$as_me:$LINENO: result: $CC" >&5 3993echo "${ECHO_T}$CC" >&6; } 3994else 3995 { echo "$as_me:$LINENO: result: no" >&5 3996echo "${ECHO_T}no" >&6; } 3997fi 3998 3999 4000fi 4001if test -z "$ac_cv_prog_CC"; then 4002 ac_ct_CC=$CC 4003 # Extract the first word of "gcc", so it can be a program name with args. 4004set dummy gcc; ac_word=$2 4005{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4006echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4007if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 4008 echo $ECHO_N "(cached) $ECHO_C" >&6 4009else 4010 if test -n "$ac_ct_CC"; then 4011 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4012else 4013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4014for as_dir in $PATH 4015do 4016 IFS=$as_save_IFS 4017 test -z "$as_dir" && as_dir=. 4018 for ac_exec_ext in '' $ac_executable_extensions; do 4019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4020 ac_cv_prog_ac_ct_CC="gcc" 4021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4022 break 2 4023 fi 4024done 4025done 4026IFS=$as_save_IFS 4027 4028fi 4029fi 4030ac_ct_CC=$ac_cv_prog_ac_ct_CC 4031if test -n "$ac_ct_CC"; then 4032 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 4033echo "${ECHO_T}$ac_ct_CC" >&6; } 4034else 4035 { echo "$as_me:$LINENO: result: no" >&5 4036echo "${ECHO_T}no" >&6; } 4037fi 4038 4039 if test "x$ac_ct_CC" = x; then 4040 CC="" 4041 else 4042 case $cross_compiling:$ac_tool_warned in 4043yes:) 4044{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4045whose name does not start with the host triplet. If you think this 4046configuration is useful to you, please write to autoconf@gnu.org." >&5 4047echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4048whose name does not start with the host triplet. If you think this 4049configuration is useful to you, please write to autoconf@gnu.org." >&2;} 4050ac_tool_warned=yes ;; 4051esac 4052 CC=$ac_ct_CC 4053 fi 4054else 4055 CC="$ac_cv_prog_CC" 4056fi 4057 4058if test -z "$CC"; then 4059 if test -n "$ac_tool_prefix"; then 4060 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4061set dummy ${ac_tool_prefix}cc; ac_word=$2 4062{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4063echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4064if test "${ac_cv_prog_CC+set}" = set; then 4065 echo $ECHO_N "(cached) $ECHO_C" >&6 4066else 4067 if test -n "$CC"; then 4068 ac_cv_prog_CC="$CC" # Let the user override the test. 4069else 4070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4071for as_dir in $PATH 4072do 4073 IFS=$as_save_IFS 4074 test -z "$as_dir" && as_dir=. 4075 for ac_exec_ext in '' $ac_executable_extensions; do 4076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4077 ac_cv_prog_CC="${ac_tool_prefix}cc" 4078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4079 break 2 4080 fi 4081done 4082done 4083IFS=$as_save_IFS 4084 4085fi 4086fi 4087CC=$ac_cv_prog_CC 4088if test -n "$CC"; then 4089 { echo "$as_me:$LINENO: result: $CC" >&5 4090echo "${ECHO_T}$CC" >&6; } 4091else 4092 { echo "$as_me:$LINENO: result: no" >&5 4093echo "${ECHO_T}no" >&6; } 4094fi 4095 4096 4097 fi 4098fi 4099if test -z "$CC"; then 4100 # Extract the first word of "cc", so it can be a program name with args. 4101set dummy cc; ac_word=$2 4102{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4103echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4104if test "${ac_cv_prog_CC+set}" = set; then 4105 echo $ECHO_N "(cached) $ECHO_C" >&6 4106else 4107 if test -n "$CC"; then 4108 ac_cv_prog_CC="$CC" # Let the user override the test. 4109else 4110 ac_prog_rejected=no 4111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4112for as_dir in $PATH 4113do 4114 IFS=$as_save_IFS 4115 test -z "$as_dir" && as_dir=. 4116 for ac_exec_ext in '' $ac_executable_extensions; do 4117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4118 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4119 ac_prog_rejected=yes 4120 continue 4121 fi 4122 ac_cv_prog_CC="cc" 4123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4124 break 2 4125 fi 4126done 4127done 4128IFS=$as_save_IFS 4129 4130if test $ac_prog_rejected = yes; then 4131 # We found a bogon in the path, so make sure we never use it. 4132 set dummy $ac_cv_prog_CC 4133 shift 4134 if test $# != 0; then 4135 # We chose a different compiler from the bogus one. 4136 # However, it has the same basename, so the bogon will be chosen 4137 # first if we set CC to just the basename; use the full file name. 4138 shift 4139 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4140 fi 4141fi 4142fi 4143fi 4144CC=$ac_cv_prog_CC 4145if test -n "$CC"; then 4146 { echo "$as_me:$LINENO: result: $CC" >&5 4147echo "${ECHO_T}$CC" >&6; } 4148else 4149 { echo "$as_me:$LINENO: result: no" >&5 4150echo "${ECHO_T}no" >&6; } 4151fi 4152 4153 4154fi 4155if test -z "$CC"; then 4156 if test -n "$ac_tool_prefix"; then 4157 for ac_prog in cl.exe 4158 do 4159 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4160set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4161{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4162echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4163if test "${ac_cv_prog_CC+set}" = set; then 4164 echo $ECHO_N "(cached) $ECHO_C" >&6 4165else 4166 if test -n "$CC"; then 4167 ac_cv_prog_CC="$CC" # Let the user override the test. 4168else 4169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4170for as_dir in $PATH 4171do 4172 IFS=$as_save_IFS 4173 test -z "$as_dir" && as_dir=. 4174 for ac_exec_ext in '' $ac_executable_extensions; do 4175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4176 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4178 break 2 4179 fi 4180done 4181done 4182IFS=$as_save_IFS 4183 4184fi 4185fi 4186CC=$ac_cv_prog_CC 4187if test -n "$CC"; then 4188 { echo "$as_me:$LINENO: result: $CC" >&5 4189echo "${ECHO_T}$CC" >&6; } 4190else 4191 { echo "$as_me:$LINENO: result: no" >&5 4192echo "${ECHO_T}no" >&6; } 4193fi 4194 4195 4196 test -n "$CC" && break 4197 done 4198fi 4199if test -z "$CC"; then 4200 ac_ct_CC=$CC 4201 for ac_prog in cl.exe 4202do 4203 # Extract the first word of "$ac_prog", so it can be a program name with args. 4204set dummy $ac_prog; ac_word=$2 4205{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4206echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4207if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 4208 echo $ECHO_N "(cached) $ECHO_C" >&6 4209else 4210 if test -n "$ac_ct_CC"; then 4211 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4212else 4213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4214for as_dir in $PATH 4215do 4216 IFS=$as_save_IFS 4217 test -z "$as_dir" && as_dir=. 4218 for ac_exec_ext in '' $ac_executable_extensions; do 4219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4220 ac_cv_prog_ac_ct_CC="$ac_prog" 4221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4222 break 2 4223 fi 4224done 4225done 4226IFS=$as_save_IFS 4227 4228fi 4229fi 4230ac_ct_CC=$ac_cv_prog_ac_ct_CC 4231if test -n "$ac_ct_CC"; then 4232 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 4233echo "${ECHO_T}$ac_ct_CC" >&6; } 4234else 4235 { echo "$as_me:$LINENO: result: no" >&5 4236echo "${ECHO_T}no" >&6; } 4237fi 4238 4239 4240 test -n "$ac_ct_CC" && break 4241done 4242 4243 if test "x$ac_ct_CC" = x; then 4244 CC="" 4245 else 4246 case $cross_compiling:$ac_tool_warned in 4247yes:) 4248{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4249whose name does not start with the host triplet. If you think this 4250configuration is useful to you, please write to autoconf@gnu.org." >&5 4251echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4252whose name does not start with the host triplet. If you think this 4253configuration is useful to you, please write to autoconf@gnu.org." >&2;} 4254ac_tool_warned=yes ;; 4255esac 4256 CC=$ac_ct_CC 4257 fi 4258fi 4259 4260fi 4261 4262 4263test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 4264See \`config.log' for more details." >&5 4265echo "$as_me: error: no acceptable C compiler found in \$PATH 4266See \`config.log' for more details." >&2;} 4267 { (exit 1); exit 1; }; } 4268 4269# Provide some information about the compiler. 4270echo "$as_me:$LINENO: checking for C compiler version" >&5 4271ac_compiler=`set X $ac_compile; echo $2` 4272{ (ac_try="$ac_compiler --version >&5" 4273case "(($ac_try" in 4274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4275 *) ac_try_echo=$ac_try;; 4276esac 4277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4278 (eval "$ac_compiler --version >&5") 2>&5 4279 ac_status=$? 4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4281 (exit $ac_status); } 4282{ (ac_try="$ac_compiler -v >&5" 4283case "(($ac_try" in 4284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4285 *) ac_try_echo=$ac_try;; 4286esac 4287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4288 (eval "$ac_compiler -v >&5") 2>&5 4289 ac_status=$? 4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4291 (exit $ac_status); } 4292{ (ac_try="$ac_compiler -V >&5" 4293case "(($ac_try" in 4294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4295 *) ac_try_echo=$ac_try;; 4296esac 4297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4298 (eval "$ac_compiler -V >&5") 2>&5 4299 ac_status=$? 4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4301 (exit $ac_status); } 4302 4303{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 4304echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 4305if test "${ac_cv_c_compiler_gnu+set}" = set; then 4306 echo $ECHO_N "(cached) $ECHO_C" >&6 4307else 4308 cat >conftest.$ac_ext <<_ACEOF 4309/* confdefs.h. */ 4310_ACEOF 4311cat confdefs.h >>conftest.$ac_ext 4312cat >>conftest.$ac_ext <<_ACEOF 4313/* end confdefs.h. */ 4314 4315int 4316main () 4317{ 4318#ifndef __GNUC__ 4319 choke me 4320#endif 4321 4322 ; 4323 return 0; 4324} 4325_ACEOF 4326rm -f conftest.$ac_objext 4327if { (ac_try="$ac_compile" 4328case "(($ac_try" in 4329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4330 *) ac_try_echo=$ac_try;; 4331esac 4332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4333 (eval "$ac_compile") 2>conftest.er1 4334 ac_status=$? 4335 grep -v '^ *+' conftest.er1 >conftest.err 4336 rm -f conftest.er1 4337 cat conftest.err >&5 4338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4339 (exit $ac_status); } && { 4340 test -z "$ac_c_werror_flag" || 4341 test ! -s conftest.err 4342 } && test -s conftest.$ac_objext; then 4343 ac_compiler_gnu=yes 4344else 4345 echo "$as_me: failed program was:" >&5 4346sed 's/^/| /' conftest.$ac_ext >&5 4347 4348 ac_compiler_gnu=no 4349fi 4350 4351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4352ac_cv_c_compiler_gnu=$ac_compiler_gnu 4353 4354fi 4355{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 4356echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 4357GCC=`test $ac_compiler_gnu = yes && echo yes` 4358ac_test_CFLAGS=${CFLAGS+set} 4359ac_save_CFLAGS=$CFLAGS 4360{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 4361echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 4362if test "${ac_cv_prog_cc_g+set}" = set; then 4363 echo $ECHO_N "(cached) $ECHO_C" >&6 4364else 4365 ac_save_c_werror_flag=$ac_c_werror_flag 4366 ac_c_werror_flag=yes 4367 ac_cv_prog_cc_g=no 4368 CFLAGS="-g" 4369 cat >conftest.$ac_ext <<_ACEOF 4370/* confdefs.h. */ 4371_ACEOF 4372cat confdefs.h >>conftest.$ac_ext 4373cat >>conftest.$ac_ext <<_ACEOF 4374/* end confdefs.h. */ 4375 4376int 4377main () 4378{ 4379 4380 ; 4381 return 0; 4382} 4383_ACEOF 4384rm -f conftest.$ac_objext 4385if { (ac_try="$ac_compile" 4386case "(($ac_try" in 4387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4388 *) ac_try_echo=$ac_try;; 4389esac 4390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4391 (eval "$ac_compile") 2>conftest.er1 4392 ac_status=$? 4393 grep -v '^ *+' conftest.er1 >conftest.err 4394 rm -f conftest.er1 4395 cat conftest.err >&5 4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4397 (exit $ac_status); } && { 4398 test -z "$ac_c_werror_flag" || 4399 test ! -s conftest.err 4400 } && test -s conftest.$ac_objext; then 4401 ac_cv_prog_cc_g=yes 4402else 4403 echo "$as_me: failed program was:" >&5 4404sed 's/^/| /' conftest.$ac_ext >&5 4405 4406 CFLAGS="" 4407 cat >conftest.$ac_ext <<_ACEOF 4408/* confdefs.h. */ 4409_ACEOF 4410cat confdefs.h >>conftest.$ac_ext 4411cat >>conftest.$ac_ext <<_ACEOF 4412/* end confdefs.h. */ 4413 4414int 4415main () 4416{ 4417 4418 ; 4419 return 0; 4420} 4421_ACEOF 4422rm -f conftest.$ac_objext 4423if { (ac_try="$ac_compile" 4424case "(($ac_try" in 4425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4426 *) ac_try_echo=$ac_try;; 4427esac 4428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4429 (eval "$ac_compile") 2>conftest.er1 4430 ac_status=$? 4431 grep -v '^ *+' conftest.er1 >conftest.err 4432 rm -f conftest.er1 4433 cat conftest.err >&5 4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4435 (exit $ac_status); } && { 4436 test -z "$ac_c_werror_flag" || 4437 test ! -s conftest.err 4438 } && test -s conftest.$ac_objext; then 4439 : 4440else 4441 echo "$as_me: failed program was:" >&5 4442sed 's/^/| /' conftest.$ac_ext >&5 4443 4444 ac_c_werror_flag=$ac_save_c_werror_flag 4445 CFLAGS="-g" 4446 cat >conftest.$ac_ext <<_ACEOF 4447/* confdefs.h. */ 4448_ACEOF 4449cat confdefs.h >>conftest.$ac_ext 4450cat >>conftest.$ac_ext <<_ACEOF 4451/* end confdefs.h. */ 4452 4453int 4454main () 4455{ 4456 4457 ; 4458 return 0; 4459} 4460_ACEOF 4461rm -f conftest.$ac_objext 4462if { (ac_try="$ac_compile" 4463case "(($ac_try" in 4464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4465 *) ac_try_echo=$ac_try;; 4466esac 4467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4468 (eval "$ac_compile") 2>conftest.er1 4469 ac_status=$? 4470 grep -v '^ *+' conftest.er1 >conftest.err 4471 rm -f conftest.er1 4472 cat conftest.err >&5 4473 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4474 (exit $ac_status); } && { 4475 test -z "$ac_c_werror_flag" || 4476 test ! -s conftest.err 4477 } && test -s conftest.$ac_objext; then 4478 ac_cv_prog_cc_g=yes 4479else 4480 echo "$as_me: failed program was:" >&5 4481sed 's/^/| /' conftest.$ac_ext >&5 4482 4483 4484fi 4485 4486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4487fi 4488 4489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4490fi 4491 4492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4493 ac_c_werror_flag=$ac_save_c_werror_flag 4494fi 4495{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 4496echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 4497if test "$ac_test_CFLAGS" = set; then 4498 CFLAGS=$ac_save_CFLAGS 4499elif test $ac_cv_prog_cc_g = yes; then 4500 if test "$GCC" = yes; then 4501 CFLAGS="-g -O2" 4502 else 4503 CFLAGS="-g" 4504 fi 4505else 4506 if test "$GCC" = yes; then 4507 CFLAGS="-O2" 4508 else 4509 CFLAGS= 4510 fi 4511fi 4512{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 4513echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 4514if test "${ac_cv_prog_cc_c89+set}" = set; then 4515 echo $ECHO_N "(cached) $ECHO_C" >&6 4516else 4517 ac_cv_prog_cc_c89=no 4518ac_save_CC=$CC 4519cat >conftest.$ac_ext <<_ACEOF 4520/* confdefs.h. */ 4521_ACEOF 4522cat confdefs.h >>conftest.$ac_ext 4523cat >>conftest.$ac_ext <<_ACEOF 4524/* end confdefs.h. */ 4525#include <stdarg.h> 4526#include <stdio.h> 4527#include <sys/types.h> 4528#include <sys/stat.h> 4529/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4530struct buf { int x; }; 4531FILE * (*rcsopen) (struct buf *, struct stat *, int); 4532static char *e (p, i) 4533 char **p; 4534 int i; 4535{ 4536 return p[i]; 4537} 4538static char *f (char * (*g) (char **, int), char **p, ...) 4539{ 4540 char *s; 4541 va_list v; 4542 va_start (v,p); 4543 s = g (p, va_arg (v,int)); 4544 va_end (v); 4545 return s; 4546} 4547 4548/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4549 function prototypes and stuff, but not '\xHH' hex character constants. 4550 These don't provoke an error unfortunately, instead are silently treated 4551 as 'x'. The following induces an error, until -std is added to get 4552 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4553 array size at least. It's necessary to write '\x00'==0 to get something 4554 that's true only with -std. */ 4555int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4556 4557/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4558 inside strings and character constants. */ 4559#define FOO(x) 'x' 4560int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4561 4562int test (int i, double x); 4563struct s1 {int (*f) (int a);}; 4564struct s2 {int (*f) (double a);}; 4565int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4566int argc; 4567char **argv; 4568int 4569main () 4570{ 4571return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4572 ; 4573 return 0; 4574} 4575_ACEOF 4576for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4577 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4578do 4579 CC="$ac_save_CC $ac_arg" 4580 rm -f conftest.$ac_objext 4581if { (ac_try="$ac_compile" 4582case "(($ac_try" in 4583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4584 *) ac_try_echo=$ac_try;; 4585esac 4586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4587 (eval "$ac_compile") 2>conftest.er1 4588 ac_status=$? 4589 grep -v '^ *+' conftest.er1 >conftest.err 4590 rm -f conftest.er1 4591 cat conftest.err >&5 4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4593 (exit $ac_status); } && { 4594 test -z "$ac_c_werror_flag" || 4595 test ! -s conftest.err 4596 } && test -s conftest.$ac_objext; then 4597 ac_cv_prog_cc_c89=$ac_arg 4598else 4599 echo "$as_me: failed program was:" >&5 4600sed 's/^/| /' conftest.$ac_ext >&5 4601 4602 4603fi 4604 4605rm -f core conftest.err conftest.$ac_objext 4606 test "x$ac_cv_prog_cc_c89" != "xno" && break 4607done 4608rm -f conftest.$ac_ext 4609CC=$ac_save_CC 4610 4611fi 4612# AC_CACHE_VAL 4613case "x$ac_cv_prog_cc_c89" in 4614 x) 4615 { echo "$as_me:$LINENO: result: none needed" >&5 4616echo "${ECHO_T}none needed" >&6; } ;; 4617 xno) 4618 { echo "$as_me:$LINENO: result: unsupported" >&5 4619echo "${ECHO_T}unsupported" >&6; } ;; 4620 *) 4621 CC="$CC $ac_cv_prog_cc_c89" 4622 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 4623echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 4624esac 4625 4626 4627ac_ext=c 4628ac_cpp='$CPP $CPPFLAGS' 4629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4631ac_compiler_gnu=$ac_cv_c_compiler_gnu 4632 4633depcc="$CC" am_compiler_list= 4634 4635{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 4636echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 4637if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 4638 echo $ECHO_N "(cached) $ECHO_C" >&6 4639else 4640 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4641 # We make a subdir and do the tests there. Otherwise we can end up 4642 # making bogus files that we don't know about and never remove. For 4643 # instance it was reported that on HP-UX the gcc test will end up 4644 # making a dummy file named `D' -- because `-MD' means `put the output 4645 # in D'. 4646 mkdir conftest.dir 4647 # Copy depcomp to subdir because otherwise we won't find it if we're 4648 # using a relative directory. 4649 cp "$am_depcomp" conftest.dir 4650 cd conftest.dir 4651 # We will build objects and dependencies in a subdirectory because 4652 # it helps to detect inapplicable dependency modes. For instance 4653 # both Tru64's cc and ICC support -MD to output dependencies as a 4654 # side effect of compilation, but ICC will put the dependencies in 4655 # the current directory while Tru64 will put them in the object 4656 # directory. 4657 mkdir sub 4658 4659 am_cv_CC_dependencies_compiler_type=none 4660 if test "$am_compiler_list" = ""; then 4661 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4662 fi 4663 for depmode in $am_compiler_list; do 4664 # Setup a source with many dependencies, because some compilers 4665 # like to wrap large dependency lists on column 80 (with \), and 4666 # we should not choose a depcomp mode which is confused by this. 4667 # 4668 # We need to recreate these files for each test, as the compiler may 4669 # overwrite some of them when testing with obscure command lines. 4670 # This happens at least with the AIX C compiler. 4671 : > sub/conftest.c 4672 for i in 1 2 3 4 5 6; do 4673 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4674 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4675 # Solaris 8's {/usr,}/bin/sh. 4676 touch sub/conftst$i.h 4677 done 4678 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4679 4680 case $depmode in 4681 nosideeffect) 4682 # after this tag, mechanisms are not by side-effect, so they'll 4683 # only be used when explicitly requested 4684 if test "x$enable_dependency_tracking" = xyes; then 4685 continue 4686 else 4687 break 4688 fi 4689 ;; 4690 none) break ;; 4691 esac 4692 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4693 # mode. It turns out that the SunPro C++ compiler does not properly 4694 # handle `-M -o', and we need to detect this. 4695 if depmode=$depmode \ 4696 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 4697 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4698 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 4699 >/dev/null 2>conftest.err && 4700 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4701 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4702 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 4703 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4704 # icc doesn't choke on unknown options, it will just issue warnings 4705 # or remarks (even with -Werror). So we grep stderr for any message 4706 # that says an option was ignored or not supported. 4707 # When given -MP, icc 7.0 and 7.1 complain thusly: 4708 # icc: Command line warning: ignoring option '-M'; no argument required 4709 # The diagnosis changed in icc 8.0: 4710 # icc: Command line remark: option '-MP' not supported 4711 if (grep 'ignoring option' conftest.err || 4712 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4713 am_cv_CC_dependencies_compiler_type=$depmode 4714 break 4715 fi 4716 fi 4717 done 4718 4719 cd .. 4720 rm -rf conftest.dir 4721else 4722 am_cv_CC_dependencies_compiler_type=none 4723fi 4724 4725fi 4726{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 4727echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 4728CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4729 4730 if 4731 test "x$enable_dependency_tracking" != xno \ 4732 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4733 am__fastdepCC_TRUE= 4734 am__fastdepCC_FALSE='#' 4735else 4736 am__fastdepCC_TRUE='#' 4737 am__fastdepCC_FALSE= 4738fi 4739 4740 4741ac_ext=c 4742ac_cpp='$CPP $CPPFLAGS' 4743ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4744ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4745ac_compiler_gnu=$ac_cv_c_compiler_gnu 4746if test -n "$ac_tool_prefix"; then 4747 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4748set dummy ${ac_tool_prefix}gcc; ac_word=$2 4749{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4751if test "${ac_cv_prog_CC+set}" = set; then 4752 echo $ECHO_N "(cached) $ECHO_C" >&6 4753else 4754 if test -n "$CC"; then 4755 ac_cv_prog_CC="$CC" # Let the user override the test. 4756else 4757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4758for as_dir in $PATH 4759do 4760 IFS=$as_save_IFS 4761 test -z "$as_dir" && as_dir=. 4762 for ac_exec_ext in '' $ac_executable_extensions; do 4763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4764 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4766 break 2 4767 fi 4768done 4769done 4770IFS=$as_save_IFS 4771 4772fi 4773fi 4774CC=$ac_cv_prog_CC 4775if test -n "$CC"; then 4776 { echo "$as_me:$LINENO: result: $CC" >&5 4777echo "${ECHO_T}$CC" >&6; } 4778else 4779 { echo "$as_me:$LINENO: result: no" >&5 4780echo "${ECHO_T}no" >&6; } 4781fi 4782 4783 4784fi 4785if test -z "$ac_cv_prog_CC"; then 4786 ac_ct_CC=$CC 4787 # Extract the first word of "gcc", so it can be a program name with args. 4788set dummy gcc; ac_word=$2 4789{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4790echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4791if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 4792 echo $ECHO_N "(cached) $ECHO_C" >&6 4793else 4794 if test -n "$ac_ct_CC"; then 4795 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4796else 4797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4798for as_dir in $PATH 4799do 4800 IFS=$as_save_IFS 4801 test -z "$as_dir" && as_dir=. 4802 for ac_exec_ext in '' $ac_executable_extensions; do 4803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4804 ac_cv_prog_ac_ct_CC="gcc" 4805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4806 break 2 4807 fi 4808done 4809done 4810IFS=$as_save_IFS 4811 4812fi 4813fi 4814ac_ct_CC=$ac_cv_prog_ac_ct_CC 4815if test -n "$ac_ct_CC"; then 4816 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 4817echo "${ECHO_T}$ac_ct_CC" >&6; } 4818else 4819 { echo "$as_me:$LINENO: result: no" >&5 4820echo "${ECHO_T}no" >&6; } 4821fi 4822 4823 if test "x$ac_ct_CC" = x; then 4824 CC="" 4825 else 4826 case $cross_compiling:$ac_tool_warned in 4827yes:) 4828{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4829whose name does not start with the host triplet. If you think this 4830configuration is useful to you, please write to autoconf@gnu.org." >&5 4831echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4832whose name does not start with the host triplet. If you think this 4833configuration is useful to you, please write to autoconf@gnu.org." >&2;} 4834ac_tool_warned=yes ;; 4835esac 4836 CC=$ac_ct_CC 4837 fi 4838else 4839 CC="$ac_cv_prog_CC" 4840fi 4841 4842if test -z "$CC"; then 4843 if test -n "$ac_tool_prefix"; then 4844 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4845set dummy ${ac_tool_prefix}cc; ac_word=$2 4846{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4847echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4848if test "${ac_cv_prog_CC+set}" = set; then 4849 echo $ECHO_N "(cached) $ECHO_C" >&6 4850else 4851 if test -n "$CC"; then 4852 ac_cv_prog_CC="$CC" # Let the user override the test. 4853else 4854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4855for as_dir in $PATH 4856do 4857 IFS=$as_save_IFS 4858 test -z "$as_dir" && as_dir=. 4859 for ac_exec_ext in '' $ac_executable_extensions; do 4860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4861 ac_cv_prog_CC="${ac_tool_prefix}cc" 4862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4863 break 2 4864 fi 4865done 4866done 4867IFS=$as_save_IFS 4868 4869fi 4870fi 4871CC=$ac_cv_prog_CC 4872if test -n "$CC"; then 4873 { echo "$as_me:$LINENO: result: $CC" >&5 4874echo "${ECHO_T}$CC" >&6; } 4875else 4876 { echo "$as_me:$LINENO: result: no" >&5 4877echo "${ECHO_T}no" >&6; } 4878fi 4879 4880 4881 fi 4882fi 4883if test -z "$CC"; then 4884 # Extract the first word of "cc", so it can be a program name with args. 4885set dummy cc; ac_word=$2 4886{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4887echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4888if test "${ac_cv_prog_CC+set}" = set; then 4889 echo $ECHO_N "(cached) $ECHO_C" >&6 4890else 4891 if test -n "$CC"; then 4892 ac_cv_prog_CC="$CC" # Let the user override the test. 4893else 4894 ac_prog_rejected=no 4895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4896for as_dir in $PATH 4897do 4898 IFS=$as_save_IFS 4899 test -z "$as_dir" && as_dir=. 4900 for ac_exec_ext in '' $ac_executable_extensions; do 4901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4902 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4903 ac_prog_rejected=yes 4904 continue 4905 fi 4906 ac_cv_prog_CC="cc" 4907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4908 break 2 4909 fi 4910done 4911done 4912IFS=$as_save_IFS 4913 4914if test $ac_prog_rejected = yes; then 4915 # We found a bogon in the path, so make sure we never use it. 4916 set dummy $ac_cv_prog_CC 4917 shift 4918 if test $# != 0; then 4919 # We chose a different compiler from the bogus one. 4920 # However, it has the same basename, so the bogon will be chosen 4921 # first if we set CC to just the basename; use the full file name. 4922 shift 4923 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4924 fi 4925fi 4926fi 4927fi 4928CC=$ac_cv_prog_CC 4929if test -n "$CC"; then 4930 { echo "$as_me:$LINENO: result: $CC" >&5 4931echo "${ECHO_T}$CC" >&6; } 4932else 4933 { echo "$as_me:$LINENO: result: no" >&5 4934echo "${ECHO_T}no" >&6; } 4935fi 4936 4937 4938fi 4939if test -z "$CC"; then 4940 if test -n "$ac_tool_prefix"; then 4941 for ac_prog in cl.exe 4942 do 4943 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4944set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4945{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4947if test "${ac_cv_prog_CC+set}" = set; then 4948 echo $ECHO_N "(cached) $ECHO_C" >&6 4949else 4950 if test -n "$CC"; then 4951 ac_cv_prog_CC="$CC" # Let the user override the test. 4952else 4953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4954for as_dir in $PATH 4955do 4956 IFS=$as_save_IFS 4957 test -z "$as_dir" && as_dir=. 4958 for ac_exec_ext in '' $ac_executable_extensions; do 4959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4960 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4962 break 2 4963 fi 4964done 4965done 4966IFS=$as_save_IFS 4967 4968fi 4969fi 4970CC=$ac_cv_prog_CC 4971if test -n "$CC"; then 4972 { echo "$as_me:$LINENO: result: $CC" >&5 4973echo "${ECHO_T}$CC" >&6; } 4974else 4975 { echo "$as_me:$LINENO: result: no" >&5 4976echo "${ECHO_T}no" >&6; } 4977fi 4978 4979 4980 test -n "$CC" && break 4981 done 4982fi 4983if test -z "$CC"; then 4984 ac_ct_CC=$CC 4985 for ac_prog in cl.exe 4986do 4987 # Extract the first word of "$ac_prog", so it can be a program name with args. 4988set dummy $ac_prog; ac_word=$2 4989{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4990echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4991if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 4992 echo $ECHO_N "(cached) $ECHO_C" >&6 4993else 4994 if test -n "$ac_ct_CC"; then 4995 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4996else 4997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4998for as_dir in $PATH 4999do 5000 IFS=$as_save_IFS 5001 test -z "$as_dir" && as_dir=. 5002 for ac_exec_ext in '' $ac_executable_extensions; do 5003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5004 ac_cv_prog_ac_ct_CC="$ac_prog" 5005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5006 break 2 5007 fi 5008done 5009done 5010IFS=$as_save_IFS 5011 5012fi 5013fi 5014ac_ct_CC=$ac_cv_prog_ac_ct_CC 5015if test -n "$ac_ct_CC"; then 5016 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 5017echo "${ECHO_T}$ac_ct_CC" >&6; } 5018else 5019 { echo "$as_me:$LINENO: result: no" >&5 5020echo "${ECHO_T}no" >&6; } 5021fi 5022 5023 5024 test -n "$ac_ct_CC" && break 5025done 5026 5027 if test "x$ac_ct_CC" = x; then 5028 CC="" 5029 else 5030 case $cross_compiling:$ac_tool_warned in 5031yes:) 5032{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5033whose name does not start with the host triplet. If you think this 5034configuration is useful to you, please write to autoconf@gnu.org." >&5 5035echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5036whose name does not start with the host triplet. If you think this 5037configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5038ac_tool_warned=yes ;; 5039esac 5040 CC=$ac_ct_CC 5041 fi 5042fi 5043 5044fi 5045 5046 5047test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 5048See \`config.log' for more details." >&5 5049echo "$as_me: error: no acceptable C compiler found in \$PATH 5050See \`config.log' for more details." >&2;} 5051 { (exit 1); exit 1; }; } 5052 5053# Provide some information about the compiler. 5054echo "$as_me:$LINENO: checking for C compiler version" >&5 5055ac_compiler=`set X $ac_compile; echo $2` 5056{ (ac_try="$ac_compiler --version >&5" 5057case "(($ac_try" in 5058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5059 *) ac_try_echo=$ac_try;; 5060esac 5061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5062 (eval "$ac_compiler --version >&5") 2>&5 5063 ac_status=$? 5064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5065 (exit $ac_status); } 5066{ (ac_try="$ac_compiler -v >&5" 5067case "(($ac_try" in 5068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5069 *) ac_try_echo=$ac_try;; 5070esac 5071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5072 (eval "$ac_compiler -v >&5") 2>&5 5073 ac_status=$? 5074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5075 (exit $ac_status); } 5076{ (ac_try="$ac_compiler -V >&5" 5077case "(($ac_try" in 5078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5079 *) ac_try_echo=$ac_try;; 5080esac 5081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5082 (eval "$ac_compiler -V >&5") 2>&5 5083 ac_status=$? 5084 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5085 (exit $ac_status); } 5086 5087{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 5088echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 5089if test "${ac_cv_c_compiler_gnu+set}" = set; then 5090 echo $ECHO_N "(cached) $ECHO_C" >&6 5091else 5092 cat >conftest.$ac_ext <<_ACEOF 5093/* confdefs.h. */ 5094_ACEOF 5095cat confdefs.h >>conftest.$ac_ext 5096cat >>conftest.$ac_ext <<_ACEOF 5097/* end confdefs.h. */ 5098 5099int 5100main () 5101{ 5102#ifndef __GNUC__ 5103 choke me 5104#endif 5105 5106 ; 5107 return 0; 5108} 5109_ACEOF 5110rm -f conftest.$ac_objext 5111if { (ac_try="$ac_compile" 5112case "(($ac_try" in 5113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5114 *) ac_try_echo=$ac_try;; 5115esac 5116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5117 (eval "$ac_compile") 2>conftest.er1 5118 ac_status=$? 5119 grep -v '^ *+' conftest.er1 >conftest.err 5120 rm -f conftest.er1 5121 cat conftest.err >&5 5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5123 (exit $ac_status); } && { 5124 test -z "$ac_c_werror_flag" || 5125 test ! -s conftest.err 5126 } && test -s conftest.$ac_objext; then 5127 ac_compiler_gnu=yes 5128else 5129 echo "$as_me: failed program was:" >&5 5130sed 's/^/| /' conftest.$ac_ext >&5 5131 5132 ac_compiler_gnu=no 5133fi 5134 5135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5136ac_cv_c_compiler_gnu=$ac_compiler_gnu 5137 5138fi 5139{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 5140echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 5141GCC=`test $ac_compiler_gnu = yes && echo yes` 5142ac_test_CFLAGS=${CFLAGS+set} 5143ac_save_CFLAGS=$CFLAGS 5144{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 5145echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 5146if test "${ac_cv_prog_cc_g+set}" = set; then 5147 echo $ECHO_N "(cached) $ECHO_C" >&6 5148else 5149 ac_save_c_werror_flag=$ac_c_werror_flag 5150 ac_c_werror_flag=yes 5151 ac_cv_prog_cc_g=no 5152 CFLAGS="-g" 5153 cat >conftest.$ac_ext <<_ACEOF 5154/* confdefs.h. */ 5155_ACEOF 5156cat confdefs.h >>conftest.$ac_ext 5157cat >>conftest.$ac_ext <<_ACEOF 5158/* end confdefs.h. */ 5159 5160int 5161main () 5162{ 5163 5164 ; 5165 return 0; 5166} 5167_ACEOF 5168rm -f conftest.$ac_objext 5169if { (ac_try="$ac_compile" 5170case "(($ac_try" in 5171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5172 *) ac_try_echo=$ac_try;; 5173esac 5174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5175 (eval "$ac_compile") 2>conftest.er1 5176 ac_status=$? 5177 grep -v '^ *+' conftest.er1 >conftest.err 5178 rm -f conftest.er1 5179 cat conftest.err >&5 5180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5181 (exit $ac_status); } && { 5182 test -z "$ac_c_werror_flag" || 5183 test ! -s conftest.err 5184 } && test -s conftest.$ac_objext; then 5185 ac_cv_prog_cc_g=yes 5186else 5187 echo "$as_me: failed program was:" >&5 5188sed 's/^/| /' conftest.$ac_ext >&5 5189 5190 CFLAGS="" 5191 cat >conftest.$ac_ext <<_ACEOF 5192/* confdefs.h. */ 5193_ACEOF 5194cat confdefs.h >>conftest.$ac_ext 5195cat >>conftest.$ac_ext <<_ACEOF 5196/* end confdefs.h. */ 5197 5198int 5199main () 5200{ 5201 5202 ; 5203 return 0; 5204} 5205_ACEOF 5206rm -f conftest.$ac_objext 5207if { (ac_try="$ac_compile" 5208case "(($ac_try" in 5209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5210 *) ac_try_echo=$ac_try;; 5211esac 5212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5213 (eval "$ac_compile") 2>conftest.er1 5214 ac_status=$? 5215 grep -v '^ *+' conftest.er1 >conftest.err 5216 rm -f conftest.er1 5217 cat conftest.err >&5 5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5219 (exit $ac_status); } && { 5220 test -z "$ac_c_werror_flag" || 5221 test ! -s conftest.err 5222 } && test -s conftest.$ac_objext; then 5223 : 5224else 5225 echo "$as_me: failed program was:" >&5 5226sed 's/^/| /' conftest.$ac_ext >&5 5227 5228 ac_c_werror_flag=$ac_save_c_werror_flag 5229 CFLAGS="-g" 5230 cat >conftest.$ac_ext <<_ACEOF 5231/* confdefs.h. */ 5232_ACEOF 5233cat confdefs.h >>conftest.$ac_ext 5234cat >>conftest.$ac_ext <<_ACEOF 5235/* end confdefs.h. */ 5236 5237int 5238main () 5239{ 5240 5241 ; 5242 return 0; 5243} 5244_ACEOF 5245rm -f conftest.$ac_objext 5246if { (ac_try="$ac_compile" 5247case "(($ac_try" in 5248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5249 *) ac_try_echo=$ac_try;; 5250esac 5251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5252 (eval "$ac_compile") 2>conftest.er1 5253 ac_status=$? 5254 grep -v '^ *+' conftest.er1 >conftest.err 5255 rm -f conftest.er1 5256 cat conftest.err >&5 5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5258 (exit $ac_status); } && { 5259 test -z "$ac_c_werror_flag" || 5260 test ! -s conftest.err 5261 } && test -s conftest.$ac_objext; then 5262 ac_cv_prog_cc_g=yes 5263else 5264 echo "$as_me: failed program was:" >&5 5265sed 's/^/| /' conftest.$ac_ext >&5 5266 5267 5268fi 5269 5270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5271fi 5272 5273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5274fi 5275 5276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5277 ac_c_werror_flag=$ac_save_c_werror_flag 5278fi 5279{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 5280echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 5281if test "$ac_test_CFLAGS" = set; then 5282 CFLAGS=$ac_save_CFLAGS 5283elif test $ac_cv_prog_cc_g = yes; then 5284 if test "$GCC" = yes; then 5285 CFLAGS="-g -O2" 5286 else 5287 CFLAGS="-g" 5288 fi 5289else 5290 if test "$GCC" = yes; then 5291 CFLAGS="-O2" 5292 else 5293 CFLAGS= 5294 fi 5295fi 5296{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 5297echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 5298if test "${ac_cv_prog_cc_c89+set}" = set; then 5299 echo $ECHO_N "(cached) $ECHO_C" >&6 5300else 5301 ac_cv_prog_cc_c89=no 5302ac_save_CC=$CC 5303cat >conftest.$ac_ext <<_ACEOF 5304/* confdefs.h. */ 5305_ACEOF 5306cat confdefs.h >>conftest.$ac_ext 5307cat >>conftest.$ac_ext <<_ACEOF 5308/* end confdefs.h. */ 5309#include <stdarg.h> 5310#include <stdio.h> 5311#include <sys/types.h> 5312#include <sys/stat.h> 5313/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5314struct buf { int x; }; 5315FILE * (*rcsopen) (struct buf *, struct stat *, int); 5316static char *e (p, i) 5317 char **p; 5318 int i; 5319{ 5320 return p[i]; 5321} 5322static char *f (char * (*g) (char **, int), char **p, ...) 5323{ 5324 char *s; 5325 va_list v; 5326 va_start (v,p); 5327 s = g (p, va_arg (v,int)); 5328 va_end (v); 5329 return s; 5330} 5331 5332/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5333 function prototypes and stuff, but not '\xHH' hex character constants. 5334 These don't provoke an error unfortunately, instead are silently treated 5335 as 'x'. The following induces an error, until -std is added to get 5336 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5337 array size at least. It's necessary to write '\x00'==0 to get something 5338 that's true only with -std. */ 5339int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5340 5341/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5342 inside strings and character constants. */ 5343#define FOO(x) 'x' 5344int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5345 5346int test (int i, double x); 5347struct s1 {int (*f) (int a);}; 5348struct s2 {int (*f) (double a);}; 5349int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5350int argc; 5351char **argv; 5352int 5353main () 5354{ 5355return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5356 ; 5357 return 0; 5358} 5359_ACEOF 5360for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5361 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5362do 5363 CC="$ac_save_CC $ac_arg" 5364 rm -f conftest.$ac_objext 5365if { (ac_try="$ac_compile" 5366case "(($ac_try" in 5367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5368 *) ac_try_echo=$ac_try;; 5369esac 5370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5371 (eval "$ac_compile") 2>conftest.er1 5372 ac_status=$? 5373 grep -v '^ *+' conftest.er1 >conftest.err 5374 rm -f conftest.er1 5375 cat conftest.err >&5 5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5377 (exit $ac_status); } && { 5378 test -z "$ac_c_werror_flag" || 5379 test ! -s conftest.err 5380 } && test -s conftest.$ac_objext; then 5381 ac_cv_prog_cc_c89=$ac_arg 5382else 5383 echo "$as_me: failed program was:" >&5 5384sed 's/^/| /' conftest.$ac_ext >&5 5385 5386 5387fi 5388 5389rm -f core conftest.err conftest.$ac_objext 5390 test "x$ac_cv_prog_cc_c89" != "xno" && break 5391done 5392rm -f conftest.$ac_ext 5393CC=$ac_save_CC 5394 5395fi 5396# AC_CACHE_VAL 5397case "x$ac_cv_prog_cc_c89" in 5398 x) 5399 { echo "$as_me:$LINENO: result: none needed" >&5 5400echo "${ECHO_T}none needed" >&6; } ;; 5401 xno) 5402 { echo "$as_me:$LINENO: result: unsupported" >&5 5403echo "${ECHO_T}unsupported" >&6; } ;; 5404 *) 5405 CC="$CC $ac_cv_prog_cc_c89" 5406 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 5407echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 5408esac 5409 5410 5411ac_ext=c 5412ac_cpp='$CPP $CPPFLAGS' 5413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5415ac_compiler_gnu=$ac_cv_c_compiler_gnu 5416 5417depcc="$CC" am_compiler_list= 5418 5419{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5420echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 5421if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 5422 echo $ECHO_N "(cached) $ECHO_C" >&6 5423else 5424 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5425 # We make a subdir and do the tests there. Otherwise we can end up 5426 # making bogus files that we don't know about and never remove. For 5427 # instance it was reported that on HP-UX the gcc test will end up 5428 # making a dummy file named `D' -- because `-MD' means `put the output 5429 # in D'. 5430 mkdir conftest.dir 5431 # Copy depcomp to subdir because otherwise we won't find it if we're 5432 # using a relative directory. 5433 cp "$am_depcomp" conftest.dir 5434 cd conftest.dir 5435 # We will build objects and dependencies in a subdirectory because 5436 # it helps to detect inapplicable dependency modes. For instance 5437 # both Tru64's cc and ICC support -MD to output dependencies as a 5438 # side effect of compilation, but ICC will put the dependencies in 5439 # the current directory while Tru64 will put them in the object 5440 # directory. 5441 mkdir sub 5442 5443 am_cv_CC_dependencies_compiler_type=none 5444 if test "$am_compiler_list" = ""; then 5445 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5446 fi 5447 for depmode in $am_compiler_list; do 5448 # Setup a source with many dependencies, because some compilers 5449 # like to wrap large dependency lists on column 80 (with \), and 5450 # we should not choose a depcomp mode which is confused by this. 5451 # 5452 # We need to recreate these files for each test, as the compiler may 5453 # overwrite some of them when testing with obscure command lines. 5454 # This happens at least with the AIX C compiler. 5455 : > sub/conftest.c 5456 for i in 1 2 3 4 5 6; do 5457 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5458 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5459 # Solaris 8's {/usr,}/bin/sh. 5460 touch sub/conftst$i.h 5461 done 5462 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5463 5464 case $depmode in 5465 nosideeffect) 5466 # after this tag, mechanisms are not by side-effect, so they'll 5467 # only be used when explicitly requested 5468 if test "x$enable_dependency_tracking" = xyes; then 5469 continue 5470 else 5471 break 5472 fi 5473 ;; 5474 none) break ;; 5475 esac 5476 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5477 # mode. It turns out that the SunPro C++ compiler does not properly 5478 # handle `-M -o', and we need to detect this. 5479 if depmode=$depmode \ 5480 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5481 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5482 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5483 >/dev/null 2>conftest.err && 5484 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5485 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5486 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5487 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5488 # icc doesn't choke on unknown options, it will just issue warnings 5489 # or remarks (even with -Werror). So we grep stderr for any message 5490 # that says an option was ignored or not supported. 5491 # When given -MP, icc 7.0 and 7.1 complain thusly: 5492 # icc: Command line warning: ignoring option '-M'; no argument required 5493 # The diagnosis changed in icc 8.0: 5494 # icc: Command line remark: option '-MP' not supported 5495 if (grep 'ignoring option' conftest.err || 5496 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5497 am_cv_CC_dependencies_compiler_type=$depmode 5498 break 5499 fi 5500 fi 5501 done 5502 5503 cd .. 5504 rm -rf conftest.dir 5505else 5506 am_cv_CC_dependencies_compiler_type=none 5507fi 5508 5509fi 5510{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 5511echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 5512CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5513 5514 if 5515 test "x$enable_dependency_tracking" != xno \ 5516 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5517 am__fastdepCC_TRUE= 5518 am__fastdepCC_FALSE='#' 5519else 5520 am__fastdepCC_TRUE='#' 5521 am__fastdepCC_FALSE= 5522fi 5523 5524 5525 5526am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc 5527 5528ac_ext=c 5529ac_cpp='$CPP $CPPFLAGS' 5530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5532ac_compiler_gnu=$ac_cv_c_compiler_gnu 5533{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 5534echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 5535# On Suns, sometimes $CPP names a directory. 5536if test -n "$CPP" && test -d "$CPP"; then 5537 CPP= 5538fi 5539if test -z "$CPP"; then 5540 if test "${ac_cv_prog_CPP+set}" = set; then 5541 echo $ECHO_N "(cached) $ECHO_C" >&6 5542else 5543 # Double quotes because CPP needs to be expanded 5544 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5545 do 5546 ac_preproc_ok=false 5547for ac_c_preproc_warn_flag in '' yes 5548do 5549 # Use a header file that comes with gcc, so configuring glibc 5550 # with a fresh cross-compiler works. 5551 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5552 # <limits.h> exists even on freestanding compilers. 5553 # On the NeXT, cc -E runs the code through the compiler's parser, 5554 # not just through cpp. "Syntax error" is here to catch this case. 5555 cat >conftest.$ac_ext <<_ACEOF 5556/* confdefs.h. */ 5557_ACEOF 5558cat confdefs.h >>conftest.$ac_ext 5559cat >>conftest.$ac_ext <<_ACEOF 5560/* end confdefs.h. */ 5561#ifdef __STDC__ 5562# include <limits.h> 5563#else 5564# include <assert.h> 5565#endif 5566 Syntax error 5567_ACEOF 5568if { (ac_try="$ac_cpp conftest.$ac_ext" 5569case "(($ac_try" in 5570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5571 *) ac_try_echo=$ac_try;; 5572esac 5573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5575 ac_status=$? 5576 grep -v '^ *+' conftest.er1 >conftest.err 5577 rm -f conftest.er1 5578 cat conftest.err >&5 5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5580 (exit $ac_status); } >/dev/null && { 5581 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5582 test ! -s conftest.err 5583 }; then 5584 : 5585else 5586 echo "$as_me: failed program was:" >&5 5587sed 's/^/| /' conftest.$ac_ext >&5 5588 5589 # Broken: fails on valid input. 5590continue 5591fi 5592 5593rm -f conftest.err conftest.$ac_ext 5594 5595 # OK, works on sane cases. Now check whether nonexistent headers 5596 # can be detected and how. 5597 cat >conftest.$ac_ext <<_ACEOF 5598/* confdefs.h. */ 5599_ACEOF 5600cat confdefs.h >>conftest.$ac_ext 5601cat >>conftest.$ac_ext <<_ACEOF 5602/* end confdefs.h. */ 5603#include <ac_nonexistent.h> 5604_ACEOF 5605if { (ac_try="$ac_cpp conftest.$ac_ext" 5606case "(($ac_try" in 5607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5608 *) ac_try_echo=$ac_try;; 5609esac 5610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5611 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5612 ac_status=$? 5613 grep -v '^ *+' conftest.er1 >conftest.err 5614 rm -f conftest.er1 5615 cat conftest.err >&5 5616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5617 (exit $ac_status); } >/dev/null && { 5618 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5619 test ! -s conftest.err 5620 }; then 5621 # Broken: success on invalid input. 5622continue 5623else 5624 echo "$as_me: failed program was:" >&5 5625sed 's/^/| /' conftest.$ac_ext >&5 5626 5627 # Passes both tests. 5628ac_preproc_ok=: 5629break 5630fi 5631 5632rm -f conftest.err conftest.$ac_ext 5633 5634done 5635# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5636rm -f conftest.err conftest.$ac_ext 5637if $ac_preproc_ok; then 5638 break 5639fi 5640 5641 done 5642 ac_cv_prog_CPP=$CPP 5643 5644fi 5645 CPP=$ac_cv_prog_CPP 5646else 5647 ac_cv_prog_CPP=$CPP 5648fi 5649{ echo "$as_me:$LINENO: result: $CPP" >&5 5650echo "${ECHO_T}$CPP" >&6; } 5651ac_preproc_ok=false 5652for ac_c_preproc_warn_flag in '' yes 5653do 5654 # Use a header file that comes with gcc, so configuring glibc 5655 # with a fresh cross-compiler works. 5656 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5657 # <limits.h> exists even on freestanding compilers. 5658 # On the NeXT, cc -E runs the code through the compiler's parser, 5659 # not just through cpp. "Syntax error" is here to catch this case. 5660 cat >conftest.$ac_ext <<_ACEOF 5661/* confdefs.h. */ 5662_ACEOF 5663cat confdefs.h >>conftest.$ac_ext 5664cat >>conftest.$ac_ext <<_ACEOF 5665/* end confdefs.h. */ 5666#ifdef __STDC__ 5667# include <limits.h> 5668#else 5669# include <assert.h> 5670#endif 5671 Syntax error 5672_ACEOF 5673if { (ac_try="$ac_cpp conftest.$ac_ext" 5674case "(($ac_try" in 5675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5676 *) ac_try_echo=$ac_try;; 5677esac 5678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5679 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5680 ac_status=$? 5681 grep -v '^ *+' conftest.er1 >conftest.err 5682 rm -f conftest.er1 5683 cat conftest.err >&5 5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5685 (exit $ac_status); } >/dev/null && { 5686 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5687 test ! -s conftest.err 5688 }; then 5689 : 5690else 5691 echo "$as_me: failed program was:" >&5 5692sed 's/^/| /' conftest.$ac_ext >&5 5693 5694 # Broken: fails on valid input. 5695continue 5696fi 5697 5698rm -f conftest.err conftest.$ac_ext 5699 5700 # OK, works on sane cases. Now check whether nonexistent headers 5701 # can be detected and how. 5702 cat >conftest.$ac_ext <<_ACEOF 5703/* confdefs.h. */ 5704_ACEOF 5705cat confdefs.h >>conftest.$ac_ext 5706cat >>conftest.$ac_ext <<_ACEOF 5707/* end confdefs.h. */ 5708#include <ac_nonexistent.h> 5709_ACEOF 5710if { (ac_try="$ac_cpp conftest.$ac_ext" 5711case "(($ac_try" in 5712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5713 *) ac_try_echo=$ac_try;; 5714esac 5715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5716 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5717 ac_status=$? 5718 grep -v '^ *+' conftest.er1 >conftest.err 5719 rm -f conftest.er1 5720 cat conftest.err >&5 5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5722 (exit $ac_status); } >/dev/null && { 5723 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5724 test ! -s conftest.err 5725 }; then 5726 # Broken: success on invalid input. 5727continue 5728else 5729 echo "$as_me: failed program was:" >&5 5730sed 's/^/| /' conftest.$ac_ext >&5 5731 5732 # Passes both tests. 5733ac_preproc_ok=: 5734break 5735fi 5736 5737rm -f conftest.err conftest.$ac_ext 5738 5739done 5740# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5741rm -f conftest.err conftest.$ac_ext 5742if $ac_preproc_ok; then 5743 : 5744else 5745 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 5746See \`config.log' for more details." >&5 5747echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 5748See \`config.log' for more details." >&2;} 5749 { (exit 1); exit 1; }; } 5750fi 5751 5752ac_ext=c 5753ac_cpp='$CPP $CPPFLAGS' 5754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5756ac_compiler_gnu=$ac_cv_c_compiler_gnu 5757 5758 5759{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 5760echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 5761if test "${ac_cv_path_GREP+set}" = set; then 5762 echo $ECHO_N "(cached) $ECHO_C" >&6 5763else 5764 # Extract the first word of "grep ggrep" to use in msg output 5765if test -z "$GREP"; then 5766set dummy grep ggrep; ac_prog_name=$2 5767if test "${ac_cv_path_GREP+set}" = set; then 5768 echo $ECHO_N "(cached) $ECHO_C" >&6 5769else 5770 ac_path_GREP_found=false 5771# Loop through the user's path and test for each of PROGNAME-LIST 5772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5773for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5774do 5775 IFS=$as_save_IFS 5776 test -z "$as_dir" && as_dir=. 5777 for ac_prog in grep ggrep; do 5778 for ac_exec_ext in '' $ac_executable_extensions; do 5779 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5780 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 5781 # Check for GNU ac_path_GREP and select it if it is found. 5782 # Check for GNU $ac_path_GREP 5783case `"$ac_path_GREP" --version 2>&1` in 5784*GNU*) 5785 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5786*) 5787 ac_count=0 5788 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 5789 while : 5790 do 5791 cat "conftest.in" "conftest.in" >"conftest.tmp" 5792 mv "conftest.tmp" "conftest.in" 5793 cp "conftest.in" "conftest.nl" 5794 echo 'GREP' >> "conftest.nl" 5795 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5796 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5797 ac_count=`expr $ac_count + 1` 5798 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5799 # Best one so far, save it but keep looking for a better one 5800 ac_cv_path_GREP="$ac_path_GREP" 5801 ac_path_GREP_max=$ac_count 5802 fi 5803 # 10*(2^10) chars as input seems more than enough 5804 test $ac_count -gt 10 && break 5805 done 5806 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5807esac 5808 5809 5810 $ac_path_GREP_found && break 3 5811 done 5812done 5813 5814done 5815IFS=$as_save_IFS 5816 5817 5818fi 5819 5820GREP="$ac_cv_path_GREP" 5821if test -z "$GREP"; then 5822 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 5823echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 5824 { (exit 1); exit 1; }; } 5825fi 5826 5827else 5828 ac_cv_path_GREP=$GREP 5829fi 5830 5831 5832fi 5833{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 5834echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 5835 GREP="$ac_cv_path_GREP" 5836 5837 5838{ echo "$as_me:$LINENO: checking for egrep" >&5 5839echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 5840if test "${ac_cv_path_EGREP+set}" = set; then 5841 echo $ECHO_N "(cached) $ECHO_C" >&6 5842else 5843 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5844 then ac_cv_path_EGREP="$GREP -E" 5845 else 5846 # Extract the first word of "egrep" to use in msg output 5847if test -z "$EGREP"; then 5848set dummy egrep; ac_prog_name=$2 5849if test "${ac_cv_path_EGREP+set}" = set; then 5850 echo $ECHO_N "(cached) $ECHO_C" >&6 5851else 5852 ac_path_EGREP_found=false 5853# Loop through the user's path and test for each of PROGNAME-LIST 5854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5855for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5856do 5857 IFS=$as_save_IFS 5858 test -z "$as_dir" && as_dir=. 5859 for ac_prog in egrep; do 5860 for ac_exec_ext in '' $ac_executable_extensions; do 5861 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5862 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 5863 # Check for GNU ac_path_EGREP and select it if it is found. 5864 # Check for GNU $ac_path_EGREP 5865case `"$ac_path_EGREP" --version 2>&1` in 5866*GNU*) 5867 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5868*) 5869 ac_count=0 5870 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 5871 while : 5872 do 5873 cat "conftest.in" "conftest.in" >"conftest.tmp" 5874 mv "conftest.tmp" "conftest.in" 5875 cp "conftest.in" "conftest.nl" 5876 echo 'EGREP' >> "conftest.nl" 5877 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5878 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5879 ac_count=`expr $ac_count + 1` 5880 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5881 # Best one so far, save it but keep looking for a better one 5882 ac_cv_path_EGREP="$ac_path_EGREP" 5883 ac_path_EGREP_max=$ac_count 5884 fi 5885 # 10*(2^10) chars as input seems more than enough 5886 test $ac_count -gt 10 && break 5887 done 5888 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5889esac 5890 5891 5892 $ac_path_EGREP_found && break 3 5893 done 5894done 5895 5896done 5897IFS=$as_save_IFS 5898 5899 5900fi 5901 5902EGREP="$ac_cv_path_EGREP" 5903if test -z "$EGREP"; then 5904 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 5905echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 5906 { (exit 1); exit 1; }; } 5907fi 5908 5909else 5910 ac_cv_path_EGREP=$EGREP 5911fi 5912 5913 5914 fi 5915fi 5916{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 5917echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 5918 EGREP="$ac_cv_path_EGREP" 5919 5920 5921{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 5922echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 5923if test "${ac_cv_header_stdc+set}" = set; then 5924 echo $ECHO_N "(cached) $ECHO_C" >&6 5925else 5926 cat >conftest.$ac_ext <<_ACEOF 5927/* confdefs.h. */ 5928_ACEOF 5929cat confdefs.h >>conftest.$ac_ext 5930cat >>conftest.$ac_ext <<_ACEOF 5931/* end confdefs.h. */ 5932#include <stdlib.h> 5933#include <stdarg.h> 5934#include <string.h> 5935#include <float.h> 5936 5937int 5938main () 5939{ 5940 5941 ; 5942 return 0; 5943} 5944_ACEOF 5945rm -f conftest.$ac_objext 5946if { (ac_try="$ac_compile" 5947case "(($ac_try" in 5948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5949 *) ac_try_echo=$ac_try;; 5950esac 5951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5952 (eval "$ac_compile") 2>conftest.er1 5953 ac_status=$? 5954 grep -v '^ *+' conftest.er1 >conftest.err 5955 rm -f conftest.er1 5956 cat conftest.err >&5 5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5958 (exit $ac_status); } && { 5959 test -z "$ac_c_werror_flag" || 5960 test ! -s conftest.err 5961 } && test -s conftest.$ac_objext; then 5962 ac_cv_header_stdc=yes 5963else 5964 echo "$as_me: failed program was:" >&5 5965sed 's/^/| /' conftest.$ac_ext >&5 5966 5967 ac_cv_header_stdc=no 5968fi 5969 5970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5971 5972if test $ac_cv_header_stdc = yes; then 5973 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5974 cat >conftest.$ac_ext <<_ACEOF 5975/* confdefs.h. */ 5976_ACEOF 5977cat confdefs.h >>conftest.$ac_ext 5978cat >>conftest.$ac_ext <<_ACEOF 5979/* end confdefs.h. */ 5980#include <string.h> 5981 5982_ACEOF 5983if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5984 $EGREP "memchr" >/dev/null 2>&1; then 5985 : 5986else 5987 ac_cv_header_stdc=no 5988fi 5989rm -f conftest* 5990 5991fi 5992 5993if test $ac_cv_header_stdc = yes; then 5994 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5995 cat >conftest.$ac_ext <<_ACEOF 5996/* confdefs.h. */ 5997_ACEOF 5998cat confdefs.h >>conftest.$ac_ext 5999cat >>conftest.$ac_ext <<_ACEOF 6000/* end confdefs.h. */ 6001#include <stdlib.h> 6002 6003_ACEOF 6004if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6005 $EGREP "free" >/dev/null 2>&1; then 6006 : 6007else 6008 ac_cv_header_stdc=no 6009fi 6010rm -f conftest* 6011 6012fi 6013 6014if test $ac_cv_header_stdc = yes; then 6015 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6016 if test "$cross_compiling" = yes; then 6017 : 6018else 6019 cat >conftest.$ac_ext <<_ACEOF 6020/* confdefs.h. */ 6021_ACEOF 6022cat confdefs.h >>conftest.$ac_ext 6023cat >>conftest.$ac_ext <<_ACEOF 6024/* end confdefs.h. */ 6025#include <ctype.h> 6026#include <stdlib.h> 6027#if ((' ' & 0x0FF) == 0x020) 6028# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6029# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6030#else 6031# define ISLOWER(c) \ 6032 (('a' <= (c) && (c) <= 'i') \ 6033 || ('j' <= (c) && (c) <= 'r') \ 6034 || ('s' <= (c) && (c) <= 'z')) 6035# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6036#endif 6037 6038#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6039int 6040main () 6041{ 6042 int i; 6043 for (i = 0; i < 256; i++) 6044 if (XOR (islower (i), ISLOWER (i)) 6045 || toupper (i) != TOUPPER (i)) 6046 return 2; 6047 return 0; 6048} 6049_ACEOF 6050rm -f conftest$ac_exeext 6051if { (ac_try="$ac_link" 6052case "(($ac_try" in 6053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6054 *) ac_try_echo=$ac_try;; 6055esac 6056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6057 (eval "$ac_link") 2>&5 6058 ac_status=$? 6059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6060 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6061 { (case "(($ac_try" in 6062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6063 *) ac_try_echo=$ac_try;; 6064esac 6065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6066 (eval "$ac_try") 2>&5 6067 ac_status=$? 6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6069 (exit $ac_status); }; }; then 6070 : 6071else 6072 echo "$as_me: program exited with status $ac_status" >&5 6073echo "$as_me: failed program was:" >&5 6074sed 's/^/| /' conftest.$ac_ext >&5 6075 6076( exit $ac_status ) 6077ac_cv_header_stdc=no 6078fi 6079rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6080fi 6081 6082 6083fi 6084fi 6085{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 6086echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 6087if test $ac_cv_header_stdc = yes; then 6088 6089cat >>confdefs.h <<\_ACEOF 6090#define STDC_HEADERS 1 6091_ACEOF 6092 6093fi 6094 6095{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 6096echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 6097set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 6098if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 6099 echo $ECHO_N "(cached) $ECHO_C" >&6 6100else 6101 cat >conftest.make <<\_ACEOF 6102SHELL = /bin/sh 6103all: 6104 @echo '@@@%%%=$(MAKE)=@@@%%%' 6105_ACEOF 6106# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 6107case `${MAKE-make} -f conftest.make 2>/dev/null` in 6108 *@@@%%%=?*=@@@%%%*) 6109 eval ac_cv_prog_make_${ac_make}_set=yes;; 6110 *) 6111 eval ac_cv_prog_make_${ac_make}_set=no;; 6112esac 6113rm -f conftest.make 6114fi 6115if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 6116 { echo "$as_me:$LINENO: result: yes" >&5 6117echo "${ECHO_T}yes" >&6; } 6118 SET_MAKE= 6119else 6120 { echo "$as_me:$LINENO: result: no" >&5 6121echo "${ECHO_T}no" >&6; } 6122 SET_MAKE="MAKE=${MAKE-make}" 6123fi 6124 6125if test -n "$ac_tool_prefix"; then 6126 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6127set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6128{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6130if test "${ac_cv_prog_RANLIB+set}" = set; then 6131 echo $ECHO_N "(cached) $ECHO_C" >&6 6132else 6133 if test -n "$RANLIB"; then 6134 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6135else 6136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6137for as_dir in $PATH 6138do 6139 IFS=$as_save_IFS 6140 test -z "$as_dir" && as_dir=. 6141 for ac_exec_ext in '' $ac_executable_extensions; do 6142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6143 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6145 break 2 6146 fi 6147done 6148done 6149IFS=$as_save_IFS 6150 6151fi 6152fi 6153RANLIB=$ac_cv_prog_RANLIB 6154if test -n "$RANLIB"; then 6155 { echo "$as_me:$LINENO: result: $RANLIB" >&5 6156echo "${ECHO_T}$RANLIB" >&6; } 6157else 6158 { echo "$as_me:$LINENO: result: no" >&5 6159echo "${ECHO_T}no" >&6; } 6160fi 6161 6162 6163fi 6164if test -z "$ac_cv_prog_RANLIB"; then 6165 ac_ct_RANLIB=$RANLIB 6166 # Extract the first word of "ranlib", so it can be a program name with args. 6167set dummy ranlib; ac_word=$2 6168{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6169echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6170if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6171 echo $ECHO_N "(cached) $ECHO_C" >&6 6172else 6173 if test -n "$ac_ct_RANLIB"; then 6174 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6175else 6176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6177for as_dir in $PATH 6178do 6179 IFS=$as_save_IFS 6180 test -z "$as_dir" && as_dir=. 6181 for ac_exec_ext in '' $ac_executable_extensions; do 6182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6183 ac_cv_prog_ac_ct_RANLIB="ranlib" 6184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6185 break 2 6186 fi 6187done 6188done 6189IFS=$as_save_IFS 6190 6191fi 6192fi 6193ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6194if test -n "$ac_ct_RANLIB"; then 6195 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6196echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 6197else 6198 { echo "$as_me:$LINENO: result: no" >&5 6199echo "${ECHO_T}no" >&6; } 6200fi 6201 6202 if test "x$ac_ct_RANLIB" = x; then 6203 RANLIB=":" 6204 else 6205 case $cross_compiling:$ac_tool_warned in 6206yes:) 6207{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6208whose name does not start with the host triplet. If you think this 6209configuration is useful to you, please write to autoconf@gnu.org." >&5 6210echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6211whose name does not start with the host triplet. If you think this 6212configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6213ac_tool_warned=yes ;; 6214esac 6215 RANLIB=$ac_ct_RANLIB 6216 fi 6217else 6218 RANLIB="$ac_cv_prog_RANLIB" 6219fi 6220 6221for ac_prog in gawk mawk nawk awk 6222do 6223 # Extract the first word of "$ac_prog", so it can be a program name with args. 6224set dummy $ac_prog; ac_word=$2 6225{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6226echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6227if test "${ac_cv_prog_AWK+set}" = set; then 6228 echo $ECHO_N "(cached) $ECHO_C" >&6 6229else 6230 if test -n "$AWK"; then 6231 ac_cv_prog_AWK="$AWK" # Let the user override the test. 6232else 6233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6234for as_dir in $PATH 6235do 6236 IFS=$as_save_IFS 6237 test -z "$as_dir" && as_dir=. 6238 for ac_exec_ext in '' $ac_executable_extensions; do 6239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6240 ac_cv_prog_AWK="$ac_prog" 6241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6242 break 2 6243 fi 6244done 6245done 6246IFS=$as_save_IFS 6247 6248fi 6249fi 6250AWK=$ac_cv_prog_AWK 6251if test -n "$AWK"; then 6252 { echo "$as_me:$LINENO: result: $AWK" >&5 6253echo "${ECHO_T}$AWK" >&6; } 6254else 6255 { echo "$as_me:$LINENO: result: no" >&5 6256echo "${ECHO_T}no" >&6; } 6257fi 6258 6259 6260 test -n "$AWK" && break 6261done 6262 6263{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 6264echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 6265if test "${ac_cv_path_SED+set}" = set; then 6266 echo $ECHO_N "(cached) $ECHO_C" >&6 6267else 6268 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 6269 for ac_i in 1 2 3 4 5 6 7; do 6270 ac_script="$ac_script$as_nl$ac_script" 6271 done 6272 echo "$ac_script" | sed 99q >conftest.sed 6273 $as_unset ac_script || ac_script= 6274 # Extract the first word of "sed gsed" to use in msg output 6275if test -z "$SED"; then 6276set dummy sed gsed; ac_prog_name=$2 6277if test "${ac_cv_path_SED+set}" = set; then 6278 echo $ECHO_N "(cached) $ECHO_C" >&6 6279else 6280 ac_path_SED_found=false 6281# Loop through the user's path and test for each of PROGNAME-LIST 6282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6283for as_dir in $PATH 6284do 6285 IFS=$as_save_IFS 6286 test -z "$as_dir" && as_dir=. 6287 for ac_prog in sed gsed; do 6288 for ac_exec_ext in '' $ac_executable_extensions; do 6289 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 6290 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 6291 # Check for GNU ac_path_SED and select it if it is found. 6292 # Check for GNU $ac_path_SED 6293case `"$ac_path_SED" --version 2>&1` in 6294*GNU*) 6295 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 6296*) 6297 ac_count=0 6298 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 6299 while : 6300 do 6301 cat "conftest.in" "conftest.in" >"conftest.tmp" 6302 mv "conftest.tmp" "conftest.in" 6303 cp "conftest.in" "conftest.nl" 6304 echo '' >> "conftest.nl" 6305 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 6306 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6307 ac_count=`expr $ac_count + 1` 6308 if test $ac_count -gt ${ac_path_SED_max-0}; then 6309 # Best one so far, save it but keep looking for a better one 6310 ac_cv_path_SED="$ac_path_SED" 6311 ac_path_SED_max=$ac_count 6312 fi 6313 # 10*(2^10) chars as input seems more than enough 6314 test $ac_count -gt 10 && break 6315 done 6316 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6317esac 6318 6319 6320 $ac_path_SED_found && break 3 6321 done 6322done 6323 6324done 6325IFS=$as_save_IFS 6326 6327 6328fi 6329 6330SED="$ac_cv_path_SED" 6331if test -z "$SED"; then 6332 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5 6333echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;} 6334 { (exit 1); exit 1; }; } 6335fi 6336 6337else 6338 ac_cv_path_SED=$SED 6339fi 6340 6341fi 6342{ echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 6343echo "${ECHO_T}$ac_cv_path_SED" >&6; } 6344 SED="$ac_cv_path_SED" 6345 rm -f conftest.sed 6346 6347# Extract the first word of "bc", so it can be a program name with args. 6348set dummy bc; ac_word=$2 6349{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6351if test "${ac_cv_path_BC+set}" = set; then 6352 echo $ECHO_N "(cached) $ECHO_C" >&6 6353else 6354 case $BC in 6355 [\\/]* | ?:[\\/]*) 6356 ac_cv_path_BC="$BC" # Let the user override the test with a path. 6357 ;; 6358 *) 6359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6360for as_dir in $PATH 6361do 6362 IFS=$as_save_IFS 6363 test -z "$as_dir" && as_dir=. 6364 for ac_exec_ext in '' $ac_executable_extensions; do 6365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6366 ac_cv_path_BC="$as_dir/$ac_word$ac_exec_ext" 6367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6368 break 2 6369 fi 6370done 6371done 6372IFS=$as_save_IFS 6373 6374 test -z "$ac_cv_path_BC" && ac_cv_path_BC="no" 6375 ;; 6376esac 6377fi 6378BC=$ac_cv_path_BC 6379if test -n "$BC"; then 6380 { echo "$as_me:$LINENO: result: $BC" >&5 6381echo "${ECHO_T}$BC" >&6; } 6382else 6383 { echo "$as_me:$LINENO: result: no" >&5 6384echo "${ECHO_T}no" >&6; } 6385fi 6386 6387 6388 6389{ echo "$as_me:$LINENO: checking for X" >&5 6390echo $ECHO_N "checking for X... $ECHO_C" >&6; } 6391 6392 6393# Check whether --with-x was given. 6394if test "${with_x+set}" = set; then 6395 withval=$with_x; 6396fi 6397 6398# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 6399if test "x$with_x" = xno; then 6400 # The user explicitly disabled X. 6401 have_x=disabled 6402else 6403 case $x_includes,$x_libraries in #( 6404 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 6405echo "$as_me: error: Cannot use X directory names containing '" >&2;} 6406 { (exit 1); exit 1; }; };; #( 6407 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then 6408 echo $ECHO_N "(cached) $ECHO_C" >&6 6409else 6410 # One or both of the vars are not set, and there is no cached value. 6411ac_x_includes=no ac_x_libraries=no 6412rm -f -r conftest.dir 6413if mkdir conftest.dir; then 6414 cd conftest.dir 6415 cat >Imakefile <<'_ACEOF' 6416incroot: 6417 @echo incroot='${INCROOT}' 6418usrlibdir: 6419 @echo usrlibdir='${USRLIBDIR}' 6420libdir: 6421 @echo libdir='${LIBDIR}' 6422_ACEOF 6423 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 6424 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 6425 for ac_var in incroot usrlibdir libdir; do 6426 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 6427 done 6428 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 6429 for ac_extension in a so sl; do 6430 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 6431 test -f "$ac_im_libdir/libX11.$ac_extension"; then 6432 ac_im_usrlibdir=$ac_im_libdir; break 6433 fi 6434 done 6435 # Screen out bogus values from the imake configuration. They are 6436 # bogus both because they are the default anyway, and because 6437 # using them would break gcc on systems where it needs fixed includes. 6438 case $ac_im_incroot in 6439 /usr/include) ac_x_includes= ;; 6440 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 6441 esac 6442 case $ac_im_usrlibdir in 6443 /usr/lib | /lib) ;; 6444 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 6445 esac 6446 fi 6447 cd .. 6448 rm -f -r conftest.dir 6449fi 6450 6451# Standard set of common directories for X headers. 6452# Check X11 before X11Rn because it is often a symlink to the current release. 6453ac_x_header_dirs=' 6454/usr/X11/include 6455/usr/X11R6/include 6456/usr/X11R5/include 6457/usr/X11R4/include 6458 6459/usr/include/X11 6460/usr/include/X11R6 6461/usr/include/X11R5 6462/usr/include/X11R4 6463 6464/usr/local/X11/include 6465/usr/local/X11R6/include 6466/usr/local/X11R5/include 6467/usr/local/X11R4/include 6468 6469/usr/local/include/X11 6470/usr/local/include/X11R6 6471/usr/local/include/X11R5 6472/usr/local/include/X11R4 6473 6474/usr/X386/include 6475/usr/x386/include 6476/usr/XFree86/include/X11 6477 6478/usr/include 6479/usr/local/include 6480/usr/unsupported/include 6481/usr/athena/include 6482/usr/local/x11r5/include 6483/usr/lpp/Xamples/include 6484 6485/usr/openwin/include 6486/usr/openwin/share/include' 6487 6488if test "$ac_x_includes" = no; then 6489 # Guess where to find include files, by looking for Xlib.h. 6490 # First, try using that file with no special directory specified. 6491 cat >conftest.$ac_ext <<_ACEOF 6492/* confdefs.h. */ 6493_ACEOF 6494cat confdefs.h >>conftest.$ac_ext 6495cat >>conftest.$ac_ext <<_ACEOF 6496/* end confdefs.h. */ 6497#include <X11/Xlib.h> 6498_ACEOF 6499if { (ac_try="$ac_cpp conftest.$ac_ext" 6500case "(($ac_try" in 6501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6502 *) ac_try_echo=$ac_try;; 6503esac 6504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6505 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6506 ac_status=$? 6507 grep -v '^ *+' conftest.er1 >conftest.err 6508 rm -f conftest.er1 6509 cat conftest.err >&5 6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6511 (exit $ac_status); } >/dev/null && { 6512 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6513 test ! -s conftest.err 6514 }; then 6515 # We can compile using X headers with no special include directory. 6516ac_x_includes= 6517else 6518 echo "$as_me: failed program was:" >&5 6519sed 's/^/| /' conftest.$ac_ext >&5 6520 6521 for ac_dir in $ac_x_header_dirs; do 6522 if test -r "$ac_dir/X11/Xlib.h"; then 6523 ac_x_includes=$ac_dir 6524 break 6525 fi 6526done 6527fi 6528 6529rm -f conftest.err conftest.$ac_ext 6530fi # $ac_x_includes = no 6531 6532if test "$ac_x_libraries" = no; then 6533 # Check for the libraries. 6534 # See if we find them without any special options. 6535 # Don't add to $LIBS permanently. 6536 ac_save_LIBS=$LIBS 6537 LIBS="-lX11 $LIBS" 6538 cat >conftest.$ac_ext <<_ACEOF 6539/* confdefs.h. */ 6540_ACEOF 6541cat confdefs.h >>conftest.$ac_ext 6542cat >>conftest.$ac_ext <<_ACEOF 6543/* end confdefs.h. */ 6544#include <X11/Xlib.h> 6545int 6546main () 6547{ 6548XrmInitialize () 6549 ; 6550 return 0; 6551} 6552_ACEOF 6553rm -f conftest.$ac_objext conftest$ac_exeext 6554if { (ac_try="$ac_link" 6555case "(($ac_try" in 6556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6557 *) ac_try_echo=$ac_try;; 6558esac 6559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6560 (eval "$ac_link") 2>conftest.er1 6561 ac_status=$? 6562 grep -v '^ *+' conftest.er1 >conftest.err 6563 rm -f conftest.er1 6564 cat conftest.err >&5 6565 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6566 (exit $ac_status); } && { 6567 test -z "$ac_c_werror_flag" || 6568 test ! -s conftest.err 6569 } && test -s conftest$ac_exeext && 6570 $as_test_x conftest$ac_exeext; then 6571 LIBS=$ac_save_LIBS 6572# We can link X programs with no special library path. 6573ac_x_libraries= 6574else 6575 echo "$as_me: failed program was:" >&5 6576sed 's/^/| /' conftest.$ac_ext >&5 6577 6578 LIBS=$ac_save_LIBS 6579for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 6580do 6581 # Don't even attempt the hair of trying to link an X program! 6582 for ac_extension in a so sl; do 6583 if test -r "$ac_dir/libX11.$ac_extension"; then 6584 ac_x_libraries=$ac_dir 6585 break 2 6586 fi 6587 done 6588done 6589fi 6590 6591rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6592 conftest$ac_exeext conftest.$ac_ext 6593fi # $ac_x_libraries = no 6594 6595case $ac_x_includes,$ac_x_libraries in #( 6596 no,* | *,no | *\'*) 6597 # Didn't find X, or a directory has "'" in its name. 6598 ac_cv_have_x="have_x=no";; #( 6599 *) 6600 # Record where we found X for the cache. 6601 ac_cv_have_x="have_x=yes\ 6602 ac_x_includes='$ac_x_includes'\ 6603 ac_x_libraries='$ac_x_libraries'" 6604esac 6605fi 6606;; #( 6607 *) have_x=yes;; 6608 esac 6609 eval "$ac_cv_have_x" 6610fi # $with_x != no 6611 6612if test "$have_x" != yes; then 6613 { echo "$as_me:$LINENO: result: $have_x" >&5 6614echo "${ECHO_T}$have_x" >&6; } 6615 no_x=yes 6616else 6617 # If each of the values was on the command line, it overrides each guess. 6618 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 6619 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 6620 # Update the cache value to reflect the command line values. 6621 ac_cv_have_x="have_x=yes\ 6622 ac_x_includes='$x_includes'\ 6623 ac_x_libraries='$x_libraries'" 6624 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 6625echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; } 6626fi 6627 6628if test "$no_x" = yes; then 6629 # Not all programs may use this symbol, but it does not hurt to define it. 6630 6631cat >>confdefs.h <<\_ACEOF 6632#define X_DISPLAY_MISSING 1 6633_ACEOF 6634 6635 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 6636else 6637 if test -n "$x_includes"; then 6638 X_CFLAGS="$X_CFLAGS -I$x_includes" 6639 fi 6640 6641 # It would also be nice to do this for all -L options, not just this one. 6642 if test -n "$x_libraries"; then 6643 X_LIBS="$X_LIBS -L$x_libraries" 6644 # For Solaris; some versions of Sun CC require a space after -R and 6645 # others require no space. Words are not sufficient . . . . 6646 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 6647echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; } 6648 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 6649 ac_xsave_c_werror_flag=$ac_c_werror_flag 6650 ac_c_werror_flag=yes 6651 cat >conftest.$ac_ext <<_ACEOF 6652/* confdefs.h. */ 6653_ACEOF 6654cat confdefs.h >>conftest.$ac_ext 6655cat >>conftest.$ac_ext <<_ACEOF 6656/* end confdefs.h. */ 6657 6658int 6659main () 6660{ 6661 6662 ; 6663 return 0; 6664} 6665_ACEOF 6666rm -f conftest.$ac_objext conftest$ac_exeext 6667if { (ac_try="$ac_link" 6668case "(($ac_try" in 6669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6670 *) ac_try_echo=$ac_try;; 6671esac 6672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6673 (eval "$ac_link") 2>conftest.er1 6674 ac_status=$? 6675 grep -v '^ *+' conftest.er1 >conftest.err 6676 rm -f conftest.er1 6677 cat conftest.err >&5 6678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6679 (exit $ac_status); } && { 6680 test -z "$ac_c_werror_flag" || 6681 test ! -s conftest.err 6682 } && test -s conftest$ac_exeext && 6683 $as_test_x conftest$ac_exeext; then 6684 { echo "$as_me:$LINENO: result: no" >&5 6685echo "${ECHO_T}no" >&6; } 6686 X_LIBS="$X_LIBS -R$x_libraries" 6687else 6688 echo "$as_me: failed program was:" >&5 6689sed 's/^/| /' conftest.$ac_ext >&5 6690 6691 LIBS="$ac_xsave_LIBS -R $x_libraries" 6692 cat >conftest.$ac_ext <<_ACEOF 6693/* confdefs.h. */ 6694_ACEOF 6695cat confdefs.h >>conftest.$ac_ext 6696cat >>conftest.$ac_ext <<_ACEOF 6697/* end confdefs.h. */ 6698 6699int 6700main () 6701{ 6702 6703 ; 6704 return 0; 6705} 6706_ACEOF 6707rm -f conftest.$ac_objext conftest$ac_exeext 6708if { (ac_try="$ac_link" 6709case "(($ac_try" in 6710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6711 *) ac_try_echo=$ac_try;; 6712esac 6713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6714 (eval "$ac_link") 2>conftest.er1 6715 ac_status=$? 6716 grep -v '^ *+' conftest.er1 >conftest.err 6717 rm -f conftest.er1 6718 cat conftest.err >&5 6719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6720 (exit $ac_status); } && { 6721 test -z "$ac_c_werror_flag" || 6722 test ! -s conftest.err 6723 } && test -s conftest$ac_exeext && 6724 $as_test_x conftest$ac_exeext; then 6725 { echo "$as_me:$LINENO: result: yes" >&5 6726echo "${ECHO_T}yes" >&6; } 6727 X_LIBS="$X_LIBS -R $x_libraries" 6728else 6729 echo "$as_me: failed program was:" >&5 6730sed 's/^/| /' conftest.$ac_ext >&5 6731 6732 { echo "$as_me:$LINENO: result: neither works" >&5 6733echo "${ECHO_T}neither works" >&6; } 6734fi 6735 6736rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6737 conftest$ac_exeext conftest.$ac_ext 6738fi 6739 6740rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6741 conftest$ac_exeext conftest.$ac_ext 6742 ac_c_werror_flag=$ac_xsave_c_werror_flag 6743 LIBS=$ac_xsave_LIBS 6744 fi 6745 6746 # Check for system-dependent libraries X programs must link with. 6747 # Do this before checking for the system-independent R6 libraries 6748 # (-lICE), since we may need -lsocket or whatever for X linking. 6749 6750 if test "$ISC" = yes; then 6751 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 6752 else 6753 # Martyn Johnson says this is needed for Ultrix, if the X 6754 # libraries were built with DECnet support. And Karl Berry says 6755 # the Alpha needs dnet_stub (dnet does not exist). 6756 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 6757 cat >conftest.$ac_ext <<_ACEOF 6758/* confdefs.h. */ 6759_ACEOF 6760cat confdefs.h >>conftest.$ac_ext 6761cat >>conftest.$ac_ext <<_ACEOF 6762/* end confdefs.h. */ 6763 6764/* Override any GCC internal prototype to avoid an error. 6765 Use char because int might match the return type of a GCC 6766 builtin and then its argument prototype would still apply. */ 6767#ifdef __cplusplus 6768extern "C" 6769#endif 6770char XOpenDisplay (); 6771int 6772main () 6773{ 6774return XOpenDisplay (); 6775 ; 6776 return 0; 6777} 6778_ACEOF 6779rm -f conftest.$ac_objext conftest$ac_exeext 6780if { (ac_try="$ac_link" 6781case "(($ac_try" in 6782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6783 *) ac_try_echo=$ac_try;; 6784esac 6785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6786 (eval "$ac_link") 2>conftest.er1 6787 ac_status=$? 6788 grep -v '^ *+' conftest.er1 >conftest.err 6789 rm -f conftest.er1 6790 cat conftest.err >&5 6791 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6792 (exit $ac_status); } && { 6793 test -z "$ac_c_werror_flag" || 6794 test ! -s conftest.err 6795 } && test -s conftest$ac_exeext && 6796 $as_test_x conftest$ac_exeext; then 6797 : 6798else 6799 echo "$as_me: failed program was:" >&5 6800sed 's/^/| /' conftest.$ac_ext >&5 6801 6802 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 6803echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; } 6804if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then 6805 echo $ECHO_N "(cached) $ECHO_C" >&6 6806else 6807 ac_check_lib_save_LIBS=$LIBS 6808LIBS="-ldnet $LIBS" 6809cat >conftest.$ac_ext <<_ACEOF 6810/* confdefs.h. */ 6811_ACEOF 6812cat confdefs.h >>conftest.$ac_ext 6813cat >>conftest.$ac_ext <<_ACEOF 6814/* end confdefs.h. */ 6815 6816/* Override any GCC internal prototype to avoid an error. 6817 Use char because int might match the return type of a GCC 6818 builtin and then its argument prototype would still apply. */ 6819#ifdef __cplusplus 6820extern "C" 6821#endif 6822char dnet_ntoa (); 6823int 6824main () 6825{ 6826return dnet_ntoa (); 6827 ; 6828 return 0; 6829} 6830_ACEOF 6831rm -f conftest.$ac_objext conftest$ac_exeext 6832if { (ac_try="$ac_link" 6833case "(($ac_try" in 6834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6835 *) ac_try_echo=$ac_try;; 6836esac 6837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6838 (eval "$ac_link") 2>conftest.er1 6839 ac_status=$? 6840 grep -v '^ *+' conftest.er1 >conftest.err 6841 rm -f conftest.er1 6842 cat conftest.err >&5 6843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6844 (exit $ac_status); } && { 6845 test -z "$ac_c_werror_flag" || 6846 test ! -s conftest.err 6847 } && test -s conftest$ac_exeext && 6848 $as_test_x conftest$ac_exeext; then 6849 ac_cv_lib_dnet_dnet_ntoa=yes 6850else 6851 echo "$as_me: failed program was:" >&5 6852sed 's/^/| /' conftest.$ac_ext >&5 6853 6854 ac_cv_lib_dnet_dnet_ntoa=no 6855fi 6856 6857rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6858 conftest$ac_exeext conftest.$ac_ext 6859LIBS=$ac_check_lib_save_LIBS 6860fi 6861{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 6862echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; } 6863if test $ac_cv_lib_dnet_dnet_ntoa = yes; then 6864 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 6865fi 6866 6867 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 6868 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 6869echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; } 6870if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then 6871 echo $ECHO_N "(cached) $ECHO_C" >&6 6872else 6873 ac_check_lib_save_LIBS=$LIBS 6874LIBS="-ldnet_stub $LIBS" 6875cat >conftest.$ac_ext <<_ACEOF 6876/* confdefs.h. */ 6877_ACEOF 6878cat confdefs.h >>conftest.$ac_ext 6879cat >>conftest.$ac_ext <<_ACEOF 6880/* end confdefs.h. */ 6881 6882/* Override any GCC internal prototype to avoid an error. 6883 Use char because int might match the return type of a GCC 6884 builtin and then its argument prototype would still apply. */ 6885#ifdef __cplusplus 6886extern "C" 6887#endif 6888char dnet_ntoa (); 6889int 6890main () 6891{ 6892return dnet_ntoa (); 6893 ; 6894 return 0; 6895} 6896_ACEOF 6897rm -f conftest.$ac_objext conftest$ac_exeext 6898if { (ac_try="$ac_link" 6899case "(($ac_try" in 6900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6901 *) ac_try_echo=$ac_try;; 6902esac 6903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6904 (eval "$ac_link") 2>conftest.er1 6905 ac_status=$? 6906 grep -v '^ *+' conftest.er1 >conftest.err 6907 rm -f conftest.er1 6908 cat conftest.err >&5 6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6910 (exit $ac_status); } && { 6911 test -z "$ac_c_werror_flag" || 6912 test ! -s conftest.err 6913 } && test -s conftest$ac_exeext && 6914 $as_test_x conftest$ac_exeext; then 6915 ac_cv_lib_dnet_stub_dnet_ntoa=yes 6916else 6917 echo "$as_me: failed program was:" >&5 6918sed 's/^/| /' conftest.$ac_ext >&5 6919 6920 ac_cv_lib_dnet_stub_dnet_ntoa=no 6921fi 6922 6923rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6924 conftest$ac_exeext conftest.$ac_ext 6925LIBS=$ac_check_lib_save_LIBS 6926fi 6927{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 6928echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 6929if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then 6930 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 6931fi 6932 6933 fi 6934fi 6935 6936rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6937 conftest$ac_exeext conftest.$ac_ext 6938 LIBS="$ac_xsave_LIBS" 6939 6940 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 6941 # to get the SysV transport functions. 6942 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 6943 # needs -lnsl. 6944 # The nsl library prevents programs from opening the X display 6945 # on Irix 5.2, according to T.E. Dickey. 6946 # The functions gethostbyname, getservbyname, and inet_addr are 6947 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 6948 { echo "$as_me:$LINENO: checking for gethostbyname" >&5 6949echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } 6950if test "${ac_cv_func_gethostbyname+set}" = set; then 6951 echo $ECHO_N "(cached) $ECHO_C" >&6 6952else 6953 cat >conftest.$ac_ext <<_ACEOF 6954/* confdefs.h. */ 6955_ACEOF 6956cat confdefs.h >>conftest.$ac_ext 6957cat >>conftest.$ac_ext <<_ACEOF 6958/* end confdefs.h. */ 6959/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. 6960 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6961#define gethostbyname innocuous_gethostbyname 6962 6963/* System header to define __stub macros and hopefully few prototypes, 6964 which can conflict with char gethostbyname (); below. 6965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6966 <limits.h> exists even on freestanding compilers. */ 6967 6968#ifdef __STDC__ 6969# include <limits.h> 6970#else 6971# include <assert.h> 6972#endif 6973 6974#undef gethostbyname 6975 6976/* Override any GCC internal prototype to avoid an error. 6977 Use char because int might match the return type of a GCC 6978 builtin and then its argument prototype would still apply. */ 6979#ifdef __cplusplus 6980extern "C" 6981#endif 6982char gethostbyname (); 6983/* The GNU C library defines this for functions which it implements 6984 to always fail with ENOSYS. Some functions are actually named 6985 something starting with __ and the normal name is an alias. */ 6986#if defined __stub_gethostbyname || defined __stub___gethostbyname 6987choke me 6988#endif 6989 6990int 6991main () 6992{ 6993return gethostbyname (); 6994 ; 6995 return 0; 6996} 6997_ACEOF 6998rm -f conftest.$ac_objext conftest$ac_exeext 6999if { (ac_try="$ac_link" 7000case "(($ac_try" in 7001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7002 *) ac_try_echo=$ac_try;; 7003esac 7004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7005 (eval "$ac_link") 2>conftest.er1 7006 ac_status=$? 7007 grep -v '^ *+' conftest.er1 >conftest.err 7008 rm -f conftest.er1 7009 cat conftest.err >&5 7010 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7011 (exit $ac_status); } && { 7012 test -z "$ac_c_werror_flag" || 7013 test ! -s conftest.err 7014 } && test -s conftest$ac_exeext && 7015 $as_test_x conftest$ac_exeext; then 7016 ac_cv_func_gethostbyname=yes 7017else 7018 echo "$as_me: failed program was:" >&5 7019sed 's/^/| /' conftest.$ac_ext >&5 7020 7021 ac_cv_func_gethostbyname=no 7022fi 7023 7024rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7025 conftest$ac_exeext conftest.$ac_ext 7026fi 7027{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 7028echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } 7029 7030 if test $ac_cv_func_gethostbyname = no; then 7031 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 7032echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } 7033if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 7034 echo $ECHO_N "(cached) $ECHO_C" >&6 7035else 7036 ac_check_lib_save_LIBS=$LIBS 7037LIBS="-lnsl $LIBS" 7038cat >conftest.$ac_ext <<_ACEOF 7039/* confdefs.h. */ 7040_ACEOF 7041cat confdefs.h >>conftest.$ac_ext 7042cat >>conftest.$ac_ext <<_ACEOF 7043/* end confdefs.h. */ 7044 7045/* Override any GCC internal prototype to avoid an error. 7046 Use char because int might match the return type of a GCC 7047 builtin and then its argument prototype would still apply. */ 7048#ifdef __cplusplus 7049extern "C" 7050#endif 7051char gethostbyname (); 7052int 7053main () 7054{ 7055return gethostbyname (); 7056 ; 7057 return 0; 7058} 7059_ACEOF 7060rm -f conftest.$ac_objext conftest$ac_exeext 7061if { (ac_try="$ac_link" 7062case "(($ac_try" in 7063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7064 *) ac_try_echo=$ac_try;; 7065esac 7066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7067 (eval "$ac_link") 2>conftest.er1 7068 ac_status=$? 7069 grep -v '^ *+' conftest.er1 >conftest.err 7070 rm -f conftest.er1 7071 cat conftest.err >&5 7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7073 (exit $ac_status); } && { 7074 test -z "$ac_c_werror_flag" || 7075 test ! -s conftest.err 7076 } && test -s conftest$ac_exeext && 7077 $as_test_x conftest$ac_exeext; then 7078 ac_cv_lib_nsl_gethostbyname=yes 7079else 7080 echo "$as_me: failed program was:" >&5 7081sed 's/^/| /' conftest.$ac_ext >&5 7082 7083 ac_cv_lib_nsl_gethostbyname=no 7084fi 7085 7086rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7087 conftest$ac_exeext conftest.$ac_ext 7088LIBS=$ac_check_lib_save_LIBS 7089fi 7090{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 7091echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } 7092if test $ac_cv_lib_nsl_gethostbyname = yes; then 7093 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 7094fi 7095 7096 if test $ac_cv_lib_nsl_gethostbyname = no; then 7097 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 7098echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; } 7099if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then 7100 echo $ECHO_N "(cached) $ECHO_C" >&6 7101else 7102 ac_check_lib_save_LIBS=$LIBS 7103LIBS="-lbsd $LIBS" 7104cat >conftest.$ac_ext <<_ACEOF 7105/* confdefs.h. */ 7106_ACEOF 7107cat confdefs.h >>conftest.$ac_ext 7108cat >>conftest.$ac_ext <<_ACEOF 7109/* end confdefs.h. */ 7110 7111/* Override any GCC internal prototype to avoid an error. 7112 Use char because int might match the return type of a GCC 7113 builtin and then its argument prototype would still apply. */ 7114#ifdef __cplusplus 7115extern "C" 7116#endif 7117char gethostbyname (); 7118int 7119main () 7120{ 7121return gethostbyname (); 7122 ; 7123 return 0; 7124} 7125_ACEOF 7126rm -f conftest.$ac_objext conftest$ac_exeext 7127if { (ac_try="$ac_link" 7128case "(($ac_try" in 7129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7130 *) ac_try_echo=$ac_try;; 7131esac 7132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7133 (eval "$ac_link") 2>conftest.er1 7134 ac_status=$? 7135 grep -v '^ *+' conftest.er1 >conftest.err 7136 rm -f conftest.er1 7137 cat conftest.err >&5 7138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7139 (exit $ac_status); } && { 7140 test -z "$ac_c_werror_flag" || 7141 test ! -s conftest.err 7142 } && test -s conftest$ac_exeext && 7143 $as_test_x conftest$ac_exeext; then 7144 ac_cv_lib_bsd_gethostbyname=yes 7145else 7146 echo "$as_me: failed program was:" >&5 7147sed 's/^/| /' conftest.$ac_ext >&5 7148 7149 ac_cv_lib_bsd_gethostbyname=no 7150fi 7151 7152rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7153 conftest$ac_exeext conftest.$ac_ext 7154LIBS=$ac_check_lib_save_LIBS 7155fi 7156{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 7157echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; } 7158if test $ac_cv_lib_bsd_gethostbyname = yes; then 7159 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 7160fi 7161 7162 fi 7163 fi 7164 7165 # lieder@skyler.mavd.honeywell.com says without -lsocket, 7166 # socket/setsockopt and other routines are undefined under SCO ODT 7167 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 7168 # on later versions), says Simon Leinen: it contains gethostby* 7169 # variants that don't use the name server (or something). -lsocket 7170 # must be given before -lnsl if both are needed. We assume that 7171 # if connect needs -lnsl, so does gethostbyname. 7172 { echo "$as_me:$LINENO: checking for connect" >&5 7173echo $ECHO_N "checking for connect... $ECHO_C" >&6; } 7174if test "${ac_cv_func_connect+set}" = set; then 7175 echo $ECHO_N "(cached) $ECHO_C" >&6 7176else 7177 cat >conftest.$ac_ext <<_ACEOF 7178/* confdefs.h. */ 7179_ACEOF 7180cat confdefs.h >>conftest.$ac_ext 7181cat >>conftest.$ac_ext <<_ACEOF 7182/* end confdefs.h. */ 7183/* Define connect to an innocuous variant, in case <limits.h> declares connect. 7184 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7185#define connect innocuous_connect 7186 7187/* System header to define __stub macros and hopefully few prototypes, 7188 which can conflict with char connect (); below. 7189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7190 <limits.h> exists even on freestanding compilers. */ 7191 7192#ifdef __STDC__ 7193# include <limits.h> 7194#else 7195# include <assert.h> 7196#endif 7197 7198#undef connect 7199 7200/* Override any GCC internal prototype to avoid an error. 7201 Use char because int might match the return type of a GCC 7202 builtin and then its argument prototype would still apply. */ 7203#ifdef __cplusplus 7204extern "C" 7205#endif 7206char connect (); 7207/* The GNU C library defines this for functions which it implements 7208 to always fail with ENOSYS. Some functions are actually named 7209 something starting with __ and the normal name is an alias. */ 7210#if defined __stub_connect || defined __stub___connect 7211choke me 7212#endif 7213 7214int 7215main () 7216{ 7217return connect (); 7218 ; 7219 return 0; 7220} 7221_ACEOF 7222rm -f conftest.$ac_objext conftest$ac_exeext 7223if { (ac_try="$ac_link" 7224case "(($ac_try" in 7225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7226 *) ac_try_echo=$ac_try;; 7227esac 7228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7229 (eval "$ac_link") 2>conftest.er1 7230 ac_status=$? 7231 grep -v '^ *+' conftest.er1 >conftest.err 7232 rm -f conftest.er1 7233 cat conftest.err >&5 7234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7235 (exit $ac_status); } && { 7236 test -z "$ac_c_werror_flag" || 7237 test ! -s conftest.err 7238 } && test -s conftest$ac_exeext && 7239 $as_test_x conftest$ac_exeext; then 7240 ac_cv_func_connect=yes 7241else 7242 echo "$as_me: failed program was:" >&5 7243sed 's/^/| /' conftest.$ac_ext >&5 7244 7245 ac_cv_func_connect=no 7246fi 7247 7248rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7249 conftest$ac_exeext conftest.$ac_ext 7250fi 7251{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 7252echo "${ECHO_T}$ac_cv_func_connect" >&6; } 7253 7254 if test $ac_cv_func_connect = no; then 7255 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 7256echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; } 7257if test "${ac_cv_lib_socket_connect+set}" = set; then 7258 echo $ECHO_N "(cached) $ECHO_C" >&6 7259else 7260 ac_check_lib_save_LIBS=$LIBS 7261LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 7262cat >conftest.$ac_ext <<_ACEOF 7263/* confdefs.h. */ 7264_ACEOF 7265cat confdefs.h >>conftest.$ac_ext 7266cat >>conftest.$ac_ext <<_ACEOF 7267/* end confdefs.h. */ 7268 7269/* Override any GCC internal prototype to avoid an error. 7270 Use char because int might match the return type of a GCC 7271 builtin and then its argument prototype would still apply. */ 7272#ifdef __cplusplus 7273extern "C" 7274#endif 7275char connect (); 7276int 7277main () 7278{ 7279return connect (); 7280 ; 7281 return 0; 7282} 7283_ACEOF 7284rm -f conftest.$ac_objext conftest$ac_exeext 7285if { (ac_try="$ac_link" 7286case "(($ac_try" in 7287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7288 *) ac_try_echo=$ac_try;; 7289esac 7290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7291 (eval "$ac_link") 2>conftest.er1 7292 ac_status=$? 7293 grep -v '^ *+' conftest.er1 >conftest.err 7294 rm -f conftest.er1 7295 cat conftest.err >&5 7296 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7297 (exit $ac_status); } && { 7298 test -z "$ac_c_werror_flag" || 7299 test ! -s conftest.err 7300 } && test -s conftest$ac_exeext && 7301 $as_test_x conftest$ac_exeext; then 7302 ac_cv_lib_socket_connect=yes 7303else 7304 echo "$as_me: failed program was:" >&5 7305sed 's/^/| /' conftest.$ac_ext >&5 7306 7307 ac_cv_lib_socket_connect=no 7308fi 7309 7310rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7311 conftest$ac_exeext conftest.$ac_ext 7312LIBS=$ac_check_lib_save_LIBS 7313fi 7314{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 7315echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; } 7316if test $ac_cv_lib_socket_connect = yes; then 7317 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 7318fi 7319 7320 fi 7321 7322 # Guillermo Gomez says -lposix is necessary on A/UX. 7323 { echo "$as_me:$LINENO: checking for remove" >&5 7324echo $ECHO_N "checking for remove... $ECHO_C" >&6; } 7325if test "${ac_cv_func_remove+set}" = set; then 7326 echo $ECHO_N "(cached) $ECHO_C" >&6 7327else 7328 cat >conftest.$ac_ext <<_ACEOF 7329/* confdefs.h. */ 7330_ACEOF 7331cat confdefs.h >>conftest.$ac_ext 7332cat >>conftest.$ac_ext <<_ACEOF 7333/* end confdefs.h. */ 7334/* Define remove to an innocuous variant, in case <limits.h> declares remove. 7335 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7336#define remove innocuous_remove 7337 7338/* System header to define __stub macros and hopefully few prototypes, 7339 which can conflict with char remove (); below. 7340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7341 <limits.h> exists even on freestanding compilers. */ 7342 7343#ifdef __STDC__ 7344# include <limits.h> 7345#else 7346# include <assert.h> 7347#endif 7348 7349#undef remove 7350 7351/* Override any GCC internal prototype to avoid an error. 7352 Use char because int might match the return type of a GCC 7353 builtin and then its argument prototype would still apply. */ 7354#ifdef __cplusplus 7355extern "C" 7356#endif 7357char remove (); 7358/* The GNU C library defines this for functions which it implements 7359 to always fail with ENOSYS. Some functions are actually named 7360 something starting with __ and the normal name is an alias. */ 7361#if defined __stub_remove || defined __stub___remove 7362choke me 7363#endif 7364 7365int 7366main () 7367{ 7368return remove (); 7369 ; 7370 return 0; 7371} 7372_ACEOF 7373rm -f conftest.$ac_objext conftest$ac_exeext 7374if { (ac_try="$ac_link" 7375case "(($ac_try" in 7376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7377 *) ac_try_echo=$ac_try;; 7378esac 7379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7380 (eval "$ac_link") 2>conftest.er1 7381 ac_status=$? 7382 grep -v '^ *+' conftest.er1 >conftest.err 7383 rm -f conftest.er1 7384 cat conftest.err >&5 7385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7386 (exit $ac_status); } && { 7387 test -z "$ac_c_werror_flag" || 7388 test ! -s conftest.err 7389 } && test -s conftest$ac_exeext && 7390 $as_test_x conftest$ac_exeext; then 7391 ac_cv_func_remove=yes 7392else 7393 echo "$as_me: failed program was:" >&5 7394sed 's/^/| /' conftest.$ac_ext >&5 7395 7396 ac_cv_func_remove=no 7397fi 7398 7399rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7400 conftest$ac_exeext conftest.$ac_ext 7401fi 7402{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 7403echo "${ECHO_T}$ac_cv_func_remove" >&6; } 7404 7405 if test $ac_cv_func_remove = no; then 7406 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5 7407echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; } 7408if test "${ac_cv_lib_posix_remove+set}" = set; then 7409 echo $ECHO_N "(cached) $ECHO_C" >&6 7410else 7411 ac_check_lib_save_LIBS=$LIBS 7412LIBS="-lposix $LIBS" 7413cat >conftest.$ac_ext <<_ACEOF 7414/* confdefs.h. */ 7415_ACEOF 7416cat confdefs.h >>conftest.$ac_ext 7417cat >>conftest.$ac_ext <<_ACEOF 7418/* end confdefs.h. */ 7419 7420/* Override any GCC internal prototype to avoid an error. 7421 Use char because int might match the return type of a GCC 7422 builtin and then its argument prototype would still apply. */ 7423#ifdef __cplusplus 7424extern "C" 7425#endif 7426char remove (); 7427int 7428main () 7429{ 7430return remove (); 7431 ; 7432 return 0; 7433} 7434_ACEOF 7435rm -f conftest.$ac_objext conftest$ac_exeext 7436if { (ac_try="$ac_link" 7437case "(($ac_try" in 7438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7439 *) ac_try_echo=$ac_try;; 7440esac 7441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7442 (eval "$ac_link") 2>conftest.er1 7443 ac_status=$? 7444 grep -v '^ *+' conftest.er1 >conftest.err 7445 rm -f conftest.er1 7446 cat conftest.err >&5 7447 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7448 (exit $ac_status); } && { 7449 test -z "$ac_c_werror_flag" || 7450 test ! -s conftest.err 7451 } && test -s conftest$ac_exeext && 7452 $as_test_x conftest$ac_exeext; then 7453 ac_cv_lib_posix_remove=yes 7454else 7455 echo "$as_me: failed program was:" >&5 7456sed 's/^/| /' conftest.$ac_ext >&5 7457 7458 ac_cv_lib_posix_remove=no 7459fi 7460 7461rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7462 conftest$ac_exeext conftest.$ac_ext 7463LIBS=$ac_check_lib_save_LIBS 7464fi 7465{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 7466echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; } 7467if test $ac_cv_lib_posix_remove = yes; then 7468 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 7469fi 7470 7471 fi 7472 7473 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 7474 { echo "$as_me:$LINENO: checking for shmat" >&5 7475echo $ECHO_N "checking for shmat... $ECHO_C" >&6; } 7476if test "${ac_cv_func_shmat+set}" = set; then 7477 echo $ECHO_N "(cached) $ECHO_C" >&6 7478else 7479 cat >conftest.$ac_ext <<_ACEOF 7480/* confdefs.h. */ 7481_ACEOF 7482cat confdefs.h >>conftest.$ac_ext 7483cat >>conftest.$ac_ext <<_ACEOF 7484/* end confdefs.h. */ 7485/* Define shmat to an innocuous variant, in case <limits.h> declares shmat. 7486 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7487#define shmat innocuous_shmat 7488 7489/* System header to define __stub macros and hopefully few prototypes, 7490 which can conflict with char shmat (); below. 7491 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7492 <limits.h> exists even on freestanding compilers. */ 7493 7494#ifdef __STDC__ 7495# include <limits.h> 7496#else 7497# include <assert.h> 7498#endif 7499 7500#undef shmat 7501 7502/* Override any GCC internal prototype to avoid an error. 7503 Use char because int might match the return type of a GCC 7504 builtin and then its argument prototype would still apply. */ 7505#ifdef __cplusplus 7506extern "C" 7507#endif 7508char shmat (); 7509/* The GNU C library defines this for functions which it implements 7510 to always fail with ENOSYS. Some functions are actually named 7511 something starting with __ and the normal name is an alias. */ 7512#if defined __stub_shmat || defined __stub___shmat 7513choke me 7514#endif 7515 7516int 7517main () 7518{ 7519return shmat (); 7520 ; 7521 return 0; 7522} 7523_ACEOF 7524rm -f conftest.$ac_objext conftest$ac_exeext 7525if { (ac_try="$ac_link" 7526case "(($ac_try" in 7527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7528 *) ac_try_echo=$ac_try;; 7529esac 7530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7531 (eval "$ac_link") 2>conftest.er1 7532 ac_status=$? 7533 grep -v '^ *+' conftest.er1 >conftest.err 7534 rm -f conftest.er1 7535 cat conftest.err >&5 7536 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7537 (exit $ac_status); } && { 7538 test -z "$ac_c_werror_flag" || 7539 test ! -s conftest.err 7540 } && test -s conftest$ac_exeext && 7541 $as_test_x conftest$ac_exeext; then 7542 ac_cv_func_shmat=yes 7543else 7544 echo "$as_me: failed program was:" >&5 7545sed 's/^/| /' conftest.$ac_ext >&5 7546 7547 ac_cv_func_shmat=no 7548fi 7549 7550rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7551 conftest$ac_exeext conftest.$ac_ext 7552fi 7553{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 7554echo "${ECHO_T}$ac_cv_func_shmat" >&6; } 7555 7556 if test $ac_cv_func_shmat = no; then 7557 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 7558echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; } 7559if test "${ac_cv_lib_ipc_shmat+set}" = set; then 7560 echo $ECHO_N "(cached) $ECHO_C" >&6 7561else 7562 ac_check_lib_save_LIBS=$LIBS 7563LIBS="-lipc $LIBS" 7564cat >conftest.$ac_ext <<_ACEOF 7565/* confdefs.h. */ 7566_ACEOF 7567cat confdefs.h >>conftest.$ac_ext 7568cat >>conftest.$ac_ext <<_ACEOF 7569/* end confdefs.h. */ 7570 7571/* Override any GCC internal prototype to avoid an error. 7572 Use char because int might match the return type of a GCC 7573 builtin and then its argument prototype would still apply. */ 7574#ifdef __cplusplus 7575extern "C" 7576#endif 7577char shmat (); 7578int 7579main () 7580{ 7581return shmat (); 7582 ; 7583 return 0; 7584} 7585_ACEOF 7586rm -f conftest.$ac_objext conftest$ac_exeext 7587if { (ac_try="$ac_link" 7588case "(($ac_try" in 7589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7590 *) ac_try_echo=$ac_try;; 7591esac 7592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7593 (eval "$ac_link") 2>conftest.er1 7594 ac_status=$? 7595 grep -v '^ *+' conftest.er1 >conftest.err 7596 rm -f conftest.er1 7597 cat conftest.err >&5 7598 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7599 (exit $ac_status); } && { 7600 test -z "$ac_c_werror_flag" || 7601 test ! -s conftest.err 7602 } && test -s conftest$ac_exeext && 7603 $as_test_x conftest$ac_exeext; then 7604 ac_cv_lib_ipc_shmat=yes 7605else 7606 echo "$as_me: failed program was:" >&5 7607sed 's/^/| /' conftest.$ac_ext >&5 7608 7609 ac_cv_lib_ipc_shmat=no 7610fi 7611 7612rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7613 conftest$ac_exeext conftest.$ac_ext 7614LIBS=$ac_check_lib_save_LIBS 7615fi 7616{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 7617echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; } 7618if test $ac_cv_lib_ipc_shmat = yes; then 7619 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 7620fi 7621 7622 fi 7623 fi 7624 7625 # Check for libraries that X11R6 Xt/Xaw programs need. 7626 ac_save_LDFLAGS=$LDFLAGS 7627 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 7628 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 7629 # check for ICE first), but we must link in the order -lSM -lICE or 7630 # we get undefined symbols. So assume we have SM if we have ICE. 7631 # These have to be linked with before -lX11, unlike the other 7632 # libraries we check for below, so use a different variable. 7633 # John Interrante, Karl Berry 7634 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 7635echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; } 7636if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then 7637 echo $ECHO_N "(cached) $ECHO_C" >&6 7638else 7639 ac_check_lib_save_LIBS=$LIBS 7640LIBS="-lICE $X_EXTRA_LIBS $LIBS" 7641cat >conftest.$ac_ext <<_ACEOF 7642/* confdefs.h. */ 7643_ACEOF 7644cat confdefs.h >>conftest.$ac_ext 7645cat >>conftest.$ac_ext <<_ACEOF 7646/* end confdefs.h. */ 7647 7648/* Override any GCC internal prototype to avoid an error. 7649 Use char because int might match the return type of a GCC 7650 builtin and then its argument prototype would still apply. */ 7651#ifdef __cplusplus 7652extern "C" 7653#endif 7654char IceConnectionNumber (); 7655int 7656main () 7657{ 7658return IceConnectionNumber (); 7659 ; 7660 return 0; 7661} 7662_ACEOF 7663rm -f conftest.$ac_objext conftest$ac_exeext 7664if { (ac_try="$ac_link" 7665case "(($ac_try" in 7666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7667 *) ac_try_echo=$ac_try;; 7668esac 7669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7670 (eval "$ac_link") 2>conftest.er1 7671 ac_status=$? 7672 grep -v '^ *+' conftest.er1 >conftest.err 7673 rm -f conftest.er1 7674 cat conftest.err >&5 7675 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7676 (exit $ac_status); } && { 7677 test -z "$ac_c_werror_flag" || 7678 test ! -s conftest.err 7679 } && test -s conftest$ac_exeext && 7680 $as_test_x conftest$ac_exeext; then 7681 ac_cv_lib_ICE_IceConnectionNumber=yes 7682else 7683 echo "$as_me: failed program was:" >&5 7684sed 's/^/| /' conftest.$ac_ext >&5 7685 7686 ac_cv_lib_ICE_IceConnectionNumber=no 7687fi 7688 7689rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7690 conftest$ac_exeext conftest.$ac_ext 7691LIBS=$ac_check_lib_save_LIBS 7692fi 7693{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 7694echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 7695if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then 7696 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 7697fi 7698 7699 LDFLAGS=$ac_save_LDFLAGS 7700 7701fi 7702 7703######################################################### 7704######################################################### 7705 7706#SCROLLKEEPER############################################## 7707######################################################### 7708SCROLLKEEPER_BUILD_REQUIRED=0.3.5 7709 7710 7711# Extract the first word of "scrollkeeper-config", so it can be a program name with args. 7712set dummy scrollkeeper-config; ac_word=$2 7713{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7714echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7715if test "${ac_cv_path_SK_CONFIG+set}" = set; then 7716 echo $ECHO_N "(cached) $ECHO_C" >&6 7717else 7718 case $SK_CONFIG in 7719 [\\/]* | ?:[\\/]*) 7720 ac_cv_path_SK_CONFIG="$SK_CONFIG" # Let the user override the test with a path. 7721 ;; 7722 *) 7723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7724for as_dir in $PATH 7725do 7726 IFS=$as_save_IFS 7727 test -z "$as_dir" && as_dir=. 7728 for ac_exec_ext in '' $ac_executable_extensions; do 7729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7730 ac_cv_path_SK_CONFIG="$as_dir/$ac_word$ac_exec_ext" 7731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7732 break 2 7733 fi 7734done 7735done 7736IFS=$as_save_IFS 7737 7738 test -z "$ac_cv_path_SK_CONFIG" && ac_cv_path_SK_CONFIG="no" 7739 ;; 7740esac 7741fi 7742SK_CONFIG=$ac_cv_path_SK_CONFIG 7743if test -n "$SK_CONFIG"; then 7744 { echo "$as_me:$LINENO: result: $SK_CONFIG" >&5 7745echo "${ECHO_T}$SK_CONFIG" >&6; } 7746else 7747 { echo "$as_me:$LINENO: result: no" >&5 7748echo "${ECHO_T}no" >&6; } 7749fi 7750 7751 7752if test x$SK_CONFIG = xno; then 7753 { echo "$as_me:$LINENO: Couldn't find scrollkeeper-config. Please install the scrollkeeper package: http://scrollkeeper.sourceforge.net if you plan to install the documentation through the install-doc target." >&5 7754echo "$as_me: Couldn't find scrollkeeper-config. Please install the scrollkeeper package: http://scrollkeeper.sourceforge.net if you plan to install the documentation through the install-doc target." >&6;} 7755fi 7756 7757# here follows a hack to get the docs installed in a separate, recursive install-doc target 7758MK=''; 7759######################################################### 7760######################################################### 7761# Extract the first word of "docbook2x-man", so it can be a program name with args. 7762set dummy docbook2x-man; ac_word=$2 7763{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7764echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7765if test "${ac_cv_path_DOCBOOK2X_MAN+set}" = set; then 7766 echo $ECHO_N "(cached) $ECHO_C" >&6 7767else 7768 case $DOCBOOK2X_MAN in 7769 [\\/]* | ?:[\\/]*) 7770 ac_cv_path_DOCBOOK2X_MAN="$DOCBOOK2X_MAN" # Let the user override the test with a path. 7771 ;; 7772 *) 7773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7774for as_dir in $PATH 7775do 7776 IFS=$as_save_IFS 7777 test -z "$as_dir" && as_dir=. 7778 for ac_exec_ext in '' $ac_executable_extensions; do 7779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7780 ac_cv_path_DOCBOOK2X_MAN="$as_dir/$ac_word$ac_exec_ext" 7781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7782 break 2 7783 fi 7784done 7785done 7786IFS=$as_save_IFS 7787 7788 test -z "$ac_cv_path_DOCBOOK2X_MAN" && ac_cv_path_DOCBOOK2X_MAN="no" 7789 ;; 7790esac 7791fi 7792DOCBOOK2X_MAN=$ac_cv_path_DOCBOOK2X_MAN 7793if test -n "$DOCBOOK2X_MAN"; then 7794 { echo "$as_me:$LINENO: result: $DOCBOOK2X_MAN" >&5 7795echo "${ECHO_T}$DOCBOOK2X_MAN" >&6; } 7796else 7797 { echo "$as_me:$LINENO: result: no" >&5 7798echo "${ECHO_T}no" >&6; } 7799fi 7800 7801 7802if test x$DOCBOOK2X_MAN = xno; then 7803 { echo "$as_me:$LINENO: Couldn't find docbook2x-man to generate current man pages. Will try db2x_docbook2man." >&5 7804echo "$as_me: Couldn't find docbook2x-man to generate current man pages. Will try db2x_docbook2man." >&6;} 7805 unset ac_cv_path_DOCBOOK2X_MAN 7806 # Extract the first word of "db2x_docbook2man", so it can be a program name with args. 7807set dummy db2x_docbook2man; ac_word=$2 7808{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7810if test "${ac_cv_path_DOCBOOK2X_MAN+set}" = set; then 7811 echo $ECHO_N "(cached) $ECHO_C" >&6 7812else 7813 case $DOCBOOK2X_MAN in 7814 [\\/]* | ?:[\\/]*) 7815 ac_cv_path_DOCBOOK2X_MAN="$DOCBOOK2X_MAN" # Let the user override the test with a path. 7816 ;; 7817 *) 7818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7819for as_dir in $PATH 7820do 7821 IFS=$as_save_IFS 7822 test -z "$as_dir" && as_dir=. 7823 for ac_exec_ext in '' $ac_executable_extensions; do 7824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7825 ac_cv_path_DOCBOOK2X_MAN="$as_dir/$ac_word$ac_exec_ext" 7826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7827 break 2 7828 fi 7829done 7830done 7831IFS=$as_save_IFS 7832 7833 test -z "$ac_cv_path_DOCBOOK2X_MAN" && ac_cv_path_DOCBOOK2X_MAN="no" 7834 ;; 7835esac 7836fi 7837DOCBOOK2X_MAN=$ac_cv_path_DOCBOOK2X_MAN 7838if test -n "$DOCBOOK2X_MAN"; then 7839 { echo "$as_me:$LINENO: result: $DOCBOOK2X_MAN" >&5 7840echo "${ECHO_T}$DOCBOOK2X_MAN" >&6; } 7841else 7842 { echo "$as_me:$LINENO: result: no" >&5 7843echo "${ECHO_T}no" >&6; } 7844fi 7845 7846 7847fi 7848if test x$DOCBOOK2X_MAN = xno; then 7849 { echo "$as_me:$LINENO: Couldn't find neither docbook2x-man nor db2x_docbook2man to generate current man pages. Will install pre-generated ones if present." >&5 7850echo "$as_me: Couldn't find neither docbook2x-man nor db2x_docbook2man to generate current man pages. Will install pre-generated ones if present." >&6;} 7851fi 7852 7853# Extract the first word of "xml2po", so it can be a program name with args. 7854set dummy xml2po; ac_word=$2 7855{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7857if test "${ac_cv_path_XML2PO+set}" = set; then 7858 echo $ECHO_N "(cached) $ECHO_C" >&6 7859else 7860 case $XML2PO in 7861 [\\/]* | ?:[\\/]*) 7862 ac_cv_path_XML2PO="$XML2PO" # Let the user override the test with a path. 7863 ;; 7864 *) 7865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7866for as_dir in $PATH 7867do 7868 IFS=$as_save_IFS 7869 test -z "$as_dir" && as_dir=. 7870 for ac_exec_ext in '' $ac_executable_extensions; do 7871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7872 ac_cv_path_XML2PO="$as_dir/$ac_word$ac_exec_ext" 7873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7874 break 2 7875 fi 7876done 7877done 7878IFS=$as_save_IFS 7879 7880 test -z "$ac_cv_path_XML2PO" && ac_cv_path_XML2PO="no" 7881 ;; 7882esac 7883fi 7884XML2PO=$ac_cv_path_XML2PO 7885if test -n "$XML2PO"; then 7886 { echo "$as_me:$LINENO: result: $XML2PO" >&5 7887echo "${ECHO_T}$XML2PO" >&6; } 7888else 7889 { echo "$as_me:$LINENO: result: no" >&5 7890echo "${ECHO_T}no" >&6; } 7891fi 7892 7893 7894if test x$XML2PO = xno; then 7895 { echo "$as_me:$LINENO: Couldn't find xml2po to translate current man pages. Will install pre-generated ones if present." >&5 7896echo "$as_me: Couldn't find xml2po to translate current man pages. Will install pre-generated ones if present." >&6;} 7897fi 7898#MANPAGES############################################### 7899######################################################### 7900 7901######################################################### 7902######################################################### 7903 7904######################################################### 7905######################################################## 7906#i18n#################################################### 7907######################################################### 7908GETTEXT_PACKAGE=xvidcap 7909 7910 7911cat >>confdefs.h <<_ACEOF 7912#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE" 7913_ACEOF 7914 7915 7916ALL_LINGUAS="de en it es" 7917# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7928 inttypes.h stdint.h unistd.h 7929do 7930as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7931{ echo "$as_me:$LINENO: checking for $ac_header" >&5 7932echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 7933if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7934 echo $ECHO_N "(cached) $ECHO_C" >&6 7935else 7936 cat >conftest.$ac_ext <<_ACEOF 7937/* confdefs.h. */ 7938_ACEOF 7939cat confdefs.h >>conftest.$ac_ext 7940cat >>conftest.$ac_ext <<_ACEOF 7941/* end confdefs.h. */ 7942$ac_includes_default 7943 7944#include <$ac_header> 7945_ACEOF 7946rm -f conftest.$ac_objext 7947if { (ac_try="$ac_compile" 7948case "(($ac_try" in 7949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7950 *) ac_try_echo=$ac_try;; 7951esac 7952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7953 (eval "$ac_compile") 2>conftest.er1 7954 ac_status=$? 7955 grep -v '^ *+' conftest.er1 >conftest.err 7956 rm -f conftest.er1 7957 cat conftest.err >&5 7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7959 (exit $ac_status); } && { 7960 test -z "$ac_c_werror_flag" || 7961 test ! -s conftest.err 7962 } && test -s conftest.$ac_objext; then 7963 eval "$as_ac_Header=yes" 7964else 7965 echo "$as_me: failed program was:" >&5 7966sed 's/^/| /' conftest.$ac_ext >&5 7967 7968 eval "$as_ac_Header=no" 7969fi 7970 7971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7972fi 7973ac_res=`eval echo '${'$as_ac_Header'}'` 7974 { echo "$as_me:$LINENO: result: $ac_res" >&5 7975echo "${ECHO_T}$ac_res" >&6; } 7976if test `eval echo '${'$as_ac_Header'}'` = yes; then 7977 cat >>confdefs.h <<_ACEOF 7978#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7979_ACEOF 7980 7981fi 7982 7983done 7984 7985 7986 7987 7988for ac_header in locale.h 7989do 7990as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7991if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7992 { echo "$as_me:$LINENO: checking for $ac_header" >&5 7993echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 7994if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7995 echo $ECHO_N "(cached) $ECHO_C" >&6 7996fi 7997ac_res=`eval echo '${'$as_ac_Header'}'` 7998 { echo "$as_me:$LINENO: result: $ac_res" >&5 7999echo "${ECHO_T}$ac_res" >&6; } 8000else 8001 # Is the header compilable? 8002{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 8003echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 8004cat >conftest.$ac_ext <<_ACEOF 8005/* confdefs.h. */ 8006_ACEOF 8007cat confdefs.h >>conftest.$ac_ext 8008cat >>conftest.$ac_ext <<_ACEOF 8009/* end confdefs.h. */ 8010$ac_includes_default 8011#include <$ac_header> 8012_ACEOF 8013rm -f conftest.$ac_objext 8014if { (ac_try="$ac_compile" 8015case "(($ac_try" in 8016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8017 *) ac_try_echo=$ac_try;; 8018esac 8019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8020 (eval "$ac_compile") 2>conftest.er1 8021 ac_status=$? 8022 grep -v '^ *+' conftest.er1 >conftest.err 8023 rm -f conftest.er1 8024 cat conftest.err >&5 8025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8026 (exit $ac_status); } && { 8027 test -z "$ac_c_werror_flag" || 8028 test ! -s conftest.err 8029 } && test -s conftest.$ac_objext; then 8030 ac_header_compiler=yes 8031else 8032 echo "$as_me: failed program was:" >&5 8033sed 's/^/| /' conftest.$ac_ext >&5 8034 8035 ac_header_compiler=no 8036fi 8037 8038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8039{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8040echo "${ECHO_T}$ac_header_compiler" >&6; } 8041 8042# Is the header present? 8043{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 8044echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 8045cat >conftest.$ac_ext <<_ACEOF 8046/* confdefs.h. */ 8047_ACEOF 8048cat confdefs.h >>conftest.$ac_ext 8049cat >>conftest.$ac_ext <<_ACEOF 8050/* end confdefs.h. */ 8051#include <$ac_header> 8052_ACEOF 8053if { (ac_try="$ac_cpp conftest.$ac_ext" 8054case "(($ac_try" in 8055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8056 *) ac_try_echo=$ac_try;; 8057esac 8058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8059 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8060 ac_status=$? 8061 grep -v '^ *+' conftest.er1 >conftest.err 8062 rm -f conftest.er1 8063 cat conftest.err >&5 8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8065 (exit $ac_status); } >/dev/null && { 8066 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 8067 test ! -s conftest.err 8068 }; then 8069 ac_header_preproc=yes 8070else 8071 echo "$as_me: failed program was:" >&5 8072sed 's/^/| /' conftest.$ac_ext >&5 8073 8074 ac_header_preproc=no 8075fi 8076 8077rm -f conftest.err conftest.$ac_ext 8078{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8079echo "${ECHO_T}$ac_header_preproc" >&6; } 8080 8081# So? What about this header? 8082case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8083 yes:no: ) 8084 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 8085echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 8086 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 8087echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 8088 ac_header_preproc=yes 8089 ;; 8090 no:yes:* ) 8091 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 8092echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 8093 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 8094echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 8095 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 8096echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 8097 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 8098echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 8099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8100echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 8101 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 8102echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 8103 8104 ;; 8105esac 8106{ echo "$as_me:$LINENO: checking for $ac_header" >&5 8107echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 8108if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8109 echo $ECHO_N "(cached) $ECHO_C" >&6 8110else 8111 eval "$as_ac_Header=\$ac_header_preproc" 8112fi 8113ac_res=`eval echo '${'$as_ac_Header'}'` 8114 { echo "$as_me:$LINENO: result: $ac_res" >&5 8115echo "${ECHO_T}$ac_res" >&6; } 8116 8117fi 8118if test `eval echo '${'$as_ac_Header'}'` = yes; then 8119 cat >>confdefs.h <<_ACEOF 8120#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8121_ACEOF 8122 8123fi 8124 8125done 8126 8127 if test $ac_cv_header_locale_h = yes; then 8128 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 8129echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; } 8130if test "${am_cv_val_LC_MESSAGES+set}" = set; then 8131 echo $ECHO_N "(cached) $ECHO_C" >&6 8132else 8133 cat >conftest.$ac_ext <<_ACEOF 8134/* confdefs.h. */ 8135_ACEOF 8136cat confdefs.h >>conftest.$ac_ext 8137cat >>conftest.$ac_ext <<_ACEOF 8138/* end confdefs.h. */ 8139#include <locale.h> 8140int 8141main () 8142{ 8143return LC_MESSAGES 8144 ; 8145 return 0; 8146} 8147_ACEOF 8148rm -f conftest.$ac_objext conftest$ac_exeext 8149if { (ac_try="$ac_link" 8150case "(($ac_try" in 8151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8152 *) ac_try_echo=$ac_try;; 8153esac 8154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8155 (eval "$ac_link") 2>conftest.er1 8156 ac_status=$? 8157 grep -v '^ *+' conftest.er1 >conftest.err 8158 rm -f conftest.er1 8159 cat conftest.err >&5 8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8161 (exit $ac_status); } && { 8162 test -z "$ac_c_werror_flag" || 8163 test ! -s conftest.err 8164 } && test -s conftest$ac_exeext && 8165 $as_test_x conftest$ac_exeext; then 8166 am_cv_val_LC_MESSAGES=yes 8167else 8168 echo "$as_me: failed program was:" >&5 8169sed 's/^/| /' conftest.$ac_ext >&5 8170 8171 am_cv_val_LC_MESSAGES=no 8172fi 8173 8174rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8175 conftest$ac_exeext conftest.$ac_ext 8176fi 8177{ echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 8178echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; } 8179 if test $am_cv_val_LC_MESSAGES = yes; then 8180 8181cat >>confdefs.h <<\_ACEOF 8182#define HAVE_LC_MESSAGES 1 8183_ACEOF 8184 8185 fi 8186 fi 8187 USE_NLS=yes 8188 8189 8190 gt_cv_have_gettext=no 8191 8192 CATOBJEXT=NONE 8193 XGETTEXT=: 8194 INTLLIBS= 8195 8196 if test "${ac_cv_header_libintl_h+set}" = set; then 8197 { echo "$as_me:$LINENO: checking for libintl.h" >&5 8198echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; } 8199if test "${ac_cv_header_libintl_h+set}" = set; then 8200 echo $ECHO_N "(cached) $ECHO_C" >&6 8201fi 8202{ echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 8203echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; } 8204else 8205 # Is the header compilable? 8206{ echo "$as_me:$LINENO: checking libintl.h usability" >&5 8207echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; } 8208cat >conftest.$ac_ext <<_ACEOF 8209/* confdefs.h. */ 8210_ACEOF 8211cat confdefs.h >>conftest.$ac_ext 8212cat >>conftest.$ac_ext <<_ACEOF 8213/* end confdefs.h. */ 8214$ac_includes_default 8215#include <libintl.h> 8216_ACEOF 8217rm -f conftest.$ac_objext 8218if { (ac_try="$ac_compile" 8219case "(($ac_try" in 8220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8221 *) ac_try_echo=$ac_try;; 8222esac 8223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8224 (eval "$ac_compile") 2>conftest.er1 8225 ac_status=$? 8226 grep -v '^ *+' conftest.er1 >conftest.err 8227 rm -f conftest.er1 8228 cat conftest.err >&5 8229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8230 (exit $ac_status); } && { 8231 test -z "$ac_c_werror_flag" || 8232 test ! -s conftest.err 8233 } && test -s conftest.$ac_objext; then 8234 ac_header_compiler=yes 8235else 8236 echo "$as_me: failed program was:" >&5 8237sed 's/^/| /' conftest.$ac_ext >&5 8238 8239 ac_header_compiler=no 8240fi 8241 8242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8243{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8244echo "${ECHO_T}$ac_header_compiler" >&6; } 8245 8246# Is the header present? 8247{ echo "$as_me:$LINENO: checking libintl.h presence" >&5 8248echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; } 8249cat >conftest.$ac_ext <<_ACEOF 8250/* confdefs.h. */ 8251_ACEOF 8252cat confdefs.h >>conftest.$ac_ext 8253cat >>conftest.$ac_ext <<_ACEOF 8254/* end confdefs.h. */ 8255#include <libintl.h> 8256_ACEOF 8257if { (ac_try="$ac_cpp conftest.$ac_ext" 8258case "(($ac_try" in 8259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8260 *) ac_try_echo=$ac_try;; 8261esac 8262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8263 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8264 ac_status=$? 8265 grep -v '^ *+' conftest.er1 >conftest.err 8266 rm -f conftest.er1 8267 cat conftest.err >&5 8268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8269 (exit $ac_status); } >/dev/null && { 8270 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 8271 test ! -s conftest.err 8272 }; then 8273 ac_header_preproc=yes 8274else 8275 echo "$as_me: failed program was:" >&5 8276sed 's/^/| /' conftest.$ac_ext >&5 8277 8278 ac_header_preproc=no 8279fi 8280 8281rm -f conftest.err conftest.$ac_ext 8282{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8283echo "${ECHO_T}$ac_header_preproc" >&6; } 8284 8285# So? What about this header? 8286case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8287 yes:no: ) 8288 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5 8289echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 8290 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5 8291echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;} 8292 ac_header_preproc=yes 8293 ;; 8294 no:yes:* ) 8295 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5 8296echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;} 8297 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5 8298echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;} 8299 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5 8300echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;} 8301 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5 8302echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;} 8303 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5 8304echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;} 8305 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5 8306echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;} 8307 8308 ;; 8309esac 8310{ echo "$as_me:$LINENO: checking for libintl.h" >&5 8311echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; } 8312if test "${ac_cv_header_libintl_h+set}" = set; then 8313 echo $ECHO_N "(cached) $ECHO_C" >&6 8314else 8315 ac_cv_header_libintl_h=$ac_header_preproc 8316fi 8317{ echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 8318echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; } 8319 8320fi 8321if test $ac_cv_header_libintl_h = yes; then 8322 gt_cv_func_dgettext_libintl="no" 8323 libintl_extra_libs="" 8324 8325 # 8326 # First check in libc 8327 # 8328 { echo "$as_me:$LINENO: checking for ngettext in libc" >&5 8329echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; } 8330if test "${gt_cv_func_ngettext_libc+set}" = set; then 8331 echo $ECHO_N "(cached) $ECHO_C" >&6 8332else 8333 cat >conftest.$ac_ext <<_ACEOF 8334/* confdefs.h. */ 8335_ACEOF 8336cat confdefs.h >>conftest.$ac_ext 8337cat >>conftest.$ac_ext <<_ACEOF 8338/* end confdefs.h. */ 8339 8340#include <libintl.h> 8341 8342int 8343main () 8344{ 8345return !ngettext ("","", 1) 8346 ; 8347 return 0; 8348} 8349_ACEOF 8350rm -f conftest.$ac_objext conftest$ac_exeext 8351if { (ac_try="$ac_link" 8352case "(($ac_try" in 8353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8354 *) ac_try_echo=$ac_try;; 8355esac 8356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8357 (eval "$ac_link") 2>conftest.er1 8358 ac_status=$? 8359 grep -v '^ *+' conftest.er1 >conftest.err 8360 rm -f conftest.er1 8361 cat conftest.err >&5 8362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8363 (exit $ac_status); } && { 8364 test -z "$ac_c_werror_flag" || 8365 test ! -s conftest.err 8366 } && test -s conftest$ac_exeext && 8367 $as_test_x conftest$ac_exeext; then 8368 gt_cv_func_ngettext_libc=yes 8369else 8370 echo "$as_me: failed program was:" >&5 8371sed 's/^/| /' conftest.$ac_ext >&5 8372 8373 gt_cv_func_ngettext_libc=no 8374fi 8375 8376rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8377 conftest$ac_exeext conftest.$ac_ext 8378 8379fi 8380{ echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5 8381echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; } 8382 8383 if test "$gt_cv_func_ngettext_libc" = "yes" ; then 8384 { echo "$as_me:$LINENO: checking for dgettext in libc" >&5 8385echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; } 8386if test "${gt_cv_func_dgettext_libc+set}" = set; then 8387 echo $ECHO_N "(cached) $ECHO_C" >&6 8388else 8389 cat >conftest.$ac_ext <<_ACEOF 8390/* confdefs.h. */ 8391_ACEOF 8392cat confdefs.h >>conftest.$ac_ext 8393cat >>conftest.$ac_ext <<_ACEOF 8394/* end confdefs.h. */ 8395 8396#include <libintl.h> 8397 8398int 8399main () 8400{ 8401return !dgettext ("","") 8402 ; 8403 return 0; 8404} 8405_ACEOF 8406rm -f conftest.$ac_objext conftest$ac_exeext 8407if { (ac_try="$ac_link" 8408case "(($ac_try" in 8409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8410 *) ac_try_echo=$ac_try;; 8411esac 8412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8413 (eval "$ac_link") 2>conftest.er1 8414 ac_status=$? 8415 grep -v '^ *+' conftest.er1 >conftest.err 8416 rm -f conftest.er1 8417 cat conftest.err >&5 8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8419 (exit $ac_status); } && { 8420 test -z "$ac_c_werror_flag" || 8421 test ! -s conftest.err 8422 } && test -s conftest$ac_exeext && 8423 $as_test_x conftest$ac_exeext; then 8424 gt_cv_func_dgettext_libc=yes 8425else 8426 echo "$as_me: failed program was:" >&5 8427sed 's/^/| /' conftest.$ac_ext >&5 8428 8429 gt_cv_func_dgettext_libc=no 8430fi 8431 8432rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8433 conftest$ac_exeext conftest.$ac_ext 8434 8435fi 8436{ echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5 8437echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; } 8438 fi 8439 8440 if test "$gt_cv_func_ngettext_libc" = "yes" ; then 8441 8442for ac_func in bind_textdomain_codeset 8443do 8444as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8445{ echo "$as_me:$LINENO: checking for $ac_func" >&5 8446echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 8447if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 8448 echo $ECHO_N "(cached) $ECHO_C" >&6 8449else 8450 cat >conftest.$ac_ext <<_ACEOF 8451/* confdefs.h. */ 8452_ACEOF 8453cat confdefs.h >>conftest.$ac_ext 8454cat >>conftest.$ac_ext <<_ACEOF 8455/* end confdefs.h. */ 8456/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 8457 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8458#define $ac_func innocuous_$ac_func 8459 8460/* System header to define __stub macros and hopefully few prototypes, 8461 which can conflict with char $ac_func (); below. 8462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8463 <limits.h> exists even on freestanding compilers. */ 8464 8465#ifdef __STDC__ 8466# include <limits.h> 8467#else 8468# include <assert.h> 8469#endif 8470 8471#undef $ac_func 8472 8473/* Override any GCC internal prototype to avoid an error. 8474 Use char because int might match the return type of a GCC 8475 builtin and then its argument prototype would still apply. */ 8476#ifdef __cplusplus 8477extern "C" 8478#endif 8479char $ac_func (); 8480/* The GNU C library defines this for functions which it implements 8481 to always fail with ENOSYS. Some functions are actually named 8482 something starting with __ and the normal name is an alias. */ 8483#if defined __stub_$ac_func || defined __stub___$ac_func 8484choke me 8485#endif 8486 8487int 8488main () 8489{ 8490return $ac_func (); 8491 ; 8492 return 0; 8493} 8494_ACEOF 8495rm -f conftest.$ac_objext conftest$ac_exeext 8496if { (ac_try="$ac_link" 8497case "(($ac_try" in 8498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8499 *) ac_try_echo=$ac_try;; 8500esac 8501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8502 (eval "$ac_link") 2>conftest.er1 8503 ac_status=$? 8504 grep -v '^ *+' conftest.er1 >conftest.err 8505 rm -f conftest.er1 8506 cat conftest.err >&5 8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8508 (exit $ac_status); } && { 8509 test -z "$ac_c_werror_flag" || 8510 test ! -s conftest.err 8511 } && test -s conftest$ac_exeext && 8512 $as_test_x conftest$ac_exeext; then 8513 eval "$as_ac_var=yes" 8514else 8515 echo "$as_me: failed program was:" >&5 8516sed 's/^/| /' conftest.$ac_ext >&5 8517 8518 eval "$as_ac_var=no" 8519fi 8520 8521rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8522 conftest$ac_exeext conftest.$ac_ext 8523fi 8524ac_res=`eval echo '${'$as_ac_var'}'` 8525 { echo "$as_me:$LINENO: result: $ac_res" >&5 8526echo "${ECHO_T}$ac_res" >&6; } 8527if test `eval echo '${'$as_ac_var'}'` = yes; then 8528 cat >>confdefs.h <<_ACEOF 8529#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8530_ACEOF 8531 8532fi 8533done 8534 8535 fi 8536 8537 # 8538 # If we don't have everything we want, check in libintl 8539 # 8540 if test "$gt_cv_func_dgettext_libc" != "yes" \ 8541 || test "$gt_cv_func_ngettext_libc" != "yes" \ 8542 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then 8543 8544 { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5 8545echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; } 8546if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then 8547 echo $ECHO_N "(cached) $ECHO_C" >&6 8548else 8549 ac_check_lib_save_LIBS=$LIBS 8550LIBS="-lintl $LIBS" 8551cat >conftest.$ac_ext <<_ACEOF 8552/* confdefs.h. */ 8553_ACEOF 8554cat confdefs.h >>conftest.$ac_ext 8555cat >>conftest.$ac_ext <<_ACEOF 8556/* end confdefs.h. */ 8557 8558/* Override any GCC internal prototype to avoid an error. 8559 Use char because int might match the return type of a GCC 8560 builtin and then its argument prototype would still apply. */ 8561#ifdef __cplusplus 8562extern "C" 8563#endif 8564char bindtextdomain (); 8565int 8566main () 8567{ 8568return bindtextdomain (); 8569 ; 8570 return 0; 8571} 8572_ACEOF 8573rm -f conftest.$ac_objext conftest$ac_exeext 8574if { (ac_try="$ac_link" 8575case "(($ac_try" in 8576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8577 *) ac_try_echo=$ac_try;; 8578esac 8579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8580 (eval "$ac_link") 2>conftest.er1 8581 ac_status=$? 8582 grep -v '^ *+' conftest.er1 >conftest.err 8583 rm -f conftest.er1 8584 cat conftest.err >&5 8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8586 (exit $ac_status); } && { 8587 test -z "$ac_c_werror_flag" || 8588 test ! -s conftest.err 8589 } && test -s conftest$ac_exeext && 8590 $as_test_x conftest$ac_exeext; then 8591 ac_cv_lib_intl_bindtextdomain=yes 8592else 8593 echo "$as_me: failed program was:" >&5 8594sed 's/^/| /' conftest.$ac_ext >&5 8595 8596 ac_cv_lib_intl_bindtextdomain=no 8597fi 8598 8599rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8600 conftest$ac_exeext conftest.$ac_ext 8601LIBS=$ac_check_lib_save_LIBS 8602fi 8603{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5 8604echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; } 8605if test $ac_cv_lib_intl_bindtextdomain = yes; then 8606 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5 8607echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; } 8608if test "${ac_cv_lib_intl_ngettext+set}" = set; then 8609 echo $ECHO_N "(cached) $ECHO_C" >&6 8610else 8611 ac_check_lib_save_LIBS=$LIBS 8612LIBS="-lintl $LIBS" 8613cat >conftest.$ac_ext <<_ACEOF 8614/* confdefs.h. */ 8615_ACEOF 8616cat confdefs.h >>conftest.$ac_ext 8617cat >>conftest.$ac_ext <<_ACEOF 8618/* end confdefs.h. */ 8619 8620/* Override any GCC internal prototype to avoid an error. 8621 Use char because int might match the return type of a GCC 8622 builtin and then its argument prototype would still apply. */ 8623#ifdef __cplusplus 8624extern "C" 8625#endif 8626char ngettext (); 8627int 8628main () 8629{ 8630return ngettext (); 8631 ; 8632 return 0; 8633} 8634_ACEOF 8635rm -f conftest.$ac_objext conftest$ac_exeext 8636if { (ac_try="$ac_link" 8637case "(($ac_try" in 8638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8639 *) ac_try_echo=$ac_try;; 8640esac 8641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8642 (eval "$ac_link") 2>conftest.er1 8643 ac_status=$? 8644 grep -v '^ *+' conftest.er1 >conftest.err 8645 rm -f conftest.er1 8646 cat conftest.err >&5 8647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8648 (exit $ac_status); } && { 8649 test -z "$ac_c_werror_flag" || 8650 test ! -s conftest.err 8651 } && test -s conftest$ac_exeext && 8652 $as_test_x conftest$ac_exeext; then 8653 ac_cv_lib_intl_ngettext=yes 8654else 8655 echo "$as_me: failed program was:" >&5 8656sed 's/^/| /' conftest.$ac_ext >&5 8657 8658 ac_cv_lib_intl_ngettext=no 8659fi 8660 8661rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8662 conftest$ac_exeext conftest.$ac_ext 8663LIBS=$ac_check_lib_save_LIBS 8664fi 8665{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5 8666echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; } 8667if test $ac_cv_lib_intl_ngettext = yes; then 8668 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5 8669echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; } 8670if test "${ac_cv_lib_intl_dgettext+set}" = set; then 8671 echo $ECHO_N "(cached) $ECHO_C" >&6 8672else 8673 ac_check_lib_save_LIBS=$LIBS 8674LIBS="-lintl $LIBS" 8675cat >conftest.$ac_ext <<_ACEOF 8676/* confdefs.h. */ 8677_ACEOF 8678cat confdefs.h >>conftest.$ac_ext 8679cat >>conftest.$ac_ext <<_ACEOF 8680/* end confdefs.h. */ 8681 8682/* Override any GCC internal prototype to avoid an error. 8683 Use char because int might match the return type of a GCC 8684 builtin and then its argument prototype would still apply. */ 8685#ifdef __cplusplus 8686extern "C" 8687#endif 8688char dgettext (); 8689int 8690main () 8691{ 8692return dgettext (); 8693 ; 8694 return 0; 8695} 8696_ACEOF 8697rm -f conftest.$ac_objext conftest$ac_exeext 8698if { (ac_try="$ac_link" 8699case "(($ac_try" in 8700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8701 *) ac_try_echo=$ac_try;; 8702esac 8703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8704 (eval "$ac_link") 2>conftest.er1 8705 ac_status=$? 8706 grep -v '^ *+' conftest.er1 >conftest.err 8707 rm -f conftest.er1 8708 cat conftest.err >&5 8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8710 (exit $ac_status); } && { 8711 test -z "$ac_c_werror_flag" || 8712 test ! -s conftest.err 8713 } && test -s conftest$ac_exeext && 8714 $as_test_x conftest$ac_exeext; then 8715 ac_cv_lib_intl_dgettext=yes 8716else 8717 echo "$as_me: failed program was:" >&5 8718sed 's/^/| /' conftest.$ac_ext >&5 8719 8720 ac_cv_lib_intl_dgettext=no 8721fi 8722 8723rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8724 conftest$ac_exeext conftest.$ac_ext 8725LIBS=$ac_check_lib_save_LIBS 8726fi 8727{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5 8728echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; } 8729if test $ac_cv_lib_intl_dgettext = yes; then 8730 gt_cv_func_dgettext_libintl=yes 8731fi 8732 8733fi 8734 8735fi 8736 8737 8738 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then 8739 { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5 8740echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; } 8741 { echo "$as_me:$LINENO: result: " >&5 8742echo "${ECHO_T}" >&6; } 8743 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5 8744echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; } 8745if test "${ac_cv_lib_intl_ngettext+set}" = set; then 8746 echo $ECHO_N "(cached) $ECHO_C" >&6 8747else 8748 ac_check_lib_save_LIBS=$LIBS 8749LIBS="-lintl -liconv $LIBS" 8750cat >conftest.$ac_ext <<_ACEOF 8751/* confdefs.h. */ 8752_ACEOF 8753cat confdefs.h >>conftest.$ac_ext 8754cat >>conftest.$ac_ext <<_ACEOF 8755/* end confdefs.h. */ 8756 8757/* Override any GCC internal prototype to avoid an error. 8758 Use char because int might match the return type of a GCC 8759 builtin and then its argument prototype would still apply. */ 8760#ifdef __cplusplus 8761extern "C" 8762#endif 8763char ngettext (); 8764int 8765main () 8766{ 8767return ngettext (); 8768 ; 8769 return 0; 8770} 8771_ACEOF 8772rm -f conftest.$ac_objext conftest$ac_exeext 8773if { (ac_try="$ac_link" 8774case "(($ac_try" in 8775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8776 *) ac_try_echo=$ac_try;; 8777esac 8778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8779 (eval "$ac_link") 2>conftest.er1 8780 ac_status=$? 8781 grep -v '^ *+' conftest.er1 >conftest.err 8782 rm -f conftest.er1 8783 cat conftest.err >&5 8784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8785 (exit $ac_status); } && { 8786 test -z "$ac_c_werror_flag" || 8787 test ! -s conftest.err 8788 } && test -s conftest$ac_exeext && 8789 $as_test_x conftest$ac_exeext; then 8790 ac_cv_lib_intl_ngettext=yes 8791else 8792 echo "$as_me: failed program was:" >&5 8793sed 's/^/| /' conftest.$ac_ext >&5 8794 8795 ac_cv_lib_intl_ngettext=no 8796fi 8797 8798rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8799 conftest$ac_exeext conftest.$ac_ext 8800LIBS=$ac_check_lib_save_LIBS 8801fi 8802{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5 8803echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; } 8804if test $ac_cv_lib_intl_ngettext = yes; then 8805 { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5 8806echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; } 8807if test "${ac_cv_lib_intl_dcgettext+set}" = set; then 8808 echo $ECHO_N "(cached) $ECHO_C" >&6 8809else 8810 ac_check_lib_save_LIBS=$LIBS 8811LIBS="-lintl -liconv $LIBS" 8812cat >conftest.$ac_ext <<_ACEOF 8813/* confdefs.h. */ 8814_ACEOF 8815cat confdefs.h >>conftest.$ac_ext 8816cat >>conftest.$ac_ext <<_ACEOF 8817/* end confdefs.h. */ 8818 8819/* Override any GCC internal prototype to avoid an error. 8820 Use char because int might match the return type of a GCC 8821 builtin and then its argument prototype would still apply. */ 8822#ifdef __cplusplus 8823extern "C" 8824#endif 8825char dcgettext (); 8826int 8827main () 8828{ 8829return dcgettext (); 8830 ; 8831 return 0; 8832} 8833_ACEOF 8834rm -f conftest.$ac_objext conftest$ac_exeext 8835if { (ac_try="$ac_link" 8836case "(($ac_try" in 8837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8838 *) ac_try_echo=$ac_try;; 8839esac 8840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8841 (eval "$ac_link") 2>conftest.er1 8842 ac_status=$? 8843 grep -v '^ *+' conftest.er1 >conftest.err 8844 rm -f conftest.er1 8845 cat conftest.err >&5 8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8847 (exit $ac_status); } && { 8848 test -z "$ac_c_werror_flag" || 8849 test ! -s conftest.err 8850 } && test -s conftest$ac_exeext && 8851 $as_test_x conftest$ac_exeext; then 8852 ac_cv_lib_intl_dcgettext=yes 8853else 8854 echo "$as_me: failed program was:" >&5 8855sed 's/^/| /' conftest.$ac_ext >&5 8856 8857 ac_cv_lib_intl_dcgettext=no 8858fi 8859 8860rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8861 conftest$ac_exeext conftest.$ac_ext 8862LIBS=$ac_check_lib_save_LIBS 8863fi 8864{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5 8865echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; } 8866if test $ac_cv_lib_intl_dcgettext = yes; then 8867 gt_cv_func_dgettext_libintl=yes 8868 libintl_extra_libs=-liconv 8869else 8870 : 8871fi 8872 8873else 8874 : 8875fi 8876 8877 fi 8878 8879 # 8880 # If we found libintl, then check in it for bind_textdomain_codeset(); 8881 # we'll prefer libc if neither have bind_textdomain_codeset(), 8882 # and both have dgettext and ngettext 8883 # 8884 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then 8885 glib_save_LIBS="$LIBS" 8886 LIBS="$LIBS -lintl $libintl_extra_libs" 8887 unset ac_cv_func_bind_textdomain_codeset 8888 8889for ac_func in bind_textdomain_codeset 8890do 8891as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8892{ echo "$as_me:$LINENO: checking for $ac_func" >&5 8893echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 8894if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 8895 echo $ECHO_N "(cached) $ECHO_C" >&6 8896else 8897 cat >conftest.$ac_ext <<_ACEOF 8898/* confdefs.h. */ 8899_ACEOF 8900cat confdefs.h >>conftest.$ac_ext 8901cat >>conftest.$ac_ext <<_ACEOF 8902/* end confdefs.h. */ 8903/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 8904 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8905#define $ac_func innocuous_$ac_func 8906 8907/* System header to define __stub macros and hopefully few prototypes, 8908 which can conflict with char $ac_func (); below. 8909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8910 <limits.h> exists even on freestanding compilers. */ 8911 8912#ifdef __STDC__ 8913# include <limits.h> 8914#else 8915# include <assert.h> 8916#endif 8917 8918#undef $ac_func 8919 8920/* Override any GCC internal prototype to avoid an error. 8921 Use char because int might match the return type of a GCC 8922 builtin and then its argument prototype would still apply. */ 8923#ifdef __cplusplus 8924extern "C" 8925#endif 8926char $ac_func (); 8927/* The GNU C library defines this for functions which it implements 8928 to always fail with ENOSYS. Some functions are actually named 8929 something starting with __ and the normal name is an alias. */ 8930#if defined __stub_$ac_func || defined __stub___$ac_func 8931choke me 8932#endif 8933 8934int 8935main () 8936{ 8937return $ac_func (); 8938 ; 8939 return 0; 8940} 8941_ACEOF 8942rm -f conftest.$ac_objext conftest$ac_exeext 8943if { (ac_try="$ac_link" 8944case "(($ac_try" in 8945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8946 *) ac_try_echo=$ac_try;; 8947esac 8948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8949 (eval "$ac_link") 2>conftest.er1 8950 ac_status=$? 8951 grep -v '^ *+' conftest.er1 >conftest.err 8952 rm -f conftest.er1 8953 cat conftest.err >&5 8954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8955 (exit $ac_status); } && { 8956 test -z "$ac_c_werror_flag" || 8957 test ! -s conftest.err 8958 } && test -s conftest$ac_exeext && 8959 $as_test_x conftest$ac_exeext; then 8960 eval "$as_ac_var=yes" 8961else 8962 echo "$as_me: failed program was:" >&5 8963sed 's/^/| /' conftest.$ac_ext >&5 8964 8965 eval "$as_ac_var=no" 8966fi 8967 8968rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8969 conftest$ac_exeext conftest.$ac_ext 8970fi 8971ac_res=`eval echo '${'$as_ac_var'}'` 8972 { echo "$as_me:$LINENO: result: $ac_res" >&5 8973echo "${ECHO_T}$ac_res" >&6; } 8974if test `eval echo '${'$as_ac_var'}'` = yes; then 8975 cat >>confdefs.h <<_ACEOF 8976#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8977_ACEOF 8978 8979fi 8980done 8981 8982 LIBS="$glib_save_LIBS" 8983 8984 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then 8985 gt_cv_func_dgettext_libc=no 8986 else 8987 if test "$gt_cv_func_dgettext_libc" = "yes" \ 8988 && test "$gt_cv_func_ngettext_libc" = "yes"; then 8989 gt_cv_func_dgettext_libintl=no 8990 fi 8991 fi 8992 fi 8993 fi 8994 8995 if test "$gt_cv_func_dgettext_libc" = "yes" \ 8996 || test "$gt_cv_func_dgettext_libintl" = "yes"; then 8997 gt_cv_have_gettext=yes 8998 fi 8999 9000 if test "$gt_cv_func_dgettext_libintl" = "yes"; then 9001 INTLLIBS="-lintl $libintl_extra_libs" 9002 fi 9003 9004 if test "$gt_cv_have_gettext" = "yes"; then 9005 9006cat >>confdefs.h <<\_ACEOF 9007#define HAVE_GETTEXT 1 9008_ACEOF 9009 9010 # Extract the first word of "msgfmt", so it can be a program name with args. 9011set dummy msgfmt; ac_word=$2 9012{ echo "$as_me:$LINENO: checking for $ac_word" >&5 9013echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 9014if test "${ac_cv_path_MSGFMT+set}" = set; then 9015 echo $ECHO_N "(cached) $ECHO_C" >&6 9016else 9017 case "$MSGFMT" in 9018 /*) 9019 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 9020 ;; 9021 *) 9022 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 9023 for ac_dir in $PATH; do 9024 test -z "$ac_dir" && ac_dir=. 9025 if test -f $ac_dir/$ac_word; then 9026 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then 9027 ac_cv_path_MSGFMT="$ac_dir/$ac_word" 9028 break 9029 fi 9030 fi 9031 done 9032 IFS="$ac_save_ifs" 9033 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" 9034 ;; 9035esac 9036fi 9037MSGFMT="$ac_cv_path_MSGFMT" 9038if test "$MSGFMT" != "no"; then 9039 { echo "$as_me:$LINENO: result: $MSGFMT" >&5 9040echo "${ECHO_T}$MSGFMT" >&6; } 9041else 9042 { echo "$as_me:$LINENO: result: no" >&5 9043echo "${ECHO_T}no" >&6; } 9044fi 9045 if test "$MSGFMT" != "no"; then 9046 glib_save_LIBS="$LIBS" 9047 LIBS="$LIBS $INTLLIBS" 9048 9049for ac_func in dcgettext 9050do 9051as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9052{ echo "$as_me:$LINENO: checking for $ac_func" >&5 9053echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 9054if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 9055 echo $ECHO_N "(cached) $ECHO_C" >&6 9056else 9057 cat >conftest.$ac_ext <<_ACEOF 9058/* confdefs.h. */ 9059_ACEOF 9060cat confdefs.h >>conftest.$ac_ext 9061cat >>conftest.$ac_ext <<_ACEOF 9062/* end confdefs.h. */ 9063/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 9064 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9065#define $ac_func innocuous_$ac_func 9066 9067/* System header to define __stub macros and hopefully few prototypes, 9068 which can conflict with char $ac_func (); below. 9069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9070 <limits.h> exists even on freestanding compilers. */ 9071 9072#ifdef __STDC__ 9073# include <limits.h> 9074#else 9075# include <assert.h> 9076#endif 9077 9078#undef $ac_func 9079 9080/* Override any GCC internal prototype to avoid an error. 9081 Use char because int might match the return type of a GCC 9082 builtin and then its argument prototype would still apply. */ 9083#ifdef __cplusplus 9084extern "C" 9085#endif 9086char $ac_func (); 9087/* The GNU C library defines this for functions which it implements 9088 to always fail with ENOSYS. Some functions are actually named 9089 something starting with __ and the normal name is an alias. */ 9090#if defined __stub_$ac_func || defined __stub___$ac_func 9091choke me 9092#endif 9093 9094int 9095main () 9096{ 9097return $ac_func (); 9098 ; 9099 return 0; 9100} 9101_ACEOF 9102rm -f conftest.$ac_objext conftest$ac_exeext 9103if { (ac_try="$ac_link" 9104case "(($ac_try" in 9105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9106 *) ac_try_echo=$ac_try;; 9107esac 9108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9109 (eval "$ac_link") 2>conftest.er1 9110 ac_status=$? 9111 grep -v '^ *+' conftest.er1 >conftest.err 9112 rm -f conftest.er1 9113 cat conftest.err >&5 9114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9115 (exit $ac_status); } && { 9116 test -z "$ac_c_werror_flag" || 9117 test ! -s conftest.err 9118 } && test -s conftest$ac_exeext && 9119 $as_test_x conftest$ac_exeext; then 9120 eval "$as_ac_var=yes" 9121else 9122 echo "$as_me: failed program was:" >&5 9123sed 's/^/| /' conftest.$ac_ext >&5 9124 9125 eval "$as_ac_var=no" 9126fi 9127 9128rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9129 conftest$ac_exeext conftest.$ac_ext 9130fi 9131ac_res=`eval echo '${'$as_ac_var'}'` 9132 { echo "$as_me:$LINENO: result: $ac_res" >&5 9133echo "${ECHO_T}$ac_res" >&6; } 9134if test `eval echo '${'$as_ac_var'}'` = yes; then 9135 cat >>confdefs.h <<_ACEOF 9136#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9137_ACEOF 9138 9139fi 9140done 9141 9142 MSGFMT_OPTS= 9143 { echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5 9144echo $ECHO_N "checking if msgfmt accepts -c... $ECHO_C" >&6; } 9145 cat >conftest.foo <<_ACEOF 9146 9147msgid "" 9148msgstr "" 9149"Content-Type: text/plain; charset=UTF-8\n" 9150"Project-Id-Version: test 1.0\n" 9151"PO-Revision-Date: 2007-02-15 12:01+0100\n" 9152"Last-Translator: test <foo@bar.xx>\n" 9153"Language-Team: C <LL@li.org>\n" 9154"MIME-Version: 1.0\n" 9155"Content-Transfer-Encoding: 8bit\n" 9156 9157_ACEOF 9158if { (echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5 9159 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5 9160 ac_status=$? 9161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9162 (exit $ac_status); }; then 9163 MSGFMT_OPTS=-c; { echo "$as_me:$LINENO: result: yes" >&5 9164echo "${ECHO_T}yes" >&6; } 9165else { echo "$as_me:$LINENO: result: no" >&5 9166echo "${ECHO_T}no" >&6; } 9167echo "$as_me: failed input was:" >&5 9168sed 's/^/| /' conftest.foo >&5 9169fi 9170 9171 # Extract the first word of "gmsgfmt", so it can be a program name with args. 9172set dummy gmsgfmt; ac_word=$2 9173{ echo "$as_me:$LINENO: checking for $ac_word" >&5 9174echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 9175if test "${ac_cv_path_GMSGFMT+set}" = set; then 9176 echo $ECHO_N "(cached) $ECHO_C" >&6 9177else 9178 case $GMSGFMT in 9179 [\\/]* | ?:[\\/]*) 9180 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 9181 ;; 9182 *) 9183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9184for as_dir in $PATH 9185do 9186 IFS=$as_save_IFS 9187 test -z "$as_dir" && as_dir=. 9188 for ac_exec_ext in '' $ac_executable_extensions; do 9189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9190 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 9191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 9192 break 2 9193 fi 9194done 9195done 9196IFS=$as_save_IFS 9197 9198 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 9199 ;; 9200esac 9201fi 9202GMSGFMT=$ac_cv_path_GMSGFMT 9203if test -n "$GMSGFMT"; then 9204 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5 9205echo "${ECHO_T}$GMSGFMT" >&6; } 9206else 9207 { echo "$as_me:$LINENO: result: no" >&5 9208echo "${ECHO_T}no" >&6; } 9209fi 9210 9211 9212 # Extract the first word of "xgettext", so it can be a program name with args. 9213set dummy xgettext; ac_word=$2 9214{ echo "$as_me:$LINENO: checking for $ac_word" >&5 9215echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 9216if test "${ac_cv_path_XGETTEXT+set}" = set; then 9217 echo $ECHO_N "(cached) $ECHO_C" >&6 9218else 9219 case "$XGETTEXT" in 9220 /*) 9221 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 9222 ;; 9223 *) 9224 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 9225 for ac_dir in $PATH; do 9226 test -z "$ac_dir" && ac_dir=. 9227 if test -f $ac_dir/$ac_word; then 9228 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then 9229 ac_cv_path_XGETTEXT="$ac_dir/$ac_word" 9230 break 9231 fi 9232 fi 9233 done 9234 IFS="$ac_save_ifs" 9235 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 9236 ;; 9237esac 9238fi 9239XGETTEXT="$ac_cv_path_XGETTEXT" 9240if test "$XGETTEXT" != ":"; then 9241 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5 9242echo "${ECHO_T}$XGETTEXT" >&6; } 9243else 9244 { echo "$as_me:$LINENO: result: no" >&5 9245echo "${ECHO_T}no" >&6; } 9246fi 9247 9248 cat >conftest.$ac_ext <<_ACEOF 9249/* confdefs.h. */ 9250_ACEOF 9251cat confdefs.h >>conftest.$ac_ext 9252cat >>conftest.$ac_ext <<_ACEOF 9253/* end confdefs.h. */ 9254 9255int 9256main () 9257{ 9258extern int _nl_msg_cat_cntr; 9259 return _nl_msg_cat_cntr 9260 ; 9261 return 0; 9262} 9263_ACEOF 9264rm -f conftest.$ac_objext conftest$ac_exeext 9265if { (ac_try="$ac_link" 9266case "(($ac_try" in 9267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9268 *) ac_try_echo=$ac_try;; 9269esac 9270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9271 (eval "$ac_link") 2>conftest.er1 9272 ac_status=$? 9273 grep -v '^ *+' conftest.er1 >conftest.err 9274 rm -f conftest.er1 9275 cat conftest.err >&5 9276 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9277 (exit $ac_status); } && { 9278 test -z "$ac_c_werror_flag" || 9279 test ! -s conftest.err 9280 } && test -s conftest$ac_exeext && 9281 $as_test_x conftest$ac_exeext; then 9282 CATOBJEXT=.gmo 9283 DATADIRNAME=share 9284else 9285 echo "$as_me: failed program was:" >&5 9286sed 's/^/| /' conftest.$ac_ext >&5 9287 9288 case $host in 9289 *-*-solaris*) 9290 { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5 9291echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; } 9292if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then 9293 echo $ECHO_N "(cached) $ECHO_C" >&6 9294else 9295 cat >conftest.$ac_ext <<_ACEOF 9296/* confdefs.h. */ 9297_ACEOF 9298cat confdefs.h >>conftest.$ac_ext 9299cat >>conftest.$ac_ext <<_ACEOF 9300/* end confdefs.h. */ 9301/* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset. 9302 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9303#define bind_textdomain_codeset innocuous_bind_textdomain_codeset 9304 9305/* System header to define __stub macros and hopefully few prototypes, 9306 which can conflict with char bind_textdomain_codeset (); below. 9307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9308 <limits.h> exists even on freestanding compilers. */ 9309 9310#ifdef __STDC__ 9311# include <limits.h> 9312#else 9313# include <assert.h> 9314#endif 9315 9316#undef bind_textdomain_codeset 9317 9318/* Override any GCC internal prototype to avoid an error. 9319 Use char because int might match the return type of a GCC 9320 builtin and then its argument prototype would still apply. */ 9321#ifdef __cplusplus 9322extern "C" 9323#endif 9324char bind_textdomain_codeset (); 9325/* The GNU C library defines this for functions which it implements 9326 to always fail with ENOSYS. Some functions are actually named 9327 something starting with __ and the normal name is an alias. */ 9328#if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset 9329choke me 9330#endif 9331 9332int 9333main () 9334{ 9335return bind_textdomain_codeset (); 9336 ; 9337 return 0; 9338} 9339_ACEOF 9340rm -f conftest.$ac_objext conftest$ac_exeext 9341if { (ac_try="$ac_link" 9342case "(($ac_try" in 9343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9344 *) ac_try_echo=$ac_try;; 9345esac 9346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9347 (eval "$ac_link") 2>conftest.er1 9348 ac_status=$? 9349 grep -v '^ *+' conftest.er1 >conftest.err 9350 rm -f conftest.er1 9351 cat conftest.err >&5 9352 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9353 (exit $ac_status); } && { 9354 test -z "$ac_c_werror_flag" || 9355 test ! -s conftest.err 9356 } && test -s conftest$ac_exeext && 9357 $as_test_x conftest$ac_exeext; then 9358 ac_cv_func_bind_textdomain_codeset=yes 9359else 9360 echo "$as_me: failed program was:" >&5 9361sed 's/^/| /' conftest.$ac_ext >&5 9362 9363 ac_cv_func_bind_textdomain_codeset=no 9364fi 9365 9366rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9367 conftest$ac_exeext conftest.$ac_ext 9368fi 9369{ echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5 9370echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; } 9371if test $ac_cv_func_bind_textdomain_codeset = yes; then 9372 CATOBJEXT=.gmo 9373 DATADIRNAME=share 9374else 9375 CATOBJEXT=.mo 9376 DATADIRNAME=lib 9377fi 9378 9379 ;; 9380 *) 9381 CATOBJEXT=.mo 9382 DATADIRNAME=lib 9383 ;; 9384 esac 9385fi 9386 9387rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9388 conftest$ac_exeext conftest.$ac_ext 9389 LIBS="$glib_save_LIBS" 9390 INSTOBJEXT=.mo 9391 else 9392 gt_cv_have_gettext=no 9393 fi 9394 fi 9395 9396fi 9397 9398 9399 9400 if test "$gt_cv_have_gettext" = "yes" ; then 9401 9402cat >>confdefs.h <<\_ACEOF 9403#define ENABLE_NLS 1 9404_ACEOF 9405 9406 fi 9407 9408 if test "$XGETTEXT" != ":"; then 9409 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then 9410 : ; 9411 else 9412 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 9413echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; } 9414 XGETTEXT=":" 9415 fi 9416 fi 9417 9418 # We need to process the po/ directory. 9419 POSUB=po 9420 9421 ac_config_commands="$ac_config_commands default-1" 9422 9423 9424 for lang in $ALL_LINGUAS; do 9425 GMOFILES="$GMOFILES $lang.gmo" 9426 POFILES="$POFILES $lang.po" 9427 done 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 if test "$gt_cv_have_gettext" = "yes"; then 9442 if test "x$ALL_LINGUAS" = "x"; then 9443 LINGUAS= 9444 else 9445 { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 9446echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; } 9447 NEW_LINGUAS= 9448 for presentlang in $ALL_LINGUAS; do 9449 useit=no 9450 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then 9451 desiredlanguages="$LINGUAS" 9452 else 9453 desiredlanguages="$ALL_LINGUAS" 9454 fi 9455 for desiredlang in $desiredlanguages; do 9456 # Use the presentlang catalog if desiredlang is 9457 # a. equal to presentlang, or 9458 # b. a variant of presentlang (because in this case, 9459 # presentlang can be used as a fallback for messages 9460 # which are not translated in the desiredlang catalog). 9461 case "$desiredlang" in 9462 "$presentlang"*) useit=yes;; 9463 esac 9464 done 9465 if test $useit = yes; then 9466 NEW_LINGUAS="$NEW_LINGUAS $presentlang" 9467 fi 9468 done 9469 LINGUAS=$NEW_LINGUAS 9470 { echo "$as_me:$LINENO: result: $LINGUAS" >&5 9471echo "${ECHO_T}$LINGUAS" >&6; } 9472 fi 9473 9474 if test -n "$LINGUAS"; then 9475 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done 9476 fi 9477 fi 9478 9479 MKINSTALLDIRS= 9480 if test -n "$ac_aux_dir"; then 9481 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" 9482 fi 9483 if test -z "$MKINSTALLDIRS"; then 9484 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 9485 fi 9486 9487 9488 test -d po || mkdir po 9489 if test "x$srcdir" != "x."; then 9490 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then 9491 posrcprefix="$srcdir/" 9492 else 9493 posrcprefix="../$srcdir/" 9494 fi 9495 else 9496 posrcprefix="../" 9497 fi 9498 rm -f po/POTFILES 9499 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ 9500 < $srcdir/po/POTFILES.in > po/POTFILES 9501 9502######################################################### 9503######################################################### 9504 9505 9506#PACKAGE CHECKS############################################# 9507######################################################### 9508 9509 9510if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 9511 if test -n "$ac_tool_prefix"; then 9512 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 9513set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 9514{ echo "$as_me:$LINENO: checking for $ac_word" >&5 9515echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 9516if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 9517 echo $ECHO_N "(cached) $ECHO_C" >&6 9518else 9519 case $PKG_CONFIG in 9520 [\\/]* | ?:[\\/]*) 9521 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 9522 ;; 9523 *) 9524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9525for as_dir in $PATH 9526do 9527 IFS=$as_save_IFS 9528 test -z "$as_dir" && as_dir=. 9529 for ac_exec_ext in '' $ac_executable_extensions; do 9530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9531 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 9532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 9533 break 2 9534 fi 9535done 9536done 9537IFS=$as_save_IFS 9538 9539 ;; 9540esac 9541fi 9542PKG_CONFIG=$ac_cv_path_PKG_CONFIG 9543if test -n "$PKG_CONFIG"; then 9544 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 9545echo "${ECHO_T}$PKG_CONFIG" >&6; } 9546else 9547 { echo "$as_me:$LINENO: result: no" >&5 9548echo "${ECHO_T}no" >&6; } 9549fi 9550 9551 9552fi 9553if test -z "$ac_cv_path_PKG_CONFIG"; then 9554 ac_pt_PKG_CONFIG=$PKG_CONFIG 9555 # Extract the first word of "pkg-config", so it can be a program name with args. 9556set dummy pkg-config; ac_word=$2 9557{ echo "$as_me:$LINENO: checking for $ac_word" >&5 9558echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 9559if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 9560 echo $ECHO_N "(cached) $ECHO_C" >&6 9561else 9562 case $ac_pt_PKG_CONFIG in 9563 [\\/]* | ?:[\\/]*) 9564 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 9565 ;; 9566 *) 9567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9568for as_dir in $PATH 9569do 9570 IFS=$as_save_IFS 9571 test -z "$as_dir" && as_dir=. 9572 for ac_exec_ext in '' $ac_executable_extensions; do 9573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9574 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 9575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 9576 break 2 9577 fi 9578done 9579done 9580IFS=$as_save_IFS 9581 9582 ;; 9583esac 9584fi 9585ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 9586if test -n "$ac_pt_PKG_CONFIG"; then 9587 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 9588echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } 9589else 9590 { echo "$as_me:$LINENO: result: no" >&5 9591echo "${ECHO_T}no" >&6; } 9592fi 9593 9594 if test "x$ac_pt_PKG_CONFIG" = x; then 9595 PKG_CONFIG="" 9596 else 9597 case $cross_compiling:$ac_tool_warned in 9598yes:) 9599{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 9600whose name does not start with the host triplet. If you think this 9601configuration is useful to you, please write to autoconf@gnu.org." >&5 9602echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 9603whose name does not start with the host triplet. If you think this 9604configuration is useful to you, please write to autoconf@gnu.org." >&2;} 9605ac_tool_warned=yes ;; 9606esac 9607 PKG_CONFIG=$ac_pt_PKG_CONFIG 9608 fi 9609else 9610 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 9611fi 9612 9613fi 9614if test -n "$PKG_CONFIG"; then 9615 _pkg_min_version=0.9.0 9616 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 9617echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; } 9618 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 9619 { echo "$as_me:$LINENO: result: yes" >&5 9620echo "${ECHO_T}yes" >&6; } 9621 else 9622 { echo "$as_me:$LINENO: result: no" >&5 9623echo "${ECHO_T}no" >&6; } 9624 PKG_CONFIG="" 9625 fi 9626 9627fi 9628 9629pkg_failed=no 9630{ echo "$as_me:$LINENO: checking for PACKAGE" >&5 9631echo $ECHO_N "checking for PACKAGE... $ECHO_C" >&6; } 9632 9633if test -n "$PKG_CONFIG"; then 9634 if test -n "$PACKAGE_CFLAGS"; then 9635 pkg_cv_PACKAGE_CFLAGS="$PACKAGE_CFLAGS" 9636 else 9637 if test -n "$PKG_CONFIG" && \ 9638 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.4.0 libglade-2.0 glib-2.0 gthread-2.0\"") >&5 9639 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.4.0 libglade-2.0 glib-2.0 gthread-2.0") 2>&5 9640 ac_status=$? 9641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9642 (exit $ac_status); }; then 9643 pkg_cv_PACKAGE_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4.0 libglade-2.0 glib-2.0 gthread-2.0" 2>/dev/null` 9644else 9645 pkg_failed=yes 9646fi 9647 fi 9648else 9649 pkg_failed=untried 9650fi 9651if test -n "$PKG_CONFIG"; then 9652 if test -n "$PACKAGE_LIBS"; then 9653 pkg_cv_PACKAGE_LIBS="$PACKAGE_LIBS" 9654 else 9655 if test -n "$PKG_CONFIG" && \ 9656 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.4.0 libglade-2.0 glib-2.0 gthread-2.0\"") >&5 9657 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.4.0 libglade-2.0 glib-2.0 gthread-2.0") 2>&5 9658 ac_status=$? 9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9660 (exit $ac_status); }; then 9661 pkg_cv_PACKAGE_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4.0 libglade-2.0 glib-2.0 gthread-2.0" 2>/dev/null` 9662else 9663 pkg_failed=yes 9664fi 9665 fi 9666else 9667 pkg_failed=untried 9668fi 9669 9670 9671 9672if test $pkg_failed = yes; then 9673 9674if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 9675 _pkg_short_errors_supported=yes 9676else 9677 _pkg_short_errors_supported=no 9678fi 9679 if test $_pkg_short_errors_supported = yes; then 9680 PACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4.0 libglade-2.0 glib-2.0 gthread-2.0"` 9681 else 9682 PACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4.0 libglade-2.0 glib-2.0 gthread-2.0"` 9683 fi 9684 # Put the nasty error message in config.log where it belongs 9685 echo "$PACKAGE_PKG_ERRORS" >&5 9686 9687 { { echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0 >= 2.4.0 libglade-2.0 glib-2.0 gthread-2.0) were not met: 9688 9689$PACKAGE_PKG_ERRORS 9690 9691Consider adjusting the PKG_CONFIG_PATH environment variable if you 9692installed software in a non-standard prefix. 9693 9694Alternatively, you may set the environment variables PACKAGE_CFLAGS 9695and PACKAGE_LIBS to avoid the need to call pkg-config. 9696See the pkg-config man page for more details. 9697" >&5 9698echo "$as_me: error: Package requirements (gtk+-2.0 >= 2.4.0 libglade-2.0 glib-2.0 gthread-2.0) were not met: 9699 9700$PACKAGE_PKG_ERRORS 9701 9702Consider adjusting the PKG_CONFIG_PATH environment variable if you 9703installed software in a non-standard prefix. 9704 9705Alternatively, you may set the environment variables PACKAGE_CFLAGS 9706and PACKAGE_LIBS to avoid the need to call pkg-config. 9707See the pkg-config man page for more details. 9708" >&2;} 9709 { (exit 1); exit 1; }; } 9710elif test $pkg_failed = untried; then 9711 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 9712is in your PATH or set the PKG_CONFIG environment variable to the full 9713path to pkg-config. 9714 9715Alternatively, you may set the environment variables PACKAGE_CFLAGS 9716and PACKAGE_LIBS to avoid the need to call pkg-config. 9717See the pkg-config man page for more details. 9718 9719To get pkg-config, see <http://pkg-config.freedesktop.org/>. 9720See \`config.log' for more details." >&5 9721echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 9722is in your PATH or set the PKG_CONFIG environment variable to the full 9723path to pkg-config. 9724 9725Alternatively, you may set the environment variables PACKAGE_CFLAGS 9726and PACKAGE_LIBS to avoid the need to call pkg-config. 9727See the pkg-config man page for more details. 9728 9729To get pkg-config, see <http://pkg-config.freedesktop.org/>. 9730See \`config.log' for more details." >&2;} 9731 { (exit 1); exit 1; }; } 9732else 9733 PACKAGE_CFLAGS=$pkg_cv_PACKAGE_CFLAGS 9734 PACKAGE_LIBS=$pkg_cv_PACKAGE_LIBS 9735 { echo "$as_me:$LINENO: result: yes" >&5 9736echo "${ECHO_T}yes" >&6; } 9737 : 9738fi 9739if test -n "$PKG_CONFIG" && \ 9740 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-1 dbus-glib-1\"") >&5 9741 ($PKG_CONFIG --exists --print-errors "dbus-1 dbus-glib-1") 2>&5 9742 ac_status=$? 9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9744 (exit $ac_status); }; then 9745 ac_my_dbus_usable=yes 9746else 9747 ac_my_dbus_usable=no 9748fi 9749if ( test x${ac_my_dbus_usable} = "xyes" ) ; then 9750 if test -n "$PKG_CONFIG"; then 9751 if test -n "$dbus_CFLAGS"; then 9752 pkg_cv_dbus_CFLAGS="$dbus_CFLAGS" 9753 else 9754 if test -n "$PKG_CONFIG" && \ 9755 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-1 dbus-glib-1\"") >&5 9756 ($PKG_CONFIG --exists --print-errors "dbus-1 dbus-glib-1") 2>&5 9757 ac_status=$? 9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9759 (exit $ac_status); }; then 9760 pkg_cv_dbus_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 dbus-glib-1" 2>/dev/null` 9761else 9762 pkg_failed=yes 9763fi 9764 fi 9765else 9766 pkg_failed=untried 9767fi 9768 PACKAGE_CFLAGS="${PACKAGE_CFLAGS} ${pkg_cv_dbus_CFLAGS}" 9769 if test -n "$PKG_CONFIG"; then 9770 if test -n "$dbus_LIBS"; then 9771 pkg_cv_dbus_LIBS="$dbus_LIBS" 9772 else 9773 if test -n "$PKG_CONFIG" && \ 9774 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-1 dbus-glib-1\"") >&5 9775 ($PKG_CONFIG --exists --print-errors "dbus-1 dbus-glib-1") 2>&5 9776 ac_status=$? 9777 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9778 (exit $ac_status); }; then 9779 pkg_cv_dbus_LIBS=`$PKG_CONFIG --libs "dbus-1 dbus-glib-1" 2>/dev/null` 9780else 9781 pkg_failed=yes 9782fi 9783 fi 9784else 9785 pkg_failed=untried 9786fi 9787 PACKAGE_LIBS="${PACKAGE_LIBS} ${pkg_cv_dbus_LIBS}" 9788fi 9789 9790 9791 9792 9793######################################################### 9794######################################################### 9795 9796 9797 9798######################################################### 9799######################################################### 9800# fist remove symlinks in ffmpeg dir 9801# these symlinks are needed for static linking, but make dynamic 9802# linking fail if you first configured with static and then with 9803# dynamic ffmpeg 9804######################################################### 9805rm ffmpeg/adler32.h >/dev/null 2>&1 || echo "" > /dev/null 9806rm ffmpeg/avcodec.h >/dev/null 2>&1 || echo "" > /dev/null 9807rm ffmpeg/avutil.h >/dev/null 2>&1 || echo "" > /dev/null 9808rm ffmpeg/avdevice.h >/dev/null 2>&1 || echo "" > /dev/null 9809rm ffmpeg/common.h >/dev/null 2>&1 || echo "" > /dev/null 9810rm ffmpeg/dsputil.h >/dev/null 2>&1 || echo "" > /dev/null 9811rm ffmpeg/integer.h >/dev/null 2>&1 || echo "" > /dev/null 9812rm ffmpeg/intfloat_readwrite.h >/dev/null 2>&1 || echo "" > /dev/null 9813rm ffmpeg/log.h >/dev/null 2>&1 || echo "" > /dev/null 9814rm ffmpeg/mathematics.h >/dev/null 2>&1 || echo "" > /dev/null 9815rm ffmpeg/md5.h >/dev/null 2>&1 || echo "" > /dev/null 9816rm ffmpeg/rational.h >/dev/null 2>&1 || echo "" > /dev/null 9817rm ffmpeg/avformat.h >/dev/null 2>&1 || echo "" > /dev/null 9818rm ffmpeg/avio.h >/dev/null 2>&1 || echo "" > /dev/null 9819rm ffmpeg/rtp.h >/dev/null 2>&1 || echo "" > /dev/null 9820rm ffmpeg/rtsp.h >/dev/null 2>&1 || echo "" > /dev/null 9821rm ffmpeg/rtspcodes.h >/dev/null 2>&1 || echo "" > /dev/null 9822rm ffmpeg/rtp_h264.h >/dev/null 2>&1 || echo "" > /dev/null 9823rm ffmpeg/rtp_internal.h >/dev/null 2>&1 || echo "" > /dev/null 9824rm ffmpeg/rtp_aac.h >/dev/null 2>&1 || echo "" > /dev/null 9825rm ffmpeg/rtp_mpv.h >/dev/null 2>&1 || echo "" > /dev/null 9826rm ffmpeg/fifo.h >/dev/null 2>&1 || echo "" > /dev/null 9827rm ffmpeg/swscale.h >/dev/null 2>&1 || echo "" > /dev/null 9828rm ffmpeg/rgb2rgb.h >/dev/null 2>&1 || echo "" > /dev/null 9829######################################################### 9830######################################################### 9831 9832 9833######################################################### 9834######################################################### 9835# define macro 9836# AC_CHECK_LIB_STATIC(LIBRARY, FUNCTION, 9837# [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND], 9838# [OTHER-LIBRARIES]) 9839######################################################### 9840 9841# set defaults for ld parameters to trigger static/dynamic linking 9842# they should be adapted prior to calling this function 9843 9844ac_my_static_ld="-Wl,-Bstatic" 9845ac_my_dynamic_ld="-Wl,-Bdynamic" 9846 9847# Use a cache variable name containing both the library and function name, 9848# because the test really is for library $1 defining function $2, not 9849# just for library $1. Separate tests with the same $1 and different $2s 9850# may have different results. 9851 9852# Note that using directly AS_VAR_PUSHDEF([ac_Lib], [ac_cv_lib_$1_$2]) 9853# is asking for troubles, since AC_CHECK_LIB($lib, fun) would give 9854# ac_cv_lib_$lib_fun, which is definitely not what was meant. Hence 9855# the AS_LITERAL_IF indirection. 9856 9857# FIXME: This macro is extremely suspicious. It DEFINEs unconditionally, 9858# whatever the FUNCTION, in addition to not being a *S macro. Note 9859# that the cache does depend upon the function we are looking for. 9860 9861# It is on purpose we used `ac_check_lib_save_LIBS' and not just 9862# `ac_save_LIBS': there are many macros which don't want to see `LIBS' 9863# changed but still want to use AC_CHECK_LIB, so they save `LIBS'. 9864# And ``ac_save_LIBS' is too tempting a name, so let's leave them some 9865# freedom. 9866 9867# AC_CHECK_LIB_STATIC 9868######################################################### 9869######################################################### 9870 9871 9872######################################################### 9873######################################################### 9874# find operating system 9875# can't do that with other Makefile defines because I need OS specific 9876# ld params for testing 9877######################################################### 9878 if test x`(uname -s)` = xSunOS; then 9879 SOLARIS_TRUE= 9880 SOLARIS_FALSE='#' 9881else 9882 SOLARIS_TRUE='#' 9883 SOLARIS_FALSE= 9884fi 9885 9886 if test x`(uname -s)` = xLinux; then 9887 LINUX_TRUE= 9888 LINUX_FALSE='#' 9889else 9890 LINUX_TRUE='#' 9891 LINUX_FALSE= 9892fi 9893 9894 if test x`(uname -s)` = xHP-UX; then 9895 HPUX_TRUE= 9896 HPUX_FALSE='#' 9897else 9898 HPUX_TRUE='#' 9899 HPUX_FALSE= 9900fi 9901 9902if ( test x${HPUX_TRUE} = x ) ; then 9903 ac_my_static_ld="-a archive" 9904 ac_my_dynamic_ld="-a default" 9905else 9906 ac_my_static_ld="-Wl,-Bstatic" 9907 ac_my_dynamic_ld="-Wl,-Bdynamic" 9908fi 9909 if test x`(uname -s)` = xFreeBSD; then 9910 FREEBSD_TRUE= 9911 FREEBSD_FALSE='#' 9912else 9913 FREEBSD_TRUE='#' 9914 FREEBSD_FALSE= 9915fi 9916 9917######################################################### 9918######################################################### 9919 9920 9921######################################################### 9922######################################################### 9923# user options 9924######################################################### 9925 9926# Check whether --with-forced-embedded-ffmpeg was given. 9927if test "${with_forced_embedded_ffmpeg+set}" = set; then 9928 withval=$with_forced_embedded_ffmpeg; ac_cv_with_embedded_ffmpeg=$withval 9929else 9930 ac_cv_with_embedded_ffmpeg=yes 9931fi 9932 9933 9934# set static_avcodec = yes if avcodec is in 9935static_avcodec=${ac_cv_with_embedded_ffmpeg} 9936 9937# if avcodec is static, avformat and avutil are, too. 9938test x$static_avcodec = xyes && static_avformat=yes 9939test x$static_avcodec = xyes && static_avutil=yes 9940 9941# Check whether --enable-libmp3lame was given. 9942if test "${enable_libmp3lame+set}" = set; then 9943 enableval=$enable_libmp3lame; ac_cv_enable_libmp3lame=$enableval 9944else 9945 ac_cv_enable_libmp3lame=yes 9946fi 9947 9948# Check whether --enable-libtheora was given. 9949if test "${enable_libtheora+set}" = set; then 9950 enableval=$enable_libtheora; ac_cv_enable_libtheora=$enableval 9951else 9952 ac_cv_enable_libtheora=no 9953fi 9954 9955######################################################### 9956######################################################### 9957 9958 9959######################################################### 9960######################################################### 9961# Checks for libraries. 9962######################################################### 9963 9964######################################################### 9965# X11 libraries 9966######################################################### 9967 9968if test "x${ac_cv_have_x}" = "x" ; then 9969 echo "xvidcap needs X11 runtime and build environment" 9970 exit 1 9971fi 9972 9973# first check for Xmu without tweaking, then in X11 paths 9974 9975{ echo "$as_me:$LINENO: checking for XmuClientWindow in -lXmu" >&5 9976echo $ECHO_N "checking for XmuClientWindow in -lXmu... $ECHO_C" >&6; } 9977if test "${ac_cv_lib_Xmu_XmuClientWindow+set}" = set; then 9978 echo $ECHO_N "(cached) $ECHO_C" >&6 9979else 9980 ac_check_lib_save_LIBS=$LIBS 9981LIBS="-lXmu $LIBS" 9982cat >conftest.$ac_ext <<_ACEOF 9983/* confdefs.h. */ 9984_ACEOF 9985cat confdefs.h >>conftest.$ac_ext 9986cat >>conftest.$ac_ext <<_ACEOF 9987/* end confdefs.h. */ 9988 9989/* Override any GCC internal prototype to avoid an error. 9990 Use char because int might match the return type of a GCC 9991 builtin and then its argument prototype would still apply. */ 9992#ifdef __cplusplus 9993extern "C" 9994#endif 9995char XmuClientWindow (); 9996int 9997main () 9998{ 9999return XmuClientWindow (); 10000 ; 10001 return 0; 10002} 10003_ACEOF 10004rm -f conftest.$ac_objext conftest$ac_exeext 10005if { (ac_try="$ac_link" 10006case "(($ac_try" in 10007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10008 *) ac_try_echo=$ac_try;; 10009esac 10010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10011 (eval "$ac_link") 2>conftest.er1 10012 ac_status=$? 10013 grep -v '^ *+' conftest.er1 >conftest.err 10014 rm -f conftest.er1 10015 cat conftest.err >&5 10016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10017 (exit $ac_status); } && { 10018 test -z "$ac_c_werror_flag" || 10019 test ! -s conftest.err 10020 } && test -s conftest$ac_exeext && 10021 $as_test_x conftest$ac_exeext; then 10022 ac_cv_lib_Xmu_XmuClientWindow=yes 10023else 10024 echo "$as_me: failed program was:" >&5 10025sed 's/^/| /' conftest.$ac_ext >&5 10026 10027 ac_cv_lib_Xmu_XmuClientWindow=no 10028fi 10029 10030rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10031 conftest$ac_exeext conftest.$ac_ext 10032LIBS=$ac_check_lib_save_LIBS 10033fi 10034{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuClientWindow" >&5 10035echo "${ECHO_T}$ac_cv_lib_Xmu_XmuClientWindow" >&6; } 10036if test $ac_cv_lib_Xmu_XmuClientWindow = yes; then 10037 cat >>confdefs.h <<_ACEOF 10038#define HAVE_LIBXMU 1 10039_ACEOF 10040 10041 LIBS="-lXmu $LIBS" 10042 10043else 10044 unset ac_cv_lib_Xmu_XmuClientWindow; echo "Couldn't find libXmu in LD_LIBRARY_PATH, checking X11 paths"; { echo "$as_me:$LINENO: checking for XmuClientWindow in -lXmu" >&5 10045echo $ECHO_N "checking for XmuClientWindow in -lXmu... $ECHO_C" >&6; } 10046if test "${ac_cv_lib_Xmu_XmuClientWindow+set}" = set; then 10047 echo $ECHO_N "(cached) $ECHO_C" >&6 10048else 10049 ac_check_lib_save_LIBS=$LIBS 10050LIBS="-lXmu -L${ac_x_libraries} $LIBS" 10051cat >conftest.$ac_ext <<_ACEOF 10052/* confdefs.h. */ 10053_ACEOF 10054cat confdefs.h >>conftest.$ac_ext 10055cat >>conftest.$ac_ext <<_ACEOF 10056/* end confdefs.h. */ 10057 10058/* Override any GCC internal prototype to avoid an error. 10059 Use char because int might match the return type of a GCC 10060 builtin and then its argument prototype would still apply. */ 10061#ifdef __cplusplus 10062extern "C" 10063#endif 10064char XmuClientWindow (); 10065int 10066main () 10067{ 10068return XmuClientWindow (); 10069 ; 10070 return 0; 10071} 10072_ACEOF 10073rm -f conftest.$ac_objext conftest$ac_exeext 10074if { (ac_try="$ac_link" 10075case "(($ac_try" in 10076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10077 *) ac_try_echo=$ac_try;; 10078esac 10079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10080 (eval "$ac_link") 2>conftest.er1 10081 ac_status=$? 10082 grep -v '^ *+' conftest.er1 >conftest.err 10083 rm -f conftest.er1 10084 cat conftest.err >&5 10085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10086 (exit $ac_status); } && { 10087 test -z "$ac_c_werror_flag" || 10088 test ! -s conftest.err 10089 } && test -s conftest$ac_exeext && 10090 $as_test_x conftest$ac_exeext; then 10091 ac_cv_lib_Xmu_XmuClientWindow=yes 10092else 10093 echo "$as_me: failed program was:" >&5 10094sed 's/^/| /' conftest.$ac_ext >&5 10095 10096 ac_cv_lib_Xmu_XmuClientWindow=no 10097fi 10098 10099rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10100 conftest$ac_exeext conftest.$ac_ext 10101LIBS=$ac_check_lib_save_LIBS 10102fi 10103{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuClientWindow" >&5 10104echo "${ECHO_T}$ac_cv_lib_Xmu_XmuClientWindow" >&6; } 10105if test $ac_cv_lib_Xmu_XmuClientWindow = yes; then 10106 LDFLAGS="${LDFLAGS} -L${ac_x_libraries} -Xlinker -R${ac_x_libraries}"; LIBS="${LIBS} -lXmu" 10107else 10108 echo "libXmu required for drawing the frame around the area to capture" && exit 1 10109fi 10110 10111fi 10112 10113 10114# first check for Xfixes without tweaking, then in X11 paths 10115 10116{ echo "$as_me:$LINENO: checking for XFixesGetCursorImage in -lXfixes" >&5 10117echo $ECHO_N "checking for XFixesGetCursorImage in -lXfixes... $ECHO_C" >&6; } 10118if test "${ac_cv_lib_Xfixes_XFixesGetCursorImage+set}" = set; then 10119 echo $ECHO_N "(cached) $ECHO_C" >&6 10120else 10121 ac_check_lib_save_LIBS=$LIBS 10122LIBS="-lXfixes $LIBS" 10123cat >conftest.$ac_ext <<_ACEOF 10124/* confdefs.h. */ 10125_ACEOF 10126cat confdefs.h >>conftest.$ac_ext 10127cat >>conftest.$ac_ext <<_ACEOF 10128/* end confdefs.h. */ 10129 10130/* Override any GCC internal prototype to avoid an error. 10131 Use char because int might match the return type of a GCC 10132 builtin and then its argument prototype would still apply. */ 10133#ifdef __cplusplus 10134extern "C" 10135#endif 10136char XFixesGetCursorImage (); 10137int 10138main () 10139{ 10140return XFixesGetCursorImage (); 10141 ; 10142 return 0; 10143} 10144_ACEOF 10145rm -f conftest.$ac_objext conftest$ac_exeext 10146if { (ac_try="$ac_link" 10147case "(($ac_try" in 10148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10149 *) ac_try_echo=$ac_try;; 10150esac 10151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10152 (eval "$ac_link") 2>conftest.er1 10153 ac_status=$? 10154 grep -v '^ *+' conftest.er1 >conftest.err 10155 rm -f conftest.er1 10156 cat conftest.err >&5 10157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10158 (exit $ac_status); } && { 10159 test -z "$ac_c_werror_flag" || 10160 test ! -s conftest.err 10161 } && test -s conftest$ac_exeext && 10162 $as_test_x conftest$ac_exeext; then 10163 ac_cv_lib_Xfixes_XFixesGetCursorImage=yes 10164else 10165 echo "$as_me: failed program was:" >&5 10166sed 's/^/| /' conftest.$ac_ext >&5 10167 10168 ac_cv_lib_Xfixes_XFixesGetCursorImage=no 10169fi 10170 10171rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10172 conftest$ac_exeext conftest.$ac_ext 10173LIBS=$ac_check_lib_save_LIBS 10174fi 10175{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xfixes_XFixesGetCursorImage" >&5 10176echo "${ECHO_T}$ac_cv_lib_Xfixes_XFixesGetCursorImage" >&6; } 10177if test $ac_cv_lib_Xfixes_XFixesGetCursorImage = yes; then 10178 cat >>confdefs.h <<_ACEOF 10179#define HAVE_LIBXFIXES 1 10180_ACEOF 10181 10182 LIBS="-lXfixes $LIBS" 10183 10184else 10185 unset ac_cv_lib_Xfixes_XFixesGetCursorImage; echo "Couldn't find libXfixes in LD_LIBRARY_PATH, checking X11 paths"; { echo "$as_me:$LINENO: checking for XFixesGetCursorImage in -lXfixes" >&5 10186echo $ECHO_N "checking for XFixesGetCursorImage in -lXfixes... $ECHO_C" >&6; } 10187if test "${ac_cv_lib_Xfixes_XFixesGetCursorImage+set}" = set; then 10188 echo $ECHO_N "(cached) $ECHO_C" >&6 10189else 10190 ac_check_lib_save_LIBS=$LIBS 10191LIBS="-lXfixes -L${ac_x_libraries} $LIBS" 10192cat >conftest.$ac_ext <<_ACEOF 10193/* confdefs.h. */ 10194_ACEOF 10195cat confdefs.h >>conftest.$ac_ext 10196cat >>conftest.$ac_ext <<_ACEOF 10197/* end confdefs.h. */ 10198 10199/* Override any GCC internal prototype to avoid an error. 10200 Use char because int might match the return type of a GCC 10201 builtin and then its argument prototype would still apply. */ 10202#ifdef __cplusplus 10203extern "C" 10204#endif 10205char XFixesGetCursorImage (); 10206int 10207main () 10208{ 10209return XFixesGetCursorImage (); 10210 ; 10211 return 0; 10212} 10213_ACEOF 10214rm -f conftest.$ac_objext conftest$ac_exeext 10215if { (ac_try="$ac_link" 10216case "(($ac_try" in 10217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10218 *) ac_try_echo=$ac_try;; 10219esac 10220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10221 (eval "$ac_link") 2>conftest.er1 10222 ac_status=$? 10223 grep -v '^ *+' conftest.er1 >conftest.err 10224 rm -f conftest.er1 10225 cat conftest.err >&5 10226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10227 (exit $ac_status); } && { 10228 test -z "$ac_c_werror_flag" || 10229 test ! -s conftest.err 10230 } && test -s conftest$ac_exeext && 10231 $as_test_x conftest$ac_exeext; then 10232 ac_cv_lib_Xfixes_XFixesGetCursorImage=yes 10233else 10234 echo "$as_me: failed program was:" >&5 10235sed 's/^/| /' conftest.$ac_ext >&5 10236 10237 ac_cv_lib_Xfixes_XFixesGetCursorImage=no 10238fi 10239 10240rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10241 conftest$ac_exeext conftest.$ac_ext 10242LIBS=$ac_check_lib_save_LIBS 10243fi 10244{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xfixes_XFixesGetCursorImage" >&5 10245echo "${ECHO_T}$ac_cv_lib_Xfixes_XFixesGetCursorImage" >&6; } 10246if test $ac_cv_lib_Xfixes_XFixesGetCursorImage = yes; then 10247 LDFLAGS="${LDFLAGS} -L${ac_x_libraries} -Xlinker -R${ac_x_libraries}"; LIBS="${LIBS} -lXfixes" 10248else 10249 echo "libXfixes not available, cannot capture real mouse pointer" 10250fi 10251 10252fi 10253 10254 10255# first check for Xdamage without tweaking, then in X11 paths 10256 10257{ echo "$as_me:$LINENO: checking for XDamageSubtract in -lXdamage" >&5 10258echo $ECHO_N "checking for XDamageSubtract in -lXdamage... $ECHO_C" >&6; } 10259if test "${ac_cv_lib_Xdamage_XDamageSubtract+set}" = set; then 10260 echo $ECHO_N "(cached) $ECHO_C" >&6 10261else 10262 ac_check_lib_save_LIBS=$LIBS 10263LIBS="-lXdamage $LIBS" 10264cat >conftest.$ac_ext <<_ACEOF 10265/* confdefs.h. */ 10266_ACEOF 10267cat confdefs.h >>conftest.$ac_ext 10268cat >>conftest.$ac_ext <<_ACEOF 10269/* end confdefs.h. */ 10270 10271/* Override any GCC internal prototype to avoid an error. 10272 Use char because int might match the return type of a GCC 10273 builtin and then its argument prototype would still apply. */ 10274#ifdef __cplusplus 10275extern "C" 10276#endif 10277char XDamageSubtract (); 10278int 10279main () 10280{ 10281return XDamageSubtract (); 10282 ; 10283 return 0; 10284} 10285_ACEOF 10286rm -f conftest.$ac_objext conftest$ac_exeext 10287if { (ac_try="$ac_link" 10288case "(($ac_try" in 10289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10290 *) ac_try_echo=$ac_try;; 10291esac 10292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10293 (eval "$ac_link") 2>conftest.er1 10294 ac_status=$? 10295 grep -v '^ *+' conftest.er1 >conftest.err 10296 rm -f conftest.er1 10297 cat conftest.err >&5 10298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10299 (exit $ac_status); } && { 10300 test -z "$ac_c_werror_flag" || 10301 test ! -s conftest.err 10302 } && test -s conftest$ac_exeext && 10303 $as_test_x conftest$ac_exeext; then 10304 ac_cv_lib_Xdamage_XDamageSubtract=yes 10305else 10306 echo "$as_me: failed program was:" >&5 10307sed 's/^/| /' conftest.$ac_ext >&5 10308 10309 ac_cv_lib_Xdamage_XDamageSubtract=no 10310fi 10311 10312rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10313 conftest$ac_exeext conftest.$ac_ext 10314LIBS=$ac_check_lib_save_LIBS 10315fi 10316{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xdamage_XDamageSubtract" >&5 10317echo "${ECHO_T}$ac_cv_lib_Xdamage_XDamageSubtract" >&6; } 10318if test $ac_cv_lib_Xdamage_XDamageSubtract = yes; then 10319 cat >>confdefs.h <<_ACEOF 10320#define HAVE_LIBXDAMAGE 1 10321_ACEOF 10322 10323 LIBS="-lXdamage $LIBS" 10324 10325else 10326 unset ac_cv_lib_Xdamage_XDamageSubtract; echo "Couldn't find libXdamage in LD_LIBRARY_PATH, checking X11 paths"; { echo "$as_me:$LINENO: checking for XDamageSubtract in -lXdamage" >&5 10327echo $ECHO_N "checking for XDamageSubtract in -lXdamage... $ECHO_C" >&6; } 10328if test "${ac_cv_lib_Xdamage_XDamageSubtract+set}" = set; then 10329 echo $ECHO_N "(cached) $ECHO_C" >&6 10330else 10331 ac_check_lib_save_LIBS=$LIBS 10332LIBS="-lXdamage -L${ac_x_libraries} $LIBS" 10333cat >conftest.$ac_ext <<_ACEOF 10334/* confdefs.h. */ 10335_ACEOF 10336cat confdefs.h >>conftest.$ac_ext 10337cat >>conftest.$ac_ext <<_ACEOF 10338/* end confdefs.h. */ 10339 10340/* Override any GCC internal prototype to avoid an error. 10341 Use char because int might match the return type of a GCC 10342 builtin and then its argument prototype would still apply. */ 10343#ifdef __cplusplus 10344extern "C" 10345#endif 10346char XDamageSubtract (); 10347int 10348main () 10349{ 10350return XDamageSubtract (); 10351 ; 10352 return 0; 10353} 10354_ACEOF 10355rm -f conftest.$ac_objext conftest$ac_exeext 10356if { (ac_try="$ac_link" 10357case "(($ac_try" in 10358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10359 *) ac_try_echo=$ac_try;; 10360esac 10361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10362 (eval "$ac_link") 2>conftest.er1 10363 ac_status=$? 10364 grep -v '^ *+' conftest.er1 >conftest.err 10365 rm -f conftest.er1 10366 cat conftest.err >&5 10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10368 (exit $ac_status); } && { 10369 test -z "$ac_c_werror_flag" || 10370 test ! -s conftest.err 10371 } && test -s conftest$ac_exeext && 10372 $as_test_x conftest$ac_exeext; then 10373 ac_cv_lib_Xdamage_XDamageSubtract=yes 10374else 10375 echo "$as_me: failed program was:" >&5 10376sed 's/^/| /' conftest.$ac_ext >&5 10377 10378 ac_cv_lib_Xdamage_XDamageSubtract=no 10379fi 10380 10381rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10382 conftest$ac_exeext conftest.$ac_ext 10383LIBS=$ac_check_lib_save_LIBS 10384fi 10385{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xdamage_XDamageSubtract" >&5 10386echo "${ECHO_T}$ac_cv_lib_Xdamage_XDamageSubtract" >&6; } 10387if test $ac_cv_lib_Xdamage_XDamageSubtract = yes; then 10388 LDFLAGS="${LDFLAGS} -L${ac_x_libraries} -Xlinker -R${ac_x_libraries}"; LIBS="${LIBS} -lXdamage" 10389else 10390 echo "libXdamage not available, cannot use delta screenshots" 10391fi 10392 10393fi 10394 10395 10396## libice test is present, but we need to bail out if not there 10397 10398if test "x${ac_cv_lib_ICE_IceConnectionNumber+set}" = "x"; then 10399 echo "Your X11 environment is missing libice." 10400 exit 1 10401fi 10402 10403 10404######################################################### 10405 10406######################################################### 10407# libm is required by ffmpeg 10408######################################################### 10409 10410{ echo "$as_me:$LINENO: checking for pow in -lm" >&5 10411echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; } 10412if test "${ac_cv_lib_m_pow+set}" = set; then 10413 echo $ECHO_N "(cached) $ECHO_C" >&6 10414else 10415 ac_check_lib_save_LIBS=$LIBS 10416LIBS="-lm $LIBS" 10417cat >conftest.$ac_ext <<_ACEOF 10418/* confdefs.h. */ 10419_ACEOF 10420cat confdefs.h >>conftest.$ac_ext 10421cat >>conftest.$ac_ext <<_ACEOF 10422/* end confdefs.h. */ 10423 10424/* Override any GCC internal prototype to avoid an error. 10425 Use char because int might match the return type of a GCC 10426 builtin and then its argument prototype would still apply. */ 10427#ifdef __cplusplus 10428extern "C" 10429#endif 10430char pow (); 10431int 10432main () 10433{ 10434return pow (); 10435 ; 10436 return 0; 10437} 10438_ACEOF 10439rm -f conftest.$ac_objext conftest$ac_exeext 10440if { (ac_try="$ac_link" 10441case "(($ac_try" in 10442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10443 *) ac_try_echo=$ac_try;; 10444esac 10445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10446 (eval "$ac_link") 2>conftest.er1 10447 ac_status=$? 10448 grep -v '^ *+' conftest.er1 >conftest.err 10449 rm -f conftest.er1 10450 cat conftest.err >&5 10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10452 (exit $ac_status); } && { 10453 test -z "$ac_c_werror_flag" || 10454 test ! -s conftest.err 10455 } && test -s conftest$ac_exeext && 10456 $as_test_x conftest$ac_exeext; then 10457 ac_cv_lib_m_pow=yes 10458else 10459 echo "$as_me: failed program was:" >&5 10460sed 's/^/| /' conftest.$ac_ext >&5 10461 10462 ac_cv_lib_m_pow=no 10463fi 10464 10465rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10466 conftest$ac_exeext conftest.$ac_ext 10467LIBS=$ac_check_lib_save_LIBS 10468fi 10469{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 10470echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; } 10471if test $ac_cv_lib_m_pow = yes; then 10472 cat >>confdefs.h <<_ACEOF 10473#define HAVE_LIBM 1 10474_ACEOF 10475 10476 LIBS="-lm $LIBS" 10477 10478else 10479 echo "libm required by ffmpeg"; static_avcodec=no; static_avformat=no; static_avutil=no 10480fi 10481 10482######################################################### 10483 10484################################################################ 10485# check for libmp3lame et. al. 10486################################################################ 10487 10488if test "${ac_cv_enable_libmp3lame}" = "yes"; then 10489 10490{ echo "$as_me:$LINENO: checking for lame_init in -lmp3lame" >&5 10491echo $ECHO_N "checking for lame_init in -lmp3lame... $ECHO_C" >&6; } 10492if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then 10493 echo $ECHO_N "(cached) $ECHO_C" >&6 10494else 10495 ac_check_lib_save_LIBS=$LIBS 10496LIBS="-lmp3lame $LIBS" 10497cat >conftest.$ac_ext <<_ACEOF 10498/* confdefs.h. */ 10499_ACEOF 10500cat confdefs.h >>conftest.$ac_ext 10501cat >>conftest.$ac_ext <<_ACEOF 10502/* end confdefs.h. */ 10503 10504/* Override any GCC internal prototype to avoid an error. 10505 Use char because int might match the return type of a GCC 10506 builtin and then its argument prototype would still apply. */ 10507#ifdef __cplusplus 10508extern "C" 10509#endif 10510char lame_init (); 10511int 10512main () 10513{ 10514return lame_init (); 10515 ; 10516 return 0; 10517} 10518_ACEOF 10519rm -f conftest.$ac_objext conftest$ac_exeext 10520if { (ac_try="$ac_link" 10521case "(($ac_try" in 10522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10523 *) ac_try_echo=$ac_try;; 10524esac 10525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10526 (eval "$ac_link") 2>conftest.er1 10527 ac_status=$? 10528 grep -v '^ *+' conftest.er1 >conftest.err 10529 rm -f conftest.er1 10530 cat conftest.err >&5 10531 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10532 (exit $ac_status); } && { 10533 test -z "$ac_c_werror_flag" || 10534 test ! -s conftest.err 10535 } && test -s conftest$ac_exeext && 10536 $as_test_x conftest$ac_exeext; then 10537 ac_cv_lib_mp3lame_lame_init=yes 10538else 10539 echo "$as_me: failed program was:" >&5 10540sed 's/^/| /' conftest.$ac_ext >&5 10541 10542 ac_cv_lib_mp3lame_lame_init=no 10543fi 10544 10545rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10546 conftest$ac_exeext conftest.$ac_ext 10547LIBS=$ac_check_lib_save_LIBS 10548fi 10549{ echo "$as_me:$LINENO: result: $ac_cv_lib_mp3lame_lame_init" >&5 10550echo "${ECHO_T}$ac_cv_lib_mp3lame_lame_init" >&6; } 10551if test $ac_cv_lib_mp3lame_lame_init = yes; then 10552 cat >>confdefs.h <<_ACEOF 10553#define HAVE_LIBMP3LAME 1 10554_ACEOF 10555 10556 LIBS="-lmp3lame $LIBS" 10557 10558else 10559 echo "To use mp3 audio codecs you need liblame/liblame-dev" 10560fi 10561 10562fi 10563 if test x$ac_cv_lib_mp3lame_lame_init = xyes; then 10564 HAVE_LIBMP3LAME_TRUE= 10565 HAVE_LIBMP3LAME_FALSE='#' 10566else 10567 HAVE_LIBMP3LAME_TRUE='#' 10568 HAVE_LIBMP3LAME_FALSE= 10569fi 10570 10571 10572 10573if test "${ac_cv_enable_libtheora}" = "yes"; then 10574 10575{ echo "$as_me:$LINENO: checking for ogg_sync_init in -logg" >&5 10576echo $ECHO_N "checking for ogg_sync_init in -logg... $ECHO_C" >&6; } 10577if test "${ac_cv_lib_ogg_ogg_sync_init+set}" = set; then 10578 echo $ECHO_N "(cached) $ECHO_C" >&6 10579else 10580 ac_check_lib_save_LIBS=$LIBS 10581LIBS="-logg $LIBS" 10582cat >conftest.$ac_ext <<_ACEOF 10583/* confdefs.h. */ 10584_ACEOF 10585cat confdefs.h >>conftest.$ac_ext 10586cat >>conftest.$ac_ext <<_ACEOF 10587/* end confdefs.h. */ 10588 10589/* Override any GCC internal prototype to avoid an error. 10590 Use char because int might match the return type of a GCC 10591 builtin and then its argument prototype would still apply. */ 10592#ifdef __cplusplus 10593extern "C" 10594#endif 10595char ogg_sync_init (); 10596int 10597main () 10598{ 10599return ogg_sync_init (); 10600 ; 10601 return 0; 10602} 10603_ACEOF 10604rm -f conftest.$ac_objext conftest$ac_exeext 10605if { (ac_try="$ac_link" 10606case "(($ac_try" in 10607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10608 *) ac_try_echo=$ac_try;; 10609esac 10610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10611 (eval "$ac_link") 2>conftest.er1 10612 ac_status=$? 10613 grep -v '^ *+' conftest.er1 >conftest.err 10614 rm -f conftest.er1 10615 cat conftest.err >&5 10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10617 (exit $ac_status); } && { 10618 test -z "$ac_c_werror_flag" || 10619 test ! -s conftest.err 10620 } && test -s conftest$ac_exeext && 10621 $as_test_x conftest$ac_exeext; then 10622 ac_cv_lib_ogg_ogg_sync_init=yes 10623else 10624 echo "$as_me: failed program was:" >&5 10625sed 's/^/| /' conftest.$ac_ext >&5 10626 10627 ac_cv_lib_ogg_ogg_sync_init=no 10628fi 10629 10630rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10631 conftest$ac_exeext conftest.$ac_ext 10632LIBS=$ac_check_lib_save_LIBS 10633fi 10634{ echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_ogg_sync_init" >&5 10635echo "${ECHO_T}$ac_cv_lib_ogg_ogg_sync_init" >&6; } 10636if test $ac_cv_lib_ogg_ogg_sync_init = yes; then 10637 cat >>confdefs.h <<_ACEOF 10638#define HAVE_LIBOGG 1 10639_ACEOF 10640 10641 LIBS="-logg $LIBS" 10642 10643else 10644 echo "To use the theora video codec you also need libogg/libogg-dev" 10645fi 10646 10647 if test "x${ac_cv_lib_ogg_ogg_sync_init}" = "xno" ; then 10648 echo "Please install the required libraries or deselect theora support." 10649 exit 1 10650 fi 10651 10652{ echo "$as_me:$LINENO: checking for theora_encode_init in -ltheora" >&5 10653echo $ECHO_N "checking for theora_encode_init in -ltheora... $ECHO_C" >&6; } 10654if test "${ac_cv_lib_theora_theora_encode_init+set}" = set; then 10655 echo $ECHO_N "(cached) $ECHO_C" >&6 10656else 10657 ac_check_lib_save_LIBS=$LIBS 10658LIBS="-ltheora -logg $LIBS" 10659cat >conftest.$ac_ext <<_ACEOF 10660/* confdefs.h. */ 10661_ACEOF 10662cat confdefs.h >>conftest.$ac_ext 10663cat >>conftest.$ac_ext <<_ACEOF 10664/* end confdefs.h. */ 10665 10666/* Override any GCC internal prototype to avoid an error. 10667 Use char because int might match the return type of a GCC 10668 builtin and then its argument prototype would still apply. */ 10669#ifdef __cplusplus 10670extern "C" 10671#endif 10672char theora_encode_init (); 10673int 10674main () 10675{ 10676return theora_encode_init (); 10677 ; 10678 return 0; 10679} 10680_ACEOF 10681rm -f conftest.$ac_objext conftest$ac_exeext 10682if { (ac_try="$ac_link" 10683case "(($ac_try" in 10684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10685 *) ac_try_echo=$ac_try;; 10686esac 10687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10688 (eval "$ac_link") 2>conftest.er1 10689 ac_status=$? 10690 grep -v '^ *+' conftest.er1 >conftest.err 10691 rm -f conftest.er1 10692 cat conftest.err >&5 10693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10694 (exit $ac_status); } && { 10695 test -z "$ac_c_werror_flag" || 10696 test ! -s conftest.err 10697 } && test -s conftest$ac_exeext && 10698 $as_test_x conftest$ac_exeext; then 10699 ac_cv_lib_theora_theora_encode_init=yes 10700else 10701 echo "$as_me: failed program was:" >&5 10702sed 's/^/| /' conftest.$ac_ext >&5 10703 10704 ac_cv_lib_theora_theora_encode_init=no 10705fi 10706 10707rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10708 conftest$ac_exeext conftest.$ac_ext 10709LIBS=$ac_check_lib_save_LIBS 10710fi 10711{ echo "$as_me:$LINENO: result: $ac_cv_lib_theora_theora_encode_init" >&5 10712echo "${ECHO_T}$ac_cv_lib_theora_theora_encode_init" >&6; } 10713if test $ac_cv_lib_theora_theora_encode_init = yes; then 10714 cat >>confdefs.h <<_ACEOF 10715#define HAVE_LIBTHEORA 1 10716_ACEOF 10717 10718 LIBS="-ltheora $LIBS" 10719 10720else 10721 echo "To use the theora video codec you need libtheora/libtheora-dev" 10722fi 10723 10724fi 10725 if test x$ac_cv_lib_theora_theora_encode_init = xyes; then 10726 HAVE_LIBTHEORA_TRUE= 10727 HAVE_LIBTHEORA_FALSE='#' 10728else 10729 HAVE_LIBTHEORA_TRUE='#' 10730 HAVE_LIBTHEORA_FALSE= 10731fi 10732 10733 10734################################################################ 10735# check for threading libraries 10736################################################################ 10737 10738# Make sure we can run config.sub. 10739$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 10740 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 10741echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 10742 { (exit 1); exit 1; }; } 10743 10744{ echo "$as_me:$LINENO: checking build system type" >&5 10745echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 10746if test "${ac_cv_build+set}" = set; then 10747 echo $ECHO_N "(cached) $ECHO_C" >&6 10748else 10749 ac_build_alias=$build_alias 10750test "x$ac_build_alias" = x && 10751 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 10752test "x$ac_build_alias" = x && 10753 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 10754echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 10755 { (exit 1); exit 1; }; } 10756ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 10757 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 10758echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 10759 { (exit 1); exit 1; }; } 10760 10761fi 10762{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 10763echo "${ECHO_T}$ac_cv_build" >&6; } 10764case $ac_cv_build in 10765*-*-*) ;; 10766*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 10767echo "$as_me: error: invalid value of canonical build" >&2;} 10768 { (exit 1); exit 1; }; };; 10769esac 10770build=$ac_cv_build 10771ac_save_IFS=$IFS; IFS='-' 10772set x $ac_cv_build 10773shift 10774build_cpu=$1 10775build_vendor=$2 10776shift; shift 10777# Remember, the first character of IFS is used to create $*, 10778# except with old shells: 10779build_os=$* 10780IFS=$ac_save_IFS 10781case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 10782 10783 10784{ echo "$as_me:$LINENO: checking host system type" >&5 10785echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 10786if test "${ac_cv_host+set}" = set; then 10787 echo $ECHO_N "(cached) $ECHO_C" >&6 10788else 10789 if test "x$host_alias" = x; then 10790 ac_cv_host=$ac_cv_build 10791else 10792 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 10793 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 10794echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 10795 { (exit 1); exit 1; }; } 10796fi 10797 10798fi 10799{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 10800echo "${ECHO_T}$ac_cv_host" >&6; } 10801case $ac_cv_host in 10802*-*-*) ;; 10803*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 10804echo "$as_me: error: invalid value of canonical host" >&2;} 10805 { (exit 1); exit 1; }; };; 10806esac 10807host=$ac_cv_host 10808ac_save_IFS=$IFS; IFS='-' 10809set x $ac_cv_host 10810shift 10811host_cpu=$1 10812host_vendor=$2 10813shift; shift 10814# Remember, the first character of IFS is used to create $*, 10815# except with old shells: 10816host_os=$* 10817IFS=$ac_save_IFS 10818case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 10819 10820 10821 10822 10823 10824ac_ext=c 10825ac_cpp='$CPP $CPPFLAGS' 10826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10828ac_compiler_gnu=$ac_cv_c_compiler_gnu 10829 10830acx_pthread_ok=no 10831 10832# We used to check for pthread.h first, but this fails if pthread.h 10833# requires special compiler flags (e.g. on True64 or Sequent). 10834# It gets checked for in the link test anyway. 10835 10836# First of all, check if the user has set any of the PTHREAD_LIBS, 10837# etcetera environment variables, and if threads linking works using 10838# them: 10839if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 10840 save_CFLAGS="$CFLAGS" 10841 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 10842 save_LIBS="$LIBS" 10843 LIBS="$PTHREAD_LIBS $LIBS" 10844 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 10845echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; } 10846 cat >conftest.$ac_ext <<_ACEOF 10847/* confdefs.h. */ 10848_ACEOF 10849cat confdefs.h >>conftest.$ac_ext 10850cat >>conftest.$ac_ext <<_ACEOF 10851/* end confdefs.h. */ 10852 10853/* Override any GCC internal prototype to avoid an error. 10854 Use char because int might match the return type of a GCC 10855 builtin and then its argument prototype would still apply. */ 10856#ifdef __cplusplus 10857extern "C" 10858#endif 10859char pthread_join (); 10860int 10861main () 10862{ 10863return pthread_join (); 10864 ; 10865 return 0; 10866} 10867_ACEOF 10868rm -f conftest.$ac_objext conftest$ac_exeext 10869if { (ac_try="$ac_link" 10870case "(($ac_try" in 10871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10872 *) ac_try_echo=$ac_try;; 10873esac 10874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10875 (eval "$ac_link") 2>conftest.er1 10876 ac_status=$? 10877 grep -v '^ *+' conftest.er1 >conftest.err 10878 rm -f conftest.er1 10879 cat conftest.err >&5 10880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10881 (exit $ac_status); } && { 10882 test -z "$ac_c_werror_flag" || 10883 test ! -s conftest.err 10884 } && test -s conftest$ac_exeext && 10885 $as_test_x conftest$ac_exeext; then 10886 acx_pthread_ok=yes 10887else 10888 echo "$as_me: failed program was:" >&5 10889sed 's/^/| /' conftest.$ac_ext >&5 10890 10891 10892fi 10893 10894rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10895 conftest$ac_exeext conftest.$ac_ext 10896 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5 10897echo "${ECHO_T}$acx_pthread_ok" >&6; } 10898 if test x"$acx_pthread_ok" = xno; then 10899 PTHREAD_LIBS="" 10900 PTHREAD_CFLAGS="" 10901 fi 10902 LIBS="$save_LIBS" 10903 CFLAGS="$save_CFLAGS" 10904fi 10905 10906# We must check for the threads library under a number of different 10907# names; the ordering is very important because some systems 10908# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 10909# libraries is broken (non-POSIX). 10910 10911# Create a list of thread flags to try. Items starting with a "-" are 10912# C compiler flags, and other items are library names, except for "none" 10913# which indicates that we try without any flags at all, and "pthread-config" 10914# which is a program returning the flags for the Pth emulation library. 10915 10916acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 10917 10918# The ordering *is* (sometimes) important. Some notes on the 10919# individual items follow: 10920 10921# pthreads: AIX (must check this before -lpthread) 10922# none: in case threads are in libc; should be tried before -Kthread and 10923# other compiler flags to prevent continual compiler warnings 10924# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 10925# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 10926# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 10927# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 10928# -pthreads: Solaris/gcc 10929# -mthreads: Mingw32/gcc, Lynx/gcc 10930# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 10931# doesn't hurt to check since this sometimes defines pthreads too; 10932# also defines -D_REENTRANT) 10933# ... -mt is also the pthreads flag for HP/aCC 10934# pthread: Linux, etcetera 10935# --thread-safe: KAI C++ 10936# pthread-config: use pthread-config program (for GNU Pth library) 10937 10938case "${host_cpu}-${host_os}" in 10939 *solaris*) 10940 10941 # On Solaris (at least, for some versions), libc contains stubbed 10942 # (non-functional) versions of the pthreads routines, so link-based 10943 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 10944 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 10945 # a function called by this macro, so we could check for that, but 10946 # who knows whether they'll stub that too in a future libc.) So, 10947 # we'll just look for -pthreads and -lpthread first: 10948 10949 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags" 10950 ;; 10951esac 10952 10953if test x"$acx_pthread_ok" = xno; then 10954for flag in $acx_pthread_flags; do 10955 10956 case $flag in 10957 none) 10958 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 10959echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; } 10960 ;; 10961 10962 -*) 10963 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 10964echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; } 10965 PTHREAD_CFLAGS="$flag" 10966 ;; 10967 10968 pthread-config) 10969 # Extract the first word of "pthread-config", so it can be a program name with args. 10970set dummy pthread-config; ac_word=$2 10971{ echo "$as_me:$LINENO: checking for $ac_word" >&5 10972echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 10973if test "${ac_cv_prog_acx_pthread_config+set}" = set; then 10974 echo $ECHO_N "(cached) $ECHO_C" >&6 10975else 10976 if test -n "$acx_pthread_config"; then 10977 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test. 10978else 10979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10980for as_dir in $PATH 10981do 10982 IFS=$as_save_IFS 10983 test -z "$as_dir" && as_dir=. 10984 for ac_exec_ext in '' $ac_executable_extensions; do 10985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10986 ac_cv_prog_acx_pthread_config="yes" 10987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10988 break 2 10989 fi 10990done 10991done 10992IFS=$as_save_IFS 10993 10994 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no" 10995fi 10996fi 10997acx_pthread_config=$ac_cv_prog_acx_pthread_config 10998if test -n "$acx_pthread_config"; then 10999 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5 11000echo "${ECHO_T}$acx_pthread_config" >&6; } 11001else 11002 { echo "$as_me:$LINENO: result: no" >&5 11003echo "${ECHO_T}no" >&6; } 11004fi 11005 11006 11007 if test x"$acx_pthread_config" = xno; then continue; fi 11008 PTHREAD_CFLAGS="`pthread-config --cflags`" 11009 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 11010 ;; 11011 11012 *) 11013 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 11014echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; } 11015 PTHREAD_LIBS="-l$flag" 11016 ;; 11017 esac 11018 11019 save_LIBS="$LIBS" 11020 save_CFLAGS="$CFLAGS" 11021 LIBS="$PTHREAD_LIBS $LIBS" 11022 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 11023 11024 # Check for various functions. We must include pthread.h, 11025 # since some functions may be macros. (On the Sequent, we 11026 # need a special flag -Kthread to make this header compile.) 11027 # We check for pthread_join because it is in -lpthread on IRIX 11028 # while pthread_create is in libc. We check for pthread_attr_init 11029 # due to DEC craziness with -lpthreads. We check for 11030 # pthread_cleanup_push because it is one of the few pthread 11031 # functions on Solaris that doesn't have a non-functional libc stub. 11032 # We try pthread_create on general principles. 11033 cat >conftest.$ac_ext <<_ACEOF 11034/* confdefs.h. */ 11035_ACEOF 11036cat confdefs.h >>conftest.$ac_ext 11037cat >>conftest.$ac_ext <<_ACEOF 11038/* end confdefs.h. */ 11039#include <pthread.h> 11040int 11041main () 11042{ 11043pthread_t th; pthread_join(th, 0); 11044 pthread_attr_init(0); pthread_cleanup_push(0, 0); 11045 pthread_create(0,0,0,0); pthread_cleanup_pop(0); 11046 ; 11047 return 0; 11048} 11049_ACEOF 11050rm -f conftest.$ac_objext conftest$ac_exeext 11051if { (ac_try="$ac_link" 11052case "(($ac_try" in 11053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11054 *) ac_try_echo=$ac_try;; 11055esac 11056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11057 (eval "$ac_link") 2>conftest.er1 11058 ac_status=$? 11059 grep -v '^ *+' conftest.er1 >conftest.err 11060 rm -f conftest.er1 11061 cat conftest.err >&5 11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11063 (exit $ac_status); } && { 11064 test -z "$ac_c_werror_flag" || 11065 test ! -s conftest.err 11066 } && test -s conftest$ac_exeext && 11067 $as_test_x conftest$ac_exeext; then 11068 acx_pthread_ok=yes 11069else 11070 echo "$as_me: failed program was:" >&5 11071sed 's/^/| /' conftest.$ac_ext >&5 11072 11073 11074fi 11075 11076rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11077 conftest$ac_exeext conftest.$ac_ext 11078 11079 LIBS="$save_LIBS" 11080 CFLAGS="$save_CFLAGS" 11081 11082 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5 11083echo "${ECHO_T}$acx_pthread_ok" >&6; } 11084 if test "x$acx_pthread_ok" = xyes; then 11085 break; 11086 fi 11087 11088 PTHREAD_LIBS="" 11089 PTHREAD_CFLAGS="" 11090done 11091fi 11092 11093# Various other checks: 11094if test "x$acx_pthread_ok" = xyes; then 11095 save_LIBS="$LIBS" 11096 LIBS="$PTHREAD_LIBS $LIBS" 11097 save_CFLAGS="$CFLAGS" 11098 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 11099 11100 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 11101 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5 11102echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; } 11103 attr_name=unknown 11104 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 11105 cat >conftest.$ac_ext <<_ACEOF 11106/* confdefs.h. */ 11107_ACEOF 11108cat confdefs.h >>conftest.$ac_ext 11109cat >>conftest.$ac_ext <<_ACEOF 11110/* end confdefs.h. */ 11111#include <pthread.h> 11112int 11113main () 11114{ 11115int attr=$attr; return attr; 11116 ; 11117 return 0; 11118} 11119_ACEOF 11120rm -f conftest.$ac_objext conftest$ac_exeext 11121if { (ac_try="$ac_link" 11122case "(($ac_try" in 11123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11124 *) ac_try_echo=$ac_try;; 11125esac 11126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11127 (eval "$ac_link") 2>conftest.er1 11128 ac_status=$? 11129 grep -v '^ *+' conftest.er1 >conftest.err 11130 rm -f conftest.er1 11131 cat conftest.err >&5 11132 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11133 (exit $ac_status); } && { 11134 test -z "$ac_c_werror_flag" || 11135 test ! -s conftest.err 11136 } && test -s conftest$ac_exeext && 11137 $as_test_x conftest$ac_exeext; then 11138 attr_name=$attr; break 11139else 11140 echo "$as_me: failed program was:" >&5 11141sed 's/^/| /' conftest.$ac_ext >&5 11142 11143 11144fi 11145 11146rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11147 conftest$ac_exeext conftest.$ac_ext 11148 done 11149 { echo "$as_me:$LINENO: result: $attr_name" >&5 11150echo "${ECHO_T}$attr_name" >&6; } 11151 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 11152 11153cat >>confdefs.h <<_ACEOF 11154#define PTHREAD_CREATE_JOINABLE $attr_name 11155_ACEOF 11156 11157 fi 11158 11159 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 11160echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; } 11161 flag=no 11162 case "${host_cpu}-${host_os}" in 11163 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; 11164 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; 11165 esac 11166 { echo "$as_me:$LINENO: result: ${flag}" >&5 11167echo "${ECHO_T}${flag}" >&6; } 11168 if test "x$flag" != xno; then 11169 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 11170 fi 11171 11172 LIBS="$save_LIBS" 11173 CFLAGS="$save_CFLAGS" 11174 11175 # More AIX lossage: must compile with xlc_r or cc_r 11176 if test x"$GCC" != xyes; then 11177 for ac_prog in xlc_r cc_r 11178do 11179 # Extract the first word of "$ac_prog", so it can be a program name with args. 11180set dummy $ac_prog; ac_word=$2 11181{ echo "$as_me:$LINENO: checking for $ac_word" >&5 11182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 11183if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then 11184 echo $ECHO_N "(cached) $ECHO_C" >&6 11185else 11186 if test -n "$PTHREAD_CC"; then 11187 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 11188else 11189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11190for as_dir in $PATH 11191do 11192 IFS=$as_save_IFS 11193 test -z "$as_dir" && as_dir=. 11194 for ac_exec_ext in '' $ac_executable_extensions; do 11195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11196 ac_cv_prog_PTHREAD_CC="$ac_prog" 11197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11198 break 2 11199 fi 11200done 11201done 11202IFS=$as_save_IFS 11203 11204fi 11205fi 11206PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 11207if test -n "$PTHREAD_CC"; then 11208 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5 11209echo "${ECHO_T}$PTHREAD_CC" >&6; } 11210else 11211 { echo "$as_me:$LINENO: result: no" >&5 11212echo "${ECHO_T}no" >&6; } 11213fi 11214 11215 11216 test -n "$PTHREAD_CC" && break 11217done 11218test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" 11219 11220 else 11221 PTHREAD_CC=$CC 11222 fi 11223else 11224 PTHREAD_CC="$CC" 11225fi 11226 11227 11228 11229 11230 11231# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 11232if test x"$acx_pthread_ok" = xyes; then 11233 11234 LIBS="$PTHREAD_LIBS $LIBS" 11235 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 11236 CC="$PTHREAD_CC" 11237 11238 : 11239else 11240 acx_pthread_ok=no 11241 11242 # I'm keeping this in here because I'm unsure how well ACX_PTHREAD works for FreeBSD 11243 # it should, but seems to use -kthread and I don't know about that, and -lc_r 11244 # worked in the past. 11245 if ( `test x${FREEBSD_TRUE} = "x"` ) ; then 11246 # On FreeBSD try -lc_r ... thanks to Oyvind Hallsteinsen 11247 if ( test -x /sbin/sysctl ) ; then 11248 ac_my_freebsd_release=`/sbin/sysctl -n kern.osreldate` 11249 else 11250 ac_my_freebsd_release=`/usr/sbin/sysctl -n kern.osreldate` 11251 fi 11252 if ( expr ${ac_my_freebsd_release} \>= 500016 ) ; then 11253 LIBS="${LIBS} -lc_r" 11254 fi 11255 else 11256 echo "xvidcap requires libpthread for recording. This machine doesn't have the libraries and/or header files installed." 11257 exit 1 11258 fi 11259 11260fi 11261ac_ext=c 11262ac_cpp='$CPP $CPPFLAGS' 11263ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11264ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11265ac_compiler_gnu=$ac_cv_c_compiler_gnu 11266 11267 11268 11269######################################################### 11270# avcodec/avformat 11271# test static linking first, if requested ... if not, or not found, reset cache 11272######################################################### 11273 11274 11275test x$ac_cv_lib_mp3lame_lame_init = xyes && ac_my_ffmpeg_cfg_lib_switch="--enable-libmp3lame" 11276test x$ac_cv_lib_theora_theora_encode_init = xyes && ac_my_ffmpeg_cfg_lib_switch="${ac_my_ffmpeg_cfg_lib_switch} --enable-libogg --enable-libtheora" 11277 11278# if cache empty (not tested or failed) and want static avcodec (then it failed) ... 11279if ( `test \( \( x${ac_cv_lib_avutil_av_rescale+set} = x \) -a \( x$static_avutil = xyes \) \)` ) ; then 11280 # build embedded ffmpeg 11281 echo "${MAKE-make}-ing prerequisite ffmpeg libraries" && \ 11282 ( cd ./ffmpeg/ && \ 11283 ./configure --cc=${CC} --enable-gpl ${ac_my_ffmpeg_cfg_lib_switch} --enable-pthreads --enable-swscale --disable-ffserver --disable-ffplay --extra-cflags=-I%%LOCALBASE%%/include --extra-ldflags=-L%%LOCALBASE%%/lib --disable-demuxer=v4l2 --disable-mmx && \ 11284 ln -s libavcodec/avcodec.h ./ && \ 11285 ln -s libavcodec/dsputil.h ./ && \ 11286 ln -s libavformat/avformat.h ./ && \ 11287 ln -s libavformat/avio.h ./ && \ 11288 ln -s libavformat/rt*.h ./ && \ 11289 ln -s libavutil/common.h ./ && \ 11290 ln -s libavutil/avutil.h ./ && \ 11291 ln -s libavutil/mathematics.h ./ && \ 11292 ln -s libavutil/integer.h ./ && \ 11293 ln -s libavutil/intfloat_readwrite.h ./ && \ 11294 ln -s libavutil/rational.h ./ && \ 11295 ln -s libavutil/fifo.h ./ && \ 11296 ln -s libswscale/swscale.h ./ && \ 11297 ln -s libswscale/rgb2rgb.h ./ && \ 11298 ln -s libavdevice/avdevice.h ./ && \ 11299 ${MAKE-gmake} ) 11300 # try to link it statically, or reset cache, set static_avcodec=no 11301 top_srcdir=`pwd` 11302 ac_my_ldflags_save=${LDFLAGS} ; LDFLAGS="-L$top_srcdir/ffmpeg/libavcodec -L$top_srcdir/ffmpeg/libavformat -L$top_srcdir/ffmpeg/libavutil -L$top_srcdir/ffmpeg/libswscale -L$top_srcdir/ffmpeg/libavdevice ${LDFLAGS}" 11303 ac_my_cflags_save=${CFLAGS} ; CFLAGS="${CFLAGS} -I $top_srcdir -I$top_srcdir/ffmpeg/libavcodec -I$top_srcdir/ffmpeg/libavformat -I$top_srcdir/ffmpeg/libavutil -I$top_srcdir/ffmpeg/libswscale -I$top_srcdir/ffmpeg/libavdevice" 11304 11305 11306 11307if test x$static_avutil = xyes; then 11308 11309 { echo "$as_me:$LINENO: checking for av_rescale in -lavutil" >&5 11310echo $ECHO_N "checking for av_rescale in -lavutil... $ECHO_C" >&6; } 11311if test "${ac_cv_lib_avutil_av_rescale+set}" = set; then 11312 echo $ECHO_N "(cached) $ECHO_C" >&6 11313else 11314 11315echo -n "(static?) ... " 11316ac_check_lib_save_LIBS=$LIBS 11317LIBS="-Wl,-Bstatic -lavutil -Wl,-Bdynamic $LIBS" 11318cat >conftest.$ac_ext <<_ACEOF 11319/* confdefs.h. */ 11320_ACEOF 11321cat confdefs.h >>conftest.$ac_ext 11322cat >>conftest.$ac_ext <<_ACEOF 11323/* end confdefs.h. */ 11324 11325/* Override any GCC internal prototype to avoid an error. 11326 Use char because int might match the return type of a GCC 11327 builtin and then its argument prototype would still apply. */ 11328#ifdef __cplusplus 11329extern "C" 11330#endif 11331char av_rescale (); 11332int 11333main () 11334{ 11335return av_rescale (); 11336 ; 11337 return 0; 11338} 11339_ACEOF 11340rm -f conftest.$ac_objext conftest$ac_exeext 11341if { (ac_try="$ac_link" 11342case "(($ac_try" in 11343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11344 *) ac_try_echo=$ac_try;; 11345esac 11346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11347 (eval "$ac_link") 2>conftest.er1 11348 ac_status=$? 11349 grep -v '^ *+' conftest.er1 >conftest.err 11350 rm -f conftest.er1 11351 cat conftest.err >&5 11352 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11353 (exit $ac_status); } && { 11354 test -z "$ac_c_werror_flag" || 11355 test ! -s conftest.err 11356 } && test -s conftest$ac_exeext && 11357 $as_test_x conftest$ac_exeext; then 11358 ac_cv_lib_avutil_av_rescale=yes 11359else 11360 echo "$as_me: failed program was:" >&5 11361sed 's/^/| /' conftest.$ac_ext >&5 11362 11363 ac_cv_lib_avutil_av_rescale=no 11364fi 11365 11366rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11367 conftest$ac_exeext conftest.$ac_ext 11368LIBS=$ac_check_lib_save_LIBS 11369 11370fi 11371{ echo "$as_me:$LINENO: result: $ac_cv_lib_avutil_av_rescale" >&5 11372echo "${ECHO_T}$ac_cv_lib_avutil_av_rescale" >&6; } 11373else 11374 ac_cv_lib_avutil_av_rescale=no 11375fi 11376 11377if test $ac_cv_lib_avutil_av_rescale = yes; then 11378 cat >>confdefs.h <<_ACEOF 11379#define HAVE_LIBAVUTIL 1 11380_ACEOF 11381 11382 LIBS="-Wl,-Bstatic -lavutil -Wl,-Bdynamic $LIBS" 11383 11384else 11385 unset ac_cv_lib_avutil_av_rescale ; static_avcodec=no ; LDFLAGS=$ac_my_ldflags_save ; CFLAGS=$ac_my_cflags_save 11386fi 11387 11388 11389 11390fi 11391 11392# if still not found try to link dynamically 11393if test x${ac_cv_lib_avutil_av_rescale+set} = x ; then 11394 11395{ echo "$as_me:$LINENO: checking for av_rescale in -lavutil" >&5 11396echo $ECHO_N "checking for av_rescale in -lavutil... $ECHO_C" >&6; } 11397if test "${ac_cv_lib_avutil_av_rescale+set}" = set; then 11398 echo $ECHO_N "(cached) $ECHO_C" >&6 11399else 11400 ac_check_lib_save_LIBS=$LIBS 11401LIBS="-lavutil $LIBS" 11402cat >conftest.$ac_ext <<_ACEOF 11403/* confdefs.h. */ 11404_ACEOF 11405cat confdefs.h >>conftest.$ac_ext 11406cat >>conftest.$ac_ext <<_ACEOF 11407/* end confdefs.h. */ 11408 11409/* Override any GCC internal prototype to avoid an error. 11410 Use char because int might match the return type of a GCC 11411 builtin and then its argument prototype would still apply. */ 11412#ifdef __cplusplus 11413extern "C" 11414#endif 11415char av_rescale (); 11416int 11417main () 11418{ 11419return av_rescale (); 11420 ; 11421 return 0; 11422} 11423_ACEOF 11424rm -f conftest.$ac_objext conftest$ac_exeext 11425if { (ac_try="$ac_link" 11426case "(($ac_try" in 11427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11428 *) ac_try_echo=$ac_try;; 11429esac 11430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11431 (eval "$ac_link") 2>conftest.er1 11432 ac_status=$? 11433 grep -v '^ *+' conftest.er1 >conftest.err 11434 rm -f conftest.er1 11435 cat conftest.err >&5 11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11437 (exit $ac_status); } && { 11438 test -z "$ac_c_werror_flag" || 11439 test ! -s conftest.err 11440 } && test -s conftest$ac_exeext && 11441 $as_test_x conftest$ac_exeext; then 11442 ac_cv_lib_avutil_av_rescale=yes 11443else 11444 echo "$as_me: failed program was:" >&5 11445sed 's/^/| /' conftest.$ac_ext >&5 11446 11447 ac_cv_lib_avutil_av_rescale=no 11448fi 11449 11450rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11451 conftest$ac_exeext conftest.$ac_ext 11452LIBS=$ac_check_lib_save_LIBS 11453fi 11454{ echo "$as_me:$LINENO: result: $ac_cv_lib_avutil_av_rescale" >&5 11455echo "${ECHO_T}$ac_cv_lib_avutil_av_rescale" >&6; } 11456if test $ac_cv_lib_avutil_av_rescale = yes; then 11457 cat >>confdefs.h <<_ACEOF 11458#define HAVE_LIBAVUTIL 1 11459_ACEOF 11460 11461 LIBS="-lavutil $LIBS" 11462 11463fi 11464 11465fi 11466 11467# if avutil is linked statically, swscale should, too 11468static_swscale=$static_avutil 11469ac_my_swscale_libs="" 11470test x`(uname -s)` = xSunOS && ac_my_swscale_libs="-lnsl -lsocket" 11471 11472 11473 11474if test x$static_swscale = xyes; then 11475 11476 { echo "$as_me:$LINENO: checking for sws_scale in -lswscale" >&5 11477echo $ECHO_N "checking for sws_scale in -lswscale... $ECHO_C" >&6; } 11478if test "${ac_cv_lib_swscale_sws_scale+set}" = set; then 11479 echo $ECHO_N "(cached) $ECHO_C" >&6 11480else 11481 11482echo -n "(static?) ... " 11483ac_check_lib_save_LIBS=$LIBS 11484LIBS="-Wl,-Bstatic -lswscale -Wl,-Bdynamic $ac_my_swscale_libs $LIBS" 11485cat >conftest.$ac_ext <<_ACEOF 11486/* confdefs.h. */ 11487_ACEOF 11488cat confdefs.h >>conftest.$ac_ext 11489cat >>conftest.$ac_ext <<_ACEOF 11490/* end confdefs.h. */ 11491 11492/* Override any GCC internal prototype to avoid an error. 11493 Use char because int might match the return type of a GCC 11494 builtin and then its argument prototype would still apply. */ 11495#ifdef __cplusplus 11496extern "C" 11497#endif 11498char sws_scale (); 11499int 11500main () 11501{ 11502return sws_scale (); 11503 ; 11504 return 0; 11505} 11506_ACEOF 11507rm -f conftest.$ac_objext conftest$ac_exeext 11508if { (ac_try="$ac_link" 11509case "(($ac_try" in 11510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11511 *) ac_try_echo=$ac_try;; 11512esac 11513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11514 (eval "$ac_link") 2>conftest.er1 11515 ac_status=$? 11516 grep -v '^ *+' conftest.er1 >conftest.err 11517 rm -f conftest.er1 11518 cat conftest.err >&5 11519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11520 (exit $ac_status); } && { 11521 test -z "$ac_c_werror_flag" || 11522 test ! -s conftest.err 11523 } && test -s conftest$ac_exeext && 11524 $as_test_x conftest$ac_exeext; then 11525 ac_cv_lib_swscale_sws_scale=yes 11526else 11527 echo "$as_me: failed program was:" >&5 11528sed 's/^/| /' conftest.$ac_ext >&5 11529 11530 ac_cv_lib_swscale_sws_scale=no 11531fi 11532 11533rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11534 conftest$ac_exeext conftest.$ac_ext 11535LIBS=$ac_check_lib_save_LIBS 11536 11537fi 11538{ echo "$as_me:$LINENO: result: $ac_cv_lib_swscale_sws_scale" >&5 11539echo "${ECHO_T}$ac_cv_lib_swscale_sws_scale" >&6; } 11540else 11541 ac_cv_lib_swscale_sws_scale=no 11542fi 11543 11544if test $ac_cv_lib_swscale_sws_scale = yes; then 11545 cat >>confdefs.h <<_ACEOF 11546#define HAVE_LIBSWSCALE 1 11547_ACEOF 11548 11549 LIBS="-Wl,-Bstatic -lswscale -Wl,-Bdynamic $LIBS" 11550 11551else 11552 unset ac_cv_lib_swscale_sws_scale ; static_swscale=no ; 11553{ echo "$as_me:$LINENO: checking for sws_scale in -lswscale" >&5 11554echo $ECHO_N "checking for sws_scale in -lswscale... $ECHO_C" >&6; } 11555if test "${ac_cv_lib_swscale_sws_scale+set}" = set; then 11556 echo $ECHO_N "(cached) $ECHO_C" >&6 11557else 11558 ac_check_lib_save_LIBS=$LIBS 11559LIBS="-lswscale $ac_my_swscale_libs $LIBS" 11560cat >conftest.$ac_ext <<_ACEOF 11561/* confdefs.h. */ 11562_ACEOF 11563cat confdefs.h >>conftest.$ac_ext 11564cat >>conftest.$ac_ext <<_ACEOF 11565/* end confdefs.h. */ 11566 11567/* Override any GCC internal prototype to avoid an error. 11568 Use char because int might match the return type of a GCC 11569 builtin and then its argument prototype would still apply. */ 11570#ifdef __cplusplus 11571extern "C" 11572#endif 11573char sws_scale (); 11574int 11575main () 11576{ 11577return sws_scale (); 11578 ; 11579 return 0; 11580} 11581_ACEOF 11582rm -f conftest.$ac_objext conftest$ac_exeext 11583if { (ac_try="$ac_link" 11584case "(($ac_try" in 11585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11586 *) ac_try_echo=$ac_try;; 11587esac 11588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11589 (eval "$ac_link") 2>conftest.er1 11590 ac_status=$? 11591 grep -v '^ *+' conftest.er1 >conftest.err 11592 rm -f conftest.er1 11593 cat conftest.err >&5 11594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11595 (exit $ac_status); } && { 11596 test -z "$ac_c_werror_flag" || 11597 test ! -s conftest.err 11598 } && test -s conftest$ac_exeext && 11599 $as_test_x conftest$ac_exeext; then 11600 ac_cv_lib_swscale_sws_scale=yes 11601else 11602 echo "$as_me: failed program was:" >&5 11603sed 's/^/| /' conftest.$ac_ext >&5 11604 11605 ac_cv_lib_swscale_sws_scale=no 11606fi 11607 11608rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11609 conftest$ac_exeext conftest.$ac_ext 11610LIBS=$ac_check_lib_save_LIBS 11611fi 11612{ echo "$as_me:$LINENO: result: $ac_cv_lib_swscale_sws_scale" >&5 11613echo "${ECHO_T}$ac_cv_lib_swscale_sws_scale" >&6; } 11614if test $ac_cv_lib_swscale_sws_scale = yes; then 11615 cat >>confdefs.h <<_ACEOF 11616#define HAVE_LIBSWSCALE 1 11617_ACEOF 11618 11619 LIBS="-lswscale $LIBS" 11620 11621fi 11622 11623fi 11624 11625 11626 11627 11628# if avutil is linked statically, avcodec should, too 11629static_avcodec=$static_avutil 11630ac_my_avcodec_libs="-lz" 11631test x`(uname -s)` = xSunOS && ac_my_avcodec_libs="-lz -lnsl -lsocket" 11632 11633 11634 11635if test x$static_avcodec = xyes; then 11636 11637 { echo "$as_me:$LINENO: checking for avcodec_encode_video in -lavcodec" >&5 11638echo $ECHO_N "checking for avcodec_encode_video in -lavcodec... $ECHO_C" >&6; } 11639if test "${ac_cv_lib_avcodec_avcodec_encode_video+set}" = set; then 11640 echo $ECHO_N "(cached) $ECHO_C" >&6 11641else 11642 11643echo -n "(static?) ... " 11644ac_check_lib_save_LIBS=$LIBS 11645LIBS="-Wl,-Bstatic -lavcodec -Wl,-Bdynamic $ac_my_avcodec_libs $LIBS" 11646cat >conftest.$ac_ext <<_ACEOF 11647/* confdefs.h. */ 11648_ACEOF 11649cat confdefs.h >>conftest.$ac_ext 11650cat >>conftest.$ac_ext <<_ACEOF 11651/* end confdefs.h. */ 11652 11653/* Override any GCC internal prototype to avoid an error. 11654 Use char because int might match the return type of a GCC 11655 builtin and then its argument prototype would still apply. */ 11656#ifdef __cplusplus 11657extern "C" 11658#endif 11659char avcodec_encode_video (); 11660int 11661main () 11662{ 11663return avcodec_encode_video (); 11664 ; 11665 return 0; 11666} 11667_ACEOF 11668rm -f conftest.$ac_objext conftest$ac_exeext 11669if { (ac_try="$ac_link" 11670case "(($ac_try" in 11671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11672 *) ac_try_echo=$ac_try;; 11673esac 11674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11675 (eval "$ac_link") 2>conftest.er1 11676 ac_status=$? 11677 grep -v '^ *+' conftest.er1 >conftest.err 11678 rm -f conftest.er1 11679 cat conftest.err >&5 11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11681 (exit $ac_status); } && { 11682 test -z "$ac_c_werror_flag" || 11683 test ! -s conftest.err 11684 } && test -s conftest$ac_exeext && 11685 $as_test_x conftest$ac_exeext; then 11686 ac_cv_lib_avcodec_avcodec_encode_video=yes 11687else 11688 echo "$as_me: failed program was:" >&5 11689sed 's/^/| /' conftest.$ac_ext >&5 11690 11691 ac_cv_lib_avcodec_avcodec_encode_video=no 11692fi 11693 11694rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11695 conftest$ac_exeext conftest.$ac_ext 11696LIBS=$ac_check_lib_save_LIBS 11697 11698fi 11699{ echo "$as_me:$LINENO: result: $ac_cv_lib_avcodec_avcodec_encode_video" >&5 11700echo "${ECHO_T}$ac_cv_lib_avcodec_avcodec_encode_video" >&6; } 11701else 11702 ac_cv_lib_avcodec_avcodec_encode_video=no 11703fi 11704 11705if test $ac_cv_lib_avcodec_avcodec_encode_video = yes; then 11706 cat >>confdefs.h <<_ACEOF 11707#define HAVE_LIBAVCODEC 1 11708_ACEOF 11709 11710 LIBS="-Wl,-Bstatic -lavcodec -Wl,-Bdynamic $LIBS" 11711 11712else 11713 unset ac_cv_lib_avcodec_avcodec_encode_video ; static_avcodec=no ; 11714{ echo "$as_me:$LINENO: checking for avcodec_encode_video in -lavcodec" >&5 11715echo $ECHO_N "checking for avcodec_encode_video in -lavcodec... $ECHO_C" >&6; } 11716if test "${ac_cv_lib_avcodec_avcodec_encode_video+set}" = set; then 11717 echo $ECHO_N "(cached) $ECHO_C" >&6 11718else 11719 ac_check_lib_save_LIBS=$LIBS 11720LIBS="-lavcodec $ac_my_avcodec_libs $LIBS" 11721cat >conftest.$ac_ext <<_ACEOF 11722/* confdefs.h. */ 11723_ACEOF 11724cat confdefs.h >>conftest.$ac_ext 11725cat >>conftest.$ac_ext <<_ACEOF 11726/* end confdefs.h. */ 11727 11728/* Override any GCC internal prototype to avoid an error. 11729 Use char because int might match the return type of a GCC 11730 builtin and then its argument prototype would still apply. */ 11731#ifdef __cplusplus 11732extern "C" 11733#endif 11734char avcodec_encode_video (); 11735int 11736main () 11737{ 11738return avcodec_encode_video (); 11739 ; 11740 return 0; 11741} 11742_ACEOF 11743rm -f conftest.$ac_objext conftest$ac_exeext 11744if { (ac_try="$ac_link" 11745case "(($ac_try" in 11746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11747 *) ac_try_echo=$ac_try;; 11748esac 11749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11750 (eval "$ac_link") 2>conftest.er1 11751 ac_status=$? 11752 grep -v '^ *+' conftest.er1 >conftest.err 11753 rm -f conftest.er1 11754 cat conftest.err >&5 11755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11756 (exit $ac_status); } && { 11757 test -z "$ac_c_werror_flag" || 11758 test ! -s conftest.err 11759 } && test -s conftest$ac_exeext && 11760 $as_test_x conftest$ac_exeext; then 11761 ac_cv_lib_avcodec_avcodec_encode_video=yes 11762else 11763 echo "$as_me: failed program was:" >&5 11764sed 's/^/| /' conftest.$ac_ext >&5 11765 11766 ac_cv_lib_avcodec_avcodec_encode_video=no 11767fi 11768 11769rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11770 conftest$ac_exeext conftest.$ac_ext 11771LIBS=$ac_check_lib_save_LIBS 11772fi 11773{ echo "$as_me:$LINENO: result: $ac_cv_lib_avcodec_avcodec_encode_video" >&5 11774echo "${ECHO_T}$ac_cv_lib_avcodec_avcodec_encode_video" >&6; } 11775if test $ac_cv_lib_avcodec_avcodec_encode_video = yes; then 11776 cat >>confdefs.h <<_ACEOF 11777#define HAVE_LIBAVCODEC 1 11778_ACEOF 11779 11780 LIBS="-lavcodec $LIBS" 11781 11782fi 11783 11784fi 11785 11786 11787 11788 11789# if avcodec is linked statically, avformat should, too 11790static_avformat=$static_avcodec 11791ac_my_avformat_libs="-lz" 11792test x`(uname -s)` = xSunOS && ac_my_avformat_libs="-lz -lnsl -lsocket" 11793 11794 11795 11796if test x$static_avformat = xyes; then 11797 11798 { echo "$as_me:$LINENO: checking for av_write_header in -lavformat" >&5 11799echo $ECHO_N "checking for av_write_header in -lavformat... $ECHO_C" >&6; } 11800if test "${ac_cv_lib_avformat_av_write_header+set}" = set; then 11801 echo $ECHO_N "(cached) $ECHO_C" >&6 11802else 11803 11804echo -n "(static?) ... " 11805ac_check_lib_save_LIBS=$LIBS 11806LIBS="-Wl,-Bstatic -lavformat -Wl,-Bdynamic $ac_my_avformat_libs $LIBS" 11807cat >conftest.$ac_ext <<_ACEOF 11808/* confdefs.h. */ 11809_ACEOF 11810cat confdefs.h >>conftest.$ac_ext 11811cat >>conftest.$ac_ext <<_ACEOF 11812/* end confdefs.h. */ 11813 11814/* Override any GCC internal prototype to avoid an error. 11815 Use char because int might match the return type of a GCC 11816 builtin and then its argument prototype would still apply. */ 11817#ifdef __cplusplus 11818extern "C" 11819#endif 11820char av_write_header (); 11821int 11822main () 11823{ 11824return av_write_header (); 11825 ; 11826 return 0; 11827} 11828_ACEOF 11829rm -f conftest.$ac_objext conftest$ac_exeext 11830if { (ac_try="$ac_link" 11831case "(($ac_try" in 11832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11833 *) ac_try_echo=$ac_try;; 11834esac 11835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11836 (eval "$ac_link") 2>conftest.er1 11837 ac_status=$? 11838 grep -v '^ *+' conftest.er1 >conftest.err 11839 rm -f conftest.er1 11840 cat conftest.err >&5 11841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11842 (exit $ac_status); } && { 11843 test -z "$ac_c_werror_flag" || 11844 test ! -s conftest.err 11845 } && test -s conftest$ac_exeext && 11846 $as_test_x conftest$ac_exeext; then 11847 ac_cv_lib_avformat_av_write_header=yes 11848else 11849 echo "$as_me: failed program was:" >&5 11850sed 's/^/| /' conftest.$ac_ext >&5 11851 11852 ac_cv_lib_avformat_av_write_header=no 11853fi 11854 11855rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11856 conftest$ac_exeext conftest.$ac_ext 11857LIBS=$ac_check_lib_save_LIBS 11858 11859fi 11860{ echo "$as_me:$LINENO: result: $ac_cv_lib_avformat_av_write_header" >&5 11861echo "${ECHO_T}$ac_cv_lib_avformat_av_write_header" >&6; } 11862else 11863 ac_cv_lib_avformat_av_write_header=no 11864fi 11865 11866if test $ac_cv_lib_avformat_av_write_header = yes; then 11867 cat >>confdefs.h <<_ACEOF 11868#define HAVE_LIBAVFORMAT 1 11869_ACEOF 11870 11871 LIBS="-Wl,-Bstatic -lavformat -Wl,-Bdynamic $LIBS" 11872 11873else 11874 unset ac_cv_lib_avformat_av_write_header ; static_avformat=no ; 11875{ echo "$as_me:$LINENO: checking for av_write_header in -lavformat" >&5 11876echo $ECHO_N "checking for av_write_header in -lavformat... $ECHO_C" >&6; } 11877if test "${ac_cv_lib_avformat_av_write_header+set}" = set; then 11878 echo $ECHO_N "(cached) $ECHO_C" >&6 11879else 11880 ac_check_lib_save_LIBS=$LIBS 11881LIBS="-lavformat $ac_my_avformat_libs $LIBS" 11882cat >conftest.$ac_ext <<_ACEOF 11883/* confdefs.h. */ 11884_ACEOF 11885cat confdefs.h >>conftest.$ac_ext 11886cat >>conftest.$ac_ext <<_ACEOF 11887/* end confdefs.h. */ 11888 11889/* Override any GCC internal prototype to avoid an error. 11890 Use char because int might match the return type of a GCC 11891 builtin and then its argument prototype would still apply. */ 11892#ifdef __cplusplus 11893extern "C" 11894#endif 11895char av_write_header (); 11896int 11897main () 11898{ 11899return av_write_header (); 11900 ; 11901 return 0; 11902} 11903_ACEOF 11904rm -f conftest.$ac_objext conftest$ac_exeext 11905if { (ac_try="$ac_link" 11906case "(($ac_try" in 11907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11908 *) ac_try_echo=$ac_try;; 11909esac 11910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11911 (eval "$ac_link") 2>conftest.er1 11912 ac_status=$? 11913 grep -v '^ *+' conftest.er1 >conftest.err 11914 rm -f conftest.er1 11915 cat conftest.err >&5 11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11917 (exit $ac_status); } && { 11918 test -z "$ac_c_werror_flag" || 11919 test ! -s conftest.err 11920 } && test -s conftest$ac_exeext && 11921 $as_test_x conftest$ac_exeext; then 11922 ac_cv_lib_avformat_av_write_header=yes 11923else 11924 echo "$as_me: failed program was:" >&5 11925sed 's/^/| /' conftest.$ac_ext >&5 11926 11927 ac_cv_lib_avformat_av_write_header=no 11928fi 11929 11930rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11931 conftest$ac_exeext conftest.$ac_ext 11932LIBS=$ac_check_lib_save_LIBS 11933fi 11934{ echo "$as_me:$LINENO: result: $ac_cv_lib_avformat_av_write_header" >&5 11935echo "${ECHO_T}$ac_cv_lib_avformat_av_write_header" >&6; } 11936if test $ac_cv_lib_avformat_av_write_header = yes; then 11937 cat >>confdefs.h <<_ACEOF 11938#define HAVE_LIBAVFORMAT 1 11939_ACEOF 11940 11941 LIBS="-lavformat $LIBS" 11942 11943fi 11944 11945fi 11946 11947 11948 11949 11950# if avcodec is linked statically, avdevice should, too 11951static_avdevice=$static_avcodec 11952ac_my_avdevice_libs="-lz" 11953test x`(uname -s)` = xSunOS && ac_my_avdevice_libs="-lz -lnsl -lsocket" 11954 11955 11956 11957if test x$static_avdevice = xyes; then 11958 11959 { echo "$as_me:$LINENO: checking for avdevice_register_all in -lavdevice" >&5 11960echo $ECHO_N "checking for avdevice_register_all in -lavdevice... $ECHO_C" >&6; } 11961if test "${ac_cv_lib_avdevice_avdevice_register_all+set}" = set; then 11962 echo $ECHO_N "(cached) $ECHO_C" >&6 11963else 11964 11965echo -n "(static?) ... " 11966ac_check_lib_save_LIBS=$LIBS 11967LIBS="-Wl,-Bstatic -lavdevice -Wl,-Bdynamic $ac_my_avdevice_libs $LIBS" 11968cat >conftest.$ac_ext <<_ACEOF 11969/* confdefs.h. */ 11970_ACEOF 11971cat confdefs.h >>conftest.$ac_ext 11972cat >>conftest.$ac_ext <<_ACEOF 11973/* end confdefs.h. */ 11974 11975/* Override any GCC internal prototype to avoid an error. 11976 Use char because int might match the return type of a GCC 11977 builtin and then its argument prototype would still apply. */ 11978#ifdef __cplusplus 11979extern "C" 11980#endif 11981char avdevice_register_all (); 11982int 11983main () 11984{ 11985return avdevice_register_all (); 11986 ; 11987 return 0; 11988} 11989_ACEOF 11990rm -f conftest.$ac_objext conftest$ac_exeext 11991if { (ac_try="$ac_link" 11992case "(($ac_try" in 11993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11994 *) ac_try_echo=$ac_try;; 11995esac 11996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11997 (eval "$ac_link") 2>conftest.er1 11998 ac_status=$? 11999 grep -v '^ *+' conftest.er1 >conftest.err 12000 rm -f conftest.er1 12001 cat conftest.err >&5 12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12003 (exit $ac_status); } && { 12004 test -z "$ac_c_werror_flag" || 12005 test ! -s conftest.err 12006 } && test -s conftest$ac_exeext && 12007 $as_test_x conftest$ac_exeext; then 12008 ac_cv_lib_avdevice_avdevice_register_all=yes 12009else 12010 echo "$as_me: failed program was:" >&5 12011sed 's/^/| /' conftest.$ac_ext >&5 12012 12013 ac_cv_lib_avdevice_avdevice_register_all=no 12014fi 12015 12016rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12017 conftest$ac_exeext conftest.$ac_ext 12018LIBS=$ac_check_lib_save_LIBS 12019 12020fi 12021{ echo "$as_me:$LINENO: result: $ac_cv_lib_avdevice_avdevice_register_all" >&5 12022echo "${ECHO_T}$ac_cv_lib_avdevice_avdevice_register_all" >&6; } 12023else 12024 ac_cv_lib_avdevice_avdevice_register_all=no 12025fi 12026 12027if test $ac_cv_lib_avdevice_avdevice_register_all = yes; then 12028 cat >>confdefs.h <<_ACEOF 12029#define HAVE_LIBAVDEVICE 1 12030_ACEOF 12031 12032 LIBS="-Wl,-Bstatic -lavdevice -Wl,-Bdynamic $LIBS" 12033 12034else 12035 unset ac_cv_lib_avdevice_avdevice_register_all ; static_avdevice=no ; 12036{ echo "$as_me:$LINENO: checking for avdevice_register_all in -lavdevice" >&5 12037echo $ECHO_N "checking for avdevice_register_all in -lavdevice... $ECHO_C" >&6; } 12038if test "${ac_cv_lib_avdevice_avdevice_register_all+set}" = set; then 12039 echo $ECHO_N "(cached) $ECHO_C" >&6 12040else 12041 ac_check_lib_save_LIBS=$LIBS 12042LIBS="-lavdevice $ac_my_avdevice_libs $LIBS" 12043cat >conftest.$ac_ext <<_ACEOF 12044/* confdefs.h. */ 12045_ACEOF 12046cat confdefs.h >>conftest.$ac_ext 12047cat >>conftest.$ac_ext <<_ACEOF 12048/* end confdefs.h. */ 12049 12050/* Override any GCC internal prototype to avoid an error. 12051 Use char because int might match the return type of a GCC 12052 builtin and then its argument prototype would still apply. */ 12053#ifdef __cplusplus 12054extern "C" 12055#endif 12056char avdevice_register_all (); 12057int 12058main () 12059{ 12060return avdevice_register_all (); 12061 ; 12062 return 0; 12063} 12064_ACEOF 12065rm -f conftest.$ac_objext conftest$ac_exeext 12066if { (ac_try="$ac_link" 12067case "(($ac_try" in 12068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12069 *) ac_try_echo=$ac_try;; 12070esac 12071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12072 (eval "$ac_link") 2>conftest.er1 12073 ac_status=$? 12074 grep -v '^ *+' conftest.er1 >conftest.err 12075 rm -f conftest.er1 12076 cat conftest.err >&5 12077 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12078 (exit $ac_status); } && { 12079 test -z "$ac_c_werror_flag" || 12080 test ! -s conftest.err 12081 } && test -s conftest$ac_exeext && 12082 $as_test_x conftest$ac_exeext; then 12083 ac_cv_lib_avdevice_avdevice_register_all=yes 12084else 12085 echo "$as_me: failed program was:" >&5 12086sed 's/^/| /' conftest.$ac_ext >&5 12087 12088 ac_cv_lib_avdevice_avdevice_register_all=no 12089fi 12090 12091rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12092 conftest$ac_exeext conftest.$ac_ext 12093LIBS=$ac_check_lib_save_LIBS 12094fi 12095{ echo "$as_me:$LINENO: result: $ac_cv_lib_avdevice_avdevice_register_all" >&5 12096echo "${ECHO_T}$ac_cv_lib_avdevice_avdevice_register_all" >&6; } 12097if test $ac_cv_lib_avdevice_avdevice_register_all = yes; then 12098 cat >>confdefs.h <<_ACEOF 12099#define HAVE_LIBAVDEVICE 1 12100_ACEOF 12101 12102 LIBS="-lavdevice $LIBS" 12103 12104fi 12105 12106fi 12107 12108 12109 12110 12111# only use ffmpeg if ALL required libs are present 12112if ( `test x$ac_cv_lib_avcodec_avcodec_encode_video = xyes -a x$ac_cv_lib_avformat_av_write_header = xyes -a x$ac_cv_lib_avutil_av_rescale = xyes -a x$ac_cv_lib_swscale_sws_scale = xyes` ) ; then 12113 ac_cv_lib_avcodec_avcodec_encode_video=yes 12114else 12115 ac_cv_lib_avcodec_avcodec_encode_video=no 12116fi 12117 12118#check for audio suport in FFMPEG (only if that is present in the first place) 12119# thanks to Daniel Stonier for pointing out a typo and thus fixing a bug 12120# with audio detection in shared library libavformat 12121if ( test x${ac_cv_lib_avcodec_avcodec_encode_video} = xyes ) ; then 12122 test x`(uname -s)` = xSunOS && ac_my_avcodec_libs="-lnsl -lsocket" 12123 12124 12125if test x$static_avcodec = xyes; then 12126 12127 { echo "$as_me:$LINENO: checking for avcodec_decode_audio in -lavcodec" >&5 12128echo $ECHO_N "checking for avcodec_decode_audio in -lavcodec... $ECHO_C" >&6; } 12129if test "${ac_cv_lib_avcodec_avcodec_decode_audio+set}" = set; then 12130 echo $ECHO_N "(cached) $ECHO_C" >&6 12131else 12132 12133echo -n "(static?) ... " 12134ac_check_lib_save_LIBS=$LIBS 12135LIBS="-Wl,-Bstatic -lavcodec -Wl,-Bdynamic $ac_my_avcodec_libs $LIBS" 12136cat >conftest.$ac_ext <<_ACEOF 12137/* confdefs.h. */ 12138_ACEOF 12139cat confdefs.h >>conftest.$ac_ext 12140cat >>conftest.$ac_ext <<_ACEOF 12141/* end confdefs.h. */ 12142 12143/* Override any GCC internal prototype to avoid an error. 12144 Use char because int might match the return type of a GCC 12145 builtin and then its argument prototype would still apply. */ 12146#ifdef __cplusplus 12147extern "C" 12148#endif 12149char avcodec_decode_audio (); 12150int 12151main () 12152{ 12153return avcodec_decode_audio (); 12154 ; 12155 return 0; 12156} 12157_ACEOF 12158rm -f conftest.$ac_objext conftest$ac_exeext 12159if { (ac_try="$ac_link" 12160case "(($ac_try" in 12161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12162 *) ac_try_echo=$ac_try;; 12163esac 12164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12165 (eval "$ac_link") 2>conftest.er1 12166 ac_status=$? 12167 grep -v '^ *+' conftest.er1 >conftest.err 12168 rm -f conftest.er1 12169 cat conftest.err >&5 12170 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12171 (exit $ac_status); } && { 12172 test -z "$ac_c_werror_flag" || 12173 test ! -s conftest.err 12174 } && test -s conftest$ac_exeext && 12175 $as_test_x conftest$ac_exeext; then 12176 ac_cv_lib_avcodec_avcodec_decode_audio=yes 12177else 12178 echo "$as_me: failed program was:" >&5 12179sed 's/^/| /' conftest.$ac_ext >&5 12180 12181 ac_cv_lib_avcodec_avcodec_decode_audio=no 12182fi 12183 12184rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12185 conftest$ac_exeext conftest.$ac_ext 12186LIBS=$ac_check_lib_save_LIBS 12187 12188fi 12189{ echo "$as_me:$LINENO: result: $ac_cv_lib_avcodec_avcodec_decode_audio" >&5 12190echo "${ECHO_T}$ac_cv_lib_avcodec_avcodec_decode_audio" >&6; } 12191else 12192 ac_cv_lib_avcodec_avcodec_decode_audio=no 12193fi 12194 12195if test $ac_cv_lib_avcodec_avcodec_decode_audio = yes; then 12196 ac_my_have_ffmpeg_audio="1" 12197else 12198 unset ac_cv_lib_avcodec_avcodec_decode_audio ; { echo "$as_me:$LINENO: checking for avcodec_decode_audio in -lavcodec" >&5 12199echo $ECHO_N "checking for avcodec_decode_audio in -lavcodec... $ECHO_C" >&6; } 12200if test "${ac_cv_lib_avcodec_avcodec_decode_audio+set}" = set; then 12201 echo $ECHO_N "(cached) $ECHO_C" >&6 12202else 12203 ac_check_lib_save_LIBS=$LIBS 12204LIBS="-lavcodec $ac_my_avcodec_libs $LIBS" 12205cat >conftest.$ac_ext <<_ACEOF 12206/* confdefs.h. */ 12207_ACEOF 12208cat confdefs.h >>conftest.$ac_ext 12209cat >>conftest.$ac_ext <<_ACEOF 12210/* end confdefs.h. */ 12211 12212/* Override any GCC internal prototype to avoid an error. 12213 Use char because int might match the return type of a GCC 12214 builtin and then its argument prototype would still apply. */ 12215#ifdef __cplusplus 12216extern "C" 12217#endif 12218char avcodec_decode_audio (); 12219int 12220main () 12221{ 12222return avcodec_decode_audio (); 12223 ; 12224 return 0; 12225} 12226_ACEOF 12227rm -f conftest.$ac_objext conftest$ac_exeext 12228if { (ac_try="$ac_link" 12229case "(($ac_try" in 12230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12231 *) ac_try_echo=$ac_try;; 12232esac 12233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12234 (eval "$ac_link") 2>conftest.er1 12235 ac_status=$? 12236 grep -v '^ *+' conftest.er1 >conftest.err 12237 rm -f conftest.er1 12238 cat conftest.err >&5 12239 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12240 (exit $ac_status); } && { 12241 test -z "$ac_c_werror_flag" || 12242 test ! -s conftest.err 12243 } && test -s conftest$ac_exeext && 12244 $as_test_x conftest$ac_exeext; then 12245 ac_cv_lib_avcodec_avcodec_decode_audio=yes 12246else 12247 echo "$as_me: failed program was:" >&5 12248sed 's/^/| /' conftest.$ac_ext >&5 12249 12250 ac_cv_lib_avcodec_avcodec_decode_audio=no 12251fi 12252 12253rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12254 conftest$ac_exeext conftest.$ac_ext 12255LIBS=$ac_check_lib_save_LIBS 12256fi 12257{ echo "$as_me:$LINENO: result: $ac_cv_lib_avcodec_avcodec_decode_audio" >&5 12258echo "${ECHO_T}$ac_cv_lib_avcodec_avcodec_decode_audio" >&6; } 12259if test $ac_cv_lib_avcodec_avcodec_decode_audio = yes; then 12260 ac_my_have_ffmpeg_audio="1" 12261else 12262 ac_my_have_ffmpeg_audio="0" 12263fi 12264 12265fi 12266 12267 12268 12269fi 12270 12271################################################################ 12272# which libs were found statically 12273################################################################ 12274 12275 if test x$static_avformat = xyes; then 12276 STATIC_AVFORMAT_TRUE= 12277 STATIC_AVFORMAT_FALSE='#' 12278else 12279 STATIC_AVFORMAT_TRUE='#' 12280 STATIC_AVFORMAT_FALSE= 12281fi 12282 12283 if test x$static_avcodec = xyes; then 12284 STATIC_AVCODEC_TRUE= 12285 STATIC_AVCODEC_FALSE='#' 12286else 12287 STATIC_AVCODEC_TRUE='#' 12288 STATIC_AVCODEC_FALSE= 12289fi 12290 12291 if test x$static_avutil = xyes; then 12292 STATIC_AVUTIL_TRUE= 12293 STATIC_AVUTIL_FALSE='#' 12294else 12295 STATIC_AVUTIL_TRUE='#' 12296 STATIC_AVUTIL_FALSE= 12297fi 12298 12299 12300################################################################ 12301################################################################ 12302 12303 12304################################################################ 12305################################################################ 12306# Checks for header files. 12307################################################################ 12308 12309{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 12310echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 12311if test "${ac_cv_header_stdc+set}" = set; then 12312 echo $ECHO_N "(cached) $ECHO_C" >&6 12313else 12314 cat >conftest.$ac_ext <<_ACEOF 12315/* confdefs.h. */ 12316_ACEOF 12317cat confdefs.h >>conftest.$ac_ext 12318cat >>conftest.$ac_ext <<_ACEOF 12319/* end confdefs.h. */ 12320#include <stdlib.h> 12321#include <stdarg.h> 12322#include <string.h> 12323#include <float.h> 12324 12325int 12326main () 12327{ 12328 12329 ; 12330 return 0; 12331} 12332_ACEOF 12333rm -f conftest.$ac_objext 12334if { (ac_try="$ac_compile" 12335case "(($ac_try" in 12336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12337 *) ac_try_echo=$ac_try;; 12338esac 12339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12340 (eval "$ac_compile") 2>conftest.er1 12341 ac_status=$? 12342 grep -v '^ *+' conftest.er1 >conftest.err 12343 rm -f conftest.er1 12344 cat conftest.err >&5 12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12346 (exit $ac_status); } && { 12347 test -z "$ac_c_werror_flag" || 12348 test ! -s conftest.err 12349 } && test -s conftest.$ac_objext; then 12350 ac_cv_header_stdc=yes 12351else 12352 echo "$as_me: failed program was:" >&5 12353sed 's/^/| /' conftest.$ac_ext >&5 12354 12355 ac_cv_header_stdc=no 12356fi 12357 12358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12359 12360if test $ac_cv_header_stdc = yes; then 12361 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 12362 cat >conftest.$ac_ext <<_ACEOF 12363/* confdefs.h. */ 12364_ACEOF 12365cat confdefs.h >>conftest.$ac_ext 12366cat >>conftest.$ac_ext <<_ACEOF 12367/* end confdefs.h. */ 12368#include <string.h> 12369 12370_ACEOF 12371if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12372 $EGREP "memchr" >/dev/null 2>&1; then 12373 : 12374else 12375 ac_cv_header_stdc=no 12376fi 12377rm -f conftest* 12378 12379fi 12380 12381if test $ac_cv_header_stdc = yes; then 12382 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 12383 cat >conftest.$ac_ext <<_ACEOF 12384/* confdefs.h. */ 12385_ACEOF 12386cat confdefs.h >>conftest.$ac_ext 12387cat >>conftest.$ac_ext <<_ACEOF 12388/* end confdefs.h. */ 12389#include <stdlib.h> 12390 12391_ACEOF 12392if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12393 $EGREP "free" >/dev/null 2>&1; then 12394 : 12395else 12396 ac_cv_header_stdc=no 12397fi 12398rm -f conftest* 12399 12400fi 12401 12402if test $ac_cv_header_stdc = yes; then 12403 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 12404 if test "$cross_compiling" = yes; then 12405 : 12406else 12407 cat >conftest.$ac_ext <<_ACEOF 12408/* confdefs.h. */ 12409_ACEOF 12410cat confdefs.h >>conftest.$ac_ext 12411cat >>conftest.$ac_ext <<_ACEOF 12412/* end confdefs.h. */ 12413#include <ctype.h> 12414#include <stdlib.h> 12415#if ((' ' & 0x0FF) == 0x020) 12416# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 12417# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 12418#else 12419# define ISLOWER(c) \ 12420 (('a' <= (c) && (c) <= 'i') \ 12421 || ('j' <= (c) && (c) <= 'r') \ 12422 || ('s' <= (c) && (c) <= 'z')) 12423# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 12424#endif 12425 12426#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 12427int 12428main () 12429{ 12430 int i; 12431 for (i = 0; i < 256; i++) 12432 if (XOR (islower (i), ISLOWER (i)) 12433 || toupper (i) != TOUPPER (i)) 12434 return 2; 12435 return 0; 12436} 12437_ACEOF 12438rm -f conftest$ac_exeext 12439if { (ac_try="$ac_link" 12440case "(($ac_try" in 12441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12442 *) ac_try_echo=$ac_try;; 12443esac 12444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12445 (eval "$ac_link") 2>&5 12446 ac_status=$? 12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12448 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12449 { (case "(($ac_try" in 12450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12451 *) ac_try_echo=$ac_try;; 12452esac 12453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12454 (eval "$ac_try") 2>&5 12455 ac_status=$? 12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12457 (exit $ac_status); }; }; then 12458 : 12459else 12460 echo "$as_me: program exited with status $ac_status" >&5 12461echo "$as_me: failed program was:" >&5 12462sed 's/^/| /' conftest.$ac_ext >&5 12463 12464( exit $ac_status ) 12465ac_cv_header_stdc=no 12466fi 12467rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12468fi 12469 12470 12471fi 12472fi 12473{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 12474echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 12475if test $ac_cv_header_stdc = yes; then 12476 12477cat >>confdefs.h <<\_ACEOF 12478#define STDC_HEADERS 1 12479_ACEOF 12480 12481fi 12482 12483 12484 12485 12486 12487 12488 12489 12490 12491for ac_header in fcntl.h limits.h stdlib.h string.h sys/ioctl.h sys/time.h unistd.h stdint.h 12492do 12493as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12494if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12495 { echo "$as_me:$LINENO: checking for $ac_header" >&5 12496echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 12497if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12498 echo $ECHO_N "(cached) $ECHO_C" >&6 12499fi 12500ac_res=`eval echo '${'$as_ac_Header'}'` 12501 { echo "$as_me:$LINENO: result: $ac_res" >&5 12502echo "${ECHO_T}$ac_res" >&6; } 12503else 12504 # Is the header compilable? 12505{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 12506echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 12507cat >conftest.$ac_ext <<_ACEOF 12508/* confdefs.h. */ 12509_ACEOF 12510cat confdefs.h >>conftest.$ac_ext 12511cat >>conftest.$ac_ext <<_ACEOF 12512/* end confdefs.h. */ 12513$ac_includes_default 12514#include <$ac_header> 12515_ACEOF 12516rm -f conftest.$ac_objext 12517if { (ac_try="$ac_compile" 12518case "(($ac_try" in 12519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12520 *) ac_try_echo=$ac_try;; 12521esac 12522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12523 (eval "$ac_compile") 2>conftest.er1 12524 ac_status=$? 12525 grep -v '^ *+' conftest.er1 >conftest.err 12526 rm -f conftest.er1 12527 cat conftest.err >&5 12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12529 (exit $ac_status); } && { 12530 test -z "$ac_c_werror_flag" || 12531 test ! -s conftest.err 12532 } && test -s conftest.$ac_objext; then 12533 ac_header_compiler=yes 12534else 12535 echo "$as_me: failed program was:" >&5 12536sed 's/^/| /' conftest.$ac_ext >&5 12537 12538 ac_header_compiler=no 12539fi 12540 12541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12542{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12543echo "${ECHO_T}$ac_header_compiler" >&6; } 12544 12545# Is the header present? 12546{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 12547echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 12548cat >conftest.$ac_ext <<_ACEOF 12549/* confdefs.h. */ 12550_ACEOF 12551cat confdefs.h >>conftest.$ac_ext 12552cat >>conftest.$ac_ext <<_ACEOF 12553/* end confdefs.h. */ 12554#include <$ac_header> 12555_ACEOF 12556if { (ac_try="$ac_cpp conftest.$ac_ext" 12557case "(($ac_try" in 12558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12559 *) ac_try_echo=$ac_try;; 12560esac 12561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 12563 ac_status=$? 12564 grep -v '^ *+' conftest.er1 >conftest.err 12565 rm -f conftest.er1 12566 cat conftest.err >&5 12567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12568 (exit $ac_status); } >/dev/null && { 12569 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 12570 test ! -s conftest.err 12571 }; then 12572 ac_header_preproc=yes 12573else 12574 echo "$as_me: failed program was:" >&5 12575sed 's/^/| /' conftest.$ac_ext >&5 12576 12577 ac_header_preproc=no 12578fi 12579 12580rm -f conftest.err conftest.$ac_ext 12581{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12582echo "${ECHO_T}$ac_header_preproc" >&6; } 12583 12584# So? What about this header? 12585case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 12586 yes:no: ) 12587 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 12588echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 12589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 12590echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 12591 ac_header_preproc=yes 12592 ;; 12593 no:yes:* ) 12594 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 12595echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 12596 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 12597echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 12598 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 12599echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 12600 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 12601echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 12602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 12603echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 12604 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 12605echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 12606 12607 ;; 12608esac 12609{ echo "$as_me:$LINENO: checking for $ac_header" >&5 12610echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 12611if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12612 echo $ECHO_N "(cached) $ECHO_C" >&6 12613else 12614 eval "$as_ac_Header=\$ac_header_preproc" 12615fi 12616ac_res=`eval echo '${'$as_ac_Header'}'` 12617 { echo "$as_me:$LINENO: result: $ac_res" >&5 12618echo "${ECHO_T}$ac_res" >&6; } 12619 12620fi 12621if test `eval echo '${'$as_ac_Header'}'` = yes; then 12622 cat >>confdefs.h <<_ACEOF 12623#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12624_ACEOF 12625 12626fi 12627 12628done 12629 12630 12631 12632 12633 12634for ac_header in ctype.h stat.h errno.h netinet/in.h 12635do 12636as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12637if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12638 { echo "$as_me:$LINENO: checking for $ac_header" >&5 12639echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 12640if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12641 echo $ECHO_N "(cached) $ECHO_C" >&6 12642fi 12643ac_res=`eval echo '${'$as_ac_Header'}'` 12644 { echo "$as_me:$LINENO: result: $ac_res" >&5 12645echo "${ECHO_T}$ac_res" >&6; } 12646else 12647 # Is the header compilable? 12648{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 12649echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 12650cat >conftest.$ac_ext <<_ACEOF 12651/* confdefs.h. */ 12652_ACEOF 12653cat confdefs.h >>conftest.$ac_ext 12654cat >>conftest.$ac_ext <<_ACEOF 12655/* end confdefs.h. */ 12656$ac_includes_default 12657#include <$ac_header> 12658_ACEOF 12659rm -f conftest.$ac_objext 12660if { (ac_try="$ac_compile" 12661case "(($ac_try" in 12662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12663 *) ac_try_echo=$ac_try;; 12664esac 12665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12666 (eval "$ac_compile") 2>conftest.er1 12667 ac_status=$? 12668 grep -v '^ *+' conftest.er1 >conftest.err 12669 rm -f conftest.er1 12670 cat conftest.err >&5 12671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12672 (exit $ac_status); } && { 12673 test -z "$ac_c_werror_flag" || 12674 test ! -s conftest.err 12675 } && test -s conftest.$ac_objext; then 12676 ac_header_compiler=yes 12677else 12678 echo "$as_me: failed program was:" >&5 12679sed 's/^/| /' conftest.$ac_ext >&5 12680 12681 ac_header_compiler=no 12682fi 12683 12684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12685{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12686echo "${ECHO_T}$ac_header_compiler" >&6; } 12687 12688# Is the header present? 12689{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 12690echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 12691cat >conftest.$ac_ext <<_ACEOF 12692/* confdefs.h. */ 12693_ACEOF 12694cat confdefs.h >>conftest.$ac_ext 12695cat >>conftest.$ac_ext <<_ACEOF 12696/* end confdefs.h. */ 12697#include <$ac_header> 12698_ACEOF 12699if { (ac_try="$ac_cpp conftest.$ac_ext" 12700case "(($ac_try" in 12701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12702 *) ac_try_echo=$ac_try;; 12703esac 12704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12705 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 12706 ac_status=$? 12707 grep -v '^ *+' conftest.er1 >conftest.err 12708 rm -f conftest.er1 12709 cat conftest.err >&5 12710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12711 (exit $ac_status); } >/dev/null && { 12712 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 12713 test ! -s conftest.err 12714 }; then 12715 ac_header_preproc=yes 12716else 12717 echo "$as_me: failed program was:" >&5 12718sed 's/^/| /' conftest.$ac_ext >&5 12719 12720 ac_header_preproc=no 12721fi 12722 12723rm -f conftest.err conftest.$ac_ext 12724{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12725echo "${ECHO_T}$ac_header_preproc" >&6; } 12726 12727# So? What about this header? 12728case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 12729 yes:no: ) 12730 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 12731echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 12732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 12733echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 12734 ac_header_preproc=yes 12735 ;; 12736 no:yes:* ) 12737 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 12738echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 12739 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 12740echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 12741 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 12742echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 12743 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 12744echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 12745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 12746echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 12747 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 12748echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 12749 12750 ;; 12751esac 12752{ echo "$as_me:$LINENO: checking for $ac_header" >&5 12753echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 12754if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12755 echo $ECHO_N "(cached) $ECHO_C" >&6 12756else 12757 eval "$as_ac_Header=\$ac_header_preproc" 12758fi 12759ac_res=`eval echo '${'$as_ac_Header'}'` 12760 { echo "$as_me:$LINENO: result: $ac_res" >&5 12761echo "${ECHO_T}$ac_res" >&6; } 12762 12763fi 12764if test `eval echo '${'$as_ac_Header'}'` = yes; then 12765 cat >>confdefs.h <<_ACEOF 12766#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12767_ACEOF 12768 12769fi 12770 12771done 12772 12773if ( `test x${ac_cv_header_ctype_h} = xno` ) ; then 12774 echo "FATAL ERROR: header file ctype.h not found and required!" 12775 exit 1 12776fi 12777 12778################################################################ 12779################################################################ 12780 12781 12782################################################################ 12783################################################################ 12784# Checks for typedefs, structures, and compiler characteristics. 12785################################################################ 12786 12787{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 12788echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } 12789if test "${ac_cv_c_const+set}" = set; then 12790 echo $ECHO_N "(cached) $ECHO_C" >&6 12791else 12792 cat >conftest.$ac_ext <<_ACEOF 12793/* confdefs.h. */ 12794_ACEOF 12795cat confdefs.h >>conftest.$ac_ext 12796cat >>conftest.$ac_ext <<_ACEOF 12797/* end confdefs.h. */ 12798 12799int 12800main () 12801{ 12802/* FIXME: Include the comments suggested by Paul. */ 12803#ifndef __cplusplus 12804 /* Ultrix mips cc rejects this. */ 12805 typedef int charset[2]; 12806 const charset cs; 12807 /* SunOS 4.1.1 cc rejects this. */ 12808 char const *const *pcpcc; 12809 char **ppc; 12810 /* NEC SVR4.0.2 mips cc rejects this. */ 12811 struct point {int x, y;}; 12812 static struct point const zero = {0,0}; 12813 /* AIX XL C 1.02.0.0 rejects this. 12814 It does not let you subtract one const X* pointer from another in 12815 an arm of an if-expression whose if-part is not a constant 12816 expression */ 12817 const char *g = "string"; 12818 pcpcc = &g + (g ? g-g : 0); 12819 /* HPUX 7.0 cc rejects these. */ 12820 ++pcpcc; 12821 ppc = (char**) pcpcc; 12822 pcpcc = (char const *const *) ppc; 12823 { /* SCO 3.2v4 cc rejects this. */ 12824 char *t; 12825 char const *s = 0 ? (char *) 0 : (char const *) 0; 12826 12827 *t++ = 0; 12828 if (s) return 0; 12829 } 12830 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 12831 int x[] = {25, 17}; 12832 const int *foo = &x[0]; 12833 ++foo; 12834 } 12835 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 12836 typedef const int *iptr; 12837 iptr p = 0; 12838 ++p; 12839 } 12840 { /* AIX XL C 1.02.0.0 rejects this saying 12841 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 12842 struct s { int j; const int *ap[3]; }; 12843 struct s *b; b->j = 5; 12844 } 12845 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 12846 const int foo = 10; 12847 if (!foo) return 0; 12848 } 12849 return !cs[0] && !zero.x; 12850#endif 12851 12852 ; 12853 return 0; 12854} 12855_ACEOF 12856rm -f conftest.$ac_objext 12857if { (ac_try="$ac_compile" 12858case "(($ac_try" in 12859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12860 *) ac_try_echo=$ac_try;; 12861esac 12862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12863 (eval "$ac_compile") 2>conftest.er1 12864 ac_status=$? 12865 grep -v '^ *+' conftest.er1 >conftest.err 12866 rm -f conftest.er1 12867 cat conftest.err >&5 12868 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12869 (exit $ac_status); } && { 12870 test -z "$ac_c_werror_flag" || 12871 test ! -s conftest.err 12872 } && test -s conftest.$ac_objext; then 12873 ac_cv_c_const=yes 12874else 12875 echo "$as_me: failed program was:" >&5 12876sed 's/^/| /' conftest.$ac_ext >&5 12877 12878 ac_cv_c_const=no 12879fi 12880 12881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12882fi 12883{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 12884echo "${ECHO_T}$ac_cv_c_const" >&6; } 12885if test $ac_cv_c_const = no; then 12886 12887cat >>confdefs.h <<\_ACEOF 12888#define const 12889_ACEOF 12890 12891fi 12892 12893{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 12894echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } 12895if test "${ac_cv_header_time+set}" = set; then 12896 echo $ECHO_N "(cached) $ECHO_C" >&6 12897else 12898 cat >conftest.$ac_ext <<_ACEOF 12899/* confdefs.h. */ 12900_ACEOF 12901cat confdefs.h >>conftest.$ac_ext 12902cat >>conftest.$ac_ext <<_ACEOF 12903/* end confdefs.h. */ 12904#include <sys/types.h> 12905#include <sys/time.h> 12906#include <time.h> 12907 12908int 12909main () 12910{ 12911if ((struct tm *) 0) 12912return 0; 12913 ; 12914 return 0; 12915} 12916_ACEOF 12917rm -f conftest.$ac_objext 12918if { (ac_try="$ac_compile" 12919case "(($ac_try" in 12920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12921 *) ac_try_echo=$ac_try;; 12922esac 12923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12924 (eval "$ac_compile") 2>conftest.er1 12925 ac_status=$? 12926 grep -v '^ *+' conftest.er1 >conftest.err 12927 rm -f conftest.er1 12928 cat conftest.err >&5 12929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12930 (exit $ac_status); } && { 12931 test -z "$ac_c_werror_flag" || 12932 test ! -s conftest.err 12933 } && test -s conftest.$ac_objext; then 12934 ac_cv_header_time=yes 12935else 12936 echo "$as_me: failed program was:" >&5 12937sed 's/^/| /' conftest.$ac_ext >&5 12938 12939 ac_cv_header_time=no 12940fi 12941 12942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12943fi 12944{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 12945echo "${ECHO_T}$ac_cv_header_time" >&6; } 12946if test $ac_cv_header_time = yes; then 12947 12948cat >>confdefs.h <<\_ACEOF 12949#define TIME_WITH_SYS_TIME 1 12950_ACEOF 12951 12952fi 12953 12954 12955################################################################ 12956################################################################ 12957 12958 12959################################################################ 12960################################################################ 12961# Checks for general library functions. 12962################################################################ 12963 12964if test $ac_cv_c_compiler_gnu = yes; then 12965 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 12966echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; } 12967if test "${ac_cv_prog_gcc_traditional+set}" = set; then 12968 echo $ECHO_N "(cached) $ECHO_C" >&6 12969else 12970 ac_pattern="Autoconf.*'x'" 12971 cat >conftest.$ac_ext <<_ACEOF 12972/* confdefs.h. */ 12973_ACEOF 12974cat confdefs.h >>conftest.$ac_ext 12975cat >>conftest.$ac_ext <<_ACEOF 12976/* end confdefs.h. */ 12977#include <sgtty.h> 12978Autoconf TIOCGETP 12979_ACEOF 12980if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12981 $EGREP "$ac_pattern" >/dev/null 2>&1; then 12982 ac_cv_prog_gcc_traditional=yes 12983else 12984 ac_cv_prog_gcc_traditional=no 12985fi 12986rm -f conftest* 12987 12988 12989 if test $ac_cv_prog_gcc_traditional = no; then 12990 cat >conftest.$ac_ext <<_ACEOF 12991/* confdefs.h. */ 12992_ACEOF 12993cat confdefs.h >>conftest.$ac_ext 12994cat >>conftest.$ac_ext <<_ACEOF 12995/* end confdefs.h. */ 12996#include <termio.h> 12997Autoconf TCGETA 12998_ACEOF 12999if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13000 $EGREP "$ac_pattern" >/dev/null 2>&1; then 13001 ac_cv_prog_gcc_traditional=yes 13002fi 13003rm -f conftest* 13004 13005 fi 13006fi 13007{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 13008echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; } 13009 if test $ac_cv_prog_gcc_traditional = yes; then 13010 CC="$CC -traditional" 13011 fi 13012fi 13013 13014 13015for ac_header in stdlib.h 13016do 13017as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 13018if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13019 { echo "$as_me:$LINENO: checking for $ac_header" >&5 13020echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 13021if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13022 echo $ECHO_N "(cached) $ECHO_C" >&6 13023fi 13024ac_res=`eval echo '${'$as_ac_Header'}'` 13025 { echo "$as_me:$LINENO: result: $ac_res" >&5 13026echo "${ECHO_T}$ac_res" >&6; } 13027else 13028 # Is the header compilable? 13029{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 13030echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 13031cat >conftest.$ac_ext <<_ACEOF 13032/* confdefs.h. */ 13033_ACEOF 13034cat confdefs.h >>conftest.$ac_ext 13035cat >>conftest.$ac_ext <<_ACEOF 13036/* end confdefs.h. */ 13037$ac_includes_default 13038#include <$ac_header> 13039_ACEOF 13040rm -f conftest.$ac_objext 13041if { (ac_try="$ac_compile" 13042case "(($ac_try" in 13043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13044 *) ac_try_echo=$ac_try;; 13045esac 13046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13047 (eval "$ac_compile") 2>conftest.er1 13048 ac_status=$? 13049 grep -v '^ *+' conftest.er1 >conftest.err 13050 rm -f conftest.er1 13051 cat conftest.err >&5 13052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13053 (exit $ac_status); } && { 13054 test -z "$ac_c_werror_flag" || 13055 test ! -s conftest.err 13056 } && test -s conftest.$ac_objext; then 13057 ac_header_compiler=yes 13058else 13059 echo "$as_me: failed program was:" >&5 13060sed 's/^/| /' conftest.$ac_ext >&5 13061 13062 ac_header_compiler=no 13063fi 13064 13065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13066{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13067echo "${ECHO_T}$ac_header_compiler" >&6; } 13068 13069# Is the header present? 13070{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 13071echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 13072cat >conftest.$ac_ext <<_ACEOF 13073/* confdefs.h. */ 13074_ACEOF 13075cat confdefs.h >>conftest.$ac_ext 13076cat >>conftest.$ac_ext <<_ACEOF 13077/* end confdefs.h. */ 13078#include <$ac_header> 13079_ACEOF 13080if { (ac_try="$ac_cpp conftest.$ac_ext" 13081case "(($ac_try" in 13082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13083 *) ac_try_echo=$ac_try;; 13084esac 13085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13086 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13087 ac_status=$? 13088 grep -v '^ *+' conftest.er1 >conftest.err 13089 rm -f conftest.er1 13090 cat conftest.err >&5 13091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13092 (exit $ac_status); } >/dev/null && { 13093 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 13094 test ! -s conftest.err 13095 }; then 13096 ac_header_preproc=yes 13097else 13098 echo "$as_me: failed program was:" >&5 13099sed 's/^/| /' conftest.$ac_ext >&5 13100 13101 ac_header_preproc=no 13102fi 13103 13104rm -f conftest.err conftest.$ac_ext 13105{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13106echo "${ECHO_T}$ac_header_preproc" >&6; } 13107 13108# So? What about this header? 13109case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13110 yes:no: ) 13111 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 13112echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 13113 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 13114echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 13115 ac_header_preproc=yes 13116 ;; 13117 no:yes:* ) 13118 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 13119echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 13120 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 13121echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 13122 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 13123echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 13124 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 13125echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 13126 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 13127echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 13128 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 13129echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 13130 13131 ;; 13132esac 13133{ echo "$as_me:$LINENO: checking for $ac_header" >&5 13134echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 13135if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13136 echo $ECHO_N "(cached) $ECHO_C" >&6 13137else 13138 eval "$as_ac_Header=\$ac_header_preproc" 13139fi 13140ac_res=`eval echo '${'$as_ac_Header'}'` 13141 { echo "$as_me:$LINENO: result: $ac_res" >&5 13142echo "${ECHO_T}$ac_res" >&6; } 13143 13144fi 13145if test `eval echo '${'$as_ac_Header'}'` = yes; then 13146 cat >>confdefs.h <<_ACEOF 13147#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 13148_ACEOF 13149 13150fi 13151 13152done 13153 13154{ echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 13155echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; } 13156if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then 13157 echo $ECHO_N "(cached) $ECHO_C" >&6 13158else 13159 if test "$cross_compiling" = yes; then 13160 ac_cv_func_malloc_0_nonnull=no 13161else 13162 cat >conftest.$ac_ext <<_ACEOF 13163/* confdefs.h. */ 13164_ACEOF 13165cat confdefs.h >>conftest.$ac_ext 13166cat >>conftest.$ac_ext <<_ACEOF 13167/* end confdefs.h. */ 13168#if defined STDC_HEADERS || defined HAVE_STDLIB_H 13169# include <stdlib.h> 13170#else 13171char *malloc (); 13172#endif 13173 13174int 13175main () 13176{ 13177return ! malloc (0); 13178 ; 13179 return 0; 13180} 13181_ACEOF 13182rm -f conftest$ac_exeext 13183if { (ac_try="$ac_link" 13184case "(($ac_try" in 13185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13186 *) ac_try_echo=$ac_try;; 13187esac 13188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13189 (eval "$ac_link") 2>&5 13190 ac_status=$? 13191 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13192 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 13193 { (case "(($ac_try" in 13194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13195 *) ac_try_echo=$ac_try;; 13196esac 13197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13198 (eval "$ac_try") 2>&5 13199 ac_status=$? 13200 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13201 (exit $ac_status); }; }; then 13202 ac_cv_func_malloc_0_nonnull=yes 13203else 13204 echo "$as_me: program exited with status $ac_status" >&5 13205echo "$as_me: failed program was:" >&5 13206sed 's/^/| /' conftest.$ac_ext >&5 13207 13208( exit $ac_status ) 13209ac_cv_func_malloc_0_nonnull=no 13210fi 13211rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 13212fi 13213 13214 13215fi 13216{ echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 13217echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; } 13218if test $ac_cv_func_malloc_0_nonnull = yes; then 13219 13220cat >>confdefs.h <<\_ACEOF 13221#define HAVE_MALLOC 1 13222_ACEOF 13223 13224else 13225 cat >>confdefs.h <<\_ACEOF 13226#define HAVE_MALLOC 0 13227_ACEOF 13228 13229 case " $LIBOBJS " in 13230 *" malloc.$ac_objext "* ) ;; 13231 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 13232 ;; 13233esac 13234 13235 13236cat >>confdefs.h <<\_ACEOF 13237#define malloc rpl_malloc 13238_ACEOF 13239 13240fi 13241 13242 13243 13244 13245 13246for ac_header in stdlib.h unistd.h 13247do 13248as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 13249if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13250 { echo "$as_me:$LINENO: checking for $ac_header" >&5 13251echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 13252if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13253 echo $ECHO_N "(cached) $ECHO_C" >&6 13254fi 13255ac_res=`eval echo '${'$as_ac_Header'}'` 13256 { echo "$as_me:$LINENO: result: $ac_res" >&5 13257echo "${ECHO_T}$ac_res" >&6; } 13258else 13259 # Is the header compilable? 13260{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 13261echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 13262cat >conftest.$ac_ext <<_ACEOF 13263/* confdefs.h. */ 13264_ACEOF 13265cat confdefs.h >>conftest.$ac_ext 13266cat >>conftest.$ac_ext <<_ACEOF 13267/* end confdefs.h. */ 13268$ac_includes_default 13269#include <$ac_header> 13270_ACEOF 13271rm -f conftest.$ac_objext 13272if { (ac_try="$ac_compile" 13273case "(($ac_try" in 13274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13275 *) ac_try_echo=$ac_try;; 13276esac 13277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13278 (eval "$ac_compile") 2>conftest.er1 13279 ac_status=$? 13280 grep -v '^ *+' conftest.er1 >conftest.err 13281 rm -f conftest.er1 13282 cat conftest.err >&5 13283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13284 (exit $ac_status); } && { 13285 test -z "$ac_c_werror_flag" || 13286 test ! -s conftest.err 13287 } && test -s conftest.$ac_objext; then 13288 ac_header_compiler=yes 13289else 13290 echo "$as_me: failed program was:" >&5 13291sed 's/^/| /' conftest.$ac_ext >&5 13292 13293 ac_header_compiler=no 13294fi 13295 13296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13297{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13298echo "${ECHO_T}$ac_header_compiler" >&6; } 13299 13300# Is the header present? 13301{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 13302echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 13303cat >conftest.$ac_ext <<_ACEOF 13304/* confdefs.h. */ 13305_ACEOF 13306cat confdefs.h >>conftest.$ac_ext 13307cat >>conftest.$ac_ext <<_ACEOF 13308/* end confdefs.h. */ 13309#include <$ac_header> 13310_ACEOF 13311if { (ac_try="$ac_cpp conftest.$ac_ext" 13312case "(($ac_try" in 13313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13314 *) ac_try_echo=$ac_try;; 13315esac 13316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13318 ac_status=$? 13319 grep -v '^ *+' conftest.er1 >conftest.err 13320 rm -f conftest.er1 13321 cat conftest.err >&5 13322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13323 (exit $ac_status); } >/dev/null && { 13324 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 13325 test ! -s conftest.err 13326 }; then 13327 ac_header_preproc=yes 13328else 13329 echo "$as_me: failed program was:" >&5 13330sed 's/^/| /' conftest.$ac_ext >&5 13331 13332 ac_header_preproc=no 13333fi 13334 13335rm -f conftest.err conftest.$ac_ext 13336{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13337echo "${ECHO_T}$ac_header_preproc" >&6; } 13338 13339# So? What about this header? 13340case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13341 yes:no: ) 13342 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 13343echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 13344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 13345echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 13346 ac_header_preproc=yes 13347 ;; 13348 no:yes:* ) 13349 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 13350echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 13351 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 13352echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 13353 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 13354echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 13355 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 13356echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 13357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 13358echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 13359 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 13360echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 13361 13362 ;; 13363esac 13364{ echo "$as_me:$LINENO: checking for $ac_header" >&5 13365echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 13366if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13367 echo $ECHO_N "(cached) $ECHO_C" >&6 13368else 13369 eval "$as_ac_Header=\$ac_header_preproc" 13370fi 13371ac_res=`eval echo '${'$as_ac_Header'}'` 13372 { echo "$as_me:$LINENO: result: $ac_res" >&5 13373echo "${ECHO_T}$ac_res" >&6; } 13374 13375fi 13376if test `eval echo '${'$as_ac_Header'}'` = yes; then 13377 cat >>confdefs.h <<_ACEOF 13378#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 13379_ACEOF 13380 13381fi 13382 13383done 13384 13385 13386for ac_func in getpagesize 13387do 13388as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 13389{ echo "$as_me:$LINENO: checking for $ac_func" >&5 13390echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 13391if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 13392 echo $ECHO_N "(cached) $ECHO_C" >&6 13393else 13394 cat >conftest.$ac_ext <<_ACEOF 13395/* confdefs.h. */ 13396_ACEOF 13397cat confdefs.h >>conftest.$ac_ext 13398cat >>conftest.$ac_ext <<_ACEOF 13399/* end confdefs.h. */ 13400/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13401 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13402#define $ac_func innocuous_$ac_func 13403 13404/* System header to define __stub macros and hopefully few prototypes, 13405 which can conflict with char $ac_func (); below. 13406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13407 <limits.h> exists even on freestanding compilers. */ 13408 13409#ifdef __STDC__ 13410# include <limits.h> 13411#else 13412# include <assert.h> 13413#endif 13414 13415#undef $ac_func 13416 13417/* Override any GCC internal prototype to avoid an error. 13418 Use char because int might match the return type of a GCC 13419 builtin and then its argument prototype would still apply. */ 13420#ifdef __cplusplus 13421extern "C" 13422#endif 13423char $ac_func (); 13424/* The GNU C library defines this for functions which it implements 13425 to always fail with ENOSYS. Some functions are actually named 13426 something starting with __ and the normal name is an alias. */ 13427#if defined __stub_$ac_func || defined __stub___$ac_func 13428choke me 13429#endif 13430 13431int 13432main () 13433{ 13434return $ac_func (); 13435 ; 13436 return 0; 13437} 13438_ACEOF 13439rm -f conftest.$ac_objext conftest$ac_exeext 13440if { (ac_try="$ac_link" 13441case "(($ac_try" in 13442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13443 *) ac_try_echo=$ac_try;; 13444esac 13445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13446 (eval "$ac_link") 2>conftest.er1 13447 ac_status=$? 13448 grep -v '^ *+' conftest.er1 >conftest.err 13449 rm -f conftest.er1 13450 cat conftest.err >&5 13451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13452 (exit $ac_status); } && { 13453 test -z "$ac_c_werror_flag" || 13454 test ! -s conftest.err 13455 } && test -s conftest$ac_exeext && 13456 $as_test_x conftest$ac_exeext; then 13457 eval "$as_ac_var=yes" 13458else 13459 echo "$as_me: failed program was:" >&5 13460sed 's/^/| /' conftest.$ac_ext >&5 13461 13462 eval "$as_ac_var=no" 13463fi 13464 13465rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13466 conftest$ac_exeext conftest.$ac_ext 13467fi 13468ac_res=`eval echo '${'$as_ac_var'}'` 13469 { echo "$as_me:$LINENO: result: $ac_res" >&5 13470echo "${ECHO_T}$ac_res" >&6; } 13471if test `eval echo '${'$as_ac_var'}'` = yes; then 13472 cat >>confdefs.h <<_ACEOF 13473#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 13474_ACEOF 13475 13476fi 13477done 13478 13479{ echo "$as_me:$LINENO: checking for working mmap" >&5 13480echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } 13481if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 13482 echo $ECHO_N "(cached) $ECHO_C" >&6 13483else 13484 if test "$cross_compiling" = yes; then 13485 ac_cv_func_mmap_fixed_mapped=no 13486else 13487 cat >conftest.$ac_ext <<_ACEOF 13488/* confdefs.h. */ 13489_ACEOF 13490cat confdefs.h >>conftest.$ac_ext 13491cat >>conftest.$ac_ext <<_ACEOF 13492/* end confdefs.h. */ 13493$ac_includes_default 13494/* malloc might have been renamed as rpl_malloc. */ 13495#undef malloc 13496 13497/* Thanks to Mike Haertel and Jim Avera for this test. 13498 Here is a matrix of mmap possibilities: 13499 mmap private not fixed 13500 mmap private fixed at somewhere currently unmapped 13501 mmap private fixed at somewhere already mapped 13502 mmap shared not fixed 13503 mmap shared fixed at somewhere currently unmapped 13504 mmap shared fixed at somewhere already mapped 13505 For private mappings, we should verify that changes cannot be read() 13506 back from the file, nor mmap's back from the file at a different 13507 address. (There have been systems where private was not correctly 13508 implemented like the infamous i386 svr4.0, and systems where the 13509 VM page cache was not coherent with the file system buffer cache 13510 like early versions of FreeBSD and possibly contemporary NetBSD.) 13511 For shared mappings, we should conversely verify that changes get 13512 propagated back to all the places they're supposed to be. 13513 13514 Grep wants private fixed already mapped. 13515 The main things grep needs to know about mmap are: 13516 * does it exist and is it safe to write into the mmap'd area 13517 * how to use it (BSD variants) */ 13518 13519#include <fcntl.h> 13520#include <sys/mman.h> 13521 13522#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 13523char *malloc (); 13524#endif 13525 13526/* This mess was copied from the GNU getpagesize.h. */ 13527#ifndef HAVE_GETPAGESIZE 13528/* Assume that all systems that can run configure have sys/param.h. */ 13529# ifndef HAVE_SYS_PARAM_H 13530# define HAVE_SYS_PARAM_H 1 13531# endif 13532 13533# ifdef _SC_PAGESIZE 13534# define getpagesize() sysconf(_SC_PAGESIZE) 13535# else /* no _SC_PAGESIZE */ 13536# ifdef HAVE_SYS_PARAM_H 13537# include <sys/param.h> 13538# ifdef EXEC_PAGESIZE 13539# define getpagesize() EXEC_PAGESIZE 13540# else /* no EXEC_PAGESIZE */ 13541# ifdef NBPG 13542# define getpagesize() NBPG * CLSIZE 13543# ifndef CLSIZE 13544# define CLSIZE 1 13545# endif /* no CLSIZE */ 13546# else /* no NBPG */ 13547# ifdef NBPC 13548# define getpagesize() NBPC 13549# else /* no NBPC */ 13550# ifdef PAGESIZE 13551# define getpagesize() PAGESIZE 13552# endif /* PAGESIZE */ 13553# endif /* no NBPC */ 13554# endif /* no NBPG */ 13555# endif /* no EXEC_PAGESIZE */ 13556# else /* no HAVE_SYS_PARAM_H */ 13557# define getpagesize() 8192 /* punt totally */ 13558# endif /* no HAVE_SYS_PARAM_H */ 13559# endif /* no _SC_PAGESIZE */ 13560 13561#endif /* no HAVE_GETPAGESIZE */ 13562 13563int 13564main () 13565{ 13566 char *data, *data2, *data3; 13567 int i, pagesize; 13568 int fd; 13569 13570 pagesize = getpagesize (); 13571 13572 /* First, make a file with some known garbage in it. */ 13573 data = (char *) malloc (pagesize); 13574 if (!data) 13575 return 1; 13576 for (i = 0; i < pagesize; ++i) 13577 *(data + i) = rand (); 13578 umask (0); 13579 fd = creat ("conftest.mmap", 0600); 13580 if (fd < 0) 13581 return 1; 13582 if (write (fd, data, pagesize) != pagesize) 13583 return 1; 13584 close (fd); 13585 13586 /* Next, try to mmap the file at a fixed address which already has 13587 something else allocated at it. If we can, also make sure that 13588 we see the same garbage. */ 13589 fd = open ("conftest.mmap", O_RDWR); 13590 if (fd < 0) 13591 return 1; 13592 data2 = (char *) malloc (2 * pagesize); 13593 if (!data2) 13594 return 1; 13595 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); 13596 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 13597 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 13598 return 1; 13599 for (i = 0; i < pagesize; ++i) 13600 if (*(data + i) != *(data2 + i)) 13601 return 1; 13602 13603 /* Finally, make sure that changes to the mapped area do not 13604 percolate back to the file as seen by read(). (This is a bug on 13605 some variants of i386 svr4.0.) */ 13606 for (i = 0; i < pagesize; ++i) 13607 *(data2 + i) = *(data2 + i) + 1; 13608 data3 = (char *) malloc (pagesize); 13609 if (!data3) 13610 return 1; 13611 if (read (fd, data3, pagesize) != pagesize) 13612 return 1; 13613 for (i = 0; i < pagesize; ++i) 13614 if (*(data + i) != *(data3 + i)) 13615 return 1; 13616 close (fd); 13617 return 0; 13618} 13619_ACEOF 13620rm -f conftest$ac_exeext 13621if { (ac_try="$ac_link" 13622case "(($ac_try" in 13623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13624 *) ac_try_echo=$ac_try;; 13625esac 13626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13627 (eval "$ac_link") 2>&5 13628 ac_status=$? 13629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13630 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 13631 { (case "(($ac_try" in 13632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13633 *) ac_try_echo=$ac_try;; 13634esac 13635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13636 (eval "$ac_try") 2>&5 13637 ac_status=$? 13638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13639 (exit $ac_status); }; }; then 13640 ac_cv_func_mmap_fixed_mapped=yes 13641else 13642 echo "$as_me: program exited with status $ac_status" >&5 13643echo "$as_me: failed program was:" >&5 13644sed 's/^/| /' conftest.$ac_ext >&5 13645 13646( exit $ac_status ) 13647ac_cv_func_mmap_fixed_mapped=no 13648fi 13649rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 13650fi 13651 13652 13653fi 13654{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 13655echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } 13656if test $ac_cv_func_mmap_fixed_mapped = yes; then 13657 13658cat >>confdefs.h <<\_ACEOF 13659#define HAVE_MMAP 1 13660_ACEOF 13661 13662fi 13663rm -f conftest.mmap 13664 13665 13666for ac_header in stdlib.h 13667do 13668as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 13669if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13670 { echo "$as_me:$LINENO: checking for $ac_header" >&5 13671echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 13672if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13673 echo $ECHO_N "(cached) $ECHO_C" >&6 13674fi 13675ac_res=`eval echo '${'$as_ac_Header'}'` 13676 { echo "$as_me:$LINENO: result: $ac_res" >&5 13677echo "${ECHO_T}$ac_res" >&6; } 13678else 13679 # Is the header compilable? 13680{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 13681echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 13682cat >conftest.$ac_ext <<_ACEOF 13683/* confdefs.h. */ 13684_ACEOF 13685cat confdefs.h >>conftest.$ac_ext 13686cat >>conftest.$ac_ext <<_ACEOF 13687/* end confdefs.h. */ 13688$ac_includes_default 13689#include <$ac_header> 13690_ACEOF 13691rm -f conftest.$ac_objext 13692if { (ac_try="$ac_compile" 13693case "(($ac_try" in 13694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13695 *) ac_try_echo=$ac_try;; 13696esac 13697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13698 (eval "$ac_compile") 2>conftest.er1 13699 ac_status=$? 13700 grep -v '^ *+' conftest.er1 >conftest.err 13701 rm -f conftest.er1 13702 cat conftest.err >&5 13703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13704 (exit $ac_status); } && { 13705 test -z "$ac_c_werror_flag" || 13706 test ! -s conftest.err 13707 } && test -s conftest.$ac_objext; then 13708 ac_header_compiler=yes 13709else 13710 echo "$as_me: failed program was:" >&5 13711sed 's/^/| /' conftest.$ac_ext >&5 13712 13713 ac_header_compiler=no 13714fi 13715 13716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13717{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13718echo "${ECHO_T}$ac_header_compiler" >&6; } 13719 13720# Is the header present? 13721{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 13722echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 13723cat >conftest.$ac_ext <<_ACEOF 13724/* confdefs.h. */ 13725_ACEOF 13726cat confdefs.h >>conftest.$ac_ext 13727cat >>conftest.$ac_ext <<_ACEOF 13728/* end confdefs.h. */ 13729#include <$ac_header> 13730_ACEOF 13731if { (ac_try="$ac_cpp conftest.$ac_ext" 13732case "(($ac_try" in 13733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13734 *) ac_try_echo=$ac_try;; 13735esac 13736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13737 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13738 ac_status=$? 13739 grep -v '^ *+' conftest.er1 >conftest.err 13740 rm -f conftest.er1 13741 cat conftest.err >&5 13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13743 (exit $ac_status); } >/dev/null && { 13744 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 13745 test ! -s conftest.err 13746 }; then 13747 ac_header_preproc=yes 13748else 13749 echo "$as_me: failed program was:" >&5 13750sed 's/^/| /' conftest.$ac_ext >&5 13751 13752 ac_header_preproc=no 13753fi 13754 13755rm -f conftest.err conftest.$ac_ext 13756{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13757echo "${ECHO_T}$ac_header_preproc" >&6; } 13758 13759# So? What about this header? 13760case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13761 yes:no: ) 13762 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 13763echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 13764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 13765echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 13766 ac_header_preproc=yes 13767 ;; 13768 no:yes:* ) 13769 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 13770echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 13771 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 13772echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 13773 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 13774echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 13775 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 13776echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 13777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 13778echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 13779 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 13780echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 13781 13782 ;; 13783esac 13784{ echo "$as_me:$LINENO: checking for $ac_header" >&5 13785echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 13786if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13787 echo $ECHO_N "(cached) $ECHO_C" >&6 13788else 13789 eval "$as_ac_Header=\$ac_header_preproc" 13790fi 13791ac_res=`eval echo '${'$as_ac_Header'}'` 13792 { echo "$as_me:$LINENO: result: $ac_res" >&5 13793echo "${ECHO_T}$ac_res" >&6; } 13794 13795fi 13796if test `eval echo '${'$as_ac_Header'}'` = yes; then 13797 cat >>confdefs.h <<_ACEOF 13798#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 13799_ACEOF 13800 13801fi 13802 13803done 13804 13805{ echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5 13806echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; } 13807if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then 13808 echo $ECHO_N "(cached) $ECHO_C" >&6 13809else 13810 if test "$cross_compiling" = yes; then 13811 ac_cv_func_realloc_0_nonnull=no 13812else 13813 cat >conftest.$ac_ext <<_ACEOF 13814/* confdefs.h. */ 13815_ACEOF 13816cat confdefs.h >>conftest.$ac_ext 13817cat >>conftest.$ac_ext <<_ACEOF 13818/* end confdefs.h. */ 13819#if defined STDC_HEADERS || defined HAVE_STDLIB_H 13820# include <stdlib.h> 13821#else 13822char *realloc (); 13823#endif 13824 13825int 13826main () 13827{ 13828return ! realloc (0, 0); 13829 ; 13830 return 0; 13831} 13832_ACEOF 13833rm -f conftest$ac_exeext 13834if { (ac_try="$ac_link" 13835case "(($ac_try" in 13836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13837 *) ac_try_echo=$ac_try;; 13838esac 13839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13840 (eval "$ac_link") 2>&5 13841 ac_status=$? 13842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13843 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 13844 { (case "(($ac_try" in 13845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13846 *) ac_try_echo=$ac_try;; 13847esac 13848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13849 (eval "$ac_try") 2>&5 13850 ac_status=$? 13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13852 (exit $ac_status); }; }; then 13853 ac_cv_func_realloc_0_nonnull=yes 13854else 13855 echo "$as_me: program exited with status $ac_status" >&5 13856echo "$as_me: failed program was:" >&5 13857sed 's/^/| /' conftest.$ac_ext >&5 13858 13859( exit $ac_status ) 13860ac_cv_func_realloc_0_nonnull=no 13861fi 13862rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 13863fi 13864 13865 13866fi 13867{ echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5 13868echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; } 13869if test $ac_cv_func_realloc_0_nonnull = yes; then 13870 13871cat >>confdefs.h <<\_ACEOF 13872#define HAVE_REALLOC 1 13873_ACEOF 13874 13875else 13876 cat >>confdefs.h <<\_ACEOF 13877#define HAVE_REALLOC 0 13878_ACEOF 13879 13880 case " $LIBOBJS " in 13881 *" realloc.$ac_objext "* ) ;; 13882 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" 13883 ;; 13884esac 13885 13886 13887cat >>confdefs.h <<\_ACEOF 13888#define realloc rpl_realloc 13889_ACEOF 13890 13891fi 13892 13893 13894 13895 13896 13897 13898 13899 13900 13901 13902 13903 13904 13905for ac_func in fdatasync gettimeofday memmove memset munmap strcasecmp strchr strdup strstr getopt_long 13906do 13907as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 13908{ echo "$as_me:$LINENO: checking for $ac_func" >&5 13909echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 13910if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 13911 echo $ECHO_N "(cached) $ECHO_C" >&6 13912else 13913 cat >conftest.$ac_ext <<_ACEOF 13914/* confdefs.h. */ 13915_ACEOF 13916cat confdefs.h >>conftest.$ac_ext 13917cat >>conftest.$ac_ext <<_ACEOF 13918/* end confdefs.h. */ 13919/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13920 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13921#define $ac_func innocuous_$ac_func 13922 13923/* System header to define __stub macros and hopefully few prototypes, 13924 which can conflict with char $ac_func (); below. 13925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13926 <limits.h> exists even on freestanding compilers. */ 13927 13928#ifdef __STDC__ 13929# include <limits.h> 13930#else 13931# include <assert.h> 13932#endif 13933 13934#undef $ac_func 13935 13936/* Override any GCC internal prototype to avoid an error. 13937 Use char because int might match the return type of a GCC 13938 builtin and then its argument prototype would still apply. */ 13939#ifdef __cplusplus 13940extern "C" 13941#endif 13942char $ac_func (); 13943/* The GNU C library defines this for functions which it implements 13944 to always fail with ENOSYS. Some functions are actually named 13945 something starting with __ and the normal name is an alias. */ 13946#if defined __stub_$ac_func || defined __stub___$ac_func 13947choke me 13948#endif 13949 13950int 13951main () 13952{ 13953return $ac_func (); 13954 ; 13955 return 0; 13956} 13957_ACEOF 13958rm -f conftest.$ac_objext conftest$ac_exeext 13959if { (ac_try="$ac_link" 13960case "(($ac_try" in 13961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13962 *) ac_try_echo=$ac_try;; 13963esac 13964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13965 (eval "$ac_link") 2>conftest.er1 13966 ac_status=$? 13967 grep -v '^ *+' conftest.er1 >conftest.err 13968 rm -f conftest.er1 13969 cat conftest.err >&5 13970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13971 (exit $ac_status); } && { 13972 test -z "$ac_c_werror_flag" || 13973 test ! -s conftest.err 13974 } && test -s conftest$ac_exeext && 13975 $as_test_x conftest$ac_exeext; then 13976 eval "$as_ac_var=yes" 13977else 13978 echo "$as_me: failed program was:" >&5 13979sed 's/^/| /' conftest.$ac_ext >&5 13980 13981 eval "$as_ac_var=no" 13982fi 13983 13984rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13985 conftest$ac_exeext conftest.$ac_ext 13986fi 13987ac_res=`eval echo '${'$as_ac_var'}'` 13988 { echo "$as_me:$LINENO: result: $ac_res" >&5 13989echo "${ECHO_T}$ac_res" >&6; } 13990if test `eval echo '${'$as_ac_var'}'` = yes; then 13991 cat >>confdefs.h <<_ACEOF 13992#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 13993_ACEOF 13994 13995fi 13996done 13997 13998 13999################################################################ 14000################################################################ 14001 14002 14003################################################################ 14004################################################################ 14005# variables for use in Makefiles 14006################################################################ 14007 14008 if test x$ac_cv_func_getopt_long = xyes; then 14009 HAVE_GETOPT_LONG_TRUE= 14010 HAVE_GETOPT_LONG_FALSE='#' 14011else 14012 HAVE_GETOPT_LONG_TRUE='#' 14013 HAVE_GETOPT_LONG_FALSE= 14014fi 14015 14016 if test x$ac_cv_func_malloc_0_nonnull = xyes; then 14017 HAVE_MALLOC_TRUE= 14018 HAVE_MALLOC_FALSE='#' 14019else 14020 HAVE_MALLOC_TRUE='#' 14021 HAVE_MALLOC_FALSE= 14022fi 14023 14024 if test x$ac_cv_func_realloc_0_nonnull = xyes; then 14025 HAVE_REALLOC_TRUE= 14026 HAVE_REALLOC_FALSE='#' 14027else 14028 HAVE_REALLOC_TRUE='#' 14029 HAVE_REALLOC_FALSE= 14030fi 14031 14032 14033 if test x${ac_my_have_ffmpeg_audio} = x1; then 14034 HAVE_FFMPEG_AUDIO_TRUE= 14035 HAVE_FFMPEG_AUDIO_FALSE='#' 14036else 14037 HAVE_FFMPEG_AUDIO_TRUE='#' 14038 HAVE_FFMPEG_AUDIO_FALSE= 14039fi 14040 14041 14042 if test x${ac_my_dbus_usable} = "xyes"; then 14043 USE_DBUS_TRUE= 14044 USE_DBUS_FALSE='#' 14045else 14046 USE_DBUS_TRUE='#' 14047 USE_DBUS_FALSE= 14048fi 14049 14050 14051################################################################ 14052################################################################ 14053 14054 14055################################################################ 14056################################################################ 14057# generic preproc defines 14058################################################################ 14059 14060 14061 14062 14063test x${ac_cv_lib_avcodec_avcodec_encode_video} = "xyes" && cat >>confdefs.h <<\_ACEOF 14064#define USE_FFMPEG 1 14065_ACEOF 14066 14067 14068 14069test x${ac_cv_func_shmat} = "xyes" && cat >>confdefs.h <<\_ACEOF 14070#define HAVE_SHMAT 1 14071_ACEOF 14072 14073 14074 14075test x${LINUX_TRUE} = "x" && cat >>confdefs.h <<\_ACEOF 14076#define LINUX 1 14077_ACEOF 14078 14079 14080 14081test x${SOLARIS_TRUE} = "x" && cat >>confdefs.h <<\_ACEOF 14082#define SOLARIS 1 14083_ACEOF 14084 14085 14086 14087test x${HPUX_TRUE} = "x" && cat >>confdefs.h <<\_ACEOF 14088#define HPUX 1 14089_ACEOF 14090 14091 14092 14093test x${FREEBSD_TRUE} = "x" && cat >>confdefs.h <<\_ACEOF 14094#define FREEBSD 1 14095_ACEOF 14096 14097 14098 14099test x${SOLARIS_TRUE} = "x" && cat >>confdefs.h <<\_ACEOF 14100#define u_int32_t uint32_t 14101_ACEOF 14102 14103 14104 14105test x${HAVE_FFMPEG_AUDIO_TRUE} = "x" && cat >>confdefs.h <<\_ACEOF 14106#define HAVE_FFMPEG_AUDIO 1 14107_ACEOF 14108 14109 14110 14111test x${ac_cv_lib_Xdamage_XDamageSubtract} = "xyes" && 14112test x${ac_cv_lib_Xfixes_XFixesGetCursorImage} = "xyes" && 14113cat >>confdefs.h <<\_ACEOF 14114#define USE_XDAMAGE 1 14115_ACEOF 14116 14117 14118 14119test x${ac_my_dbus_usable} = "xyes" && cat >>confdefs.h <<\_ACEOF 14120#define USE_DBUS 1 14121_ACEOF 14122 14123 14124 14125################################################################ 14126################################################################ 14127 14128 14129 14130 14131 14132ac_config_files="$ac_config_files doc/Makefile doc/xvidcap/Makefile doc/xvidcap/C/Makefile doc/xvidcap/de/Makefile doc/xvidcap/it/Makefile doc/xvidcap/es/Makefile doc/man/Makefile doc/man/C/Makefile doc/man/de/Makefile doc/man/it/Makefile doc/man/es/Makefile po/Makefile.in debian/Makefile src/Makefile Makefile" 14133 14134cat >confcache <<\_ACEOF 14135# This file is a shell script that caches the results of configure 14136# tests run on this system so they can be shared between configure 14137# scripts and configure runs, see configure's option --config-cache. 14138# It is not useful on other systems. If it contains results you don't 14139# want to keep, you may remove or edit it. 14140# 14141# config.status only pays attention to the cache file if you give it 14142# the --recheck option to rerun configure. 14143# 14144# `ac_cv_env_foo' variables (set or unset) will be overridden when 14145# loading this file, other *unset* `ac_cv_foo' will be assigned the 14146# following values. 14147 14148_ACEOF 14149 14150# The following way of writing the cache mishandles newlines in values, 14151# but we know of no workaround that is simple, portable, and efficient. 14152# So, we kill variables containing newlines. 14153# Ultrix sh set writes to stderr and can't be redirected directly, 14154# and sets the high bit in the cache file unless we assign to the vars. 14155( 14156 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 14157 eval ac_val=\$$ac_var 14158 case $ac_val in #( 14159 *${as_nl}*) 14160 case $ac_var in #( 14161 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 14162echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 14163 esac 14164 case $ac_var in #( 14165 _ | IFS | as_nl) ;; #( 14166 *) $as_unset $ac_var ;; 14167 esac ;; 14168 esac 14169 done 14170 14171 (set) 2>&1 | 14172 case $as_nl`(ac_space=' '; set) 2>&1` in #( 14173 *${as_nl}ac_space=\ *) 14174 # `set' does not quote correctly, so add quotes (double-quote 14175 # substitution turns \\\\ into \\, and sed turns \\ into \). 14176 sed -n \ 14177 "s/'/'\\\\''/g; 14178 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 14179 ;; #( 14180 *) 14181 # `set' quotes correctly as required by POSIX, so do not add quotes. 14182 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 14183 ;; 14184 esac | 14185 sort 14186) | 14187 sed ' 14188 /^ac_cv_env_/b end 14189 t clear 14190 :clear 14191 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 14192 t end 14193 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 14194 :end' >>confcache 14195if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 14196 if test -w "$cache_file"; then 14197 test "x$cache_file" != "x/dev/null" && 14198 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 14199echo "$as_me: updating cache $cache_file" >&6;} 14200 cat confcache >$cache_file 14201 else 14202 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 14203echo "$as_me: not updating unwritable cache $cache_file" >&6;} 14204 fi 14205fi 14206rm -f confcache 14207 14208test "x$prefix" = xNONE && prefix=$ac_default_prefix 14209# Let make expand exec_prefix. 14210test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 14211 14212DEFS=-DHAVE_CONFIG_H 14213 14214ac_libobjs= 14215ac_ltlibobjs= 14216for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 14217 # 1. Remove the extension, and $U if already installed. 14218 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 14219 ac_i=`echo "$ac_i" | sed "$ac_script"` 14220 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 14221 # will be set to the directory where LIBOBJS objects are built. 14222 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 14223 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 14224done 14225LIBOBJS=$ac_libobjs 14226 14227LTLIBOBJS=$ac_ltlibobjs 14228 14229 14230if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 14231 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 14232Usually this means the macro was only invoked conditionally." >&5 14233echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 14234Usually this means the macro was only invoked conditionally." >&2;} 14235 { (exit 1); exit 1; }; } 14236fi 14237if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 14238 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 14239Usually this means the macro was only invoked conditionally." >&5 14240echo "$as_me: error: conditional \"AMDEP\" was never defined. 14241Usually this means the macro was only invoked conditionally." >&2;} 14242 { (exit 1); exit 1; }; } 14243fi 14244if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 14245 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 14246Usually this means the macro was only invoked conditionally." >&5 14247echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 14248Usually this means the macro was only invoked conditionally." >&2;} 14249 { (exit 1); exit 1; }; } 14250fi 14251 14252 ac_config_commands="$ac_config_commands po/stamp-it" 14253 14254 14255if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 14256 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 14257Usually this means the macro was only invoked conditionally." >&5 14258echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 14259Usually this means the macro was only invoked conditionally." >&2;} 14260 { (exit 1); exit 1; }; } 14261fi 14262if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 14263 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 14264Usually this means the macro was only invoked conditionally." >&5 14265echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 14266Usually this means the macro was only invoked conditionally." >&2;} 14267 { (exit 1); exit 1; }; } 14268fi 14269if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then 14270 { { echo "$as_me:$LINENO: error: conditional \"SOLARIS\" was never defined. 14271Usually this means the macro was only invoked conditionally." >&5 14272echo "$as_me: error: conditional \"SOLARIS\" was never defined. 14273Usually this means the macro was only invoked conditionally." >&2;} 14274 { (exit 1); exit 1; }; } 14275fi 14276if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then 14277 { { echo "$as_me:$LINENO: error: conditional \"LINUX\" was never defined. 14278Usually this means the macro was only invoked conditionally." >&5 14279echo "$as_me: error: conditional \"LINUX\" was never defined. 14280Usually this means the macro was only invoked conditionally." >&2;} 14281 { (exit 1); exit 1; }; } 14282fi 14283if test -z "${HPUX_TRUE}" && test -z "${HPUX_FALSE}"; then 14284 { { echo "$as_me:$LINENO: error: conditional \"HPUX\" was never defined. 14285Usually this means the macro was only invoked conditionally." >&5 14286echo "$as_me: error: conditional \"HPUX\" was never defined. 14287Usually this means the macro was only invoked conditionally." >&2;} 14288 { (exit 1); exit 1; }; } 14289fi 14290if test -z "${FREEBSD_TRUE}" && test -z "${FREEBSD_FALSE}"; then 14291 { { echo "$as_me:$LINENO: error: conditional \"FREEBSD\" was never defined. 14292Usually this means the macro was only invoked conditionally." >&5 14293echo "$as_me: error: conditional \"FREEBSD\" was never defined. 14294Usually this means the macro was only invoked conditionally." >&2;} 14295 { (exit 1); exit 1; }; } 14296fi 14297if test -z "${HAVE_LIBMP3LAME_TRUE}" && test -z "${HAVE_LIBMP3LAME_FALSE}"; then 14298 { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBMP3LAME\" was never defined. 14299Usually this means the macro was only invoked conditionally." >&5 14300echo "$as_me: error: conditional \"HAVE_LIBMP3LAME\" was never defined. 14301Usually this means the macro was only invoked conditionally." >&2;} 14302 { (exit 1); exit 1; }; } 14303fi 14304if test -z "${HAVE_LIBTHEORA_TRUE}" && test -z "${HAVE_LIBTHEORA_FALSE}"; then 14305 { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBTHEORA\" was never defined. 14306Usually this means the macro was only invoked conditionally." >&5 14307echo "$as_me: error: conditional \"HAVE_LIBTHEORA\" was never defined. 14308Usually this means the macro was only invoked conditionally." >&2;} 14309 { (exit 1); exit 1; }; } 14310fi 14311if test -z "${STATIC_AVFORMAT_TRUE}" && test -z "${STATIC_AVFORMAT_FALSE}"; then 14312 { { echo "$as_me:$LINENO: error: conditional \"STATIC_AVFORMAT\" was never defined. 14313Usually this means the macro was only invoked conditionally." >&5 14314echo "$as_me: error: conditional \"STATIC_AVFORMAT\" was never defined. 14315Usually this means the macro was only invoked conditionally." >&2;} 14316 { (exit 1); exit 1; }; } 14317fi 14318if test -z "${STATIC_AVCODEC_TRUE}" && test -z "${STATIC_AVCODEC_FALSE}"; then 14319 { { echo "$as_me:$LINENO: error: conditional \"STATIC_AVCODEC\" was never defined. 14320Usually this means the macro was only invoked conditionally." >&5 14321echo "$as_me: error: conditional \"STATIC_AVCODEC\" was never defined. 14322Usually this means the macro was only invoked conditionally." >&2;} 14323 { (exit 1); exit 1; }; } 14324fi 14325if test -z "${STATIC_AVUTIL_TRUE}" && test -z "${STATIC_AVUTIL_FALSE}"; then 14326 { { echo "$as_me:$LINENO: error: conditional \"STATIC_AVUTIL\" was never defined. 14327Usually this means the macro was only invoked conditionally." >&5 14328echo "$as_me: error: conditional \"STATIC_AVUTIL\" was never defined. 14329Usually this means the macro was only invoked conditionally." >&2;} 14330 { (exit 1); exit 1; }; } 14331fi 14332if test -z "${HAVE_GETOPT_LONG_TRUE}" && test -z "${HAVE_GETOPT_LONG_FALSE}"; then 14333 { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETOPT_LONG\" was never defined. 14334Usually this means the macro was only invoked conditionally." >&5 14335echo "$as_me: error: conditional \"HAVE_GETOPT_LONG\" was never defined. 14336Usually this means the macro was only invoked conditionally." >&2;} 14337 { (exit 1); exit 1; }; } 14338fi 14339if test -z "${HAVE_MALLOC_TRUE}" && test -z "${HAVE_MALLOC_FALSE}"; then 14340 { { echo "$as_me:$LINENO: error: conditional \"HAVE_MALLOC\" was never defined. 14341Usually this means the macro was only invoked conditionally." >&5 14342echo "$as_me: error: conditional \"HAVE_MALLOC\" was never defined. 14343Usually this means the macro was only invoked conditionally." >&2;} 14344 { (exit 1); exit 1; }; } 14345fi 14346if test -z "${HAVE_REALLOC_TRUE}" && test -z "${HAVE_REALLOC_FALSE}"; then 14347 { { echo "$as_me:$LINENO: error: conditional \"HAVE_REALLOC\" was never defined. 14348Usually this means the macro was only invoked conditionally." >&5 14349echo "$as_me: error: conditional \"HAVE_REALLOC\" was never defined. 14350Usually this means the macro was only invoked conditionally." >&2;} 14351 { (exit 1); exit 1; }; } 14352fi 14353if test -z "${HAVE_FFMPEG_AUDIO_TRUE}" && test -z "${HAVE_FFMPEG_AUDIO_FALSE}"; then 14354 { { echo "$as_me:$LINENO: error: conditional \"HAVE_FFMPEG_AUDIO\" was never defined. 14355Usually this means the macro was only invoked conditionally." >&5 14356echo "$as_me: error: conditional \"HAVE_FFMPEG_AUDIO\" was never defined. 14357Usually this means the macro was only invoked conditionally." >&2;} 14358 { (exit 1); exit 1; }; } 14359fi 14360if test -z "${USE_DBUS_TRUE}" && test -z "${USE_DBUS_FALSE}"; then 14361 { { echo "$as_me:$LINENO: error: conditional \"USE_DBUS\" was never defined. 14362Usually this means the macro was only invoked conditionally." >&5 14363echo "$as_me: error: conditional \"USE_DBUS\" was never defined. 14364Usually this means the macro was only invoked conditionally." >&2;} 14365 { (exit 1); exit 1; }; } 14366fi 14367 14368: ${CONFIG_STATUS=./config.status} 14369ac_clean_files_save=$ac_clean_files 14370ac_clean_files="$ac_clean_files $CONFIG_STATUS" 14371{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 14372echo "$as_me: creating $CONFIG_STATUS" >&6;} 14373cat >$CONFIG_STATUS <<_ACEOF 14374#! $SHELL 14375# Generated by $as_me. 14376# Run this file to recreate the current configuration. 14377# Compiler output produced by configure, useful for debugging 14378# configure, is in config.log if it exists. 14379 14380debug=false 14381ac_cs_recheck=false 14382ac_cs_silent=false 14383SHELL=\${CONFIG_SHELL-$SHELL} 14384_ACEOF 14385 14386cat >>$CONFIG_STATUS <<\_ACEOF 14387## --------------------- ## 14388## M4sh Initialization. ## 14389## --------------------- ## 14390 14391# Be more Bourne compatible 14392DUALCASE=1; export DUALCASE # for MKS sh 14393if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 14394 emulate sh 14395 NULLCMD=: 14396 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 14397 # is contrary to our usage. Disable this feature. 14398 alias -g '${1+"$@"}'='"$@"' 14399 setopt NO_GLOB_SUBST 14400else 14401 case `(set -o) 2>/dev/null` in 14402 *posix*) set -o posix ;; 14403esac 14404 14405fi 14406 14407 14408 14409 14410# PATH needs CR 14411# Avoid depending upon Character Ranges. 14412as_cr_letters='abcdefghijklmnopqrstuvwxyz' 14413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14414as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14415as_cr_digits='0123456789' 14416as_cr_alnum=$as_cr_Letters$as_cr_digits 14417 14418# The user is always right. 14419if test "${PATH_SEPARATOR+set}" != set; then 14420 echo "#! /bin/sh" >conf$$.sh 14421 echo "exit 0" >>conf$$.sh 14422 chmod +x conf$$.sh 14423 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 14424 PATH_SEPARATOR=';' 14425 else 14426 PATH_SEPARATOR=: 14427 fi 14428 rm -f conf$$.sh 14429fi 14430 14431# Support unset when possible. 14432if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 14433 as_unset=unset 14434else 14435 as_unset=false 14436fi 14437 14438 14439# IFS 14440# We need space, tab and new line, in precisely that order. Quoting is 14441# there to prevent editors from complaining about space-tab. 14442# (If _AS_PATH_WALK were called with IFS unset, it would disable word 14443# splitting by setting IFS to empty value.) 14444as_nl=' 14445' 14446IFS=" "" $as_nl" 14447 14448# Find who we are. Look in the path if we contain no directory separator. 14449case $0 in 14450 *[\\/]* ) as_myself=$0 ;; 14451 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14452for as_dir in $PATH 14453do 14454 IFS=$as_save_IFS 14455 test -z "$as_dir" && as_dir=. 14456 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 14457done 14458IFS=$as_save_IFS 14459 14460 ;; 14461esac 14462# We did not find ourselves, most probably we were run as `sh COMMAND' 14463# in which case we are not to be found in the path. 14464if test "x$as_myself" = x; then 14465 as_myself=$0 14466fi 14467if test ! -f "$as_myself"; then 14468 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 14469 { (exit 1); exit 1; } 14470fi 14471 14472# Work around bugs in pre-3.0 UWIN ksh. 14473for as_var in ENV MAIL MAILPATH 14474do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 14475done 14476PS1='$ ' 14477PS2='> ' 14478PS4='+ ' 14479 14480# NLS nuisances. 14481for as_var in \ 14482 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 14483 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 14484 LC_TELEPHONE LC_TIME 14485do 14486 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 14487 eval $as_var=C; export $as_var 14488 else 14489 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 14490 fi 14491done 14492 14493# Required to use basename. 14494if expr a : '\(a\)' >/dev/null 2>&1 && 14495 test "X`expr 00001 : '.*\(...\)'`" = X001; then 14496 as_expr=expr 14497else 14498 as_expr=false 14499fi 14500 14501if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 14502 as_basename=basename 14503else 14504 as_basename=false 14505fi 14506 14507 14508# Name of the executable. 14509as_me=`$as_basename -- "$0" || 14510$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 14511 X"$0" : 'X\(//\)$' \| \ 14512 X"$0" : 'X\(/\)' \| . 2>/dev/null || 14513echo X/"$0" | 14514 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14515 s//\1/ 14516 q 14517 } 14518 /^X\/\(\/\/\)$/{ 14519 s//\1/ 14520 q 14521 } 14522 /^X\/\(\/\).*/{ 14523 s//\1/ 14524 q 14525 } 14526 s/.*/./; q'` 14527 14528# CDPATH. 14529$as_unset CDPATH 14530 14531 14532 14533 as_lineno_1=$LINENO 14534 as_lineno_2=$LINENO 14535 test "x$as_lineno_1" != "x$as_lineno_2" && 14536 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 14537 14538 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 14539 # uniformly replaced by the line number. The first 'sed' inserts a 14540 # line-number line after each line using $LINENO; the second 'sed' 14541 # does the real work. The second script uses 'N' to pair each 14542 # line-number line with the line containing $LINENO, and appends 14543 # trailing '-' during substitution so that $LINENO is not a special 14544 # case at line end. 14545 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 14546 # scripts with optimization help from Paolo Bonzini. Blame Lee 14547 # E. McMahon (1931-1989) for sed's syntax. :-) 14548 sed -n ' 14549 p 14550 /[$]LINENO/= 14551 ' <$as_myself | 14552 sed ' 14553 s/[$]LINENO.*/&-/ 14554 t lineno 14555 b 14556 :lineno 14557 N 14558 :loop 14559 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 14560 t loop 14561 s/-\n.*// 14562 ' >$as_me.lineno && 14563 chmod +x "$as_me.lineno" || 14564 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 14565 { (exit 1); exit 1; }; } 14566 14567 # Don't try to exec as it changes $[0], causing all sort of problems 14568 # (the dirname of $[0] is not the place where we might find the 14569 # original and so on. Autoconf is especially sensitive to this). 14570 . "./$as_me.lineno" 14571 # Exit status is that of the last command. 14572 exit 14573} 14574 14575 14576if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 14577 as_dirname=dirname 14578else 14579 as_dirname=false 14580fi 14581 14582ECHO_C= ECHO_N= ECHO_T= 14583case `echo -n x` in 14584-n*) 14585 case `echo 'x\c'` in 14586 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 14587 *) ECHO_C='\c';; 14588 esac;; 14589*) 14590 ECHO_N='-n';; 14591esac 14592 14593if expr a : '\(a\)' >/dev/null 2>&1 && 14594 test "X`expr 00001 : '.*\(...\)'`" = X001; then 14595 as_expr=expr 14596else 14597 as_expr=false 14598fi 14599 14600rm -f conf$$ conf$$.exe conf$$.file 14601if test -d conf$$.dir; then 14602 rm -f conf$$.dir/conf$$.file 14603else 14604 rm -f conf$$.dir 14605 mkdir conf$$.dir 14606fi 14607echo >conf$$.file 14608if ln -s conf$$.file conf$$ 2>/dev/null; then 14609 as_ln_s='ln -s' 14610 # ... but there are two gotchas: 14611 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 14612 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 14613 # In both cases, we have to default to `cp -p'. 14614 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 14615 as_ln_s='cp -p' 14616elif ln conf$$.file conf$$ 2>/dev/null; then 14617 as_ln_s=ln 14618else 14619 as_ln_s='cp -p' 14620fi 14621rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 14622rmdir conf$$.dir 2>/dev/null 14623 14624if mkdir -p . 2>/dev/null; then 14625 as_mkdir_p=: 14626else 14627 test -d ./-p && rmdir ./-p 14628 as_mkdir_p=false 14629fi 14630 14631if test -x / >/dev/null 2>&1; then 14632 as_test_x='test -x' 14633else 14634 if ls -dL / >/dev/null 2>&1; then 14635 as_ls_L_option=L 14636 else 14637 as_ls_L_option= 14638 fi 14639 as_test_x=' 14640 eval sh -c '\'' 14641 if test -d "$1"; then 14642 test -d "$1/."; 14643 else 14644 case $1 in 14645 -*)set "./$1";; 14646 esac; 14647 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 14648 ???[sx]*):;;*)false;;esac;fi 14649 '\'' sh 14650 ' 14651fi 14652as_executable_p=$as_test_x 14653 14654# Sed expression to map a string onto a valid CPP name. 14655as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14656 14657# Sed expression to map a string onto a valid variable name. 14658as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14659 14660 14661exec 6>&1 14662 14663# Save the log message, to keep $[0] and so on meaningful, and to 14664# report actual input values of CONFIG_FILES etc. instead of their 14665# values after options handling. 14666ac_log=" 14667This file was extended by $as_me, which was 14668generated by GNU Autoconf 2.61. Invocation command line was 14669 14670 CONFIG_FILES = $CONFIG_FILES 14671 CONFIG_HEADERS = $CONFIG_HEADERS 14672 CONFIG_LINKS = $CONFIG_LINKS 14673 CONFIG_COMMANDS = $CONFIG_COMMANDS 14674 $ $0 $@ 14675 14676on `(hostname || uname -n) 2>/dev/null | sed 1q` 14677" 14678 14679_ACEOF 14680 14681cat >>$CONFIG_STATUS <<_ACEOF 14682# Files that config.status was made for. 14683config_files="$ac_config_files" 14684config_headers="$ac_config_headers" 14685config_commands="$ac_config_commands" 14686 14687_ACEOF 14688 14689cat >>$CONFIG_STATUS <<\_ACEOF 14690ac_cs_usage="\ 14691\`$as_me' instantiates files from templates according to the 14692current configuration. 14693 14694Usage: $0 [OPTIONS] [FILE]... 14695 14696 -h, --help print this help, then exit 14697 -V, --version print version number and configuration settings, then exit 14698 -q, --quiet do not print progress messages 14699 -d, --debug don't remove temporary files 14700 --recheck update $as_me by reconfiguring in the same conditions 14701 --file=FILE[:TEMPLATE] 14702 instantiate the configuration file FILE 14703 --header=FILE[:TEMPLATE] 14704 instantiate the configuration header FILE 14705 14706Configuration files: 14707$config_files 14708 14709Configuration headers: 14710$config_headers 14711 14712Configuration commands: 14713$config_commands 14714 14715Report bugs to <bug-autoconf@gnu.org>." 14716 14717_ACEOF 14718cat >>$CONFIG_STATUS <<_ACEOF 14719ac_cs_version="\\ 14720config.status 14721configured by $0, generated by GNU Autoconf 2.61, 14722 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 14723 14724Copyright (C) 2006 Free Software Foundation, Inc. 14725This config.status script is free software; the Free Software Foundation 14726gives unlimited permission to copy, distribute and modify it." 14727 14728ac_pwd='$ac_pwd' 14729srcdir='$srcdir' 14730INSTALL='$INSTALL' 14731MKDIR_P='$MKDIR_P' 14732_ACEOF 14733 14734cat >>$CONFIG_STATUS <<\_ACEOF 14735# If no file are specified by the user, then we need to provide default 14736# value. By we need to know if files were specified by the user. 14737ac_need_defaults=: 14738while test $# != 0 14739do 14740 case $1 in 14741 --*=*) 14742 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14743 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 14744 ac_shift=: 14745 ;; 14746 *) 14747 ac_option=$1 14748 ac_optarg=$2 14749 ac_shift=shift 14750 ;; 14751 esac 14752 14753 case $ac_option in 14754 # Handling of the options. 14755 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14756 ac_cs_recheck=: ;; 14757 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14758 echo "$ac_cs_version"; exit ;; 14759 --debug | --debu | --deb | --de | --d | -d ) 14760 debug=: ;; 14761 --file | --fil | --fi | --f ) 14762 $ac_shift 14763 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 14764 ac_need_defaults=false;; 14765 --header | --heade | --head | --hea ) 14766 $ac_shift 14767 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 14768 ac_need_defaults=false;; 14769 --he | --h) 14770 # Conflict between --help and --header 14771 { echo "$as_me: error: ambiguous option: $1 14772Try \`$0 --help' for more information." >&2 14773 { (exit 1); exit 1; }; };; 14774 --help | --hel | -h ) 14775 echo "$ac_cs_usage"; exit ;; 14776 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14777 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14778 ac_cs_silent=: ;; 14779 14780 # This is an error. 14781 -*) { echo "$as_me: error: unrecognized option: $1 14782Try \`$0 --help' for more information." >&2 14783 { (exit 1); exit 1; }; } ;; 14784 14785 *) ac_config_targets="$ac_config_targets $1" 14786 ac_need_defaults=false ;; 14787 14788 esac 14789 shift 14790done 14791 14792ac_configure_extra_args= 14793 14794if $ac_cs_silent; then 14795 exec 6>/dev/null 14796 ac_configure_extra_args="$ac_configure_extra_args --silent" 14797fi 14798 14799_ACEOF 14800cat >>$CONFIG_STATUS <<_ACEOF 14801if \$ac_cs_recheck; then 14802 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 14803 CONFIG_SHELL=$SHELL 14804 export CONFIG_SHELL 14805 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14806fi 14807 14808_ACEOF 14809cat >>$CONFIG_STATUS <<\_ACEOF 14810exec 5>>config.log 14811{ 14812 echo 14813 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14814## Running $as_me. ## 14815_ASBOX 14816 echo "$ac_log" 14817} >&5 14818 14819_ACEOF 14820cat >>$CONFIG_STATUS <<_ACEOF 14821# 14822# INIT-COMMANDS 14823# 14824AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 14825INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir='${ac_aux_dir}' 14826prefix="$prefix" exec_prefix="$exec_prefix" INTLTOOL_LIBDIR="$libdir" 14827INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}' 14828 14829 14830_ACEOF 14831 14832cat >>$CONFIG_STATUS <<\_ACEOF 14833 14834# Handling of arguments. 14835for ac_config_target in $ac_config_targets 14836do 14837 case $ac_config_target in 14838 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 14839 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 14840 "intltool") CONFIG_COMMANDS="$CONFIG_COMMANDS intltool" ;; 14841 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 14842 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 14843 "doc/xvidcap/Makefile") CONFIG_FILES="$CONFIG_FILES doc/xvidcap/Makefile" ;; 14844 "doc/xvidcap/C/Makefile") CONFIG_FILES="$CONFIG_FILES doc/xvidcap/C/Makefile" ;; 14845 "doc/xvidcap/de/Makefile") CONFIG_FILES="$CONFIG_FILES doc/xvidcap/de/Makefile" ;; 14846 "doc/xvidcap/it/Makefile") CONFIG_FILES="$CONFIG_FILES doc/xvidcap/it/Makefile" ;; 14847 "doc/xvidcap/es/Makefile") CONFIG_FILES="$CONFIG_FILES doc/xvidcap/es/Makefile" ;; 14848 "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;; 14849 "doc/man/C/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/C/Makefile" ;; 14850 "doc/man/de/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/de/Makefile" ;; 14851 "doc/man/it/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/it/Makefile" ;; 14852 "doc/man/es/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/es/Makefile" ;; 14853 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; 14854 "debian/Makefile") CONFIG_FILES="$CONFIG_FILES debian/Makefile" ;; 14855 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 14856 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14857 "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;; 14858 14859 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 14860echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 14861 { (exit 1); exit 1; }; };; 14862 esac 14863done 14864 14865 14866# If the user did not use the arguments to specify the items to instantiate, 14867# then the envvar interface is used. Set only those that are not. 14868# We use the long form for the default assignment because of an extremely 14869# bizarre bug on SunOS 4.1.3. 14870if $ac_need_defaults; then 14871 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14872 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14873 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14874fi 14875 14876# Have a temporary directory for convenience. Make it in the build tree 14877# simply because there is no reason against having it here, and in addition, 14878# creating and moving files from /tmp can sometimes cause problems. 14879# Hook for its removal unless debugging. 14880# Note that there is a small window in which the directory will not be cleaned: 14881# after its creation but before its name has been assigned to `$tmp'. 14882$debug || 14883{ 14884 tmp= 14885 trap 'exit_status=$? 14886 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 14887' 0 14888 trap '{ (exit 1); exit 1; }' 1 2 13 15 14889} 14890# Create a (secure) tmp directory for tmp files. 14891 14892{ 14893 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14894 test -n "$tmp" && test -d "$tmp" 14895} || 14896{ 14897 tmp=./conf$$-$RANDOM 14898 (umask 077 && mkdir "$tmp") 14899} || 14900{ 14901 echo "$me: cannot create a temporary directory in ." >&2 14902 { (exit 1); exit 1; } 14903} 14904 14905# 14906# Set up the sed scripts for CONFIG_FILES section. 14907# 14908 14909# No need to generate the scripts if there are no CONFIG_FILES. 14910# This happens for instance when ./config.status config.h 14911if test -n "$CONFIG_FILES"; then 14912 14913_ACEOF 14914 14915 14916 14917ac_delim='%!_!# ' 14918for ac_last_try in false false false false false :; do 14919 cat >conf$$subs.sed <<_ACEOF 14920SHELL!$SHELL$ac_delim 14921PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 14922PACKAGE_NAME!$PACKAGE_NAME$ac_delim 14923PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 14924PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 14925PACKAGE_STRING!$PACKAGE_STRING$ac_delim 14926PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 14927exec_prefix!$exec_prefix$ac_delim 14928prefix!$prefix$ac_delim 14929program_transform_name!$program_transform_name$ac_delim 14930bindir!$bindir$ac_delim 14931sbindir!$sbindir$ac_delim 14932libexecdir!$libexecdir$ac_delim 14933datarootdir!$datarootdir$ac_delim 14934datadir!$datadir$ac_delim 14935sysconfdir!$sysconfdir$ac_delim 14936sharedstatedir!$sharedstatedir$ac_delim 14937localstatedir!$localstatedir$ac_delim 14938includedir!$includedir$ac_delim 14939oldincludedir!$oldincludedir$ac_delim 14940docdir!$docdir$ac_delim 14941infodir!$infodir$ac_delim 14942htmldir!$htmldir$ac_delim 14943dvidir!$dvidir$ac_delim 14944pdfdir!$pdfdir$ac_delim 14945psdir!$psdir$ac_delim 14946libdir!$libdir$ac_delim 14947localedir!$localedir$ac_delim 14948mandir!$mandir$ac_delim 14949DEFS!$DEFS$ac_delim 14950ECHO_C!$ECHO_C$ac_delim 14951ECHO_N!$ECHO_N$ac_delim 14952ECHO_T!$ECHO_T$ac_delim 14953LIBS!$LIBS$ac_delim 14954build_alias!$build_alias$ac_delim 14955host_alias!$host_alias$ac_delim 14956target_alias!$target_alias$ac_delim 14957INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 14958INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 14959INSTALL_DATA!$INSTALL_DATA$ac_delim 14960am__isrc!$am__isrc$ac_delim 14961CYGPATH_W!$CYGPATH_W$ac_delim 14962PACKAGE!$PACKAGE$ac_delim 14963VERSION!$VERSION$ac_delim 14964ACLOCAL!$ACLOCAL$ac_delim 14965AUTOCONF!$AUTOCONF$ac_delim 14966AUTOMAKE!$AUTOMAKE$ac_delim 14967AUTOHEADER!$AUTOHEADER$ac_delim 14968MAKEINFO!$MAKEINFO$ac_delim 14969install_sh!$install_sh$ac_delim 14970STRIP!$STRIP$ac_delim 14971INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 14972mkdir_p!$mkdir_p$ac_delim 14973AWK!$AWK$ac_delim 14974SET_MAKE!$SET_MAKE$ac_delim 14975am__leading_dot!$am__leading_dot$ac_delim 14976AMTAR!$AMTAR$ac_delim 14977am__tar!$am__tar$ac_delim 14978am__untar!$am__untar$ac_delim 14979MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim 14980MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim 14981MAINT!$MAINT$ac_delim 14982INTLTOOL_DESKTOP_RULE!$INTLTOOL_DESKTOP_RULE$ac_delim 14983INTLTOOL_DIRECTORY_RULE!$INTLTOOL_DIRECTORY_RULE$ac_delim 14984INTLTOOL_KEYS_RULE!$INTLTOOL_KEYS_RULE$ac_delim 14985INTLTOOL_PROP_RULE!$INTLTOOL_PROP_RULE$ac_delim 14986INTLTOOL_OAF_RULE!$INTLTOOL_OAF_RULE$ac_delim 14987INTLTOOL_PONG_RULE!$INTLTOOL_PONG_RULE$ac_delim 14988INTLTOOL_SERVER_RULE!$INTLTOOL_SERVER_RULE$ac_delim 14989INTLTOOL_SHEET_RULE!$INTLTOOL_SHEET_RULE$ac_delim 14990INTLTOOL_SOUNDLIST_RULE!$INTLTOOL_SOUNDLIST_RULE$ac_delim 14991INTLTOOL_UI_RULE!$INTLTOOL_UI_RULE$ac_delim 14992INTLTOOL_XAM_RULE!$INTLTOOL_XAM_RULE$ac_delim 14993INTLTOOL_KBD_RULE!$INTLTOOL_KBD_RULE$ac_delim 14994INTLTOOL_XML_RULE!$INTLTOOL_XML_RULE$ac_delim 14995INTLTOOL_XML_NOMERGE_RULE!$INTLTOOL_XML_NOMERGE_RULE$ac_delim 14996INTLTOOL_CAVES_RULE!$INTLTOOL_CAVES_RULE$ac_delim 14997INTLTOOL_SCHEMAS_RULE!$INTLTOOL_SCHEMAS_RULE$ac_delim 14998INTLTOOL_THEME_RULE!$INTLTOOL_THEME_RULE$ac_delim 14999INTLTOOL_SERVICE_RULE!$INTLTOOL_SERVICE_RULE$ac_delim 15000INTLTOOL_POLICY_RULE!$INTLTOOL_POLICY_RULE$ac_delim 15001XGETTEXT!$XGETTEXT$ac_delim 15002MSGMERGE!$MSGMERGE$ac_delim 15003MSGFMT!$MSGFMT$ac_delim 15004INTLTOOL_EXTRACT!$INTLTOOL_EXTRACT$ac_delim 15005INTLTOOL_MERGE!$INTLTOOL_MERGE$ac_delim 15006INTLTOOL_UPDATE!$INTLTOOL_UPDATE$ac_delim 15007INTLTOOL_PERL!$INTLTOOL_PERL$ac_delim 15008ALL_LINGUAS!$ALL_LINGUAS$ac_delim 15009CC!$CC$ac_delim 15010CFLAGS!$CFLAGS$ac_delim 15011LDFLAGS!$LDFLAGS$ac_delim 15012CPPFLAGS!$CPPFLAGS$ac_delim 15013ac_ct_CC!$ac_ct_CC$ac_delim 15014EXEEXT!$EXEEXT$ac_delim 15015OBJEXT!$OBJEXT$ac_delim 15016DEPDIR!$DEPDIR$ac_delim 15017_ACEOF 15018 15019 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 15020 break 15021 elif $ac_last_try; then 15022 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 15023echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 15024 { (exit 1); exit 1; }; } 15025 else 15026 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15027 fi 15028done 15029 15030ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 15031if test -n "$ac_eof"; then 15032 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 15033 ac_eof=`expr $ac_eof + 1` 15034fi 15035 15036cat >>$CONFIG_STATUS <<_ACEOF 15037cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 15038/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 15039_ACEOF 15040sed ' 15041s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 15042s/^/s,@/; s/!/@,|#_!!_#|/ 15043:n 15044t n 15045s/'"$ac_delim"'$/,g/; t 15046s/$/\\/; p 15047N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 15048' >>$CONFIG_STATUS <conf$$subs.sed 15049rm -f conf$$subs.sed 15050cat >>$CONFIG_STATUS <<_ACEOF 15051CEOF$ac_eof 15052_ACEOF 15053 15054 15055ac_delim='%!_!# ' 15056for ac_last_try in false false false false false :; do 15057 cat >conf$$subs.sed <<_ACEOF 15058am__include!$am__include$ac_delim 15059am__quote!$am__quote$ac_delim 15060AMDEP_TRUE!$AMDEP_TRUE$ac_delim 15061AMDEP_FALSE!$AMDEP_FALSE$ac_delim 15062AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 15063CCDEPMODE!$CCDEPMODE$ac_delim 15064am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 15065am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 15066DATADIRNAME!$DATADIRNAME$ac_delim 15067CPP!$CPP$ac_delim 15068GREP!$GREP$ac_delim 15069EGREP!$EGREP$ac_delim 15070RANLIB!$RANLIB$ac_delim 15071SED!$SED$ac_delim 15072BC!$BC$ac_delim 15073XMKMF!$XMKMF$ac_delim 15074X_CFLAGS!$X_CFLAGS$ac_delim 15075X_PRE_LIBS!$X_PRE_LIBS$ac_delim 15076X_LIBS!$X_LIBS$ac_delim 15077X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim 15078SCROLLKEEPER_BUILD_REQUIRED!$SCROLLKEEPER_BUILD_REQUIRED$ac_delim 15079SK_CONFIG!$SK_CONFIG$ac_delim 15080MK!$MK$ac_delim 15081DOCBOOK2X_MAN!$DOCBOOK2X_MAN$ac_delim 15082XML2PO!$XML2PO$ac_delim 15083GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim 15084USE_NLS!$USE_NLS$ac_delim 15085MSGFMT_OPTS!$MSGFMT_OPTS$ac_delim 15086GMSGFMT!$GMSGFMT$ac_delim 15087CATALOGS!$CATALOGS$ac_delim 15088CATOBJEXT!$CATOBJEXT$ac_delim 15089GMOFILES!$GMOFILES$ac_delim 15090INSTOBJEXT!$INSTOBJEXT$ac_delim 15091INTLLIBS!$INTLLIBS$ac_delim 15092PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim 15093PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim 15094POFILES!$POFILES$ac_delim 15095POSUB!$POSUB$ac_delim 15096MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim 15097PKG_CONFIG!$PKG_CONFIG$ac_delim 15098PACKAGE_CFLAGS!$PACKAGE_CFLAGS$ac_delim 15099PACKAGE_LIBS!$PACKAGE_LIBS$ac_delim 15100SOLARIS_TRUE!$SOLARIS_TRUE$ac_delim 15101SOLARIS_FALSE!$SOLARIS_FALSE$ac_delim 15102LINUX_TRUE!$LINUX_TRUE$ac_delim 15103LINUX_FALSE!$LINUX_FALSE$ac_delim 15104HPUX_TRUE!$HPUX_TRUE$ac_delim 15105HPUX_FALSE!$HPUX_FALSE$ac_delim 15106FREEBSD_TRUE!$FREEBSD_TRUE$ac_delim 15107FREEBSD_FALSE!$FREEBSD_FALSE$ac_delim 15108HAVE_LIBMP3LAME_TRUE!$HAVE_LIBMP3LAME_TRUE$ac_delim 15109HAVE_LIBMP3LAME_FALSE!$HAVE_LIBMP3LAME_FALSE$ac_delim 15110HAVE_LIBTHEORA_TRUE!$HAVE_LIBTHEORA_TRUE$ac_delim 15111HAVE_LIBTHEORA_FALSE!$HAVE_LIBTHEORA_FALSE$ac_delim 15112build!$build$ac_delim 15113build_cpu!$build_cpu$ac_delim 15114build_vendor!$build_vendor$ac_delim 15115build_os!$build_os$ac_delim 15116host!$host$ac_delim 15117host_cpu!$host_cpu$ac_delim 15118host_vendor!$host_vendor$ac_delim 15119host_os!$host_os$ac_delim 15120acx_pthread_config!$acx_pthread_config$ac_delim 15121PTHREAD_CC!$PTHREAD_CC$ac_delim 15122PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim 15123PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim 15124STATIC_AVFORMAT_TRUE!$STATIC_AVFORMAT_TRUE$ac_delim 15125STATIC_AVFORMAT_FALSE!$STATIC_AVFORMAT_FALSE$ac_delim 15126STATIC_AVCODEC_TRUE!$STATIC_AVCODEC_TRUE$ac_delim 15127STATIC_AVCODEC_FALSE!$STATIC_AVCODEC_FALSE$ac_delim 15128STATIC_AVUTIL_TRUE!$STATIC_AVUTIL_TRUE$ac_delim 15129STATIC_AVUTIL_FALSE!$STATIC_AVUTIL_FALSE$ac_delim 15130LIBOBJS!$LIBOBJS$ac_delim 15131HAVE_GETOPT_LONG_TRUE!$HAVE_GETOPT_LONG_TRUE$ac_delim 15132HAVE_GETOPT_LONG_FALSE!$HAVE_GETOPT_LONG_FALSE$ac_delim 15133HAVE_MALLOC_TRUE!$HAVE_MALLOC_TRUE$ac_delim 15134HAVE_MALLOC_FALSE!$HAVE_MALLOC_FALSE$ac_delim 15135HAVE_REALLOC_TRUE!$HAVE_REALLOC_TRUE$ac_delim 15136HAVE_REALLOC_FALSE!$HAVE_REALLOC_FALSE$ac_delim 15137HAVE_FFMPEG_AUDIO_TRUE!$HAVE_FFMPEG_AUDIO_TRUE$ac_delim 15138HAVE_FFMPEG_AUDIO_FALSE!$HAVE_FFMPEG_AUDIO_FALSE$ac_delim 15139USE_DBUS_TRUE!$USE_DBUS_TRUE$ac_delim 15140USE_DBUS_FALSE!$USE_DBUS_FALSE$ac_delim 15141LTLIBOBJS!$LTLIBOBJS$ac_delim 15142_ACEOF 15143 15144 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 84; then 15145 break 15146 elif $ac_last_try; then 15147 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 15148echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 15149 { (exit 1); exit 1; }; } 15150 else 15151 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15152 fi 15153done 15154 15155ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 15156if test -n "$ac_eof"; then 15157 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 15158 ac_eof=`expr $ac_eof + 1` 15159fi 15160 15161cat >>$CONFIG_STATUS <<_ACEOF 15162cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 15163/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 15164_ACEOF 15165sed ' 15166s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 15167s/^/s,@/; s/!/@,|#_!!_#|/ 15168:n 15169t n 15170s/'"$ac_delim"'$/,g/; t 15171s/$/\\/; p 15172N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 15173' >>$CONFIG_STATUS <conf$$subs.sed 15174rm -f conf$$subs.sed 15175cat >>$CONFIG_STATUS <<_ACEOF 15176:end 15177s/|#_!!_#|//g 15178CEOF$ac_eof 15179_ACEOF 15180 15181 15182# VPATH may cause trouble with some makes, so we remove $(srcdir), 15183# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 15184# trailing colons and then remove the whole line if VPATH becomes empty 15185# (actually we leave an empty line to preserve line numbers). 15186if test "x$srcdir" = x.; then 15187 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 15188s/:*\$(srcdir):*/:/ 15189s/:*\${srcdir}:*/:/ 15190s/:*@srcdir@:*/:/ 15191s/^\([^=]*=[ ]*\):*/\1/ 15192s/:*$// 15193s/^[^=]*=[ ]*$// 15194}' 15195fi 15196 15197cat >>$CONFIG_STATUS <<\_ACEOF 15198fi # test -n "$CONFIG_FILES" 15199 15200 15201for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 15202do 15203 case $ac_tag in 15204 :[FHLC]) ac_mode=$ac_tag; continue;; 15205 esac 15206 case $ac_mode$ac_tag in 15207 :[FHL]*:*);; 15208 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 15209echo "$as_me: error: Invalid tag $ac_tag." >&2;} 15210 { (exit 1); exit 1; }; };; 15211 :[FH]-) ac_tag=-:-;; 15212 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 15213 esac 15214 ac_save_IFS=$IFS 15215 IFS=: 15216 set x $ac_tag 15217 IFS=$ac_save_IFS 15218 shift 15219 ac_file=$1 15220 shift 15221 15222 case $ac_mode in 15223 :L) ac_source=$1;; 15224 :[FH]) 15225 ac_file_inputs= 15226 for ac_f 15227 do 15228 case $ac_f in 15229 -) ac_f="$tmp/stdin";; 15230 *) # Look for the file first in the build tree, then in the source tree 15231 # (if the path is not absolute). The absolute path cannot be DOS-style, 15232 # because $ac_f cannot contain `:'. 15233 test -f "$ac_f" || 15234 case $ac_f in 15235 [\\/$]*) false;; 15236 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 15237 esac || 15238 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 15239echo "$as_me: error: cannot find input file: $ac_f" >&2;} 15240 { (exit 1); exit 1; }; };; 15241 esac 15242 ac_file_inputs="$ac_file_inputs $ac_f" 15243 done 15244 15245 # Let's still pretend it is `configure' which instantiates (i.e., don't 15246 # use $as_me), people would be surprised to read: 15247 # /* config.h. Generated by config.status. */ 15248 configure_input="Generated from "`IFS=: 15249 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 15250 if test x"$ac_file" != x-; then 15251 configure_input="$ac_file. $configure_input" 15252 { echo "$as_me:$LINENO: creating $ac_file" >&5 15253echo "$as_me: creating $ac_file" >&6;} 15254 fi 15255 15256 case $ac_tag in 15257 *:-:* | *:-) cat >"$tmp/stdin";; 15258 esac 15259 ;; 15260 esac 15261 15262 ac_dir=`$as_dirname -- "$ac_file" || 15263$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15264 X"$ac_file" : 'X\(//\)[^/]' \| \ 15265 X"$ac_file" : 'X\(//\)$' \| \ 15266 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 15267echo X"$ac_file" | 15268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15269 s//\1/ 15270 q 15271 } 15272 /^X\(\/\/\)[^/].*/{ 15273 s//\1/ 15274 q 15275 } 15276 /^X\(\/\/\)$/{ 15277 s//\1/ 15278 q 15279 } 15280 /^X\(\/\).*/{ 15281 s//\1/ 15282 q 15283 } 15284 s/.*/./; q'` 15285 { as_dir="$ac_dir" 15286 case $as_dir in #( 15287 -*) as_dir=./$as_dir;; 15288 esac 15289 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 15290 as_dirs= 15291 while :; do 15292 case $as_dir in #( 15293 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 15294 *) as_qdir=$as_dir;; 15295 esac 15296 as_dirs="'$as_qdir' $as_dirs" 15297 as_dir=`$as_dirname -- "$as_dir" || 15298$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15299 X"$as_dir" : 'X\(//\)[^/]' \| \ 15300 X"$as_dir" : 'X\(//\)$' \| \ 15301 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15302echo X"$as_dir" | 15303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15304 s//\1/ 15305 q 15306 } 15307 /^X\(\/\/\)[^/].*/{ 15308 s//\1/ 15309 q 15310 } 15311 /^X\(\/\/\)$/{ 15312 s//\1/ 15313 q 15314 } 15315 /^X\(\/\).*/{ 15316 s//\1/ 15317 q 15318 } 15319 s/.*/./; q'` 15320 test -d "$as_dir" && break 15321 done 15322 test -z "$as_dirs" || eval "mkdir $as_dirs" 15323 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 15324echo "$as_me: error: cannot create directory $as_dir" >&2;} 15325 { (exit 1); exit 1; }; }; } 15326 ac_builddir=. 15327 15328case "$ac_dir" in 15329.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 15330*) 15331 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 15332 # A ".." for each directory in $ac_dir_suffix. 15333 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 15334 case $ac_top_builddir_sub in 15335 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 15336 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 15337 esac ;; 15338esac 15339ac_abs_top_builddir=$ac_pwd 15340ac_abs_builddir=$ac_pwd$ac_dir_suffix 15341# for backward compatibility: 15342ac_top_builddir=$ac_top_build_prefix 15343 15344case $srcdir in 15345 .) # We are building in place. 15346 ac_srcdir=. 15347 ac_top_srcdir=$ac_top_builddir_sub 15348 ac_abs_top_srcdir=$ac_pwd ;; 15349 [\\/]* | ?:[\\/]* ) # Absolute name. 15350 ac_srcdir=$srcdir$ac_dir_suffix; 15351 ac_top_srcdir=$srcdir 15352 ac_abs_top_srcdir=$srcdir ;; 15353 *) # Relative name. 15354 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 15355 ac_top_srcdir=$ac_top_build_prefix$srcdir 15356 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 15357esac 15358ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 15359 15360 15361 case $ac_mode in 15362 :F) 15363 # 15364 # CONFIG_FILE 15365 # 15366 15367 case $INSTALL in 15368 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 15369 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 15370 esac 15371 ac_MKDIR_P=$MKDIR_P 15372 case $MKDIR_P in 15373 [\\/$]* | ?:[\\/]* ) ;; 15374 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 15375 esac 15376_ACEOF 15377 15378cat >>$CONFIG_STATUS <<\_ACEOF 15379# If the template does not know about datarootdir, expand it. 15380# FIXME: This hack should be removed a few years after 2.60. 15381ac_datarootdir_hack=; ac_datarootdir_seen= 15382 15383case `sed -n '/datarootdir/ { 15384 p 15385 q 15386} 15387/@datadir@/p 15388/@docdir@/p 15389/@infodir@/p 15390/@localedir@/p 15391/@mandir@/p 15392' $ac_file_inputs` in 15393*datarootdir*) ac_datarootdir_seen=yes;; 15394*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 15395 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 15396echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 15397_ACEOF 15398cat >>$CONFIG_STATUS <<_ACEOF 15399 ac_datarootdir_hack=' 15400 s&@datadir@&$datadir&g 15401 s&@docdir@&$docdir&g 15402 s&@infodir@&$infodir&g 15403 s&@localedir@&$localedir&g 15404 s&@mandir@&$mandir&g 15405 s&\\\${datarootdir}&$datarootdir&g' ;; 15406esac 15407_ACEOF 15408 15409# Neutralize VPATH when `$srcdir' = `.'. 15410# Shell code in configure.ac might set extrasub. 15411# FIXME: do we really want to maintain this feature? 15412cat >>$CONFIG_STATUS <<_ACEOF 15413 sed "$ac_vpsub 15414$extrasub 15415_ACEOF 15416cat >>$CONFIG_STATUS <<\_ACEOF 15417:t 15418/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 15419s&@configure_input@&$configure_input&;t t 15420s&@top_builddir@&$ac_top_builddir_sub&;t t 15421s&@srcdir@&$ac_srcdir&;t t 15422s&@abs_srcdir@&$ac_abs_srcdir&;t t 15423s&@top_srcdir@&$ac_top_srcdir&;t t 15424s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 15425s&@builddir@&$ac_builddir&;t t 15426s&@abs_builddir@&$ac_abs_builddir&;t t 15427s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 15428s&@INSTALL@&$ac_INSTALL&;t t 15429s&@MKDIR_P@&$ac_MKDIR_P&;t t 15430$ac_datarootdir_hack 15431" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 15432 15433test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 15434 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 15435 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 15436 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15437which seems to be undefined. Please make sure it is defined." >&5 15438echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15439which seems to be undefined. Please make sure it is defined." >&2;} 15440 15441 rm -f "$tmp/stdin" 15442 case $ac_file in 15443 -) cat "$tmp/out"; rm -f "$tmp/out";; 15444 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 15445 esac 15446 ;; 15447 :H) 15448 # 15449 # CONFIG_HEADER 15450 # 15451_ACEOF 15452 15453# Transform confdefs.h into a sed script `conftest.defines', that 15454# substitutes the proper values into config.h.in to produce config.h. 15455rm -f conftest.defines conftest.tail 15456# First, append a space to every undef/define line, to ease matching. 15457echo 's/$/ /' >conftest.defines 15458# Then, protect against being on the right side of a sed subst, or in 15459# an unquoted here document, in config.status. If some macros were 15460# called several times there might be several #defines for the same 15461# symbol, which is useless. But do not sort them, since the last 15462# AC_DEFINE must be honored. 15463ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 15464# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 15465# NAME is the cpp macro being defined, VALUE is the value it is being given. 15466# PARAMS is the parameter list in the macro definition--in most cases, it's 15467# just an empty string. 15468ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 15469ac_dB='\\)[ (].*,\\1define\\2' 15470ac_dC=' ' 15471ac_dD=' ,' 15472 15473uniq confdefs.h | 15474 sed -n ' 15475 t rset 15476 :rset 15477 s/^[ ]*#[ ]*define[ ][ ]*// 15478 t ok 15479 d 15480 :ok 15481 s/[\\&,]/\\&/g 15482 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 15483 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 15484 ' >>conftest.defines 15485 15486# Remove the space that was appended to ease matching. 15487# Then replace #undef with comments. This is necessary, for 15488# example, in the case of _POSIX_SOURCE, which is predefined and required 15489# on some systems where configure will not decide to define it. 15490# (The regexp can be short, since the line contains either #define or #undef.) 15491echo 's/ $// 15492s,^[ #]*u.*,/* & */,' >>conftest.defines 15493 15494# Break up conftest.defines: 15495ac_max_sed_lines=50 15496 15497# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 15498# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 15499# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 15500# et cetera. 15501ac_in='$ac_file_inputs' 15502ac_out='"$tmp/out1"' 15503ac_nxt='"$tmp/out2"' 15504 15505while : 15506do 15507 # Write a here document: 15508 cat >>$CONFIG_STATUS <<_ACEOF 15509 # First, check the format of the line: 15510 cat >"\$tmp/defines.sed" <<\\CEOF 15511/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 15512/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 15513b 15514:def 15515_ACEOF 15516 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 15517 echo 'CEOF 15518 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 15519 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 15520 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 15521 grep . conftest.tail >/dev/null || break 15522 rm -f conftest.defines 15523 mv conftest.tail conftest.defines 15524done 15525rm -f conftest.defines conftest.tail 15526 15527echo "ac_result=$ac_in" >>$CONFIG_STATUS 15528cat >>$CONFIG_STATUS <<\_ACEOF 15529 if test x"$ac_file" != x-; then 15530 echo "/* $configure_input */" >"$tmp/config.h" 15531 cat "$ac_result" >>"$tmp/config.h" 15532 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 15533 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 15534echo "$as_me: $ac_file is unchanged" >&6;} 15535 else 15536 rm -f $ac_file 15537 mv "$tmp/config.h" $ac_file 15538 fi 15539 else 15540 echo "/* $configure_input */" 15541 cat "$ac_result" 15542 fi 15543 rm -f "$tmp/out12" 15544# Compute $ac_file's index in $config_headers. 15545_am_arg=$ac_file 15546_am_stamp_count=1 15547for _am_header in $config_headers :; do 15548 case $_am_header in 15549 $_am_arg | $_am_arg:* ) 15550 break ;; 15551 * ) 15552 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 15553 esac 15554done 15555echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 15556$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15557 X"$_am_arg" : 'X\(//\)[^/]' \| \ 15558 X"$_am_arg" : 'X\(//\)$' \| \ 15559 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 15560echo X"$_am_arg" | 15561 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15562 s//\1/ 15563 q 15564 } 15565 /^X\(\/\/\)[^/].*/{ 15566 s//\1/ 15567 q 15568 } 15569 /^X\(\/\/\)$/{ 15570 s//\1/ 15571 q 15572 } 15573 /^X\(\/\).*/{ 15574 s//\1/ 15575 q 15576 } 15577 s/.*/./; q'`/stamp-h$_am_stamp_count 15578 ;; 15579 15580 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 15581echo "$as_me: executing $ac_file commands" >&6;} 15582 ;; 15583 esac 15584 15585 15586 case $ac_file$ac_mode in 15587 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 15588 # Strip MF so we end up with the name of the file. 15589 mf=`echo "$mf" | sed -e 's/:.*$//'` 15590 # Check whether this is an Automake generated Makefile or not. 15591 # We used to match only the files named `Makefile.in', but 15592 # some people rename them; so instead we look at the file content. 15593 # Grep'ing the first line is not enough: some people post-process 15594 # each Makefile.in and add a new line on top of each file to say so. 15595 # Grep'ing the whole file is not good either: AIX grep has a line 15596 # limit of 2048, but all sed's we know have understand at least 4000. 15597 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 15598 dirpart=`$as_dirname -- "$mf" || 15599$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15600 X"$mf" : 'X\(//\)[^/]' \| \ 15601 X"$mf" : 'X\(//\)$' \| \ 15602 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 15603echo X"$mf" | 15604 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15605 s//\1/ 15606 q 15607 } 15608 /^X\(\/\/\)[^/].*/{ 15609 s//\1/ 15610 q 15611 } 15612 /^X\(\/\/\)$/{ 15613 s//\1/ 15614 q 15615 } 15616 /^X\(\/\).*/{ 15617 s//\1/ 15618 q 15619 } 15620 s/.*/./; q'` 15621 else 15622 continue 15623 fi 15624 # Extract the definition of DEPDIR, am__include, and am__quote 15625 # from the Makefile without running `make'. 15626 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 15627 test -z "$DEPDIR" && continue 15628 am__include=`sed -n 's/^am__include = //p' < "$mf"` 15629 test -z "am__include" && continue 15630 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 15631 # When using ansi2knr, U may be empty or an underscore; expand it 15632 U=`sed -n 's/^U = //p' < "$mf"` 15633 # Find all dependency output files, they are included files with 15634 # $(DEPDIR) in their names. We invoke sed twice because it is the 15635 # simplest approach to changing $(DEPDIR) to its actual value in the 15636 # expansion. 15637 for file in `sed -n " 15638 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 15639 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 15640 # Make sure the directory exists. 15641 test -f "$dirpart/$file" && continue 15642 fdir=`$as_dirname -- "$file" || 15643$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15644 X"$file" : 'X\(//\)[^/]' \| \ 15645 X"$file" : 'X\(//\)$' \| \ 15646 X"$file" : 'X\(/\)' \| . 2>/dev/null || 15647echo X"$file" | 15648 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15649 s//\1/ 15650 q 15651 } 15652 /^X\(\/\/\)[^/].*/{ 15653 s//\1/ 15654 q 15655 } 15656 /^X\(\/\/\)$/{ 15657 s//\1/ 15658 q 15659 } 15660 /^X\(\/\).*/{ 15661 s//\1/ 15662 q 15663 } 15664 s/.*/./; q'` 15665 { as_dir=$dirpart/$fdir 15666 case $as_dir in #( 15667 -*) as_dir=./$as_dir;; 15668 esac 15669 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 15670 as_dirs= 15671 while :; do 15672 case $as_dir in #( 15673 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 15674 *) as_qdir=$as_dir;; 15675 esac 15676 as_dirs="'$as_qdir' $as_dirs" 15677 as_dir=`$as_dirname -- "$as_dir" || 15678$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15679 X"$as_dir" : 'X\(//\)[^/]' \| \ 15680 X"$as_dir" : 'X\(//\)$' \| \ 15681 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15682echo X"$as_dir" | 15683 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15684 s//\1/ 15685 q 15686 } 15687 /^X\(\/\/\)[^/].*/{ 15688 s//\1/ 15689 q 15690 } 15691 /^X\(\/\/\)$/{ 15692 s//\1/ 15693 q 15694 } 15695 /^X\(\/\).*/{ 15696 s//\1/ 15697 q 15698 } 15699 s/.*/./; q'` 15700 test -d "$as_dir" && break 15701 done 15702 test -z "$as_dirs" || eval "mkdir $as_dirs" 15703 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 15704echo "$as_me: error: cannot create directory $as_dir" >&2;} 15705 { (exit 1); exit 1; }; }; } 15706 # echo "creating $dirpart/$file" 15707 echo '# dummy' > "$dirpart/$file" 15708 done 15709done 15710 ;; 15711 "intltool":C) 15712 15713for file in intltool-extract intltool-merge intltool-update; do 15714 sed -e "s|@INTLTOOL_EXTRACT@|`pwd`/intltool-extract|g" \ 15715 -e "s|@INTLTOOL_LIBDIR@|${INTLTOOL_LIBDIR}|g" \ 15716 -e "s|@INTLTOOL_PERL@|${INTLTOOL_PERL}|g" \ 15717 < ${ac_aux_dir}/${file}.in > ${file}.out 15718 if cmp -s ${file} ${file}.out 2>/dev/null; then 15719 rm -f ${file}.out 15720 else 15721 mv -f ${file}.out ${file} 15722 fi 15723 chmod ugo+x ${file} 15724 chmod u+w ${file} 15725done 15726 15727 ;; 15728 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*) 15729 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile 15730 esac ;; 15731 "po/stamp-it":C) 15732 rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp" 15733 >"po/stamp-it.tmp" 15734 sed '/^#/d 15735 s/^[[].*] *// 15736 /^[ ]*$/d 15737 '"s|^| $ac_top_srcdir/|" \ 15738 "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES" 15739 15740 if test ! -f "po/Makefile"; then 15741 { { echo "$as_me:$LINENO: error: po/Makefile is not ready." >&5 15742echo "$as_me: error: po/Makefile is not ready." >&2;} 15743 { (exit 1); exit 1; }; } 15744 fi 15745 mv "po/Makefile" "po/Makefile.tmp" 15746 sed '/^POTFILES =/,/[^\\]$/ { 15747 /^POTFILES =/!d 15748 r po/POTFILES 15749 } 15750 ' "po/Makefile.tmp" >"po/Makefile" 15751 rm -f "po/Makefile.tmp" 15752 mv "po/stamp-it.tmp" "po/stamp-it" 15753 ;; 15754 15755 esac 15756done # for ac_tag 15757 15758 15759{ (exit 0); exit 0; } 15760_ACEOF 15761chmod +x $CONFIG_STATUS 15762ac_clean_files=$ac_clean_files_save 15763 15764 15765# configure is writing to config.log, and then calls config.status. 15766# config.status does its own redirection, appending to config.log. 15767# Unfortunately, on DOS this fails, as config.log is still kept open 15768# by configure, so config.status won't be able to write to it; its 15769# output is simply discarded. So we exec the FD to /dev/null, 15770# effectively closing config.log, so it can be properly (re)opened and 15771# appended to by config.status. When coming back to configure, we 15772# need to make the FD available again. 15773if test "$no_create" != yes; then 15774 ac_cs_success=: 15775 ac_config_status_args= 15776 test "$silent" = yes && 15777 ac_config_status_args="$ac_config_status_args --quiet" 15778 exec 5>/dev/null 15779 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15780 exec 5>>config.log 15781 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15782 # would make configure fail if this is the last instruction. 15783 $ac_cs_success || { (exit 1); exit 1; } 15784fi 15785 15786