Upstream | cc2ee17 | 1970-01-12 13:46:40 +0000 | [diff] [blame^] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
| 3 | # Generated by GNU Autoconf 2.59. |
| 4 | # |
| 5 | # Copyright (C) 2003 Free Software Foundation, Inc. |
| 6 | # This configure script is free software; the Free Software Foundation |
| 7 | # gives unlimited permission to copy, distribute and modify it. |
| 8 | ## --------------------- ## |
| 9 | ## M4sh Initialization. ## |
| 10 | ## --------------------- ## |
| 11 | |
| 12 | # Be Bourne compatible |
| 13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 14 | emulate sh |
| 15 | NULLCMD=: |
| 16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 17 | # is contrary to our usage. Disable this feature. |
| 18 | alias -g '${1+"$@"}'='"$@"' |
| 19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 20 | set -o posix |
| 21 | fi |
| 22 | DUALCASE=1; export DUALCASE # for MKS sh |
| 23 | |
| 24 | # Support unset when possible. |
| 25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 26 | as_unset=unset |
| 27 | else |
| 28 | as_unset=false |
| 29 | fi |
| 30 | |
| 31 | |
| 32 | # Work around bugs in pre-3.0 UWIN ksh. |
| 33 | $as_unset ENV MAIL MAILPATH |
| 34 | PS1='$ ' |
| 35 | PS2='> ' |
| 36 | PS4='+ ' |
| 37 | |
| 38 | # NLS nuisances. |
| 39 | for as_var in \ |
| 40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 42 | LC_TELEPHONE LC_TIME |
| 43 | do |
| 44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 45 | eval $as_var=C; export $as_var |
| 46 | else |
| 47 | $as_unset $as_var |
| 48 | fi |
| 49 | done |
| 50 | |
| 51 | # Required to use basename. |
| 52 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 53 | as_expr=expr |
| 54 | else |
| 55 | as_expr=false |
| 56 | fi |
| 57 | |
| 58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 59 | as_basename=basename |
| 60 | else |
| 61 | as_basename=false |
| 62 | fi |
| 63 | |
| 64 | |
| 65 | # Name of the executable. |
| 66 | as_me=`$as_basename "$0" || |
| 67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 68 | X"$0" : 'X\(//\)$' \| \ |
| 69 | X"$0" : 'X\(/\)$' \| \ |
| 70 | . : '\(.\)' 2>/dev/null || |
| 71 | echo X/"$0" | |
| 72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 73 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 74 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 75 | s/.*/./; q'` |
| 76 | |
| 77 | |
| 78 | # PATH needs CR, and LINENO needs CR and PATH. |
| 79 | # Avoid depending upon Character Ranges. |
| 80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 83 | as_cr_digits='0123456789' |
| 84 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 85 | |
| 86 | # The user is always right. |
| 87 | if test "${PATH_SEPARATOR+set}" != set; then |
| 88 | echo "#! /bin/sh" >conf$$.sh |
| 89 | echo "exit 0" >>conf$$.sh |
| 90 | chmod +x conf$$.sh |
| 91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 92 | PATH_SEPARATOR=';' |
| 93 | else |
| 94 | PATH_SEPARATOR=: |
| 95 | fi |
| 96 | rm -f conf$$.sh |
| 97 | fi |
| 98 | |
| 99 | |
| 100 | as_lineno_1=$LINENO |
| 101 | as_lineno_2=$LINENO |
| 102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 103 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 104 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 105 | # Find who we are. Look in the path if we contain no path at all |
| 106 | # relative or not. |
| 107 | case $0 in |
| 108 | *[\\/]* ) as_myself=$0 ;; |
| 109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 110 | for as_dir in $PATH |
| 111 | do |
| 112 | IFS=$as_save_IFS |
| 113 | test -z "$as_dir" && as_dir=. |
| 114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 115 | done |
| 116 | |
| 117 | ;; |
| 118 | esac |
| 119 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 120 | # in which case we are not to be found in the path. |
| 121 | if test "x$as_myself" = x; then |
| 122 | as_myself=$0 |
| 123 | fi |
| 124 | if test ! -f "$as_myself"; then |
| 125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
| 126 | { (exit 1); exit 1; }; } |
| 127 | fi |
| 128 | case $CONFIG_SHELL in |
| 129 | '') |
| 130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 132 | do |
| 133 | IFS=$as_save_IFS |
| 134 | test -z "$as_dir" && as_dir=. |
| 135 | for as_base in sh bash ksh sh5; do |
| 136 | case $as_dir in |
| 137 | /*) |
| 138 | if ("$as_dir/$as_base" -c ' |
| 139 | as_lineno_1=$LINENO |
| 140 | as_lineno_2=$LINENO |
| 141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 142 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 146 | CONFIG_SHELL=$as_dir/$as_base |
| 147 | export CONFIG_SHELL |
| 148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 149 | fi;; |
| 150 | esac |
| 151 | done |
| 152 | done |
| 153 | ;; |
| 154 | esac |
| 155 | |
| 156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 157 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 158 | # line-number line before each line; the second 'sed' does the real |
| 159 | # work. The second script uses 'N' to pair each line-number line |
| 160 | # with the numbered line, and appends trailing '-' during |
| 161 | # substitution so that $LINENO is not a special case at line end. |
| 162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 164 | sed '=' <$as_myself | |
| 165 | sed ' |
| 166 | N |
| 167 | s,$,-, |
| 168 | : loop |
| 169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 170 | t loop |
| 171 | s,-$,, |
| 172 | s,^['$as_cr_digits']*\n,, |
| 173 | ' >$as_me.lineno && |
| 174 | chmod +x $as_me.lineno || |
| 175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 176 | { (exit 1); exit 1; }; } |
| 177 | |
| 178 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 179 | # (the dirname of $[0] is not the place where we might find the |
| 180 | # original and so on. Autoconf is especially sensible to this). |
| 181 | . ./$as_me.lineno |
| 182 | # Exit status is that of the last command. |
| 183 | exit |
| 184 | } |
| 185 | |
| 186 | |
| 187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 188 | *c*,-n*) ECHO_N= ECHO_C=' |
| 189 | ' ECHO_T=' ' ;; |
| 190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 192 | esac |
| 193 | |
| 194 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 195 | as_expr=expr |
| 196 | else |
| 197 | as_expr=false |
| 198 | fi |
| 199 | |
| 200 | rm -f conf$$ conf$$.exe conf$$.file |
| 201 | echo >conf$$.file |
| 202 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 203 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 205 | if test -f conf$$.exe; then |
| 206 | # Don't use ln at all; we don't have any links |
| 207 | as_ln_s='cp -p' |
| 208 | else |
| 209 | as_ln_s='ln -s' |
| 210 | fi |
| 211 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 212 | as_ln_s=ln |
| 213 | else |
| 214 | as_ln_s='cp -p' |
| 215 | fi |
| 216 | rm -f conf$$ conf$$.exe conf$$.file |
| 217 | |
| 218 | if mkdir -p . 2>/dev/null; then |
| 219 | as_mkdir_p=: |
| 220 | else |
| 221 | test -d ./-p && rmdir ./-p |
| 222 | as_mkdir_p=false |
| 223 | fi |
| 224 | |
| 225 | as_executable_p="test -f" |
| 226 | |
| 227 | # Sed expression to map a string onto a valid CPP name. |
| 228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 229 | |
| 230 | # Sed expression to map a string onto a valid variable name. |
| 231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 232 | |
| 233 | |
| 234 | # IFS |
| 235 | # We need space, tab and new line, in precisely that order. |
| 236 | as_nl=' |
| 237 | ' |
| 238 | IFS=" $as_nl" |
| 239 | |
| 240 | # CDPATH. |
| 241 | $as_unset CDPATH |
| 242 | |
| 243 | |
| 244 | # Name of the host. |
| 245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 246 | # so uname gets run too. |
| 247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 248 | |
| 249 | exec 6>&1 |
| 250 | |
| 251 | # |
| 252 | # Initializations. |
| 253 | # |
| 254 | ac_default_prefix=/usr/local |
| 255 | ac_config_libobj_dir=. |
| 256 | cross_compiling=no |
| 257 | subdirs= |
| 258 | MFLAGS= |
| 259 | MAKEFLAGS= |
| 260 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 261 | |
| 262 | # Maximum number of lines to put in a shell here document. |
| 263 | # This variable seems obsolete. It should probably be removed, and |
| 264 | # only ac_max_sed_lines should be used. |
| 265 | : ${ac_max_here_lines=38} |
| 266 | |
| 267 | # Identity of this package. |
| 268 | PACKAGE_NAME= |
| 269 | PACKAGE_TARNAME= |
| 270 | PACKAGE_VERSION= |
| 271 | PACKAGE_STRING= |
| 272 | PACKAGE_BUGREPORT= |
| 273 | |
| 274 | ac_unique_file="libop/op_config.h" |
| 275 | # Factoring default headers for most tests. |
| 276 | ac_includes_default="\ |
| 277 | #include <stdio.h> |
| 278 | #if HAVE_SYS_TYPES_H |
| 279 | # include <sys/types.h> |
| 280 | #endif |
| 281 | #if HAVE_SYS_STAT_H |
| 282 | # include <sys/stat.h> |
| 283 | #endif |
| 284 | #if STDC_HEADERS |
| 285 | # include <stdlib.h> |
| 286 | # include <stddef.h> |
| 287 | #else |
| 288 | # if HAVE_STDLIB_H |
| 289 | # include <stdlib.h> |
| 290 | # endif |
| 291 | #endif |
| 292 | #if HAVE_STRING_H |
| 293 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 294 | # include <memory.h> |
| 295 | # endif |
| 296 | # include <string.h> |
| 297 | #endif |
| 298 | #if HAVE_STRINGS_H |
| 299 | # include <strings.h> |
| 300 | #endif |
| 301 | #if HAVE_INTTYPES_H |
| 302 | # include <inttypes.h> |
| 303 | #else |
| 304 | # if HAVE_STDINT_H |
| 305 | # include <stdint.h> |
| 306 | # endif |
| 307 | #endif |
| 308 | #if HAVE_UNISTD_H |
| 309 | # include <unistd.h> |
| 310 | #endif" |
| 311 | |
| 312 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar RANLIB ac_ct_RANLIB DATE OPROFILE_DIR CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE LD KSRC KINC kernel_support_TRUE kernel_support_FALSE KVERS OPROFILE_MODULE_ARCH MODINSTALLDIR EXTRA_CFLAGS_MODULE topdir EGREP SIZE_T_TYPE PTRDIFF_T_TYPE CXXCPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS QT_INCLUDES QT_LDFLAGS MOC UIC QT_LIB QT_VERSION enable_abi_TRUE enable_abi_FALSE XSLTPROC have_xsltproc_TRUE have_xsltproc_FALSE XML_CATALOG XSLTPROC_FLAGS DOCBOOK_ROOT CAT_ENTRY_START CAT_ENTRY_END LIBERTY_LIBS BFD_LIBS POPT_LIBS have_qt_TRUE have_qt_FALSE OP_CFLAGS OP_CXXFLAGS OP_DOCDIR LIBOBJS LTLIBOBJS' |
| 313 | ac_subst_files='' |
| 314 | |
| 315 | # Initialize some variables set by options. |
| 316 | ac_init_help= |
| 317 | ac_init_version=false |
| 318 | # The variables have the same names as the options, with |
| 319 | # dashes changed to underlines. |
| 320 | cache_file=/dev/null |
| 321 | exec_prefix=NONE |
| 322 | no_create= |
| 323 | no_recursion= |
| 324 | prefix=NONE |
| 325 | program_prefix=NONE |
| 326 | program_suffix=NONE |
| 327 | program_transform_name=s,x,x, |
| 328 | silent= |
| 329 | site= |
| 330 | srcdir= |
| 331 | verbose= |
| 332 | x_includes=NONE |
| 333 | x_libraries=NONE |
| 334 | |
| 335 | # Installation directory options. |
| 336 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 337 | # and all the variables that are supposed to be based on exec_prefix |
| 338 | # by default will actually change. |
| 339 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 340 | bindir='${exec_prefix}/bin' |
| 341 | sbindir='${exec_prefix}/sbin' |
| 342 | libexecdir='${exec_prefix}/libexec' |
| 343 | datadir='${prefix}/share' |
| 344 | sysconfdir='${prefix}/etc' |
| 345 | sharedstatedir='${prefix}/com' |
| 346 | localstatedir='${prefix}/var' |
| 347 | libdir='${exec_prefix}/lib' |
| 348 | includedir='${prefix}/include' |
| 349 | oldincludedir='/usr/include' |
| 350 | infodir='${prefix}/info' |
| 351 | mandir='${prefix}/man' |
| 352 | |
| 353 | ac_prev= |
| 354 | for ac_option |
| 355 | do |
| 356 | # If the previous option needs an argument, assign it. |
| 357 | if test -n "$ac_prev"; then |
| 358 | eval "$ac_prev=\$ac_option" |
| 359 | ac_prev= |
| 360 | continue |
| 361 | fi |
| 362 | |
| 363 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
| 364 | |
| 365 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 366 | |
| 367 | case $ac_option in |
| 368 | |
| 369 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 370 | ac_prev=bindir ;; |
| 371 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 372 | bindir=$ac_optarg ;; |
| 373 | |
| 374 | -build | --build | --buil | --bui | --bu) |
| 375 | ac_prev=build_alias ;; |
| 376 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 377 | build_alias=$ac_optarg ;; |
| 378 | |
| 379 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 380 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 381 | ac_prev=cache_file ;; |
| 382 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 383 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 384 | cache_file=$ac_optarg ;; |
| 385 | |
| 386 | --config-cache | -C) |
| 387 | cache_file=config.cache ;; |
| 388 | |
| 389 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 390 | ac_prev=datadir ;; |
| 391 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 392 | | --da=*) |
| 393 | datadir=$ac_optarg ;; |
| 394 | |
| 395 | -disable-* | --disable-*) |
| 396 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 397 | # Reject names that are not valid shell variable names. |
| 398 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 399 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 400 | { (exit 1); exit 1; }; } |
| 401 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 402 | eval "enable_$ac_feature=no" ;; |
| 403 | |
| 404 | -enable-* | --enable-*) |
| 405 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 406 | # Reject names that are not valid shell variable names. |
| 407 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 408 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 409 | { (exit 1); exit 1; }; } |
| 410 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 411 | case $ac_option in |
| 412 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 413 | *) ac_optarg=yes ;; |
| 414 | esac |
| 415 | eval "enable_$ac_feature='$ac_optarg'" ;; |
| 416 | |
| 417 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 418 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 419 | | --exec | --exe | --ex) |
| 420 | ac_prev=exec_prefix ;; |
| 421 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 422 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 423 | | --exec=* | --exe=* | --ex=*) |
| 424 | exec_prefix=$ac_optarg ;; |
| 425 | |
| 426 | -gas | --gas | --ga | --g) |
| 427 | # Obsolete; use --with-gas. |
| 428 | with_gas=yes ;; |
| 429 | |
| 430 | -help | --help | --hel | --he | -h) |
| 431 | ac_init_help=long ;; |
| 432 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 433 | ac_init_help=recursive ;; |
| 434 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 435 | ac_init_help=short ;; |
| 436 | |
| 437 | -host | --host | --hos | --ho) |
| 438 | ac_prev=host_alias ;; |
| 439 | -host=* | --host=* | --hos=* | --ho=*) |
| 440 | host_alias=$ac_optarg ;; |
| 441 | |
| 442 | -includedir | --includedir | --includedi | --included | --include \ |
| 443 | | --includ | --inclu | --incl | --inc) |
| 444 | ac_prev=includedir ;; |
| 445 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 446 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 447 | includedir=$ac_optarg ;; |
| 448 | |
| 449 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 450 | ac_prev=infodir ;; |
| 451 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 452 | infodir=$ac_optarg ;; |
| 453 | |
| 454 | -libdir | --libdir | --libdi | --libd) |
| 455 | ac_prev=libdir ;; |
| 456 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 457 | libdir=$ac_optarg ;; |
| 458 | |
| 459 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 460 | | --libexe | --libex | --libe) |
| 461 | ac_prev=libexecdir ;; |
| 462 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 463 | | --libexe=* | --libex=* | --libe=*) |
| 464 | libexecdir=$ac_optarg ;; |
| 465 | |
| 466 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 467 | | --localstate | --localstat | --localsta | --localst \ |
| 468 | | --locals | --local | --loca | --loc | --lo) |
| 469 | ac_prev=localstatedir ;; |
| 470 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 471 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 472 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 473 | localstatedir=$ac_optarg ;; |
| 474 | |
| 475 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 476 | ac_prev=mandir ;; |
| 477 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 478 | mandir=$ac_optarg ;; |
| 479 | |
| 480 | -nfp | --nfp | --nf) |
| 481 | # Obsolete; use --without-fp. |
| 482 | with_fp=no ;; |
| 483 | |
| 484 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 485 | | --no-cr | --no-c | -n) |
| 486 | no_create=yes ;; |
| 487 | |
| 488 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 489 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 490 | no_recursion=yes ;; |
| 491 | |
| 492 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 493 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 494 | | --oldin | --oldi | --old | --ol | --o) |
| 495 | ac_prev=oldincludedir ;; |
| 496 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 497 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 498 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 499 | oldincludedir=$ac_optarg ;; |
| 500 | |
| 501 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 502 | ac_prev=prefix ;; |
| 503 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 504 | prefix=$ac_optarg ;; |
| 505 | |
| 506 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 507 | | --program-pre | --program-pr | --program-p) |
| 508 | ac_prev=program_prefix ;; |
| 509 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 510 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 511 | program_prefix=$ac_optarg ;; |
| 512 | |
| 513 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 514 | | --program-suf | --program-su | --program-s) |
| 515 | ac_prev=program_suffix ;; |
| 516 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 517 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 518 | program_suffix=$ac_optarg ;; |
| 519 | |
| 520 | -program-transform-name | --program-transform-name \ |
| 521 | | --program-transform-nam | --program-transform-na \ |
| 522 | | --program-transform-n | --program-transform- \ |
| 523 | | --program-transform | --program-transfor \ |
| 524 | | --program-transfo | --program-transf \ |
| 525 | | --program-trans | --program-tran \ |
| 526 | | --progr-tra | --program-tr | --program-t) |
| 527 | ac_prev=program_transform_name ;; |
| 528 | -program-transform-name=* | --program-transform-name=* \ |
| 529 | | --program-transform-nam=* | --program-transform-na=* \ |
| 530 | | --program-transform-n=* | --program-transform-=* \ |
| 531 | | --program-transform=* | --program-transfor=* \ |
| 532 | | --program-transfo=* | --program-transf=* \ |
| 533 | | --program-trans=* | --program-tran=* \ |
| 534 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 535 | program_transform_name=$ac_optarg ;; |
| 536 | |
| 537 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 538 | | -silent | --silent | --silen | --sile | --sil) |
| 539 | silent=yes ;; |
| 540 | |
| 541 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 542 | ac_prev=sbindir ;; |
| 543 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 544 | | --sbi=* | --sb=*) |
| 545 | sbindir=$ac_optarg ;; |
| 546 | |
| 547 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 548 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 549 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 550 | | --sha | --sh) |
| 551 | ac_prev=sharedstatedir ;; |
| 552 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 553 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 554 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 555 | | --sha=* | --sh=*) |
| 556 | sharedstatedir=$ac_optarg ;; |
| 557 | |
| 558 | -site | --site | --sit) |
| 559 | ac_prev=site ;; |
| 560 | -site=* | --site=* | --sit=*) |
| 561 | site=$ac_optarg ;; |
| 562 | |
| 563 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 564 | ac_prev=srcdir ;; |
| 565 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 566 | srcdir=$ac_optarg ;; |
| 567 | |
| 568 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 569 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 570 | ac_prev=sysconfdir ;; |
| 571 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 572 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 573 | sysconfdir=$ac_optarg ;; |
| 574 | |
| 575 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 576 | ac_prev=target_alias ;; |
| 577 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 578 | target_alias=$ac_optarg ;; |
| 579 | |
| 580 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 581 | verbose=yes ;; |
| 582 | |
| 583 | -version | --version | --versio | --versi | --vers | -V) |
| 584 | ac_init_version=: ;; |
| 585 | |
| 586 | -with-* | --with-*) |
| 587 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 588 | # Reject names that are not valid shell variable names. |
| 589 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 590 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 591 | { (exit 1); exit 1; }; } |
| 592 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 593 | case $ac_option in |
| 594 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 595 | *) ac_optarg=yes ;; |
| 596 | esac |
| 597 | eval "with_$ac_package='$ac_optarg'" ;; |
| 598 | |
| 599 | -without-* | --without-*) |
| 600 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 601 | # Reject names that are not valid shell variable names. |
| 602 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 603 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 604 | { (exit 1); exit 1; }; } |
| 605 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 606 | eval "with_$ac_package=no" ;; |
| 607 | |
| 608 | --x) |
| 609 | # Obsolete; use --with-x. |
| 610 | with_x=yes ;; |
| 611 | |
| 612 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 613 | | --x-incl | --x-inc | --x-in | --x-i) |
| 614 | ac_prev=x_includes ;; |
| 615 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 616 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 617 | x_includes=$ac_optarg ;; |
| 618 | |
| 619 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 620 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 621 | ac_prev=x_libraries ;; |
| 622 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 623 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 624 | x_libraries=$ac_optarg ;; |
| 625 | |
| 626 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 627 | Try \`$0 --help' for more information." >&2 |
| 628 | { (exit 1); exit 1; }; } |
| 629 | ;; |
| 630 | |
| 631 | *=*) |
| 632 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 633 | # Reject names that are not valid shell variable names. |
| 634 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 635 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 636 | { (exit 1); exit 1; }; } |
| 637 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 638 | eval "$ac_envvar='$ac_optarg'" |
| 639 | export $ac_envvar ;; |
| 640 | |
| 641 | *) |
| 642 | # FIXME: should be removed in autoconf 3.0. |
| 643 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 644 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 645 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 646 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 647 | ;; |
| 648 | |
| 649 | esac |
| 650 | done |
| 651 | |
| 652 | if test -n "$ac_prev"; then |
| 653 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 654 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 655 | { (exit 1); exit 1; }; } |
| 656 | fi |
| 657 | |
| 658 | # Be sure to have absolute paths. |
| 659 | for ac_var in exec_prefix prefix |
| 660 | do |
| 661 | eval ac_val=$`echo $ac_var` |
| 662 | case $ac_val in |
| 663 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| 664 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 665 | { (exit 1); exit 1; }; };; |
| 666 | esac |
| 667 | done |
| 668 | |
| 669 | # Be sure to have absolute paths. |
| 670 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
| 671 | localstatedir libdir includedir oldincludedir infodir mandir |
| 672 | do |
| 673 | eval ac_val=$`echo $ac_var` |
| 674 | case $ac_val in |
| 675 | [\\/$]* | ?:[\\/]* ) ;; |
| 676 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 677 | { (exit 1); exit 1; }; };; |
| 678 | esac |
| 679 | done |
| 680 | |
| 681 | # There might be people who depend on the old broken behavior: `$host' |
| 682 | # used to hold the argument of --host etc. |
| 683 | # FIXME: To remove some day. |
| 684 | build=$build_alias |
| 685 | host=$host_alias |
| 686 | target=$target_alias |
| 687 | |
| 688 | # FIXME: To remove some day. |
| 689 | if test "x$host_alias" != x; then |
| 690 | if test "x$build_alias" = x; then |
| 691 | cross_compiling=maybe |
| 692 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 693 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 694 | elif test "x$build_alias" != "x$host_alias"; then |
| 695 | cross_compiling=yes |
| 696 | fi |
| 697 | fi |
| 698 | |
| 699 | ac_tool_prefix= |
| 700 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 701 | |
| 702 | test "$silent" = yes && exec 6>/dev/null |
| 703 | |
| 704 | |
| 705 | # Find the source files, if location was not specified. |
| 706 | if test -z "$srcdir"; then |
| 707 | ac_srcdir_defaulted=yes |
| 708 | # Try the directory containing this script, then its parent. |
| 709 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 710 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 711 | X"$0" : 'X\(//\)[^/]' \| \ |
| 712 | X"$0" : 'X\(//\)$' \| \ |
| 713 | X"$0" : 'X\(/\)' \| \ |
| 714 | . : '\(.\)' 2>/dev/null || |
| 715 | echo X"$0" | |
| 716 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 717 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 718 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 719 | /^X\(\/\).*/{ s//\1/; q; } |
| 720 | s/.*/./; q'` |
| 721 | srcdir=$ac_confdir |
| 722 | if test ! -r $srcdir/$ac_unique_file; then |
| 723 | srcdir=.. |
| 724 | fi |
| 725 | else |
| 726 | ac_srcdir_defaulted=no |
| 727 | fi |
| 728 | if test ! -r $srcdir/$ac_unique_file; then |
| 729 | if test "$ac_srcdir_defaulted" = yes; then |
| 730 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
| 731 | { (exit 1); exit 1; }; } |
| 732 | else |
| 733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 734 | { (exit 1); exit 1; }; } |
| 735 | fi |
| 736 | fi |
| 737 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
| 738 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
| 739 | { (exit 1); exit 1; }; } |
| 740 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 741 | ac_env_build_alias_set=${build_alias+set} |
| 742 | ac_env_build_alias_value=$build_alias |
| 743 | ac_cv_env_build_alias_set=${build_alias+set} |
| 744 | ac_cv_env_build_alias_value=$build_alias |
| 745 | ac_env_host_alias_set=${host_alias+set} |
| 746 | ac_env_host_alias_value=$host_alias |
| 747 | ac_cv_env_host_alias_set=${host_alias+set} |
| 748 | ac_cv_env_host_alias_value=$host_alias |
| 749 | ac_env_target_alias_set=${target_alias+set} |
| 750 | ac_env_target_alias_value=$target_alias |
| 751 | ac_cv_env_target_alias_set=${target_alias+set} |
| 752 | ac_cv_env_target_alias_value=$target_alias |
| 753 | ac_env_CC_set=${CC+set} |
| 754 | ac_env_CC_value=$CC |
| 755 | ac_cv_env_CC_set=${CC+set} |
| 756 | ac_cv_env_CC_value=$CC |
| 757 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 758 | ac_env_CFLAGS_value=$CFLAGS |
| 759 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 760 | ac_cv_env_CFLAGS_value=$CFLAGS |
| 761 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 762 | ac_env_LDFLAGS_value=$LDFLAGS |
| 763 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 764 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 765 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 766 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 767 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 768 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| 769 | ac_env_CPP_set=${CPP+set} |
| 770 | ac_env_CPP_value=$CPP |
| 771 | ac_cv_env_CPP_set=${CPP+set} |
| 772 | ac_cv_env_CPP_value=$CPP |
| 773 | ac_env_CXX_set=${CXX+set} |
| 774 | ac_env_CXX_value=$CXX |
| 775 | ac_cv_env_CXX_set=${CXX+set} |
| 776 | ac_cv_env_CXX_value=$CXX |
| 777 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
| 778 | ac_env_CXXFLAGS_value=$CXXFLAGS |
| 779 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
| 780 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
| 781 | ac_env_CXXCPP_set=${CXXCPP+set} |
| 782 | ac_env_CXXCPP_value=$CXXCPP |
| 783 | ac_cv_env_CXXCPP_set=${CXXCPP+set} |
| 784 | ac_cv_env_CXXCPP_value=$CXXCPP |
| 785 | |
| 786 | # |
| 787 | # Report the --help message. |
| 788 | # |
| 789 | if test "$ac_init_help" = "long"; then |
| 790 | # Omit some internal or obsolete options to make the list less imposing. |
| 791 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 792 | cat <<_ACEOF |
| 793 | \`configure' configures this package to adapt to many kinds of systems. |
| 794 | |
| 795 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 796 | |
| 797 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 798 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 799 | |
| 800 | Defaults for the options are specified in brackets. |
| 801 | |
| 802 | Configuration: |
| 803 | -h, --help display this help and exit |
| 804 | --help=short display options specific to this package |
| 805 | --help=recursive display the short help of all the included packages |
| 806 | -V, --version display version information and exit |
| 807 | -q, --quiet, --silent do not print \`checking...' messages |
| 808 | --cache-file=FILE cache test results in FILE [disabled] |
| 809 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 810 | -n, --no-create do not create output files |
| 811 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 812 | |
| 813 | _ACEOF |
| 814 | |
| 815 | cat <<_ACEOF |
| 816 | Installation directories: |
| 817 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 818 | [$ac_default_prefix] |
| 819 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 820 | [PREFIX] |
| 821 | |
| 822 | By default, \`make install' will install all the files in |
| 823 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 824 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 825 | for instance \`--prefix=\$HOME'. |
| 826 | |
| 827 | For better control, use the options below. |
| 828 | |
| 829 | Fine tuning of the installation directories: |
| 830 | --bindir=DIR user executables [EPREFIX/bin] |
| 831 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 832 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 833 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 834 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 835 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 836 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 837 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 838 | --includedir=DIR C header files [PREFIX/include] |
| 839 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 840 | --infodir=DIR info documentation [PREFIX/info] |
| 841 | --mandir=DIR man documentation [PREFIX/man] |
| 842 | _ACEOF |
| 843 | |
| 844 | cat <<\_ACEOF |
| 845 | |
| 846 | Program names: |
| 847 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 848 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 849 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 850 | |
| 851 | X features: |
| 852 | --x-includes=DIR X include files are in DIR |
| 853 | --x-libraries=DIR X library files are in DIR |
| 854 | _ACEOF |
| 855 | fi |
| 856 | |
| 857 | if test -n "$ac_init_help"; then |
| 858 | |
| 859 | cat <<\_ACEOF |
| 860 | |
| 861 | Optional Features: |
| 862 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 863 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 864 | --disable-dependency-tracking speeds up one-time build |
| 865 | --enable-dependency-tracking do not reject slow dependency extractors |
| 866 | --enable-abi enable abi portability code (default is disabled) |
| 867 | --enable-pch enable precompiled header (default is disabled) |
| 868 | --enable-gcov enable option for gcov coverage testing (default is disabled) |
| 869 | --disable-werror disable -Werror flag (default is enabled for non-release) |
| 870 | --disable-optimization disable optimization flags (default is enabled) |
| 871 | |
| 872 | Optional Packages: |
| 873 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 874 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 875 | --with-binutils=dir Path to binutils installation to use |
| 876 | --with-gcc=dir Path to GCC installation to use |
| 877 | --with-kernel-support Use 2.6 kernel (no kernel source tree required) |
| 878 | --with-linux=dir Path to Linux source tree |
| 879 | --with-module-dir=dir Path to module installation directory |
| 880 | --with-extra-includes=DIR add extra include paths |
| 881 | --with-extra-libs=DIR add extra library paths |
| 882 | --with-x use the X Window System |
| 883 | --with-qt-dir where the root of Qt is installed |
| 884 | --with-qt-includes where the Qt includes are. |
| 885 | --with-qt-libraries where the Qt library is installed. |
| 886 | |
| 887 | Some influential environment variables: |
| 888 | CC C compiler command |
| 889 | CFLAGS C compiler flags |
| 890 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 891 | nonstandard directory <lib dir> |
| 892 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 893 | headers in a nonstandard directory <include dir> |
| 894 | CPP C preprocessor |
| 895 | CXX C++ compiler command |
| 896 | CXXFLAGS C++ compiler flags |
| 897 | CXXCPP C++ preprocessor |
| 898 | |
| 899 | Use these variables to override the choices made by `configure' or to help |
| 900 | it to find libraries and programs with nonstandard names/locations. |
| 901 | |
| 902 | _ACEOF |
| 903 | fi |
| 904 | |
| 905 | if test "$ac_init_help" = "recursive"; then |
| 906 | # If there are subdirs, report their specific --help. |
| 907 | ac_popdir=`pwd` |
| 908 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 909 | test -d $ac_dir || continue |
| 910 | ac_builddir=. |
| 911 | |
| 912 | if test "$ac_dir" != .; then |
| 913 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 914 | # A "../" for each directory in $ac_dir_suffix. |
| 915 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 916 | else |
| 917 | ac_dir_suffix= ac_top_builddir= |
| 918 | fi |
| 919 | |
| 920 | case $srcdir in |
| 921 | .) # No --srcdir option. We are building in place. |
| 922 | ac_srcdir=. |
| 923 | if test -z "$ac_top_builddir"; then |
| 924 | ac_top_srcdir=. |
| 925 | else |
| 926 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 927 | fi ;; |
| 928 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 929 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 930 | ac_top_srcdir=$srcdir ;; |
| 931 | *) # Relative path. |
| 932 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 933 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 934 | esac |
| 935 | |
| 936 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 937 | # the directories may not exist. |
| 938 | case `pwd` in |
| 939 | .) ac_abs_builddir="$ac_dir";; |
| 940 | *) |
| 941 | case "$ac_dir" in |
| 942 | .) ac_abs_builddir=`pwd`;; |
| 943 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 944 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 945 | esac;; |
| 946 | esac |
| 947 | case $ac_abs_builddir in |
| 948 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 949 | *) |
| 950 | case ${ac_top_builddir}. in |
| 951 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 952 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 953 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 954 | esac;; |
| 955 | esac |
| 956 | case $ac_abs_builddir in |
| 957 | .) ac_abs_srcdir=$ac_srcdir;; |
| 958 | *) |
| 959 | case $ac_srcdir in |
| 960 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 961 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 962 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 963 | esac;; |
| 964 | esac |
| 965 | case $ac_abs_builddir in |
| 966 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 967 | *) |
| 968 | case $ac_top_srcdir in |
| 969 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 970 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 971 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 972 | esac;; |
| 973 | esac |
| 974 | |
| 975 | cd $ac_dir |
| 976 | # Check for guested configure; otherwise get Cygnus style configure. |
| 977 | if test -f $ac_srcdir/configure.gnu; then |
| 978 | echo |
| 979 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 980 | elif test -f $ac_srcdir/configure; then |
| 981 | echo |
| 982 | $SHELL $ac_srcdir/configure --help=recursive |
| 983 | elif test -f $ac_srcdir/configure.ac || |
| 984 | test -f $ac_srcdir/configure.in; then |
| 985 | echo |
| 986 | $ac_configure --help |
| 987 | else |
| 988 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 989 | fi |
| 990 | cd $ac_popdir |
| 991 | done |
| 992 | fi |
| 993 | |
| 994 | test -n "$ac_init_help" && exit 0 |
| 995 | if $ac_init_version; then |
| 996 | cat <<\_ACEOF |
| 997 | |
| 998 | Copyright (C) 2003 Free Software Foundation, Inc. |
| 999 | This configure script is free software; the Free Software Foundation |
| 1000 | gives unlimited permission to copy, distribute and modify it. |
| 1001 | _ACEOF |
| 1002 | exit 0 |
| 1003 | fi |
| 1004 | exec 5>config.log |
| 1005 | cat >&5 <<_ACEOF |
| 1006 | This file contains any messages produced by compilers while |
| 1007 | running configure, to aid debugging if configure makes a mistake. |
| 1008 | |
| 1009 | It was created by $as_me, which was |
| 1010 | generated by GNU Autoconf 2.59. Invocation command line was |
| 1011 | |
| 1012 | $ $0 $@ |
| 1013 | |
| 1014 | _ACEOF |
| 1015 | { |
| 1016 | cat <<_ASUNAME |
| 1017 | ## --------- ## |
| 1018 | ## Platform. ## |
| 1019 | ## --------- ## |
| 1020 | |
| 1021 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1022 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1023 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1024 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1025 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1026 | |
| 1027 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1028 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1029 | |
| 1030 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1031 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1032 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1033 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 1034 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1035 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1036 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1037 | |
| 1038 | _ASUNAME |
| 1039 | |
| 1040 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1041 | for as_dir in $PATH |
| 1042 | do |
| 1043 | IFS=$as_save_IFS |
| 1044 | test -z "$as_dir" && as_dir=. |
| 1045 | echo "PATH: $as_dir" |
| 1046 | done |
| 1047 | |
| 1048 | } >&5 |
| 1049 | |
| 1050 | cat >&5 <<_ACEOF |
| 1051 | |
| 1052 | |
| 1053 | ## ----------- ## |
| 1054 | ## Core tests. ## |
| 1055 | ## ----------- ## |
| 1056 | |
| 1057 | _ACEOF |
| 1058 | |
| 1059 | |
| 1060 | # Keep a trace of the command line. |
| 1061 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1062 | # Strip out --silent because we don't want to record it for future runs. |
| 1063 | # Also quote any args containing shell meta-characters. |
| 1064 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1065 | ac_configure_args= |
| 1066 | ac_configure_args0= |
| 1067 | ac_configure_args1= |
| 1068 | ac_sep= |
| 1069 | ac_must_keep_next=false |
| 1070 | for ac_pass in 1 2 |
| 1071 | do |
| 1072 | for ac_arg |
| 1073 | do |
| 1074 | case $ac_arg in |
| 1075 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1076 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1077 | | -silent | --silent | --silen | --sile | --sil) |
| 1078 | continue ;; |
| 1079 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1080 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1081 | esac |
| 1082 | case $ac_pass in |
| 1083 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1084 | 2) |
| 1085 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1086 | if test $ac_must_keep_next = true; then |
| 1087 | ac_must_keep_next=false # Got value, back to normal. |
| 1088 | else |
| 1089 | case $ac_arg in |
| 1090 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1091 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1092 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1093 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1094 | case "$ac_configure_args0 " in |
| 1095 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1096 | esac |
| 1097 | ;; |
| 1098 | -* ) ac_must_keep_next=true ;; |
| 1099 | esac |
| 1100 | fi |
| 1101 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1102 | # Get rid of the leading space. |
| 1103 | ac_sep=" " |
| 1104 | ;; |
| 1105 | esac |
| 1106 | done |
| 1107 | done |
| 1108 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1109 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1110 | |
| 1111 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1112 | # config.log. We remove comments because anyway the quotes in there |
| 1113 | # would cause problems or look ugly. |
| 1114 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1115 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1116 | trap 'exit_status=$? |
| 1117 | # Save into config.log some information that might help in debugging. |
| 1118 | { |
| 1119 | echo |
| 1120 | |
| 1121 | cat <<\_ASBOX |
| 1122 | ## ---------------- ## |
| 1123 | ## Cache variables. ## |
| 1124 | ## ---------------- ## |
| 1125 | _ASBOX |
| 1126 | echo |
| 1127 | # The following way of writing the cache mishandles newlines in values, |
| 1128 | { |
| 1129 | (set) 2>&1 | |
| 1130 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1131 | *ac_space=\ *) |
| 1132 | sed -n \ |
| 1133 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1134 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| 1135 | ;; |
| 1136 | *) |
| 1137 | sed -n \ |
| 1138 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1139 | ;; |
| 1140 | esac; |
| 1141 | } |
| 1142 | echo |
| 1143 | |
| 1144 | cat <<\_ASBOX |
| 1145 | ## ----------------- ## |
| 1146 | ## Output variables. ## |
| 1147 | ## ----------------- ## |
| 1148 | _ASBOX |
| 1149 | echo |
| 1150 | for ac_var in $ac_subst_vars |
| 1151 | do |
| 1152 | eval ac_val=$`echo $ac_var` |
| 1153 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1154 | done | sort |
| 1155 | echo |
| 1156 | |
| 1157 | if test -n "$ac_subst_files"; then |
| 1158 | cat <<\_ASBOX |
| 1159 | ## ------------- ## |
| 1160 | ## Output files. ## |
| 1161 | ## ------------- ## |
| 1162 | _ASBOX |
| 1163 | echo |
| 1164 | for ac_var in $ac_subst_files |
| 1165 | do |
| 1166 | eval ac_val=$`echo $ac_var` |
| 1167 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1168 | done | sort |
| 1169 | echo |
| 1170 | fi |
| 1171 | |
| 1172 | if test -s confdefs.h; then |
| 1173 | cat <<\_ASBOX |
| 1174 | ## ----------- ## |
| 1175 | ## confdefs.h. ## |
| 1176 | ## ----------- ## |
| 1177 | _ASBOX |
| 1178 | echo |
| 1179 | sed "/^$/d" confdefs.h | sort |
| 1180 | echo |
| 1181 | fi |
| 1182 | test "$ac_signal" != 0 && |
| 1183 | echo "$as_me: caught signal $ac_signal" |
| 1184 | echo "$as_me: exit $exit_status" |
| 1185 | } >&5 |
| 1186 | rm -f core *.core && |
| 1187 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1188 | exit $exit_status |
| 1189 | ' 0 |
| 1190 | for ac_signal in 1 2 13 15; do |
| 1191 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1192 | done |
| 1193 | ac_signal=0 |
| 1194 | |
| 1195 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1196 | rm -rf conftest* confdefs.h |
| 1197 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1198 | echo >confdefs.h |
| 1199 | |
| 1200 | # Predefined preprocessor variables. |
| 1201 | |
| 1202 | cat >>confdefs.h <<_ACEOF |
| 1203 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1204 | _ACEOF |
| 1205 | |
| 1206 | |
| 1207 | cat >>confdefs.h <<_ACEOF |
| 1208 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1209 | _ACEOF |
| 1210 | |
| 1211 | |
| 1212 | cat >>confdefs.h <<_ACEOF |
| 1213 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1214 | _ACEOF |
| 1215 | |
| 1216 | |
| 1217 | cat >>confdefs.h <<_ACEOF |
| 1218 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1219 | _ACEOF |
| 1220 | |
| 1221 | |
| 1222 | cat >>confdefs.h <<_ACEOF |
| 1223 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1224 | _ACEOF |
| 1225 | |
| 1226 | |
| 1227 | # Let the site file select an alternate cache file if it wants to. |
| 1228 | # Prefer explicitly selected file to automatically selected ones. |
| 1229 | if test -z "$CONFIG_SITE"; then |
| 1230 | if test "x$prefix" != xNONE; then |
| 1231 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1232 | else |
| 1233 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1234 | fi |
| 1235 | fi |
| 1236 | for ac_site_file in $CONFIG_SITE; do |
| 1237 | if test -r "$ac_site_file"; then |
| 1238 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1239 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1240 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1241 | . "$ac_site_file" |
| 1242 | fi |
| 1243 | done |
| 1244 | |
| 1245 | if test -r "$cache_file"; then |
| 1246 | # Some versions of bash will fail to source /dev/null (special |
| 1247 | # files actually), so we avoid doing that. |
| 1248 | if test -f "$cache_file"; then |
| 1249 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1250 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1251 | case $cache_file in |
| 1252 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1253 | *) . ./$cache_file;; |
| 1254 | esac |
| 1255 | fi |
| 1256 | else |
| 1257 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1258 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1259 | >$cache_file |
| 1260 | fi |
| 1261 | |
| 1262 | # Check that the precious variables saved in the cache have kept the same |
| 1263 | # value. |
| 1264 | ac_cache_corrupted=false |
| 1265 | for ac_var in `(set) 2>&1 | |
| 1266 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| 1267 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1268 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1269 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1270 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1271 | case $ac_old_set,$ac_new_set in |
| 1272 | set,) |
| 1273 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1274 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1275 | ac_cache_corrupted=: ;; |
| 1276 | ,set) |
| 1277 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1278 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1279 | ac_cache_corrupted=: ;; |
| 1280 | ,);; |
| 1281 | *) |
| 1282 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1283 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1284 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1285 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1286 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1287 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1288 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1289 | ac_cache_corrupted=: |
| 1290 | fi;; |
| 1291 | esac |
| 1292 | # Pass precious variables to config.status. |
| 1293 | if test "$ac_new_set" = set; then |
| 1294 | case $ac_new_val in |
| 1295 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1296 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1297 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1298 | esac |
| 1299 | case " $ac_configure_args " in |
| 1300 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1301 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1302 | esac |
| 1303 | fi |
| 1304 | done |
| 1305 | if $ac_cache_corrupted; then |
| 1306 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1307 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1308 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1309 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1310 | { (exit 1); exit 1; }; } |
| 1311 | fi |
| 1312 | |
| 1313 | ac_ext=c |
| 1314 | ac_cpp='$CPP $CPPFLAGS' |
| 1315 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1316 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1317 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1318 | |
| 1319 | |
| 1320 | |
| 1321 | |
| 1322 | |
| 1323 | |
| 1324 | |
| 1325 | |
| 1326 | |
| 1327 | |
| 1328 | |
| 1329 | |
| 1330 | |
| 1331 | |
| 1332 | |
| 1333 | |
| 1334 | |
| 1335 | |
| 1336 | |
| 1337 | am__api_version="1.9" |
| 1338 | ac_aux_dir= |
| 1339 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 1340 | if test -f $ac_dir/install-sh; then |
| 1341 | ac_aux_dir=$ac_dir |
| 1342 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1343 | break |
| 1344 | elif test -f $ac_dir/install.sh; then |
| 1345 | ac_aux_dir=$ac_dir |
| 1346 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1347 | break |
| 1348 | elif test -f $ac_dir/shtool; then |
| 1349 | ac_aux_dir=$ac_dir |
| 1350 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1351 | break |
| 1352 | fi |
| 1353 | done |
| 1354 | if test -z "$ac_aux_dir"; then |
| 1355 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 1356 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 1357 | { (exit 1); exit 1; }; } |
| 1358 | fi |
| 1359 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 1360 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 1361 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
| 1362 | |
| 1363 | # Find a good install program. We prefer a C program (faster), |
| 1364 | # so one script is as good as another. But avoid the broken or |
| 1365 | # incompatible versions: |
| 1366 | # SysV /etc/install, /usr/sbin/install |
| 1367 | # SunOS /usr/etc/install |
| 1368 | # IRIX /sbin/install |
| 1369 | # AIX /bin/install |
| 1370 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 1371 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 1372 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 1373 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 1374 | # OS/2's system install, which has a completely different semantic |
| 1375 | # ./install, which can be erroneously created by make from ./install.sh. |
| 1376 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 1377 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
| 1378 | if test -z "$INSTALL"; then |
| 1379 | if test "${ac_cv_path_install+set}" = set; then |
| 1380 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1381 | else |
| 1382 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1383 | for as_dir in $PATH |
| 1384 | do |
| 1385 | IFS=$as_save_IFS |
| 1386 | test -z "$as_dir" && as_dir=. |
| 1387 | # Account for people who put trailing slashes in PATH elements. |
| 1388 | case $as_dir/ in |
| 1389 | ./ | .// | /cC/* | \ |
| 1390 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 1391 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 1392 | /usr/ucb/* ) ;; |
| 1393 | *) |
| 1394 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 1395 | # Don't use installbsd from OSF since it installs stuff as root |
| 1396 | # by default. |
| 1397 | for ac_prog in ginstall scoinst install; do |
| 1398 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1399 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 1400 | if test $ac_prog = install && |
| 1401 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 1402 | # AIX install. It has an incompatible calling convention. |
| 1403 | : |
| 1404 | elif test $ac_prog = install && |
| 1405 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 1406 | # program-specific install script used by HP pwplus--don't use. |
| 1407 | : |
| 1408 | else |
| 1409 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 1410 | break 3 |
| 1411 | fi |
| 1412 | fi |
| 1413 | done |
| 1414 | done |
| 1415 | ;; |
| 1416 | esac |
| 1417 | done |
| 1418 | |
| 1419 | |
| 1420 | fi |
| 1421 | if test "${ac_cv_path_install+set}" = set; then |
| 1422 | INSTALL=$ac_cv_path_install |
| 1423 | else |
| 1424 | # As a last resort, use the slow shell script. We don't cache a |
| 1425 | # path for INSTALL within a source directory, because that will |
| 1426 | # break other packages using the cache if that directory is |
| 1427 | # removed, or if the path is relative. |
| 1428 | INSTALL=$ac_install_sh |
| 1429 | fi |
| 1430 | fi |
| 1431 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 1432 | echo "${ECHO_T}$INSTALL" >&6 |
| 1433 | |
| 1434 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 1435 | # It thinks the first close brace ends the variable substitution. |
| 1436 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 1437 | |
| 1438 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 1439 | |
| 1440 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 1441 | |
| 1442 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
| 1443 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
| 1444 | # Just in case |
| 1445 | sleep 1 |
| 1446 | echo timestamp > conftest.file |
| 1447 | # Do `set' in a subshell so we don't clobber the current shell's |
| 1448 | # arguments. Must try -L first in case configure is actually a |
| 1449 | # symlink; some systems play weird games with the mod time of symlinks |
| 1450 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 1451 | # directory). |
| 1452 | if ( |
| 1453 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
| 1454 | if test "$*" = "X"; then |
| 1455 | # -L didn't work. |
| 1456 | set X `ls -t $srcdir/configure conftest.file` |
| 1457 | fi |
| 1458 | rm -f conftest.file |
| 1459 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 1460 | && test "$*" != "X conftest.file $srcdir/configure"; then |
| 1461 | |
| 1462 | # If neither matched, then we have a broken ls. This can happen |
| 1463 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 1464 | # broken ls alias from the environment. This has actually |
| 1465 | # happened. Such a system could not be considered "sane". |
| 1466 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
| 1467 | alias in your environment" >&5 |
| 1468 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
| 1469 | alias in your environment" >&2;} |
| 1470 | { (exit 1); exit 1; }; } |
| 1471 | fi |
| 1472 | |
| 1473 | test "$2" = conftest.file |
| 1474 | ) |
| 1475 | then |
| 1476 | # Ok. |
| 1477 | : |
| 1478 | else |
| 1479 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
| 1480 | Check your system clock" >&5 |
| 1481 | echo "$as_me: error: newly created file is older than distributed files! |
| 1482 | Check your system clock" >&2;} |
| 1483 | { (exit 1); exit 1; }; } |
| 1484 | fi |
| 1485 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1486 | echo "${ECHO_T}yes" >&6 |
| 1487 | test "$program_prefix" != NONE && |
| 1488 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
| 1489 | # Use a double $ so make ignores it. |
| 1490 | test "$program_suffix" != NONE && |
| 1491 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
| 1492 | # Double any \ or $. echo might interpret backslashes. |
| 1493 | # By default was `s,x,x', remove it if useless. |
| 1494 | cat <<\_ACEOF >conftest.sed |
| 1495 | s/[\\$]/&&/g;s/;s,x,x,$// |
| 1496 | _ACEOF |
| 1497 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
| 1498 | rm conftest.sed |
| 1499 | |
| 1500 | # expand $ac_aux_dir to an absolute path |
| 1501 | am_aux_dir=`cd $ac_aux_dir && pwd` |
| 1502 | |
| 1503 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
| 1504 | # Use eval to expand $SHELL |
| 1505 | if eval "$MISSING --run true"; then |
| 1506 | am_missing_run="$MISSING --run " |
| 1507 | else |
| 1508 | am_missing_run= |
| 1509 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
| 1510 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
| 1511 | fi |
| 1512 | |
| 1513 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
| 1514 | # We used to keeping the `.' as first argument, in order to |
| 1515 | # allow $(mkdir_p) to be used without argument. As in |
| 1516 | # $(mkdir_p) $(somedir) |
| 1517 | # where $(somedir) is conditionally defined. However this is wrong |
| 1518 | # for two reasons: |
| 1519 | # 1. if the package is installed by a user who cannot write `.' |
| 1520 | # make install will fail, |
| 1521 | # 2. the above comment should most certainly read |
| 1522 | # $(mkdir_p) $(DESTDIR)$(somedir) |
| 1523 | # so it does not work when $(somedir) is undefined and |
| 1524 | # $(DESTDIR) is not. |
| 1525 | # To support the latter case, we have to write |
| 1526 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), |
| 1527 | # so the `.' trick is pointless. |
| 1528 | mkdir_p='mkdir -p --' |
| 1529 | else |
| 1530 | # On NextStep and OpenStep, the `mkdir' command does not |
| 1531 | # recognize any option. It will interpret all options as |
| 1532 | # directories to create, and then abort because `.' already |
| 1533 | # exists. |
| 1534 | for d in ./-p ./--version; |
| 1535 | do |
| 1536 | test -d $d && rmdir $d |
| 1537 | done |
| 1538 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
| 1539 | if test -f "$ac_aux_dir/mkinstalldirs"; then |
| 1540 | mkdir_p='$(mkinstalldirs)' |
| 1541 | else |
| 1542 | mkdir_p='$(install_sh) -d' |
| 1543 | fi |
| 1544 | fi |
| 1545 | |
| 1546 | for ac_prog in gawk mawk nawk awk |
| 1547 | do |
| 1548 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1549 | set dummy $ac_prog; ac_word=$2 |
| 1550 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1551 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1552 | if test "${ac_cv_prog_AWK+set}" = set; then |
| 1553 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1554 | else |
| 1555 | if test -n "$AWK"; then |
| 1556 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 1557 | else |
| 1558 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1559 | for as_dir in $PATH |
| 1560 | do |
| 1561 | IFS=$as_save_IFS |
| 1562 | test -z "$as_dir" && as_dir=. |
| 1563 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1564 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1565 | ac_cv_prog_AWK="$ac_prog" |
| 1566 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1567 | break 2 |
| 1568 | fi |
| 1569 | done |
| 1570 | done |
| 1571 | |
| 1572 | fi |
| 1573 | fi |
| 1574 | AWK=$ac_cv_prog_AWK |
| 1575 | if test -n "$AWK"; then |
| 1576 | echo "$as_me:$LINENO: result: $AWK" >&5 |
| 1577 | echo "${ECHO_T}$AWK" >&6 |
| 1578 | else |
| 1579 | echo "$as_me:$LINENO: result: no" >&5 |
| 1580 | echo "${ECHO_T}no" >&6 |
| 1581 | fi |
| 1582 | |
| 1583 | test -n "$AWK" && break |
| 1584 | done |
| 1585 | |
| 1586 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 1587 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
| 1588 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
| 1589 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
| 1590 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1591 | else |
| 1592 | cat >conftest.make <<\_ACEOF |
| 1593 | all: |
| 1594 | @echo 'ac_maketemp="$(MAKE)"' |
| 1595 | _ACEOF |
| 1596 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 1597 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
| 1598 | if test -n "$ac_maketemp"; then |
| 1599 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 1600 | else |
| 1601 | eval ac_cv_prog_make_${ac_make}_set=no |
| 1602 | fi |
| 1603 | rm -f conftest.make |
| 1604 | fi |
| 1605 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
| 1606 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1607 | echo "${ECHO_T}yes" >&6 |
| 1608 | SET_MAKE= |
| 1609 | else |
| 1610 | echo "$as_me:$LINENO: result: no" >&5 |
| 1611 | echo "${ECHO_T}no" >&6 |
| 1612 | SET_MAKE="MAKE=${MAKE-make}" |
| 1613 | fi |
| 1614 | |
| 1615 | rm -rf .tst 2>/dev/null |
| 1616 | mkdir .tst 2>/dev/null |
| 1617 | if test -d .tst; then |
| 1618 | am__leading_dot=. |
| 1619 | else |
| 1620 | am__leading_dot=_ |
| 1621 | fi |
| 1622 | rmdir .tst 2>/dev/null |
| 1623 | |
| 1624 | # test to see if srcdir already configured |
| 1625 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
| 1626 | test -f $srcdir/config.status; then |
| 1627 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
| 1628 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
| 1629 | { (exit 1); exit 1; }; } |
| 1630 | fi |
| 1631 | |
| 1632 | # test whether we have cygpath |
| 1633 | if test -z "$CYGPATH_W"; then |
| 1634 | if (cygpath --version) >/dev/null 2>/dev/null; then |
| 1635 | CYGPATH_W='cygpath -w' |
| 1636 | else |
| 1637 | CYGPATH_W=echo |
| 1638 | fi |
| 1639 | fi |
| 1640 | |
| 1641 | |
| 1642 | # Define the identity of the package. |
| 1643 | PACKAGE=oprofile |
| 1644 | VERSION=0.9.1 |
| 1645 | |
| 1646 | |
| 1647 | cat >>confdefs.h <<_ACEOF |
| 1648 | #define PACKAGE "$PACKAGE" |
| 1649 | _ACEOF |
| 1650 | |
| 1651 | |
| 1652 | cat >>confdefs.h <<_ACEOF |
| 1653 | #define VERSION "$VERSION" |
| 1654 | _ACEOF |
| 1655 | |
| 1656 | # Some tools Automake needs. |
| 1657 | |
| 1658 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 1659 | |
| 1660 | |
| 1661 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 1662 | |
| 1663 | |
| 1664 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 1665 | |
| 1666 | |
| 1667 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 1668 | |
| 1669 | |
| 1670 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 1671 | |
| 1672 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
| 1673 | |
| 1674 | # Installed binaries are usually stripped using `strip' when the user |
| 1675 | # run `make install-strip'. However `strip' might not be the right |
| 1676 | # tool to use in cross-compilation environments, therefore Automake |
| 1677 | # will honor the `STRIP' environment variable to overrule this program. |
| 1678 | if test "$cross_compiling" != no; then |
| 1679 | if test -n "$ac_tool_prefix"; then |
| 1680 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 1681 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 1682 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1683 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1684 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 1685 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1686 | else |
| 1687 | if test -n "$STRIP"; then |
| 1688 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 1689 | else |
| 1690 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1691 | for as_dir in $PATH |
| 1692 | do |
| 1693 | IFS=$as_save_IFS |
| 1694 | test -z "$as_dir" && as_dir=. |
| 1695 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1696 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1697 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 1698 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1699 | break 2 |
| 1700 | fi |
| 1701 | done |
| 1702 | done |
| 1703 | |
| 1704 | fi |
| 1705 | fi |
| 1706 | STRIP=$ac_cv_prog_STRIP |
| 1707 | if test -n "$STRIP"; then |
| 1708 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 1709 | echo "${ECHO_T}$STRIP" >&6 |
| 1710 | else |
| 1711 | echo "$as_me:$LINENO: result: no" >&5 |
| 1712 | echo "${ECHO_T}no" >&6 |
| 1713 | fi |
| 1714 | |
| 1715 | fi |
| 1716 | if test -z "$ac_cv_prog_STRIP"; then |
| 1717 | ac_ct_STRIP=$STRIP |
| 1718 | # Extract the first word of "strip", so it can be a program name with args. |
| 1719 | set dummy strip; ac_word=$2 |
| 1720 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1721 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1722 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 1723 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1724 | else |
| 1725 | if test -n "$ac_ct_STRIP"; then |
| 1726 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 1727 | else |
| 1728 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1729 | for as_dir in $PATH |
| 1730 | do |
| 1731 | IFS=$as_save_IFS |
| 1732 | test -z "$as_dir" && as_dir=. |
| 1733 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1734 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1735 | ac_cv_prog_ac_ct_STRIP="strip" |
| 1736 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1737 | break 2 |
| 1738 | fi |
| 1739 | done |
| 1740 | done |
| 1741 | |
| 1742 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
| 1743 | fi |
| 1744 | fi |
| 1745 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 1746 | if test -n "$ac_ct_STRIP"; then |
| 1747 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 1748 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
| 1749 | else |
| 1750 | echo "$as_me:$LINENO: result: no" >&5 |
| 1751 | echo "${ECHO_T}no" >&6 |
| 1752 | fi |
| 1753 | |
| 1754 | STRIP=$ac_ct_STRIP |
| 1755 | else |
| 1756 | STRIP="$ac_cv_prog_STRIP" |
| 1757 | fi |
| 1758 | |
| 1759 | fi |
| 1760 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
| 1761 | |
| 1762 | # We need awk for the "check" target. The system "awk" is bad on |
| 1763 | # some platforms. |
| 1764 | # Always define AMTAR for backward compatibility. |
| 1765 | |
| 1766 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
| 1767 | |
| 1768 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
| 1769 | |
| 1770 | |
| 1771 | |
| 1772 | |
| 1773 | |
| 1774 | ac_config_headers="$ac_config_headers config.h" |
| 1775 | |
| 1776 | |
| 1777 | if test -n "$ac_tool_prefix"; then |
| 1778 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 1779 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 1780 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1781 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1782 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 1783 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1784 | else |
| 1785 | if test -n "$RANLIB"; then |
| 1786 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 1787 | else |
| 1788 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1789 | for as_dir in $PATH |
| 1790 | do |
| 1791 | IFS=$as_save_IFS |
| 1792 | test -z "$as_dir" && as_dir=. |
| 1793 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1794 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1795 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 1796 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1797 | break 2 |
| 1798 | fi |
| 1799 | done |
| 1800 | done |
| 1801 | |
| 1802 | fi |
| 1803 | fi |
| 1804 | RANLIB=$ac_cv_prog_RANLIB |
| 1805 | if test -n "$RANLIB"; then |
| 1806 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 1807 | echo "${ECHO_T}$RANLIB" >&6 |
| 1808 | else |
| 1809 | echo "$as_me:$LINENO: result: no" >&5 |
| 1810 | echo "${ECHO_T}no" >&6 |
| 1811 | fi |
| 1812 | |
| 1813 | fi |
| 1814 | if test -z "$ac_cv_prog_RANLIB"; then |
| 1815 | ac_ct_RANLIB=$RANLIB |
| 1816 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 1817 | set dummy ranlib; ac_word=$2 |
| 1818 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1819 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1820 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 1821 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1822 | else |
| 1823 | if test -n "$ac_ct_RANLIB"; then |
| 1824 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 1825 | else |
| 1826 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1827 | for as_dir in $PATH |
| 1828 | do |
| 1829 | IFS=$as_save_IFS |
| 1830 | test -z "$as_dir" && as_dir=. |
| 1831 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1832 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1833 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 1834 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1835 | break 2 |
| 1836 | fi |
| 1837 | done |
| 1838 | done |
| 1839 | |
| 1840 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 1841 | fi |
| 1842 | fi |
| 1843 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 1844 | if test -n "$ac_ct_RANLIB"; then |
| 1845 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 1846 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 1847 | else |
| 1848 | echo "$as_me:$LINENO: result: no" >&5 |
| 1849 | echo "${ECHO_T}no" >&6 |
| 1850 | fi |
| 1851 | |
| 1852 | RANLIB=$ac_ct_RANLIB |
| 1853 | else |
| 1854 | RANLIB="$ac_cv_prog_RANLIB" |
| 1855 | fi |
| 1856 | |
| 1857 | |
| 1858 | DATE="`date '+%a %d %B %Y'`" |
| 1859 | |
| 1860 | |
| 1861 | OPROFILE_DIR=`pwd` |
| 1862 | |
| 1863 | |
| 1864 | # this needs to come before --with-gcc so we link with binutil's version |
| 1865 | # of libiberty ... sigh |
| 1866 | |
| 1867 | # Check whether --with-binutils or --without-binutils was given. |
| 1868 | if test "${with_binutils+set}" = set; then |
| 1869 | withval="$with_binutils" |
| 1870 | BINUTILSDIR=$withval |
| 1871 | fi; |
| 1872 | |
| 1873 | if test "$BINUTILSDIR" != ""; then |
| 1874 | LD="$BINUTILSDIR/ld" |
| 1875 | if test "$CFLAGS" = ""; then |
| 1876 | CFLAGS="-g -O2" |
| 1877 | fi |
| 1878 | if test "$CXXFLAGS" = ""; then |
| 1879 | CXXFLAGS="-g -O2" |
| 1880 | fi |
| 1881 | CFLAGS="$CFLAGS -I $BINUTILSDIR/include" |
| 1882 | CXXFLAGS="$CXXFLAGS -I $BINUTILSDIR/include" |
| 1883 | LDFLAGS="$LDFLAGS -L $BINUTILSDIR/lib -Xlinker -R -Xlinker $BINUTILSDIR/lib" |
| 1884 | fi |
| 1885 | |
| 1886 | |
| 1887 | # Check whether --with-gcc or --without-gcc was given. |
| 1888 | if test "${with_gcc+set}" = set; then |
| 1889 | withval="$with_gcc" |
| 1890 | GCCDIR=$withval |
| 1891 | fi; |
| 1892 | |
| 1893 | if test "$GCCDIR" != ""; then |
| 1894 | CC="$GCCDIR/bin/gcc" |
| 1895 | CXX="$GCCDIR/bin/g++" |
| 1896 | LDFLAGS="$LDFLAGS -L $GCCDIR/lib -Xlinker -R -Xlinker $GCCDIR/lib" |
| 1897 | fi |
| 1898 | |
| 1899 | ac_ext=c |
| 1900 | ac_cpp='$CPP $CPPFLAGS' |
| 1901 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1902 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1903 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1904 | if test -n "$ac_tool_prefix"; then |
| 1905 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1906 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1907 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1908 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1909 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1910 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1911 | else |
| 1912 | if test -n "$CC"; then |
| 1913 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1914 | else |
| 1915 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1916 | for as_dir in $PATH |
| 1917 | do |
| 1918 | IFS=$as_save_IFS |
| 1919 | test -z "$as_dir" && as_dir=. |
| 1920 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1921 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1922 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1923 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1924 | break 2 |
| 1925 | fi |
| 1926 | done |
| 1927 | done |
| 1928 | |
| 1929 | fi |
| 1930 | fi |
| 1931 | CC=$ac_cv_prog_CC |
| 1932 | if test -n "$CC"; then |
| 1933 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1934 | echo "${ECHO_T}$CC" >&6 |
| 1935 | else |
| 1936 | echo "$as_me:$LINENO: result: no" >&5 |
| 1937 | echo "${ECHO_T}no" >&6 |
| 1938 | fi |
| 1939 | |
| 1940 | fi |
| 1941 | if test -z "$ac_cv_prog_CC"; then |
| 1942 | ac_ct_CC=$CC |
| 1943 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1944 | set dummy gcc; ac_word=$2 |
| 1945 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1946 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1947 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1948 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1949 | else |
| 1950 | if test -n "$ac_ct_CC"; then |
| 1951 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1952 | else |
| 1953 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1954 | for as_dir in $PATH |
| 1955 | do |
| 1956 | IFS=$as_save_IFS |
| 1957 | test -z "$as_dir" && as_dir=. |
| 1958 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1959 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1960 | ac_cv_prog_ac_ct_CC="gcc" |
| 1961 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1962 | break 2 |
| 1963 | fi |
| 1964 | done |
| 1965 | done |
| 1966 | |
| 1967 | fi |
| 1968 | fi |
| 1969 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1970 | if test -n "$ac_ct_CC"; then |
| 1971 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1972 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1973 | else |
| 1974 | echo "$as_me:$LINENO: result: no" >&5 |
| 1975 | echo "${ECHO_T}no" >&6 |
| 1976 | fi |
| 1977 | |
| 1978 | CC=$ac_ct_CC |
| 1979 | else |
| 1980 | CC="$ac_cv_prog_CC" |
| 1981 | fi |
| 1982 | |
| 1983 | if test -z "$CC"; then |
| 1984 | if test -n "$ac_tool_prefix"; then |
| 1985 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1986 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1987 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1988 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1989 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1991 | else |
| 1992 | if test -n "$CC"; then |
| 1993 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1994 | else |
| 1995 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1996 | for as_dir in $PATH |
| 1997 | do |
| 1998 | IFS=$as_save_IFS |
| 1999 | test -z "$as_dir" && as_dir=. |
| 2000 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2001 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2002 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2003 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2004 | break 2 |
| 2005 | fi |
| 2006 | done |
| 2007 | done |
| 2008 | |
| 2009 | fi |
| 2010 | fi |
| 2011 | CC=$ac_cv_prog_CC |
| 2012 | if test -n "$CC"; then |
| 2013 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2014 | echo "${ECHO_T}$CC" >&6 |
| 2015 | else |
| 2016 | echo "$as_me:$LINENO: result: no" >&5 |
| 2017 | echo "${ECHO_T}no" >&6 |
| 2018 | fi |
| 2019 | |
| 2020 | fi |
| 2021 | if test -z "$ac_cv_prog_CC"; then |
| 2022 | ac_ct_CC=$CC |
| 2023 | # Extract the first word of "cc", so it can be a program name with args. |
| 2024 | set dummy cc; ac_word=$2 |
| 2025 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2026 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2027 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2028 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2029 | else |
| 2030 | if test -n "$ac_ct_CC"; then |
| 2031 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2032 | else |
| 2033 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2034 | for as_dir in $PATH |
| 2035 | do |
| 2036 | IFS=$as_save_IFS |
| 2037 | test -z "$as_dir" && as_dir=. |
| 2038 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2039 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2040 | ac_cv_prog_ac_ct_CC="cc" |
| 2041 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2042 | break 2 |
| 2043 | fi |
| 2044 | done |
| 2045 | done |
| 2046 | |
| 2047 | fi |
| 2048 | fi |
| 2049 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2050 | if test -n "$ac_ct_CC"; then |
| 2051 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2052 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2053 | else |
| 2054 | echo "$as_me:$LINENO: result: no" >&5 |
| 2055 | echo "${ECHO_T}no" >&6 |
| 2056 | fi |
| 2057 | |
| 2058 | CC=$ac_ct_CC |
| 2059 | else |
| 2060 | CC="$ac_cv_prog_CC" |
| 2061 | fi |
| 2062 | |
| 2063 | fi |
| 2064 | if test -z "$CC"; then |
| 2065 | # Extract the first word of "cc", so it can be a program name with args. |
| 2066 | set dummy cc; ac_word=$2 |
| 2067 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2068 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2069 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2070 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2071 | else |
| 2072 | if test -n "$CC"; then |
| 2073 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2074 | else |
| 2075 | ac_prog_rejected=no |
| 2076 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2077 | for as_dir in $PATH |
| 2078 | do |
| 2079 | IFS=$as_save_IFS |
| 2080 | test -z "$as_dir" && as_dir=. |
| 2081 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2082 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2083 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2084 | ac_prog_rejected=yes |
| 2085 | continue |
| 2086 | fi |
| 2087 | ac_cv_prog_CC="cc" |
| 2088 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2089 | break 2 |
| 2090 | fi |
| 2091 | done |
| 2092 | done |
| 2093 | |
| 2094 | if test $ac_prog_rejected = yes; then |
| 2095 | # We found a bogon in the path, so make sure we never use it. |
| 2096 | set dummy $ac_cv_prog_CC |
| 2097 | shift |
| 2098 | if test $# != 0; then |
| 2099 | # We chose a different compiler from the bogus one. |
| 2100 | # However, it has the same basename, so the bogon will be chosen |
| 2101 | # first if we set CC to just the basename; use the full file name. |
| 2102 | shift |
| 2103 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2104 | fi |
| 2105 | fi |
| 2106 | fi |
| 2107 | fi |
| 2108 | CC=$ac_cv_prog_CC |
| 2109 | if test -n "$CC"; then |
| 2110 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2111 | echo "${ECHO_T}$CC" >&6 |
| 2112 | else |
| 2113 | echo "$as_me:$LINENO: result: no" >&5 |
| 2114 | echo "${ECHO_T}no" >&6 |
| 2115 | fi |
| 2116 | |
| 2117 | fi |
| 2118 | if test -z "$CC"; then |
| 2119 | if test -n "$ac_tool_prefix"; then |
| 2120 | for ac_prog in cl |
| 2121 | do |
| 2122 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2123 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2124 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2125 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2126 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2127 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2128 | else |
| 2129 | if test -n "$CC"; then |
| 2130 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2131 | else |
| 2132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2133 | for as_dir in $PATH |
| 2134 | do |
| 2135 | IFS=$as_save_IFS |
| 2136 | test -z "$as_dir" && as_dir=. |
| 2137 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2138 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2139 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2140 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2141 | break 2 |
| 2142 | fi |
| 2143 | done |
| 2144 | done |
| 2145 | |
| 2146 | fi |
| 2147 | fi |
| 2148 | CC=$ac_cv_prog_CC |
| 2149 | if test -n "$CC"; then |
| 2150 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2151 | echo "${ECHO_T}$CC" >&6 |
| 2152 | else |
| 2153 | echo "$as_me:$LINENO: result: no" >&5 |
| 2154 | echo "${ECHO_T}no" >&6 |
| 2155 | fi |
| 2156 | |
| 2157 | test -n "$CC" && break |
| 2158 | done |
| 2159 | fi |
| 2160 | if test -z "$CC"; then |
| 2161 | ac_ct_CC=$CC |
| 2162 | for ac_prog in cl |
| 2163 | do |
| 2164 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2165 | set dummy $ac_prog; ac_word=$2 |
| 2166 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2167 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2168 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2169 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2170 | else |
| 2171 | if test -n "$ac_ct_CC"; then |
| 2172 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2173 | else |
| 2174 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2175 | for as_dir in $PATH |
| 2176 | do |
| 2177 | IFS=$as_save_IFS |
| 2178 | test -z "$as_dir" && as_dir=. |
| 2179 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2180 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2181 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2182 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2183 | break 2 |
| 2184 | fi |
| 2185 | done |
| 2186 | done |
| 2187 | |
| 2188 | fi |
| 2189 | fi |
| 2190 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2191 | if test -n "$ac_ct_CC"; then |
| 2192 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2193 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2194 | else |
| 2195 | echo "$as_me:$LINENO: result: no" >&5 |
| 2196 | echo "${ECHO_T}no" >&6 |
| 2197 | fi |
| 2198 | |
| 2199 | test -n "$ac_ct_CC" && break |
| 2200 | done |
| 2201 | |
| 2202 | CC=$ac_ct_CC |
| 2203 | fi |
| 2204 | |
| 2205 | fi |
| 2206 | |
| 2207 | |
| 2208 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2209 | See \`config.log' for more details." >&5 |
| 2210 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2211 | See \`config.log' for more details." >&2;} |
| 2212 | { (exit 1); exit 1; }; } |
| 2213 | |
| 2214 | # Provide some information about the compiler. |
| 2215 | echo "$as_me:$LINENO:" \ |
| 2216 | "checking for C compiler version" >&5 |
| 2217 | ac_compiler=`set X $ac_compile; echo $2` |
| 2218 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 2219 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 2220 | ac_status=$? |
| 2221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2222 | (exit $ac_status); } |
| 2223 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 2224 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 2225 | ac_status=$? |
| 2226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2227 | (exit $ac_status); } |
| 2228 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2229 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2230 | ac_status=$? |
| 2231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2232 | (exit $ac_status); } |
| 2233 | |
| 2234 | cat >conftest.$ac_ext <<_ACEOF |
| 2235 | /* confdefs.h. */ |
| 2236 | _ACEOF |
| 2237 | cat confdefs.h >>conftest.$ac_ext |
| 2238 | cat >>conftest.$ac_ext <<_ACEOF |
| 2239 | /* end confdefs.h. */ |
| 2240 | |
| 2241 | int |
| 2242 | main () |
| 2243 | { |
| 2244 | |
| 2245 | ; |
| 2246 | return 0; |
| 2247 | } |
| 2248 | _ACEOF |
| 2249 | ac_clean_files_save=$ac_clean_files |
| 2250 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
| 2251 | # Try to create an executable without -o first, disregard a.out. |
| 2252 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2253 | # of exeext. |
| 2254 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2255 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
| 2256 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2257 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 2258 | (eval $ac_link_default) 2>&5 |
| 2259 | ac_status=$? |
| 2260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2261 | (exit $ac_status); }; then |
| 2262 | # Find the output, starting from the most likely. This scheme is |
| 2263 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 2264 | # resort. |
| 2265 | |
| 2266 | # Be careful to initialize this variable, since it used to be cached. |
| 2267 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 2268 | ac_cv_exeext= |
| 2269 | # b.out is created by i960 compilers. |
| 2270 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 2271 | do |
| 2272 | test -f "$ac_file" || continue |
| 2273 | case $ac_file in |
| 2274 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
| 2275 | ;; |
| 2276 | conftest.$ac_ext ) |
| 2277 | # This is the source file. |
| 2278 | ;; |
| 2279 | [ab].out ) |
| 2280 | # We found the default executable, but exeext='' is most |
| 2281 | # certainly right. |
| 2282 | break;; |
| 2283 | *.* ) |
| 2284 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2285 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 2286 | # but it would be cool to find out if it's true. Does anybody |
| 2287 | # maintain Libtool? --akim. |
| 2288 | export ac_cv_exeext |
| 2289 | break;; |
| 2290 | * ) |
| 2291 | break;; |
| 2292 | esac |
| 2293 | done |
| 2294 | else |
| 2295 | echo "$as_me: failed program was:" >&5 |
| 2296 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2297 | |
| 2298 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2299 | See \`config.log' for more details." >&5 |
| 2300 | echo "$as_me: error: C compiler cannot create executables |
| 2301 | See \`config.log' for more details." >&2;} |
| 2302 | { (exit 77); exit 77; }; } |
| 2303 | fi |
| 2304 | |
| 2305 | ac_exeext=$ac_cv_exeext |
| 2306 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2307 | echo "${ECHO_T}$ac_file" >&6 |
| 2308 | |
| 2309 | # Check the compiler produces executables we can run. If not, either |
| 2310 | # the compiler is broken, or we cross compile. |
| 2311 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2312 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 2313 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2314 | # If not cross compiling, check that we can run a simple program. |
| 2315 | if test "$cross_compiling" != yes; then |
| 2316 | if { ac_try='./$ac_file' |
| 2317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2318 | (eval $ac_try) 2>&5 |
| 2319 | ac_status=$? |
| 2320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2321 | (exit $ac_status); }; }; then |
| 2322 | cross_compiling=no |
| 2323 | else |
| 2324 | if test "$cross_compiling" = maybe; then |
| 2325 | cross_compiling=yes |
| 2326 | else |
| 2327 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2328 | If you meant to cross compile, use \`--host'. |
| 2329 | See \`config.log' for more details." >&5 |
| 2330 | echo "$as_me: error: cannot run C compiled programs. |
| 2331 | If you meant to cross compile, use \`--host'. |
| 2332 | See \`config.log' for more details." >&2;} |
| 2333 | { (exit 1); exit 1; }; } |
| 2334 | fi |
| 2335 | fi |
| 2336 | fi |
| 2337 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2338 | echo "${ECHO_T}yes" >&6 |
| 2339 | |
| 2340 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
| 2341 | ac_clean_files=$ac_clean_files_save |
| 2342 | # Check the compiler produces executables we can run. If not, either |
| 2343 | # the compiler is broken, or we cross compile. |
| 2344 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2345 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 2346 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2347 | echo "${ECHO_T}$cross_compiling" >&6 |
| 2348 | |
| 2349 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2350 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 2351 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2352 | (eval $ac_link) 2>&5 |
| 2353 | ac_status=$? |
| 2354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2355 | (exit $ac_status); }; then |
| 2356 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2357 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2358 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2359 | # `rm'. |
| 2360 | for ac_file in conftest.exe conftest conftest.*; do |
| 2361 | test -f "$ac_file" || continue |
| 2362 | case $ac_file in |
| 2363 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
| 2364 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2365 | export ac_cv_exeext |
| 2366 | break;; |
| 2367 | * ) break;; |
| 2368 | esac |
| 2369 | done |
| 2370 | else |
| 2371 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2372 | See \`config.log' for more details." >&5 |
| 2373 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2374 | See \`config.log' for more details." >&2;} |
| 2375 | { (exit 1); exit 1; }; } |
| 2376 | fi |
| 2377 | |
| 2378 | rm -f conftest$ac_cv_exeext |
| 2379 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2380 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2381 | |
| 2382 | rm -f conftest.$ac_ext |
| 2383 | EXEEXT=$ac_cv_exeext |
| 2384 | ac_exeext=$EXEEXT |
| 2385 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2386 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 2387 | if test "${ac_cv_objext+set}" = set; then |
| 2388 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2389 | else |
| 2390 | cat >conftest.$ac_ext <<_ACEOF |
| 2391 | /* confdefs.h. */ |
| 2392 | _ACEOF |
| 2393 | cat confdefs.h >>conftest.$ac_ext |
| 2394 | cat >>conftest.$ac_ext <<_ACEOF |
| 2395 | /* end confdefs.h. */ |
| 2396 | |
| 2397 | int |
| 2398 | main () |
| 2399 | { |
| 2400 | |
| 2401 | ; |
| 2402 | return 0; |
| 2403 | } |
| 2404 | _ACEOF |
| 2405 | rm -f conftest.o conftest.obj |
| 2406 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2407 | (eval $ac_compile) 2>&5 |
| 2408 | ac_status=$? |
| 2409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2410 | (exit $ac_status); }; then |
| 2411 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2412 | case $ac_file in |
| 2413 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
| 2414 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2415 | break;; |
| 2416 | esac |
| 2417 | done |
| 2418 | else |
| 2419 | echo "$as_me: failed program was:" >&5 |
| 2420 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2421 | |
| 2422 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2423 | See \`config.log' for more details." >&5 |
| 2424 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2425 | See \`config.log' for more details." >&2;} |
| 2426 | { (exit 1); exit 1; }; } |
| 2427 | fi |
| 2428 | |
| 2429 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2430 | fi |
| 2431 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2432 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2433 | OBJEXT=$ac_cv_objext |
| 2434 | ac_objext=$OBJEXT |
| 2435 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2436 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2437 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2438 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2439 | else |
| 2440 | cat >conftest.$ac_ext <<_ACEOF |
| 2441 | /* confdefs.h. */ |
| 2442 | _ACEOF |
| 2443 | cat confdefs.h >>conftest.$ac_ext |
| 2444 | cat >>conftest.$ac_ext <<_ACEOF |
| 2445 | /* end confdefs.h. */ |
| 2446 | |
| 2447 | int |
| 2448 | main () |
| 2449 | { |
| 2450 | #ifndef __GNUC__ |
| 2451 | choke me |
| 2452 | #endif |
| 2453 | |
| 2454 | ; |
| 2455 | return 0; |
| 2456 | } |
| 2457 | _ACEOF |
| 2458 | rm -f conftest.$ac_objext |
| 2459 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2460 | (eval $ac_compile) 2>conftest.er1 |
| 2461 | ac_status=$? |
| 2462 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2463 | rm -f conftest.er1 |
| 2464 | cat conftest.err >&5 |
| 2465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2466 | (exit $ac_status); } && |
| 2467 | { ac_try='test -z "$ac_c_werror_flag" |
| 2468 | || test ! -s conftest.err' |
| 2469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2470 | (eval $ac_try) 2>&5 |
| 2471 | ac_status=$? |
| 2472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2473 | (exit $ac_status); }; } && |
| 2474 | { ac_try='test -s conftest.$ac_objext' |
| 2475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2476 | (eval $ac_try) 2>&5 |
| 2477 | ac_status=$? |
| 2478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2479 | (exit $ac_status); }; }; then |
| 2480 | ac_compiler_gnu=yes |
| 2481 | else |
| 2482 | echo "$as_me: failed program was:" >&5 |
| 2483 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2484 | |
| 2485 | ac_compiler_gnu=no |
| 2486 | fi |
| 2487 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2488 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2489 | |
| 2490 | fi |
| 2491 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2492 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2493 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2494 | ac_test_CFLAGS=${CFLAGS+set} |
| 2495 | ac_save_CFLAGS=$CFLAGS |
| 2496 | CFLAGS="-g" |
| 2497 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2498 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2499 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2500 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2501 | else |
| 2502 | cat >conftest.$ac_ext <<_ACEOF |
| 2503 | /* confdefs.h. */ |
| 2504 | _ACEOF |
| 2505 | cat confdefs.h >>conftest.$ac_ext |
| 2506 | cat >>conftest.$ac_ext <<_ACEOF |
| 2507 | /* end confdefs.h. */ |
| 2508 | |
| 2509 | int |
| 2510 | main () |
| 2511 | { |
| 2512 | |
| 2513 | ; |
| 2514 | return 0; |
| 2515 | } |
| 2516 | _ACEOF |
| 2517 | rm -f conftest.$ac_objext |
| 2518 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2519 | (eval $ac_compile) 2>conftest.er1 |
| 2520 | ac_status=$? |
| 2521 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2522 | rm -f conftest.er1 |
| 2523 | cat conftest.err >&5 |
| 2524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2525 | (exit $ac_status); } && |
| 2526 | { ac_try='test -z "$ac_c_werror_flag" |
| 2527 | || test ! -s conftest.err' |
| 2528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2529 | (eval $ac_try) 2>&5 |
| 2530 | ac_status=$? |
| 2531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2532 | (exit $ac_status); }; } && |
| 2533 | { ac_try='test -s conftest.$ac_objext' |
| 2534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2535 | (eval $ac_try) 2>&5 |
| 2536 | ac_status=$? |
| 2537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2538 | (exit $ac_status); }; }; then |
| 2539 | ac_cv_prog_cc_g=yes |
| 2540 | else |
| 2541 | echo "$as_me: failed program was:" >&5 |
| 2542 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2543 | |
| 2544 | ac_cv_prog_cc_g=no |
| 2545 | fi |
| 2546 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2547 | fi |
| 2548 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2549 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
| 2550 | if test "$ac_test_CFLAGS" = set; then |
| 2551 | CFLAGS=$ac_save_CFLAGS |
| 2552 | elif test $ac_cv_prog_cc_g = yes; then |
| 2553 | if test "$GCC" = yes; then |
| 2554 | CFLAGS="-g -O2" |
| 2555 | else |
| 2556 | CFLAGS="-g" |
| 2557 | fi |
| 2558 | else |
| 2559 | if test "$GCC" = yes; then |
| 2560 | CFLAGS="-O2" |
| 2561 | else |
| 2562 | CFLAGS= |
| 2563 | fi |
| 2564 | fi |
| 2565 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2566 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2567 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2568 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2569 | else |
| 2570 | ac_cv_prog_cc_stdc=no |
| 2571 | ac_save_CC=$CC |
| 2572 | cat >conftest.$ac_ext <<_ACEOF |
| 2573 | /* confdefs.h. */ |
| 2574 | _ACEOF |
| 2575 | cat confdefs.h >>conftest.$ac_ext |
| 2576 | cat >>conftest.$ac_ext <<_ACEOF |
| 2577 | /* end confdefs.h. */ |
| 2578 | #include <stdarg.h> |
| 2579 | #include <stdio.h> |
| 2580 | #include <sys/types.h> |
| 2581 | #include <sys/stat.h> |
| 2582 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2583 | struct buf { int x; }; |
| 2584 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2585 | static char *e (p, i) |
| 2586 | char **p; |
| 2587 | int i; |
| 2588 | { |
| 2589 | return p[i]; |
| 2590 | } |
| 2591 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2592 | { |
| 2593 | char *s; |
| 2594 | va_list v; |
| 2595 | va_start (v,p); |
| 2596 | s = g (p, va_arg (v,int)); |
| 2597 | va_end (v); |
| 2598 | return s; |
| 2599 | } |
| 2600 | |
| 2601 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2602 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2603 | These don't provoke an error unfortunately, instead are silently treated |
| 2604 | as 'x'. The following induces an error, until -std1 is added to get |
| 2605 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2606 | array size at least. It's necessary to write '\x00'==0 to get something |
| 2607 | that's true only with -std1. */ |
| 2608 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2609 | |
| 2610 | int test (int i, double x); |
| 2611 | struct s1 {int (*f) (int a);}; |
| 2612 | struct s2 {int (*f) (double a);}; |
| 2613 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2614 | int argc; |
| 2615 | char **argv; |
| 2616 | int |
| 2617 | main () |
| 2618 | { |
| 2619 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2620 | ; |
| 2621 | return 0; |
| 2622 | } |
| 2623 | _ACEOF |
| 2624 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2625 | # breaks some systems' header files. |
| 2626 | # AIX -qlanglvl=ansi |
| 2627 | # Ultrix and OSF/1 -std1 |
| 2628 | # HP-UX 10.20 and later -Ae |
| 2629 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2630 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2631 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2632 | do |
| 2633 | CC="$ac_save_CC $ac_arg" |
| 2634 | rm -f conftest.$ac_objext |
| 2635 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2636 | (eval $ac_compile) 2>conftest.er1 |
| 2637 | ac_status=$? |
| 2638 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2639 | rm -f conftest.er1 |
| 2640 | cat conftest.err >&5 |
| 2641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2642 | (exit $ac_status); } && |
| 2643 | { ac_try='test -z "$ac_c_werror_flag" |
| 2644 | || test ! -s conftest.err' |
| 2645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2646 | (eval $ac_try) 2>&5 |
| 2647 | ac_status=$? |
| 2648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2649 | (exit $ac_status); }; } && |
| 2650 | { ac_try='test -s conftest.$ac_objext' |
| 2651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2652 | (eval $ac_try) 2>&5 |
| 2653 | ac_status=$? |
| 2654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2655 | (exit $ac_status); }; }; then |
| 2656 | ac_cv_prog_cc_stdc=$ac_arg |
| 2657 | break |
| 2658 | else |
| 2659 | echo "$as_me: failed program was:" >&5 |
| 2660 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2661 | |
| 2662 | fi |
| 2663 | rm -f conftest.err conftest.$ac_objext |
| 2664 | done |
| 2665 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2666 | CC=$ac_save_CC |
| 2667 | |
| 2668 | fi |
| 2669 | |
| 2670 | case "x$ac_cv_prog_cc_stdc" in |
| 2671 | x|xno) |
| 2672 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2673 | echo "${ECHO_T}none needed" >&6 ;; |
| 2674 | *) |
| 2675 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2676 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2677 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2678 | esac |
| 2679 | |
| 2680 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2681 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2682 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2683 | # the declaration of exit, since it's the most demanding environment. |
| 2684 | cat >conftest.$ac_ext <<_ACEOF |
| 2685 | #ifndef __cplusplus |
| 2686 | choke me |
| 2687 | #endif |
| 2688 | _ACEOF |
| 2689 | rm -f conftest.$ac_objext |
| 2690 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2691 | (eval $ac_compile) 2>conftest.er1 |
| 2692 | ac_status=$? |
| 2693 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2694 | rm -f conftest.er1 |
| 2695 | cat conftest.err >&5 |
| 2696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2697 | (exit $ac_status); } && |
| 2698 | { ac_try='test -z "$ac_c_werror_flag" |
| 2699 | || test ! -s conftest.err' |
| 2700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2701 | (eval $ac_try) 2>&5 |
| 2702 | ac_status=$? |
| 2703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2704 | (exit $ac_status); }; } && |
| 2705 | { ac_try='test -s conftest.$ac_objext' |
| 2706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2707 | (eval $ac_try) 2>&5 |
| 2708 | ac_status=$? |
| 2709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2710 | (exit $ac_status); }; }; then |
| 2711 | for ac_declaration in \ |
| 2712 | '' \ |
| 2713 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2714 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2715 | 'extern "C" void exit (int) throw ();' \ |
| 2716 | 'extern "C" void exit (int);' \ |
| 2717 | 'void exit (int);' |
| 2718 | do |
| 2719 | cat >conftest.$ac_ext <<_ACEOF |
| 2720 | /* confdefs.h. */ |
| 2721 | _ACEOF |
| 2722 | cat confdefs.h >>conftest.$ac_ext |
| 2723 | cat >>conftest.$ac_ext <<_ACEOF |
| 2724 | /* end confdefs.h. */ |
| 2725 | $ac_declaration |
| 2726 | #include <stdlib.h> |
| 2727 | int |
| 2728 | main () |
| 2729 | { |
| 2730 | exit (42); |
| 2731 | ; |
| 2732 | return 0; |
| 2733 | } |
| 2734 | _ACEOF |
| 2735 | rm -f conftest.$ac_objext |
| 2736 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2737 | (eval $ac_compile) 2>conftest.er1 |
| 2738 | ac_status=$? |
| 2739 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2740 | rm -f conftest.er1 |
| 2741 | cat conftest.err >&5 |
| 2742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2743 | (exit $ac_status); } && |
| 2744 | { ac_try='test -z "$ac_c_werror_flag" |
| 2745 | || test ! -s conftest.err' |
| 2746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2747 | (eval $ac_try) 2>&5 |
| 2748 | ac_status=$? |
| 2749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2750 | (exit $ac_status); }; } && |
| 2751 | { ac_try='test -s conftest.$ac_objext' |
| 2752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2753 | (eval $ac_try) 2>&5 |
| 2754 | ac_status=$? |
| 2755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2756 | (exit $ac_status); }; }; then |
| 2757 | : |
| 2758 | else |
| 2759 | echo "$as_me: failed program was:" >&5 |
| 2760 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2761 | |
| 2762 | continue |
| 2763 | fi |
| 2764 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2765 | cat >conftest.$ac_ext <<_ACEOF |
| 2766 | /* confdefs.h. */ |
| 2767 | _ACEOF |
| 2768 | cat confdefs.h >>conftest.$ac_ext |
| 2769 | cat >>conftest.$ac_ext <<_ACEOF |
| 2770 | /* end confdefs.h. */ |
| 2771 | $ac_declaration |
| 2772 | int |
| 2773 | main () |
| 2774 | { |
| 2775 | exit (42); |
| 2776 | ; |
| 2777 | return 0; |
| 2778 | } |
| 2779 | _ACEOF |
| 2780 | rm -f conftest.$ac_objext |
| 2781 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2782 | (eval $ac_compile) 2>conftest.er1 |
| 2783 | ac_status=$? |
| 2784 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2785 | rm -f conftest.er1 |
| 2786 | cat conftest.err >&5 |
| 2787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2788 | (exit $ac_status); } && |
| 2789 | { ac_try='test -z "$ac_c_werror_flag" |
| 2790 | || test ! -s conftest.err' |
| 2791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2792 | (eval $ac_try) 2>&5 |
| 2793 | ac_status=$? |
| 2794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2795 | (exit $ac_status); }; } && |
| 2796 | { ac_try='test -s conftest.$ac_objext' |
| 2797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2798 | (eval $ac_try) 2>&5 |
| 2799 | ac_status=$? |
| 2800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2801 | (exit $ac_status); }; }; then |
| 2802 | break |
| 2803 | else |
| 2804 | echo "$as_me: failed program was:" >&5 |
| 2805 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2806 | |
| 2807 | fi |
| 2808 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2809 | done |
| 2810 | rm -f conftest* |
| 2811 | if test -n "$ac_declaration"; then |
| 2812 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2813 | echo $ac_declaration >>confdefs.h |
| 2814 | echo '#endif' >>confdefs.h |
| 2815 | fi |
| 2816 | |
| 2817 | else |
| 2818 | echo "$as_me: failed program was:" >&5 |
| 2819 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2820 | |
| 2821 | fi |
| 2822 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2823 | ac_ext=c |
| 2824 | ac_cpp='$CPP $CPPFLAGS' |
| 2825 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2826 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2827 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2828 | DEPDIR="${am__leading_dot}deps" |
| 2829 | |
| 2830 | ac_config_commands="$ac_config_commands depfiles" |
| 2831 | |
| 2832 | |
| 2833 | am_make=${MAKE-make} |
| 2834 | cat > confinc << 'END' |
| 2835 | am__doit: |
| 2836 | @echo done |
| 2837 | .PHONY: am__doit |
| 2838 | END |
| 2839 | # If we don't find an include directive, just comment out the code. |
| 2840 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
| 2841 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
| 2842 | am__include="#" |
| 2843 | am__quote= |
| 2844 | _am_result=none |
| 2845 | # First try GNU make style include. |
| 2846 | echo "include confinc" > confmf |
| 2847 | # We grep out `Entering directory' and `Leaving directory' |
| 2848 | # messages which can occur if `w' ends up in MAKEFLAGS. |
| 2849 | # In particular we don't look at `^make:' because GNU make might |
| 2850 | # be invoked under some other name (usually "gmake"), in which |
| 2851 | # case it prints its new name instead of `make'. |
| 2852 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
| 2853 | am__include=include |
| 2854 | am__quote= |
| 2855 | _am_result=GNU |
| 2856 | fi |
| 2857 | # Now try BSD make style include. |
| 2858 | if test "$am__include" = "#"; then |
| 2859 | echo '.include "confinc"' > confmf |
| 2860 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
| 2861 | am__include=.include |
| 2862 | am__quote="\"" |
| 2863 | _am_result=BSD |
| 2864 | fi |
| 2865 | fi |
| 2866 | |
| 2867 | |
| 2868 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
| 2869 | echo "${ECHO_T}$_am_result" >&6 |
| 2870 | rm -f confinc confmf |
| 2871 | |
| 2872 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
| 2873 | if test "${enable_dependency_tracking+set}" = set; then |
| 2874 | enableval="$enable_dependency_tracking" |
| 2875 | |
| 2876 | fi; |
| 2877 | if test "x$enable_dependency_tracking" != xno; then |
| 2878 | am_depcomp="$ac_aux_dir/depcomp" |
| 2879 | AMDEPBACKSLASH='\' |
| 2880 | fi |
| 2881 | |
| 2882 | |
| 2883 | if test "x$enable_dependency_tracking" != xno; then |
| 2884 | AMDEP_TRUE= |
| 2885 | AMDEP_FALSE='#' |
| 2886 | else |
| 2887 | AMDEP_TRUE='#' |
| 2888 | AMDEP_FALSE= |
| 2889 | fi |
| 2890 | |
| 2891 | |
| 2892 | |
| 2893 | |
| 2894 | depcc="$CC" am_compiler_list= |
| 2895 | |
| 2896 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| 2897 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
| 2898 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
| 2899 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2900 | else |
| 2901 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 2902 | # We make a subdir and do the tests there. Otherwise we can end up |
| 2903 | # making bogus files that we don't know about and never remove. For |
| 2904 | # instance it was reported that on HP-UX the gcc test will end up |
| 2905 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 2906 | # in D'. |
| 2907 | mkdir conftest.dir |
| 2908 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 2909 | # using a relative directory. |
| 2910 | cp "$am_depcomp" conftest.dir |
| 2911 | cd conftest.dir |
| 2912 | # We will build objects and dependencies in a subdirectory because |
| 2913 | # it helps to detect inapplicable dependency modes. For instance |
| 2914 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 2915 | # side effect of compilation, but ICC will put the dependencies in |
| 2916 | # the current directory while Tru64 will put them in the object |
| 2917 | # directory. |
| 2918 | mkdir sub |
| 2919 | |
| 2920 | am_cv_CC_dependencies_compiler_type=none |
| 2921 | if test "$am_compiler_list" = ""; then |
| 2922 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 2923 | fi |
| 2924 | for depmode in $am_compiler_list; do |
| 2925 | # Setup a source with many dependencies, because some compilers |
| 2926 | # like to wrap large dependency lists on column 80 (with \), and |
| 2927 | # we should not choose a depcomp mode which is confused by this. |
| 2928 | # |
| 2929 | # We need to recreate these files for each test, as the compiler may |
| 2930 | # overwrite some of them when testing with obscure command lines. |
| 2931 | # This happens at least with the AIX C compiler. |
| 2932 | : > sub/conftest.c |
| 2933 | for i in 1 2 3 4 5 6; do |
| 2934 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 2935 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 2936 | # Solaris 8's {/usr,}/bin/sh. |
| 2937 | touch sub/conftst$i.h |
| 2938 | done |
| 2939 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 2940 | |
| 2941 | case $depmode in |
| 2942 | nosideeffect) |
| 2943 | # after this tag, mechanisms are not by side-effect, so they'll |
| 2944 | # only be used when explicitly requested |
| 2945 | if test "x$enable_dependency_tracking" = xyes; then |
| 2946 | continue |
| 2947 | else |
| 2948 | break |
| 2949 | fi |
| 2950 | ;; |
| 2951 | none) break ;; |
| 2952 | esac |
| 2953 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 2954 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 2955 | # handle `-M -o', and we need to detect this. |
| 2956 | if depmode=$depmode \ |
| 2957 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
| 2958 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 2959 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
| 2960 | >/dev/null 2>conftest.err && |
| 2961 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 2962 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
| 2963 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 2964 | # icc doesn't choke on unknown options, it will just issue warnings |
| 2965 | # or remarks (even with -Werror). So we grep stderr for any message |
| 2966 | # that says an option was ignored or not supported. |
| 2967 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 2968 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 2969 | # The diagnosis changed in icc 8.0: |
| 2970 | # icc: Command line remark: option '-MP' not supported |
| 2971 | if (grep 'ignoring option' conftest.err || |
| 2972 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 2973 | am_cv_CC_dependencies_compiler_type=$depmode |
| 2974 | break |
| 2975 | fi |
| 2976 | fi |
| 2977 | done |
| 2978 | |
| 2979 | cd .. |
| 2980 | rm -rf conftest.dir |
| 2981 | else |
| 2982 | am_cv_CC_dependencies_compiler_type=none |
| 2983 | fi |
| 2984 | |
| 2985 | fi |
| 2986 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 2987 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
| 2988 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 2989 | |
| 2990 | |
| 2991 | |
| 2992 | if |
| 2993 | test "x$enable_dependency_tracking" != xno \ |
| 2994 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 2995 | am__fastdepCC_TRUE= |
| 2996 | am__fastdepCC_FALSE='#' |
| 2997 | else |
| 2998 | am__fastdepCC_TRUE='#' |
| 2999 | am__fastdepCC_FALSE= |
| 3000 | fi |
| 3001 | |
| 3002 | |
| 3003 | ac_ext=c |
| 3004 | ac_cpp='$CPP $CPPFLAGS' |
| 3005 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3006 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3007 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3008 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3009 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
| 3010 | # On Suns, sometimes $CPP names a directory. |
| 3011 | if test -n "$CPP" && test -d "$CPP"; then |
| 3012 | CPP= |
| 3013 | fi |
| 3014 | if test -z "$CPP"; then |
| 3015 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3016 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3017 | else |
| 3018 | # Double quotes because CPP needs to be expanded |
| 3019 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3020 | do |
| 3021 | ac_preproc_ok=false |
| 3022 | for ac_c_preproc_warn_flag in '' yes |
| 3023 | do |
| 3024 | # Use a header file that comes with gcc, so configuring glibc |
| 3025 | # with a fresh cross-compiler works. |
| 3026 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3027 | # <limits.h> exists even on freestanding compilers. |
| 3028 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3029 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3030 | cat >conftest.$ac_ext <<_ACEOF |
| 3031 | /* confdefs.h. */ |
| 3032 | _ACEOF |
| 3033 | cat confdefs.h >>conftest.$ac_ext |
| 3034 | cat >>conftest.$ac_ext <<_ACEOF |
| 3035 | /* end confdefs.h. */ |
| 3036 | #ifdef __STDC__ |
| 3037 | # include <limits.h> |
| 3038 | #else |
| 3039 | # include <assert.h> |
| 3040 | #endif |
| 3041 | Syntax error |
| 3042 | _ACEOF |
| 3043 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3044 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3045 | ac_status=$? |
| 3046 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3047 | rm -f conftest.er1 |
| 3048 | cat conftest.err >&5 |
| 3049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3050 | (exit $ac_status); } >/dev/null; then |
| 3051 | if test -s conftest.err; then |
| 3052 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3053 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3054 | else |
| 3055 | ac_cpp_err= |
| 3056 | fi |
| 3057 | else |
| 3058 | ac_cpp_err=yes |
| 3059 | fi |
| 3060 | if test -z "$ac_cpp_err"; then |
| 3061 | : |
| 3062 | else |
| 3063 | echo "$as_me: failed program was:" >&5 |
| 3064 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3065 | |
| 3066 | # Broken: fails on valid input. |
| 3067 | continue |
| 3068 | fi |
| 3069 | rm -f conftest.err conftest.$ac_ext |
| 3070 | |
| 3071 | # OK, works on sane cases. Now check whether non-existent headers |
| 3072 | # can be detected and how. |
| 3073 | cat >conftest.$ac_ext <<_ACEOF |
| 3074 | /* confdefs.h. */ |
| 3075 | _ACEOF |
| 3076 | cat confdefs.h >>conftest.$ac_ext |
| 3077 | cat >>conftest.$ac_ext <<_ACEOF |
| 3078 | /* end confdefs.h. */ |
| 3079 | #include <ac_nonexistent.h> |
| 3080 | _ACEOF |
| 3081 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3082 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3083 | ac_status=$? |
| 3084 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3085 | rm -f conftest.er1 |
| 3086 | cat conftest.err >&5 |
| 3087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3088 | (exit $ac_status); } >/dev/null; then |
| 3089 | if test -s conftest.err; then |
| 3090 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3091 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3092 | else |
| 3093 | ac_cpp_err= |
| 3094 | fi |
| 3095 | else |
| 3096 | ac_cpp_err=yes |
| 3097 | fi |
| 3098 | if test -z "$ac_cpp_err"; then |
| 3099 | # Broken: success on invalid input. |
| 3100 | continue |
| 3101 | else |
| 3102 | echo "$as_me: failed program was:" >&5 |
| 3103 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3104 | |
| 3105 | # Passes both tests. |
| 3106 | ac_preproc_ok=: |
| 3107 | break |
| 3108 | fi |
| 3109 | rm -f conftest.err conftest.$ac_ext |
| 3110 | |
| 3111 | done |
| 3112 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3113 | rm -f conftest.err conftest.$ac_ext |
| 3114 | if $ac_preproc_ok; then |
| 3115 | break |
| 3116 | fi |
| 3117 | |
| 3118 | done |
| 3119 | ac_cv_prog_CPP=$CPP |
| 3120 | |
| 3121 | fi |
| 3122 | CPP=$ac_cv_prog_CPP |
| 3123 | else |
| 3124 | ac_cv_prog_CPP=$CPP |
| 3125 | fi |
| 3126 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3127 | echo "${ECHO_T}$CPP" >&6 |
| 3128 | ac_preproc_ok=false |
| 3129 | for ac_c_preproc_warn_flag in '' yes |
| 3130 | do |
| 3131 | # Use a header file that comes with gcc, so configuring glibc |
| 3132 | # with a fresh cross-compiler works. |
| 3133 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3134 | # <limits.h> exists even on freestanding compilers. |
| 3135 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3136 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3137 | cat >conftest.$ac_ext <<_ACEOF |
| 3138 | /* confdefs.h. */ |
| 3139 | _ACEOF |
| 3140 | cat confdefs.h >>conftest.$ac_ext |
| 3141 | cat >>conftest.$ac_ext <<_ACEOF |
| 3142 | /* end confdefs.h. */ |
| 3143 | #ifdef __STDC__ |
| 3144 | # include <limits.h> |
| 3145 | #else |
| 3146 | # include <assert.h> |
| 3147 | #endif |
| 3148 | Syntax error |
| 3149 | _ACEOF |
| 3150 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3151 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3152 | ac_status=$? |
| 3153 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3154 | rm -f conftest.er1 |
| 3155 | cat conftest.err >&5 |
| 3156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3157 | (exit $ac_status); } >/dev/null; then |
| 3158 | if test -s conftest.err; then |
| 3159 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3160 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3161 | else |
| 3162 | ac_cpp_err= |
| 3163 | fi |
| 3164 | else |
| 3165 | ac_cpp_err=yes |
| 3166 | fi |
| 3167 | if test -z "$ac_cpp_err"; then |
| 3168 | : |
| 3169 | else |
| 3170 | echo "$as_me: failed program was:" >&5 |
| 3171 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3172 | |
| 3173 | # Broken: fails on valid input. |
| 3174 | continue |
| 3175 | fi |
| 3176 | rm -f conftest.err conftest.$ac_ext |
| 3177 | |
| 3178 | # OK, works on sane cases. Now check whether non-existent headers |
| 3179 | # can be detected and how. |
| 3180 | cat >conftest.$ac_ext <<_ACEOF |
| 3181 | /* confdefs.h. */ |
| 3182 | _ACEOF |
| 3183 | cat confdefs.h >>conftest.$ac_ext |
| 3184 | cat >>conftest.$ac_ext <<_ACEOF |
| 3185 | /* end confdefs.h. */ |
| 3186 | #include <ac_nonexistent.h> |
| 3187 | _ACEOF |
| 3188 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3189 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3190 | ac_status=$? |
| 3191 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3192 | rm -f conftest.er1 |
| 3193 | cat conftest.err >&5 |
| 3194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3195 | (exit $ac_status); } >/dev/null; then |
| 3196 | if test -s conftest.err; then |
| 3197 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3198 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3199 | else |
| 3200 | ac_cpp_err= |
| 3201 | fi |
| 3202 | else |
| 3203 | ac_cpp_err=yes |
| 3204 | fi |
| 3205 | if test -z "$ac_cpp_err"; then |
| 3206 | # Broken: success on invalid input. |
| 3207 | continue |
| 3208 | else |
| 3209 | echo "$as_me: failed program was:" >&5 |
| 3210 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3211 | |
| 3212 | # Passes both tests. |
| 3213 | ac_preproc_ok=: |
| 3214 | break |
| 3215 | fi |
| 3216 | rm -f conftest.err conftest.$ac_ext |
| 3217 | |
| 3218 | done |
| 3219 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3220 | rm -f conftest.err conftest.$ac_ext |
| 3221 | if $ac_preproc_ok; then |
| 3222 | : |
| 3223 | else |
| 3224 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3225 | See \`config.log' for more details." >&5 |
| 3226 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3227 | See \`config.log' for more details." >&2;} |
| 3228 | { (exit 1); exit 1; }; } |
| 3229 | fi |
| 3230 | |
| 3231 | ac_ext=c |
| 3232 | ac_cpp='$CPP $CPPFLAGS' |
| 3233 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3234 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3235 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3236 | |
| 3237 | ac_ext=cc |
| 3238 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 3239 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3240 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3241 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 3242 | if test -n "$ac_tool_prefix"; then |
| 3243 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
| 3244 | do |
| 3245 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3246 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3247 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3248 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3249 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 3250 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3251 | else |
| 3252 | if test -n "$CXX"; then |
| 3253 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 3254 | else |
| 3255 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3256 | for as_dir in $PATH |
| 3257 | do |
| 3258 | IFS=$as_save_IFS |
| 3259 | test -z "$as_dir" && as_dir=. |
| 3260 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3261 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3262 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 3263 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3264 | break 2 |
| 3265 | fi |
| 3266 | done |
| 3267 | done |
| 3268 | |
| 3269 | fi |
| 3270 | fi |
| 3271 | CXX=$ac_cv_prog_CXX |
| 3272 | if test -n "$CXX"; then |
| 3273 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3274 | echo "${ECHO_T}$CXX" >&6 |
| 3275 | else |
| 3276 | echo "$as_me:$LINENO: result: no" >&5 |
| 3277 | echo "${ECHO_T}no" >&6 |
| 3278 | fi |
| 3279 | |
| 3280 | test -n "$CXX" && break |
| 3281 | done |
| 3282 | fi |
| 3283 | if test -z "$CXX"; then |
| 3284 | ac_ct_CXX=$CXX |
| 3285 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
| 3286 | do |
| 3287 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3288 | set dummy $ac_prog; ac_word=$2 |
| 3289 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3290 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3291 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 3292 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3293 | else |
| 3294 | if test -n "$ac_ct_CXX"; then |
| 3295 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 3296 | else |
| 3297 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3298 | for as_dir in $PATH |
| 3299 | do |
| 3300 | IFS=$as_save_IFS |
| 3301 | test -z "$as_dir" && as_dir=. |
| 3302 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3303 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3304 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 3305 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3306 | break 2 |
| 3307 | fi |
| 3308 | done |
| 3309 | done |
| 3310 | |
| 3311 | fi |
| 3312 | fi |
| 3313 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 3314 | if test -n "$ac_ct_CXX"; then |
| 3315 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 3316 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
| 3317 | else |
| 3318 | echo "$as_me:$LINENO: result: no" >&5 |
| 3319 | echo "${ECHO_T}no" >&6 |
| 3320 | fi |
| 3321 | |
| 3322 | test -n "$ac_ct_CXX" && break |
| 3323 | done |
| 3324 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
| 3325 | |
| 3326 | CXX=$ac_ct_CXX |
| 3327 | fi |
| 3328 | |
| 3329 | |
| 3330 | # Provide some information about the compiler. |
| 3331 | echo "$as_me:$LINENO:" \ |
| 3332 | "checking for C++ compiler version" >&5 |
| 3333 | ac_compiler=`set X $ac_compile; echo $2` |
| 3334 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 3335 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 3336 | ac_status=$? |
| 3337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3338 | (exit $ac_status); } |
| 3339 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 3340 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 3341 | ac_status=$? |
| 3342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3343 | (exit $ac_status); } |
| 3344 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 3345 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 3346 | ac_status=$? |
| 3347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3348 | (exit $ac_status); } |
| 3349 | |
| 3350 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 3351 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
| 3352 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 3353 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3354 | else |
| 3355 | cat >conftest.$ac_ext <<_ACEOF |
| 3356 | /* confdefs.h. */ |
| 3357 | _ACEOF |
| 3358 | cat confdefs.h >>conftest.$ac_ext |
| 3359 | cat >>conftest.$ac_ext <<_ACEOF |
| 3360 | /* end confdefs.h. */ |
| 3361 | |
| 3362 | int |
| 3363 | main () |
| 3364 | { |
| 3365 | #ifndef __GNUC__ |
| 3366 | choke me |
| 3367 | #endif |
| 3368 | |
| 3369 | ; |
| 3370 | return 0; |
| 3371 | } |
| 3372 | _ACEOF |
| 3373 | rm -f conftest.$ac_objext |
| 3374 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3375 | (eval $ac_compile) 2>conftest.er1 |
| 3376 | ac_status=$? |
| 3377 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3378 | rm -f conftest.er1 |
| 3379 | cat conftest.err >&5 |
| 3380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3381 | (exit $ac_status); } && |
| 3382 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 3383 | || test ! -s conftest.err' |
| 3384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3385 | (eval $ac_try) 2>&5 |
| 3386 | ac_status=$? |
| 3387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3388 | (exit $ac_status); }; } && |
| 3389 | { ac_try='test -s conftest.$ac_objext' |
| 3390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3391 | (eval $ac_try) 2>&5 |
| 3392 | ac_status=$? |
| 3393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3394 | (exit $ac_status); }; }; then |
| 3395 | ac_compiler_gnu=yes |
| 3396 | else |
| 3397 | echo "$as_me: failed program was:" >&5 |
| 3398 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3399 | |
| 3400 | ac_compiler_gnu=no |
| 3401 | fi |
| 3402 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3403 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 3404 | |
| 3405 | fi |
| 3406 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 3407 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
| 3408 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 3409 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 3410 | ac_save_CXXFLAGS=$CXXFLAGS |
| 3411 | CXXFLAGS="-g" |
| 3412 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 3413 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
| 3414 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 3415 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3416 | else |
| 3417 | cat >conftest.$ac_ext <<_ACEOF |
| 3418 | /* confdefs.h. */ |
| 3419 | _ACEOF |
| 3420 | cat confdefs.h >>conftest.$ac_ext |
| 3421 | cat >>conftest.$ac_ext <<_ACEOF |
| 3422 | /* end confdefs.h. */ |
| 3423 | |
| 3424 | int |
| 3425 | main () |
| 3426 | { |
| 3427 | |
| 3428 | ; |
| 3429 | return 0; |
| 3430 | } |
| 3431 | _ACEOF |
| 3432 | rm -f conftest.$ac_objext |
| 3433 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3434 | (eval $ac_compile) 2>conftest.er1 |
| 3435 | ac_status=$? |
| 3436 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3437 | rm -f conftest.er1 |
| 3438 | cat conftest.err >&5 |
| 3439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3440 | (exit $ac_status); } && |
| 3441 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 3442 | || test ! -s conftest.err' |
| 3443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3444 | (eval $ac_try) 2>&5 |
| 3445 | ac_status=$? |
| 3446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3447 | (exit $ac_status); }; } && |
| 3448 | { ac_try='test -s conftest.$ac_objext' |
| 3449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3450 | (eval $ac_try) 2>&5 |
| 3451 | ac_status=$? |
| 3452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3453 | (exit $ac_status); }; }; then |
| 3454 | ac_cv_prog_cxx_g=yes |
| 3455 | else |
| 3456 | echo "$as_me: failed program was:" >&5 |
| 3457 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3458 | |
| 3459 | ac_cv_prog_cxx_g=no |
| 3460 | fi |
| 3461 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3462 | fi |
| 3463 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 3464 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
| 3465 | if test "$ac_test_CXXFLAGS" = set; then |
| 3466 | CXXFLAGS=$ac_save_CXXFLAGS |
| 3467 | elif test $ac_cv_prog_cxx_g = yes; then |
| 3468 | if test "$GXX" = yes; then |
| 3469 | CXXFLAGS="-g -O2" |
| 3470 | else |
| 3471 | CXXFLAGS="-g" |
| 3472 | fi |
| 3473 | else |
| 3474 | if test "$GXX" = yes; then |
| 3475 | CXXFLAGS="-O2" |
| 3476 | else |
| 3477 | CXXFLAGS= |
| 3478 | fi |
| 3479 | fi |
| 3480 | for ac_declaration in \ |
| 3481 | '' \ |
| 3482 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 3483 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 3484 | 'extern "C" void exit (int) throw ();' \ |
| 3485 | 'extern "C" void exit (int);' \ |
| 3486 | 'void exit (int);' |
| 3487 | do |
| 3488 | cat >conftest.$ac_ext <<_ACEOF |
| 3489 | /* confdefs.h. */ |
| 3490 | _ACEOF |
| 3491 | cat confdefs.h >>conftest.$ac_ext |
| 3492 | cat >>conftest.$ac_ext <<_ACEOF |
| 3493 | /* end confdefs.h. */ |
| 3494 | $ac_declaration |
| 3495 | #include <stdlib.h> |
| 3496 | int |
| 3497 | main () |
| 3498 | { |
| 3499 | exit (42); |
| 3500 | ; |
| 3501 | return 0; |
| 3502 | } |
| 3503 | _ACEOF |
| 3504 | rm -f conftest.$ac_objext |
| 3505 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3506 | (eval $ac_compile) 2>conftest.er1 |
| 3507 | ac_status=$? |
| 3508 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3509 | rm -f conftest.er1 |
| 3510 | cat conftest.err >&5 |
| 3511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3512 | (exit $ac_status); } && |
| 3513 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 3514 | || test ! -s conftest.err' |
| 3515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3516 | (eval $ac_try) 2>&5 |
| 3517 | ac_status=$? |
| 3518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3519 | (exit $ac_status); }; } && |
| 3520 | { ac_try='test -s conftest.$ac_objext' |
| 3521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3522 | (eval $ac_try) 2>&5 |
| 3523 | ac_status=$? |
| 3524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3525 | (exit $ac_status); }; }; then |
| 3526 | : |
| 3527 | else |
| 3528 | echo "$as_me: failed program was:" >&5 |
| 3529 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3530 | |
| 3531 | continue |
| 3532 | fi |
| 3533 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3534 | cat >conftest.$ac_ext <<_ACEOF |
| 3535 | /* confdefs.h. */ |
| 3536 | _ACEOF |
| 3537 | cat confdefs.h >>conftest.$ac_ext |
| 3538 | cat >>conftest.$ac_ext <<_ACEOF |
| 3539 | /* end confdefs.h. */ |
| 3540 | $ac_declaration |
| 3541 | int |
| 3542 | main () |
| 3543 | { |
| 3544 | exit (42); |
| 3545 | ; |
| 3546 | return 0; |
| 3547 | } |
| 3548 | _ACEOF |
| 3549 | rm -f conftest.$ac_objext |
| 3550 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3551 | (eval $ac_compile) 2>conftest.er1 |
| 3552 | ac_status=$? |
| 3553 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3554 | rm -f conftest.er1 |
| 3555 | cat conftest.err >&5 |
| 3556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3557 | (exit $ac_status); } && |
| 3558 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 3559 | || test ! -s conftest.err' |
| 3560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3561 | (eval $ac_try) 2>&5 |
| 3562 | ac_status=$? |
| 3563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3564 | (exit $ac_status); }; } && |
| 3565 | { ac_try='test -s conftest.$ac_objext' |
| 3566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3567 | (eval $ac_try) 2>&5 |
| 3568 | ac_status=$? |
| 3569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3570 | (exit $ac_status); }; }; then |
| 3571 | break |
| 3572 | else |
| 3573 | echo "$as_me: failed program was:" >&5 |
| 3574 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3575 | |
| 3576 | fi |
| 3577 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3578 | done |
| 3579 | rm -f conftest* |
| 3580 | if test -n "$ac_declaration"; then |
| 3581 | echo '#ifdef __cplusplus' >>confdefs.h |
| 3582 | echo $ac_declaration >>confdefs.h |
| 3583 | echo '#endif' >>confdefs.h |
| 3584 | fi |
| 3585 | |
| 3586 | ac_ext=c |
| 3587 | ac_cpp='$CPP $CPPFLAGS' |
| 3588 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3589 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3590 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3591 | |
| 3592 | depcc="$CXX" am_compiler_list= |
| 3593 | |
| 3594 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| 3595 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
| 3596 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
| 3597 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3598 | else |
| 3599 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 3600 | # We make a subdir and do the tests there. Otherwise we can end up |
| 3601 | # making bogus files that we don't know about and never remove. For |
| 3602 | # instance it was reported that on HP-UX the gcc test will end up |
| 3603 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 3604 | # in D'. |
| 3605 | mkdir conftest.dir |
| 3606 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 3607 | # using a relative directory. |
| 3608 | cp "$am_depcomp" conftest.dir |
| 3609 | cd conftest.dir |
| 3610 | # We will build objects and dependencies in a subdirectory because |
| 3611 | # it helps to detect inapplicable dependency modes. For instance |
| 3612 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 3613 | # side effect of compilation, but ICC will put the dependencies in |
| 3614 | # the current directory while Tru64 will put them in the object |
| 3615 | # directory. |
| 3616 | mkdir sub |
| 3617 | |
| 3618 | am_cv_CXX_dependencies_compiler_type=none |
| 3619 | if test "$am_compiler_list" = ""; then |
| 3620 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 3621 | fi |
| 3622 | for depmode in $am_compiler_list; do |
| 3623 | # Setup a source with many dependencies, because some compilers |
| 3624 | # like to wrap large dependency lists on column 80 (with \), and |
| 3625 | # we should not choose a depcomp mode which is confused by this. |
| 3626 | # |
| 3627 | # We need to recreate these files for each test, as the compiler may |
| 3628 | # overwrite some of them when testing with obscure command lines. |
| 3629 | # This happens at least with the AIX C compiler. |
| 3630 | : > sub/conftest.c |
| 3631 | for i in 1 2 3 4 5 6; do |
| 3632 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 3633 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 3634 | # Solaris 8's {/usr,}/bin/sh. |
| 3635 | touch sub/conftst$i.h |
| 3636 | done |
| 3637 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 3638 | |
| 3639 | case $depmode in |
| 3640 | nosideeffect) |
| 3641 | # after this tag, mechanisms are not by side-effect, so they'll |
| 3642 | # only be used when explicitly requested |
| 3643 | if test "x$enable_dependency_tracking" = xyes; then |
| 3644 | continue |
| 3645 | else |
| 3646 | break |
| 3647 | fi |
| 3648 | ;; |
| 3649 | none) break ;; |
| 3650 | esac |
| 3651 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 3652 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 3653 | # handle `-M -o', and we need to detect this. |
| 3654 | if depmode=$depmode \ |
| 3655 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
| 3656 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 3657 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
| 3658 | >/dev/null 2>conftest.err && |
| 3659 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 3660 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
| 3661 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 3662 | # icc doesn't choke on unknown options, it will just issue warnings |
| 3663 | # or remarks (even with -Werror). So we grep stderr for any message |
| 3664 | # that says an option was ignored or not supported. |
| 3665 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 3666 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 3667 | # The diagnosis changed in icc 8.0: |
| 3668 | # icc: Command line remark: option '-MP' not supported |
| 3669 | if (grep 'ignoring option' conftest.err || |
| 3670 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 3671 | am_cv_CXX_dependencies_compiler_type=$depmode |
| 3672 | break |
| 3673 | fi |
| 3674 | fi |
| 3675 | done |
| 3676 | |
| 3677 | cd .. |
| 3678 | rm -rf conftest.dir |
| 3679 | else |
| 3680 | am_cv_CXX_dependencies_compiler_type=none |
| 3681 | fi |
| 3682 | |
| 3683 | fi |
| 3684 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| 3685 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
| 3686 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 3687 | |
| 3688 | |
| 3689 | |
| 3690 | if |
| 3691 | test "x$enable_dependency_tracking" != xno \ |
| 3692 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| 3693 | am__fastdepCXX_TRUE= |
| 3694 | am__fastdepCXX_FALSE='#' |
| 3695 | else |
| 3696 | am__fastdepCXX_TRUE='#' |
| 3697 | am__fastdepCXX_FALSE= |
| 3698 | fi |
| 3699 | |
| 3700 | |
| 3701 | # Extract the first word of "ld", so it can be a program name with args. |
| 3702 | set dummy ld; ac_word=$2 |
| 3703 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3704 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3705 | if test "${ac_cv_prog_LD+set}" = set; then |
| 3706 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3707 | else |
| 3708 | if test -n "$LD"; then |
| 3709 | ac_cv_prog_LD="$LD" # Let the user override the test. |
| 3710 | else |
| 3711 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3712 | for as_dir in $PATH |
| 3713 | do |
| 3714 | IFS=$as_save_IFS |
| 3715 | test -z "$as_dir" && as_dir=. |
| 3716 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3717 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3718 | ac_cv_prog_LD="ld" |
| 3719 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3720 | break 2 |
| 3721 | fi |
| 3722 | done |
| 3723 | done |
| 3724 | |
| 3725 | fi |
| 3726 | fi |
| 3727 | LD=$ac_cv_prog_LD |
| 3728 | if test -n "$LD"; then |
| 3729 | echo "$as_me:$LINENO: result: $LD" >&5 |
| 3730 | echo "${ECHO_T}$LD" >&6 |
| 3731 | else |
| 3732 | echo "$as_me:$LINENO: result: no" >&5 |
| 3733 | echo "${ECHO_T}no" >&6 |
| 3734 | fi |
| 3735 | |
| 3736 | test "$LD" || { { echo "$as_me:$LINENO: error: ld not found" >&5 |
| 3737 | echo "$as_me: error: ld not found" >&2;} |
| 3738 | { (exit 1); exit 1; }; } |
| 3739 | |
| 3740 | |
| 3741 | |
| 3742 | echo "$as_me:$LINENO: checking for kernel OProfile support" >&5 |
| 3743 | echo $ECHO_N "checking for kernel OProfile support... $ECHO_C" >&6 |
| 3744 | |
| 3745 | # Check whether --with-kernel-support or --without-kernel-support was given. |
| 3746 | if test "${with_kernel_support+set}" = set; then |
| 3747 | withval="$with_kernel_support" |
| 3748 | if test "$withval" = "yes"; then |
| 3749 | OPROFILE_26=yes |
| 3750 | fi |
| 3751 | |
| 3752 | fi; |
| 3753 | |
| 3754 | if test "$OPROFILE_26" != "yes"; then |
| 3755 | |
| 3756 | |
| 3757 | KSRC=/lib/modules/`uname -r`/build |
| 3758 | |
| 3759 | # Check whether --with-linux or --without-linux was given. |
| 3760 | if test "${with_linux+set}" = set; then |
| 3761 | withval="$with_linux" |
| 3762 | KSRC=$withval |
| 3763 | fi; |
| 3764 | KINC=$KSRC/include |
| 3765 | |
| 3766 | |
| 3767 | |
| 3768 | SAVE_CFLAGS=$CFLAGS |
| 3769 | CFLAGS="-I$KINC -O2 -D__KERNEL__" |
| 3770 | cat >conftest.$ac_ext <<_ACEOF |
| 3771 | /* confdefs.h. */ |
| 3772 | _ACEOF |
| 3773 | cat confdefs.h >>conftest.$ac_ext |
| 3774 | cat >>conftest.$ac_ext <<_ACEOF |
| 3775 | /* end confdefs.h. */ |
| 3776 | #include <linux/config.h> |
| 3777 | int |
| 3778 | main () |
| 3779 | { |
| 3780 | |
| 3781 | #ifndef CONFIG_OPROFILE |
| 3782 | break_me_hard(\\\); |
| 3783 | #endif |
| 3784 | |
| 3785 | ; |
| 3786 | return 0; |
| 3787 | } |
| 3788 | _ACEOF |
| 3789 | rm -f conftest.$ac_objext |
| 3790 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3791 | (eval $ac_compile) 2>conftest.er1 |
| 3792 | ac_status=$? |
| 3793 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3794 | rm -f conftest.er1 |
| 3795 | cat conftest.err >&5 |
| 3796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3797 | (exit $ac_status); } && |
| 3798 | { ac_try='test -z "$ac_c_werror_flag" |
| 3799 | || test ! -s conftest.err' |
| 3800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3801 | (eval $ac_try) 2>&5 |
| 3802 | ac_status=$? |
| 3803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3804 | (exit $ac_status); }; } && |
| 3805 | { ac_try='test -s conftest.$ac_objext' |
| 3806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3807 | (eval $ac_try) 2>&5 |
| 3808 | ac_status=$? |
| 3809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3810 | (exit $ac_status); }; }; then |
| 3811 | OPROFILE_26=yes |
| 3812 | else |
| 3813 | echo "$as_me: failed program was:" >&5 |
| 3814 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3815 | |
| 3816 | OPROFILE_26=no |
| 3817 | fi |
| 3818 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3819 | CFLAGS=$SAVE_CFLAGS |
| 3820 | |
| 3821 | |
| 3822 | SAVE_CFLAGS=$CFLAGS |
| 3823 | CFLAGS="-I$KINC -O2 -D__KERNEL__" |
| 3824 | cat >conftest.$ac_ext <<_ACEOF |
| 3825 | /* confdefs.h. */ |
| 3826 | _ACEOF |
| 3827 | cat confdefs.h >>conftest.$ac_ext |
| 3828 | cat >>conftest.$ac_ext <<_ACEOF |
| 3829 | /* end confdefs.h. */ |
| 3830 | #include <linux/config.h> |
| 3831 | int |
| 3832 | main () |
| 3833 | { |
| 3834 | |
| 3835 | #ifndef CONFIG_OPROFILE_MODULE |
| 3836 | break_me_hard(\\\); |
| 3837 | #endif |
| 3838 | |
| 3839 | ; |
| 3840 | return 0; |
| 3841 | } |
| 3842 | _ACEOF |
| 3843 | rm -f conftest.$ac_objext |
| 3844 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3845 | (eval $ac_compile) 2>conftest.er1 |
| 3846 | ac_status=$? |
| 3847 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3848 | rm -f conftest.er1 |
| 3849 | cat conftest.err >&5 |
| 3850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3851 | (exit $ac_status); } && |
| 3852 | { ac_try='test -z "$ac_c_werror_flag" |
| 3853 | || test ! -s conftest.err' |
| 3854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3855 | (eval $ac_try) 2>&5 |
| 3856 | ac_status=$? |
| 3857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3858 | (exit $ac_status); }; } && |
| 3859 | { ac_try='test -s conftest.$ac_objext' |
| 3860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3861 | (eval $ac_try) 2>&5 |
| 3862 | ac_status=$? |
| 3863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3864 | (exit $ac_status); }; }; then |
| 3865 | OPROFILE_26=yes |
| 3866 | else |
| 3867 | echo "$as_me: failed program was:" >&5 |
| 3868 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3869 | |
| 3870 | OPROFILE_26=$OPROFILE_26 |
| 3871 | fi |
| 3872 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3873 | CFLAGS=$SAVE_CFLAGS |
| 3874 | |
| 3875 | fi |
| 3876 | echo "$as_me:$LINENO: result: $OPROFILE_26" >&5 |
| 3877 | echo "${ECHO_T}$OPROFILE_26" >&6 |
| 3878 | |
| 3879 | |
| 3880 | |
| 3881 | if test "$OPROFILE_26" = yes; then |
| 3882 | kernel_support_TRUE= |
| 3883 | kernel_support_FALSE='#' |
| 3884 | else |
| 3885 | kernel_support_TRUE='#' |
| 3886 | kernel_support_FALSE= |
| 3887 | fi |
| 3888 | |
| 3889 | |
| 3890 | |
| 3891 | |
| 3892 | if test "$OPROFILE_26" = "no"; then |
| 3893 | |
| 3894 | if test ! -f $KINC/linux/autoconf.h; then |
| 3895 | { { echo "$as_me:$LINENO: error: no suitably configured kernel include tree found" >&5 |
| 3896 | echo "$as_me: error: no suitably configured kernel include tree found" >&2;} |
| 3897 | { (exit 1); exit 1; }; } |
| 3898 | fi |
| 3899 | |
| 3900 | |
| 3901 | |
| 3902 | echo "$as_me:$LINENO: checking for kernel version" >&5 |
| 3903 | echo $ECHO_N "checking for kernel version... $ECHO_C" >&6 |
| 3904 | eval KVERS=`gcc -I$KINC -E -dM $KINC/linux/version.h | grep -w UTS_RELEASE | awk '{print $3}'` |
| 3905 | echo "$as_me:$LINENO: result: $KVERS" >&5 |
| 3906 | echo "${ECHO_T}$KVERS" >&6 |
| 3907 | case "$KVERS" in |
| 3908 | 2.2.*|2.4.*) ;; |
| 3909 | *) { { echo "$as_me:$LINENO: error: Unsupported kernel version" >&5 |
| 3910 | echo "$as_me: error: Unsupported kernel version" >&2;} |
| 3911 | { (exit 1); exit 1; }; } |
| 3912 | esac |
| 3913 | |
| 3914 | echo "$as_me:$LINENO: checking kernel version" >&5 |
| 3915 | echo $ECHO_N "checking kernel version... $ECHO_C" >&6 |
| 3916 | |
| 3917 | SAVE_CFLAGS=$CFLAGS |
| 3918 | CFLAGS="-I$KINC -D__KERNEL__ -Werror" |
| 3919 | cat >conftest.$ac_ext <<_ACEOF |
| 3920 | /* confdefs.h. */ |
| 3921 | _ACEOF |
| 3922 | cat confdefs.h >>conftest.$ac_ext |
| 3923 | cat >>conftest.$ac_ext <<_ACEOF |
| 3924 | /* end confdefs.h. */ |
| 3925 | |
| 3926 | #include <linux/version.h> |
| 3927 | #include <linux/config.h> |
| 3928 | |
| 3929 | int |
| 3930 | main () |
| 3931 | { |
| 3932 | |
| 3933 | #if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 2, 10) |
| 3934 | break_me_hard(\\\); |
| 3935 | #endif |
| 3936 | |
| 3937 | ; |
| 3938 | return 0; |
| 3939 | } |
| 3940 | _ACEOF |
| 3941 | rm -f conftest.$ac_objext |
| 3942 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3943 | (eval $ac_compile) 2>conftest.er1 |
| 3944 | ac_status=$? |
| 3945 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3946 | rm -f conftest.er1 |
| 3947 | cat conftest.err >&5 |
| 3948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3949 | (exit $ac_status); } && |
| 3950 | { ac_try='test -z "$ac_c_werror_flag" |
| 3951 | || test ! -s conftest.err' |
| 3952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3953 | (eval $ac_try) 2>&5 |
| 3954 | ac_status=$? |
| 3955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3956 | (exit $ac_status); }; } && |
| 3957 | { ac_try='test -s conftest.$ac_objext' |
| 3958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3959 | (eval $ac_try) 2>&5 |
| 3960 | ac_status=$? |
| 3961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3962 | (exit $ac_status); }; }; then |
| 3963 | echo "$as_me:$LINENO: result: ok" >&5 |
| 3964 | echo "${ECHO_T}ok" >&6 |
| 3965 | else |
| 3966 | echo "$as_me: failed program was:" >&5 |
| 3967 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3968 | |
| 3969 | { { echo "$as_me:$LINENO: error: check html documentation install section" >&5 |
| 3970 | echo "$as_me: error: check html documentation install section" >&2;} |
| 3971 | { (exit 1); exit 1; }; } |
| 3972 | fi |
| 3973 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3974 | CFLAGS=$SAVE_CFLAGS |
| 3975 | |
| 3976 | |
| 3977 | echo "$as_me:$LINENO: checking for $KINC/linux/spinlock.h" >&5 |
| 3978 | echo $ECHO_N "checking for $KINC/linux/spinlock.h... $ECHO_C" >&6 |
| 3979 | if test -f $KINC/linux/spinlock.h; then |
| 3980 | EXTRA_CFLAGS_MODULE="$EXTRA_CFLAGS_MODULE -DHAVE_LINUX_SPINLOCK_HEADER" |
| 3981 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3982 | echo "${ECHO_T}yes" >&6 |
| 3983 | else |
| 3984 | echo "$as_me:$LINENO: result: no" >&5 |
| 3985 | echo "${ECHO_T}no" >&6 |
| 3986 | fi |
| 3987 | |
| 3988 | echo "$as_me:$LINENO: checking for rtc_lock" >&5 |
| 3989 | echo $ECHO_N "checking for rtc_lock... $ECHO_C" >&6 |
| 3990 | gcc -I$KINC -E $KINC/linux/mc146818rtc.h | grep rtc_lock >/dev/null |
| 3991 | if test "$?" -eq 0; then |
| 3992 | EXTRA_CFLAGS_MODULE="$EXTRA_CFLAGS_MODULE -DRTC_LOCK" |
| 3993 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3994 | echo "${ECHO_T}yes" >&6 |
| 3995 | else |
| 3996 | echo "$as_me:$LINENO: result: no" >&5 |
| 3997 | echo "${ECHO_T}no" >&6 |
| 3998 | fi |
| 3999 | |
| 4000 | arch="unknown" |
| 4001 | echo "$as_me:$LINENO: checking for x86 architecture" >&5 |
| 4002 | echo $ECHO_N "checking for x86 architecture... $ECHO_C" >&6 |
| 4003 | |
| 4004 | SAVE_CFLAGS=$CFLAGS |
| 4005 | CFLAGS="-I$KINC -O2 -D__KERNEL__" |
| 4006 | cat >conftest.$ac_ext <<_ACEOF |
| 4007 | /* confdefs.h. */ |
| 4008 | _ACEOF |
| 4009 | cat confdefs.h >>conftest.$ac_ext |
| 4010 | cat >>conftest.$ac_ext <<_ACEOF |
| 4011 | /* end confdefs.h. */ |
| 4012 | #include <linux/config.h> |
| 4013 | int |
| 4014 | main () |
| 4015 | { |
| 4016 | |
| 4017 | #ifndef CONFIG_X86 |
| 4018 | break_me_hard(\\\); |
| 4019 | #endif |
| 4020 | |
| 4021 | ; |
| 4022 | return 0; |
| 4023 | } |
| 4024 | _ACEOF |
| 4025 | rm -f conftest.$ac_objext |
| 4026 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4027 | (eval $ac_compile) 2>conftest.er1 |
| 4028 | ac_status=$? |
| 4029 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4030 | rm -f conftest.er1 |
| 4031 | cat conftest.err >&5 |
| 4032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4033 | (exit $ac_status); } && |
| 4034 | { ac_try='test -z "$ac_c_werror_flag" |
| 4035 | || test ! -s conftest.err' |
| 4036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4037 | (eval $ac_try) 2>&5 |
| 4038 | ac_status=$? |
| 4039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4040 | (exit $ac_status); }; } && |
| 4041 | { ac_try='test -s conftest.$ac_objext' |
| 4042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4043 | (eval $ac_try) 2>&5 |
| 4044 | ac_status=$? |
| 4045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4046 | (exit $ac_status); }; }; then |
| 4047 | x86=1 |
| 4048 | else |
| 4049 | echo "$as_me: failed program was:" >&5 |
| 4050 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4051 | |
| 4052 | x86=0 |
| 4053 | fi |
| 4054 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4055 | CFLAGS=$SAVE_CFLAGS |
| 4056 | |
| 4057 | |
| 4058 | SAVE_CFLAGS=$CFLAGS |
| 4059 | CFLAGS="-I$KINC -O2 -D__KERNEL__" |
| 4060 | cat >conftest.$ac_ext <<_ACEOF |
| 4061 | /* confdefs.h. */ |
| 4062 | _ACEOF |
| 4063 | cat confdefs.h >>conftest.$ac_ext |
| 4064 | cat >>conftest.$ac_ext <<_ACEOF |
| 4065 | /* end confdefs.h. */ |
| 4066 | #include <linux/config.h> |
| 4067 | int |
| 4068 | main () |
| 4069 | { |
| 4070 | |
| 4071 | #ifndef CONFIG_X86_WP_WORKS_OK |
| 4072 | break_me_hard(\\\); |
| 4073 | #endif |
| 4074 | |
| 4075 | ; |
| 4076 | return 0; |
| 4077 | } |
| 4078 | _ACEOF |
| 4079 | rm -f conftest.$ac_objext |
| 4080 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4081 | (eval $ac_compile) 2>conftest.er1 |
| 4082 | ac_status=$? |
| 4083 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4084 | rm -f conftest.er1 |
| 4085 | cat conftest.err >&5 |
| 4086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4087 | (exit $ac_status); } && |
| 4088 | { ac_try='test -z "$ac_c_werror_flag" |
| 4089 | || test ! -s conftest.err' |
| 4090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4091 | (eval $ac_try) 2>&5 |
| 4092 | ac_status=$? |
| 4093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4094 | (exit $ac_status); }; } && |
| 4095 | { ac_try='test -s conftest.$ac_objext' |
| 4096 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4097 | (eval $ac_try) 2>&5 |
| 4098 | ac_status=$? |
| 4099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4100 | (exit $ac_status); }; }; then |
| 4101 | x86=1 |
| 4102 | else |
| 4103 | echo "$as_me: failed program was:" >&5 |
| 4104 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4105 | |
| 4106 | x86=$x86 |
| 4107 | fi |
| 4108 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4109 | CFLAGS=$SAVE_CFLAGS |
| 4110 | |
| 4111 | x=no |
| 4112 | test "x$x86" = "x1" && x=yes |
| 4113 | echo "$as_me:$LINENO: result: $x" >&5 |
| 4114 | echo "${ECHO_T}$x" >&6 |
| 4115 | test "$x86" = 1 && arch="x86" |
| 4116 | |
| 4117 | if test "$arch" = "unknown"; then |
| 4118 | echo "$as_me:$LINENO: checking for ia64 architecture" >&5 |
| 4119 | echo $ECHO_N "checking for ia64 architecture... $ECHO_C" >&6 |
| 4120 | |
| 4121 | SAVE_CFLAGS=$CFLAGS |
| 4122 | CFLAGS="-I$KINC -O2 -D__KERNEL__" |
| 4123 | cat >conftest.$ac_ext <<_ACEOF |
| 4124 | /* confdefs.h. */ |
| 4125 | _ACEOF |
| 4126 | cat confdefs.h >>conftest.$ac_ext |
| 4127 | cat >>conftest.$ac_ext <<_ACEOF |
| 4128 | /* end confdefs.h. */ |
| 4129 | #include <linux/config.h> |
| 4130 | int |
| 4131 | main () |
| 4132 | { |
| 4133 | |
| 4134 | #ifndef CONFIG_IA64 |
| 4135 | break_me_hard(\\\); |
| 4136 | #endif |
| 4137 | |
| 4138 | ; |
| 4139 | return 0; |
| 4140 | } |
| 4141 | _ACEOF |
| 4142 | rm -f conftest.$ac_objext |
| 4143 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4144 | (eval $ac_compile) 2>conftest.er1 |
| 4145 | ac_status=$? |
| 4146 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4147 | rm -f conftest.er1 |
| 4148 | cat conftest.err >&5 |
| 4149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4150 | (exit $ac_status); } && |
| 4151 | { ac_try='test -z "$ac_c_werror_flag" |
| 4152 | || test ! -s conftest.err' |
| 4153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4154 | (eval $ac_try) 2>&5 |
| 4155 | ac_status=$? |
| 4156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4157 | (exit $ac_status); }; } && |
| 4158 | { ac_try='test -s conftest.$ac_objext' |
| 4159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4160 | (eval $ac_try) 2>&5 |
| 4161 | ac_status=$? |
| 4162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4163 | (exit $ac_status); }; }; then |
| 4164 | ia64=1 |
| 4165 | else |
| 4166 | echo "$as_me: failed program was:" >&5 |
| 4167 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4168 | |
| 4169 | ia64=0 |
| 4170 | fi |
| 4171 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4172 | CFLAGS=$SAVE_CFLAGS |
| 4173 | |
| 4174 | x=no |
| 4175 | test "x$ia64" = "x1" && x=yes |
| 4176 | echo "$as_me:$LINENO: result: $x" >&5 |
| 4177 | echo "${ECHO_T}$x" >&6 |
| 4178 | test "$ia64" = 1 && arch="ia64" |
| 4179 | fi |
| 4180 | |
| 4181 | test "$arch" = "unknown" && { { echo "$as_me:$LINENO: error: Unsupported architecture" >&5 |
| 4182 | echo "$as_me: error: Unsupported architecture" >&2;} |
| 4183 | { (exit 1); exit 1; }; } |
| 4184 | |
| 4185 | echo "$as_me:$LINENO: checking arch/kernel version combination" >&5 |
| 4186 | echo $ECHO_N "checking arch/kernel version combination... $ECHO_C" >&6 |
| 4187 | case "$arch" in |
| 4188 | ia64) |
| 4189 | |
| 4190 | SAVE_CFLAGS=$CFLAGS |
| 4191 | CFLAGS="-I$KINC -D__KERNEL__ -Werror" |
| 4192 | cat >conftest.$ac_ext <<_ACEOF |
| 4193 | /* confdefs.h. */ |
| 4194 | _ACEOF |
| 4195 | cat confdefs.h >>conftest.$ac_ext |
| 4196 | cat >>conftest.$ac_ext <<_ACEOF |
| 4197 | /* end confdefs.h. */ |
| 4198 | |
| 4199 | #include <linux/version.h> |
| 4200 | #include <linux/config.h> |
| 4201 | |
| 4202 | int |
| 4203 | main () |
| 4204 | { |
| 4205 | |
| 4206 | #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 4, 18) |
| 4207 | break_me_hard(\\\); |
| 4208 | #endif |
| 4209 | |
| 4210 | ; |
| 4211 | return 0; |
| 4212 | } |
| 4213 | _ACEOF |
| 4214 | rm -f conftest.$ac_objext |
| 4215 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4216 | (eval $ac_compile) 2>conftest.er1 |
| 4217 | ac_status=$? |
| 4218 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4219 | rm -f conftest.er1 |
| 4220 | cat conftest.err >&5 |
| 4221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4222 | (exit $ac_status); } && |
| 4223 | { ac_try='test -z "$ac_c_werror_flag" |
| 4224 | || test ! -s conftest.err' |
| 4225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4226 | (eval $ac_try) 2>&5 |
| 4227 | ac_status=$? |
| 4228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4229 | (exit $ac_status); }; } && |
| 4230 | { ac_try='test -s conftest.$ac_objext' |
| 4231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4232 | (eval $ac_try) 2>&5 |
| 4233 | ac_status=$? |
| 4234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4235 | (exit $ac_status); }; }; then |
| 4236 | echo "$as_me:$LINENO: result: ok" >&5 |
| 4237 | echo "${ECHO_T}ok" >&6 |
| 4238 | else |
| 4239 | echo "$as_me: failed program was:" >&5 |
| 4240 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4241 | |
| 4242 | { { echo "$as_me:$LINENO: error: unsupported arch/kernel" >&5 |
| 4243 | echo "$as_me: error: unsupported arch/kernel" >&2;} |
| 4244 | { (exit 1); exit 1; }; } |
| 4245 | fi |
| 4246 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4247 | CFLAGS=$SAVE_CFLAGS |
| 4248 | ;; |
| 4249 | *) echo "$as_me:$LINENO: result: ok" >&5 |
| 4250 | echo "${ECHO_T}ok" >&6 |
| 4251 | esac |
| 4252 | |
| 4253 | echo "$as_me:$LINENO: checking for preempt patch" >&5 |
| 4254 | echo $ECHO_N "checking for preempt patch... $ECHO_C" >&6 |
| 4255 | |
| 4256 | SAVE_CFLAGS=$CFLAGS |
| 4257 | CFLAGS="-I$KINC -O2 -D__KERNEL__" |
| 4258 | cat >conftest.$ac_ext <<_ACEOF |
| 4259 | /* confdefs.h. */ |
| 4260 | _ACEOF |
| 4261 | cat confdefs.h >>conftest.$ac_ext |
| 4262 | cat >>conftest.$ac_ext <<_ACEOF |
| 4263 | /* end confdefs.h. */ |
| 4264 | #include <linux/config.h> |
| 4265 | int |
| 4266 | main () |
| 4267 | { |
| 4268 | |
| 4269 | #ifndef CONFIG_PREEMPT |
| 4270 | break_me_hard(\\\); |
| 4271 | #endif |
| 4272 | |
| 4273 | ; |
| 4274 | return 0; |
| 4275 | } |
| 4276 | _ACEOF |
| 4277 | rm -f conftest.$ac_objext |
| 4278 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4279 | (eval $ac_compile) 2>conftest.er1 |
| 4280 | ac_status=$? |
| 4281 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4282 | rm -f conftest.er1 |
| 4283 | cat conftest.err >&5 |
| 4284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4285 | (exit $ac_status); } && |
| 4286 | { ac_try='test -z "$ac_c_werror_flag" |
| 4287 | || test ! -s conftest.err' |
| 4288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4289 | (eval $ac_try) 2>&5 |
| 4290 | ac_status=$? |
| 4291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4292 | (exit $ac_status); }; } && |
| 4293 | { ac_try='test -s conftest.$ac_objext' |
| 4294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4295 | (eval $ac_try) 2>&5 |
| 4296 | ac_status=$? |
| 4297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4298 | (exit $ac_status); }; }; then |
| 4299 | preempt=1 |
| 4300 | else |
| 4301 | echo "$as_me: failed program was:" >&5 |
| 4302 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4303 | |
| 4304 | preempt=0 |
| 4305 | fi |
| 4306 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4307 | CFLAGS=$SAVE_CFLAGS |
| 4308 | |
| 4309 | x=no |
| 4310 | test "x$preempt" = "x1" && x=yes |
| 4311 | echo "$as_me:$LINENO: result: $x" >&5 |
| 4312 | echo "${ECHO_T}$x" >&6 |
| 4313 | test "$preempt" = 0 || { { echo "$as_me:$LINENO: error: unsupported kernel configuration : CONFIG_PREEMPT" >&5 |
| 4314 | echo "$as_me: error: unsupported kernel configuration : CONFIG_PREEMPT" >&2;} |
| 4315 | { (exit 1); exit 1; }; } |
| 4316 | |
| 4317 | |
| 4318 | |
| 4319 | MODINSTALLDIR=/lib/modules/$KVERS |
| 4320 | |
| 4321 | OPROFILE_MODULE_ARCH=$arch |
| 4322 | |
| 4323 | |
| 4324 | |
| 4325 | fi |
| 4326 | |
| 4327 | |
| 4328 | # Check whether --with-module-dir or --without-module-dir was given. |
| 4329 | if test "${with_module_dir+set}" = set; then |
| 4330 | withval="$with_module_dir" |
| 4331 | MODINSTALLDIR=$withval |
| 4332 | fi; |
| 4333 | |
| 4334 | |
| 4335 | |
| 4336 | echo "$as_me:$LINENO: checking whether malloc attribute is understood" >&5 |
| 4337 | echo $ECHO_N "checking whether malloc attribute is understood... $ECHO_C" >&6 |
| 4338 | SAVE_CFLAGS=$CFLAGS |
| 4339 | CFLAGS="-Werror $CFLAGS" |
| 4340 | cat >conftest.$ac_ext <<_ACEOF |
| 4341 | /* confdefs.h. */ |
| 4342 | _ACEOF |
| 4343 | cat confdefs.h >>conftest.$ac_ext |
| 4344 | cat >>conftest.$ac_ext <<_ACEOF |
| 4345 | /* end confdefs.h. */ |
| 4346 | |
| 4347 | int |
| 4348 | main () |
| 4349 | { |
| 4350 | |
| 4351 | void monkey() __attribute__((malloc)); |
| 4352 | |
| 4353 | ; |
| 4354 | return 0; |
| 4355 | } |
| 4356 | _ACEOF |
| 4357 | rm -f conftest.$ac_objext |
| 4358 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4359 | (eval $ac_compile) 2>conftest.er1 |
| 4360 | ac_status=$? |
| 4361 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4362 | rm -f conftest.er1 |
| 4363 | cat conftest.err >&5 |
| 4364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4365 | (exit $ac_status); } && |
| 4366 | { ac_try='test -z "$ac_c_werror_flag" |
| 4367 | || test ! -s conftest.err' |
| 4368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4369 | (eval $ac_try) 2>&5 |
| 4370 | ac_status=$? |
| 4371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4372 | (exit $ac_status); }; } && |
| 4373 | { ac_try='test -s conftest.$ac_objext' |
| 4374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4375 | (eval $ac_try) 2>&5 |
| 4376 | ac_status=$? |
| 4377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4378 | (exit $ac_status); }; }; then |
| 4379 | echo "$as_me:$LINENO: result: yes" >&5 |
| 4380 | echo "${ECHO_T}yes" >&6; |
| 4381 | cat >>confdefs.h <<\_ACEOF |
| 4382 | #define MALLOC_ATTRIBUTE_OK 1 |
| 4383 | _ACEOF |
| 4384 | |
| 4385 | else |
| 4386 | echo "$as_me: failed program was:" >&5 |
| 4387 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4388 | |
| 4389 | echo "$as_me:$LINENO: result: no" >&5 |
| 4390 | echo "${ECHO_T}no" >&6 |
| 4391 | fi |
| 4392 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4393 | CFLAGS=$SAVE_CFLAGS |
| 4394 | |
| 4395 | |
| 4396 | |
| 4397 | echo "$as_me:$LINENO: checking whether __builtin_expect is understood" >&5 |
| 4398 | echo $ECHO_N "checking whether __builtin_expect is understood... $ECHO_C" >&6 |
| 4399 | SAVE_CFLAGS=$CFLAGS |
| 4400 | CFLAGS="-Werror $CFLAGS" |
| 4401 | cat >conftest.$ac_ext <<_ACEOF |
| 4402 | /* confdefs.h. */ |
| 4403 | _ACEOF |
| 4404 | cat confdefs.h >>conftest.$ac_ext |
| 4405 | cat >>conftest.$ac_ext <<_ACEOF |
| 4406 | /* end confdefs.h. */ |
| 4407 | |
| 4408 | int |
| 4409 | main () |
| 4410 | { |
| 4411 | |
| 4412 | int i; |
| 4413 | if (__builtin_expect(i, 0)) { } |
| 4414 | |
| 4415 | ; |
| 4416 | return 0; |
| 4417 | } |
| 4418 | _ACEOF |
| 4419 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4420 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4421 | (eval $ac_link) 2>conftest.er1 |
| 4422 | ac_status=$? |
| 4423 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4424 | rm -f conftest.er1 |
| 4425 | cat conftest.err >&5 |
| 4426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4427 | (exit $ac_status); } && |
| 4428 | { ac_try='test -z "$ac_c_werror_flag" |
| 4429 | || test ! -s conftest.err' |
| 4430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4431 | (eval $ac_try) 2>&5 |
| 4432 | ac_status=$? |
| 4433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4434 | (exit $ac_status); }; } && |
| 4435 | { ac_try='test -s conftest$ac_exeext' |
| 4436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4437 | (eval $ac_try) 2>&5 |
| 4438 | ac_status=$? |
| 4439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4440 | (exit $ac_status); }; }; then |
| 4441 | echo "$as_me:$LINENO: result: yes" >&5 |
| 4442 | echo "${ECHO_T}yes" >&6; EXTRA_CFLAGS_MODULE="$EXTRA_CFLAGS_MODULE -DEXPECT_OK" |
| 4443 | else |
| 4444 | echo "$as_me: failed program was:" >&5 |
| 4445 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4446 | |
| 4447 | echo "$as_me:$LINENO: result: no" >&5 |
| 4448 | echo "${ECHO_T}no" >&6; |
| 4449 | fi |
| 4450 | rm -f conftest.err conftest.$ac_objext \ |
| 4451 | conftest$ac_exeext conftest.$ac_ext |
| 4452 | CFLAGS=$SAVE_CFLAGS |
| 4453 | |
| 4454 | |
| 4455 | |
| 4456 | |
| 4457 | |
| 4458 | topdir=`pwd` |
| 4459 | |
| 4460 | |
| 4461 | |
| 4462 | |
| 4463 | # Check whether --with-extra-includes or --without-extra-includes was given. |
| 4464 | if test "${with_extra_includes+set}" = set; then |
| 4465 | withval="$with_extra_includes" |
| 4466 | use_extra_includes="$withval" |
| 4467 | else |
| 4468 | use_extra_includes=NO |
| 4469 | |
| 4470 | fi; |
| 4471 | if test -n "$use_extra_includes" && \ |
| 4472 | test "$use_extra_includes" != "NO"; then |
| 4473 | ac_save_ifs=$IFS |
| 4474 | IFS=':' |
| 4475 | for dir in $use_extra_includes; do |
| 4476 | extra_includes="$extra_includes -I$dir" |
| 4477 | done |
| 4478 | IFS=$ac_save_ifs |
| 4479 | CPPFLAGS="$CPPFLAGS $extra_includes" |
| 4480 | fi |
| 4481 | |
| 4482 | |
| 4483 | # Check whether --with-extra-libs or --without-extra-libs was given. |
| 4484 | if test "${with_extra_libs+set}" = set; then |
| 4485 | withval="$with_extra_libs" |
| 4486 | use_extra_libs=$withval |
| 4487 | else |
| 4488 | use_extra_libs=NO |
| 4489 | |
| 4490 | fi; |
| 4491 | if test -n "$use_extra_libs" && \ |
| 4492 | test "$use_extra_libs" != "NO"; then |
| 4493 | ac_save_ifs=$IFS |
| 4494 | IFS=':' |
| 4495 | for dir in $use_extra_libs; do |
| 4496 | extra_libraries="$extra_libraries -L$dir" |
| 4497 | done |
| 4498 | IFS=$ac_save_ifs |
| 4499 | LDFLAGS="$LDFLAGS $extra_libraries" |
| 4500 | fi |
| 4501 | |
| 4502 | |
| 4503 | |
| 4504 | ORIG_SAVE_LIBS="$LIBS" |
| 4505 | |
| 4506 | |
| 4507 | |
| 4508 | for ac_func in sched_setaffinity perfmonctl |
| 4509 | do |
| 4510 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 4511 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 4512 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 4513 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 4514 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4515 | else |
| 4516 | cat >conftest.$ac_ext <<_ACEOF |
| 4517 | /* confdefs.h. */ |
| 4518 | _ACEOF |
| 4519 | cat confdefs.h >>conftest.$ac_ext |
| 4520 | cat >>conftest.$ac_ext <<_ACEOF |
| 4521 | /* end confdefs.h. */ |
| 4522 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 4523 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 4524 | #define $ac_func innocuous_$ac_func |
| 4525 | |
| 4526 | /* System header to define __stub macros and hopefully few prototypes, |
| 4527 | which can conflict with char $ac_func (); below. |
| 4528 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4529 | <limits.h> exists even on freestanding compilers. */ |
| 4530 | |
| 4531 | #ifdef __STDC__ |
| 4532 | # include <limits.h> |
| 4533 | #else |
| 4534 | # include <assert.h> |
| 4535 | #endif |
| 4536 | |
| 4537 | #undef $ac_func |
| 4538 | |
| 4539 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4540 | #ifdef __cplusplus |
| 4541 | extern "C" |
| 4542 | { |
| 4543 | #endif |
| 4544 | /* We use char because int might match the return type of a gcc2 |
| 4545 | builtin and then its argument prototype would still apply. */ |
| 4546 | char $ac_func (); |
| 4547 | /* The GNU C library defines this for functions which it implements |
| 4548 | to always fail with ENOSYS. Some functions are actually named |
| 4549 | something starting with __ and the normal name is an alias. */ |
| 4550 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4551 | choke me |
| 4552 | #else |
| 4553 | char (*f) () = $ac_func; |
| 4554 | #endif |
| 4555 | #ifdef __cplusplus |
| 4556 | } |
| 4557 | #endif |
| 4558 | |
| 4559 | int |
| 4560 | main () |
| 4561 | { |
| 4562 | return f != $ac_func; |
| 4563 | ; |
| 4564 | return 0; |
| 4565 | } |
| 4566 | _ACEOF |
| 4567 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4568 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4569 | (eval $ac_link) 2>conftest.er1 |
| 4570 | ac_status=$? |
| 4571 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4572 | rm -f conftest.er1 |
| 4573 | cat conftest.err >&5 |
| 4574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4575 | (exit $ac_status); } && |
| 4576 | { ac_try='test -z "$ac_c_werror_flag" |
| 4577 | || test ! -s conftest.err' |
| 4578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4579 | (eval $ac_try) 2>&5 |
| 4580 | ac_status=$? |
| 4581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4582 | (exit $ac_status); }; } && |
| 4583 | { ac_try='test -s conftest$ac_exeext' |
| 4584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4585 | (eval $ac_try) 2>&5 |
| 4586 | ac_status=$? |
| 4587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4588 | (exit $ac_status); }; }; then |
| 4589 | eval "$as_ac_var=yes" |
| 4590 | else |
| 4591 | echo "$as_me: failed program was:" >&5 |
| 4592 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4593 | |
| 4594 | eval "$as_ac_var=no" |
| 4595 | fi |
| 4596 | rm -f conftest.err conftest.$ac_objext \ |
| 4597 | conftest$ac_exeext conftest.$ac_ext |
| 4598 | fi |
| 4599 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 4600 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 4601 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 4602 | cat >>confdefs.h <<_ACEOF |
| 4603 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 4604 | _ACEOF |
| 4605 | |
| 4606 | fi |
| 4607 | done |
| 4608 | |
| 4609 | |
| 4610 | |
| 4611 | echo "$as_me:$LINENO: checking for poptGetContext in -lpopt" >&5 |
| 4612 | echo $ECHO_N "checking for poptGetContext in -lpopt... $ECHO_C" >&6 |
| 4613 | if test "${ac_cv_lib_popt_poptGetContext+set}" = set; then |
| 4614 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4615 | else |
| 4616 | ac_check_lib_save_LIBS=$LIBS |
| 4617 | LIBS="-lpopt $LIBS" |
| 4618 | cat >conftest.$ac_ext <<_ACEOF |
| 4619 | /* confdefs.h. */ |
| 4620 | _ACEOF |
| 4621 | cat confdefs.h >>conftest.$ac_ext |
| 4622 | cat >>conftest.$ac_ext <<_ACEOF |
| 4623 | /* end confdefs.h. */ |
| 4624 | |
| 4625 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4626 | #ifdef __cplusplus |
| 4627 | extern "C" |
| 4628 | #endif |
| 4629 | /* We use char because int might match the return type of a gcc2 |
| 4630 | builtin and then its argument prototype would still apply. */ |
| 4631 | char poptGetContext (); |
| 4632 | int |
| 4633 | main () |
| 4634 | { |
| 4635 | poptGetContext (); |
| 4636 | ; |
| 4637 | return 0; |
| 4638 | } |
| 4639 | _ACEOF |
| 4640 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4641 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4642 | (eval $ac_link) 2>conftest.er1 |
| 4643 | ac_status=$? |
| 4644 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4645 | rm -f conftest.er1 |
| 4646 | cat conftest.err >&5 |
| 4647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4648 | (exit $ac_status); } && |
| 4649 | { ac_try='test -z "$ac_c_werror_flag" |
| 4650 | || test ! -s conftest.err' |
| 4651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4652 | (eval $ac_try) 2>&5 |
| 4653 | ac_status=$? |
| 4654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4655 | (exit $ac_status); }; } && |
| 4656 | { ac_try='test -s conftest$ac_exeext' |
| 4657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4658 | (eval $ac_try) 2>&5 |
| 4659 | ac_status=$? |
| 4660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4661 | (exit $ac_status); }; }; then |
| 4662 | ac_cv_lib_popt_poptGetContext=yes |
| 4663 | else |
| 4664 | echo "$as_me: failed program was:" >&5 |
| 4665 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4666 | |
| 4667 | ac_cv_lib_popt_poptGetContext=no |
| 4668 | fi |
| 4669 | rm -f conftest.err conftest.$ac_objext \ |
| 4670 | conftest$ac_exeext conftest.$ac_ext |
| 4671 | LIBS=$ac_check_lib_save_LIBS |
| 4672 | fi |
| 4673 | echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptGetContext" >&5 |
| 4674 | echo "${ECHO_T}$ac_cv_lib_popt_poptGetContext" >&6 |
| 4675 | if test $ac_cv_lib_popt_poptGetContext = yes; then |
| 4676 | cat >>confdefs.h <<_ACEOF |
| 4677 | #define HAVE_LIBPOPT 1 |
| 4678 | _ACEOF |
| 4679 | |
| 4680 | LIBS="-lpopt $LIBS" |
| 4681 | |
| 4682 | else |
| 4683 | { { echo "$as_me:$LINENO: error: popt library not found" >&5 |
| 4684 | echo "$as_me: error: popt library not found" >&2;} |
| 4685 | { (exit 1); exit 1; }; } |
| 4686 | fi |
| 4687 | |
| 4688 | |
| 4689 | |
| 4690 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 4691 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 4692 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 4693 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4694 | else |
| 4695 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 4696 | then ac_cv_prog_egrep='grep -E' |
| 4697 | else ac_cv_prog_egrep='egrep' |
| 4698 | fi |
| 4699 | fi |
| 4700 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 4701 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 4702 | EGREP=$ac_cv_prog_egrep |
| 4703 | |
| 4704 | |
| 4705 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 4706 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 4707 | if test "${ac_cv_header_stdc+set}" = set; then |
| 4708 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4709 | else |
| 4710 | cat >conftest.$ac_ext <<_ACEOF |
| 4711 | /* confdefs.h. */ |
| 4712 | _ACEOF |
| 4713 | cat confdefs.h >>conftest.$ac_ext |
| 4714 | cat >>conftest.$ac_ext <<_ACEOF |
| 4715 | /* end confdefs.h. */ |
| 4716 | #include <stdlib.h> |
| 4717 | #include <stdarg.h> |
| 4718 | #include <string.h> |
| 4719 | #include <float.h> |
| 4720 | |
| 4721 | int |
| 4722 | main () |
| 4723 | { |
| 4724 | |
| 4725 | ; |
| 4726 | return 0; |
| 4727 | } |
| 4728 | _ACEOF |
| 4729 | rm -f conftest.$ac_objext |
| 4730 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4731 | (eval $ac_compile) 2>conftest.er1 |
| 4732 | ac_status=$? |
| 4733 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4734 | rm -f conftest.er1 |
| 4735 | cat conftest.err >&5 |
| 4736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4737 | (exit $ac_status); } && |
| 4738 | { ac_try='test -z "$ac_c_werror_flag" |
| 4739 | || test ! -s conftest.err' |
| 4740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4741 | (eval $ac_try) 2>&5 |
| 4742 | ac_status=$? |
| 4743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4744 | (exit $ac_status); }; } && |
| 4745 | { ac_try='test -s conftest.$ac_objext' |
| 4746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4747 | (eval $ac_try) 2>&5 |
| 4748 | ac_status=$? |
| 4749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4750 | (exit $ac_status); }; }; then |
| 4751 | ac_cv_header_stdc=yes |
| 4752 | else |
| 4753 | echo "$as_me: failed program was:" >&5 |
| 4754 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4755 | |
| 4756 | ac_cv_header_stdc=no |
| 4757 | fi |
| 4758 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4759 | |
| 4760 | if test $ac_cv_header_stdc = yes; then |
| 4761 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 4762 | cat >conftest.$ac_ext <<_ACEOF |
| 4763 | /* confdefs.h. */ |
| 4764 | _ACEOF |
| 4765 | cat confdefs.h >>conftest.$ac_ext |
| 4766 | cat >>conftest.$ac_ext <<_ACEOF |
| 4767 | /* end confdefs.h. */ |
| 4768 | #include <string.h> |
| 4769 | |
| 4770 | _ACEOF |
| 4771 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4772 | $EGREP "memchr" >/dev/null 2>&1; then |
| 4773 | : |
| 4774 | else |
| 4775 | ac_cv_header_stdc=no |
| 4776 | fi |
| 4777 | rm -f conftest* |
| 4778 | |
| 4779 | fi |
| 4780 | |
| 4781 | if test $ac_cv_header_stdc = yes; then |
| 4782 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 4783 | cat >conftest.$ac_ext <<_ACEOF |
| 4784 | /* confdefs.h. */ |
| 4785 | _ACEOF |
| 4786 | cat confdefs.h >>conftest.$ac_ext |
| 4787 | cat >>conftest.$ac_ext <<_ACEOF |
| 4788 | /* end confdefs.h. */ |
| 4789 | #include <stdlib.h> |
| 4790 | |
| 4791 | _ACEOF |
| 4792 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4793 | $EGREP "free" >/dev/null 2>&1; then |
| 4794 | : |
| 4795 | else |
| 4796 | ac_cv_header_stdc=no |
| 4797 | fi |
| 4798 | rm -f conftest* |
| 4799 | |
| 4800 | fi |
| 4801 | |
| 4802 | if test $ac_cv_header_stdc = yes; then |
| 4803 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 4804 | if test "$cross_compiling" = yes; then |
| 4805 | : |
| 4806 | else |
| 4807 | cat >conftest.$ac_ext <<_ACEOF |
| 4808 | /* confdefs.h. */ |
| 4809 | _ACEOF |
| 4810 | cat confdefs.h >>conftest.$ac_ext |
| 4811 | cat >>conftest.$ac_ext <<_ACEOF |
| 4812 | /* end confdefs.h. */ |
| 4813 | #include <ctype.h> |
| 4814 | #if ((' ' & 0x0FF) == 0x020) |
| 4815 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4816 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4817 | #else |
| 4818 | # define ISLOWER(c) \ |
| 4819 | (('a' <= (c) && (c) <= 'i') \ |
| 4820 | || ('j' <= (c) && (c) <= 'r') \ |
| 4821 | || ('s' <= (c) && (c) <= 'z')) |
| 4822 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4823 | #endif |
| 4824 | |
| 4825 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4826 | int |
| 4827 | main () |
| 4828 | { |
| 4829 | int i; |
| 4830 | for (i = 0; i < 256; i++) |
| 4831 | if (XOR (islower (i), ISLOWER (i)) |
| 4832 | || toupper (i) != TOUPPER (i)) |
| 4833 | exit(2); |
| 4834 | exit (0); |
| 4835 | } |
| 4836 | _ACEOF |
| 4837 | rm -f conftest$ac_exeext |
| 4838 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4839 | (eval $ac_link) 2>&5 |
| 4840 | ac_status=$? |
| 4841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4842 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4844 | (eval $ac_try) 2>&5 |
| 4845 | ac_status=$? |
| 4846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4847 | (exit $ac_status); }; }; then |
| 4848 | : |
| 4849 | else |
| 4850 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4851 | echo "$as_me: failed program was:" >&5 |
| 4852 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4853 | |
| 4854 | ( exit $ac_status ) |
| 4855 | ac_cv_header_stdc=no |
| 4856 | fi |
| 4857 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4858 | fi |
| 4859 | fi |
| 4860 | fi |
| 4861 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4862 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 4863 | if test $ac_cv_header_stdc = yes; then |
| 4864 | |
| 4865 | cat >>confdefs.h <<\_ACEOF |
| 4866 | #define STDC_HEADERS 1 |
| 4867 | _ACEOF |
| 4868 | |
| 4869 | fi |
| 4870 | |
| 4871 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4872 | |
| 4873 | |
| 4874 | |
| 4875 | |
| 4876 | |
| 4877 | |
| 4878 | |
| 4879 | |
| 4880 | |
| 4881 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4882 | inttypes.h stdint.h unistd.h |
| 4883 | do |
| 4884 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4885 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4886 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4887 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4888 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4889 | else |
| 4890 | cat >conftest.$ac_ext <<_ACEOF |
| 4891 | /* confdefs.h. */ |
| 4892 | _ACEOF |
| 4893 | cat confdefs.h >>conftest.$ac_ext |
| 4894 | cat >>conftest.$ac_ext <<_ACEOF |
| 4895 | /* end confdefs.h. */ |
| 4896 | $ac_includes_default |
| 4897 | |
| 4898 | #include <$ac_header> |
| 4899 | _ACEOF |
| 4900 | rm -f conftest.$ac_objext |
| 4901 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4902 | (eval $ac_compile) 2>conftest.er1 |
| 4903 | ac_status=$? |
| 4904 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4905 | rm -f conftest.er1 |
| 4906 | cat conftest.err >&5 |
| 4907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4908 | (exit $ac_status); } && |
| 4909 | { ac_try='test -z "$ac_c_werror_flag" |
| 4910 | || test ! -s conftest.err' |
| 4911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4912 | (eval $ac_try) 2>&5 |
| 4913 | ac_status=$? |
| 4914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4915 | (exit $ac_status); }; } && |
| 4916 | { ac_try='test -s conftest.$ac_objext' |
| 4917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4918 | (eval $ac_try) 2>&5 |
| 4919 | ac_status=$? |
| 4920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4921 | (exit $ac_status); }; }; then |
| 4922 | eval "$as_ac_Header=yes" |
| 4923 | else |
| 4924 | echo "$as_me: failed program was:" >&5 |
| 4925 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4926 | |
| 4927 | eval "$as_ac_Header=no" |
| 4928 | fi |
| 4929 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4930 | fi |
| 4931 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4932 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4933 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4934 | cat >>confdefs.h <<_ACEOF |
| 4935 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4936 | _ACEOF |
| 4937 | |
| 4938 | fi |
| 4939 | |
| 4940 | done |
| 4941 | |
| 4942 | |
| 4943 | |
| 4944 | |
| 4945 | for ac_header in libiberty.h |
| 4946 | do |
| 4947 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4948 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4949 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4950 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4951 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4952 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4953 | fi |
| 4954 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4955 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4956 | else |
| 4957 | # Is the header compilable? |
| 4958 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 4959 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 4960 | cat >conftest.$ac_ext <<_ACEOF |
| 4961 | /* confdefs.h. */ |
| 4962 | _ACEOF |
| 4963 | cat confdefs.h >>conftest.$ac_ext |
| 4964 | cat >>conftest.$ac_ext <<_ACEOF |
| 4965 | /* end confdefs.h. */ |
| 4966 | $ac_includes_default |
| 4967 | #include <$ac_header> |
| 4968 | _ACEOF |
| 4969 | rm -f conftest.$ac_objext |
| 4970 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4971 | (eval $ac_compile) 2>conftest.er1 |
| 4972 | ac_status=$? |
| 4973 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4974 | rm -f conftest.er1 |
| 4975 | cat conftest.err >&5 |
| 4976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4977 | (exit $ac_status); } && |
| 4978 | { ac_try='test -z "$ac_c_werror_flag" |
| 4979 | || test ! -s conftest.err' |
| 4980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4981 | (eval $ac_try) 2>&5 |
| 4982 | ac_status=$? |
| 4983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4984 | (exit $ac_status); }; } && |
| 4985 | { ac_try='test -s conftest.$ac_objext' |
| 4986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4987 | (eval $ac_try) 2>&5 |
| 4988 | ac_status=$? |
| 4989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4990 | (exit $ac_status); }; }; then |
| 4991 | ac_header_compiler=yes |
| 4992 | else |
| 4993 | echo "$as_me: failed program was:" >&5 |
| 4994 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4995 | |
| 4996 | ac_header_compiler=no |
| 4997 | fi |
| 4998 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4999 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5000 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5001 | |
| 5002 | # Is the header present? |
| 5003 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 5004 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 5005 | cat >conftest.$ac_ext <<_ACEOF |
| 5006 | /* confdefs.h. */ |
| 5007 | _ACEOF |
| 5008 | cat confdefs.h >>conftest.$ac_ext |
| 5009 | cat >>conftest.$ac_ext <<_ACEOF |
| 5010 | /* end confdefs.h. */ |
| 5011 | #include <$ac_header> |
| 5012 | _ACEOF |
| 5013 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5014 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5015 | ac_status=$? |
| 5016 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5017 | rm -f conftest.er1 |
| 5018 | cat conftest.err >&5 |
| 5019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5020 | (exit $ac_status); } >/dev/null; then |
| 5021 | if test -s conftest.err; then |
| 5022 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5023 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5024 | else |
| 5025 | ac_cpp_err= |
| 5026 | fi |
| 5027 | else |
| 5028 | ac_cpp_err=yes |
| 5029 | fi |
| 5030 | if test -z "$ac_cpp_err"; then |
| 5031 | ac_header_preproc=yes |
| 5032 | else |
| 5033 | echo "$as_me: failed program was:" >&5 |
| 5034 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5035 | |
| 5036 | ac_header_preproc=no |
| 5037 | fi |
| 5038 | rm -f conftest.err conftest.$ac_ext |
| 5039 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5040 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 5041 | |
| 5042 | # So? What about this header? |
| 5043 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5044 | yes:no: ) |
| 5045 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5046 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5047 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 5048 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 5049 | ac_header_preproc=yes |
| 5050 | ;; |
| 5051 | no:yes:* ) |
| 5052 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 5053 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 5054 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 5055 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 5056 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 5057 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 5058 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 5059 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5060 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 5061 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 5062 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 5063 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 5064 | ( |
| 5065 | cat <<\_ASBOX |
| 5066 | ## ------------------------------------------ ## |
| 5067 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 5068 | ## ------------------------------------------ ## |
| 5069 | _ASBOX |
| 5070 | ) | |
| 5071 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5072 | ;; |
| 5073 | esac |
| 5074 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5075 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5076 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5077 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5078 | else |
| 5079 | eval "$as_ac_Header=\$ac_header_preproc" |
| 5080 | fi |
| 5081 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5082 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 5083 | |
| 5084 | fi |
| 5085 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5086 | cat >>confdefs.h <<_ACEOF |
| 5087 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5088 | _ACEOF |
| 5089 | |
| 5090 | fi |
| 5091 | |
| 5092 | done |
| 5093 | |
| 5094 | |
| 5095 | echo "$as_me:$LINENO: checking for cplus_demangle in -liberty" >&5 |
| 5096 | echo $ECHO_N "checking for cplus_demangle in -liberty... $ECHO_C" >&6 |
| 5097 | if test "${ac_cv_lib_iberty_cplus_demangle+set}" = set; then |
| 5098 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5099 | else |
| 5100 | ac_check_lib_save_LIBS=$LIBS |
| 5101 | LIBS="-liberty $LIBS" |
| 5102 | cat >conftest.$ac_ext <<_ACEOF |
| 5103 | /* confdefs.h. */ |
| 5104 | _ACEOF |
| 5105 | cat confdefs.h >>conftest.$ac_ext |
| 5106 | cat >>conftest.$ac_ext <<_ACEOF |
| 5107 | /* end confdefs.h. */ |
| 5108 | |
| 5109 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5110 | #ifdef __cplusplus |
| 5111 | extern "C" |
| 5112 | #endif |
| 5113 | /* We use char because int might match the return type of a gcc2 |
| 5114 | builtin and then its argument prototype would still apply. */ |
| 5115 | char cplus_demangle (); |
| 5116 | int |
| 5117 | main () |
| 5118 | { |
| 5119 | cplus_demangle (); |
| 5120 | ; |
| 5121 | return 0; |
| 5122 | } |
| 5123 | _ACEOF |
| 5124 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5125 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5126 | (eval $ac_link) 2>conftest.er1 |
| 5127 | ac_status=$? |
| 5128 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5129 | rm -f conftest.er1 |
| 5130 | cat conftest.err >&5 |
| 5131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5132 | (exit $ac_status); } && |
| 5133 | { ac_try='test -z "$ac_c_werror_flag" |
| 5134 | || test ! -s conftest.err' |
| 5135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5136 | (eval $ac_try) 2>&5 |
| 5137 | ac_status=$? |
| 5138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5139 | (exit $ac_status); }; } && |
| 5140 | { ac_try='test -s conftest$ac_exeext' |
| 5141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5142 | (eval $ac_try) 2>&5 |
| 5143 | ac_status=$? |
| 5144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5145 | (exit $ac_status); }; }; then |
| 5146 | ac_cv_lib_iberty_cplus_demangle=yes |
| 5147 | else |
| 5148 | echo "$as_me: failed program was:" >&5 |
| 5149 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5150 | |
| 5151 | ac_cv_lib_iberty_cplus_demangle=no |
| 5152 | fi |
| 5153 | rm -f conftest.err conftest.$ac_objext \ |
| 5154 | conftest$ac_exeext conftest.$ac_ext |
| 5155 | LIBS=$ac_check_lib_save_LIBS |
| 5156 | fi |
| 5157 | echo "$as_me:$LINENO: result: $ac_cv_lib_iberty_cplus_demangle" >&5 |
| 5158 | echo "${ECHO_T}$ac_cv_lib_iberty_cplus_demangle" >&6 |
| 5159 | if test $ac_cv_lib_iberty_cplus_demangle = yes; then |
| 5160 | cat >>confdefs.h <<_ACEOF |
| 5161 | #define HAVE_LIBIBERTY 1 |
| 5162 | _ACEOF |
| 5163 | |
| 5164 | LIBS="-liberty $LIBS" |
| 5165 | |
| 5166 | else |
| 5167 | { { echo "$as_me:$LINENO: error: liberty library not found" >&5 |
| 5168 | echo "$as_me: error: liberty library not found" >&2;} |
| 5169 | { (exit 1); exit 1; }; } |
| 5170 | fi |
| 5171 | |
| 5172 | |
| 5173 | for ac_func in xcalloc |
| 5174 | do |
| 5175 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 5176 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 5177 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 5178 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 5179 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5180 | else |
| 5181 | cat >conftest.$ac_ext <<_ACEOF |
| 5182 | /* confdefs.h. */ |
| 5183 | _ACEOF |
| 5184 | cat confdefs.h >>conftest.$ac_ext |
| 5185 | cat >>conftest.$ac_ext <<_ACEOF |
| 5186 | /* end confdefs.h. */ |
| 5187 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 5188 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 5189 | #define $ac_func innocuous_$ac_func |
| 5190 | |
| 5191 | /* System header to define __stub macros and hopefully few prototypes, |
| 5192 | which can conflict with char $ac_func (); below. |
| 5193 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5194 | <limits.h> exists even on freestanding compilers. */ |
| 5195 | |
| 5196 | #ifdef __STDC__ |
| 5197 | # include <limits.h> |
| 5198 | #else |
| 5199 | # include <assert.h> |
| 5200 | #endif |
| 5201 | |
| 5202 | #undef $ac_func |
| 5203 | |
| 5204 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5205 | #ifdef __cplusplus |
| 5206 | extern "C" |
| 5207 | { |
| 5208 | #endif |
| 5209 | /* We use char because int might match the return type of a gcc2 |
| 5210 | builtin and then its argument prototype would still apply. */ |
| 5211 | char $ac_func (); |
| 5212 | /* The GNU C library defines this for functions which it implements |
| 5213 | to always fail with ENOSYS. Some functions are actually named |
| 5214 | something starting with __ and the normal name is an alias. */ |
| 5215 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5216 | choke me |
| 5217 | #else |
| 5218 | char (*f) () = $ac_func; |
| 5219 | #endif |
| 5220 | #ifdef __cplusplus |
| 5221 | } |
| 5222 | #endif |
| 5223 | |
| 5224 | int |
| 5225 | main () |
| 5226 | { |
| 5227 | return f != $ac_func; |
| 5228 | ; |
| 5229 | return 0; |
| 5230 | } |
| 5231 | _ACEOF |
| 5232 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5233 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5234 | (eval $ac_link) 2>conftest.er1 |
| 5235 | ac_status=$? |
| 5236 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5237 | rm -f conftest.er1 |
| 5238 | cat conftest.err >&5 |
| 5239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5240 | (exit $ac_status); } && |
| 5241 | { ac_try='test -z "$ac_c_werror_flag" |
| 5242 | || test ! -s conftest.err' |
| 5243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5244 | (eval $ac_try) 2>&5 |
| 5245 | ac_status=$? |
| 5246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5247 | (exit $ac_status); }; } && |
| 5248 | { ac_try='test -s conftest$ac_exeext' |
| 5249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5250 | (eval $ac_try) 2>&5 |
| 5251 | ac_status=$? |
| 5252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5253 | (exit $ac_status); }; }; then |
| 5254 | eval "$as_ac_var=yes" |
| 5255 | else |
| 5256 | echo "$as_me: failed program was:" >&5 |
| 5257 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5258 | |
| 5259 | eval "$as_ac_var=no" |
| 5260 | fi |
| 5261 | rm -f conftest.err conftest.$ac_objext \ |
| 5262 | conftest$ac_exeext conftest.$ac_ext |
| 5263 | fi |
| 5264 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 5265 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 5266 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 5267 | cat >>confdefs.h <<_ACEOF |
| 5268 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 5269 | _ACEOF |
| 5270 | |
| 5271 | fi |
| 5272 | done |
| 5273 | |
| 5274 | |
| 5275 | for ac_func in xmemdup |
| 5276 | do |
| 5277 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 5278 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 5279 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 5280 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 5281 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5282 | else |
| 5283 | cat >conftest.$ac_ext <<_ACEOF |
| 5284 | /* confdefs.h. */ |
| 5285 | _ACEOF |
| 5286 | cat confdefs.h >>conftest.$ac_ext |
| 5287 | cat >>conftest.$ac_ext <<_ACEOF |
| 5288 | /* end confdefs.h. */ |
| 5289 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 5290 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 5291 | #define $ac_func innocuous_$ac_func |
| 5292 | |
| 5293 | /* System header to define __stub macros and hopefully few prototypes, |
| 5294 | which can conflict with char $ac_func (); below. |
| 5295 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5296 | <limits.h> exists even on freestanding compilers. */ |
| 5297 | |
| 5298 | #ifdef __STDC__ |
| 5299 | # include <limits.h> |
| 5300 | #else |
| 5301 | # include <assert.h> |
| 5302 | #endif |
| 5303 | |
| 5304 | #undef $ac_func |
| 5305 | |
| 5306 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5307 | #ifdef __cplusplus |
| 5308 | extern "C" |
| 5309 | { |
| 5310 | #endif |
| 5311 | /* We use char because int might match the return type of a gcc2 |
| 5312 | builtin and then its argument prototype would still apply. */ |
| 5313 | char $ac_func (); |
| 5314 | /* The GNU C library defines this for functions which it implements |
| 5315 | to always fail with ENOSYS. Some functions are actually named |
| 5316 | something starting with __ and the normal name is an alias. */ |
| 5317 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5318 | choke me |
| 5319 | #else |
| 5320 | char (*f) () = $ac_func; |
| 5321 | #endif |
| 5322 | #ifdef __cplusplus |
| 5323 | } |
| 5324 | #endif |
| 5325 | |
| 5326 | int |
| 5327 | main () |
| 5328 | { |
| 5329 | return f != $ac_func; |
| 5330 | ; |
| 5331 | return 0; |
| 5332 | } |
| 5333 | _ACEOF |
| 5334 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5335 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5336 | (eval $ac_link) 2>conftest.er1 |
| 5337 | ac_status=$? |
| 5338 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5339 | rm -f conftest.er1 |
| 5340 | cat conftest.err >&5 |
| 5341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5342 | (exit $ac_status); } && |
| 5343 | { ac_try='test -z "$ac_c_werror_flag" |
| 5344 | || test ! -s conftest.err' |
| 5345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5346 | (eval $ac_try) 2>&5 |
| 5347 | ac_status=$? |
| 5348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5349 | (exit $ac_status); }; } && |
| 5350 | { ac_try='test -s conftest$ac_exeext' |
| 5351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5352 | (eval $ac_try) 2>&5 |
| 5353 | ac_status=$? |
| 5354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5355 | (exit $ac_status); }; }; then |
| 5356 | eval "$as_ac_var=yes" |
| 5357 | else |
| 5358 | echo "$as_me: failed program was:" >&5 |
| 5359 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5360 | |
| 5361 | eval "$as_ac_var=no" |
| 5362 | fi |
| 5363 | rm -f conftest.err conftest.$ac_objext \ |
| 5364 | conftest$ac_exeext conftest.$ac_ext |
| 5365 | fi |
| 5366 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 5367 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 5368 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 5369 | cat >>confdefs.h <<_ACEOF |
| 5370 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 5371 | _ACEOF |
| 5372 | |
| 5373 | fi |
| 5374 | done |
| 5375 | |
| 5376 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 5377 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 5378 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 5379 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5380 | else |
| 5381 | ac_check_lib_save_LIBS=$LIBS |
| 5382 | LIBS="-ldl $LIBS" |
| 5383 | cat >conftest.$ac_ext <<_ACEOF |
| 5384 | /* confdefs.h. */ |
| 5385 | _ACEOF |
| 5386 | cat confdefs.h >>conftest.$ac_ext |
| 5387 | cat >>conftest.$ac_ext <<_ACEOF |
| 5388 | /* end confdefs.h. */ |
| 5389 | |
| 5390 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5391 | #ifdef __cplusplus |
| 5392 | extern "C" |
| 5393 | #endif |
| 5394 | /* We use char because int might match the return type of a gcc2 |
| 5395 | builtin and then its argument prototype would still apply. */ |
| 5396 | char dlopen (); |
| 5397 | int |
| 5398 | main () |
| 5399 | { |
| 5400 | dlopen (); |
| 5401 | ; |
| 5402 | return 0; |
| 5403 | } |
| 5404 | _ACEOF |
| 5405 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5406 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5407 | (eval $ac_link) 2>conftest.er1 |
| 5408 | ac_status=$? |
| 5409 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5410 | rm -f conftest.er1 |
| 5411 | cat conftest.err >&5 |
| 5412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5413 | (exit $ac_status); } && |
| 5414 | { ac_try='test -z "$ac_c_werror_flag" |
| 5415 | || test ! -s conftest.err' |
| 5416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5417 | (eval $ac_try) 2>&5 |
| 5418 | ac_status=$? |
| 5419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5420 | (exit $ac_status); }; } && |
| 5421 | { ac_try='test -s conftest$ac_exeext' |
| 5422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5423 | (eval $ac_try) 2>&5 |
| 5424 | ac_status=$? |
| 5425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5426 | (exit $ac_status); }; }; then |
| 5427 | ac_cv_lib_dl_dlopen=yes |
| 5428 | else |
| 5429 | echo "$as_me: failed program was:" >&5 |
| 5430 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5431 | |
| 5432 | ac_cv_lib_dl_dlopen=no |
| 5433 | fi |
| 5434 | rm -f conftest.err conftest.$ac_objext \ |
| 5435 | conftest$ac_exeext conftest.$ac_ext |
| 5436 | LIBS=$ac_check_lib_save_LIBS |
| 5437 | fi |
| 5438 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 5439 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 5440 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 5441 | LIBS="$LIBS -ldl"; DL_LIB="-ldl" |
| 5442 | else |
| 5443 | DL_LIB="" |
| 5444 | fi |
| 5445 | |
| 5446 | echo "$as_me:$LINENO: checking for main in -lintl" >&5 |
| 5447 | echo $ECHO_N "checking for main in -lintl... $ECHO_C" >&6 |
| 5448 | if test "${ac_cv_lib_intl_main+set}" = set; then |
| 5449 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5450 | else |
| 5451 | ac_check_lib_save_LIBS=$LIBS |
| 5452 | LIBS="-lintl $LIBS" |
| 5453 | cat >conftest.$ac_ext <<_ACEOF |
| 5454 | /* confdefs.h. */ |
| 5455 | _ACEOF |
| 5456 | cat confdefs.h >>conftest.$ac_ext |
| 5457 | cat >>conftest.$ac_ext <<_ACEOF |
| 5458 | /* end confdefs.h. */ |
| 5459 | |
| 5460 | |
| 5461 | int |
| 5462 | main () |
| 5463 | { |
| 5464 | main (); |
| 5465 | ; |
| 5466 | return 0; |
| 5467 | } |
| 5468 | _ACEOF |
| 5469 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5470 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5471 | (eval $ac_link) 2>conftest.er1 |
| 5472 | ac_status=$? |
| 5473 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5474 | rm -f conftest.er1 |
| 5475 | cat conftest.err >&5 |
| 5476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5477 | (exit $ac_status); } && |
| 5478 | { ac_try='test -z "$ac_c_werror_flag" |
| 5479 | || test ! -s conftest.err' |
| 5480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5481 | (eval $ac_try) 2>&5 |
| 5482 | ac_status=$? |
| 5483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5484 | (exit $ac_status); }; } && |
| 5485 | { ac_try='test -s conftest$ac_exeext' |
| 5486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5487 | (eval $ac_try) 2>&5 |
| 5488 | ac_status=$? |
| 5489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5490 | (exit $ac_status); }; }; then |
| 5491 | ac_cv_lib_intl_main=yes |
| 5492 | else |
| 5493 | echo "$as_me: failed program was:" >&5 |
| 5494 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5495 | |
| 5496 | ac_cv_lib_intl_main=no |
| 5497 | fi |
| 5498 | rm -f conftest.err conftest.$ac_objext \ |
| 5499 | conftest$ac_exeext conftest.$ac_ext |
| 5500 | LIBS=$ac_check_lib_save_LIBS |
| 5501 | fi |
| 5502 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_main" >&5 |
| 5503 | echo "${ECHO_T}$ac_cv_lib_intl_main" >&6 |
| 5504 | if test $ac_cv_lib_intl_main = yes; then |
| 5505 | LIBS="$LIBS -lintl"; INTL_LIB="-lintl" |
| 5506 | else |
| 5507 | INTL_LIB="" |
| 5508 | fi |
| 5509 | |
| 5510 | |
| 5511 | echo "$as_me:$LINENO: checking for bfd_openr in -lbfd" >&5 |
| 5512 | echo $ECHO_N "checking for bfd_openr in -lbfd... $ECHO_C" >&6 |
| 5513 | if test "${ac_cv_lib_bfd_bfd_openr+set}" = set; then |
| 5514 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5515 | else |
| 5516 | ac_check_lib_save_LIBS=$LIBS |
| 5517 | LIBS="-lbfd $LIBS" |
| 5518 | cat >conftest.$ac_ext <<_ACEOF |
| 5519 | /* confdefs.h. */ |
| 5520 | _ACEOF |
| 5521 | cat confdefs.h >>conftest.$ac_ext |
| 5522 | cat >>conftest.$ac_ext <<_ACEOF |
| 5523 | /* end confdefs.h. */ |
| 5524 | |
| 5525 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5526 | #ifdef __cplusplus |
| 5527 | extern "C" |
| 5528 | #endif |
| 5529 | /* We use char because int might match the return type of a gcc2 |
| 5530 | builtin and then its argument prototype would still apply. */ |
| 5531 | char bfd_openr (); |
| 5532 | int |
| 5533 | main () |
| 5534 | { |
| 5535 | bfd_openr (); |
| 5536 | ; |
| 5537 | return 0; |
| 5538 | } |
| 5539 | _ACEOF |
| 5540 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5541 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5542 | (eval $ac_link) 2>conftest.er1 |
| 5543 | ac_status=$? |
| 5544 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5545 | rm -f conftest.er1 |
| 5546 | cat conftest.err >&5 |
| 5547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5548 | (exit $ac_status); } && |
| 5549 | { ac_try='test -z "$ac_c_werror_flag" |
| 5550 | || test ! -s conftest.err' |
| 5551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5552 | (eval $ac_try) 2>&5 |
| 5553 | ac_status=$? |
| 5554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5555 | (exit $ac_status); }; } && |
| 5556 | { ac_try='test -s conftest$ac_exeext' |
| 5557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5558 | (eval $ac_try) 2>&5 |
| 5559 | ac_status=$? |
| 5560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5561 | (exit $ac_status); }; }; then |
| 5562 | ac_cv_lib_bfd_bfd_openr=yes |
| 5563 | else |
| 5564 | echo "$as_me: failed program was:" >&5 |
| 5565 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5566 | |
| 5567 | ac_cv_lib_bfd_bfd_openr=no |
| 5568 | fi |
| 5569 | rm -f conftest.err conftest.$ac_objext \ |
| 5570 | conftest$ac_exeext conftest.$ac_ext |
| 5571 | LIBS=$ac_check_lib_save_LIBS |
| 5572 | fi |
| 5573 | echo "$as_me:$LINENO: result: $ac_cv_lib_bfd_bfd_openr" >&5 |
| 5574 | echo "${ECHO_T}$ac_cv_lib_bfd_bfd_openr" >&6 |
| 5575 | if test $ac_cv_lib_bfd_bfd_openr = yes; then |
| 5576 | cat >>confdefs.h <<_ACEOF |
| 5577 | #define HAVE_LIBBFD 1 |
| 5578 | _ACEOF |
| 5579 | |
| 5580 | LIBS="-lbfd $LIBS" |
| 5581 | |
| 5582 | else |
| 5583 | { { echo "$as_me:$LINENO: error: bfd library not found" >&5 |
| 5584 | echo "$as_me: error: bfd library not found" >&2;} |
| 5585 | { (exit 1); exit 1; }; } |
| 5586 | fi |
| 5587 | |
| 5588 | |
| 5589 | # Determine if bfd_get_synthetic_symtab macro is available |
| 5590 | OS="`uname`" |
| 5591 | if test "$OS" = "Linux"; then |
| 5592 | echo "$as_me:$LINENO: checking whether bfd_get_synthetic_symtab() exists in BFD library" >&5 |
| 5593 | echo $ECHO_N "checking whether bfd_get_synthetic_symtab() exists in BFD library... $ECHO_C" >&6 |
| 5594 | rm -f test-for-synth |
| 5595 | cat >conftest.$ac_ext <<_ACEOF |
| 5596 | /* confdefs.h. */ |
| 5597 | _ACEOF |
| 5598 | cat confdefs.h >>conftest.$ac_ext |
| 5599 | cat >>conftest.$ac_ext <<_ACEOF |
| 5600 | /* end confdefs.h. */ |
| 5601 | #include <bfd.h> |
| 5602 | int |
| 5603 | main () |
| 5604 | { |
| 5605 | asymbol * synthsyms; bfd * ibfd = 0; |
| 5606 | long synth_count = bfd_get_synthetic_symtab(ibfd, 0, 0, 0, 0, &synthsyms); |
| 5607 | extern const bfd_target bfd_elf64_powerpc_vec; |
| 5608 | extern const bfd_target bfd_elf64_powerpcle_vec; |
| 5609 | char * ppc_name = bfd_elf64_powerpc_vec.name; |
| 5610 | char * ppcle_name = bfd_elf64_powerpcle_vec.name; |
| 5611 | ; |
| 5612 | return 0; |
| 5613 | } |
| 5614 | |
| 5615 | _ACEOF |
| 5616 | $CC conftest.$ac_ext $LIBS -o test-for-synth > /dev/null 2>&1 |
| 5617 | if test -f test-for-synth; then |
| 5618 | echo "yes" |
| 5619 | SYNTHESIZE_SYMBOLS='1' |
| 5620 | else |
| 5621 | echo "no" |
| 5622 | SYNTHESIZE_SYMBOLS='0' |
| 5623 | fi |
| 5624 | |
| 5625 | cat >>confdefs.h <<_ACEOF |
| 5626 | #define SYNTHESIZE_SYMBOLS $SYNTHESIZE_SYMBOLS |
| 5627 | _ACEOF |
| 5628 | |
| 5629 | rm -f test-for-synth* |
| 5630 | |
| 5631 | fi |
| 5632 | |
| 5633 | |
| 5634 | |
| 5635 | # C++ tests |
| 5636 | |
| 5637 | ac_ext=cc |
| 5638 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 5639 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5640 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5641 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 5642 | |
| 5643 | |
| 5644 | |
| 5645 | |
| 5646 | echo "$as_me:$LINENO: checking popt prototype" >&5 |
| 5647 | echo $ECHO_N "checking popt prototype... $ECHO_C" >&6 |
| 5648 | SAVE_CXXFLAGS=$CXXFLAGS |
| 5649 | CXXFLAGS="-Werror $CXXFLAGS" |
| 5650 | cat >conftest.$ac_ext <<_ACEOF |
| 5651 | /* confdefs.h. */ |
| 5652 | _ACEOF |
| 5653 | cat confdefs.h >>conftest.$ac_ext |
| 5654 | cat >>conftest.$ac_ext <<_ACEOF |
| 5655 | /* end confdefs.h. */ |
| 5656 | #include <popt.h> |
| 5657 | int |
| 5658 | main () |
| 5659 | { |
| 5660 | |
| 5661 | int c; char **v; |
| 5662 | poptGetContext(0, c, v, 0, 0); |
| 5663 | |
| 5664 | ; |
| 5665 | return 0; |
| 5666 | } |
| 5667 | _ACEOF |
| 5668 | rm -f conftest.$ac_objext |
| 5669 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5670 | (eval $ac_compile) 2>conftest.er1 |
| 5671 | ac_status=$? |
| 5672 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5673 | rm -f conftest.er1 |
| 5674 | cat conftest.err >&5 |
| 5675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5676 | (exit $ac_status); } && |
| 5677 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 5678 | || test ! -s conftest.err' |
| 5679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5680 | (eval $ac_try) 2>&5 |
| 5681 | ac_status=$? |
| 5682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5683 | (exit $ac_status); }; } && |
| 5684 | { ac_try='test -s conftest.$ac_objext' |
| 5685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5686 | (eval $ac_try) 2>&5 |
| 5687 | ac_status=$? |
| 5688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5689 | (exit $ac_status); }; }; then |
| 5690 | echo "$as_me:$LINENO: result: takes char **" >&5 |
| 5691 | echo "${ECHO_T}takes char **" >&6; |
| 5692 | else |
| 5693 | echo "$as_me: failed program was:" >&5 |
| 5694 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5695 | |
| 5696 | echo "$as_me:$LINENO: result: takes const char **" >&5 |
| 5697 | echo "${ECHO_T}takes const char **" >&6; |
| 5698 | cat >>confdefs.h <<\_ACEOF |
| 5699 | #define CONST_POPT 1 |
| 5700 | _ACEOF |
| 5701 | |
| 5702 | fi |
| 5703 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5704 | CXXFLAGS="$SAVE_CXXFLAGS" |
| 5705 | |
| 5706 | |
| 5707 | |
| 5708 | echo "$as_me:$LINENO: checking whether to use included sstream" >&5 |
| 5709 | echo $ECHO_N "checking whether to use included sstream... $ECHO_C" >&6 |
| 5710 | cat >conftest.$ac_ext <<_ACEOF |
| 5711 | /* confdefs.h. */ |
| 5712 | _ACEOF |
| 5713 | cat confdefs.h >>conftest.$ac_ext |
| 5714 | cat >>conftest.$ac_ext <<_ACEOF |
| 5715 | /* end confdefs.h. */ |
| 5716 | #include <sstream> |
| 5717 | int |
| 5718 | main () |
| 5719 | { |
| 5720 | |
| 5721 | ; |
| 5722 | return 0; |
| 5723 | } |
| 5724 | _ACEOF |
| 5725 | rm -f conftest.$ac_objext |
| 5726 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5727 | (eval $ac_compile) 2>conftest.er1 |
| 5728 | ac_status=$? |
| 5729 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5730 | rm -f conftest.er1 |
| 5731 | cat conftest.err >&5 |
| 5732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5733 | (exit $ac_status); } && |
| 5734 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 5735 | || test ! -s conftest.err' |
| 5736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5737 | (eval $ac_try) 2>&5 |
| 5738 | ac_status=$? |
| 5739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5740 | (exit $ac_status); }; } && |
| 5741 | { ac_try='test -s conftest.$ac_objext' |
| 5742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5743 | (eval $ac_try) 2>&5 |
| 5744 | ac_status=$? |
| 5745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5746 | (exit $ac_status); }; }; then |
| 5747 | echo "$as_me:$LINENO: result: no" >&5 |
| 5748 | echo "${ECHO_T}no" >&6; |
| 5749 | else |
| 5750 | echo "$as_me: failed program was:" >&5 |
| 5751 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5752 | |
| 5753 | echo "$as_me:$LINENO: result: yes" >&5 |
| 5754 | echo "${ECHO_T}yes" >&6; OP_CXXFLAGS="$OP_CXXFLAGS -I\${top_srcdir}/include" |
| 5755 | fi |
| 5756 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5757 | |
| 5758 | |
| 5759 | |
| 5760 | echo "$as_me:$LINENO: checking whether bfd defines bool" >&5 |
| 5761 | echo $ECHO_N "checking whether bfd defines bool... $ECHO_C" >&6 |
| 5762 | cat >conftest.$ac_ext <<_ACEOF |
| 5763 | /* confdefs.h. */ |
| 5764 | _ACEOF |
| 5765 | cat confdefs.h >>conftest.$ac_ext |
| 5766 | cat >>conftest.$ac_ext <<_ACEOF |
| 5767 | /* end confdefs.h. */ |
| 5768 | #include <bfd.h> |
| 5769 | int |
| 5770 | main () |
| 5771 | { |
| 5772 | |
| 5773 | ; |
| 5774 | return 0; |
| 5775 | } |
| 5776 | _ACEOF |
| 5777 | rm -f conftest.$ac_objext |
| 5778 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5779 | (eval $ac_compile) 2>conftest.er1 |
| 5780 | ac_status=$? |
| 5781 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5782 | rm -f conftest.er1 |
| 5783 | cat conftest.err >&5 |
| 5784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5785 | (exit $ac_status); } && |
| 5786 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 5787 | || test ! -s conftest.err' |
| 5788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5789 | (eval $ac_try) 2>&5 |
| 5790 | ac_status=$? |
| 5791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5792 | (exit $ac_status); }; } && |
| 5793 | { ac_try='test -s conftest.$ac_objext' |
| 5794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5795 | (eval $ac_try) 2>&5 |
| 5796 | ac_status=$? |
| 5797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5798 | (exit $ac_status); }; }; then |
| 5799 | echo "$as_me:$LINENO: result: no" >&5 |
| 5800 | echo "${ECHO_T}no" >&6; |
| 5801 | else |
| 5802 | echo "$as_me: failed program was:" >&5 |
| 5803 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5804 | |
| 5805 | echo "$as_me:$LINENO: result: yes" >&5 |
| 5806 | echo "${ECHO_T}yes" >&6; |
| 5807 | cat >>confdefs.h <<\_ACEOF |
| 5808 | #define TRUE_FALSE_ALREADY_DEFINED 1 |
| 5809 | _ACEOF |
| 5810 | |
| 5811 | fi |
| 5812 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5813 | |
| 5814 | |
| 5815 | echo "$as_me:$LINENO: checking type of size_t" >&5 |
| 5816 | echo $ECHO_N "checking type of size_t... $ECHO_C" >&6 |
| 5817 | for f in "unsigned" "unsigned long"; do |
| 5818 | |
| 5819 | |
| 5820 | |
| 5821 | ac_ext=c |
| 5822 | ac_cpp='$CPP $CPPFLAGS' |
| 5823 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5824 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5825 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5826 | |
| 5827 | SAVE_CFLAGS=$CFLAGS |
| 5828 | CFLAGS="-Werror $CFLAGS" |
| 5829 | |
| 5830 | cat >conftest.$ac_ext <<_ACEOF |
| 5831 | /* confdefs.h. */ |
| 5832 | _ACEOF |
| 5833 | cat confdefs.h >>conftest.$ac_ext |
| 5834 | cat >>conftest.$ac_ext <<_ACEOF |
| 5835 | /* end confdefs.h. */ |
| 5836 | |
| 5837 | #include <stddef.h> |
| 5838 | |
| 5839 | int |
| 5840 | main () |
| 5841 | { |
| 5842 | |
| 5843 | typedef void (*fct1)(size_t); |
| 5844 | typedef void (*fct2)($f); |
| 5845 | fct1 f1 = 0; |
| 5846 | fct2 f2 = 0; |
| 5847 | if (f1 == f2) {} |
| 5848 | |
| 5849 | ; |
| 5850 | return 0; |
| 5851 | } |
| 5852 | _ACEOF |
| 5853 | rm -f conftest.$ac_objext |
| 5854 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5855 | (eval $ac_compile) 2>conftest.er1 |
| 5856 | ac_status=$? |
| 5857 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5858 | rm -f conftest.er1 |
| 5859 | cat conftest.err >&5 |
| 5860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5861 | (exit $ac_status); } && |
| 5862 | { ac_try='test -z "$ac_c_werror_flag" |
| 5863 | || test ! -s conftest.err' |
| 5864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5865 | (eval $ac_try) 2>&5 |
| 5866 | ac_status=$? |
| 5867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5868 | (exit $ac_status); }; } && |
| 5869 | { ac_try='test -s conftest.$ac_objext' |
| 5870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5871 | (eval $ac_try) 2>&5 |
| 5872 | ac_status=$? |
| 5873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5874 | (exit $ac_status); }; }; then |
| 5875 | SIZE_T_TYPE="$f" |
| 5876 | else |
| 5877 | echo "$as_me: failed program was:" >&5 |
| 5878 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5879 | |
| 5880 | SIZE_T_TYPE="" |
| 5881 | fi |
| 5882 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5883 | |
| 5884 | CFLAGS=$SAVE_CFLAGS |
| 5885 | ac_ext=cc |
| 5886 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 5887 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5888 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5889 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 5890 | |
| 5891 | |
| 5892 | if test -n "${SIZE_T_TYPE}"; then |
| 5893 | break |
| 5894 | fi |
| 5895 | done |
| 5896 | if test -n "${SIZE_T_TYPE}"; then |
| 5897 | echo "$as_me:$LINENO: result: ${SIZE_T_TYPE}" >&5 |
| 5898 | echo "${ECHO_T}${SIZE_T_TYPE}" >&6 |
| 5899 | else |
| 5900 | { { echo "$as_me:$LINENO: error: not found" >&5 |
| 5901 | echo "$as_me: error: not found" >&2;} |
| 5902 | { (exit 1); exit 1; }; } |
| 5903 | fi |
| 5904 | |
| 5905 | |
| 5906 | |
| 5907 | echo "$as_me:$LINENO: checking type of ptrdiff_t" >&5 |
| 5908 | echo $ECHO_N "checking type of ptrdiff_t... $ECHO_C" >&6 |
| 5909 | for f in "int" "long"; do |
| 5910 | |
| 5911 | |
| 5912 | |
| 5913 | ac_ext=c |
| 5914 | ac_cpp='$CPP $CPPFLAGS' |
| 5915 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5916 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5917 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5918 | |
| 5919 | SAVE_CFLAGS=$CFLAGS |
| 5920 | CFLAGS="-Werror $CFLAGS" |
| 5921 | |
| 5922 | cat >conftest.$ac_ext <<_ACEOF |
| 5923 | /* confdefs.h. */ |
| 5924 | _ACEOF |
| 5925 | cat confdefs.h >>conftest.$ac_ext |
| 5926 | cat >>conftest.$ac_ext <<_ACEOF |
| 5927 | /* end confdefs.h. */ |
| 5928 | |
| 5929 | #include <stddef.h> |
| 5930 | |
| 5931 | int |
| 5932 | main () |
| 5933 | { |
| 5934 | |
| 5935 | typedef void (*fct1)(ptrdiff_t); |
| 5936 | typedef void (*fct2)($f); |
| 5937 | fct1 f1 = 0; |
| 5938 | fct2 f2 = 0; |
| 5939 | if (f1 == f2) {} |
| 5940 | |
| 5941 | ; |
| 5942 | return 0; |
| 5943 | } |
| 5944 | _ACEOF |
| 5945 | rm -f conftest.$ac_objext |
| 5946 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5947 | (eval $ac_compile) 2>conftest.er1 |
| 5948 | ac_status=$? |
| 5949 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5950 | rm -f conftest.er1 |
| 5951 | cat conftest.err >&5 |
| 5952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5953 | (exit $ac_status); } && |
| 5954 | { ac_try='test -z "$ac_c_werror_flag" |
| 5955 | || test ! -s conftest.err' |
| 5956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5957 | (eval $ac_try) 2>&5 |
| 5958 | ac_status=$? |
| 5959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5960 | (exit $ac_status); }; } && |
| 5961 | { ac_try='test -s conftest.$ac_objext' |
| 5962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5963 | (eval $ac_try) 2>&5 |
| 5964 | ac_status=$? |
| 5965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5966 | (exit $ac_status); }; }; then |
| 5967 | PTRDIFF_T_TYPE="$f" |
| 5968 | else |
| 5969 | echo "$as_me: failed program was:" >&5 |
| 5970 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5971 | |
| 5972 | PTRDIFF_T_TYPE="" |
| 5973 | fi |
| 5974 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5975 | |
| 5976 | CFLAGS=$SAVE_CFLAGS |
| 5977 | ac_ext=cc |
| 5978 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 5979 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5980 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5981 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 5982 | |
| 5983 | |
| 5984 | if test -n "${PTRDIFF_T_TYPE}"; then |
| 5985 | break |
| 5986 | fi |
| 5987 | done |
| 5988 | if test -n "${PTRDIFF_T_TYPE}"; then |
| 5989 | echo "$as_me:$LINENO: result: ${PTRDIFF_T_TYPE}" >&5 |
| 5990 | echo "${ECHO_T}${PTRDIFF_T_TYPE}" >&6 |
| 5991 | else |
| 5992 | { { echo "$as_me:$LINENO: error: not found" >&5 |
| 5993 | echo "$as_me: error: not found" >&2;} |
| 5994 | { (exit 1); exit 1; }; } |
| 5995 | fi |
| 5996 | |
| 5997 | |
| 5998 | |
| 5999 | ac_ext=cc |
| 6000 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 6001 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6002 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6003 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 6004 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
| 6005 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
| 6006 | if test -z "$CXXCPP"; then |
| 6007 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
| 6008 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6009 | else |
| 6010 | # Double quotes because CXXCPP needs to be expanded |
| 6011 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 6012 | do |
| 6013 | ac_preproc_ok=false |
| 6014 | for ac_cxx_preproc_warn_flag in '' yes |
| 6015 | do |
| 6016 | # Use a header file that comes with gcc, so configuring glibc |
| 6017 | # with a fresh cross-compiler works. |
| 6018 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6019 | # <limits.h> exists even on freestanding compilers. |
| 6020 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 6021 | # not just through cpp. "Syntax error" is here to catch this case. |
| 6022 | cat >conftest.$ac_ext <<_ACEOF |
| 6023 | /* confdefs.h. */ |
| 6024 | _ACEOF |
| 6025 | cat confdefs.h >>conftest.$ac_ext |
| 6026 | cat >>conftest.$ac_ext <<_ACEOF |
| 6027 | /* end confdefs.h. */ |
| 6028 | #ifdef __STDC__ |
| 6029 | # include <limits.h> |
| 6030 | #else |
| 6031 | # include <assert.h> |
| 6032 | #endif |
| 6033 | Syntax error |
| 6034 | _ACEOF |
| 6035 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6036 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6037 | ac_status=$? |
| 6038 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6039 | rm -f conftest.er1 |
| 6040 | cat conftest.err >&5 |
| 6041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6042 | (exit $ac_status); } >/dev/null; then |
| 6043 | if test -s conftest.err; then |
| 6044 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 6045 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 6046 | else |
| 6047 | ac_cpp_err= |
| 6048 | fi |
| 6049 | else |
| 6050 | ac_cpp_err=yes |
| 6051 | fi |
| 6052 | if test -z "$ac_cpp_err"; then |
| 6053 | : |
| 6054 | else |
| 6055 | echo "$as_me: failed program was:" >&5 |
| 6056 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6057 | |
| 6058 | # Broken: fails on valid input. |
| 6059 | continue |
| 6060 | fi |
| 6061 | rm -f conftest.err conftest.$ac_ext |
| 6062 | |
| 6063 | # OK, works on sane cases. Now check whether non-existent headers |
| 6064 | # can be detected and how. |
| 6065 | cat >conftest.$ac_ext <<_ACEOF |
| 6066 | /* confdefs.h. */ |
| 6067 | _ACEOF |
| 6068 | cat confdefs.h >>conftest.$ac_ext |
| 6069 | cat >>conftest.$ac_ext <<_ACEOF |
| 6070 | /* end confdefs.h. */ |
| 6071 | #include <ac_nonexistent.h> |
| 6072 | _ACEOF |
| 6073 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6074 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6075 | ac_status=$? |
| 6076 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6077 | rm -f conftest.er1 |
| 6078 | cat conftest.err >&5 |
| 6079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6080 | (exit $ac_status); } >/dev/null; then |
| 6081 | if test -s conftest.err; then |
| 6082 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 6083 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 6084 | else |
| 6085 | ac_cpp_err= |
| 6086 | fi |
| 6087 | else |
| 6088 | ac_cpp_err=yes |
| 6089 | fi |
| 6090 | if test -z "$ac_cpp_err"; then |
| 6091 | # Broken: success on invalid input. |
| 6092 | continue |
| 6093 | else |
| 6094 | echo "$as_me: failed program was:" >&5 |
| 6095 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6096 | |
| 6097 | # Passes both tests. |
| 6098 | ac_preproc_ok=: |
| 6099 | break |
| 6100 | fi |
| 6101 | rm -f conftest.err conftest.$ac_ext |
| 6102 | |
| 6103 | done |
| 6104 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 6105 | rm -f conftest.err conftest.$ac_ext |
| 6106 | if $ac_preproc_ok; then |
| 6107 | break |
| 6108 | fi |
| 6109 | |
| 6110 | done |
| 6111 | ac_cv_prog_CXXCPP=$CXXCPP |
| 6112 | |
| 6113 | fi |
| 6114 | CXXCPP=$ac_cv_prog_CXXCPP |
| 6115 | else |
| 6116 | ac_cv_prog_CXXCPP=$CXXCPP |
| 6117 | fi |
| 6118 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
| 6119 | echo "${ECHO_T}$CXXCPP" >&6 |
| 6120 | ac_preproc_ok=false |
| 6121 | for ac_cxx_preproc_warn_flag in '' yes |
| 6122 | do |
| 6123 | # Use a header file that comes with gcc, so configuring glibc |
| 6124 | # with a fresh cross-compiler works. |
| 6125 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6126 | # <limits.h> exists even on freestanding compilers. |
| 6127 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 6128 | # not just through cpp. "Syntax error" is here to catch this case. |
| 6129 | cat >conftest.$ac_ext <<_ACEOF |
| 6130 | /* confdefs.h. */ |
| 6131 | _ACEOF |
| 6132 | cat confdefs.h >>conftest.$ac_ext |
| 6133 | cat >>conftest.$ac_ext <<_ACEOF |
| 6134 | /* end confdefs.h. */ |
| 6135 | #ifdef __STDC__ |
| 6136 | # include <limits.h> |
| 6137 | #else |
| 6138 | # include <assert.h> |
| 6139 | #endif |
| 6140 | Syntax error |
| 6141 | _ACEOF |
| 6142 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6143 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6144 | ac_status=$? |
| 6145 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6146 | rm -f conftest.er1 |
| 6147 | cat conftest.err >&5 |
| 6148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6149 | (exit $ac_status); } >/dev/null; then |
| 6150 | if test -s conftest.err; then |
| 6151 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 6152 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 6153 | else |
| 6154 | ac_cpp_err= |
| 6155 | fi |
| 6156 | else |
| 6157 | ac_cpp_err=yes |
| 6158 | fi |
| 6159 | if test -z "$ac_cpp_err"; then |
| 6160 | : |
| 6161 | else |
| 6162 | echo "$as_me: failed program was:" >&5 |
| 6163 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6164 | |
| 6165 | # Broken: fails on valid input. |
| 6166 | continue |
| 6167 | fi |
| 6168 | rm -f conftest.err conftest.$ac_ext |
| 6169 | |
| 6170 | # OK, works on sane cases. Now check whether non-existent headers |
| 6171 | # can be detected and how. |
| 6172 | cat >conftest.$ac_ext <<_ACEOF |
| 6173 | /* confdefs.h. */ |
| 6174 | _ACEOF |
| 6175 | cat confdefs.h >>conftest.$ac_ext |
| 6176 | cat >>conftest.$ac_ext <<_ACEOF |
| 6177 | /* end confdefs.h. */ |
| 6178 | #include <ac_nonexistent.h> |
| 6179 | _ACEOF |
| 6180 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6181 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6182 | ac_status=$? |
| 6183 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6184 | rm -f conftest.er1 |
| 6185 | cat conftest.err >&5 |
| 6186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6187 | (exit $ac_status); } >/dev/null; then |
| 6188 | if test -s conftest.err; then |
| 6189 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 6190 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 6191 | else |
| 6192 | ac_cpp_err= |
| 6193 | fi |
| 6194 | else |
| 6195 | ac_cpp_err=yes |
| 6196 | fi |
| 6197 | if test -z "$ac_cpp_err"; then |
| 6198 | # Broken: success on invalid input. |
| 6199 | continue |
| 6200 | else |
| 6201 | echo "$as_me: failed program was:" >&5 |
| 6202 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6203 | |
| 6204 | # Passes both tests. |
| 6205 | ac_preproc_ok=: |
| 6206 | break |
| 6207 | fi |
| 6208 | rm -f conftest.err conftest.$ac_ext |
| 6209 | |
| 6210 | done |
| 6211 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 6212 | rm -f conftest.err conftest.$ac_ext |
| 6213 | if $ac_preproc_ok; then |
| 6214 | : |
| 6215 | else |
| 6216 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 6217 | See \`config.log' for more details." >&5 |
| 6218 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 6219 | See \`config.log' for more details." >&2;} |
| 6220 | { (exit 1); exit 1; }; } |
| 6221 | fi |
| 6222 | |
| 6223 | ac_ext=cc |
| 6224 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 6225 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6226 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6227 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 6228 | |
| 6229 | |
| 6230 | echo "$as_me:$LINENO: checking for X" >&5 |
| 6231 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
| 6232 | |
| 6233 | |
| 6234 | # Check whether --with-x or --without-x was given. |
| 6235 | if test "${with_x+set}" = set; then |
| 6236 | withval="$with_x" |
| 6237 | |
| 6238 | fi; |
| 6239 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
| 6240 | if test "x$with_x" = xno; then |
| 6241 | # The user explicitly disabled X. |
| 6242 | have_x=disabled |
| 6243 | else |
| 6244 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then |
| 6245 | # Both variables are already set. |
| 6246 | have_x=yes |
| 6247 | else |
| 6248 | if test "${ac_cv_have_x+set}" = set; then |
| 6249 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6250 | else |
| 6251 | # One or both of the vars are not set, and there is no cached value. |
| 6252 | ac_x_includes=no ac_x_libraries=no |
| 6253 | rm -fr conftest.dir |
| 6254 | if mkdir conftest.dir; then |
| 6255 | cd conftest.dir |
| 6256 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
| 6257 | cat >Imakefile <<'_ACEOF' |
| 6258 | acfindx: |
| 6259 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' |
| 6260 | _ACEOF |
| 6261 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
| 6262 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 6263 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
| 6264 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
| 6265 | for ac_extension in a so sl; do |
| 6266 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
| 6267 | test -f $ac_im_libdir/libX11.$ac_extension; then |
| 6268 | ac_im_usrlibdir=$ac_im_libdir; break |
| 6269 | fi |
| 6270 | done |
| 6271 | # Screen out bogus values from the imake configuration. They are |
| 6272 | # bogus both because they are the default anyway, and because |
| 6273 | # using them would break gcc on systems where it needs fixed includes. |
| 6274 | case $ac_im_incroot in |
| 6275 | /usr/include) ;; |
| 6276 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
| 6277 | esac |
| 6278 | case $ac_im_usrlibdir in |
| 6279 | /usr/lib | /lib) ;; |
| 6280 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
| 6281 | esac |
| 6282 | fi |
| 6283 | cd .. |
| 6284 | rm -fr conftest.dir |
| 6285 | fi |
| 6286 | |
| 6287 | # Standard set of common directories for X headers. |
| 6288 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 6289 | ac_x_header_dirs=' |
| 6290 | /usr/X11/include |
| 6291 | /usr/X11R6/include |
| 6292 | /usr/X11R5/include |
| 6293 | /usr/X11R4/include |
| 6294 | |
| 6295 | /usr/include/X11 |
| 6296 | /usr/include/X11R6 |
| 6297 | /usr/include/X11R5 |
| 6298 | /usr/include/X11R4 |
| 6299 | |
| 6300 | /usr/local/X11/include |
| 6301 | /usr/local/X11R6/include |
| 6302 | /usr/local/X11R5/include |
| 6303 | /usr/local/X11R4/include |
| 6304 | |
| 6305 | /usr/local/include/X11 |
| 6306 | /usr/local/include/X11R6 |
| 6307 | /usr/local/include/X11R5 |
| 6308 | /usr/local/include/X11R4 |
| 6309 | |
| 6310 | /usr/X386/include |
| 6311 | /usr/x386/include |
| 6312 | /usr/XFree86/include/X11 |
| 6313 | |
| 6314 | /usr/include |
| 6315 | /usr/local/include |
| 6316 | /usr/unsupported/include |
| 6317 | /usr/athena/include |
| 6318 | /usr/local/x11r5/include |
| 6319 | /usr/lpp/Xamples/include |
| 6320 | |
| 6321 | /usr/openwin/include |
| 6322 | /usr/openwin/share/include' |
| 6323 | |
| 6324 | if test "$ac_x_includes" = no; then |
| 6325 | # Guess where to find include files, by looking for Intrinsic.h. |
| 6326 | # First, try using that file with no special directory specified. |
| 6327 | cat >conftest.$ac_ext <<_ACEOF |
| 6328 | /* confdefs.h. */ |
| 6329 | _ACEOF |
| 6330 | cat confdefs.h >>conftest.$ac_ext |
| 6331 | cat >>conftest.$ac_ext <<_ACEOF |
| 6332 | /* end confdefs.h. */ |
| 6333 | #include <X11/Intrinsic.h> |
| 6334 | _ACEOF |
| 6335 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6336 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6337 | ac_status=$? |
| 6338 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6339 | rm -f conftest.er1 |
| 6340 | cat conftest.err >&5 |
| 6341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6342 | (exit $ac_status); } >/dev/null; then |
| 6343 | if test -s conftest.err; then |
| 6344 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 6345 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 6346 | else |
| 6347 | ac_cpp_err= |
| 6348 | fi |
| 6349 | else |
| 6350 | ac_cpp_err=yes |
| 6351 | fi |
| 6352 | if test -z "$ac_cpp_err"; then |
| 6353 | # We can compile using X headers with no special include directory. |
| 6354 | ac_x_includes= |
| 6355 | else |
| 6356 | echo "$as_me: failed program was:" >&5 |
| 6357 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6358 | |
| 6359 | for ac_dir in $ac_x_header_dirs; do |
| 6360 | if test -r "$ac_dir/X11/Intrinsic.h"; then |
| 6361 | ac_x_includes=$ac_dir |
| 6362 | break |
| 6363 | fi |
| 6364 | done |
| 6365 | fi |
| 6366 | rm -f conftest.err conftest.$ac_ext |
| 6367 | fi # $ac_x_includes = no |
| 6368 | |
| 6369 | if test "$ac_x_libraries" = no; then |
| 6370 | # Check for the libraries. |
| 6371 | # See if we find them without any special options. |
| 6372 | # Don't add to $LIBS permanently. |
| 6373 | ac_save_LIBS=$LIBS |
| 6374 | LIBS="-lXt $LIBS" |
| 6375 | cat >conftest.$ac_ext <<_ACEOF |
| 6376 | /* confdefs.h. */ |
| 6377 | _ACEOF |
| 6378 | cat confdefs.h >>conftest.$ac_ext |
| 6379 | cat >>conftest.$ac_ext <<_ACEOF |
| 6380 | /* end confdefs.h. */ |
| 6381 | #include <X11/Intrinsic.h> |
| 6382 | int |
| 6383 | main () |
| 6384 | { |
| 6385 | XtMalloc (0) |
| 6386 | ; |
| 6387 | return 0; |
| 6388 | } |
| 6389 | _ACEOF |
| 6390 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6391 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6392 | (eval $ac_link) 2>conftest.er1 |
| 6393 | ac_status=$? |
| 6394 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6395 | rm -f conftest.er1 |
| 6396 | cat conftest.err >&5 |
| 6397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6398 | (exit $ac_status); } && |
| 6399 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 6400 | || test ! -s conftest.err' |
| 6401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6402 | (eval $ac_try) 2>&5 |
| 6403 | ac_status=$? |
| 6404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6405 | (exit $ac_status); }; } && |
| 6406 | { ac_try='test -s conftest$ac_exeext' |
| 6407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6408 | (eval $ac_try) 2>&5 |
| 6409 | ac_status=$? |
| 6410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6411 | (exit $ac_status); }; }; then |
| 6412 | LIBS=$ac_save_LIBS |
| 6413 | # We can link X programs with no special library path. |
| 6414 | ac_x_libraries= |
| 6415 | else |
| 6416 | echo "$as_me: failed program was:" >&5 |
| 6417 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6418 | |
| 6419 | LIBS=$ac_save_LIBS |
| 6420 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
| 6421 | do |
| 6422 | # Don't even attempt the hair of trying to link an X program! |
| 6423 | for ac_extension in a so sl; do |
| 6424 | if test -r $ac_dir/libXt.$ac_extension; then |
| 6425 | ac_x_libraries=$ac_dir |
| 6426 | break 2 |
| 6427 | fi |
| 6428 | done |
| 6429 | done |
| 6430 | fi |
| 6431 | rm -f conftest.err conftest.$ac_objext \ |
| 6432 | conftest$ac_exeext conftest.$ac_ext |
| 6433 | fi # $ac_x_libraries = no |
| 6434 | |
| 6435 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
| 6436 | # Didn't find X anywhere. Cache the known absence of X. |
| 6437 | ac_cv_have_x="have_x=no" |
| 6438 | else |
| 6439 | # Record where we found X for the cache. |
| 6440 | ac_cv_have_x="have_x=yes \ |
| 6441 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
| 6442 | fi |
| 6443 | fi |
| 6444 | |
| 6445 | fi |
| 6446 | eval "$ac_cv_have_x" |
| 6447 | fi # $with_x != no |
| 6448 | |
| 6449 | if test "$have_x" != yes; then |
| 6450 | echo "$as_me:$LINENO: result: $have_x" >&5 |
| 6451 | echo "${ECHO_T}$have_x" >&6 |
| 6452 | no_x=yes |
| 6453 | else |
| 6454 | # If each of the values was on the command line, it overrides each guess. |
| 6455 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 6456 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
| 6457 | # Update the cache value to reflect the command line values. |
| 6458 | ac_cv_have_x="have_x=yes \ |
| 6459 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" |
| 6460 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
| 6461 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 |
| 6462 | fi |
| 6463 | |
| 6464 | if test "$no_x" = yes; then |
| 6465 | # Not all programs may use this symbol, but it does not hurt to define it. |
| 6466 | |
| 6467 | cat >>confdefs.h <<\_ACEOF |
| 6468 | #define X_DISPLAY_MISSING 1 |
| 6469 | _ACEOF |
| 6470 | |
| 6471 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
| 6472 | else |
| 6473 | if test -n "$x_includes"; then |
| 6474 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 6475 | fi |
| 6476 | |
| 6477 | # It would also be nice to do this for all -L options, not just this one. |
| 6478 | if test -n "$x_libraries"; then |
| 6479 | X_LIBS="$X_LIBS -L$x_libraries" |
| 6480 | # For Solaris; some versions of Sun CC require a space after -R and |
| 6481 | # others require no space. Words are not sufficient . . . . |
| 6482 | case `(uname -sr) 2>/dev/null` in |
| 6483 | "SunOS 5"*) |
| 6484 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
| 6485 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 |
| 6486 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
| 6487 | cat >conftest.$ac_ext <<_ACEOF |
| 6488 | /* confdefs.h. */ |
| 6489 | _ACEOF |
| 6490 | cat confdefs.h >>conftest.$ac_ext |
| 6491 | cat >>conftest.$ac_ext <<_ACEOF |
| 6492 | /* end confdefs.h. */ |
| 6493 | |
| 6494 | int |
| 6495 | main () |
| 6496 | { |
| 6497 | |
| 6498 | ; |
| 6499 | return 0; |
| 6500 | } |
| 6501 | _ACEOF |
| 6502 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6503 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6504 | (eval $ac_link) 2>conftest.er1 |
| 6505 | ac_status=$? |
| 6506 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6507 | rm -f conftest.er1 |
| 6508 | cat conftest.err >&5 |
| 6509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6510 | (exit $ac_status); } && |
| 6511 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 6512 | || test ! -s conftest.err' |
| 6513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6514 | (eval $ac_try) 2>&5 |
| 6515 | ac_status=$? |
| 6516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6517 | (exit $ac_status); }; } && |
| 6518 | { ac_try='test -s conftest$ac_exeext' |
| 6519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6520 | (eval $ac_try) 2>&5 |
| 6521 | ac_status=$? |
| 6522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6523 | (exit $ac_status); }; }; then |
| 6524 | ac_R_nospace=yes |
| 6525 | else |
| 6526 | echo "$as_me: failed program was:" >&5 |
| 6527 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6528 | |
| 6529 | ac_R_nospace=no |
| 6530 | fi |
| 6531 | rm -f conftest.err conftest.$ac_objext \ |
| 6532 | conftest$ac_exeext conftest.$ac_ext |
| 6533 | if test $ac_R_nospace = yes; then |
| 6534 | echo "$as_me:$LINENO: result: no" >&5 |
| 6535 | echo "${ECHO_T}no" >&6 |
| 6536 | X_LIBS="$X_LIBS -R$x_libraries" |
| 6537 | else |
| 6538 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
| 6539 | cat >conftest.$ac_ext <<_ACEOF |
| 6540 | /* confdefs.h. */ |
| 6541 | _ACEOF |
| 6542 | cat confdefs.h >>conftest.$ac_ext |
| 6543 | cat >>conftest.$ac_ext <<_ACEOF |
| 6544 | /* end confdefs.h. */ |
| 6545 | |
| 6546 | int |
| 6547 | main () |
| 6548 | { |
| 6549 | |
| 6550 | ; |
| 6551 | return 0; |
| 6552 | } |
| 6553 | _ACEOF |
| 6554 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6555 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6556 | (eval $ac_link) 2>conftest.er1 |
| 6557 | ac_status=$? |
| 6558 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6559 | rm -f conftest.er1 |
| 6560 | cat conftest.err >&5 |
| 6561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6562 | (exit $ac_status); } && |
| 6563 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 6564 | || test ! -s conftest.err' |
| 6565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6566 | (eval $ac_try) 2>&5 |
| 6567 | ac_status=$? |
| 6568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6569 | (exit $ac_status); }; } && |
| 6570 | { ac_try='test -s conftest$ac_exeext' |
| 6571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6572 | (eval $ac_try) 2>&5 |
| 6573 | ac_status=$? |
| 6574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6575 | (exit $ac_status); }; }; then |
| 6576 | ac_R_space=yes |
| 6577 | else |
| 6578 | echo "$as_me: failed program was:" >&5 |
| 6579 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6580 | |
| 6581 | ac_R_space=no |
| 6582 | fi |
| 6583 | rm -f conftest.err conftest.$ac_objext \ |
| 6584 | conftest$ac_exeext conftest.$ac_ext |
| 6585 | if test $ac_R_space = yes; then |
| 6586 | echo "$as_me:$LINENO: result: yes" >&5 |
| 6587 | echo "${ECHO_T}yes" >&6 |
| 6588 | X_LIBS="$X_LIBS -R $x_libraries" |
| 6589 | else |
| 6590 | echo "$as_me:$LINENO: result: neither works" >&5 |
| 6591 | echo "${ECHO_T}neither works" >&6 |
| 6592 | fi |
| 6593 | fi |
| 6594 | LIBS=$ac_xsave_LIBS |
| 6595 | esac |
| 6596 | fi |
| 6597 | |
| 6598 | # Check for system-dependent libraries X programs must link with. |
| 6599 | # Do this before checking for the system-independent R6 libraries |
| 6600 | # (-lICE), since we may need -lsocket or whatever for X linking. |
| 6601 | |
| 6602 | if test "$ISC" = yes; then |
| 6603 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
| 6604 | else |
| 6605 | # Martyn Johnson says this is needed for Ultrix, if the X |
| 6606 | # libraries were built with DECnet support. And Karl Berry says |
| 6607 | # the Alpha needs dnet_stub (dnet does not exist). |
| 6608 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
| 6609 | cat >conftest.$ac_ext <<_ACEOF |
| 6610 | /* confdefs.h. */ |
| 6611 | _ACEOF |
| 6612 | cat confdefs.h >>conftest.$ac_ext |
| 6613 | cat >>conftest.$ac_ext <<_ACEOF |
| 6614 | /* end confdefs.h. */ |
| 6615 | |
| 6616 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6617 | #ifdef __cplusplus |
| 6618 | extern "C" |
| 6619 | #endif |
| 6620 | /* We use char because int might match the return type of a gcc2 |
| 6621 | builtin and then its argument prototype would still apply. */ |
| 6622 | char XOpenDisplay (); |
| 6623 | int |
| 6624 | main () |
| 6625 | { |
| 6626 | XOpenDisplay (); |
| 6627 | ; |
| 6628 | return 0; |
| 6629 | } |
| 6630 | _ACEOF |
| 6631 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6632 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6633 | (eval $ac_link) 2>conftest.er1 |
| 6634 | ac_status=$? |
| 6635 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6636 | rm -f conftest.er1 |
| 6637 | cat conftest.err >&5 |
| 6638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6639 | (exit $ac_status); } && |
| 6640 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 6641 | || test ! -s conftest.err' |
| 6642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6643 | (eval $ac_try) 2>&5 |
| 6644 | ac_status=$? |
| 6645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6646 | (exit $ac_status); }; } && |
| 6647 | { ac_try='test -s conftest$ac_exeext' |
| 6648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6649 | (eval $ac_try) 2>&5 |
| 6650 | ac_status=$? |
| 6651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6652 | (exit $ac_status); }; }; then |
| 6653 | : |
| 6654 | else |
| 6655 | echo "$as_me: failed program was:" >&5 |
| 6656 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6657 | |
| 6658 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
| 6659 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 |
| 6660 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then |
| 6661 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6662 | else |
| 6663 | ac_check_lib_save_LIBS=$LIBS |
| 6664 | LIBS="-ldnet $LIBS" |
| 6665 | cat >conftest.$ac_ext <<_ACEOF |
| 6666 | /* confdefs.h. */ |
| 6667 | _ACEOF |
| 6668 | cat confdefs.h >>conftest.$ac_ext |
| 6669 | cat >>conftest.$ac_ext <<_ACEOF |
| 6670 | /* end confdefs.h. */ |
| 6671 | |
| 6672 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6673 | #ifdef __cplusplus |
| 6674 | extern "C" |
| 6675 | #endif |
| 6676 | /* We use char because int might match the return type of a gcc2 |
| 6677 | builtin and then its argument prototype would still apply. */ |
| 6678 | char dnet_ntoa (); |
| 6679 | int |
| 6680 | main () |
| 6681 | { |
| 6682 | dnet_ntoa (); |
| 6683 | ; |
| 6684 | return 0; |
| 6685 | } |
| 6686 | _ACEOF |
| 6687 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6688 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6689 | (eval $ac_link) 2>conftest.er1 |
| 6690 | ac_status=$? |
| 6691 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6692 | rm -f conftest.er1 |
| 6693 | cat conftest.err >&5 |
| 6694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6695 | (exit $ac_status); } && |
| 6696 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 6697 | || test ! -s conftest.err' |
| 6698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6699 | (eval $ac_try) 2>&5 |
| 6700 | ac_status=$? |
| 6701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6702 | (exit $ac_status); }; } && |
| 6703 | { ac_try='test -s conftest$ac_exeext' |
| 6704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6705 | (eval $ac_try) 2>&5 |
| 6706 | ac_status=$? |
| 6707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6708 | (exit $ac_status); }; }; then |
| 6709 | ac_cv_lib_dnet_dnet_ntoa=yes |
| 6710 | else |
| 6711 | echo "$as_me: failed program was:" >&5 |
| 6712 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6713 | |
| 6714 | ac_cv_lib_dnet_dnet_ntoa=no |
| 6715 | fi |
| 6716 | rm -f conftest.err conftest.$ac_objext \ |
| 6717 | conftest$ac_exeext conftest.$ac_ext |
| 6718 | LIBS=$ac_check_lib_save_LIBS |
| 6719 | fi |
| 6720 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
| 6721 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 |
| 6722 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then |
| 6723 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
| 6724 | fi |
| 6725 | |
| 6726 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
| 6727 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
| 6728 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 |
| 6729 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then |
| 6730 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6731 | else |
| 6732 | ac_check_lib_save_LIBS=$LIBS |
| 6733 | LIBS="-ldnet_stub $LIBS" |
| 6734 | cat >conftest.$ac_ext <<_ACEOF |
| 6735 | /* confdefs.h. */ |
| 6736 | _ACEOF |
| 6737 | cat confdefs.h >>conftest.$ac_ext |
| 6738 | cat >>conftest.$ac_ext <<_ACEOF |
| 6739 | /* end confdefs.h. */ |
| 6740 | |
| 6741 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6742 | #ifdef __cplusplus |
| 6743 | extern "C" |
| 6744 | #endif |
| 6745 | /* We use char because int might match the return type of a gcc2 |
| 6746 | builtin and then its argument prototype would still apply. */ |
| 6747 | char dnet_ntoa (); |
| 6748 | int |
| 6749 | main () |
| 6750 | { |
| 6751 | dnet_ntoa (); |
| 6752 | ; |
| 6753 | return 0; |
| 6754 | } |
| 6755 | _ACEOF |
| 6756 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6757 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6758 | (eval $ac_link) 2>conftest.er1 |
| 6759 | ac_status=$? |
| 6760 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6761 | rm -f conftest.er1 |
| 6762 | cat conftest.err >&5 |
| 6763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6764 | (exit $ac_status); } && |
| 6765 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 6766 | || test ! -s conftest.err' |
| 6767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6768 | (eval $ac_try) 2>&5 |
| 6769 | ac_status=$? |
| 6770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6771 | (exit $ac_status); }; } && |
| 6772 | { ac_try='test -s conftest$ac_exeext' |
| 6773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6774 | (eval $ac_try) 2>&5 |
| 6775 | ac_status=$? |
| 6776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6777 | (exit $ac_status); }; }; then |
| 6778 | ac_cv_lib_dnet_stub_dnet_ntoa=yes |
| 6779 | else |
| 6780 | echo "$as_me: failed program was:" >&5 |
| 6781 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6782 | |
| 6783 | ac_cv_lib_dnet_stub_dnet_ntoa=no |
| 6784 | fi |
| 6785 | rm -f conftest.err conftest.$ac_objext \ |
| 6786 | conftest$ac_exeext conftest.$ac_ext |
| 6787 | LIBS=$ac_check_lib_save_LIBS |
| 6788 | fi |
| 6789 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 |
| 6790 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 |
| 6791 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then |
| 6792 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
| 6793 | fi |
| 6794 | |
| 6795 | fi |
| 6796 | fi |
| 6797 | rm -f conftest.err conftest.$ac_objext \ |
| 6798 | conftest$ac_exeext conftest.$ac_ext |
| 6799 | LIBS="$ac_xsave_LIBS" |
| 6800 | |
| 6801 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
| 6802 | # to get the SysV transport functions. |
| 6803 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
| 6804 | # needs -lnsl. |
| 6805 | # The nsl library prevents programs from opening the X display |
| 6806 | # on Irix 5.2, according to T.E. Dickey. |
| 6807 | # The functions gethostbyname, getservbyname, and inet_addr are |
| 6808 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
| 6809 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
| 6810 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 |
| 6811 | if test "${ac_cv_func_gethostbyname+set}" = set; then |
| 6812 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6813 | else |
| 6814 | cat >conftest.$ac_ext <<_ACEOF |
| 6815 | /* confdefs.h. */ |
| 6816 | _ACEOF |
| 6817 | cat confdefs.h >>conftest.$ac_ext |
| 6818 | cat >>conftest.$ac_ext <<_ACEOF |
| 6819 | /* end confdefs.h. */ |
| 6820 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
| 6821 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6822 | #define gethostbyname innocuous_gethostbyname |
| 6823 | |
| 6824 | /* System header to define __stub macros and hopefully few prototypes, |
| 6825 | which can conflict with char gethostbyname (); below. |
| 6826 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6827 | <limits.h> exists even on freestanding compilers. */ |
| 6828 | |
| 6829 | #ifdef __STDC__ |
| 6830 | # include <limits.h> |
| 6831 | #else |
| 6832 | # include <assert.h> |
| 6833 | #endif |
| 6834 | |
| 6835 | #undef gethostbyname |
| 6836 | |
| 6837 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6838 | #ifdef __cplusplus |
| 6839 | extern "C" |
| 6840 | { |
| 6841 | #endif |
| 6842 | /* We use char because int might match the return type of a gcc2 |
| 6843 | builtin and then its argument prototype would still apply. */ |
| 6844 | char gethostbyname (); |
| 6845 | /* The GNU C library defines this for functions which it implements |
| 6846 | to always fail with ENOSYS. Some functions are actually named |
| 6847 | something starting with __ and the normal name is an alias. */ |
| 6848 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
| 6849 | choke me |
| 6850 | #else |
| 6851 | char (*f) () = gethostbyname; |
| 6852 | #endif |
| 6853 | #ifdef __cplusplus |
| 6854 | } |
| 6855 | #endif |
| 6856 | |
| 6857 | int |
| 6858 | main () |
| 6859 | { |
| 6860 | return f != gethostbyname; |
| 6861 | ; |
| 6862 | return 0; |
| 6863 | } |
| 6864 | _ACEOF |
| 6865 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6866 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6867 | (eval $ac_link) 2>conftest.er1 |
| 6868 | ac_status=$? |
| 6869 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6870 | rm -f conftest.er1 |
| 6871 | cat conftest.err >&5 |
| 6872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6873 | (exit $ac_status); } && |
| 6874 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 6875 | || test ! -s conftest.err' |
| 6876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6877 | (eval $ac_try) 2>&5 |
| 6878 | ac_status=$? |
| 6879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6880 | (exit $ac_status); }; } && |
| 6881 | { ac_try='test -s conftest$ac_exeext' |
| 6882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6883 | (eval $ac_try) 2>&5 |
| 6884 | ac_status=$? |
| 6885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6886 | (exit $ac_status); }; }; then |
| 6887 | ac_cv_func_gethostbyname=yes |
| 6888 | else |
| 6889 | echo "$as_me: failed program was:" >&5 |
| 6890 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6891 | |
| 6892 | ac_cv_func_gethostbyname=no |
| 6893 | fi |
| 6894 | rm -f conftest.err conftest.$ac_objext \ |
| 6895 | conftest$ac_exeext conftest.$ac_ext |
| 6896 | fi |
| 6897 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 |
| 6898 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 |
| 6899 | |
| 6900 | if test $ac_cv_func_gethostbyname = no; then |
| 6901 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
| 6902 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 |
| 6903 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
| 6904 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6905 | else |
| 6906 | ac_check_lib_save_LIBS=$LIBS |
| 6907 | LIBS="-lnsl $LIBS" |
| 6908 | cat >conftest.$ac_ext <<_ACEOF |
| 6909 | /* confdefs.h. */ |
| 6910 | _ACEOF |
| 6911 | cat confdefs.h >>conftest.$ac_ext |
| 6912 | cat >>conftest.$ac_ext <<_ACEOF |
| 6913 | /* end confdefs.h. */ |
| 6914 | |
| 6915 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6916 | #ifdef __cplusplus |
| 6917 | extern "C" |
| 6918 | #endif |
| 6919 | /* We use char because int might match the return type of a gcc2 |
| 6920 | builtin and then its argument prototype would still apply. */ |
| 6921 | char gethostbyname (); |
| 6922 | int |
| 6923 | main () |
| 6924 | { |
| 6925 | gethostbyname (); |
| 6926 | ; |
| 6927 | return 0; |
| 6928 | } |
| 6929 | _ACEOF |
| 6930 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6931 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6932 | (eval $ac_link) 2>conftest.er1 |
| 6933 | ac_status=$? |
| 6934 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6935 | rm -f conftest.er1 |
| 6936 | cat conftest.err >&5 |
| 6937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6938 | (exit $ac_status); } && |
| 6939 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 6940 | || test ! -s conftest.err' |
| 6941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6942 | (eval $ac_try) 2>&5 |
| 6943 | ac_status=$? |
| 6944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6945 | (exit $ac_status); }; } && |
| 6946 | { ac_try='test -s conftest$ac_exeext' |
| 6947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6948 | (eval $ac_try) 2>&5 |
| 6949 | ac_status=$? |
| 6950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6951 | (exit $ac_status); }; }; then |
| 6952 | ac_cv_lib_nsl_gethostbyname=yes |
| 6953 | else |
| 6954 | echo "$as_me: failed program was:" >&5 |
| 6955 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6956 | |
| 6957 | ac_cv_lib_nsl_gethostbyname=no |
| 6958 | fi |
| 6959 | rm -f conftest.err conftest.$ac_objext \ |
| 6960 | conftest$ac_exeext conftest.$ac_ext |
| 6961 | LIBS=$ac_check_lib_save_LIBS |
| 6962 | fi |
| 6963 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
| 6964 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 |
| 6965 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
| 6966 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
| 6967 | fi |
| 6968 | |
| 6969 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
| 6970 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
| 6971 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 |
| 6972 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then |
| 6973 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6974 | else |
| 6975 | ac_check_lib_save_LIBS=$LIBS |
| 6976 | LIBS="-lbsd $LIBS" |
| 6977 | cat >conftest.$ac_ext <<_ACEOF |
| 6978 | /* confdefs.h. */ |
| 6979 | _ACEOF |
| 6980 | cat confdefs.h >>conftest.$ac_ext |
| 6981 | cat >>conftest.$ac_ext <<_ACEOF |
| 6982 | /* end confdefs.h. */ |
| 6983 | |
| 6984 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6985 | #ifdef __cplusplus |
| 6986 | extern "C" |
| 6987 | #endif |
| 6988 | /* We use char because int might match the return type of a gcc2 |
| 6989 | builtin and then its argument prototype would still apply. */ |
| 6990 | char gethostbyname (); |
| 6991 | int |
| 6992 | main () |
| 6993 | { |
| 6994 | gethostbyname (); |
| 6995 | ; |
| 6996 | return 0; |
| 6997 | } |
| 6998 | _ACEOF |
| 6999 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7000 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7001 | (eval $ac_link) 2>conftest.er1 |
| 7002 | ac_status=$? |
| 7003 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7004 | rm -f conftest.er1 |
| 7005 | cat conftest.err >&5 |
| 7006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7007 | (exit $ac_status); } && |
| 7008 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 7009 | || test ! -s conftest.err' |
| 7010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7011 | (eval $ac_try) 2>&5 |
| 7012 | ac_status=$? |
| 7013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7014 | (exit $ac_status); }; } && |
| 7015 | { ac_try='test -s conftest$ac_exeext' |
| 7016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7017 | (eval $ac_try) 2>&5 |
| 7018 | ac_status=$? |
| 7019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7020 | (exit $ac_status); }; }; then |
| 7021 | ac_cv_lib_bsd_gethostbyname=yes |
| 7022 | else |
| 7023 | echo "$as_me: failed program was:" >&5 |
| 7024 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7025 | |
| 7026 | ac_cv_lib_bsd_gethostbyname=no |
| 7027 | fi |
| 7028 | rm -f conftest.err conftest.$ac_objext \ |
| 7029 | conftest$ac_exeext conftest.$ac_ext |
| 7030 | LIBS=$ac_check_lib_save_LIBS |
| 7031 | fi |
| 7032 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
| 7033 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 |
| 7034 | if test $ac_cv_lib_bsd_gethostbyname = yes; then |
| 7035 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
| 7036 | fi |
| 7037 | |
| 7038 | fi |
| 7039 | fi |
| 7040 | |
| 7041 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
| 7042 | # socket/setsockopt and other routines are undefined under SCO ODT |
| 7043 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary |
| 7044 | # on later versions), says Simon Leinen: it contains gethostby* |
| 7045 | # variants that don't use the name server (or something). -lsocket |
| 7046 | # must be given before -lnsl if both are needed. We assume that |
| 7047 | # if connect needs -lnsl, so does gethostbyname. |
| 7048 | echo "$as_me:$LINENO: checking for connect" >&5 |
| 7049 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 |
| 7050 | if test "${ac_cv_func_connect+set}" = set; then |
| 7051 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7052 | else |
| 7053 | cat >conftest.$ac_ext <<_ACEOF |
| 7054 | /* confdefs.h. */ |
| 7055 | _ACEOF |
| 7056 | cat confdefs.h >>conftest.$ac_ext |
| 7057 | cat >>conftest.$ac_ext <<_ACEOF |
| 7058 | /* end confdefs.h. */ |
| 7059 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
| 7060 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 7061 | #define connect innocuous_connect |
| 7062 | |
| 7063 | /* System header to define __stub macros and hopefully few prototypes, |
| 7064 | which can conflict with char connect (); below. |
| 7065 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7066 | <limits.h> exists even on freestanding compilers. */ |
| 7067 | |
| 7068 | #ifdef __STDC__ |
| 7069 | # include <limits.h> |
| 7070 | #else |
| 7071 | # include <assert.h> |
| 7072 | #endif |
| 7073 | |
| 7074 | #undef connect |
| 7075 | |
| 7076 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7077 | #ifdef __cplusplus |
| 7078 | extern "C" |
| 7079 | { |
| 7080 | #endif |
| 7081 | /* We use char because int might match the return type of a gcc2 |
| 7082 | builtin and then its argument prototype would still apply. */ |
| 7083 | char connect (); |
| 7084 | /* The GNU C library defines this for functions which it implements |
| 7085 | to always fail with ENOSYS. Some functions are actually named |
| 7086 | something starting with __ and the normal name is an alias. */ |
| 7087 | #if defined (__stub_connect) || defined (__stub___connect) |
| 7088 | choke me |
| 7089 | #else |
| 7090 | char (*f) () = connect; |
| 7091 | #endif |
| 7092 | #ifdef __cplusplus |
| 7093 | } |
| 7094 | #endif |
| 7095 | |
| 7096 | int |
| 7097 | main () |
| 7098 | { |
| 7099 | return f != connect; |
| 7100 | ; |
| 7101 | return 0; |
| 7102 | } |
| 7103 | _ACEOF |
| 7104 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7105 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7106 | (eval $ac_link) 2>conftest.er1 |
| 7107 | ac_status=$? |
| 7108 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7109 | rm -f conftest.er1 |
| 7110 | cat conftest.err >&5 |
| 7111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7112 | (exit $ac_status); } && |
| 7113 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 7114 | || test ! -s conftest.err' |
| 7115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7116 | (eval $ac_try) 2>&5 |
| 7117 | ac_status=$? |
| 7118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7119 | (exit $ac_status); }; } && |
| 7120 | { ac_try='test -s conftest$ac_exeext' |
| 7121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7122 | (eval $ac_try) 2>&5 |
| 7123 | ac_status=$? |
| 7124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7125 | (exit $ac_status); }; }; then |
| 7126 | ac_cv_func_connect=yes |
| 7127 | else |
| 7128 | echo "$as_me: failed program was:" >&5 |
| 7129 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7130 | |
| 7131 | ac_cv_func_connect=no |
| 7132 | fi |
| 7133 | rm -f conftest.err conftest.$ac_objext \ |
| 7134 | conftest$ac_exeext conftest.$ac_ext |
| 7135 | fi |
| 7136 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 |
| 7137 | echo "${ECHO_T}$ac_cv_func_connect" >&6 |
| 7138 | |
| 7139 | if test $ac_cv_func_connect = no; then |
| 7140 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
| 7141 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 |
| 7142 | if test "${ac_cv_lib_socket_connect+set}" = set; then |
| 7143 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7144 | else |
| 7145 | ac_check_lib_save_LIBS=$LIBS |
| 7146 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
| 7147 | cat >conftest.$ac_ext <<_ACEOF |
| 7148 | /* confdefs.h. */ |
| 7149 | _ACEOF |
| 7150 | cat confdefs.h >>conftest.$ac_ext |
| 7151 | cat >>conftest.$ac_ext <<_ACEOF |
| 7152 | /* end confdefs.h. */ |
| 7153 | |
| 7154 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7155 | #ifdef __cplusplus |
| 7156 | extern "C" |
| 7157 | #endif |
| 7158 | /* We use char because int might match the return type of a gcc2 |
| 7159 | builtin and then its argument prototype would still apply. */ |
| 7160 | char connect (); |
| 7161 | int |
| 7162 | main () |
| 7163 | { |
| 7164 | connect (); |
| 7165 | ; |
| 7166 | return 0; |
| 7167 | } |
| 7168 | _ACEOF |
| 7169 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7170 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7171 | (eval $ac_link) 2>conftest.er1 |
| 7172 | ac_status=$? |
| 7173 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7174 | rm -f conftest.er1 |
| 7175 | cat conftest.err >&5 |
| 7176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7177 | (exit $ac_status); } && |
| 7178 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 7179 | || test ! -s conftest.err' |
| 7180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7181 | (eval $ac_try) 2>&5 |
| 7182 | ac_status=$? |
| 7183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7184 | (exit $ac_status); }; } && |
| 7185 | { ac_try='test -s conftest$ac_exeext' |
| 7186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7187 | (eval $ac_try) 2>&5 |
| 7188 | ac_status=$? |
| 7189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7190 | (exit $ac_status); }; }; then |
| 7191 | ac_cv_lib_socket_connect=yes |
| 7192 | else |
| 7193 | echo "$as_me: failed program was:" >&5 |
| 7194 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7195 | |
| 7196 | ac_cv_lib_socket_connect=no |
| 7197 | fi |
| 7198 | rm -f conftest.err conftest.$ac_objext \ |
| 7199 | conftest$ac_exeext conftest.$ac_ext |
| 7200 | LIBS=$ac_check_lib_save_LIBS |
| 7201 | fi |
| 7202 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 |
| 7203 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 |
| 7204 | if test $ac_cv_lib_socket_connect = yes; then |
| 7205 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
| 7206 | fi |
| 7207 | |
| 7208 | fi |
| 7209 | |
| 7210 | # Guillermo Gomez says -lposix is necessary on A/UX. |
| 7211 | echo "$as_me:$LINENO: checking for remove" >&5 |
| 7212 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 |
| 7213 | if test "${ac_cv_func_remove+set}" = set; then |
| 7214 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7215 | else |
| 7216 | cat >conftest.$ac_ext <<_ACEOF |
| 7217 | /* confdefs.h. */ |
| 7218 | _ACEOF |
| 7219 | cat confdefs.h >>conftest.$ac_ext |
| 7220 | cat >>conftest.$ac_ext <<_ACEOF |
| 7221 | /* end confdefs.h. */ |
| 7222 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
| 7223 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 7224 | #define remove innocuous_remove |
| 7225 | |
| 7226 | /* System header to define __stub macros and hopefully few prototypes, |
| 7227 | which can conflict with char remove (); below. |
| 7228 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7229 | <limits.h> exists even on freestanding compilers. */ |
| 7230 | |
| 7231 | #ifdef __STDC__ |
| 7232 | # include <limits.h> |
| 7233 | #else |
| 7234 | # include <assert.h> |
| 7235 | #endif |
| 7236 | |
| 7237 | #undef remove |
| 7238 | |
| 7239 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7240 | #ifdef __cplusplus |
| 7241 | extern "C" |
| 7242 | { |
| 7243 | #endif |
| 7244 | /* We use char because int might match the return type of a gcc2 |
| 7245 | builtin and then its argument prototype would still apply. */ |
| 7246 | char remove (); |
| 7247 | /* The GNU C library defines this for functions which it implements |
| 7248 | to always fail with ENOSYS. Some functions are actually named |
| 7249 | something starting with __ and the normal name is an alias. */ |
| 7250 | #if defined (__stub_remove) || defined (__stub___remove) |
| 7251 | choke me |
| 7252 | #else |
| 7253 | char (*f) () = remove; |
| 7254 | #endif |
| 7255 | #ifdef __cplusplus |
| 7256 | } |
| 7257 | #endif |
| 7258 | |
| 7259 | int |
| 7260 | main () |
| 7261 | { |
| 7262 | return f != remove; |
| 7263 | ; |
| 7264 | return 0; |
| 7265 | } |
| 7266 | _ACEOF |
| 7267 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7268 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7269 | (eval $ac_link) 2>conftest.er1 |
| 7270 | ac_status=$? |
| 7271 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7272 | rm -f conftest.er1 |
| 7273 | cat conftest.err >&5 |
| 7274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7275 | (exit $ac_status); } && |
| 7276 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 7277 | || test ! -s conftest.err' |
| 7278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7279 | (eval $ac_try) 2>&5 |
| 7280 | ac_status=$? |
| 7281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7282 | (exit $ac_status); }; } && |
| 7283 | { ac_try='test -s conftest$ac_exeext' |
| 7284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7285 | (eval $ac_try) 2>&5 |
| 7286 | ac_status=$? |
| 7287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7288 | (exit $ac_status); }; }; then |
| 7289 | ac_cv_func_remove=yes |
| 7290 | else |
| 7291 | echo "$as_me: failed program was:" >&5 |
| 7292 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7293 | |
| 7294 | ac_cv_func_remove=no |
| 7295 | fi |
| 7296 | rm -f conftest.err conftest.$ac_objext \ |
| 7297 | conftest$ac_exeext conftest.$ac_ext |
| 7298 | fi |
| 7299 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 |
| 7300 | echo "${ECHO_T}$ac_cv_func_remove" >&6 |
| 7301 | |
| 7302 | if test $ac_cv_func_remove = no; then |
| 7303 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
| 7304 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 |
| 7305 | if test "${ac_cv_lib_posix_remove+set}" = set; then |
| 7306 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7307 | else |
| 7308 | ac_check_lib_save_LIBS=$LIBS |
| 7309 | LIBS="-lposix $LIBS" |
| 7310 | cat >conftest.$ac_ext <<_ACEOF |
| 7311 | /* confdefs.h. */ |
| 7312 | _ACEOF |
| 7313 | cat confdefs.h >>conftest.$ac_ext |
| 7314 | cat >>conftest.$ac_ext <<_ACEOF |
| 7315 | /* end confdefs.h. */ |
| 7316 | |
| 7317 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7318 | #ifdef __cplusplus |
| 7319 | extern "C" |
| 7320 | #endif |
| 7321 | /* We use char because int might match the return type of a gcc2 |
| 7322 | builtin and then its argument prototype would still apply. */ |
| 7323 | char remove (); |
| 7324 | int |
| 7325 | main () |
| 7326 | { |
| 7327 | remove (); |
| 7328 | ; |
| 7329 | return 0; |
| 7330 | } |
| 7331 | _ACEOF |
| 7332 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7333 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7334 | (eval $ac_link) 2>conftest.er1 |
| 7335 | ac_status=$? |
| 7336 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7337 | rm -f conftest.er1 |
| 7338 | cat conftest.err >&5 |
| 7339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7340 | (exit $ac_status); } && |
| 7341 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 7342 | || test ! -s conftest.err' |
| 7343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7344 | (eval $ac_try) 2>&5 |
| 7345 | ac_status=$? |
| 7346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7347 | (exit $ac_status); }; } && |
| 7348 | { ac_try='test -s conftest$ac_exeext' |
| 7349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7350 | (eval $ac_try) 2>&5 |
| 7351 | ac_status=$? |
| 7352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7353 | (exit $ac_status); }; }; then |
| 7354 | ac_cv_lib_posix_remove=yes |
| 7355 | else |
| 7356 | echo "$as_me: failed program was:" >&5 |
| 7357 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7358 | |
| 7359 | ac_cv_lib_posix_remove=no |
| 7360 | fi |
| 7361 | rm -f conftest.err conftest.$ac_objext \ |
| 7362 | conftest$ac_exeext conftest.$ac_ext |
| 7363 | LIBS=$ac_check_lib_save_LIBS |
| 7364 | fi |
| 7365 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 |
| 7366 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 |
| 7367 | if test $ac_cv_lib_posix_remove = yes; then |
| 7368 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
| 7369 | fi |
| 7370 | |
| 7371 | fi |
| 7372 | |
| 7373 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
| 7374 | echo "$as_me:$LINENO: checking for shmat" >&5 |
| 7375 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 |
| 7376 | if test "${ac_cv_func_shmat+set}" = set; then |
| 7377 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7378 | else |
| 7379 | cat >conftest.$ac_ext <<_ACEOF |
| 7380 | /* confdefs.h. */ |
| 7381 | _ACEOF |
| 7382 | cat confdefs.h >>conftest.$ac_ext |
| 7383 | cat >>conftest.$ac_ext <<_ACEOF |
| 7384 | /* end confdefs.h. */ |
| 7385 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
| 7386 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 7387 | #define shmat innocuous_shmat |
| 7388 | |
| 7389 | /* System header to define __stub macros and hopefully few prototypes, |
| 7390 | which can conflict with char shmat (); below. |
| 7391 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7392 | <limits.h> exists even on freestanding compilers. */ |
| 7393 | |
| 7394 | #ifdef __STDC__ |
| 7395 | # include <limits.h> |
| 7396 | #else |
| 7397 | # include <assert.h> |
| 7398 | #endif |
| 7399 | |
| 7400 | #undef shmat |
| 7401 | |
| 7402 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7403 | #ifdef __cplusplus |
| 7404 | extern "C" |
| 7405 | { |
| 7406 | #endif |
| 7407 | /* We use char because int might match the return type of a gcc2 |
| 7408 | builtin and then its argument prototype would still apply. */ |
| 7409 | char shmat (); |
| 7410 | /* The GNU C library defines this for functions which it implements |
| 7411 | to always fail with ENOSYS. Some functions are actually named |
| 7412 | something starting with __ and the normal name is an alias. */ |
| 7413 | #if defined (__stub_shmat) || defined (__stub___shmat) |
| 7414 | choke me |
| 7415 | #else |
| 7416 | char (*f) () = shmat; |
| 7417 | #endif |
| 7418 | #ifdef __cplusplus |
| 7419 | } |
| 7420 | #endif |
| 7421 | |
| 7422 | int |
| 7423 | main () |
| 7424 | { |
| 7425 | return f != shmat; |
| 7426 | ; |
| 7427 | return 0; |
| 7428 | } |
| 7429 | _ACEOF |
| 7430 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7431 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7432 | (eval $ac_link) 2>conftest.er1 |
| 7433 | ac_status=$? |
| 7434 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7435 | rm -f conftest.er1 |
| 7436 | cat conftest.err >&5 |
| 7437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7438 | (exit $ac_status); } && |
| 7439 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 7440 | || test ! -s conftest.err' |
| 7441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7442 | (eval $ac_try) 2>&5 |
| 7443 | ac_status=$? |
| 7444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7445 | (exit $ac_status); }; } && |
| 7446 | { ac_try='test -s conftest$ac_exeext' |
| 7447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7448 | (eval $ac_try) 2>&5 |
| 7449 | ac_status=$? |
| 7450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7451 | (exit $ac_status); }; }; then |
| 7452 | ac_cv_func_shmat=yes |
| 7453 | else |
| 7454 | echo "$as_me: failed program was:" >&5 |
| 7455 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7456 | |
| 7457 | ac_cv_func_shmat=no |
| 7458 | fi |
| 7459 | rm -f conftest.err conftest.$ac_objext \ |
| 7460 | conftest$ac_exeext conftest.$ac_ext |
| 7461 | fi |
| 7462 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 |
| 7463 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 |
| 7464 | |
| 7465 | if test $ac_cv_func_shmat = no; then |
| 7466 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
| 7467 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 |
| 7468 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then |
| 7469 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7470 | else |
| 7471 | ac_check_lib_save_LIBS=$LIBS |
| 7472 | LIBS="-lipc $LIBS" |
| 7473 | cat >conftest.$ac_ext <<_ACEOF |
| 7474 | /* confdefs.h. */ |
| 7475 | _ACEOF |
| 7476 | cat confdefs.h >>conftest.$ac_ext |
| 7477 | cat >>conftest.$ac_ext <<_ACEOF |
| 7478 | /* end confdefs.h. */ |
| 7479 | |
| 7480 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7481 | #ifdef __cplusplus |
| 7482 | extern "C" |
| 7483 | #endif |
| 7484 | /* We use char because int might match the return type of a gcc2 |
| 7485 | builtin and then its argument prototype would still apply. */ |
| 7486 | char shmat (); |
| 7487 | int |
| 7488 | main () |
| 7489 | { |
| 7490 | shmat (); |
| 7491 | ; |
| 7492 | return 0; |
| 7493 | } |
| 7494 | _ACEOF |
| 7495 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7496 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7497 | (eval $ac_link) 2>conftest.er1 |
| 7498 | ac_status=$? |
| 7499 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7500 | rm -f conftest.er1 |
| 7501 | cat conftest.err >&5 |
| 7502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7503 | (exit $ac_status); } && |
| 7504 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 7505 | || test ! -s conftest.err' |
| 7506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7507 | (eval $ac_try) 2>&5 |
| 7508 | ac_status=$? |
| 7509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7510 | (exit $ac_status); }; } && |
| 7511 | { ac_try='test -s conftest$ac_exeext' |
| 7512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7513 | (eval $ac_try) 2>&5 |
| 7514 | ac_status=$? |
| 7515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7516 | (exit $ac_status); }; }; then |
| 7517 | ac_cv_lib_ipc_shmat=yes |
| 7518 | else |
| 7519 | echo "$as_me: failed program was:" >&5 |
| 7520 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7521 | |
| 7522 | ac_cv_lib_ipc_shmat=no |
| 7523 | fi |
| 7524 | rm -f conftest.err conftest.$ac_objext \ |
| 7525 | conftest$ac_exeext conftest.$ac_ext |
| 7526 | LIBS=$ac_check_lib_save_LIBS |
| 7527 | fi |
| 7528 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 |
| 7529 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 |
| 7530 | if test $ac_cv_lib_ipc_shmat = yes; then |
| 7531 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
| 7532 | fi |
| 7533 | |
| 7534 | fi |
| 7535 | fi |
| 7536 | |
| 7537 | # Check for libraries that X11R6 Xt/Xaw programs need. |
| 7538 | ac_save_LDFLAGS=$LDFLAGS |
| 7539 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
| 7540 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
| 7541 | # check for ICE first), but we must link in the order -lSM -lICE or |
| 7542 | # we get undefined symbols. So assume we have SM if we have ICE. |
| 7543 | # These have to be linked with before -lX11, unlike the other |
| 7544 | # libraries we check for below, so use a different variable. |
| 7545 | # John Interrante, Karl Berry |
| 7546 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 |
| 7547 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 |
| 7548 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then |
| 7549 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7550 | else |
| 7551 | ac_check_lib_save_LIBS=$LIBS |
| 7552 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
| 7553 | cat >conftest.$ac_ext <<_ACEOF |
| 7554 | /* confdefs.h. */ |
| 7555 | _ACEOF |
| 7556 | cat confdefs.h >>conftest.$ac_ext |
| 7557 | cat >>conftest.$ac_ext <<_ACEOF |
| 7558 | /* end confdefs.h. */ |
| 7559 | |
| 7560 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7561 | #ifdef __cplusplus |
| 7562 | extern "C" |
| 7563 | #endif |
| 7564 | /* We use char because int might match the return type of a gcc2 |
| 7565 | builtin and then its argument prototype would still apply. */ |
| 7566 | char IceConnectionNumber (); |
| 7567 | int |
| 7568 | main () |
| 7569 | { |
| 7570 | IceConnectionNumber (); |
| 7571 | ; |
| 7572 | return 0; |
| 7573 | } |
| 7574 | _ACEOF |
| 7575 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7576 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7577 | (eval $ac_link) 2>conftest.er1 |
| 7578 | ac_status=$? |
| 7579 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7580 | rm -f conftest.er1 |
| 7581 | cat conftest.err >&5 |
| 7582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7583 | (exit $ac_status); } && |
| 7584 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 7585 | || test ! -s conftest.err' |
| 7586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7587 | (eval $ac_try) 2>&5 |
| 7588 | ac_status=$? |
| 7589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7590 | (exit $ac_status); }; } && |
| 7591 | { ac_try='test -s conftest$ac_exeext' |
| 7592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7593 | (eval $ac_try) 2>&5 |
| 7594 | ac_status=$? |
| 7595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7596 | (exit $ac_status); }; }; then |
| 7597 | ac_cv_lib_ICE_IceConnectionNumber=yes |
| 7598 | else |
| 7599 | echo "$as_me: failed program was:" >&5 |
| 7600 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7601 | |
| 7602 | ac_cv_lib_ICE_IceConnectionNumber=no |
| 7603 | fi |
| 7604 | rm -f conftest.err conftest.$ac_objext \ |
| 7605 | conftest$ac_exeext conftest.$ac_ext |
| 7606 | LIBS=$ac_check_lib_save_LIBS |
| 7607 | fi |
| 7608 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 |
| 7609 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 |
| 7610 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then |
| 7611 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
| 7612 | fi |
| 7613 | |
| 7614 | LDFLAGS=$ac_save_LDFLAGS |
| 7615 | |
| 7616 | fi |
| 7617 | |
| 7618 | ORIG_X_SAVE_LIBS="$LIBS" |
| 7619 | LIBS="$X_PRE_LIBS $LIBS $X_LIBS -lX11 $X_EXTRA_LIBS" |
| 7620 | X_LIBS="$LIBS" |
| 7621 | |
| 7622 | |
| 7623 | FATAL=0 |
| 7624 | |
| 7625 | |
| 7626 | # Check whether --with-qt-dir or --without-qt-dir was given. |
| 7627 | if test "${with_qt_dir+set}" = set; then |
| 7628 | withval="$with_qt_dir" |
| 7629 | qt_cv_dir=`eval echo "$withval"/` |
| 7630 | fi; |
| 7631 | |
| 7632 | |
| 7633 | # Check whether --with-qt-includes or --without-qt-includes was given. |
| 7634 | if test "${with_qt_includes+set}" = set; then |
| 7635 | withval="$with_qt_includes" |
| 7636 | qt_cv_includes=`eval echo "$withval"` |
| 7637 | fi; |
| 7638 | |
| 7639 | |
| 7640 | # Check whether --with-qt-libraries or --without-qt-libraries was given. |
| 7641 | if test "${with_qt_libraries+set}" = set; then |
| 7642 | withval="$with_qt_libraries" |
| 7643 | qt_cv_libraries=`eval echo "$withval"` |
| 7644 | fi; |
| 7645 | |
| 7646 | if test -z "$qt_cv_dir"; then |
| 7647 | qt_cv_dir=$QTDIR |
| 7648 | fi |
| 7649 | |
| 7650 | if test -n "$qt_cv_dir"; then |
| 7651 | if test -z "$qt_cv_includes"; then |
| 7652 | qt_cv_includes=$qt_cv_dir/include |
| 7653 | fi |
| 7654 | if test -z "$qt_cv_libraries"; then |
| 7655 | qt_cv_libraries=$qt_cv_dir/lib |
| 7656 | fi |
| 7657 | fi |
| 7658 | |
| 7659 | QT_INCLUDES= |
| 7660 | QT_LDFLAGS= |
| 7661 | if test -n "$qt_cv_includes"; then |
| 7662 | QT_INCLUDES="-isystem $qt_cv_includes" |
| 7663 | fi |
| 7664 | if test -n "$qt_cv_libraries"; then |
| 7665 | QT_LDFLAGS="-L$qt_cv_libraries" |
| 7666 | fi |
| 7667 | |
| 7668 | |
| 7669 | |
| 7670 | |
| 7671 | |
| 7672 | echo "$as_me:$LINENO: checking for moc2" >&5 |
| 7673 | echo $ECHO_N "checking for moc2... $ECHO_C" >&6 |
| 7674 | if test "${qt_cv_path_moc2+set}" = set; then |
| 7675 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7676 | else |
| 7677 | |
| 7678 | qt_cv_path_moc2="NONE" |
| 7679 | if test -n "$ac_moc2"; then |
| 7680 | qt_cv_path_moc2="$ac_moc2"; |
| 7681 | else |
| 7682 | dirs="$qt_cv_dir/bin" |
| 7683 | qt_save_IFS=$IFS |
| 7684 | IFS=':' |
| 7685 | for dir in $PATH; do |
| 7686 | dirs="$dirs $dir" |
| 7687 | done |
| 7688 | IFS=$qt_save_IFS |
| 7689 | |
| 7690 | for dir in $dirs; do |
| 7691 | if test -x "$dir/moc2"; then |
| 7692 | if test -n ""; then |
| 7693 | evalstr="$dir/moc2 2>&1 " |
| 7694 | if eval $evalstr; then |
| 7695 | qt_cv_path_moc2="$dir/moc2" |
| 7696 | break |
| 7697 | fi |
| 7698 | else |
| 7699 | qt_cv_path_moc2="$dir/moc2" |
| 7700 | break |
| 7701 | fi |
| 7702 | fi |
| 7703 | done |
| 7704 | fi |
| 7705 | |
| 7706 | fi |
| 7707 | |
| 7708 | |
| 7709 | if test -z "$qt_cv_path_moc2" || test "$qt_cv_path_moc2" = "NONE"; then |
| 7710 | echo "$as_me:$LINENO: result: not found" >&5 |
| 7711 | echo "${ECHO_T}not found" >&6 |
| 7712 | |
| 7713 | else |
| 7714 | echo "$as_me:$LINENO: result: $qt_cv_path_moc2" >&5 |
| 7715 | echo "${ECHO_T}$qt_cv_path_moc2" >&6 |
| 7716 | ac_moc2=$qt_cv_path_moc2 |
| 7717 | fi |
| 7718 | |
| 7719 | |
| 7720 | echo "$as_me:$LINENO: checking for moc" >&5 |
| 7721 | echo $ECHO_N "checking for moc... $ECHO_C" >&6 |
| 7722 | if test "${qt_cv_path_moc+set}" = set; then |
| 7723 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7724 | else |
| 7725 | |
| 7726 | qt_cv_path_moc="NONE" |
| 7727 | if test -n "$ac_moc1"; then |
| 7728 | qt_cv_path_moc="$ac_moc1"; |
| 7729 | else |
| 7730 | dirs="$qt_cv_dir/bin" |
| 7731 | qt_save_IFS=$IFS |
| 7732 | IFS=':' |
| 7733 | for dir in $PATH; do |
| 7734 | dirs="$dirs $dir" |
| 7735 | done |
| 7736 | IFS=$qt_save_IFS |
| 7737 | |
| 7738 | for dir in $dirs; do |
| 7739 | if test -x "$dir/moc"; then |
| 7740 | if test -n ""; then |
| 7741 | evalstr="$dir/moc 2>&1 " |
| 7742 | if eval $evalstr; then |
| 7743 | qt_cv_path_moc="$dir/moc" |
| 7744 | break |
| 7745 | fi |
| 7746 | else |
| 7747 | qt_cv_path_moc="$dir/moc" |
| 7748 | break |
| 7749 | fi |
| 7750 | fi |
| 7751 | done |
| 7752 | fi |
| 7753 | |
| 7754 | fi |
| 7755 | |
| 7756 | |
| 7757 | if test -z "$qt_cv_path_moc" || test "$qt_cv_path_moc" = "NONE"; then |
| 7758 | echo "$as_me:$LINENO: result: not found" >&5 |
| 7759 | echo "${ECHO_T}not found" >&6 |
| 7760 | |
| 7761 | else |
| 7762 | echo "$as_me:$LINENO: result: $qt_cv_path_moc" >&5 |
| 7763 | echo "${ECHO_T}$qt_cv_path_moc" >&6 |
| 7764 | ac_moc1=$qt_cv_path_moc |
| 7765 | fi |
| 7766 | |
| 7767 | |
| 7768 | if test -n "$ac_moc1" -a -n "$ac_moc2"; then |
| 7769 | $ac_moc1 -v 2>&1 | grep "Qt 3" >/dev/null |
| 7770 | if test "$?" = 0; then |
| 7771 | ac_moc=$ac_moc1; |
| 7772 | else |
| 7773 | ac_moc=$ac_moc2; |
| 7774 | fi |
| 7775 | else |
| 7776 | if test -n "$ac_moc1"; then |
| 7777 | ac_moc=$ac_moc1; |
| 7778 | else |
| 7779 | ac_moc=$ac_moc2; |
| 7780 | fi |
| 7781 | fi |
| 7782 | |
| 7783 | if test -z "$ac_moc" -a "$FATAL" = 1; then |
| 7784 | { { echo "$as_me:$LINENO: error: moc binary not found in \$PATH or $qt_cv_dir/bin !" >&5 |
| 7785 | echo "$as_me: error: moc binary not found in \$PATH or $qt_cv_dir/bin !" >&2;} |
| 7786 | { (exit 1); exit 1; }; } |
| 7787 | fi |
| 7788 | |
| 7789 | MOC=$ac_moc |
| 7790 | |
| 7791 | |
| 7792 | |
| 7793 | echo "$as_me:$LINENO: checking for uic" >&5 |
| 7794 | echo $ECHO_N "checking for uic... $ECHO_C" >&6 |
| 7795 | if test "${qt_cv_path_uic+set}" = set; then |
| 7796 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7797 | else |
| 7798 | |
| 7799 | qt_cv_path_uic="NONE" |
| 7800 | if test -n "$ac_uic"; then |
| 7801 | qt_cv_path_uic="$ac_uic"; |
| 7802 | else |
| 7803 | dirs="$qt_cv_dir/bin" |
| 7804 | qt_save_IFS=$IFS |
| 7805 | IFS=':' |
| 7806 | for dir in $PATH; do |
| 7807 | dirs="$dirs $dir" |
| 7808 | done |
| 7809 | IFS=$qt_save_IFS |
| 7810 | |
| 7811 | for dir in $dirs; do |
| 7812 | if test -x "$dir/uic"; then |
| 7813 | if test -n ""; then |
| 7814 | evalstr="$dir/uic 2>&1 " |
| 7815 | if eval $evalstr; then |
| 7816 | qt_cv_path_uic="$dir/uic" |
| 7817 | break |
| 7818 | fi |
| 7819 | else |
| 7820 | qt_cv_path_uic="$dir/uic" |
| 7821 | break |
| 7822 | fi |
| 7823 | fi |
| 7824 | done |
| 7825 | fi |
| 7826 | |
| 7827 | fi |
| 7828 | |
| 7829 | |
| 7830 | if test -z "$qt_cv_path_uic" || test "$qt_cv_path_uic" = "NONE"; then |
| 7831 | echo "$as_me:$LINENO: result: not found" >&5 |
| 7832 | echo "${ECHO_T}not found" >&6 |
| 7833 | |
| 7834 | else |
| 7835 | echo "$as_me:$LINENO: result: $qt_cv_path_uic" >&5 |
| 7836 | echo "${ECHO_T}$qt_cv_path_uic" >&6 |
| 7837 | ac_uic=$qt_cv_path_uic |
| 7838 | fi |
| 7839 | |
| 7840 | if test -z "$ac_uic" -a "$FATAL" = 1; then |
| 7841 | { { echo "$as_me:$LINENO: error: uic binary not found in \$PATH or $qt_cv_dir/bin !" >&5 |
| 7842 | echo "$as_me: error: uic binary not found in \$PATH or $qt_cv_dir/bin !" >&2;} |
| 7843 | { (exit 1); exit 1; }; } |
| 7844 | fi |
| 7845 | |
| 7846 | UIC=$ac_uic |
| 7847 | |
| 7848 | |
| 7849 | |
| 7850 | echo "$as_me:$LINENO: checking for Qt library name" >&5 |
| 7851 | echo $ECHO_N "checking for Qt library name... $ECHO_C" >&6 |
| 7852 | |
| 7853 | if test "${qt_cv_libname+set}" = set; then |
| 7854 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7855 | else |
| 7856 | |
| 7857 | ac_ext=cc |
| 7858 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 7859 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7860 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7861 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 7862 | |
| 7863 | SAVE_CXXFLAGS=$CXXFLAGS |
| 7864 | CXXFLAGS="$CXXFLAGS $QT_INCLUDES $QT_LDFLAGS" |
| 7865 | |
| 7866 | for libname in -lqt-mt -lqt3 -lqt2 -lqt; |
| 7867 | do |
| 7868 | |
| 7869 | SAVE_LIBS="$LIBS" |
| 7870 | LIBS="$LIBS $libname" |
| 7871 | cat >conftest.$ac_ext <<_ACEOF |
| 7872 | /* confdefs.h. */ |
| 7873 | _ACEOF |
| 7874 | cat confdefs.h >>conftest.$ac_ext |
| 7875 | cat >>conftest.$ac_ext <<_ACEOF |
| 7876 | /* end confdefs.h. */ |
| 7877 | |
| 7878 | #include <qglobal.h> |
| 7879 | #include <qstring.h> |
| 7880 | |
| 7881 | int |
| 7882 | main () |
| 7883 | { |
| 7884 | |
| 7885 | QString s("mangle_failure"); |
| 7886 | #if (QT_VERSION < 221) |
| 7887 | break_me_(\\\); |
| 7888 | #endif |
| 7889 | |
| 7890 | ; |
| 7891 | return 0; |
| 7892 | } |
| 7893 | _ACEOF |
| 7894 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7895 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7896 | (eval $ac_link) 2>conftest.er1 |
| 7897 | ac_status=$? |
| 7898 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7899 | rm -f conftest.er1 |
| 7900 | cat conftest.err >&5 |
| 7901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7902 | (exit $ac_status); } && |
| 7903 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 7904 | || test ! -s conftest.err' |
| 7905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7906 | (eval $ac_try) 2>&5 |
| 7907 | ac_status=$? |
| 7908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7909 | (exit $ac_status); }; } && |
| 7910 | { ac_try='test -s conftest$ac_exeext' |
| 7911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7912 | (eval $ac_try) 2>&5 |
| 7913 | ac_status=$? |
| 7914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7915 | (exit $ac_status); }; }; then |
| 7916 | qt_cv_libname=$libname |
| 7917 | else |
| 7918 | echo "$as_me: failed program was:" >&5 |
| 7919 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7920 | |
| 7921 | fi |
| 7922 | rm -f conftest.err conftest.$ac_objext \ |
| 7923 | conftest$ac_exeext conftest.$ac_ext |
| 7924 | LIBS="$SAVE_LIBS" |
| 7925 | |
| 7926 | if test -n "$qt_cv_libname"; then |
| 7927 | break; |
| 7928 | fi |
| 7929 | done |
| 7930 | |
| 7931 | CXXFLAGS=$SAVE_CXXFLAGS |
| 7932 | |
| 7933 | fi |
| 7934 | |
| 7935 | |
| 7936 | if test -z "$qt_cv_libname"; then |
| 7937 | echo "$as_me:$LINENO: result: failed" >&5 |
| 7938 | echo "${ECHO_T}failed" >&6 |
| 7939 | if test "$FATAL" = 1 ; then |
| 7940 | { { echo "$as_me:$LINENO: error: Cannot compile a simple Qt executable. Check you have the right \$QTDIR !" >&5 |
| 7941 | echo "$as_me: error: Cannot compile a simple Qt executable. Check you have the right \$QTDIR !" >&2;} |
| 7942 | { (exit 1); exit 1; }; } |
| 7943 | fi |
| 7944 | else |
| 7945 | echo "$as_me:$LINENO: result: $qt_cv_libname" >&5 |
| 7946 | echo "${ECHO_T}$qt_cv_libname" >&6 |
| 7947 | fi |
| 7948 | |
| 7949 | |
| 7950 | QT_LIB=$qt_cv_libname; |
| 7951 | |
| 7952 | |
| 7953 | if test -n "$qt_cv_libname"; then |
| 7954 | |
| 7955 | echo "$as_me:$LINENO: checking Qt version" >&5 |
| 7956 | echo $ECHO_N "checking Qt version... $ECHO_C" >&6 |
| 7957 | if test "${lyx_cv_qtversion+set}" = set; then |
| 7958 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7959 | else |
| 7960 | |
| 7961 | ac_ext=cc |
| 7962 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 7963 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7964 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7965 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 7966 | |
| 7967 | SAVE_CPPFLAGS=$CPPFLAGS |
| 7968 | CPPFLAGS="$CPPFLAGS $QT_INCLUDES" |
| 7969 | |
| 7970 | cat > conftest.$ac_ext <<EOF |
| 7971 | #line 7971 "configure" |
| 7972 | #include "confdefs.h" |
| 7973 | #include <qglobal.h> |
| 7974 | "%%%"QT_VERSION_STR"%%%" |
| 7975 | EOF |
| 7976 | lyx_cv_qtversion=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | \ |
| 7977 | grep '^"%%%"' 2>/dev/null | \ |
| 7978 | sed -e 's/"%%%"//g' -e 's/"//g'` |
| 7979 | rm -f conftest.$ac_ext |
| 7980 | CPPFLAGS=$SAVE_CPPFLAGS |
| 7981 | |
| 7982 | fi |
| 7983 | echo "$as_me:$LINENO: result: $lyx_cv_qtversion" >&5 |
| 7984 | echo "${ECHO_T}$lyx_cv_qtversion" >&6 |
| 7985 | |
| 7986 | QT_VERSION=$lyx_cv_qtversion |
| 7987 | |
| 7988 | |
| 7989 | fi |
| 7990 | |
| 7991 | LIBS="$ORIG_X_SAVE_LIBS" |
| 7992 | |
| 7993 | # Check whether --enable-abi or --disable-abi was given. |
| 7994 | if test "${enable_abi+set}" = set; then |
| 7995 | enableval="$enable_abi" |
| 7996 | enable_abi=$enableval |
| 7997 | else |
| 7998 | enable_abi=no |
| 7999 | fi; |
| 8000 | if test "$enable_abi" = yes; then |
| 8001 | |
| 8002 | cat >>confdefs.h <<\_ACEOF |
| 8003 | #define OPROF_ABI 1 |
| 8004 | _ACEOF |
| 8005 | |
| 8006 | fi |
| 8007 | |
| 8008 | |
| 8009 | if test "$enable_abi" = yes; then |
| 8010 | enable_abi_TRUE= |
| 8011 | enable_abi_FALSE='#' |
| 8012 | else |
| 8013 | enable_abi_TRUE='#' |
| 8014 | enable_abi_FALSE= |
| 8015 | fi |
| 8016 | |
| 8017 | |
| 8018 | # Check whether --enable-pch or --disable-pch was given. |
| 8019 | if test "${enable_pch+set}" = set; then |
| 8020 | enableval="$enable_pch" |
| 8021 | enable_pch=$enableval |
| 8022 | else |
| 8023 | enable_pch=no |
| 8024 | fi; |
| 8025 | if test "$enable_pch" = yes; then |
| 8026 | |
| 8027 | echo "$as_me:$LINENO: checking whether ${CXX} support precompiled header" >&5 |
| 8028 | echo $ECHO_N "checking whether ${CXX} support precompiled header... $ECHO_C" >&6 |
| 8029 | |
| 8030 | |
| 8031 | ac_ext=cc |
| 8032 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 8033 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8034 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8035 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 8036 | |
| 8037 | SAVE_CXXFLAGS=$CXXFLAGS |
| 8038 | CXXFLAGS=-Winvalid-pch |
| 8039 | cat >conftest.$ac_ext <<_ACEOF |
| 8040 | /* confdefs.h. */ |
| 8041 | _ACEOF |
| 8042 | cat confdefs.h >>conftest.$ac_ext |
| 8043 | cat >>conftest.$ac_ext <<_ACEOF |
| 8044 | /* end confdefs.h. */ |
| 8045 | |
| 8046 | int |
| 8047 | main () |
| 8048 | { |
| 8049 | ; |
| 8050 | ; |
| 8051 | return 0; |
| 8052 | } |
| 8053 | _ACEOF |
| 8054 | rm -f conftest.$ac_objext |
| 8055 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8056 | (eval $ac_compile) 2>conftest.er1 |
| 8057 | ac_status=$? |
| 8058 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8059 | rm -f conftest.er1 |
| 8060 | cat conftest.err >&5 |
| 8061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8062 | (exit $ac_status); } && |
| 8063 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 8064 | || test ! -s conftest.err' |
| 8065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8066 | (eval $ac_try) 2>&5 |
| 8067 | ac_status=$? |
| 8068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8069 | (exit $ac_status); }; } && |
| 8070 | { ac_try='test -s conftest.$ac_objext' |
| 8071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8072 | (eval $ac_try) 2>&5 |
| 8073 | ac_status=$? |
| 8074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8075 | (exit $ac_status); }; }; then |
| 8076 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8077 | echo "${ECHO_T}yes" >&6; OP_CXXFLAGS="${OP_CXXFLAGS} -include bits/stdc++.h" |
| 8078 | else |
| 8079 | echo "$as_me: failed program was:" >&5 |
| 8080 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8081 | |
| 8082 | echo "$as_me:$LINENO: result: no" >&5 |
| 8083 | echo "${ECHO_T}no" >&6 |
| 8084 | fi |
| 8085 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8086 | CXXFLAGS=$SAVE_CXXFLAGS |
| 8087 | ac_ext=cc |
| 8088 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 8089 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8090 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8091 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 8092 | |
| 8093 | |
| 8094 | fi |
| 8095 | |
| 8096 | |
| 8097 | # It's just rude to go over the net to build |
| 8098 | XSLTPROC_FLAGS=--nonet |
| 8099 | DOCBOOK_ROOT= |
| 8100 | if test ! -f /etc/xml/catalog; then |
| 8101 | for i in /usr/share/sgml/docbook/stylesheet/xsl/nwalsh /usr/share/sgml/docbook/xsl-stylesheets/; |
| 8102 | do |
| 8103 | if test -d "$i"; then |
| 8104 | DOCBOOK_ROOT=$i |
| 8105 | fi |
| 8106 | done |
| 8107 | |
| 8108 | # Last resort - try net |
| 8109 | if test -z "$DOCBOOK_ROOT"; then |
| 8110 | XSLTPROC_FLAGS= |
| 8111 | fi |
| 8112 | else |
| 8113 | XML_CATALOG=/etc/xml/catalog |
| 8114 | CAT_ENTRY_START='<!--' |
| 8115 | CAT_ENTRY_END='-->' |
| 8116 | fi |
| 8117 | |
| 8118 | # Extract the first word of "xsltproc", so it can be a program name with args. |
| 8119 | set dummy xsltproc; ac_word=$2 |
| 8120 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8121 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 8122 | if test "${ac_cv_prog_XSLTPROC+set}" = set; then |
| 8123 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8124 | else |
| 8125 | if test -n "$XSLTPROC"; then |
| 8126 | ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test. |
| 8127 | else |
| 8128 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8129 | for as_dir in $PATH |
| 8130 | do |
| 8131 | IFS=$as_save_IFS |
| 8132 | test -z "$as_dir" && as_dir=. |
| 8133 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8134 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8135 | ac_cv_prog_XSLTPROC="xsltproc" |
| 8136 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8137 | break 2 |
| 8138 | fi |
| 8139 | done |
| 8140 | done |
| 8141 | |
| 8142 | fi |
| 8143 | fi |
| 8144 | XSLTPROC=$ac_cv_prog_XSLTPROC |
| 8145 | if test -n "$XSLTPROC"; then |
| 8146 | echo "$as_me:$LINENO: result: $XSLTPROC" >&5 |
| 8147 | echo "${ECHO_T}$XSLTPROC" >&6 |
| 8148 | else |
| 8149 | echo "$as_me:$LINENO: result: no" >&5 |
| 8150 | echo "${ECHO_T}no" >&6 |
| 8151 | fi |
| 8152 | |
| 8153 | XSLTPROC_WORKS=no |
| 8154 | if test -n "$XSLTPROC"; then |
| 8155 | echo "$as_me:$LINENO: checking whether xsltproc works" >&5 |
| 8156 | echo $ECHO_N "checking whether xsltproc works... $ECHO_C" >&6 |
| 8157 | |
| 8158 | if test -n "$XML_CATALOG"; then |
| 8159 | DB_FILE="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl" |
| 8160 | else |
| 8161 | DB_FILE="$DOCBOOK_ROOT/docbook.xsl" |
| 8162 | fi |
| 8163 | |
| 8164 | $XSLTPROC $XSLTPROC_FLAGS $DB_FILE >/dev/null 2>&1 << END |
| 8165 | <?xml version="1.0" encoding='ISO-8859-1'?> |
| 8166 | <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"> |
| 8167 | <book id="test"> |
| 8168 | </book> |
| 8169 | END |
| 8170 | if test "$?" = 0; then |
| 8171 | XSLTPROC_WORKS=yes |
| 8172 | fi |
| 8173 | echo "$as_me:$LINENO: result: $XSLTPROC_WORKS" >&5 |
| 8174 | echo "${ECHO_T}$XSLTPROC_WORKS" >&6 |
| 8175 | fi |
| 8176 | |
| 8177 | |
| 8178 | if test "$XSLTPROC_WORKS" = "yes"; then |
| 8179 | have_xsltproc_TRUE= |
| 8180 | have_xsltproc_FALSE='#' |
| 8181 | else |
| 8182 | have_xsltproc_TRUE='#' |
| 8183 | have_xsltproc_FALSE= |
| 8184 | fi |
| 8185 | |
| 8186 | |
| 8187 | |
| 8188 | |
| 8189 | |
| 8190 | |
| 8191 | |
| 8192 | |
| 8193 | |
| 8194 | LIBS="$ORIG_SAVE_LIBS" |
| 8195 | LIBERTY_LIBS="-liberty $DL_LIB $INTL_LIB" |
| 8196 | BFD_LIBS="-lbfd -liberty $DL_LIB $INTL_LIB" |
| 8197 | POPT_LIBS="-lpopt" |
| 8198 | |
| 8199 | |
| 8200 | |
| 8201 | |
| 8202 | # do NOT put tests here, they will fail in the case X is not installed ! |
| 8203 | |
| 8204 | |
| 8205 | |
| 8206 | if test -n "$QT_LIB"; then |
| 8207 | have_qt_TRUE= |
| 8208 | have_qt_FALSE='#' |
| 8209 | else |
| 8210 | have_qt_TRUE='#' |
| 8211 | have_qt_FALSE= |
| 8212 | fi |
| 8213 | |
| 8214 | |
| 8215 | |
| 8216 | echo "$as_me:$LINENO: checking whether ${CC} -W is understood" >&5 |
| 8217 | echo $ECHO_N "checking whether ${CC} -W is understood... $ECHO_C" >&6 |
| 8218 | |
| 8219 | |
| 8220 | ac_ext=c |
| 8221 | ac_cpp='$CPP $CPPFLAGS' |
| 8222 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8223 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8224 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8225 | |
| 8226 | SAVE_CFLAGS=$CFLAGS |
| 8227 | CFLAGS=-W |
| 8228 | cat >conftest.$ac_ext <<_ACEOF |
| 8229 | /* confdefs.h. */ |
| 8230 | _ACEOF |
| 8231 | cat confdefs.h >>conftest.$ac_ext |
| 8232 | cat >>conftest.$ac_ext <<_ACEOF |
| 8233 | /* end confdefs.h. */ |
| 8234 | |
| 8235 | int |
| 8236 | main () |
| 8237 | { |
| 8238 | ; |
| 8239 | ; |
| 8240 | return 0; |
| 8241 | } |
| 8242 | _ACEOF |
| 8243 | rm -f conftest.$ac_objext |
| 8244 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8245 | (eval $ac_compile) 2>conftest.er1 |
| 8246 | ac_status=$? |
| 8247 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8248 | rm -f conftest.er1 |
| 8249 | cat conftest.err >&5 |
| 8250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8251 | (exit $ac_status); } && |
| 8252 | { ac_try='test -z "$ac_c_werror_flag" |
| 8253 | || test ! -s conftest.err' |
| 8254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8255 | (eval $ac_try) 2>&5 |
| 8256 | ac_status=$? |
| 8257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8258 | (exit $ac_status); }; } && |
| 8259 | { ac_try='test -s conftest.$ac_objext' |
| 8260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8261 | (eval $ac_try) 2>&5 |
| 8262 | ac_status=$? |
| 8263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8264 | (exit $ac_status); }; }; then |
| 8265 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8266 | echo "${ECHO_T}yes" >&6; OP_CFLAGS="${OP_CFLAGS} -W" |
| 8267 | else |
| 8268 | echo "$as_me: failed program was:" >&5 |
| 8269 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8270 | |
| 8271 | echo "$as_me:$LINENO: result: no" >&5 |
| 8272 | echo "${ECHO_T}no" >&6 |
| 8273 | fi |
| 8274 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8275 | CFLAGS=$SAVE_CFLAGS |
| 8276 | ac_ext=cc |
| 8277 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 8278 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8279 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8280 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 8281 | |
| 8282 | |
| 8283 | |
| 8284 | echo "$as_me:$LINENO: checking whether ${CXX} -W is understood" >&5 |
| 8285 | echo $ECHO_N "checking whether ${CXX} -W is understood... $ECHO_C" >&6 |
| 8286 | |
| 8287 | |
| 8288 | ac_ext=cc |
| 8289 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 8290 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8291 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8292 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 8293 | |
| 8294 | SAVE_CXXFLAGS=$CXXFLAGS |
| 8295 | CXXFLAGS=-W |
| 8296 | cat >conftest.$ac_ext <<_ACEOF |
| 8297 | /* confdefs.h. */ |
| 8298 | _ACEOF |
| 8299 | cat confdefs.h >>conftest.$ac_ext |
| 8300 | cat >>conftest.$ac_ext <<_ACEOF |
| 8301 | /* end confdefs.h. */ |
| 8302 | |
| 8303 | int |
| 8304 | main () |
| 8305 | { |
| 8306 | ; |
| 8307 | ; |
| 8308 | return 0; |
| 8309 | } |
| 8310 | _ACEOF |
| 8311 | rm -f conftest.$ac_objext |
| 8312 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8313 | (eval $ac_compile) 2>conftest.er1 |
| 8314 | ac_status=$? |
| 8315 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8316 | rm -f conftest.er1 |
| 8317 | cat conftest.err >&5 |
| 8318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8319 | (exit $ac_status); } && |
| 8320 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 8321 | || test ! -s conftest.err' |
| 8322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8323 | (eval $ac_try) 2>&5 |
| 8324 | ac_status=$? |
| 8325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8326 | (exit $ac_status); }; } && |
| 8327 | { ac_try='test -s conftest.$ac_objext' |
| 8328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8329 | (eval $ac_try) 2>&5 |
| 8330 | ac_status=$? |
| 8331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8332 | (exit $ac_status); }; }; then |
| 8333 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8334 | echo "${ECHO_T}yes" >&6; OP_CXXFLAGS="${OP_CXXFLAGS} -W" |
| 8335 | else |
| 8336 | echo "$as_me: failed program was:" >&5 |
| 8337 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8338 | |
| 8339 | echo "$as_me:$LINENO: result: no" >&5 |
| 8340 | echo "${ECHO_T}no" >&6 |
| 8341 | fi |
| 8342 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8343 | CXXFLAGS=$SAVE_CXXFLAGS |
| 8344 | ac_ext=cc |
| 8345 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 8346 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8347 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8348 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 8349 | |
| 8350 | |
| 8351 | |
| 8352 | echo "$as_me:$LINENO: checking whether ${CC} -Wall is understood" >&5 |
| 8353 | echo $ECHO_N "checking whether ${CC} -Wall is understood... $ECHO_C" >&6 |
| 8354 | |
| 8355 | |
| 8356 | ac_ext=c |
| 8357 | ac_cpp='$CPP $CPPFLAGS' |
| 8358 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8359 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8360 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8361 | |
| 8362 | SAVE_CFLAGS=$CFLAGS |
| 8363 | CFLAGS=-Wall |
| 8364 | cat >conftest.$ac_ext <<_ACEOF |
| 8365 | /* confdefs.h. */ |
| 8366 | _ACEOF |
| 8367 | cat confdefs.h >>conftest.$ac_ext |
| 8368 | cat >>conftest.$ac_ext <<_ACEOF |
| 8369 | /* end confdefs.h. */ |
| 8370 | |
| 8371 | int |
| 8372 | main () |
| 8373 | { |
| 8374 | ; |
| 8375 | ; |
| 8376 | return 0; |
| 8377 | } |
| 8378 | _ACEOF |
| 8379 | rm -f conftest.$ac_objext |
| 8380 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8381 | (eval $ac_compile) 2>conftest.er1 |
| 8382 | ac_status=$? |
| 8383 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8384 | rm -f conftest.er1 |
| 8385 | cat conftest.err >&5 |
| 8386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8387 | (exit $ac_status); } && |
| 8388 | { ac_try='test -z "$ac_c_werror_flag" |
| 8389 | || test ! -s conftest.err' |
| 8390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8391 | (eval $ac_try) 2>&5 |
| 8392 | ac_status=$? |
| 8393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8394 | (exit $ac_status); }; } && |
| 8395 | { ac_try='test -s conftest.$ac_objext' |
| 8396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8397 | (eval $ac_try) 2>&5 |
| 8398 | ac_status=$? |
| 8399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8400 | (exit $ac_status); }; }; then |
| 8401 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8402 | echo "${ECHO_T}yes" >&6; OP_CFLAGS="${OP_CFLAGS} -Wall" |
| 8403 | else |
| 8404 | echo "$as_me: failed program was:" >&5 |
| 8405 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8406 | |
| 8407 | echo "$as_me:$LINENO: result: no" >&5 |
| 8408 | echo "${ECHO_T}no" >&6 |
| 8409 | fi |
| 8410 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8411 | CFLAGS=$SAVE_CFLAGS |
| 8412 | ac_ext=cc |
| 8413 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 8414 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8415 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8416 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 8417 | |
| 8418 | |
| 8419 | |
| 8420 | echo "$as_me:$LINENO: checking whether ${CXX} -Wall is understood" >&5 |
| 8421 | echo $ECHO_N "checking whether ${CXX} -Wall is understood... $ECHO_C" >&6 |
| 8422 | |
| 8423 | |
| 8424 | ac_ext=cc |
| 8425 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 8426 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8427 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8428 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 8429 | |
| 8430 | SAVE_CXXFLAGS=$CXXFLAGS |
| 8431 | CXXFLAGS=-Wall |
| 8432 | cat >conftest.$ac_ext <<_ACEOF |
| 8433 | /* confdefs.h. */ |
| 8434 | _ACEOF |
| 8435 | cat confdefs.h >>conftest.$ac_ext |
| 8436 | cat >>conftest.$ac_ext <<_ACEOF |
| 8437 | /* end confdefs.h. */ |
| 8438 | |
| 8439 | int |
| 8440 | main () |
| 8441 | { |
| 8442 | ; |
| 8443 | ; |
| 8444 | return 0; |
| 8445 | } |
| 8446 | _ACEOF |
| 8447 | rm -f conftest.$ac_objext |
| 8448 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8449 | (eval $ac_compile) 2>conftest.er1 |
| 8450 | ac_status=$? |
| 8451 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8452 | rm -f conftest.er1 |
| 8453 | cat conftest.err >&5 |
| 8454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8455 | (exit $ac_status); } && |
| 8456 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 8457 | || test ! -s conftest.err' |
| 8458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8459 | (eval $ac_try) 2>&5 |
| 8460 | ac_status=$? |
| 8461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8462 | (exit $ac_status); }; } && |
| 8463 | { ac_try='test -s conftest.$ac_objext' |
| 8464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8465 | (eval $ac_try) 2>&5 |
| 8466 | ac_status=$? |
| 8467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8468 | (exit $ac_status); }; }; then |
| 8469 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8470 | echo "${ECHO_T}yes" >&6; OP_CXXFLAGS="${OP_CXXFLAGS} -Wall" |
| 8471 | else |
| 8472 | echo "$as_me: failed program was:" >&5 |
| 8473 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8474 | |
| 8475 | echo "$as_me:$LINENO: result: no" >&5 |
| 8476 | echo "${ECHO_T}no" >&6 |
| 8477 | fi |
| 8478 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8479 | CXXFLAGS=$SAVE_CXXFLAGS |
| 8480 | ac_ext=cc |
| 8481 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 8482 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8483 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8484 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 8485 | |
| 8486 | |
| 8487 | |
| 8488 | echo "$as_me:$LINENO: checking whether ${CC} -fno-common is understood" >&5 |
| 8489 | echo $ECHO_N "checking whether ${CC} -fno-common is understood... $ECHO_C" >&6 |
| 8490 | |
| 8491 | |
| 8492 | ac_ext=c |
| 8493 | ac_cpp='$CPP $CPPFLAGS' |
| 8494 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8495 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8496 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8497 | |
| 8498 | SAVE_CFLAGS=$CFLAGS |
| 8499 | CFLAGS=-fno-common |
| 8500 | cat >conftest.$ac_ext <<_ACEOF |
| 8501 | /* confdefs.h. */ |
| 8502 | _ACEOF |
| 8503 | cat confdefs.h >>conftest.$ac_ext |
| 8504 | cat >>conftest.$ac_ext <<_ACEOF |
| 8505 | /* end confdefs.h. */ |
| 8506 | |
| 8507 | int |
| 8508 | main () |
| 8509 | { |
| 8510 | ; |
| 8511 | ; |
| 8512 | return 0; |
| 8513 | } |
| 8514 | _ACEOF |
| 8515 | rm -f conftest.$ac_objext |
| 8516 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8517 | (eval $ac_compile) 2>conftest.er1 |
| 8518 | ac_status=$? |
| 8519 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8520 | rm -f conftest.er1 |
| 8521 | cat conftest.err >&5 |
| 8522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8523 | (exit $ac_status); } && |
| 8524 | { ac_try='test -z "$ac_c_werror_flag" |
| 8525 | || test ! -s conftest.err' |
| 8526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8527 | (eval $ac_try) 2>&5 |
| 8528 | ac_status=$? |
| 8529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8530 | (exit $ac_status); }; } && |
| 8531 | { ac_try='test -s conftest.$ac_objext' |
| 8532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8533 | (eval $ac_try) 2>&5 |
| 8534 | ac_status=$? |
| 8535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8536 | (exit $ac_status); }; }; then |
| 8537 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8538 | echo "${ECHO_T}yes" >&6; OP_CFLAGS="${OP_CFLAGS} -fno-common" |
| 8539 | else |
| 8540 | echo "$as_me: failed program was:" >&5 |
| 8541 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8542 | |
| 8543 | echo "$as_me:$LINENO: result: no" >&5 |
| 8544 | echo "${ECHO_T}no" >&6 |
| 8545 | fi |
| 8546 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8547 | CFLAGS=$SAVE_CFLAGS |
| 8548 | ac_ext=cc |
| 8549 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 8550 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8551 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8552 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 8553 | |
| 8554 | |
| 8555 | |
| 8556 | echo "$as_me:$LINENO: checking whether ${CXX} -fno-common is understood" >&5 |
| 8557 | echo $ECHO_N "checking whether ${CXX} -fno-common is understood... $ECHO_C" >&6 |
| 8558 | |
| 8559 | |
| 8560 | ac_ext=cc |
| 8561 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 8562 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8563 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8564 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 8565 | |
| 8566 | SAVE_CXXFLAGS=$CXXFLAGS |
| 8567 | CXXFLAGS=-fno-common |
| 8568 | cat >conftest.$ac_ext <<_ACEOF |
| 8569 | /* confdefs.h. */ |
| 8570 | _ACEOF |
| 8571 | cat confdefs.h >>conftest.$ac_ext |
| 8572 | cat >>conftest.$ac_ext <<_ACEOF |
| 8573 | /* end confdefs.h. */ |
| 8574 | |
| 8575 | int |
| 8576 | main () |
| 8577 | { |
| 8578 | ; |
| 8579 | ; |
| 8580 | return 0; |
| 8581 | } |
| 8582 | _ACEOF |
| 8583 | rm -f conftest.$ac_objext |
| 8584 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8585 | (eval $ac_compile) 2>conftest.er1 |
| 8586 | ac_status=$? |
| 8587 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8588 | rm -f conftest.er1 |
| 8589 | cat conftest.err >&5 |
| 8590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8591 | (exit $ac_status); } && |
| 8592 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 8593 | || test ! -s conftest.err' |
| 8594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8595 | (eval $ac_try) 2>&5 |
| 8596 | ac_status=$? |
| 8597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8598 | (exit $ac_status); }; } && |
| 8599 | { ac_try='test -s conftest.$ac_objext' |
| 8600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8601 | (eval $ac_try) 2>&5 |
| 8602 | ac_status=$? |
| 8603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8604 | (exit $ac_status); }; }; then |
| 8605 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8606 | echo "${ECHO_T}yes" >&6; OP_CXXFLAGS="${OP_CXXFLAGS} -fno-common" |
| 8607 | else |
| 8608 | echo "$as_me: failed program was:" >&5 |
| 8609 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8610 | |
| 8611 | echo "$as_me:$LINENO: result: no" >&5 |
| 8612 | echo "${ECHO_T}no" >&6 |
| 8613 | fi |
| 8614 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8615 | CXXFLAGS=$SAVE_CXXFLAGS |
| 8616 | ac_ext=cc |
| 8617 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 8618 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8619 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8620 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 8621 | |
| 8622 | |
| 8623 | |
| 8624 | echo "$as_me:$LINENO: checking whether ${CXX} -ftemplate-depth-50 is understood" >&5 |
| 8625 | echo $ECHO_N "checking whether ${CXX} -ftemplate-depth-50 is understood... $ECHO_C" >&6 |
| 8626 | |
| 8627 | |
| 8628 | ac_ext=cc |
| 8629 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 8630 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8631 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8632 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 8633 | |
| 8634 | SAVE_CXXFLAGS=$CXXFLAGS |
| 8635 | CXXFLAGS=-ftemplate-depth-50 |
| 8636 | cat >conftest.$ac_ext <<_ACEOF |
| 8637 | /* confdefs.h. */ |
| 8638 | _ACEOF |
| 8639 | cat confdefs.h >>conftest.$ac_ext |
| 8640 | cat >>conftest.$ac_ext <<_ACEOF |
| 8641 | /* end confdefs.h. */ |
| 8642 | |
| 8643 | int |
| 8644 | main () |
| 8645 | { |
| 8646 | ; |
| 8647 | ; |
| 8648 | return 0; |
| 8649 | } |
| 8650 | _ACEOF |
| 8651 | rm -f conftest.$ac_objext |
| 8652 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8653 | (eval $ac_compile) 2>conftest.er1 |
| 8654 | ac_status=$? |
| 8655 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8656 | rm -f conftest.er1 |
| 8657 | cat conftest.err >&5 |
| 8658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8659 | (exit $ac_status); } && |
| 8660 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 8661 | || test ! -s conftest.err' |
| 8662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8663 | (eval $ac_try) 2>&5 |
| 8664 | ac_status=$? |
| 8665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8666 | (exit $ac_status); }; } && |
| 8667 | { ac_try='test -s conftest.$ac_objext' |
| 8668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8669 | (eval $ac_try) 2>&5 |
| 8670 | ac_status=$? |
| 8671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8672 | (exit $ac_status); }; }; then |
| 8673 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8674 | echo "${ECHO_T}yes" >&6; OP_CXXFLAGS="${OP_CXXFLAGS} -ftemplate-depth-50" |
| 8675 | else |
| 8676 | echo "$as_me: failed program was:" >&5 |
| 8677 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8678 | |
| 8679 | echo "$as_me:$LINENO: result: no" >&5 |
| 8680 | echo "${ECHO_T}no" >&6 |
| 8681 | fi |
| 8682 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8683 | CXXFLAGS=$SAVE_CXXFLAGS |
| 8684 | ac_ext=cc |
| 8685 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 8686 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8687 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8688 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 8689 | |
| 8690 | |
| 8691 | |
| 8692 | echo "$as_me:$LINENO: checking whether ${CC} -Wdeclaration-after-statement is understood" >&5 |
| 8693 | echo $ECHO_N "checking whether ${CC} -Wdeclaration-after-statement is understood... $ECHO_C" >&6 |
| 8694 | |
| 8695 | |
| 8696 | ac_ext=c |
| 8697 | ac_cpp='$CPP $CPPFLAGS' |
| 8698 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8699 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8700 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8701 | |
| 8702 | SAVE_CFLAGS=$CFLAGS |
| 8703 | CFLAGS=-Wdeclaration-after-statement |
| 8704 | cat >conftest.$ac_ext <<_ACEOF |
| 8705 | /* confdefs.h. */ |
| 8706 | _ACEOF |
| 8707 | cat confdefs.h >>conftest.$ac_ext |
| 8708 | cat >>conftest.$ac_ext <<_ACEOF |
| 8709 | /* end confdefs.h. */ |
| 8710 | |
| 8711 | int |
| 8712 | main () |
| 8713 | { |
| 8714 | ; |
| 8715 | ; |
| 8716 | return 0; |
| 8717 | } |
| 8718 | _ACEOF |
| 8719 | rm -f conftest.$ac_objext |
| 8720 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8721 | (eval $ac_compile) 2>conftest.er1 |
| 8722 | ac_status=$? |
| 8723 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8724 | rm -f conftest.er1 |
| 8725 | cat conftest.err >&5 |
| 8726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8727 | (exit $ac_status); } && |
| 8728 | { ac_try='test -z "$ac_c_werror_flag" |
| 8729 | || test ! -s conftest.err' |
| 8730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8731 | (eval $ac_try) 2>&5 |
| 8732 | ac_status=$? |
| 8733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8734 | (exit $ac_status); }; } && |
| 8735 | { ac_try='test -s conftest.$ac_objext' |
| 8736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8737 | (eval $ac_try) 2>&5 |
| 8738 | ac_status=$? |
| 8739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8740 | (exit $ac_status); }; }; then |
| 8741 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8742 | echo "${ECHO_T}yes" >&6; OP_CFLAGS="${OP_CFLAGS} -Wdeclaration-after-statement" |
| 8743 | else |
| 8744 | echo "$as_me: failed program was:" >&5 |
| 8745 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8746 | |
| 8747 | echo "$as_me:$LINENO: result: no" >&5 |
| 8748 | echo "${ECHO_T}no" >&6 |
| 8749 | fi |
| 8750 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8751 | CFLAGS=$SAVE_CFLAGS |
| 8752 | ac_ext=cc |
| 8753 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 8754 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8755 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8756 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 8757 | |
| 8758 | |
| 8759 | |
| 8760 | # Check whether --enable-gcov or --disable-gcov was given. |
| 8761 | if test "${enable_gcov+set}" = set; then |
| 8762 | enableval="$enable_gcov" |
| 8763 | enable_gcov=$enableval |
| 8764 | else |
| 8765 | enable_gcov=no |
| 8766 | fi; |
| 8767 | if test "$enable_gcov" = yes; then |
| 8768 | |
| 8769 | echo "$as_me:$LINENO: checking whether ${CC} -fprofile-arcs is understood" >&5 |
| 8770 | echo $ECHO_N "checking whether ${CC} -fprofile-arcs is understood... $ECHO_C" >&6 |
| 8771 | |
| 8772 | |
| 8773 | ac_ext=c |
| 8774 | ac_cpp='$CPP $CPPFLAGS' |
| 8775 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8776 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8777 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8778 | |
| 8779 | SAVE_CFLAGS=$CFLAGS |
| 8780 | CFLAGS=-fprofile-arcs |
| 8781 | cat >conftest.$ac_ext <<_ACEOF |
| 8782 | /* confdefs.h. */ |
| 8783 | _ACEOF |
| 8784 | cat confdefs.h >>conftest.$ac_ext |
| 8785 | cat >>conftest.$ac_ext <<_ACEOF |
| 8786 | /* end confdefs.h. */ |
| 8787 | |
| 8788 | int |
| 8789 | main () |
| 8790 | { |
| 8791 | ; |
| 8792 | ; |
| 8793 | return 0; |
| 8794 | } |
| 8795 | _ACEOF |
| 8796 | rm -f conftest.$ac_objext |
| 8797 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8798 | (eval $ac_compile) 2>conftest.er1 |
| 8799 | ac_status=$? |
| 8800 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8801 | rm -f conftest.er1 |
| 8802 | cat conftest.err >&5 |
| 8803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8804 | (exit $ac_status); } && |
| 8805 | { ac_try='test -z "$ac_c_werror_flag" |
| 8806 | || test ! -s conftest.err' |
| 8807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8808 | (eval $ac_try) 2>&5 |
| 8809 | ac_status=$? |
| 8810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8811 | (exit $ac_status); }; } && |
| 8812 | { ac_try='test -s conftest.$ac_objext' |
| 8813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8814 | (eval $ac_try) 2>&5 |
| 8815 | ac_status=$? |
| 8816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8817 | (exit $ac_status); }; }; then |
| 8818 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8819 | echo "${ECHO_T}yes" >&6; OP_CFLAGS="${OP_CFLAGS} -fprofile-arcs" |
| 8820 | else |
| 8821 | echo "$as_me: failed program was:" >&5 |
| 8822 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8823 | |
| 8824 | echo "$as_me:$LINENO: result: no" >&5 |
| 8825 | echo "${ECHO_T}no" >&6 |
| 8826 | fi |
| 8827 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8828 | CFLAGS=$SAVE_CFLAGS |
| 8829 | ac_ext=cc |
| 8830 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 8831 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8832 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8833 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 8834 | |
| 8835 | |
| 8836 | |
| 8837 | echo "$as_me:$LINENO: checking whether ${CXX} -fprofile-arcs is understood" >&5 |
| 8838 | echo $ECHO_N "checking whether ${CXX} -fprofile-arcs is understood... $ECHO_C" >&6 |
| 8839 | |
| 8840 | |
| 8841 | ac_ext=cc |
| 8842 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 8843 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8844 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8845 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 8846 | |
| 8847 | SAVE_CXXFLAGS=$CXXFLAGS |
| 8848 | CXXFLAGS=-fprofile-arcs |
| 8849 | cat >conftest.$ac_ext <<_ACEOF |
| 8850 | /* confdefs.h. */ |
| 8851 | _ACEOF |
| 8852 | cat confdefs.h >>conftest.$ac_ext |
| 8853 | cat >>conftest.$ac_ext <<_ACEOF |
| 8854 | /* end confdefs.h. */ |
| 8855 | |
| 8856 | int |
| 8857 | main () |
| 8858 | { |
| 8859 | ; |
| 8860 | ; |
| 8861 | return 0; |
| 8862 | } |
| 8863 | _ACEOF |
| 8864 | rm -f conftest.$ac_objext |
| 8865 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8866 | (eval $ac_compile) 2>conftest.er1 |
| 8867 | ac_status=$? |
| 8868 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8869 | rm -f conftest.er1 |
| 8870 | cat conftest.err >&5 |
| 8871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8872 | (exit $ac_status); } && |
| 8873 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 8874 | || test ! -s conftest.err' |
| 8875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8876 | (eval $ac_try) 2>&5 |
| 8877 | ac_status=$? |
| 8878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8879 | (exit $ac_status); }; } && |
| 8880 | { ac_try='test -s conftest.$ac_objext' |
| 8881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8882 | (eval $ac_try) 2>&5 |
| 8883 | ac_status=$? |
| 8884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8885 | (exit $ac_status); }; }; then |
| 8886 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8887 | echo "${ECHO_T}yes" >&6; OP_CXXFLAGS="${OP_CXXFLAGS} -fprofile-arcs" |
| 8888 | else |
| 8889 | echo "$as_me: failed program was:" >&5 |
| 8890 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8891 | |
| 8892 | echo "$as_me:$LINENO: result: no" >&5 |
| 8893 | echo "${ECHO_T}no" >&6 |
| 8894 | fi |
| 8895 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8896 | CXXFLAGS=$SAVE_CXXFLAGS |
| 8897 | ac_ext=cc |
| 8898 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 8899 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8900 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8901 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 8902 | |
| 8903 | |
| 8904 | |
| 8905 | echo "$as_me:$LINENO: checking whether ${CC} -ftest-coverage is understood" >&5 |
| 8906 | echo $ECHO_N "checking whether ${CC} -ftest-coverage is understood... $ECHO_C" >&6 |
| 8907 | |
| 8908 | |
| 8909 | ac_ext=c |
| 8910 | ac_cpp='$CPP $CPPFLAGS' |
| 8911 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8912 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8913 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8914 | |
| 8915 | SAVE_CFLAGS=$CFLAGS |
| 8916 | CFLAGS=-ftest-coverage |
| 8917 | cat >conftest.$ac_ext <<_ACEOF |
| 8918 | /* confdefs.h. */ |
| 8919 | _ACEOF |
| 8920 | cat confdefs.h >>conftest.$ac_ext |
| 8921 | cat >>conftest.$ac_ext <<_ACEOF |
| 8922 | /* end confdefs.h. */ |
| 8923 | |
| 8924 | int |
| 8925 | main () |
| 8926 | { |
| 8927 | ; |
| 8928 | ; |
| 8929 | return 0; |
| 8930 | } |
| 8931 | _ACEOF |
| 8932 | rm -f conftest.$ac_objext |
| 8933 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8934 | (eval $ac_compile) 2>conftest.er1 |
| 8935 | ac_status=$? |
| 8936 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8937 | rm -f conftest.er1 |
| 8938 | cat conftest.err >&5 |
| 8939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8940 | (exit $ac_status); } && |
| 8941 | { ac_try='test -z "$ac_c_werror_flag" |
| 8942 | || test ! -s conftest.err' |
| 8943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8944 | (eval $ac_try) 2>&5 |
| 8945 | ac_status=$? |
| 8946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8947 | (exit $ac_status); }; } && |
| 8948 | { ac_try='test -s conftest.$ac_objext' |
| 8949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8950 | (eval $ac_try) 2>&5 |
| 8951 | ac_status=$? |
| 8952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8953 | (exit $ac_status); }; }; then |
| 8954 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8955 | echo "${ECHO_T}yes" >&6; OP_CFLAGS="${OP_CFLAGS} -ftest-coverage" |
| 8956 | else |
| 8957 | echo "$as_me: failed program was:" >&5 |
| 8958 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8959 | |
| 8960 | echo "$as_me:$LINENO: result: no" >&5 |
| 8961 | echo "${ECHO_T}no" >&6 |
| 8962 | fi |
| 8963 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8964 | CFLAGS=$SAVE_CFLAGS |
| 8965 | ac_ext=cc |
| 8966 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 8967 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8968 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8969 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 8970 | |
| 8971 | |
| 8972 | |
| 8973 | echo "$as_me:$LINENO: checking whether ${CXX} -ftest-coverage is understood" >&5 |
| 8974 | echo $ECHO_N "checking whether ${CXX} -ftest-coverage is understood... $ECHO_C" >&6 |
| 8975 | |
| 8976 | |
| 8977 | ac_ext=cc |
| 8978 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 8979 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8980 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8981 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 8982 | |
| 8983 | SAVE_CXXFLAGS=$CXXFLAGS |
| 8984 | CXXFLAGS=-ftest-coverage |
| 8985 | cat >conftest.$ac_ext <<_ACEOF |
| 8986 | /* confdefs.h. */ |
| 8987 | _ACEOF |
| 8988 | cat confdefs.h >>conftest.$ac_ext |
| 8989 | cat >>conftest.$ac_ext <<_ACEOF |
| 8990 | /* end confdefs.h. */ |
| 8991 | |
| 8992 | int |
| 8993 | main () |
| 8994 | { |
| 8995 | ; |
| 8996 | ; |
| 8997 | return 0; |
| 8998 | } |
| 8999 | _ACEOF |
| 9000 | rm -f conftest.$ac_objext |
| 9001 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9002 | (eval $ac_compile) 2>conftest.er1 |
| 9003 | ac_status=$? |
| 9004 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9005 | rm -f conftest.er1 |
| 9006 | cat conftest.err >&5 |
| 9007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9008 | (exit $ac_status); } && |
| 9009 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 9010 | || test ! -s conftest.err' |
| 9011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9012 | (eval $ac_try) 2>&5 |
| 9013 | ac_status=$? |
| 9014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9015 | (exit $ac_status); }; } && |
| 9016 | { ac_try='test -s conftest.$ac_objext' |
| 9017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9018 | (eval $ac_try) 2>&5 |
| 9019 | ac_status=$? |
| 9020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9021 | (exit $ac_status); }; }; then |
| 9022 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9023 | echo "${ECHO_T}yes" >&6; OP_CXXFLAGS="${OP_CXXFLAGS} -ftest-coverage" |
| 9024 | else |
| 9025 | echo "$as_me: failed program was:" >&5 |
| 9026 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9027 | |
| 9028 | echo "$as_me:$LINENO: result: no" >&5 |
| 9029 | echo "${ECHO_T}no" >&6 |
| 9030 | fi |
| 9031 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9032 | CXXFLAGS=$SAVE_CXXFLAGS |
| 9033 | ac_ext=cc |
| 9034 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 9035 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9036 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9037 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 9038 | |
| 9039 | |
| 9040 | fi |
| 9041 | |
| 9042 | # Check whether --enable-werror or --disable-werror was given. |
| 9043 | if test "${enable_werror+set}" = set; then |
| 9044 | enableval="$enable_werror" |
| 9045 | enable_werror=$enableval |
| 9046 | else |
| 9047 | enable_werror=yes |
| 9048 | fi; |
| 9049 | if test "$enable_werror" = yes; then |
| 9050 | # enable -Werror for non-release versions. |
| 9051 | if echo "$VERSION" | grep cvs >/dev/null; then |
| 9052 | |
| 9053 | echo "$as_me:$LINENO: checking whether ${CC} -Werror is understood" >&5 |
| 9054 | echo $ECHO_N "checking whether ${CC} -Werror is understood... $ECHO_C" >&6 |
| 9055 | |
| 9056 | |
| 9057 | ac_ext=c |
| 9058 | ac_cpp='$CPP $CPPFLAGS' |
| 9059 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9060 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9061 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9062 | |
| 9063 | SAVE_CFLAGS=$CFLAGS |
| 9064 | CFLAGS=-Werror |
| 9065 | cat >conftest.$ac_ext <<_ACEOF |
| 9066 | /* confdefs.h. */ |
| 9067 | _ACEOF |
| 9068 | cat confdefs.h >>conftest.$ac_ext |
| 9069 | cat >>conftest.$ac_ext <<_ACEOF |
| 9070 | /* end confdefs.h. */ |
| 9071 | |
| 9072 | int |
| 9073 | main () |
| 9074 | { |
| 9075 | ; |
| 9076 | ; |
| 9077 | return 0; |
| 9078 | } |
| 9079 | _ACEOF |
| 9080 | rm -f conftest.$ac_objext |
| 9081 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9082 | (eval $ac_compile) 2>conftest.er1 |
| 9083 | ac_status=$? |
| 9084 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9085 | rm -f conftest.er1 |
| 9086 | cat conftest.err >&5 |
| 9087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9088 | (exit $ac_status); } && |
| 9089 | { ac_try='test -z "$ac_c_werror_flag" |
| 9090 | || test ! -s conftest.err' |
| 9091 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9092 | (eval $ac_try) 2>&5 |
| 9093 | ac_status=$? |
| 9094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9095 | (exit $ac_status); }; } && |
| 9096 | { ac_try='test -s conftest.$ac_objext' |
| 9097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9098 | (eval $ac_try) 2>&5 |
| 9099 | ac_status=$? |
| 9100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9101 | (exit $ac_status); }; }; then |
| 9102 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9103 | echo "${ECHO_T}yes" >&6; OP_CFLAGS="${OP_CFLAGS} -Werror" |
| 9104 | else |
| 9105 | echo "$as_me: failed program was:" >&5 |
| 9106 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9107 | |
| 9108 | echo "$as_me:$LINENO: result: no" >&5 |
| 9109 | echo "${ECHO_T}no" >&6 |
| 9110 | fi |
| 9111 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9112 | CFLAGS=$SAVE_CFLAGS |
| 9113 | ac_ext=cc |
| 9114 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 9115 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9116 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9117 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 9118 | |
| 9119 | |
| 9120 | |
| 9121 | echo "$as_me:$LINENO: checking whether ${CXX} -Werror is understood" >&5 |
| 9122 | echo $ECHO_N "checking whether ${CXX} -Werror is understood... $ECHO_C" >&6 |
| 9123 | |
| 9124 | |
| 9125 | ac_ext=cc |
| 9126 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 9127 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9128 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9129 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 9130 | |
| 9131 | SAVE_CXXFLAGS=$CXXFLAGS |
| 9132 | CXXFLAGS=-Werror |
| 9133 | cat >conftest.$ac_ext <<_ACEOF |
| 9134 | /* confdefs.h. */ |
| 9135 | _ACEOF |
| 9136 | cat confdefs.h >>conftest.$ac_ext |
| 9137 | cat >>conftest.$ac_ext <<_ACEOF |
| 9138 | /* end confdefs.h. */ |
| 9139 | |
| 9140 | int |
| 9141 | main () |
| 9142 | { |
| 9143 | ; |
| 9144 | ; |
| 9145 | return 0; |
| 9146 | } |
| 9147 | _ACEOF |
| 9148 | rm -f conftest.$ac_objext |
| 9149 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9150 | (eval $ac_compile) 2>conftest.er1 |
| 9151 | ac_status=$? |
| 9152 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9153 | rm -f conftest.er1 |
| 9154 | cat conftest.err >&5 |
| 9155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9156 | (exit $ac_status); } && |
| 9157 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 9158 | || test ! -s conftest.err' |
| 9159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9160 | (eval $ac_try) 2>&5 |
| 9161 | ac_status=$? |
| 9162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9163 | (exit $ac_status); }; } && |
| 9164 | { ac_try='test -s conftest.$ac_objext' |
| 9165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9166 | (eval $ac_try) 2>&5 |
| 9167 | ac_status=$? |
| 9168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9169 | (exit $ac_status); }; }; then |
| 9170 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9171 | echo "${ECHO_T}yes" >&6; OP_CXXFLAGS="${OP_CXXFLAGS} -Werror" |
| 9172 | else |
| 9173 | echo "$as_me: failed program was:" >&5 |
| 9174 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9175 | |
| 9176 | echo "$as_me:$LINENO: result: no" >&5 |
| 9177 | echo "${ECHO_T}no" >&6 |
| 9178 | fi |
| 9179 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9180 | CXXFLAGS=$SAVE_CXXFLAGS |
| 9181 | ac_ext=cc |
| 9182 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 9183 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9184 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9185 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 9186 | |
| 9187 | |
| 9188 | fi |
| 9189 | fi |
| 9190 | |
| 9191 | # Check whether --enable-optimization or --disable-optimization was given. |
| 9192 | if test "${enable_optimization+set}" = set; then |
| 9193 | enableval="$enable_optimization" |
| 9194 | enable_optimization=$enableval |
| 9195 | else |
| 9196 | enable_optimisation=yes |
| 9197 | fi; |
| 9198 | if test "$enable_optimization" = "no"; then |
| 9199 | CFLAGS=`echo $CFLAGS | sed 's/-O2//g'` |
| 9200 | CXXFLAGS=`echo $CXXFLAGS | sed 's/-O2//g'` |
| 9201 | fi |
| 9202 | |
| 9203 | |
| 9204 | |
| 9205 | |
| 9206 | # fixups for config.h |
| 9207 | if test "$prefix" = "NONE"; then |
| 9208 | my_op_prefix="$ac_default_prefix" |
| 9209 | else |
| 9210 | my_op_prefix="$prefix" |
| 9211 | fi |
| 9212 | my_op_datadir="$my_op_prefix/share" |
| 9213 | |
| 9214 | if test "$exec_prefix" = "NONE"; then |
| 9215 | my_op_exec_prefix="$my_op_prefix" |
| 9216 | else |
| 9217 | my_op_exec_prefix="$exec_prefix" |
| 9218 | fi |
| 9219 | my_op_bindir="$my_op_exec_prefix/bin" |
| 9220 | |
| 9221 | OP_DATADIR=`eval echo "$my_op_datadir/$PACKAGE/"` |
| 9222 | |
| 9223 | cat >>confdefs.h <<_ACEOF |
| 9224 | #define OP_DATADIR "$OP_DATADIR" |
| 9225 | _ACEOF |
| 9226 | |
| 9227 | OP_BINDIR=`eval echo "$my_op_bindir/"` |
| 9228 | |
| 9229 | cat >>confdefs.h <<_ACEOF |
| 9230 | #define OP_BINDIR "$OP_BINDIR" |
| 9231 | _ACEOF |
| 9232 | |
| 9233 | OP_DOCDIR=`eval echo "${my_op_prefix}/share/doc/$PACKAGE/"` |
| 9234 | |
| 9235 | |
| 9236 | ac_config_files="$ac_config_files Makefile m4/Makefile libutil/Makefile libutil/tests/Makefile libutil++/Makefile libutil++/tests/Makefile libop/Makefile libop/tests/Makefile libopt++/Makefile libdb/Makefile libdb/tests/Makefile libabi/Makefile libabi/tests/Makefile libregex/Makefile libregex/tests/Makefile libregex/stl.pat libregex/tests/mangled-name daemon/Makefile daemon/liblegacy/Makefile events/Makefile utils/Makefile doc/Makefile doc/xsl/catalog-1.xml doc/oprofile.1 doc/opcontrol.1 doc/ophelp.1 doc/opreport.1 doc/opannotate.1 doc/opgprof.1 doc/oparchive.1 doc/srcdoc/Doxyfile libpp/Makefile pp/Makefile gui/Makefile gui/ui/Makefile module/Makefile module/x86/Makefile module/ia64/Makefile" |
| 9237 | cat >confcache <<\_ACEOF |
| 9238 | # This file is a shell script that caches the results of configure |
| 9239 | # tests run on this system so they can be shared between configure |
| 9240 | # scripts and configure runs, see configure's option --config-cache. |
| 9241 | # It is not useful on other systems. If it contains results you don't |
| 9242 | # want to keep, you may remove or edit it. |
| 9243 | # |
| 9244 | # config.status only pays attention to the cache file if you give it |
| 9245 | # the --recheck option to rerun configure. |
| 9246 | # |
| 9247 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 9248 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 9249 | # following values. |
| 9250 | |
| 9251 | _ACEOF |
| 9252 | |
| 9253 | # The following way of writing the cache mishandles newlines in values, |
| 9254 | # but we know of no workaround that is simple, portable, and efficient. |
| 9255 | # So, don't put newlines in cache variables' values. |
| 9256 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 9257 | # and sets the high bit in the cache file unless we assign to the vars. |
| 9258 | { |
| 9259 | (set) 2>&1 | |
| 9260 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 9261 | *ac_space=\ *) |
| 9262 | # `set' does not quote correctly, so add quotes (double-quote |
| 9263 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 9264 | sed -n \ |
| 9265 | "s/'/'\\\\''/g; |
| 9266 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 9267 | ;; |
| 9268 | *) |
| 9269 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 9270 | sed -n \ |
| 9271 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 9272 | ;; |
| 9273 | esac; |
| 9274 | } | |
| 9275 | sed ' |
| 9276 | t clear |
| 9277 | : clear |
| 9278 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 9279 | t end |
| 9280 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 9281 | : end' >>confcache |
| 9282 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
| 9283 | if test -w $cache_file; then |
| 9284 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 9285 | cat confcache >$cache_file |
| 9286 | else |
| 9287 | echo "not updating unwritable cache $cache_file" |
| 9288 | fi |
| 9289 | fi |
| 9290 | rm -f confcache |
| 9291 | |
| 9292 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 9293 | # Let make expand exec_prefix. |
| 9294 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 9295 | |
| 9296 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 9297 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 9298 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 9299 | # (actually we leave an empty line to preserve line numbers). |
| 9300 | if test "x$srcdir" = x.; then |
| 9301 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 9302 | s/:*\$(srcdir):*/:/; |
| 9303 | s/:*\${srcdir}:*/:/; |
| 9304 | s/:*@srcdir@:*/:/; |
| 9305 | s/^\([^=]*=[ ]*\):*/\1/; |
| 9306 | s/:*$//; |
| 9307 | s/^[^=]*=[ ]*$//; |
| 9308 | }' |
| 9309 | fi |
| 9310 | |
| 9311 | DEFS=-DHAVE_CONFIG_H |
| 9312 | |
| 9313 | ac_libobjs= |
| 9314 | ac_ltlibobjs= |
| 9315 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 9316 | # 1. Remove the extension, and $U if already installed. |
| 9317 | ac_i=`echo "$ac_i" | |
| 9318 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
| 9319 | # 2. Add them. |
| 9320 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 9321 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 9322 | done |
| 9323 | LIBOBJS=$ac_libobjs |
| 9324 | |
| 9325 | LTLIBOBJS=$ac_ltlibobjs |
| 9326 | |
| 9327 | |
| 9328 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
| 9329 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
| 9330 | Usually this means the macro was only invoked conditionally." >&5 |
| 9331 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
| 9332 | Usually this means the macro was only invoked conditionally." >&2;} |
| 9333 | { (exit 1); exit 1; }; } |
| 9334 | fi |
| 9335 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
| 9336 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
| 9337 | Usually this means the macro was only invoked conditionally." >&5 |
| 9338 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
| 9339 | Usually this means the macro was only invoked conditionally." >&2;} |
| 9340 | { (exit 1); exit 1; }; } |
| 9341 | fi |
| 9342 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
| 9343 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
| 9344 | Usually this means the macro was only invoked conditionally." >&5 |
| 9345 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
| 9346 | Usually this means the macro was only invoked conditionally." >&2;} |
| 9347 | { (exit 1); exit 1; }; } |
| 9348 | fi |
| 9349 | if test -z "${kernel_support_TRUE}" && test -z "${kernel_support_FALSE}"; then |
| 9350 | { { echo "$as_me:$LINENO: error: conditional \"kernel_support\" was never defined. |
| 9351 | Usually this means the macro was only invoked conditionally." >&5 |
| 9352 | echo "$as_me: error: conditional \"kernel_support\" was never defined. |
| 9353 | Usually this means the macro was only invoked conditionally." >&2;} |
| 9354 | { (exit 1); exit 1; }; } |
| 9355 | fi |
| 9356 | if test -z "${enable_abi_TRUE}" && test -z "${enable_abi_FALSE}"; then |
| 9357 | { { echo "$as_me:$LINENO: error: conditional \"enable_abi\" was never defined. |
| 9358 | Usually this means the macro was only invoked conditionally." >&5 |
| 9359 | echo "$as_me: error: conditional \"enable_abi\" was never defined. |
| 9360 | Usually this means the macro was only invoked conditionally." >&2;} |
| 9361 | { (exit 1); exit 1; }; } |
| 9362 | fi |
| 9363 | if test -z "${have_xsltproc_TRUE}" && test -z "${have_xsltproc_FALSE}"; then |
| 9364 | { { echo "$as_me:$LINENO: error: conditional \"have_xsltproc\" was never defined. |
| 9365 | Usually this means the macro was only invoked conditionally." >&5 |
| 9366 | echo "$as_me: error: conditional \"have_xsltproc\" was never defined. |
| 9367 | Usually this means the macro was only invoked conditionally." >&2;} |
| 9368 | { (exit 1); exit 1; }; } |
| 9369 | fi |
| 9370 | if test -z "${have_qt_TRUE}" && test -z "${have_qt_FALSE}"; then |
| 9371 | { { echo "$as_me:$LINENO: error: conditional \"have_qt\" was never defined. |
| 9372 | Usually this means the macro was only invoked conditionally." >&5 |
| 9373 | echo "$as_me: error: conditional \"have_qt\" was never defined. |
| 9374 | Usually this means the macro was only invoked conditionally." >&2;} |
| 9375 | { (exit 1); exit 1; }; } |
| 9376 | fi |
| 9377 | |
| 9378 | : ${CONFIG_STATUS=./config.status} |
| 9379 | ac_clean_files_save=$ac_clean_files |
| 9380 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 9381 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 9382 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 9383 | cat >$CONFIG_STATUS <<_ACEOF |
| 9384 | #! $SHELL |
| 9385 | # Generated by $as_me. |
| 9386 | # Run this file to recreate the current configuration. |
| 9387 | # Compiler output produced by configure, useful for debugging |
| 9388 | # configure, is in config.log if it exists. |
| 9389 | |
| 9390 | debug=false |
| 9391 | ac_cs_recheck=false |
| 9392 | ac_cs_silent=false |
| 9393 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 9394 | _ACEOF |
| 9395 | |
| 9396 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 9397 | ## --------------------- ## |
| 9398 | ## M4sh Initialization. ## |
| 9399 | ## --------------------- ## |
| 9400 | |
| 9401 | # Be Bourne compatible |
| 9402 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 9403 | emulate sh |
| 9404 | NULLCMD=: |
| 9405 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 9406 | # is contrary to our usage. Disable this feature. |
| 9407 | alias -g '${1+"$@"}'='"$@"' |
| 9408 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 9409 | set -o posix |
| 9410 | fi |
| 9411 | DUALCASE=1; export DUALCASE # for MKS sh |
| 9412 | |
| 9413 | # Support unset when possible. |
| 9414 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 9415 | as_unset=unset |
| 9416 | else |
| 9417 | as_unset=false |
| 9418 | fi |
| 9419 | |
| 9420 | |
| 9421 | # Work around bugs in pre-3.0 UWIN ksh. |
| 9422 | $as_unset ENV MAIL MAILPATH |
| 9423 | PS1='$ ' |
| 9424 | PS2='> ' |
| 9425 | PS4='+ ' |
| 9426 | |
| 9427 | # NLS nuisances. |
| 9428 | for as_var in \ |
| 9429 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 9430 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 9431 | LC_TELEPHONE LC_TIME |
| 9432 | do |
| 9433 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 9434 | eval $as_var=C; export $as_var |
| 9435 | else |
| 9436 | $as_unset $as_var |
| 9437 | fi |
| 9438 | done |
| 9439 | |
| 9440 | # Required to use basename. |
| 9441 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 9442 | as_expr=expr |
| 9443 | else |
| 9444 | as_expr=false |
| 9445 | fi |
| 9446 | |
| 9447 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 9448 | as_basename=basename |
| 9449 | else |
| 9450 | as_basename=false |
| 9451 | fi |
| 9452 | |
| 9453 | |
| 9454 | # Name of the executable. |
| 9455 | as_me=`$as_basename "$0" || |
| 9456 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 9457 | X"$0" : 'X\(//\)$' \| \ |
| 9458 | X"$0" : 'X\(/\)$' \| \ |
| 9459 | . : '\(.\)' 2>/dev/null || |
| 9460 | echo X/"$0" | |
| 9461 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 9462 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 9463 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 9464 | s/.*/./; q'` |
| 9465 | |
| 9466 | |
| 9467 | # PATH needs CR, and LINENO needs CR and PATH. |
| 9468 | # Avoid depending upon Character Ranges. |
| 9469 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 9470 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 9471 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 9472 | as_cr_digits='0123456789' |
| 9473 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 9474 | |
| 9475 | # The user is always right. |
| 9476 | if test "${PATH_SEPARATOR+set}" != set; then |
| 9477 | echo "#! /bin/sh" >conf$$.sh |
| 9478 | echo "exit 0" >>conf$$.sh |
| 9479 | chmod +x conf$$.sh |
| 9480 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 9481 | PATH_SEPARATOR=';' |
| 9482 | else |
| 9483 | PATH_SEPARATOR=: |
| 9484 | fi |
| 9485 | rm -f conf$$.sh |
| 9486 | fi |
| 9487 | |
| 9488 | |
| 9489 | as_lineno_1=$LINENO |
| 9490 | as_lineno_2=$LINENO |
| 9491 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 9492 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 9493 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 9494 | # Find who we are. Look in the path if we contain no path at all |
| 9495 | # relative or not. |
| 9496 | case $0 in |
| 9497 | *[\\/]* ) as_myself=$0 ;; |
| 9498 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9499 | for as_dir in $PATH |
| 9500 | do |
| 9501 | IFS=$as_save_IFS |
| 9502 | test -z "$as_dir" && as_dir=. |
| 9503 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 9504 | done |
| 9505 | |
| 9506 | ;; |
| 9507 | esac |
| 9508 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 9509 | # in which case we are not to be found in the path. |
| 9510 | if test "x$as_myself" = x; then |
| 9511 | as_myself=$0 |
| 9512 | fi |
| 9513 | if test ! -f "$as_myself"; then |
| 9514 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 9515 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 9516 | { (exit 1); exit 1; }; } |
| 9517 | fi |
| 9518 | case $CONFIG_SHELL in |
| 9519 | '') |
| 9520 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9521 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 9522 | do |
| 9523 | IFS=$as_save_IFS |
| 9524 | test -z "$as_dir" && as_dir=. |
| 9525 | for as_base in sh bash ksh sh5; do |
| 9526 | case $as_dir in |
| 9527 | /*) |
| 9528 | if ("$as_dir/$as_base" -c ' |
| 9529 | as_lineno_1=$LINENO |
| 9530 | as_lineno_2=$LINENO |
| 9531 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 9532 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 9533 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 9534 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 9535 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 9536 | CONFIG_SHELL=$as_dir/$as_base |
| 9537 | export CONFIG_SHELL |
| 9538 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 9539 | fi;; |
| 9540 | esac |
| 9541 | done |
| 9542 | done |
| 9543 | ;; |
| 9544 | esac |
| 9545 | |
| 9546 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 9547 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 9548 | # line-number line before each line; the second 'sed' does the real |
| 9549 | # work. The second script uses 'N' to pair each line-number line |
| 9550 | # with the numbered line, and appends trailing '-' during |
| 9551 | # substitution so that $LINENO is not a special case at line end. |
| 9552 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 9553 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 9554 | sed '=' <$as_myself | |
| 9555 | sed ' |
| 9556 | N |
| 9557 | s,$,-, |
| 9558 | : loop |
| 9559 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 9560 | t loop |
| 9561 | s,-$,, |
| 9562 | s,^['$as_cr_digits']*\n,, |
| 9563 | ' >$as_me.lineno && |
| 9564 | chmod +x $as_me.lineno || |
| 9565 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 9566 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 9567 | { (exit 1); exit 1; }; } |
| 9568 | |
| 9569 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 9570 | # (the dirname of $[0] is not the place where we might find the |
| 9571 | # original and so on. Autoconf is especially sensible to this). |
| 9572 | . ./$as_me.lineno |
| 9573 | # Exit status is that of the last command. |
| 9574 | exit |
| 9575 | } |
| 9576 | |
| 9577 | |
| 9578 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 9579 | *c*,-n*) ECHO_N= ECHO_C=' |
| 9580 | ' ECHO_T=' ' ;; |
| 9581 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 9582 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 9583 | esac |
| 9584 | |
| 9585 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 9586 | as_expr=expr |
| 9587 | else |
| 9588 | as_expr=false |
| 9589 | fi |
| 9590 | |
| 9591 | rm -f conf$$ conf$$.exe conf$$.file |
| 9592 | echo >conf$$.file |
| 9593 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 9594 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 9595 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 9596 | if test -f conf$$.exe; then |
| 9597 | # Don't use ln at all; we don't have any links |
| 9598 | as_ln_s='cp -p' |
| 9599 | else |
| 9600 | as_ln_s='ln -s' |
| 9601 | fi |
| 9602 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 9603 | as_ln_s=ln |
| 9604 | else |
| 9605 | as_ln_s='cp -p' |
| 9606 | fi |
| 9607 | rm -f conf$$ conf$$.exe conf$$.file |
| 9608 | |
| 9609 | if mkdir -p . 2>/dev/null; then |
| 9610 | as_mkdir_p=: |
| 9611 | else |
| 9612 | test -d ./-p && rmdir ./-p |
| 9613 | as_mkdir_p=false |
| 9614 | fi |
| 9615 | |
| 9616 | as_executable_p="test -f" |
| 9617 | |
| 9618 | # Sed expression to map a string onto a valid CPP name. |
| 9619 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 9620 | |
| 9621 | # Sed expression to map a string onto a valid variable name. |
| 9622 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 9623 | |
| 9624 | |
| 9625 | # IFS |
| 9626 | # We need space, tab and new line, in precisely that order. |
| 9627 | as_nl=' |
| 9628 | ' |
| 9629 | IFS=" $as_nl" |
| 9630 | |
| 9631 | # CDPATH. |
| 9632 | $as_unset CDPATH |
| 9633 | |
| 9634 | exec 6>&1 |
| 9635 | |
| 9636 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 9637 | # report actual input values of CONFIG_FILES etc. instead of their |
| 9638 | # values after options handling. Logging --version etc. is OK. |
| 9639 | exec 5>>config.log |
| 9640 | { |
| 9641 | echo |
| 9642 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 9643 | ## Running $as_me. ## |
| 9644 | _ASBOX |
| 9645 | } >&5 |
| 9646 | cat >&5 <<_CSEOF |
| 9647 | |
| 9648 | This file was extended by $as_me, which was |
| 9649 | generated by GNU Autoconf 2.59. Invocation command line was |
| 9650 | |
| 9651 | CONFIG_FILES = $CONFIG_FILES |
| 9652 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 9653 | CONFIG_LINKS = $CONFIG_LINKS |
| 9654 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 9655 | $ $0 $@ |
| 9656 | |
| 9657 | _CSEOF |
| 9658 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 9659 | echo >&5 |
| 9660 | _ACEOF |
| 9661 | |
| 9662 | # Files that config.status was made for. |
| 9663 | if test -n "$ac_config_files"; then |
| 9664 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 9665 | fi |
| 9666 | |
| 9667 | if test -n "$ac_config_headers"; then |
| 9668 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 9669 | fi |
| 9670 | |
| 9671 | if test -n "$ac_config_links"; then |
| 9672 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 9673 | fi |
| 9674 | |
| 9675 | if test -n "$ac_config_commands"; then |
| 9676 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 9677 | fi |
| 9678 | |
| 9679 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 9680 | |
| 9681 | ac_cs_usage="\ |
| 9682 | \`$as_me' instantiates files from templates according to the |
| 9683 | current configuration. |
| 9684 | |
| 9685 | Usage: $0 [OPTIONS] [FILE]... |
| 9686 | |
| 9687 | -h, --help print this help, then exit |
| 9688 | -V, --version print version number, then exit |
| 9689 | -q, --quiet do not print progress messages |
| 9690 | -d, --debug don't remove temporary files |
| 9691 | --recheck update $as_me by reconfiguring in the same conditions |
| 9692 | --file=FILE[:TEMPLATE] |
| 9693 | instantiate the configuration file FILE |
| 9694 | --header=FILE[:TEMPLATE] |
| 9695 | instantiate the configuration header FILE |
| 9696 | |
| 9697 | Configuration files: |
| 9698 | $config_files |
| 9699 | |
| 9700 | Configuration headers: |
| 9701 | $config_headers |
| 9702 | |
| 9703 | Configuration commands: |
| 9704 | $config_commands |
| 9705 | |
| 9706 | Report bugs to <bug-autoconf@gnu.org>." |
| 9707 | _ACEOF |
| 9708 | |
| 9709 | cat >>$CONFIG_STATUS <<_ACEOF |
| 9710 | ac_cs_version="\\ |
| 9711 | config.status |
| 9712 | configured by $0, generated by GNU Autoconf 2.59, |
| 9713 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 9714 | |
| 9715 | Copyright (C) 2003 Free Software Foundation, Inc. |
| 9716 | This config.status script is free software; the Free Software Foundation |
| 9717 | gives unlimited permission to copy, distribute and modify it." |
| 9718 | srcdir=$srcdir |
| 9719 | INSTALL="$INSTALL" |
| 9720 | _ACEOF |
| 9721 | |
| 9722 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 9723 | # If no file are specified by the user, then we need to provide default |
| 9724 | # value. By we need to know if files were specified by the user. |
| 9725 | ac_need_defaults=: |
| 9726 | while test $# != 0 |
| 9727 | do |
| 9728 | case $1 in |
| 9729 | --*=*) |
| 9730 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 9731 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
| 9732 | ac_shift=: |
| 9733 | ;; |
| 9734 | -*) |
| 9735 | ac_option=$1 |
| 9736 | ac_optarg=$2 |
| 9737 | ac_shift=shift |
| 9738 | ;; |
| 9739 | *) # This is not an option, so the user has probably given explicit |
| 9740 | # arguments. |
| 9741 | ac_option=$1 |
| 9742 | ac_need_defaults=false;; |
| 9743 | esac |
| 9744 | |
| 9745 | case $ac_option in |
| 9746 | # Handling of the options. |
| 9747 | _ACEOF |
| 9748 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 9749 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 9750 | ac_cs_recheck=: ;; |
| 9751 | --version | --vers* | -V ) |
| 9752 | echo "$ac_cs_version"; exit 0 ;; |
| 9753 | --he | --h) |
| 9754 | # Conflict between --help and --header |
| 9755 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 9756 | Try \`$0 --help' for more information." >&5 |
| 9757 | echo "$as_me: error: ambiguous option: $1 |
| 9758 | Try \`$0 --help' for more information." >&2;} |
| 9759 | { (exit 1); exit 1; }; };; |
| 9760 | --help | --hel | -h ) |
| 9761 | echo "$ac_cs_usage"; exit 0 ;; |
| 9762 | --debug | --d* | -d ) |
| 9763 | debug=: ;; |
| 9764 | --file | --fil | --fi | --f ) |
| 9765 | $ac_shift |
| 9766 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
| 9767 | ac_need_defaults=false;; |
| 9768 | --header | --heade | --head | --hea ) |
| 9769 | $ac_shift |
| 9770 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
| 9771 | ac_need_defaults=false;; |
| 9772 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 9773 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 9774 | ac_cs_silent=: ;; |
| 9775 | |
| 9776 | # This is an error. |
| 9777 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 9778 | Try \`$0 --help' for more information." >&5 |
| 9779 | echo "$as_me: error: unrecognized option: $1 |
| 9780 | Try \`$0 --help' for more information." >&2;} |
| 9781 | { (exit 1); exit 1; }; } ;; |
| 9782 | |
| 9783 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 9784 | |
| 9785 | esac |
| 9786 | shift |
| 9787 | done |
| 9788 | |
| 9789 | ac_configure_extra_args= |
| 9790 | |
| 9791 | if $ac_cs_silent; then |
| 9792 | exec 6>/dev/null |
| 9793 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 9794 | fi |
| 9795 | |
| 9796 | _ACEOF |
| 9797 | cat >>$CONFIG_STATUS <<_ACEOF |
| 9798 | if \$ac_cs_recheck; then |
| 9799 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 9800 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 9801 | fi |
| 9802 | |
| 9803 | _ACEOF |
| 9804 | |
| 9805 | cat >>$CONFIG_STATUS <<_ACEOF |
| 9806 | # |
| 9807 | # INIT-COMMANDS section. |
| 9808 | # |
| 9809 | |
| 9810 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
| 9811 | |
| 9812 | _ACEOF |
| 9813 | |
| 9814 | |
| 9815 | |
| 9816 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 9817 | for ac_config_target in $ac_config_targets |
| 9818 | do |
| 9819 | case "$ac_config_target" in |
| 9820 | # Handling of arguments. |
| 9821 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 9822 | "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; |
| 9823 | "libutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libutil/Makefile" ;; |
| 9824 | "libutil/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES libutil/tests/Makefile" ;; |
| 9825 | "libutil++/Makefile" ) CONFIG_FILES="$CONFIG_FILES libutil++/Makefile" ;; |
| 9826 | "libutil++/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES libutil++/tests/Makefile" ;; |
| 9827 | "libop/Makefile" ) CONFIG_FILES="$CONFIG_FILES libop/Makefile" ;; |
| 9828 | "libop/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES libop/tests/Makefile" ;; |
| 9829 | "libopt++/Makefile" ) CONFIG_FILES="$CONFIG_FILES libopt++/Makefile" ;; |
| 9830 | "libdb/Makefile" ) CONFIG_FILES="$CONFIG_FILES libdb/Makefile" ;; |
| 9831 | "libdb/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES libdb/tests/Makefile" ;; |
| 9832 | "libabi/Makefile" ) CONFIG_FILES="$CONFIG_FILES libabi/Makefile" ;; |
| 9833 | "libabi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES libabi/tests/Makefile" ;; |
| 9834 | "libregex/Makefile" ) CONFIG_FILES="$CONFIG_FILES libregex/Makefile" ;; |
| 9835 | "libregex/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES libregex/tests/Makefile" ;; |
| 9836 | "libregex/stl.pat" ) CONFIG_FILES="$CONFIG_FILES libregex/stl.pat" ;; |
| 9837 | "libregex/tests/mangled-name" ) CONFIG_FILES="$CONFIG_FILES libregex/tests/mangled-name" ;; |
| 9838 | "daemon/Makefile" ) CONFIG_FILES="$CONFIG_FILES daemon/Makefile" ;; |
| 9839 | "daemon/liblegacy/Makefile" ) CONFIG_FILES="$CONFIG_FILES daemon/liblegacy/Makefile" ;; |
| 9840 | "events/Makefile" ) CONFIG_FILES="$CONFIG_FILES events/Makefile" ;; |
| 9841 | "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;; |
| 9842 | "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
| 9843 | "doc/xsl/catalog-1.xml" ) CONFIG_FILES="$CONFIG_FILES doc/xsl/catalog-1.xml" ;; |
| 9844 | "doc/oprofile.1" ) CONFIG_FILES="$CONFIG_FILES doc/oprofile.1" ;; |
| 9845 | "doc/opcontrol.1" ) CONFIG_FILES="$CONFIG_FILES doc/opcontrol.1" ;; |
| 9846 | "doc/ophelp.1" ) CONFIG_FILES="$CONFIG_FILES doc/ophelp.1" ;; |
| 9847 | "doc/opreport.1" ) CONFIG_FILES="$CONFIG_FILES doc/opreport.1" ;; |
| 9848 | "doc/opannotate.1" ) CONFIG_FILES="$CONFIG_FILES doc/opannotate.1" ;; |
| 9849 | "doc/opgprof.1" ) CONFIG_FILES="$CONFIG_FILES doc/opgprof.1" ;; |
| 9850 | "doc/oparchive.1" ) CONFIG_FILES="$CONFIG_FILES doc/oparchive.1" ;; |
| 9851 | "doc/srcdoc/Doxyfile" ) CONFIG_FILES="$CONFIG_FILES doc/srcdoc/Doxyfile" ;; |
| 9852 | "libpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libpp/Makefile" ;; |
| 9853 | "pp/Makefile" ) CONFIG_FILES="$CONFIG_FILES pp/Makefile" ;; |
| 9854 | "gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES gui/Makefile" ;; |
| 9855 | "gui/ui/Makefile" ) CONFIG_FILES="$CONFIG_FILES gui/ui/Makefile" ;; |
| 9856 | "module/Makefile" ) CONFIG_FILES="$CONFIG_FILES module/Makefile" ;; |
| 9857 | "module/x86/Makefile" ) CONFIG_FILES="$CONFIG_FILES module/x86/Makefile" ;; |
| 9858 | "module/ia64/Makefile" ) CONFIG_FILES="$CONFIG_FILES module/ia64/Makefile" ;; |
| 9859 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
| 9860 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
| 9861 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 9862 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 9863 | { (exit 1); exit 1; }; };; |
| 9864 | esac |
| 9865 | done |
| 9866 | |
| 9867 | # If the user did not use the arguments to specify the items to instantiate, |
| 9868 | # then the envvar interface is used. Set only those that are not. |
| 9869 | # We use the long form for the default assignment because of an extremely |
| 9870 | # bizarre bug on SunOS 4.1.3. |
| 9871 | if $ac_need_defaults; then |
| 9872 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 9873 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 9874 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 9875 | fi |
| 9876 | |
| 9877 | # Have a temporary directory for convenience. Make it in the build tree |
| 9878 | # simply because there is no reason to put it here, and in addition, |
| 9879 | # creating and moving files from /tmp can sometimes cause problems. |
| 9880 | # Create a temporary directory, and hook for its removal unless debugging. |
| 9881 | $debug || |
| 9882 | { |
| 9883 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 9884 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 9885 | } |
| 9886 | |
| 9887 | # Create a (secure) tmp directory for tmp files. |
| 9888 | |
| 9889 | { |
| 9890 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
| 9891 | test -n "$tmp" && test -d "$tmp" |
| 9892 | } || |
| 9893 | { |
| 9894 | tmp=./confstat$$-$RANDOM |
| 9895 | (umask 077 && mkdir $tmp) |
| 9896 | } || |
| 9897 | { |
| 9898 | echo "$me: cannot create a temporary directory in ." >&2 |
| 9899 | { (exit 1); exit 1; } |
| 9900 | } |
| 9901 | |
| 9902 | _ACEOF |
| 9903 | |
| 9904 | cat >>$CONFIG_STATUS <<_ACEOF |
| 9905 | |
| 9906 | # |
| 9907 | # CONFIG_FILES section. |
| 9908 | # |
| 9909 | |
| 9910 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 9911 | # This happens for instance when ./config.status config.h |
| 9912 | if test -n "\$CONFIG_FILES"; then |
| 9913 | # Protect against being on the right side of a sed subst in config.status. |
| 9914 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 9915 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 9916 | s,@SHELL@,$SHELL,;t t |
| 9917 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 9918 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 9919 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 9920 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 9921 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 9922 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 9923 | s,@exec_prefix@,$exec_prefix,;t t |
| 9924 | s,@prefix@,$prefix,;t t |
| 9925 | s,@program_transform_name@,$program_transform_name,;t t |
| 9926 | s,@bindir@,$bindir,;t t |
| 9927 | s,@sbindir@,$sbindir,;t t |
| 9928 | s,@libexecdir@,$libexecdir,;t t |
| 9929 | s,@datadir@,$datadir,;t t |
| 9930 | s,@sysconfdir@,$sysconfdir,;t t |
| 9931 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 9932 | s,@localstatedir@,$localstatedir,;t t |
| 9933 | s,@libdir@,$libdir,;t t |
| 9934 | s,@includedir@,$includedir,;t t |
| 9935 | s,@oldincludedir@,$oldincludedir,;t t |
| 9936 | s,@infodir@,$infodir,;t t |
| 9937 | s,@mandir@,$mandir,;t t |
| 9938 | s,@build_alias@,$build_alias,;t t |
| 9939 | s,@host_alias@,$host_alias,;t t |
| 9940 | s,@target_alias@,$target_alias,;t t |
| 9941 | s,@DEFS@,$DEFS,;t t |
| 9942 | s,@ECHO_C@,$ECHO_C,;t t |
| 9943 | s,@ECHO_N@,$ECHO_N,;t t |
| 9944 | s,@ECHO_T@,$ECHO_T,;t t |
| 9945 | s,@LIBS@,$LIBS,;t t |
| 9946 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 9947 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 9948 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 9949 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
| 9950 | s,@PACKAGE@,$PACKAGE,;t t |
| 9951 | s,@VERSION@,$VERSION,;t t |
| 9952 | s,@ACLOCAL@,$ACLOCAL,;t t |
| 9953 | s,@AUTOCONF@,$AUTOCONF,;t t |
| 9954 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
| 9955 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
| 9956 | s,@MAKEINFO@,$MAKEINFO,;t t |
| 9957 | s,@install_sh@,$install_sh,;t t |
| 9958 | s,@STRIP@,$STRIP,;t t |
| 9959 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
| 9960 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
| 9961 | s,@mkdir_p@,$mkdir_p,;t t |
| 9962 | s,@AWK@,$AWK,;t t |
| 9963 | s,@SET_MAKE@,$SET_MAKE,;t t |
| 9964 | s,@am__leading_dot@,$am__leading_dot,;t t |
| 9965 | s,@AMTAR@,$AMTAR,;t t |
| 9966 | s,@am__tar@,$am__tar,;t t |
| 9967 | s,@am__untar@,$am__untar,;t t |
| 9968 | s,@RANLIB@,$RANLIB,;t t |
| 9969 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 9970 | s,@DATE@,$DATE,;t t |
| 9971 | s,@OPROFILE_DIR@,$OPROFILE_DIR,;t t |
| 9972 | s,@CC@,$CC,;t t |
| 9973 | s,@CFLAGS@,$CFLAGS,;t t |
| 9974 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 9975 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 9976 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 9977 | s,@EXEEXT@,$EXEEXT,;t t |
| 9978 | s,@OBJEXT@,$OBJEXT,;t t |
| 9979 | s,@DEPDIR@,$DEPDIR,;t t |
| 9980 | s,@am__include@,$am__include,;t t |
| 9981 | s,@am__quote@,$am__quote,;t t |
| 9982 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
| 9983 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
| 9984 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
| 9985 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
| 9986 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
| 9987 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
| 9988 | s,@CPP@,$CPP,;t t |
| 9989 | s,@CXX@,$CXX,;t t |
| 9990 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
| 9991 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
| 9992 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t |
| 9993 | s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t |
| 9994 | s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t |
| 9995 | s,@LD@,$LD,;t t |
| 9996 | s,@KSRC@,$KSRC,;t t |
| 9997 | s,@KINC@,$KINC,;t t |
| 9998 | s,@kernel_support_TRUE@,$kernel_support_TRUE,;t t |
| 9999 | s,@kernel_support_FALSE@,$kernel_support_FALSE,;t t |
| 10000 | s,@KVERS@,$KVERS,;t t |
| 10001 | s,@OPROFILE_MODULE_ARCH@,$OPROFILE_MODULE_ARCH,;t t |
| 10002 | s,@MODINSTALLDIR@,$MODINSTALLDIR,;t t |
| 10003 | s,@EXTRA_CFLAGS_MODULE@,$EXTRA_CFLAGS_MODULE,;t t |
| 10004 | s,@topdir@,$topdir,;t t |
| 10005 | s,@EGREP@,$EGREP,;t t |
| 10006 | s,@SIZE_T_TYPE@,$SIZE_T_TYPE,;t t |
| 10007 | s,@PTRDIFF_T_TYPE@,$PTRDIFF_T_TYPE,;t t |
| 10008 | s,@CXXCPP@,$CXXCPP,;t t |
| 10009 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
| 10010 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t |
| 10011 | s,@X_LIBS@,$X_LIBS,;t t |
| 10012 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t |
| 10013 | s,@QT_INCLUDES@,$QT_INCLUDES,;t t |
| 10014 | s,@QT_LDFLAGS@,$QT_LDFLAGS,;t t |
| 10015 | s,@MOC@,$MOC,;t t |
| 10016 | s,@UIC@,$UIC,;t t |
| 10017 | s,@QT_LIB@,$QT_LIB,;t t |
| 10018 | s,@QT_VERSION@,$QT_VERSION,;t t |
| 10019 | s,@enable_abi_TRUE@,$enable_abi_TRUE,;t t |
| 10020 | s,@enable_abi_FALSE@,$enable_abi_FALSE,;t t |
| 10021 | s,@XSLTPROC@,$XSLTPROC,;t t |
| 10022 | s,@have_xsltproc_TRUE@,$have_xsltproc_TRUE,;t t |
| 10023 | s,@have_xsltproc_FALSE@,$have_xsltproc_FALSE,;t t |
| 10024 | s,@XML_CATALOG@,$XML_CATALOG,;t t |
| 10025 | s,@XSLTPROC_FLAGS@,$XSLTPROC_FLAGS,;t t |
| 10026 | s,@DOCBOOK_ROOT@,$DOCBOOK_ROOT,;t t |
| 10027 | s,@CAT_ENTRY_START@,$CAT_ENTRY_START,;t t |
| 10028 | s,@CAT_ENTRY_END@,$CAT_ENTRY_END,;t t |
| 10029 | s,@LIBERTY_LIBS@,$LIBERTY_LIBS,;t t |
| 10030 | s,@BFD_LIBS@,$BFD_LIBS,;t t |
| 10031 | s,@POPT_LIBS@,$POPT_LIBS,;t t |
| 10032 | s,@have_qt_TRUE@,$have_qt_TRUE,;t t |
| 10033 | s,@have_qt_FALSE@,$have_qt_FALSE,;t t |
| 10034 | s,@OP_CFLAGS@,$OP_CFLAGS,;t t |
| 10035 | s,@OP_CXXFLAGS@,$OP_CXXFLAGS,;t t |
| 10036 | s,@OP_DOCDIR@,$OP_DOCDIR,;t t |
| 10037 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 10038 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
| 10039 | CEOF |
| 10040 | |
| 10041 | _ACEOF |
| 10042 | |
| 10043 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 10044 | # Split the substitutions into bite-sized pieces for seds with |
| 10045 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 10046 | ac_max_sed_lines=48 |
| 10047 | ac_sed_frag=1 # Number of current file. |
| 10048 | ac_beg=1 # First line for current file. |
| 10049 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 10050 | ac_more_lines=: |
| 10051 | ac_sed_cmds= |
| 10052 | while $ac_more_lines; do |
| 10053 | if test $ac_beg -gt 1; then |
| 10054 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 10055 | else |
| 10056 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 10057 | fi |
| 10058 | if test ! -s $tmp/subs.frag; then |
| 10059 | ac_more_lines=false |
| 10060 | else |
| 10061 | # The purpose of the label and of the branching condition is to |
| 10062 | # speed up the sed processing (if there are no `@' at all, there |
| 10063 | # is no need to browse any of the substitutions). |
| 10064 | # These are the two extra sed commands mentioned above. |
| 10065 | (echo ':t |
| 10066 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 10067 | if test -z "$ac_sed_cmds"; then |
| 10068 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 10069 | else |
| 10070 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 10071 | fi |
| 10072 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 10073 | ac_beg=$ac_end |
| 10074 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 10075 | fi |
| 10076 | done |
| 10077 | if test -z "$ac_sed_cmds"; then |
| 10078 | ac_sed_cmds=cat |
| 10079 | fi |
| 10080 | fi # test -n "$CONFIG_FILES" |
| 10081 | |
| 10082 | _ACEOF |
| 10083 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 10084 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 10085 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 10086 | case $ac_file in |
| 10087 | - | *:- | *:-:* ) # input from stdin |
| 10088 | cat >$tmp/stdin |
| 10089 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 10090 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 10091 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 10092 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 10093 | * ) ac_file_in=$ac_file.in ;; |
| 10094 | esac |
| 10095 | |
| 10096 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 10097 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 10098 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 10099 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 10100 | X"$ac_file" : 'X\(//\)$' \| \ |
| 10101 | X"$ac_file" : 'X\(/\)' \| \ |
| 10102 | . : '\(.\)' 2>/dev/null || |
| 10103 | echo X"$ac_file" | |
| 10104 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 10105 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 10106 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 10107 | /^X\(\/\).*/{ s//\1/; q; } |
| 10108 | s/.*/./; q'` |
| 10109 | { if $as_mkdir_p; then |
| 10110 | mkdir -p "$ac_dir" |
| 10111 | else |
| 10112 | as_dir="$ac_dir" |
| 10113 | as_dirs= |
| 10114 | while test ! -d "$as_dir"; do |
| 10115 | as_dirs="$as_dir $as_dirs" |
| 10116 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 10117 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 10118 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 10119 | X"$as_dir" : 'X\(//\)$' \| \ |
| 10120 | X"$as_dir" : 'X\(/\)' \| \ |
| 10121 | . : '\(.\)' 2>/dev/null || |
| 10122 | echo X"$as_dir" | |
| 10123 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 10124 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 10125 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 10126 | /^X\(\/\).*/{ s//\1/; q; } |
| 10127 | s/.*/./; q'` |
| 10128 | done |
| 10129 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 10130 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 10131 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 10132 | { (exit 1); exit 1; }; }; } |
| 10133 | |
| 10134 | ac_builddir=. |
| 10135 | |
| 10136 | if test "$ac_dir" != .; then |
| 10137 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 10138 | # A "../" for each directory in $ac_dir_suffix. |
| 10139 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 10140 | else |
| 10141 | ac_dir_suffix= ac_top_builddir= |
| 10142 | fi |
| 10143 | |
| 10144 | case $srcdir in |
| 10145 | .) # No --srcdir option. We are building in place. |
| 10146 | ac_srcdir=. |
| 10147 | if test -z "$ac_top_builddir"; then |
| 10148 | ac_top_srcdir=. |
| 10149 | else |
| 10150 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 10151 | fi ;; |
| 10152 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 10153 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 10154 | ac_top_srcdir=$srcdir ;; |
| 10155 | *) # Relative path. |
| 10156 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 10157 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 10158 | esac |
| 10159 | |
| 10160 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 10161 | # the directories may not exist. |
| 10162 | case `pwd` in |
| 10163 | .) ac_abs_builddir="$ac_dir";; |
| 10164 | *) |
| 10165 | case "$ac_dir" in |
| 10166 | .) ac_abs_builddir=`pwd`;; |
| 10167 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 10168 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 10169 | esac;; |
| 10170 | esac |
| 10171 | case $ac_abs_builddir in |
| 10172 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 10173 | *) |
| 10174 | case ${ac_top_builddir}. in |
| 10175 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 10176 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 10177 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 10178 | esac;; |
| 10179 | esac |
| 10180 | case $ac_abs_builddir in |
| 10181 | .) ac_abs_srcdir=$ac_srcdir;; |
| 10182 | *) |
| 10183 | case $ac_srcdir in |
| 10184 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 10185 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 10186 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 10187 | esac;; |
| 10188 | esac |
| 10189 | case $ac_abs_builddir in |
| 10190 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 10191 | *) |
| 10192 | case $ac_top_srcdir in |
| 10193 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 10194 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 10195 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 10196 | esac;; |
| 10197 | esac |
| 10198 | |
| 10199 | |
| 10200 | case $INSTALL in |
| 10201 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 10202 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 10203 | esac |
| 10204 | |
| 10205 | if test x"$ac_file" != x-; then |
| 10206 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 10207 | echo "$as_me: creating $ac_file" >&6;} |
| 10208 | rm -f "$ac_file" |
| 10209 | fi |
| 10210 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 10211 | # use $as_me), people would be surprised to read: |
| 10212 | # /* config.h. Generated by config.status. */ |
| 10213 | if test x"$ac_file" = x-; then |
| 10214 | configure_input= |
| 10215 | else |
| 10216 | configure_input="$ac_file. " |
| 10217 | fi |
| 10218 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 10219 | sed 's,.*/,,'` by configure." |
| 10220 | |
| 10221 | # First look for the input files in the build tree, otherwise in the |
| 10222 | # src tree. |
| 10223 | ac_file_inputs=`IFS=: |
| 10224 | for f in $ac_file_in; do |
| 10225 | case $f in |
| 10226 | -) echo $tmp/stdin ;; |
| 10227 | [\\/$]*) |
| 10228 | # Absolute (can't be DOS-style, as IFS=:) |
| 10229 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 10230 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 10231 | { (exit 1); exit 1; }; } |
| 10232 | echo "$f";; |
| 10233 | *) # Relative |
| 10234 | if test -f "$f"; then |
| 10235 | # Build tree |
| 10236 | echo "$f" |
| 10237 | elif test -f "$srcdir/$f"; then |
| 10238 | # Source tree |
| 10239 | echo "$srcdir/$f" |
| 10240 | else |
| 10241 | # /dev/null tree |
| 10242 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 10243 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 10244 | { (exit 1); exit 1; }; } |
| 10245 | fi;; |
| 10246 | esac |
| 10247 | done` || { (exit 1); exit 1; } |
| 10248 | _ACEOF |
| 10249 | cat >>$CONFIG_STATUS <<_ACEOF |
| 10250 | sed "$ac_vpsub |
| 10251 | $extrasub |
| 10252 | _ACEOF |
| 10253 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 10254 | :t |
| 10255 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 10256 | s,@configure_input@,$configure_input,;t t |
| 10257 | s,@srcdir@,$ac_srcdir,;t t |
| 10258 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 10259 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 10260 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 10261 | s,@builddir@,$ac_builddir,;t t |
| 10262 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 10263 | s,@top_builddir@,$ac_top_builddir,;t t |
| 10264 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 10265 | s,@INSTALL@,$ac_INSTALL,;t t |
| 10266 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 10267 | rm -f $tmp/stdin |
| 10268 | if test x"$ac_file" != x-; then |
| 10269 | mv $tmp/out $ac_file |
| 10270 | else |
| 10271 | cat $tmp/out |
| 10272 | rm -f $tmp/out |
| 10273 | fi |
| 10274 | |
| 10275 | done |
| 10276 | _ACEOF |
| 10277 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 10278 | |
| 10279 | # |
| 10280 | # CONFIG_HEADER section. |
| 10281 | # |
| 10282 | |
| 10283 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 10284 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 10285 | # |
| 10286 | # ac_d sets the value in "#define NAME VALUE" lines. |
| 10287 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 10288 | ac_dB='[ ].*$,\1#\2' |
| 10289 | ac_dC=' ' |
| 10290 | ac_dD=',;t' |
| 10291 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 10292 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 10293 | ac_uB='$,\1#\2define\3' |
| 10294 | ac_uC=' ' |
| 10295 | ac_uD=',;t' |
| 10296 | |
| 10297 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
| 10298 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 10299 | case $ac_file in |
| 10300 | - | *:- | *:-:* ) # input from stdin |
| 10301 | cat >$tmp/stdin |
| 10302 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 10303 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 10304 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 10305 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 10306 | * ) ac_file_in=$ac_file.in ;; |
| 10307 | esac |
| 10308 | |
| 10309 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 10310 | echo "$as_me: creating $ac_file" >&6;} |
| 10311 | |
| 10312 | # First look for the input files in the build tree, otherwise in the |
| 10313 | # src tree. |
| 10314 | ac_file_inputs=`IFS=: |
| 10315 | for f in $ac_file_in; do |
| 10316 | case $f in |
| 10317 | -) echo $tmp/stdin ;; |
| 10318 | [\\/$]*) |
| 10319 | # Absolute (can't be DOS-style, as IFS=:) |
| 10320 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 10321 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 10322 | { (exit 1); exit 1; }; } |
| 10323 | # Do quote $f, to prevent DOS paths from being IFS'd. |
| 10324 | echo "$f";; |
| 10325 | *) # Relative |
| 10326 | if test -f "$f"; then |
| 10327 | # Build tree |
| 10328 | echo "$f" |
| 10329 | elif test -f "$srcdir/$f"; then |
| 10330 | # Source tree |
| 10331 | echo "$srcdir/$f" |
| 10332 | else |
| 10333 | # /dev/null tree |
| 10334 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 10335 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 10336 | { (exit 1); exit 1; }; } |
| 10337 | fi;; |
| 10338 | esac |
| 10339 | done` || { (exit 1); exit 1; } |
| 10340 | # Remove the trailing spaces. |
| 10341 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
| 10342 | |
| 10343 | _ACEOF |
| 10344 | |
| 10345 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 10346 | # `conftest.undefs', that substitutes the proper values into |
| 10347 | # config.h.in to produce config.h. The first handles `#define' |
| 10348 | # templates, and the second `#undef' templates. |
| 10349 | # And first: Protect against being on the right side of a sed subst in |
| 10350 | # config.status. Protect against being in an unquoted here document |
| 10351 | # in config.status. |
| 10352 | rm -f conftest.defines conftest.undefs |
| 10353 | # Using a here document instead of a string reduces the quoting nightmare. |
| 10354 | # Putting comments in sed scripts is not portable. |
| 10355 | # |
| 10356 | # `end' is used to avoid that the second main sed command (meant for |
| 10357 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 10358 | # See the Autoconf documentation for `clear'. |
| 10359 | cat >confdef2sed.sed <<\_ACEOF |
| 10360 | s/[\\&,]/\\&/g |
| 10361 | s,[\\$`],\\&,g |
| 10362 | t clear |
| 10363 | : clear |
| 10364 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 10365 | t end |
| 10366 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 10367 | : end |
| 10368 | _ACEOF |
| 10369 | # If some macros were called several times there might be several times |
| 10370 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 10371 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 10372 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 10373 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 10374 | rm -f confdef2sed.sed |
| 10375 | |
| 10376 | # This sed command replaces #undef with comments. This is necessary, for |
| 10377 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 10378 | # on some systems where configure will not decide to define it. |
| 10379 | cat >>conftest.undefs <<\_ACEOF |
| 10380 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 10381 | _ACEOF |
| 10382 | |
| 10383 | # Break up conftest.defines because some shells have a limit on the size |
| 10384 | # of here documents, and old seds have small limits too (100 cmds). |
| 10385 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
| 10386 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
| 10387 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 10388 | echo ' :' >>$CONFIG_STATUS |
| 10389 | rm -f conftest.tail |
| 10390 | while grep . conftest.defines >/dev/null |
| 10391 | do |
| 10392 | # Write a limited-size here document to $tmp/defines.sed. |
| 10393 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 10394 | # Speed up: don't consider the non `#define' lines. |
| 10395 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 10396 | # Work around the forget-to-reset-the-flag bug. |
| 10397 | echo 't clr' >>$CONFIG_STATUS |
| 10398 | echo ': clr' >>$CONFIG_STATUS |
| 10399 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
| 10400 | echo 'CEOF |
| 10401 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 10402 | rm -f $tmp/in |
| 10403 | mv $tmp/out $tmp/in |
| 10404 | ' >>$CONFIG_STATUS |
| 10405 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 10406 | rm -f conftest.defines |
| 10407 | mv conftest.tail conftest.defines |
| 10408 | done |
| 10409 | rm -f conftest.defines |
| 10410 | echo ' fi # grep' >>$CONFIG_STATUS |
| 10411 | echo >>$CONFIG_STATUS |
| 10412 | |
| 10413 | # Break up conftest.undefs because some shells have a limit on the size |
| 10414 | # of here documents, and old seds have small limits too (100 cmds). |
| 10415 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 10416 | rm -f conftest.tail |
| 10417 | while grep . conftest.undefs >/dev/null |
| 10418 | do |
| 10419 | # Write a limited-size here document to $tmp/undefs.sed. |
| 10420 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 10421 | # Speed up: don't consider the non `#undef' |
| 10422 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 10423 | # Work around the forget-to-reset-the-flag bug. |
| 10424 | echo 't clr' >>$CONFIG_STATUS |
| 10425 | echo ': clr' >>$CONFIG_STATUS |
| 10426 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 10427 | echo 'CEOF |
| 10428 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 10429 | rm -f $tmp/in |
| 10430 | mv $tmp/out $tmp/in |
| 10431 | ' >>$CONFIG_STATUS |
| 10432 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 10433 | rm -f conftest.undefs |
| 10434 | mv conftest.tail conftest.undefs |
| 10435 | done |
| 10436 | rm -f conftest.undefs |
| 10437 | |
| 10438 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 10439 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 10440 | # use $as_me), people would be surprised to read: |
| 10441 | # /* config.h. Generated by config.status. */ |
| 10442 | if test x"$ac_file" = x-; then |
| 10443 | echo "/* Generated by configure. */" >$tmp/config.h |
| 10444 | else |
| 10445 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
| 10446 | fi |
| 10447 | cat $tmp/in >>$tmp/config.h |
| 10448 | rm -f $tmp/in |
| 10449 | if test x"$ac_file" != x-; then |
| 10450 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
| 10451 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 10452 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 10453 | else |
| 10454 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 10455 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 10456 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 10457 | X"$ac_file" : 'X\(//\)$' \| \ |
| 10458 | X"$ac_file" : 'X\(/\)' \| \ |
| 10459 | . : '\(.\)' 2>/dev/null || |
| 10460 | echo X"$ac_file" | |
| 10461 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 10462 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 10463 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 10464 | /^X\(\/\).*/{ s//\1/; q; } |
| 10465 | s/.*/./; q'` |
| 10466 | { if $as_mkdir_p; then |
| 10467 | mkdir -p "$ac_dir" |
| 10468 | else |
| 10469 | as_dir="$ac_dir" |
| 10470 | as_dirs= |
| 10471 | while test ! -d "$as_dir"; do |
| 10472 | as_dirs="$as_dir $as_dirs" |
| 10473 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 10474 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 10475 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 10476 | X"$as_dir" : 'X\(//\)$' \| \ |
| 10477 | X"$as_dir" : 'X\(/\)' \| \ |
| 10478 | . : '\(.\)' 2>/dev/null || |
| 10479 | echo X"$as_dir" | |
| 10480 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 10481 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 10482 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 10483 | /^X\(\/\).*/{ s//\1/; q; } |
| 10484 | s/.*/./; q'` |
| 10485 | done |
| 10486 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 10487 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 10488 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 10489 | { (exit 1); exit 1; }; }; } |
| 10490 | |
| 10491 | rm -f $ac_file |
| 10492 | mv $tmp/config.h $ac_file |
| 10493 | fi |
| 10494 | else |
| 10495 | cat $tmp/config.h |
| 10496 | rm -f $tmp/config.h |
| 10497 | fi |
| 10498 | # Compute $ac_file's index in $config_headers. |
| 10499 | _am_stamp_count=1 |
| 10500 | for _am_header in $config_headers :; do |
| 10501 | case $_am_header in |
| 10502 | $ac_file | $ac_file:* ) |
| 10503 | break ;; |
| 10504 | * ) |
| 10505 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 10506 | esac |
| 10507 | done |
| 10508 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
| 10509 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 10510 | X$ac_file : 'X\(//\)[^/]' \| \ |
| 10511 | X$ac_file : 'X\(//\)$' \| \ |
| 10512 | X$ac_file : 'X\(/\)' \| \ |
| 10513 | . : '\(.\)' 2>/dev/null || |
| 10514 | echo X$ac_file | |
| 10515 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 10516 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 10517 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 10518 | /^X\(\/\).*/{ s//\1/; q; } |
| 10519 | s/.*/./; q'`/stamp-h$_am_stamp_count |
| 10520 | done |
| 10521 | _ACEOF |
| 10522 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 10523 | |
| 10524 | # |
| 10525 | # CONFIG_COMMANDS section. |
| 10526 | # |
| 10527 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
| 10528 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
| 10529 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 10530 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
| 10531 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 10532 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
| 10533 | X"$ac_dest" : 'X\(//\)$' \| \ |
| 10534 | X"$ac_dest" : 'X\(/\)' \| \ |
| 10535 | . : '\(.\)' 2>/dev/null || |
| 10536 | echo X"$ac_dest" | |
| 10537 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 10538 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 10539 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 10540 | /^X\(\/\).*/{ s//\1/; q; } |
| 10541 | s/.*/./; q'` |
| 10542 | { if $as_mkdir_p; then |
| 10543 | mkdir -p "$ac_dir" |
| 10544 | else |
| 10545 | as_dir="$ac_dir" |
| 10546 | as_dirs= |
| 10547 | while test ! -d "$as_dir"; do |
| 10548 | as_dirs="$as_dir $as_dirs" |
| 10549 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 10550 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 10551 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 10552 | X"$as_dir" : 'X\(//\)$' \| \ |
| 10553 | X"$as_dir" : 'X\(/\)' \| \ |
| 10554 | . : '\(.\)' 2>/dev/null || |
| 10555 | echo X"$as_dir" | |
| 10556 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 10557 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 10558 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 10559 | /^X\(\/\).*/{ s//\1/; q; } |
| 10560 | s/.*/./; q'` |
| 10561 | done |
| 10562 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 10563 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 10564 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 10565 | { (exit 1); exit 1; }; }; } |
| 10566 | |
| 10567 | ac_builddir=. |
| 10568 | |
| 10569 | if test "$ac_dir" != .; then |
| 10570 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 10571 | # A "../" for each directory in $ac_dir_suffix. |
| 10572 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 10573 | else |
| 10574 | ac_dir_suffix= ac_top_builddir= |
| 10575 | fi |
| 10576 | |
| 10577 | case $srcdir in |
| 10578 | .) # No --srcdir option. We are building in place. |
| 10579 | ac_srcdir=. |
| 10580 | if test -z "$ac_top_builddir"; then |
| 10581 | ac_top_srcdir=. |
| 10582 | else |
| 10583 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 10584 | fi ;; |
| 10585 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 10586 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 10587 | ac_top_srcdir=$srcdir ;; |
| 10588 | *) # Relative path. |
| 10589 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 10590 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 10591 | esac |
| 10592 | |
| 10593 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 10594 | # the directories may not exist. |
| 10595 | case `pwd` in |
| 10596 | .) ac_abs_builddir="$ac_dir";; |
| 10597 | *) |
| 10598 | case "$ac_dir" in |
| 10599 | .) ac_abs_builddir=`pwd`;; |
| 10600 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 10601 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 10602 | esac;; |
| 10603 | esac |
| 10604 | case $ac_abs_builddir in |
| 10605 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 10606 | *) |
| 10607 | case ${ac_top_builddir}. in |
| 10608 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 10609 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 10610 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 10611 | esac;; |
| 10612 | esac |
| 10613 | case $ac_abs_builddir in |
| 10614 | .) ac_abs_srcdir=$ac_srcdir;; |
| 10615 | *) |
| 10616 | case $ac_srcdir in |
| 10617 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 10618 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 10619 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 10620 | esac;; |
| 10621 | esac |
| 10622 | case $ac_abs_builddir in |
| 10623 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 10624 | *) |
| 10625 | case $ac_top_srcdir in |
| 10626 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 10627 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 10628 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 10629 | esac;; |
| 10630 | esac |
| 10631 | |
| 10632 | |
| 10633 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
| 10634 | echo "$as_me: executing $ac_dest commands" >&6;} |
| 10635 | case $ac_dest in |
| 10636 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
| 10637 | # Strip MF so we end up with the name of the file. |
| 10638 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 10639 | # Check whether this is an Automake generated Makefile or not. |
| 10640 | # We used to match only the files named `Makefile.in', but |
| 10641 | # some people rename them; so instead we look at the file content. |
| 10642 | # Grep'ing the first line is not enough: some people post-process |
| 10643 | # each Makefile.in and add a new line on top of each file to say so. |
| 10644 | # So let's grep whole file. |
| 10645 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
| 10646 | dirpart=`(dirname "$mf") 2>/dev/null || |
| 10647 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 10648 | X"$mf" : 'X\(//\)[^/]' \| \ |
| 10649 | X"$mf" : 'X\(//\)$' \| \ |
| 10650 | X"$mf" : 'X\(/\)' \| \ |
| 10651 | . : '\(.\)' 2>/dev/null || |
| 10652 | echo X"$mf" | |
| 10653 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 10654 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 10655 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 10656 | /^X\(\/\).*/{ s//\1/; q; } |
| 10657 | s/.*/./; q'` |
| 10658 | else |
| 10659 | continue |
| 10660 | fi |
| 10661 | # Extract the definition of DEPDIR, am__include, and am__quote |
| 10662 | # from the Makefile without running `make'. |
| 10663 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
| 10664 | test -z "$DEPDIR" && continue |
| 10665 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
| 10666 | test -z "am__include" && continue |
| 10667 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
| 10668 | # When using ansi2knr, U may be empty or an underscore; expand it |
| 10669 | U=`sed -n 's/^U = //p' < "$mf"` |
| 10670 | # Find all dependency output files, they are included files with |
| 10671 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
| 10672 | # simplest approach to changing $(DEPDIR) to its actual value in the |
| 10673 | # expansion. |
| 10674 | for file in `sed -n " |
| 10675 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
| 10676 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
| 10677 | # Make sure the directory exists. |
| 10678 | test -f "$dirpart/$file" && continue |
| 10679 | fdir=`(dirname "$file") 2>/dev/null || |
| 10680 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 10681 | X"$file" : 'X\(//\)[^/]' \| \ |
| 10682 | X"$file" : 'X\(//\)$' \| \ |
| 10683 | X"$file" : 'X\(/\)' \| \ |
| 10684 | . : '\(.\)' 2>/dev/null || |
| 10685 | echo X"$file" | |
| 10686 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 10687 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 10688 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 10689 | /^X\(\/\).*/{ s//\1/; q; } |
| 10690 | s/.*/./; q'` |
| 10691 | { if $as_mkdir_p; then |
| 10692 | mkdir -p $dirpart/$fdir |
| 10693 | else |
| 10694 | as_dir=$dirpart/$fdir |
| 10695 | as_dirs= |
| 10696 | while test ! -d "$as_dir"; do |
| 10697 | as_dirs="$as_dir $as_dirs" |
| 10698 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 10699 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 10700 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 10701 | X"$as_dir" : 'X\(//\)$' \| \ |
| 10702 | X"$as_dir" : 'X\(/\)' \| \ |
| 10703 | . : '\(.\)' 2>/dev/null || |
| 10704 | echo X"$as_dir" | |
| 10705 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 10706 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 10707 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 10708 | /^X\(\/\).*/{ s//\1/; q; } |
| 10709 | s/.*/./; q'` |
| 10710 | done |
| 10711 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 10712 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
| 10713 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
| 10714 | { (exit 1); exit 1; }; }; } |
| 10715 | |
| 10716 | # echo "creating $dirpart/$file" |
| 10717 | echo '# dummy' > "$dirpart/$file" |
| 10718 | done |
| 10719 | done |
| 10720 | ;; |
| 10721 | esac |
| 10722 | done |
| 10723 | _ACEOF |
| 10724 | |
| 10725 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 10726 | |
| 10727 | { (exit 0); exit 0; } |
| 10728 | _ACEOF |
| 10729 | chmod +x $CONFIG_STATUS |
| 10730 | ac_clean_files=$ac_clean_files_save |
| 10731 | |
| 10732 | |
| 10733 | # configure is writing to config.log, and then calls config.status. |
| 10734 | # config.status does its own redirection, appending to config.log. |
| 10735 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 10736 | # by configure, so config.status won't be able to write to it; its |
| 10737 | # output is simply discarded. So we exec the FD to /dev/null, |
| 10738 | # effectively closing config.log, so it can be properly (re)opened and |
| 10739 | # appended to by config.status. When coming back to configure, we |
| 10740 | # need to make the FD available again. |
| 10741 | if test "$no_create" != yes; then |
| 10742 | ac_cs_success=: |
| 10743 | ac_config_status_args= |
| 10744 | test "$silent" = yes && |
| 10745 | ac_config_status_args="$ac_config_status_args --quiet" |
| 10746 | exec 5>/dev/null |
| 10747 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 10748 | exec 5>>config.log |
| 10749 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 10750 | # would make configure fail if this is the last instruction. |
| 10751 | $ac_cs_success || { (exit 1); exit 1; } |
| 10752 | fi |
| 10753 | |
| 10754 | |
| 10755 | |
| 10756 | if test -r doc/xsl/catalog.xml; then |
| 10757 | if cmp doc/xsl/catalog-1.xml doc/xsl/catalog.xml > /dev/null; then |
| 10758 | echo doc/xsl/catalog.xml is unchanged |
| 10759 | else |
| 10760 | cp -f doc/xsl/catalog-1.xml doc/xsl/catalog.xml |
| 10761 | fi |
| 10762 | else |
| 10763 | cp -f doc/xsl/catalog-1.xml doc/xsl/catalog.xml |
| 10764 | fi |
| 10765 | |
| 10766 | |
| 10767 | if test -z "$QT_LIB"; then |
| 10768 | echo "Warning: a working Qt not found; no GUI will be built" |
| 10769 | fi |