Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 2 | # Guess values for system-dependent variables and create Makefiles. |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3 | # Generated by GNU Autoconf 2.59. |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4 | # |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 5 | # Copyright (C) 2003 Free Software Foundation, Inc. |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 6 | # This configure script is free software; the Free Software Foundation |
| 7 | # gives unlimited permission to copy, distribute and modify it. |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 8 | ## --------------------- ## |
| 9 | ## M4sh Initialization. ## |
| 10 | ## --------------------- ## |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 11 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 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 | # |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 254 | ac_default_prefix=/usr/local |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 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="rdr/InStream.h" |
| 275 | 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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB SET_MAKE MITSHM_CPPFLAGS CXXCPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS ZLIB_DIR ZLIB_INCLUDE ZLIB_LIB VSNPRINTF_DEFINE SOCKLEN_T_DEFINE LIBOBJS LTLIBOBJS' |
| 276 | ac_subst_files='' |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 277 | |
| 278 | # Initialize some variables set by options. |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 279 | ac_init_help= |
| 280 | ac_init_version=false |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 281 | # The variables have the same names as the options, with |
| 282 | # dashes changed to underlines. |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 283 | cache_file=/dev/null |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 284 | exec_prefix=NONE |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 285 | no_create= |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 286 | no_recursion= |
| 287 | prefix=NONE |
| 288 | program_prefix=NONE |
| 289 | program_suffix=NONE |
| 290 | program_transform_name=s,x,x, |
| 291 | silent= |
| 292 | site= |
| 293 | srcdir= |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 294 | verbose= |
| 295 | x_includes=NONE |
| 296 | x_libraries=NONE |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 297 | |
| 298 | # Installation directory options. |
| 299 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 300 | # and all the variables that are supposed to be based on exec_prefix |
| 301 | # by default will actually change. |
| 302 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 303 | bindir='${exec_prefix}/bin' |
| 304 | sbindir='${exec_prefix}/sbin' |
| 305 | libexecdir='${exec_prefix}/libexec' |
| 306 | datadir='${prefix}/share' |
| 307 | sysconfdir='${prefix}/etc' |
| 308 | sharedstatedir='${prefix}/com' |
| 309 | localstatedir='${prefix}/var' |
| 310 | libdir='${exec_prefix}/lib' |
| 311 | includedir='${prefix}/include' |
| 312 | oldincludedir='/usr/include' |
| 313 | infodir='${prefix}/info' |
| 314 | mandir='${prefix}/man' |
| 315 | |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 316 | ac_prev= |
| 317 | for ac_option |
| 318 | do |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 319 | # If the previous option needs an argument, assign it. |
| 320 | if test -n "$ac_prev"; then |
| 321 | eval "$ac_prev=\$ac_option" |
| 322 | ac_prev= |
| 323 | continue |
| 324 | fi |
| 325 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 326 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 327 | |
| 328 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 329 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 330 | case $ac_option in |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 331 | |
| 332 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 333 | ac_prev=bindir ;; |
| 334 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 335 | bindir=$ac_optarg ;; |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 336 | |
| 337 | -build | --build | --buil | --bui | --bu) |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 338 | ac_prev=build_alias ;; |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 339 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 340 | build_alias=$ac_optarg ;; |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 341 | |
| 342 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 343 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 344 | ac_prev=cache_file ;; |
| 345 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 346 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 347 | cache_file=$ac_optarg ;; |
| 348 | |
| 349 | --config-cache | -C) |
| 350 | cache_file=config.cache ;; |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 351 | |
| 352 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 353 | ac_prev=datadir ;; |
| 354 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 355 | | --da=*) |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 356 | datadir=$ac_optarg ;; |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 357 | |
| 358 | -disable-* | --disable-*) |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 359 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 360 | # Reject names that are not valid shell variable names. |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 361 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 362 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 363 | { (exit 1); exit 1; }; } |
| 364 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 365 | eval "enable_$ac_feature=no" ;; |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 366 | |
| 367 | -enable-* | --enable-*) |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 368 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 369 | # Reject names that are not valid shell variable names. |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 370 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 371 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 372 | { (exit 1); exit 1; }; } |
| 373 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 374 | case $ac_option in |
| 375 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 376 | *) ac_optarg=yes ;; |
| 377 | esac |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 378 | eval "enable_$ac_feature='$ac_optarg'" ;; |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 379 | |
| 380 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 381 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 382 | | --exec | --exe | --ex) |
| 383 | ac_prev=exec_prefix ;; |
| 384 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 385 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 386 | | --exec=* | --exe=* | --ex=*) |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 387 | exec_prefix=$ac_optarg ;; |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 388 | |
| 389 | -gas | --gas | --ga | --g) |
| 390 | # Obsolete; use --with-gas. |
| 391 | with_gas=yes ;; |
| 392 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 393 | -help | --help | --hel | --he | -h) |
| 394 | ac_init_help=long ;; |
| 395 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 396 | ac_init_help=recursive ;; |
| 397 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 398 | ac_init_help=short ;; |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 399 | |
| 400 | -host | --host | --hos | --ho) |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 401 | ac_prev=host_alias ;; |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 402 | -host=* | --host=* | --hos=* | --ho=*) |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 403 | host_alias=$ac_optarg ;; |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 404 | |
| 405 | -includedir | --includedir | --includedi | --included | --include \ |
| 406 | | --includ | --inclu | --incl | --inc) |
| 407 | ac_prev=includedir ;; |
| 408 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 409 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 410 | includedir=$ac_optarg ;; |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 411 | |
| 412 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 413 | ac_prev=infodir ;; |
| 414 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 415 | infodir=$ac_optarg ;; |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 416 | |
| 417 | -libdir | --libdir | --libdi | --libd) |
| 418 | ac_prev=libdir ;; |
| 419 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 420 | libdir=$ac_optarg ;; |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 421 | |
| 422 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 423 | | --libexe | --libex | --libe) |
| 424 | ac_prev=libexecdir ;; |
| 425 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 426 | | --libexe=* | --libex=* | --libe=*) |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 427 | libexecdir=$ac_optarg ;; |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 428 | |
| 429 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 430 | | --localstate | --localstat | --localsta | --localst \ |
| 431 | | --locals | --local | --loca | --loc | --lo) |
| 432 | ac_prev=localstatedir ;; |
| 433 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 434 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 435 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 436 | localstatedir=$ac_optarg ;; |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 437 | |
| 438 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 439 | ac_prev=mandir ;; |
| 440 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 441 | mandir=$ac_optarg ;; |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 442 | |
| 443 | -nfp | --nfp | --nf) |
| 444 | # Obsolete; use --without-fp. |
| 445 | with_fp=no ;; |
| 446 | |
| 447 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 448 | | --no-cr | --no-c | -n) |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 449 | no_create=yes ;; |
| 450 | |
| 451 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 452 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 453 | no_recursion=yes ;; |
| 454 | |
| 455 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 456 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 457 | | --oldin | --oldi | --old | --ol | --o) |
| 458 | ac_prev=oldincludedir ;; |
| 459 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 460 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 461 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 462 | oldincludedir=$ac_optarg ;; |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 463 | |
| 464 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 465 | ac_prev=prefix ;; |
| 466 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 467 | prefix=$ac_optarg ;; |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 468 | |
| 469 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 470 | | --program-pre | --program-pr | --program-p) |
| 471 | ac_prev=program_prefix ;; |
| 472 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 473 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 474 | program_prefix=$ac_optarg ;; |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 475 | |
| 476 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 477 | | --program-suf | --program-su | --program-s) |
| 478 | ac_prev=program_suffix ;; |
| 479 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 480 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 481 | program_suffix=$ac_optarg ;; |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 482 | |
| 483 | -program-transform-name | --program-transform-name \ |
| 484 | | --program-transform-nam | --program-transform-na \ |
| 485 | | --program-transform-n | --program-transform- \ |
| 486 | | --program-transform | --program-transfor \ |
| 487 | | --program-transfo | --program-transf \ |
| 488 | | --program-trans | --program-tran \ |
| 489 | | --progr-tra | --program-tr | --program-t) |
| 490 | ac_prev=program_transform_name ;; |
| 491 | -program-transform-name=* | --program-transform-name=* \ |
| 492 | | --program-transform-nam=* | --program-transform-na=* \ |
| 493 | | --program-transform-n=* | --program-transform-=* \ |
| 494 | | --program-transform=* | --program-transfor=* \ |
| 495 | | --program-transfo=* | --program-transf=* \ |
| 496 | | --program-trans=* | --program-tran=* \ |
| 497 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 498 | program_transform_name=$ac_optarg ;; |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 499 | |
| 500 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 501 | | -silent | --silent | --silen | --sile | --sil) |
| 502 | silent=yes ;; |
| 503 | |
| 504 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 505 | ac_prev=sbindir ;; |
| 506 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 507 | | --sbi=* | --sb=*) |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 508 | sbindir=$ac_optarg ;; |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 509 | |
| 510 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 511 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 512 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 513 | | --sha | --sh) |
| 514 | ac_prev=sharedstatedir ;; |
| 515 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 516 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 517 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 518 | | --sha=* | --sh=*) |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 519 | sharedstatedir=$ac_optarg ;; |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 520 | |
| 521 | -site | --site | --sit) |
| 522 | ac_prev=site ;; |
| 523 | -site=* | --site=* | --sit=*) |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 524 | site=$ac_optarg ;; |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 525 | |
| 526 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 527 | ac_prev=srcdir ;; |
| 528 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 529 | srcdir=$ac_optarg ;; |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 530 | |
| 531 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 532 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 533 | ac_prev=sysconfdir ;; |
| 534 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 535 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 536 | sysconfdir=$ac_optarg ;; |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 537 | |
| 538 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 539 | ac_prev=target_alias ;; |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 540 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 541 | target_alias=$ac_optarg ;; |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 542 | |
| 543 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 544 | verbose=yes ;; |
| 545 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 546 | -version | --version | --versio | --versi | --vers | -V) |
| 547 | ac_init_version=: ;; |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 548 | |
| 549 | -with-* | --with-*) |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 550 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 551 | # Reject names that are not valid shell variable names. |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 552 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 553 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 554 | { (exit 1); exit 1; }; } |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 555 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 556 | case $ac_option in |
| 557 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 558 | *) ac_optarg=yes ;; |
| 559 | esac |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 560 | eval "with_$ac_package='$ac_optarg'" ;; |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 561 | |
| 562 | -without-* | --without-*) |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 563 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 564 | # Reject names that are not valid shell variable names. |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 565 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 566 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 567 | { (exit 1); exit 1; }; } |
| 568 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 569 | eval "with_$ac_package=no" ;; |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 570 | |
| 571 | --x) |
| 572 | # Obsolete; use --with-x. |
| 573 | with_x=yes ;; |
| 574 | |
| 575 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 576 | | --x-incl | --x-inc | --x-in | --x-i) |
| 577 | ac_prev=x_includes ;; |
| 578 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 579 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 580 | x_includes=$ac_optarg ;; |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 581 | |
| 582 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 583 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 584 | ac_prev=x_libraries ;; |
| 585 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 586 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 587 | x_libraries=$ac_optarg ;; |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 588 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 589 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 590 | Try \`$0 --help' for more information." >&2 |
| 591 | { (exit 1); exit 1; }; } |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 592 | ;; |
| 593 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 594 | *=*) |
| 595 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 596 | # Reject names that are not valid shell variable names. |
| 597 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 598 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 599 | { (exit 1); exit 1; }; } |
| 600 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 601 | eval "$ac_envvar='$ac_optarg'" |
| 602 | export $ac_envvar ;; |
| 603 | |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 604 | *) |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 605 | # FIXME: should be removed in autoconf 3.0. |
| 606 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 607 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 608 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 609 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 610 | ;; |
| 611 | |
| 612 | esac |
| 613 | done |
| 614 | |
| 615 | if test -n "$ac_prev"; then |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 616 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 617 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 618 | { (exit 1); exit 1; }; } |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 619 | fi |
| 620 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 621 | # Be sure to have absolute paths. |
| 622 | for ac_var in exec_prefix prefix |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 623 | do |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 624 | eval ac_val=$`echo $ac_var` |
| 625 | case $ac_val in |
| 626 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| 627 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 628 | { (exit 1); exit 1; }; };; |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 629 | esac |
| 630 | done |
| 631 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 632 | # Be sure to have absolute paths. |
| 633 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
| 634 | localstatedir libdir includedir oldincludedir infodir mandir |
| 635 | do |
| 636 | eval ac_val=$`echo $ac_var` |
| 637 | case $ac_val in |
| 638 | [\\/$]* | ?:[\\/]* ) ;; |
| 639 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 640 | { (exit 1); exit 1; }; };; |
| 641 | esac |
| 642 | done |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 643 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 644 | # There might be people who depend on the old broken behavior: `$host' |
| 645 | # used to hold the argument of --host etc. |
| 646 | # FIXME: To remove some day. |
| 647 | build=$build_alias |
| 648 | host=$host_alias |
| 649 | target=$target_alias |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 650 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 651 | # FIXME: To remove some day. |
| 652 | if test "x$host_alias" != x; then |
| 653 | if test "x$build_alias" = x; then |
| 654 | cross_compiling=maybe |
| 655 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 656 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 657 | elif test "x$build_alias" != "x$host_alias"; then |
| 658 | cross_compiling=yes |
| 659 | fi |
| 660 | fi |
| 661 | |
| 662 | ac_tool_prefix= |
| 663 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 664 | |
| 665 | test "$silent" = yes && exec 6>/dev/null |
| 666 | |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 667 | |
| 668 | # Find the source files, if location was not specified. |
| 669 | if test -z "$srcdir"; then |
| 670 | ac_srcdir_defaulted=yes |
| 671 | # Try the directory containing this script, then its parent. |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 672 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 673 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 674 | X"$0" : 'X\(//\)[^/]' \| \ |
| 675 | X"$0" : 'X\(//\)$' \| \ |
| 676 | X"$0" : 'X\(/\)' \| \ |
| 677 | . : '\(.\)' 2>/dev/null || |
| 678 | echo X"$0" | |
| 679 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 680 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 681 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 682 | /^X\(\/\).*/{ s//\1/; q; } |
| 683 | s/.*/./; q'` |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 684 | srcdir=$ac_confdir |
| 685 | if test ! -r $srcdir/$ac_unique_file; then |
| 686 | srcdir=.. |
| 687 | fi |
| 688 | else |
| 689 | ac_srcdir_defaulted=no |
| 690 | fi |
| 691 | if test ! -r $srcdir/$ac_unique_file; then |
| 692 | if test "$ac_srcdir_defaulted" = yes; then |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 693 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
| 694 | { (exit 1); exit 1; }; } |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 695 | else |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 696 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 697 | { (exit 1); exit 1; }; } |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 698 | fi |
| 699 | fi |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 700 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
| 701 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
| 702 | { (exit 1); exit 1; }; } |
| 703 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 704 | ac_env_build_alias_set=${build_alias+set} |
| 705 | ac_env_build_alias_value=$build_alias |
| 706 | ac_cv_env_build_alias_set=${build_alias+set} |
| 707 | ac_cv_env_build_alias_value=$build_alias |
| 708 | ac_env_host_alias_set=${host_alias+set} |
| 709 | ac_env_host_alias_value=$host_alias |
| 710 | ac_cv_env_host_alias_set=${host_alias+set} |
| 711 | ac_cv_env_host_alias_value=$host_alias |
| 712 | ac_env_target_alias_set=${target_alias+set} |
| 713 | ac_env_target_alias_value=$target_alias |
| 714 | ac_cv_env_target_alias_set=${target_alias+set} |
| 715 | ac_cv_env_target_alias_value=$target_alias |
| 716 | ac_env_CC_set=${CC+set} |
| 717 | ac_env_CC_value=$CC |
| 718 | ac_cv_env_CC_set=${CC+set} |
| 719 | ac_cv_env_CC_value=$CC |
| 720 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 721 | ac_env_CFLAGS_value=$CFLAGS |
| 722 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 723 | ac_cv_env_CFLAGS_value=$CFLAGS |
| 724 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 725 | ac_env_LDFLAGS_value=$LDFLAGS |
| 726 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 727 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 728 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 729 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 730 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 731 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| 732 | ac_env_CXX_set=${CXX+set} |
| 733 | ac_env_CXX_value=$CXX |
| 734 | ac_cv_env_CXX_set=${CXX+set} |
| 735 | ac_cv_env_CXX_value=$CXX |
| 736 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
| 737 | ac_env_CXXFLAGS_value=$CXXFLAGS |
| 738 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
| 739 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
| 740 | ac_env_CXXCPP_set=${CXXCPP+set} |
| 741 | ac_env_CXXCPP_value=$CXXCPP |
| 742 | ac_cv_env_CXXCPP_set=${CXXCPP+set} |
| 743 | ac_cv_env_CXXCPP_value=$CXXCPP |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 744 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 745 | # |
| 746 | # Report the --help message. |
| 747 | # |
| 748 | if test "$ac_init_help" = "long"; then |
| 749 | # Omit some internal or obsolete options to make the list less imposing. |
| 750 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 751 | cat <<_ACEOF |
| 752 | \`configure' configures this package to adapt to many kinds of systems. |
| 753 | |
| 754 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 755 | |
| 756 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 757 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 758 | |
| 759 | Defaults for the options are specified in brackets. |
| 760 | |
| 761 | Configuration: |
| 762 | -h, --help display this help and exit |
| 763 | --help=short display options specific to this package |
| 764 | --help=recursive display the short help of all the included packages |
| 765 | -V, --version display version information and exit |
| 766 | -q, --quiet, --silent do not print \`checking...' messages |
| 767 | --cache-file=FILE cache test results in FILE [disabled] |
| 768 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 769 | -n, --no-create do not create output files |
| 770 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 771 | |
| 772 | _ACEOF |
| 773 | |
| 774 | cat <<_ACEOF |
| 775 | Installation directories: |
| 776 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 777 | [$ac_default_prefix] |
| 778 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 779 | [PREFIX] |
| 780 | |
| 781 | By default, \`make install' will install all the files in |
| 782 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 783 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 784 | for instance \`--prefix=\$HOME'. |
| 785 | |
| 786 | For better control, use the options below. |
| 787 | |
| 788 | Fine tuning of the installation directories: |
| 789 | --bindir=DIR user executables [EPREFIX/bin] |
| 790 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 791 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 792 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 793 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 794 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 795 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 796 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 797 | --includedir=DIR C header files [PREFIX/include] |
| 798 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 799 | --infodir=DIR info documentation [PREFIX/info] |
| 800 | --mandir=DIR man documentation [PREFIX/man] |
| 801 | _ACEOF |
| 802 | |
| 803 | cat <<\_ACEOF |
| 804 | |
| 805 | X features: |
| 806 | --x-includes=DIR X include files are in DIR |
| 807 | --x-libraries=DIR X library files are in DIR |
| 808 | _ACEOF |
| 809 | fi |
| 810 | |
| 811 | if test -n "$ac_init_help"; then |
| 812 | |
| 813 | cat <<\_ACEOF |
| 814 | |
| 815 | Optional Packages: |
| 816 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 817 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 818 | --with-x use the X Window System |
| 819 | --with-installed-zlib use the version of zlib which is installed on the |
| 820 | system instead of the one distributed with VNC |
| 821 | |
| 822 | Some influential environment variables: |
| 823 | CC C compiler command |
| 824 | CFLAGS C compiler flags |
| 825 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 826 | nonstandard directory <lib dir> |
| 827 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 828 | headers in a nonstandard directory <include dir> |
| 829 | CXX C++ compiler command |
| 830 | CXXFLAGS C++ compiler flags |
| 831 | CXXCPP C++ preprocessor |
| 832 | |
| 833 | Use these variables to override the choices made by `configure' or to help |
| 834 | it to find libraries and programs with nonstandard names/locations. |
| 835 | |
| 836 | _ACEOF |
| 837 | fi |
| 838 | |
| 839 | if test "$ac_init_help" = "recursive"; then |
| 840 | # If there are subdirs, report their specific --help. |
| 841 | ac_popdir=`pwd` |
| 842 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 843 | test -d $ac_dir || continue |
| 844 | ac_builddir=. |
| 845 | |
| 846 | if test "$ac_dir" != .; then |
| 847 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 848 | # A "../" for each directory in $ac_dir_suffix. |
| 849 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 850 | else |
| 851 | ac_dir_suffix= ac_top_builddir= |
| 852 | fi |
| 853 | |
| 854 | case $srcdir in |
| 855 | .) # No --srcdir option. We are building in place. |
| 856 | ac_srcdir=. |
| 857 | if test -z "$ac_top_builddir"; then |
| 858 | ac_top_srcdir=. |
| 859 | else |
| 860 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 861 | fi ;; |
| 862 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 863 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 864 | ac_top_srcdir=$srcdir ;; |
| 865 | *) # Relative path. |
| 866 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 867 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 868 | esac |
| 869 | |
| 870 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 871 | # the directories may not exist. |
| 872 | case `pwd` in |
| 873 | .) ac_abs_builddir="$ac_dir";; |
| 874 | *) |
| 875 | case "$ac_dir" in |
| 876 | .) ac_abs_builddir=`pwd`;; |
| 877 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 878 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 879 | esac;; |
| 880 | esac |
| 881 | case $ac_abs_builddir in |
| 882 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 883 | *) |
| 884 | case ${ac_top_builddir}. in |
| 885 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 886 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 887 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 888 | esac;; |
| 889 | esac |
| 890 | case $ac_abs_builddir in |
| 891 | .) ac_abs_srcdir=$ac_srcdir;; |
| 892 | *) |
| 893 | case $ac_srcdir in |
| 894 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 895 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 896 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 897 | esac;; |
| 898 | esac |
| 899 | case $ac_abs_builddir in |
| 900 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 901 | *) |
| 902 | case $ac_top_srcdir in |
| 903 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 904 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 905 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 906 | esac;; |
| 907 | esac |
| 908 | |
| 909 | cd $ac_dir |
| 910 | # Check for guested configure; otherwise get Cygnus style configure. |
| 911 | if test -f $ac_srcdir/configure.gnu; then |
| 912 | echo |
| 913 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 914 | elif test -f $ac_srcdir/configure; then |
| 915 | echo |
| 916 | $SHELL $ac_srcdir/configure --help=recursive |
| 917 | elif test -f $ac_srcdir/configure.ac || |
| 918 | test -f $ac_srcdir/configure.in; then |
| 919 | echo |
| 920 | $ac_configure --help |
| 921 | else |
| 922 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 923 | fi |
| 924 | cd $ac_popdir |
| 925 | done |
| 926 | fi |
| 927 | |
| 928 | test -n "$ac_init_help" && exit 0 |
| 929 | if $ac_init_version; then |
| 930 | cat <<\_ACEOF |
| 931 | |
| 932 | Copyright (C) 2003 Free Software Foundation, Inc. |
| 933 | This configure script is free software; the Free Software Foundation |
| 934 | gives unlimited permission to copy, distribute and modify it. |
| 935 | _ACEOF |
| 936 | exit 0 |
| 937 | fi |
| 938 | exec 5>config.log |
| 939 | cat >&5 <<_ACEOF |
| 940 | This file contains any messages produced by compilers while |
| 941 | running configure, to aid debugging if configure makes a mistake. |
| 942 | |
| 943 | It was created by $as_me, which was |
| 944 | generated by GNU Autoconf 2.59. Invocation command line was |
| 945 | |
| 946 | $ $0 $@ |
| 947 | |
| 948 | _ACEOF |
| 949 | { |
| 950 | cat <<_ASUNAME |
| 951 | ## --------- ## |
| 952 | ## Platform. ## |
| 953 | ## --------- ## |
| 954 | |
| 955 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 956 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 957 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 958 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 959 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 960 | |
| 961 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 962 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 963 | |
| 964 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 965 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 966 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 967 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 968 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 969 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 970 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 971 | |
| 972 | _ASUNAME |
| 973 | |
| 974 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 975 | for as_dir in $PATH |
| 976 | do |
| 977 | IFS=$as_save_IFS |
| 978 | test -z "$as_dir" && as_dir=. |
| 979 | echo "PATH: $as_dir" |
| 980 | done |
| 981 | |
| 982 | } >&5 |
| 983 | |
| 984 | cat >&5 <<_ACEOF |
| 985 | |
| 986 | |
| 987 | ## ----------- ## |
| 988 | ## Core tests. ## |
| 989 | ## ----------- ## |
| 990 | |
| 991 | _ACEOF |
| 992 | |
| 993 | |
| 994 | # Keep a trace of the command line. |
| 995 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 996 | # Strip out --silent because we don't want to record it for future runs. |
| 997 | # Also quote any args containing shell meta-characters. |
| 998 | # Make two passes to allow for proper duplicate-argument suppression. |
| 999 | ac_configure_args= |
| 1000 | ac_configure_args0= |
| 1001 | ac_configure_args1= |
| 1002 | ac_sep= |
| 1003 | ac_must_keep_next=false |
| 1004 | for ac_pass in 1 2 |
| 1005 | do |
| 1006 | for ac_arg |
| 1007 | do |
| 1008 | case $ac_arg in |
| 1009 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1010 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1011 | | -silent | --silent | --silen | --sile | --sil) |
| 1012 | continue ;; |
| 1013 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1014 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1015 | esac |
| 1016 | case $ac_pass in |
| 1017 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1018 | 2) |
| 1019 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1020 | if test $ac_must_keep_next = true; then |
| 1021 | ac_must_keep_next=false # Got value, back to normal. |
| 1022 | else |
| 1023 | case $ac_arg in |
| 1024 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1025 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1026 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1027 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1028 | case "$ac_configure_args0 " in |
| 1029 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1030 | esac |
| 1031 | ;; |
| 1032 | -* ) ac_must_keep_next=true ;; |
| 1033 | esac |
| 1034 | fi |
| 1035 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1036 | # Get rid of the leading space. |
| 1037 | ac_sep=" " |
| 1038 | ;; |
| 1039 | esac |
| 1040 | done |
| 1041 | done |
| 1042 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1043 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1044 | |
| 1045 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1046 | # config.log. We remove comments because anyway the quotes in there |
| 1047 | # would cause problems or look ugly. |
| 1048 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1049 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1050 | trap 'exit_status=$? |
| 1051 | # Save into config.log some information that might help in debugging. |
| 1052 | { |
| 1053 | echo |
| 1054 | |
| 1055 | cat <<\_ASBOX |
| 1056 | ## ---------------- ## |
| 1057 | ## Cache variables. ## |
| 1058 | ## ---------------- ## |
| 1059 | _ASBOX |
| 1060 | echo |
| 1061 | # The following way of writing the cache mishandles newlines in values, |
| 1062 | { |
| 1063 | (set) 2>&1 | |
| 1064 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1065 | *ac_space=\ *) |
| 1066 | sed -n \ |
| 1067 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1068 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| 1069 | ;; |
| 1070 | *) |
| 1071 | sed -n \ |
| 1072 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1073 | ;; |
| 1074 | esac; |
| 1075 | } |
| 1076 | echo |
| 1077 | |
| 1078 | cat <<\_ASBOX |
| 1079 | ## ----------------- ## |
| 1080 | ## Output variables. ## |
| 1081 | ## ----------------- ## |
| 1082 | _ASBOX |
| 1083 | echo |
| 1084 | for ac_var in $ac_subst_vars |
| 1085 | do |
| 1086 | eval ac_val=$`echo $ac_var` |
| 1087 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1088 | done | sort |
| 1089 | echo |
| 1090 | |
| 1091 | if test -n "$ac_subst_files"; then |
| 1092 | cat <<\_ASBOX |
| 1093 | ## ------------- ## |
| 1094 | ## Output files. ## |
| 1095 | ## ------------- ## |
| 1096 | _ASBOX |
| 1097 | echo |
| 1098 | for ac_var in $ac_subst_files |
| 1099 | do |
| 1100 | eval ac_val=$`echo $ac_var` |
| 1101 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1102 | done | sort |
| 1103 | echo |
| 1104 | fi |
| 1105 | |
| 1106 | if test -s confdefs.h; then |
| 1107 | cat <<\_ASBOX |
| 1108 | ## ----------- ## |
| 1109 | ## confdefs.h. ## |
| 1110 | ## ----------- ## |
| 1111 | _ASBOX |
| 1112 | echo |
| 1113 | sed "/^$/d" confdefs.h | sort |
| 1114 | echo |
| 1115 | fi |
| 1116 | test "$ac_signal" != 0 && |
| 1117 | echo "$as_me: caught signal $ac_signal" |
| 1118 | echo "$as_me: exit $exit_status" |
| 1119 | } >&5 |
| 1120 | rm -f core *.core && |
| 1121 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1122 | exit $exit_status |
| 1123 | ' 0 |
| 1124 | for ac_signal in 1 2 13 15; do |
| 1125 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1126 | done |
| 1127 | ac_signal=0 |
| 1128 | |
| 1129 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1130 | rm -rf conftest* confdefs.h |
| 1131 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1132 | echo >confdefs.h |
| 1133 | |
| 1134 | # Predefined preprocessor variables. |
| 1135 | |
| 1136 | cat >>confdefs.h <<_ACEOF |
| 1137 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1138 | _ACEOF |
| 1139 | |
| 1140 | |
| 1141 | cat >>confdefs.h <<_ACEOF |
| 1142 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1143 | _ACEOF |
| 1144 | |
| 1145 | |
| 1146 | cat >>confdefs.h <<_ACEOF |
| 1147 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1148 | _ACEOF |
| 1149 | |
| 1150 | |
| 1151 | cat >>confdefs.h <<_ACEOF |
| 1152 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1153 | _ACEOF |
| 1154 | |
| 1155 | |
| 1156 | cat >>confdefs.h <<_ACEOF |
| 1157 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1158 | _ACEOF |
| 1159 | |
| 1160 | |
| 1161 | # Let the site file select an alternate cache file if it wants to. |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 1162 | # Prefer explicitly selected file to automatically selected ones. |
| 1163 | if test -z "$CONFIG_SITE"; then |
| 1164 | if test "x$prefix" != xNONE; then |
| 1165 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1166 | else |
| 1167 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1168 | fi |
| 1169 | fi |
| 1170 | for ac_site_file in $CONFIG_SITE; do |
| 1171 | if test -r "$ac_site_file"; then |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 1172 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1173 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1174 | sed 's/^/| /' "$ac_site_file" >&5 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 1175 | . "$ac_site_file" |
| 1176 | fi |
| 1177 | done |
| 1178 | |
| 1179 | if test -r "$cache_file"; then |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 1180 | # Some versions of bash will fail to source /dev/null (special |
| 1181 | # files actually), so we avoid doing that. |
| 1182 | if test -f "$cache_file"; then |
| 1183 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1184 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1185 | case $cache_file in |
| 1186 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1187 | *) . ./$cache_file;; |
| 1188 | esac |
| 1189 | fi |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 1190 | else |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 1191 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1192 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1193 | >$cache_file |
| 1194 | fi |
| 1195 | |
| 1196 | # Check that the precious variables saved in the cache have kept the same |
| 1197 | # value. |
| 1198 | ac_cache_corrupted=false |
| 1199 | for ac_var in `(set) 2>&1 | |
| 1200 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| 1201 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1202 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1203 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1204 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1205 | case $ac_old_set,$ac_new_set in |
| 1206 | set,) |
| 1207 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1208 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1209 | ac_cache_corrupted=: ;; |
| 1210 | ,set) |
| 1211 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1212 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1213 | ac_cache_corrupted=: ;; |
| 1214 | ,);; |
| 1215 | *) |
| 1216 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1217 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1218 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1219 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1220 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1221 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1222 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1223 | ac_cache_corrupted=: |
| 1224 | fi;; |
| 1225 | esac |
| 1226 | # Pass precious variables to config.status. |
| 1227 | if test "$ac_new_set" = set; then |
| 1228 | case $ac_new_val in |
| 1229 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1230 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1231 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1232 | esac |
| 1233 | case " $ac_configure_args " in |
| 1234 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1235 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1236 | esac |
| 1237 | fi |
| 1238 | done |
| 1239 | if $ac_cache_corrupted; then |
| 1240 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1241 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1242 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1243 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1244 | { (exit 1); exit 1; }; } |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 1245 | fi |
| 1246 | |
| 1247 | ac_ext=c |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 1248 | ac_cpp='$CPP $CPPFLAGS' |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 1249 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1250 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1251 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 1252 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 1253 | |
| 1254 | |
| 1255 | |
| 1256 | |
| 1257 | |
| 1258 | |
| 1259 | |
| 1260 | |
| 1261 | |
| 1262 | |
| 1263 | |
| 1264 | |
| 1265 | |
| 1266 | |
| 1267 | |
| 1268 | |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 1269 | |
| 1270 | |
| 1271 | |
| 1272 | ac_cv_prog_cc_g=no |
| 1273 | ac_cv_prog_cxx_g=no |
| 1274 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 1275 | ac_ext=c |
| 1276 | ac_cpp='$CPP $CPPFLAGS' |
| 1277 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1278 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1279 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1280 | if test -n "$ac_tool_prefix"; then |
| 1281 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1282 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1283 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1284 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1285 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1286 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 1287 | else |
| 1288 | if test -n "$CC"; then |
| 1289 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1290 | else |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 1291 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1292 | for as_dir in $PATH |
| 1293 | do |
| 1294 | IFS=$as_save_IFS |
| 1295 | test -z "$as_dir" && as_dir=. |
| 1296 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1297 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1298 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1299 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1300 | break 2 |
| 1301 | fi |
| 1302 | done |
| 1303 | done |
| 1304 | |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 1305 | fi |
| 1306 | fi |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 1307 | CC=$ac_cv_prog_CC |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 1308 | if test -n "$CC"; then |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 1309 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1310 | echo "${ECHO_T}$CC" >&6 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 1311 | else |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 1312 | echo "$as_me:$LINENO: result: no" >&5 |
| 1313 | echo "${ECHO_T}no" >&6 |
| 1314 | fi |
| 1315 | |
| 1316 | fi |
| 1317 | if test -z "$ac_cv_prog_CC"; then |
| 1318 | ac_ct_CC=$CC |
| 1319 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1320 | set dummy gcc; ac_word=$2 |
| 1321 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1322 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1323 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1324 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1325 | else |
| 1326 | if test -n "$ac_ct_CC"; then |
| 1327 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1328 | else |
| 1329 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1330 | for as_dir in $PATH |
| 1331 | do |
| 1332 | IFS=$as_save_IFS |
| 1333 | test -z "$as_dir" && as_dir=. |
| 1334 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1335 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1336 | ac_cv_prog_ac_ct_CC="gcc" |
| 1337 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1338 | break 2 |
| 1339 | fi |
| 1340 | done |
| 1341 | done |
| 1342 | |
| 1343 | fi |
| 1344 | fi |
| 1345 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1346 | if test -n "$ac_ct_CC"; then |
| 1347 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1348 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1349 | else |
| 1350 | echo "$as_me:$LINENO: result: no" >&5 |
| 1351 | echo "${ECHO_T}no" >&6 |
| 1352 | fi |
| 1353 | |
| 1354 | CC=$ac_ct_CC |
| 1355 | else |
| 1356 | CC="$ac_cv_prog_CC" |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 1357 | fi |
| 1358 | |
| 1359 | if test -z "$CC"; then |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 1360 | if test -n "$ac_tool_prefix"; then |
| 1361 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1362 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1363 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1364 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1365 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1366 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 1367 | else |
| 1368 | if test -n "$CC"; then |
| 1369 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1370 | else |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 1371 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1372 | for as_dir in $PATH |
| 1373 | do |
| 1374 | IFS=$as_save_IFS |
| 1375 | test -z "$as_dir" && as_dir=. |
| 1376 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1377 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1378 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1379 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1380 | break 2 |
| 1381 | fi |
| 1382 | done |
| 1383 | done |
| 1384 | |
| 1385 | fi |
| 1386 | fi |
| 1387 | CC=$ac_cv_prog_CC |
| 1388 | if test -n "$CC"; then |
| 1389 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1390 | echo "${ECHO_T}$CC" >&6 |
| 1391 | else |
| 1392 | echo "$as_me:$LINENO: result: no" >&5 |
| 1393 | echo "${ECHO_T}no" >&6 |
| 1394 | fi |
| 1395 | |
| 1396 | fi |
| 1397 | if test -z "$ac_cv_prog_CC"; then |
| 1398 | ac_ct_CC=$CC |
| 1399 | # Extract the first word of "cc", so it can be a program name with args. |
| 1400 | set dummy cc; ac_word=$2 |
| 1401 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1402 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1403 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1404 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1405 | else |
| 1406 | if test -n "$ac_ct_CC"; then |
| 1407 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1408 | else |
| 1409 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1410 | for as_dir in $PATH |
| 1411 | do |
| 1412 | IFS=$as_save_IFS |
| 1413 | test -z "$as_dir" && as_dir=. |
| 1414 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1415 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1416 | ac_cv_prog_ac_ct_CC="cc" |
| 1417 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1418 | break 2 |
| 1419 | fi |
| 1420 | done |
| 1421 | done |
| 1422 | |
| 1423 | fi |
| 1424 | fi |
| 1425 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1426 | if test -n "$ac_ct_CC"; then |
| 1427 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1428 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1429 | else |
| 1430 | echo "$as_me:$LINENO: result: no" >&5 |
| 1431 | echo "${ECHO_T}no" >&6 |
| 1432 | fi |
| 1433 | |
| 1434 | CC=$ac_ct_CC |
| 1435 | else |
| 1436 | CC="$ac_cv_prog_CC" |
| 1437 | fi |
| 1438 | |
| 1439 | fi |
| 1440 | if test -z "$CC"; then |
| 1441 | # Extract the first word of "cc", so it can be a program name with args. |
| 1442 | set dummy cc; ac_word=$2 |
| 1443 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1444 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1445 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1446 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1447 | else |
| 1448 | if test -n "$CC"; then |
| 1449 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1450 | else |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 1451 | ac_prog_rejected=no |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 1452 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1453 | for as_dir in $PATH |
| 1454 | do |
| 1455 | IFS=$as_save_IFS |
| 1456 | test -z "$as_dir" && as_dir=. |
| 1457 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1458 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1459 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1460 | ac_prog_rejected=yes |
| 1461 | continue |
| 1462 | fi |
| 1463 | ac_cv_prog_CC="cc" |
| 1464 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1465 | break 2 |
| 1466 | fi |
| 1467 | done |
| 1468 | done |
| 1469 | |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 1470 | if test $ac_prog_rejected = yes; then |
| 1471 | # We found a bogon in the path, so make sure we never use it. |
| 1472 | set dummy $ac_cv_prog_CC |
| 1473 | shift |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 1474 | if test $# != 0; then |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 1475 | # We chose a different compiler from the bogus one. |
| 1476 | # However, it has the same basename, so the bogon will be chosen |
| 1477 | # first if we set CC to just the basename; use the full file name. |
| 1478 | shift |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 1479 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 1480 | fi |
| 1481 | fi |
| 1482 | fi |
| 1483 | fi |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 1484 | CC=$ac_cv_prog_CC |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 1485 | if test -n "$CC"; then |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 1486 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1487 | echo "${ECHO_T}$CC" >&6 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 1488 | else |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 1489 | echo "$as_me:$LINENO: result: no" >&5 |
| 1490 | echo "${ECHO_T}no" >&6 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 1491 | fi |
| 1492 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 1493 | fi |
| 1494 | if test -z "$CC"; then |
| 1495 | if test -n "$ac_tool_prefix"; then |
| 1496 | for ac_prog in cl |
| 1497 | do |
| 1498 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1499 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 1500 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1501 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1502 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1503 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 1504 | else |
| 1505 | if test -n "$CC"; then |
| 1506 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1507 | else |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 1508 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1509 | for as_dir in $PATH |
| 1510 | do |
| 1511 | IFS=$as_save_IFS |
| 1512 | test -z "$as_dir" && as_dir=. |
| 1513 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1514 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1515 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1516 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1517 | break 2 |
| 1518 | fi |
| 1519 | done |
| 1520 | done |
| 1521 | |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 1522 | fi |
| 1523 | fi |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 1524 | CC=$ac_cv_prog_CC |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 1525 | if test -n "$CC"; then |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 1526 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1527 | echo "${ECHO_T}$CC" >&6 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 1528 | else |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 1529 | echo "$as_me:$LINENO: result: no" >&5 |
| 1530 | echo "${ECHO_T}no" >&6 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 1531 | fi |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 1532 | |
| 1533 | test -n "$CC" && break |
| 1534 | done |
| 1535 | fi |
| 1536 | if test -z "$CC"; then |
| 1537 | ac_ct_CC=$CC |
| 1538 | for ac_prog in cl |
| 1539 | do |
| 1540 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1541 | set dummy $ac_prog; ac_word=$2 |
| 1542 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1543 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1544 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1545 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1546 | else |
| 1547 | if test -n "$ac_ct_CC"; then |
| 1548 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1549 | else |
| 1550 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1551 | for as_dir in $PATH |
| 1552 | do |
| 1553 | IFS=$as_save_IFS |
| 1554 | test -z "$as_dir" && as_dir=. |
| 1555 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1556 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1557 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 1558 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1559 | break 2 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 1560 | fi |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 1561 | done |
| 1562 | done |
| 1563 | |
| 1564 | fi |
| 1565 | fi |
| 1566 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1567 | if test -n "$ac_ct_CC"; then |
| 1568 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1569 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1570 | else |
| 1571 | echo "$as_me:$LINENO: result: no" >&5 |
| 1572 | echo "${ECHO_T}no" >&6 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 1573 | fi |
| 1574 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 1575 | test -n "$ac_ct_CC" && break |
| 1576 | done |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 1577 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 1578 | CC=$ac_ct_CC |
| 1579 | fi |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 1580 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 1581 | fi |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 1582 | |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 1583 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 1584 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 1585 | See \`config.log' for more details." >&5 |
| 1586 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 1587 | See \`config.log' for more details." >&2;} |
| 1588 | { (exit 1); exit 1; }; } |
| 1589 | |
| 1590 | # Provide some information about the compiler. |
| 1591 | echo "$as_me:$LINENO:" \ |
| 1592 | "checking for C compiler version" >&5 |
| 1593 | ac_compiler=`set X $ac_compile; echo $2` |
| 1594 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 1595 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 1596 | ac_status=$? |
| 1597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1598 | (exit $ac_status); } |
| 1599 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 1600 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 1601 | ac_status=$? |
| 1602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1603 | (exit $ac_status); } |
| 1604 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 1605 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 1606 | ac_status=$? |
| 1607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1608 | (exit $ac_status); } |
| 1609 | |
| 1610 | cat >conftest.$ac_ext <<_ACEOF |
| 1611 | /* confdefs.h. */ |
| 1612 | _ACEOF |
| 1613 | cat confdefs.h >>conftest.$ac_ext |
| 1614 | cat >>conftest.$ac_ext <<_ACEOF |
| 1615 | /* end confdefs.h. */ |
| 1616 | |
| 1617 | int |
| 1618 | main () |
| 1619 | { |
| 1620 | |
| 1621 | ; |
| 1622 | return 0; |
| 1623 | } |
| 1624 | _ACEOF |
| 1625 | ac_clean_files_save=$ac_clean_files |
| 1626 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
| 1627 | # Try to create an executable without -o first, disregard a.out. |
| 1628 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1629 | # of exeext. |
| 1630 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 1631 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
| 1632 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1633 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1634 | (eval $ac_link_default) 2>&5 |
| 1635 | ac_status=$? |
| 1636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1637 | (exit $ac_status); }; then |
| 1638 | # Find the output, starting from the most likely. This scheme is |
| 1639 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1640 | # resort. |
| 1641 | |
| 1642 | # Be careful to initialize this variable, since it used to be cached. |
| 1643 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1644 | ac_cv_exeext= |
| 1645 | # b.out is created by i960 compilers. |
| 1646 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 1647 | do |
| 1648 | test -f "$ac_file" || continue |
| 1649 | case $ac_file in |
| 1650 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
| 1651 | ;; |
| 1652 | conftest.$ac_ext ) |
| 1653 | # This is the source file. |
| 1654 | ;; |
| 1655 | [ab].out ) |
| 1656 | # We found the default executable, but exeext='' is most |
| 1657 | # certainly right. |
| 1658 | break;; |
| 1659 | *.* ) |
| 1660 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1661 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 1662 | # but it would be cool to find out if it's true. Does anybody |
| 1663 | # maintain Libtool? --akim. |
| 1664 | export ac_cv_exeext |
| 1665 | break;; |
| 1666 | * ) |
| 1667 | break;; |
| 1668 | esac |
| 1669 | done |
| 1670 | else |
| 1671 | echo "$as_me: failed program was:" >&5 |
| 1672 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1673 | |
| 1674 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 1675 | See \`config.log' for more details." >&5 |
| 1676 | echo "$as_me: error: C compiler cannot create executables |
| 1677 | See \`config.log' for more details." >&2;} |
| 1678 | { (exit 77); exit 77; }; } |
| 1679 | fi |
| 1680 | |
| 1681 | ac_exeext=$ac_cv_exeext |
| 1682 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 1683 | echo "${ECHO_T}$ac_file" >&6 |
| 1684 | |
| 1685 | # Check the compiler produces executables we can run. If not, either |
| 1686 | # the compiler is broken, or we cross compile. |
| 1687 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 1688 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 1689 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1690 | # If not cross compiling, check that we can run a simple program. |
| 1691 | if test "$cross_compiling" != yes; then |
| 1692 | if { ac_try='./$ac_file' |
| 1693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1694 | (eval $ac_try) 2>&5 |
| 1695 | ac_status=$? |
| 1696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1697 | (exit $ac_status); }; }; then |
| 1698 | cross_compiling=no |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 1699 | else |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 1700 | if test "$cross_compiling" = maybe; then |
| 1701 | cross_compiling=yes |
| 1702 | else |
| 1703 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 1704 | If you meant to cross compile, use \`--host'. |
| 1705 | See \`config.log' for more details." >&5 |
| 1706 | echo "$as_me: error: cannot run C compiled programs. |
| 1707 | If you meant to cross compile, use \`--host'. |
| 1708 | See \`config.log' for more details." >&2;} |
| 1709 | { (exit 1); exit 1; }; } |
| 1710 | fi |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 1711 | fi |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 1712 | fi |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 1713 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1714 | echo "${ECHO_T}yes" >&6 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 1715 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 1716 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
| 1717 | ac_clean_files=$ac_clean_files_save |
| 1718 | # Check the compiler produces executables we can run. If not, either |
| 1719 | # the compiler is broken, or we cross compile. |
| 1720 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 1721 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 1722 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 1723 | echo "${ECHO_T}$cross_compiling" >&6 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 1724 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 1725 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1726 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1727 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 1728 | (eval $ac_link) 2>&5 |
| 1729 | ac_status=$? |
| 1730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1731 | (exit $ac_status); }; then |
| 1732 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1733 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1734 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1735 | # `rm'. |
| 1736 | for ac_file in conftest.exe conftest conftest.*; do |
| 1737 | test -f "$ac_file" || continue |
| 1738 | case $ac_file in |
| 1739 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
| 1740 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1741 | export ac_cv_exeext |
| 1742 | break;; |
| 1743 | * ) break;; |
| 1744 | esac |
| 1745 | done |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 1746 | else |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 1747 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 1748 | See \`config.log' for more details." >&5 |
| 1749 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 1750 | See \`config.log' for more details." >&2;} |
| 1751 | { (exit 1); exit 1; }; } |
| 1752 | fi |
| 1753 | |
| 1754 | rm -f conftest$ac_cv_exeext |
| 1755 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 1756 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1757 | |
| 1758 | rm -f conftest.$ac_ext |
| 1759 | EXEEXT=$ac_cv_exeext |
| 1760 | ac_exeext=$EXEEXT |
| 1761 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 1762 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 1763 | if test "${ac_cv_objext+set}" = set; then |
| 1764 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1765 | else |
| 1766 | cat >conftest.$ac_ext <<_ACEOF |
| 1767 | /* confdefs.h. */ |
| 1768 | _ACEOF |
| 1769 | cat confdefs.h >>conftest.$ac_ext |
| 1770 | cat >>conftest.$ac_ext <<_ACEOF |
| 1771 | /* end confdefs.h. */ |
| 1772 | |
| 1773 | int |
| 1774 | main () |
| 1775 | { |
| 1776 | |
| 1777 | ; |
| 1778 | return 0; |
| 1779 | } |
| 1780 | _ACEOF |
| 1781 | rm -f conftest.o conftest.obj |
| 1782 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 1783 | (eval $ac_compile) 2>&5 |
| 1784 | ac_status=$? |
| 1785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1786 | (exit $ac_status); }; then |
| 1787 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 1788 | case $ac_file in |
| 1789 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
| 1790 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 1791 | break;; |
| 1792 | esac |
| 1793 | done |
| 1794 | else |
| 1795 | echo "$as_me: failed program was:" >&5 |
| 1796 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1797 | |
| 1798 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 1799 | See \`config.log' for more details." >&5 |
| 1800 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 1801 | See \`config.log' for more details." >&2;} |
| 1802 | { (exit 1); exit 1; }; } |
| 1803 | fi |
| 1804 | |
| 1805 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 1806 | fi |
| 1807 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 1808 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 1809 | OBJEXT=$ac_cv_objext |
| 1810 | ac_objext=$OBJEXT |
| 1811 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 1812 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 1813 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 1814 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1815 | else |
| 1816 | cat >conftest.$ac_ext <<_ACEOF |
| 1817 | /* confdefs.h. */ |
| 1818 | _ACEOF |
| 1819 | cat confdefs.h >>conftest.$ac_ext |
| 1820 | cat >>conftest.$ac_ext <<_ACEOF |
| 1821 | /* end confdefs.h. */ |
| 1822 | |
| 1823 | int |
| 1824 | main () |
| 1825 | { |
| 1826 | #ifndef __GNUC__ |
| 1827 | choke me |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 1828 | #endif |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 1829 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 1830 | ; |
| 1831 | return 0; |
| 1832 | } |
| 1833 | _ACEOF |
| 1834 | rm -f conftest.$ac_objext |
| 1835 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 1836 | (eval $ac_compile) 2>conftest.er1 |
| 1837 | ac_status=$? |
| 1838 | grep -v '^ *+' conftest.er1 >conftest.err |
| 1839 | rm -f conftest.er1 |
| 1840 | cat conftest.err >&5 |
| 1841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1842 | (exit $ac_status); } && |
| 1843 | { ac_try='test -z "$ac_c_werror_flag" |
| 1844 | || test ! -s conftest.err' |
| 1845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1846 | (eval $ac_try) 2>&5 |
| 1847 | ac_status=$? |
| 1848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1849 | (exit $ac_status); }; } && |
| 1850 | { ac_try='test -s conftest.$ac_objext' |
| 1851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1852 | (eval $ac_try) 2>&5 |
| 1853 | ac_status=$? |
| 1854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1855 | (exit $ac_status); }; }; then |
| 1856 | ac_compiler_gnu=yes |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 1857 | else |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 1858 | echo "$as_me: failed program was:" >&5 |
| 1859 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1860 | |
| 1861 | ac_compiler_gnu=no |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 1862 | fi |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 1863 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1864 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 1865 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 1866 | fi |
| 1867 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 1868 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 1869 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 1870 | ac_test_CFLAGS=${CFLAGS+set} |
| 1871 | ac_save_CFLAGS=$CFLAGS |
| 1872 | CFLAGS="-g" |
| 1873 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 1874 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 1875 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 1876 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 1877 | else |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 1878 | cat >conftest.$ac_ext <<_ACEOF |
| 1879 | /* confdefs.h. */ |
| 1880 | _ACEOF |
| 1881 | cat confdefs.h >>conftest.$ac_ext |
| 1882 | cat >>conftest.$ac_ext <<_ACEOF |
| 1883 | /* end confdefs.h. */ |
| 1884 | |
| 1885 | int |
| 1886 | main () |
| 1887 | { |
| 1888 | |
| 1889 | ; |
| 1890 | return 0; |
| 1891 | } |
| 1892 | _ACEOF |
| 1893 | rm -f conftest.$ac_objext |
| 1894 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 1895 | (eval $ac_compile) 2>conftest.er1 |
| 1896 | ac_status=$? |
| 1897 | grep -v '^ *+' conftest.er1 >conftest.err |
| 1898 | rm -f conftest.er1 |
| 1899 | cat conftest.err >&5 |
| 1900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1901 | (exit $ac_status); } && |
| 1902 | { ac_try='test -z "$ac_c_werror_flag" |
| 1903 | || test ! -s conftest.err' |
| 1904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1905 | (eval $ac_try) 2>&5 |
| 1906 | ac_status=$? |
| 1907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1908 | (exit $ac_status); }; } && |
| 1909 | { ac_try='test -s conftest.$ac_objext' |
| 1910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1911 | (eval $ac_try) 2>&5 |
| 1912 | ac_status=$? |
| 1913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1914 | (exit $ac_status); }; }; then |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 1915 | ac_cv_prog_cc_g=yes |
| 1916 | else |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 1917 | echo "$as_me: failed program was:" >&5 |
| 1918 | sed 's/^/| /' conftest.$ac_ext >&5 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 1919 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 1920 | ac_cv_prog_cc_g=no |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 1921 | fi |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 1922 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1923 | fi |
| 1924 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 1925 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 1926 | if test "$ac_test_CFLAGS" = set; then |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 1927 | CFLAGS=$ac_save_CFLAGS |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 1928 | elif test $ac_cv_prog_cc_g = yes; then |
| 1929 | if test "$GCC" = yes; then |
| 1930 | CFLAGS="-g -O2" |
| 1931 | else |
| 1932 | CFLAGS="-g" |
| 1933 | fi |
| 1934 | else |
| 1935 | if test "$GCC" = yes; then |
| 1936 | CFLAGS="-O2" |
| 1937 | else |
| 1938 | CFLAGS= |
| 1939 | fi |
| 1940 | fi |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 1941 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 1942 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 1943 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 1944 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1945 | else |
| 1946 | ac_cv_prog_cc_stdc=no |
| 1947 | ac_save_CC=$CC |
| 1948 | cat >conftest.$ac_ext <<_ACEOF |
| 1949 | /* confdefs.h. */ |
| 1950 | _ACEOF |
| 1951 | cat confdefs.h >>conftest.$ac_ext |
| 1952 | cat >>conftest.$ac_ext <<_ACEOF |
| 1953 | /* end confdefs.h. */ |
| 1954 | #include <stdarg.h> |
| 1955 | #include <stdio.h> |
| 1956 | #include <sys/types.h> |
| 1957 | #include <sys/stat.h> |
| 1958 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 1959 | struct buf { int x; }; |
| 1960 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 1961 | static char *e (p, i) |
| 1962 | char **p; |
| 1963 | int i; |
| 1964 | { |
| 1965 | return p[i]; |
| 1966 | } |
| 1967 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 1968 | { |
| 1969 | char *s; |
| 1970 | va_list v; |
| 1971 | va_start (v,p); |
| 1972 | s = g (p, va_arg (v,int)); |
| 1973 | va_end (v); |
| 1974 | return s; |
| 1975 | } |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 1976 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 1977 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 1978 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 1979 | These don't provoke an error unfortunately, instead are silently treated |
| 1980 | as 'x'. The following induces an error, until -std1 is added to get |
| 1981 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 1982 | array size at least. It's necessary to write '\x00'==0 to get something |
| 1983 | that's true only with -std1. */ |
| 1984 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 1985 | |
| 1986 | int test (int i, double x); |
| 1987 | struct s1 {int (*f) (int a);}; |
| 1988 | struct s2 {int (*f) (double a);}; |
| 1989 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 1990 | int argc; |
| 1991 | char **argv; |
| 1992 | int |
| 1993 | main () |
| 1994 | { |
| 1995 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 1996 | ; |
| 1997 | return 0; |
| 1998 | } |
| 1999 | _ACEOF |
| 2000 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2001 | # breaks some systems' header files. |
| 2002 | # AIX -qlanglvl=ansi |
| 2003 | # Ultrix and OSF/1 -std1 |
| 2004 | # HP-UX 10.20 and later -Ae |
| 2005 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2006 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2007 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 2008 | do |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 2009 | CC="$ac_save_CC $ac_arg" |
| 2010 | rm -f conftest.$ac_objext |
| 2011 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2012 | (eval $ac_compile) 2>conftest.er1 |
| 2013 | ac_status=$? |
| 2014 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2015 | rm -f conftest.er1 |
| 2016 | cat conftest.err >&5 |
| 2017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2018 | (exit $ac_status); } && |
| 2019 | { ac_try='test -z "$ac_c_werror_flag" |
| 2020 | || test ! -s conftest.err' |
| 2021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2022 | (eval $ac_try) 2>&5 |
| 2023 | ac_status=$? |
| 2024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2025 | (exit $ac_status); }; } && |
| 2026 | { ac_try='test -s conftest.$ac_objext' |
| 2027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2028 | (eval $ac_try) 2>&5 |
| 2029 | ac_status=$? |
| 2030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2031 | (exit $ac_status); }; }; then |
| 2032 | ac_cv_prog_cc_stdc=$ac_arg |
| 2033 | break |
| 2034 | else |
| 2035 | echo "$as_me: failed program was:" >&5 |
| 2036 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2037 | |
| 2038 | fi |
| 2039 | rm -f conftest.err conftest.$ac_objext |
| 2040 | done |
| 2041 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2042 | CC=$ac_save_CC |
| 2043 | |
| 2044 | fi |
| 2045 | |
| 2046 | case "x$ac_cv_prog_cc_stdc" in |
| 2047 | x|xno) |
| 2048 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2049 | echo "${ECHO_T}none needed" >&6 ;; |
| 2050 | *) |
| 2051 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2052 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2053 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2054 | esac |
| 2055 | |
| 2056 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2057 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2058 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2059 | # the declaration of exit, since it's the most demanding environment. |
| 2060 | cat >conftest.$ac_ext <<_ACEOF |
| 2061 | #ifndef __cplusplus |
| 2062 | choke me |
| 2063 | #endif |
| 2064 | _ACEOF |
| 2065 | rm -f conftest.$ac_objext |
| 2066 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2067 | (eval $ac_compile) 2>conftest.er1 |
| 2068 | ac_status=$? |
| 2069 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2070 | rm -f conftest.er1 |
| 2071 | cat conftest.err >&5 |
| 2072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2073 | (exit $ac_status); } && |
| 2074 | { ac_try='test -z "$ac_c_werror_flag" |
| 2075 | || test ! -s conftest.err' |
| 2076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2077 | (eval $ac_try) 2>&5 |
| 2078 | ac_status=$? |
| 2079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2080 | (exit $ac_status); }; } && |
| 2081 | { ac_try='test -s conftest.$ac_objext' |
| 2082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2083 | (eval $ac_try) 2>&5 |
| 2084 | ac_status=$? |
| 2085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2086 | (exit $ac_status); }; }; then |
| 2087 | for ac_declaration in \ |
| 2088 | '' \ |
| 2089 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2090 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2091 | 'extern "C" void exit (int) throw ();' \ |
| 2092 | 'extern "C" void exit (int);' \ |
| 2093 | 'void exit (int);' |
| 2094 | do |
| 2095 | cat >conftest.$ac_ext <<_ACEOF |
| 2096 | /* confdefs.h. */ |
| 2097 | _ACEOF |
| 2098 | cat confdefs.h >>conftest.$ac_ext |
| 2099 | cat >>conftest.$ac_ext <<_ACEOF |
| 2100 | /* end confdefs.h. */ |
| 2101 | $ac_declaration |
| 2102 | #include <stdlib.h> |
| 2103 | int |
| 2104 | main () |
| 2105 | { |
| 2106 | exit (42); |
| 2107 | ; |
| 2108 | return 0; |
| 2109 | } |
| 2110 | _ACEOF |
| 2111 | rm -f conftest.$ac_objext |
| 2112 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2113 | (eval $ac_compile) 2>conftest.er1 |
| 2114 | ac_status=$? |
| 2115 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2116 | rm -f conftest.er1 |
| 2117 | cat conftest.err >&5 |
| 2118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2119 | (exit $ac_status); } && |
| 2120 | { ac_try='test -z "$ac_c_werror_flag" |
| 2121 | || test ! -s conftest.err' |
| 2122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2123 | (eval $ac_try) 2>&5 |
| 2124 | ac_status=$? |
| 2125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2126 | (exit $ac_status); }; } && |
| 2127 | { ac_try='test -s conftest.$ac_objext' |
| 2128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2129 | (eval $ac_try) 2>&5 |
| 2130 | ac_status=$? |
| 2131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2132 | (exit $ac_status); }; }; then |
| 2133 | : |
| 2134 | else |
| 2135 | echo "$as_me: failed program was:" >&5 |
| 2136 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2137 | |
| 2138 | continue |
| 2139 | fi |
| 2140 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2141 | cat >conftest.$ac_ext <<_ACEOF |
| 2142 | /* confdefs.h. */ |
| 2143 | _ACEOF |
| 2144 | cat confdefs.h >>conftest.$ac_ext |
| 2145 | cat >>conftest.$ac_ext <<_ACEOF |
| 2146 | /* end confdefs.h. */ |
| 2147 | $ac_declaration |
| 2148 | int |
| 2149 | main () |
| 2150 | { |
| 2151 | exit (42); |
| 2152 | ; |
| 2153 | return 0; |
| 2154 | } |
| 2155 | _ACEOF |
| 2156 | rm -f conftest.$ac_objext |
| 2157 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2158 | (eval $ac_compile) 2>conftest.er1 |
| 2159 | ac_status=$? |
| 2160 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2161 | rm -f conftest.er1 |
| 2162 | cat conftest.err >&5 |
| 2163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2164 | (exit $ac_status); } && |
| 2165 | { ac_try='test -z "$ac_c_werror_flag" |
| 2166 | || test ! -s conftest.err' |
| 2167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2168 | (eval $ac_try) 2>&5 |
| 2169 | ac_status=$? |
| 2170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2171 | (exit $ac_status); }; } && |
| 2172 | { ac_try='test -s conftest.$ac_objext' |
| 2173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2174 | (eval $ac_try) 2>&5 |
| 2175 | ac_status=$? |
| 2176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2177 | (exit $ac_status); }; }; then |
| 2178 | break |
| 2179 | else |
| 2180 | echo "$as_me: failed program was:" >&5 |
| 2181 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2182 | |
| 2183 | fi |
| 2184 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2185 | done |
| 2186 | rm -f conftest* |
| 2187 | if test -n "$ac_declaration"; then |
| 2188 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2189 | echo $ac_declaration >>confdefs.h |
| 2190 | echo '#endif' >>confdefs.h |
| 2191 | fi |
| 2192 | |
| 2193 | else |
| 2194 | echo "$as_me: failed program was:" >&5 |
| 2195 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2196 | |
| 2197 | fi |
| 2198 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2199 | ac_ext=c |
| 2200 | ac_cpp='$CPP $CPPFLAGS' |
| 2201 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2202 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2203 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2204 | |
| 2205 | ac_ext=cc |
| 2206 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 2207 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2208 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2209 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 2210 | if test -n "$ac_tool_prefix"; then |
| 2211 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
| 2212 | do |
| 2213 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2214 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2215 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2216 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2217 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 2218 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 2219 | else |
| 2220 | if test -n "$CXX"; then |
| 2221 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 2222 | else |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 2223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2224 | for as_dir in $PATH |
| 2225 | do |
| 2226 | IFS=$as_save_IFS |
| 2227 | test -z "$as_dir" && as_dir=. |
| 2228 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2229 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2230 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 2231 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2232 | break 2 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 2233 | fi |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 2234 | done |
| 2235 | done |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 2236 | |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 2237 | fi |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 2238 | fi |
| 2239 | CXX=$ac_cv_prog_CXX |
| 2240 | if test -n "$CXX"; then |
| 2241 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 2242 | echo "${ECHO_T}$CXX" >&6 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 2243 | else |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 2244 | echo "$as_me:$LINENO: result: no" >&5 |
| 2245 | echo "${ECHO_T}no" >&6 |
| 2246 | fi |
| 2247 | |
| 2248 | test -n "$CXX" && break |
| 2249 | done |
| 2250 | fi |
| 2251 | if test -z "$CXX"; then |
| 2252 | ac_ct_CXX=$CXX |
| 2253 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
| 2254 | do |
| 2255 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2256 | set dummy $ac_prog; ac_word=$2 |
| 2257 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2258 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2259 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 2260 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2261 | else |
| 2262 | if test -n "$ac_ct_CXX"; then |
| 2263 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 2264 | else |
| 2265 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2266 | for as_dir in $PATH |
| 2267 | do |
| 2268 | IFS=$as_save_IFS |
| 2269 | test -z "$as_dir" && as_dir=. |
| 2270 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2271 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2272 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 2273 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2274 | break 2 |
| 2275 | fi |
| 2276 | done |
| 2277 | done |
| 2278 | |
| 2279 | fi |
| 2280 | fi |
| 2281 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 2282 | if test -n "$ac_ct_CXX"; then |
| 2283 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 2284 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
| 2285 | else |
| 2286 | echo "$as_me:$LINENO: result: no" >&5 |
| 2287 | echo "${ECHO_T}no" >&6 |
| 2288 | fi |
| 2289 | |
| 2290 | test -n "$ac_ct_CXX" && break |
| 2291 | done |
| 2292 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
| 2293 | |
| 2294 | CXX=$ac_ct_CXX |
| 2295 | fi |
| 2296 | |
| 2297 | |
| 2298 | # Provide some information about the compiler. |
| 2299 | echo "$as_me:$LINENO:" \ |
| 2300 | "checking for C++ compiler version" >&5 |
| 2301 | ac_compiler=`set X $ac_compile; echo $2` |
| 2302 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 2303 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 2304 | ac_status=$? |
| 2305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2306 | (exit $ac_status); } |
| 2307 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 2308 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 2309 | ac_status=$? |
| 2310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2311 | (exit $ac_status); } |
| 2312 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2313 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2314 | ac_status=$? |
| 2315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2316 | (exit $ac_status); } |
| 2317 | |
| 2318 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 2319 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
| 2320 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 2321 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2322 | else |
| 2323 | cat >conftest.$ac_ext <<_ACEOF |
| 2324 | /* confdefs.h. */ |
| 2325 | _ACEOF |
| 2326 | cat confdefs.h >>conftest.$ac_ext |
| 2327 | cat >>conftest.$ac_ext <<_ACEOF |
| 2328 | /* end confdefs.h. */ |
| 2329 | |
| 2330 | int |
| 2331 | main () |
| 2332 | { |
| 2333 | #ifndef __GNUC__ |
| 2334 | choke me |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 2335 | #endif |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 2336 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 2337 | ; |
| 2338 | return 0; |
| 2339 | } |
| 2340 | _ACEOF |
| 2341 | rm -f conftest.$ac_objext |
| 2342 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2343 | (eval $ac_compile) 2>conftest.er1 |
| 2344 | ac_status=$? |
| 2345 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2346 | rm -f conftest.er1 |
| 2347 | cat conftest.err >&5 |
| 2348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2349 | (exit $ac_status); } && |
| 2350 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 2351 | || test ! -s conftest.err' |
| 2352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2353 | (eval $ac_try) 2>&5 |
| 2354 | ac_status=$? |
| 2355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2356 | (exit $ac_status); }; } && |
| 2357 | { ac_try='test -s conftest.$ac_objext' |
| 2358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2359 | (eval $ac_try) 2>&5 |
| 2360 | ac_status=$? |
| 2361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2362 | (exit $ac_status); }; }; then |
| 2363 | ac_compiler_gnu=yes |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 2364 | else |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 2365 | echo "$as_me: failed program was:" >&5 |
| 2366 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2367 | |
| 2368 | ac_compiler_gnu=no |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 2369 | fi |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 2370 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2371 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 2372 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 2373 | fi |
| 2374 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 2375 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
| 2376 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 2377 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 2378 | ac_save_CXXFLAGS=$CXXFLAGS |
| 2379 | CXXFLAGS="-g" |
| 2380 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 2381 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
| 2382 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 2383 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 2384 | else |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 2385 | cat >conftest.$ac_ext <<_ACEOF |
| 2386 | /* confdefs.h. */ |
| 2387 | _ACEOF |
| 2388 | cat confdefs.h >>conftest.$ac_ext |
| 2389 | cat >>conftest.$ac_ext <<_ACEOF |
| 2390 | /* end confdefs.h. */ |
| 2391 | |
| 2392 | int |
| 2393 | main () |
| 2394 | { |
| 2395 | |
| 2396 | ; |
| 2397 | return 0; |
| 2398 | } |
| 2399 | _ACEOF |
| 2400 | rm -f conftest.$ac_objext |
| 2401 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2402 | (eval $ac_compile) 2>conftest.er1 |
| 2403 | ac_status=$? |
| 2404 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2405 | rm -f conftest.er1 |
| 2406 | cat conftest.err >&5 |
| 2407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2408 | (exit $ac_status); } && |
| 2409 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 2410 | || test ! -s conftest.err' |
| 2411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2412 | (eval $ac_try) 2>&5 |
| 2413 | ac_status=$? |
| 2414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2415 | (exit $ac_status); }; } && |
| 2416 | { ac_try='test -s conftest.$ac_objext' |
| 2417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2418 | (eval $ac_try) 2>&5 |
| 2419 | ac_status=$? |
| 2420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2421 | (exit $ac_status); }; }; then |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 2422 | ac_cv_prog_cxx_g=yes |
| 2423 | else |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 2424 | echo "$as_me: failed program was:" >&5 |
| 2425 | sed 's/^/| /' conftest.$ac_ext >&5 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 2426 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 2427 | ac_cv_prog_cxx_g=no |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 2428 | fi |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 2429 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2430 | fi |
| 2431 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 2432 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 2433 | if test "$ac_test_CXXFLAGS" = set; then |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 2434 | CXXFLAGS=$ac_save_CXXFLAGS |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 2435 | elif test $ac_cv_prog_cxx_g = yes; then |
| 2436 | if test "$GXX" = yes; then |
| 2437 | CXXFLAGS="-g -O2" |
| 2438 | else |
| 2439 | CXXFLAGS="-g" |
| 2440 | fi |
| 2441 | else |
| 2442 | if test "$GXX" = yes; then |
| 2443 | CXXFLAGS="-O2" |
| 2444 | else |
| 2445 | CXXFLAGS= |
| 2446 | fi |
| 2447 | fi |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 2448 | for ac_declaration in \ |
| 2449 | '' \ |
| 2450 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2451 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2452 | 'extern "C" void exit (int) throw ();' \ |
| 2453 | 'extern "C" void exit (int);' \ |
| 2454 | 'void exit (int);' |
| 2455 | do |
| 2456 | cat >conftest.$ac_ext <<_ACEOF |
| 2457 | /* confdefs.h. */ |
| 2458 | _ACEOF |
| 2459 | cat confdefs.h >>conftest.$ac_ext |
| 2460 | cat >>conftest.$ac_ext <<_ACEOF |
| 2461 | /* end confdefs.h. */ |
| 2462 | $ac_declaration |
| 2463 | #include <stdlib.h> |
| 2464 | int |
| 2465 | main () |
| 2466 | { |
| 2467 | exit (42); |
| 2468 | ; |
| 2469 | return 0; |
| 2470 | } |
| 2471 | _ACEOF |
| 2472 | rm -f conftest.$ac_objext |
| 2473 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2474 | (eval $ac_compile) 2>conftest.er1 |
| 2475 | ac_status=$? |
| 2476 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2477 | rm -f conftest.er1 |
| 2478 | cat conftest.err >&5 |
| 2479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2480 | (exit $ac_status); } && |
| 2481 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 2482 | || test ! -s conftest.err' |
| 2483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2484 | (eval $ac_try) 2>&5 |
| 2485 | ac_status=$? |
| 2486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2487 | (exit $ac_status); }; } && |
| 2488 | { ac_try='test -s conftest.$ac_objext' |
| 2489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2490 | (eval $ac_try) 2>&5 |
| 2491 | ac_status=$? |
| 2492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2493 | (exit $ac_status); }; }; then |
| 2494 | : |
| 2495 | else |
| 2496 | echo "$as_me: failed program was:" >&5 |
| 2497 | sed 's/^/| /' conftest.$ac_ext >&5 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 2498 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 2499 | continue |
| 2500 | fi |
| 2501 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 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 | $ac_declaration |
| 2509 | int |
| 2510 | main () |
| 2511 | { |
| 2512 | exit (42); |
| 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_cxx_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 | break |
| 2540 | else |
| 2541 | echo "$as_me: failed program was:" >&5 |
| 2542 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2543 | |
| 2544 | fi |
| 2545 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2546 | done |
| 2547 | rm -f conftest* |
| 2548 | if test -n "$ac_declaration"; then |
| 2549 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2550 | echo $ac_declaration >>confdefs.h |
| 2551 | echo '#endif' >>confdefs.h |
| 2552 | fi |
| 2553 | |
| 2554 | ac_ext=c |
| 2555 | ac_cpp='$CPP $CPPFLAGS' |
| 2556 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2557 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2558 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2559 | |
| 2560 | if test -n "$ac_tool_prefix"; then |
| 2561 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 2562 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 2563 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2564 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2565 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 2566 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 2567 | else |
| 2568 | if test -n "$RANLIB"; then |
| 2569 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 2570 | else |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 2571 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2572 | for as_dir in $PATH |
| 2573 | do |
| 2574 | IFS=$as_save_IFS |
| 2575 | test -z "$as_dir" && as_dir=. |
| 2576 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2577 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2578 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 2579 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2580 | break 2 |
| 2581 | fi |
| 2582 | done |
| 2583 | done |
| 2584 | |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 2585 | fi |
| 2586 | fi |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 2587 | RANLIB=$ac_cv_prog_RANLIB |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 2588 | if test -n "$RANLIB"; then |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 2589 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 2590 | echo "${ECHO_T}$RANLIB" >&6 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 2591 | else |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 2592 | echo "$as_me:$LINENO: result: no" >&5 |
| 2593 | echo "${ECHO_T}no" >&6 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 2594 | fi |
| 2595 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 2596 | fi |
| 2597 | if test -z "$ac_cv_prog_RANLIB"; then |
| 2598 | ac_ct_RANLIB=$RANLIB |
| 2599 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 2600 | set dummy ranlib; ac_word=$2 |
| 2601 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2602 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2603 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 2604 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 2605 | else |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 2606 | if test -n "$ac_ct_RANLIB"; then |
| 2607 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 2608 | else |
| 2609 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2610 | for as_dir in $PATH |
| 2611 | do |
| 2612 | IFS=$as_save_IFS |
| 2613 | test -z "$as_dir" && as_dir=. |
| 2614 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2615 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2616 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 2617 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2618 | break 2 |
| 2619 | fi |
| 2620 | done |
| 2621 | done |
| 2622 | |
| 2623 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 2624 | fi |
| 2625 | fi |
| 2626 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 2627 | if test -n "$ac_ct_RANLIB"; then |
| 2628 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 2629 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 2630 | else |
| 2631 | echo "$as_me:$LINENO: result: no" >&5 |
| 2632 | echo "${ECHO_T}no" >&6 |
| 2633 | fi |
| 2634 | |
| 2635 | RANLIB=$ac_ct_RANLIB |
| 2636 | else |
| 2637 | RANLIB="$ac_cv_prog_RANLIB" |
| 2638 | fi |
| 2639 | |
| 2640 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 2641 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
| 2642 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
| 2643 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
| 2644 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2645 | else |
| 2646 | cat >conftest.make <<\_ACEOF |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 2647 | all: |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 2648 | @echo 'ac_maketemp="$(MAKE)"' |
| 2649 | _ACEOF |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 2650 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 2651 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 2652 | if test -n "$ac_maketemp"; then |
| 2653 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 2654 | else |
| 2655 | eval ac_cv_prog_make_${ac_make}_set=no |
| 2656 | fi |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 2657 | rm -f conftest.make |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 2658 | fi |
| 2659 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 2660 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2661 | echo "${ECHO_T}yes" >&6 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 2662 | SET_MAKE= |
| 2663 | else |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 2664 | echo "$as_me:$LINENO: result: no" >&5 |
| 2665 | echo "${ECHO_T}no" >&6 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 2666 | SET_MAKE="MAKE=${MAKE-make}" |
| 2667 | fi |
| 2668 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 2669 | ac_ext=cc |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 2670 | ac_cpp='$CXXCPP $CPPFLAGS' |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 2671 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2672 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2673 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 2674 | |
| 2675 | |
| 2676 | case "`(uname -sr) 2>/dev/null`" in |
| 2677 | "SunOS 5"*) |
| 2678 | SOLARIS=yes |
| 2679 | USE_MITSHM=yes |
| 2680 | ;; |
| 2681 | "Linux"*) |
| 2682 | LINUX=yes |
| 2683 | USE_MITSHM=yes |
| 2684 | ;; |
| 2685 | esac |
| 2686 | |
| 2687 | if test "$USE_MITSHM" = yes; then |
| 2688 | MITSHM_CPPFLAGS="-DMITSHM" |
| 2689 | fi |
| 2690 | |
| 2691 | |
| 2692 | if test "$GCC" = yes; then |
| 2693 | CFLAGS="$CFLAGS -Wall" |
| 2694 | if test "$SOLARIS" = yes; then |
| 2695 | CFLAGS="$CFLAGS -Wno-unknown-pragmas -Wno-implicit-int" |
| 2696 | fi |
| 2697 | fi |
| 2698 | if test "$GXX" = yes; then |
| 2699 | CXXFLAGS="$CXXFLAGS -Wall" |
| 2700 | if test "$SOLARIS" = yes; then |
| 2701 | CXXFLAGS="$CXXFLAGS -Wno-unknown-pragmas -Wno-implicit-int -fpermissive" |
| 2702 | fi |
| 2703 | fi |
| 2704 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 2705 | |
| 2706 | ac_ext=cc |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 2707 | ac_cpp='$CXXCPP $CPPFLAGS' |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 2708 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2709 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2710 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 2711 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
| 2712 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
| 2713 | if test -z "$CXXCPP"; then |
| 2714 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
| 2715 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2716 | else |
| 2717 | # Double quotes because CXXCPP needs to be expanded |
| 2718 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 2719 | do |
| 2720 | ac_preproc_ok=false |
| 2721 | for ac_cxx_preproc_warn_flag in '' yes |
| 2722 | do |
| 2723 | # Use a header file that comes with gcc, so configuring glibc |
| 2724 | # with a fresh cross-compiler works. |
| 2725 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2726 | # <limits.h> exists even on freestanding compilers. |
| 2727 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2728 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2729 | cat >conftest.$ac_ext <<_ACEOF |
| 2730 | /* confdefs.h. */ |
| 2731 | _ACEOF |
| 2732 | cat confdefs.h >>conftest.$ac_ext |
| 2733 | cat >>conftest.$ac_ext <<_ACEOF |
| 2734 | /* end confdefs.h. */ |
| 2735 | #ifdef __STDC__ |
| 2736 | # include <limits.h> |
| 2737 | #else |
| 2738 | # include <assert.h> |
| 2739 | #endif |
| 2740 | Syntax error |
| 2741 | _ACEOF |
| 2742 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2743 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2744 | ac_status=$? |
| 2745 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2746 | rm -f conftest.er1 |
| 2747 | cat conftest.err >&5 |
| 2748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2749 | (exit $ac_status); } >/dev/null; then |
| 2750 | if test -s conftest.err; then |
| 2751 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 2752 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 2753 | else |
| 2754 | ac_cpp_err= |
| 2755 | fi |
| 2756 | else |
| 2757 | ac_cpp_err=yes |
| 2758 | fi |
| 2759 | if test -z "$ac_cpp_err"; then |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 2760 | : |
| 2761 | else |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 2762 | echo "$as_me: failed program was:" >&5 |
| 2763 | sed 's/^/| /' conftest.$ac_ext >&5 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 2764 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 2765 | # Broken: fails on valid input. |
| 2766 | continue |
| 2767 | fi |
| 2768 | rm -f conftest.err conftest.$ac_ext |
| 2769 | |
| 2770 | # OK, works on sane cases. Now check whether non-existent headers |
| 2771 | # can be detected and how. |
| 2772 | cat >conftest.$ac_ext <<_ACEOF |
| 2773 | /* confdefs.h. */ |
| 2774 | _ACEOF |
| 2775 | cat confdefs.h >>conftest.$ac_ext |
| 2776 | cat >>conftest.$ac_ext <<_ACEOF |
| 2777 | /* end confdefs.h. */ |
| 2778 | #include <ac_nonexistent.h> |
| 2779 | _ACEOF |
| 2780 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2781 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2782 | ac_status=$? |
| 2783 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2784 | rm -f conftest.er1 |
| 2785 | cat conftest.err >&5 |
| 2786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2787 | (exit $ac_status); } >/dev/null; then |
| 2788 | if test -s conftest.err; then |
| 2789 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 2790 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 2791 | else |
| 2792 | ac_cpp_err= |
| 2793 | fi |
| 2794 | else |
| 2795 | ac_cpp_err=yes |
| 2796 | fi |
| 2797 | if test -z "$ac_cpp_err"; then |
| 2798 | # Broken: success on invalid input. |
| 2799 | continue |
| 2800 | else |
| 2801 | echo "$as_me: failed program was:" >&5 |
| 2802 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2803 | |
| 2804 | # Passes both tests. |
| 2805 | ac_preproc_ok=: |
| 2806 | break |
| 2807 | fi |
| 2808 | rm -f conftest.err conftest.$ac_ext |
| 2809 | |
| 2810 | done |
| 2811 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2812 | rm -f conftest.err conftest.$ac_ext |
| 2813 | if $ac_preproc_ok; then |
| 2814 | break |
| 2815 | fi |
| 2816 | |
| 2817 | done |
| 2818 | ac_cv_prog_CXXCPP=$CXXCPP |
| 2819 | |
| 2820 | fi |
| 2821 | CXXCPP=$ac_cv_prog_CXXCPP |
| 2822 | else |
| 2823 | ac_cv_prog_CXXCPP=$CXXCPP |
| 2824 | fi |
| 2825 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
| 2826 | echo "${ECHO_T}$CXXCPP" >&6 |
| 2827 | ac_preproc_ok=false |
| 2828 | for ac_cxx_preproc_warn_flag in '' yes |
| 2829 | do |
| 2830 | # Use a header file that comes with gcc, so configuring glibc |
| 2831 | # with a fresh cross-compiler works. |
| 2832 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2833 | # <limits.h> exists even on freestanding compilers. |
| 2834 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2835 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2836 | cat >conftest.$ac_ext <<_ACEOF |
| 2837 | /* confdefs.h. */ |
| 2838 | _ACEOF |
| 2839 | cat confdefs.h >>conftest.$ac_ext |
| 2840 | cat >>conftest.$ac_ext <<_ACEOF |
| 2841 | /* end confdefs.h. */ |
| 2842 | #ifdef __STDC__ |
| 2843 | # include <limits.h> |
| 2844 | #else |
| 2845 | # include <assert.h> |
| 2846 | #endif |
| 2847 | Syntax error |
| 2848 | _ACEOF |
| 2849 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2850 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2851 | ac_status=$? |
| 2852 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2853 | rm -f conftest.er1 |
| 2854 | cat conftest.err >&5 |
| 2855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2856 | (exit $ac_status); } >/dev/null; then |
| 2857 | if test -s conftest.err; then |
| 2858 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 2859 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 2860 | else |
| 2861 | ac_cpp_err= |
| 2862 | fi |
| 2863 | else |
| 2864 | ac_cpp_err=yes |
| 2865 | fi |
| 2866 | if test -z "$ac_cpp_err"; then |
| 2867 | : |
| 2868 | else |
| 2869 | echo "$as_me: failed program was:" >&5 |
| 2870 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2871 | |
| 2872 | # Broken: fails on valid input. |
| 2873 | continue |
| 2874 | fi |
| 2875 | rm -f conftest.err conftest.$ac_ext |
| 2876 | |
| 2877 | # OK, works on sane cases. Now check whether non-existent headers |
| 2878 | # can be detected and how. |
| 2879 | cat >conftest.$ac_ext <<_ACEOF |
| 2880 | /* confdefs.h. */ |
| 2881 | _ACEOF |
| 2882 | cat confdefs.h >>conftest.$ac_ext |
| 2883 | cat >>conftest.$ac_ext <<_ACEOF |
| 2884 | /* end confdefs.h. */ |
| 2885 | #include <ac_nonexistent.h> |
| 2886 | _ACEOF |
| 2887 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2888 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2889 | ac_status=$? |
| 2890 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2891 | rm -f conftest.er1 |
| 2892 | cat conftest.err >&5 |
| 2893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2894 | (exit $ac_status); } >/dev/null; then |
| 2895 | if test -s conftest.err; then |
| 2896 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 2897 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 2898 | else |
| 2899 | ac_cpp_err= |
| 2900 | fi |
| 2901 | else |
| 2902 | ac_cpp_err=yes |
| 2903 | fi |
| 2904 | if test -z "$ac_cpp_err"; then |
| 2905 | # Broken: success on invalid input. |
| 2906 | continue |
| 2907 | else |
| 2908 | echo "$as_me: failed program was:" >&5 |
| 2909 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2910 | |
| 2911 | # Passes both tests. |
| 2912 | ac_preproc_ok=: |
| 2913 | break |
| 2914 | fi |
| 2915 | rm -f conftest.err conftest.$ac_ext |
| 2916 | |
| 2917 | done |
| 2918 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2919 | rm -f conftest.err conftest.$ac_ext |
| 2920 | if $ac_preproc_ok; then |
| 2921 | : |
| 2922 | else |
| 2923 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 2924 | See \`config.log' for more details." >&5 |
| 2925 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 2926 | See \`config.log' for more details." >&2;} |
| 2927 | { (exit 1); exit 1; }; } |
| 2928 | fi |
| 2929 | |
| 2930 | ac_ext=cc |
| 2931 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 2932 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2933 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2934 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 2935 | |
| 2936 | |
| 2937 | echo "$as_me:$LINENO: checking for X" >&5 |
| 2938 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
| 2939 | |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 2940 | |
| 2941 | # Check whether --with-x or --without-x was given. |
| 2942 | if test "${with_x+set}" = set; then |
| 2943 | withval="$with_x" |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 2944 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 2945 | fi; |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 2946 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
| 2947 | if test "x$with_x" = xno; then |
| 2948 | # The user explicitly disabled X. |
| 2949 | have_x=disabled |
| 2950 | else |
| 2951 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then |
| 2952 | # Both variables are already set. |
| 2953 | have_x=yes |
| 2954 | else |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 2955 | if test "${ac_cv_have_x+set}" = set; then |
| 2956 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 2957 | else |
| 2958 | # One or both of the vars are not set, and there is no cached value. |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 2959 | ac_x_includes=no ac_x_libraries=no |
| 2960 | rm -fr conftest.dir |
| 2961 | if mkdir conftest.dir; then |
| 2962 | cd conftest.dir |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 2963 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 2964 | cat >Imakefile <<'_ACEOF' |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 2965 | acfindx: |
| 2966 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 2967 | _ACEOF |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 2968 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
| 2969 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 2970 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
| 2971 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
| 2972 | for ac_extension in a so sl; do |
| 2973 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 2974 | test -f $ac_im_libdir/libX11.$ac_extension; then |
| 2975 | ac_im_usrlibdir=$ac_im_libdir; break |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 2976 | fi |
| 2977 | done |
| 2978 | # Screen out bogus values from the imake configuration. They are |
| 2979 | # bogus both because they are the default anyway, and because |
| 2980 | # using them would break gcc on systems where it needs fixed includes. |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 2981 | case $ac_im_incroot in |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 2982 | /usr/include) ;; |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 2983 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 2984 | esac |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 2985 | case $ac_im_usrlibdir in |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 2986 | /usr/lib | /lib) ;; |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 2987 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 2988 | esac |
| 2989 | fi |
| 2990 | cd .. |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 2991 | rm -fr conftest.dir |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 2992 | fi |
| 2993 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 2994 | # Standard set of common directories for X headers. |
| 2995 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 2996 | ac_x_header_dirs=' |
| 2997 | /usr/X11/include |
| 2998 | /usr/X11R6/include |
| 2999 | /usr/X11R5/include |
| 3000 | /usr/X11R4/include |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3001 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3002 | /usr/include/X11 |
| 3003 | /usr/include/X11R6 |
| 3004 | /usr/include/X11R5 |
| 3005 | /usr/include/X11R4 |
| 3006 | |
| 3007 | /usr/local/X11/include |
| 3008 | /usr/local/X11R6/include |
| 3009 | /usr/local/X11R5/include |
| 3010 | /usr/local/X11R4/include |
| 3011 | |
| 3012 | /usr/local/include/X11 |
| 3013 | /usr/local/include/X11R6 |
| 3014 | /usr/local/include/X11R5 |
| 3015 | /usr/local/include/X11R4 |
| 3016 | |
| 3017 | /usr/X386/include |
| 3018 | /usr/x386/include |
| 3019 | /usr/XFree86/include/X11 |
| 3020 | |
| 3021 | /usr/include |
| 3022 | /usr/local/include |
| 3023 | /usr/unsupported/include |
| 3024 | /usr/athena/include |
| 3025 | /usr/local/x11r5/include |
| 3026 | /usr/lpp/Xamples/include |
| 3027 | |
| 3028 | /usr/openwin/include |
| 3029 | /usr/openwin/share/include' |
| 3030 | |
| 3031 | if test "$ac_x_includes" = no; then |
| 3032 | # Guess where to find include files, by looking for Intrinsic.h. |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3033 | # First, try using that file with no special directory specified. |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3034 | cat >conftest.$ac_ext <<_ACEOF |
| 3035 | /* confdefs.h. */ |
| 3036 | _ACEOF |
| 3037 | cat confdefs.h >>conftest.$ac_ext |
| 3038 | cat >>conftest.$ac_ext <<_ACEOF |
| 3039 | /* end confdefs.h. */ |
| 3040 | #include <X11/Intrinsic.h> |
| 3041 | _ACEOF |
| 3042 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3043 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3044 | ac_status=$? |
| 3045 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3046 | rm -f conftest.er1 |
| 3047 | cat conftest.err >&5 |
| 3048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3049 | (exit $ac_status); } >/dev/null; then |
| 3050 | if test -s conftest.err; then |
| 3051 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 3052 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 3053 | else |
| 3054 | ac_cpp_err= |
| 3055 | fi |
| 3056 | else |
| 3057 | ac_cpp_err=yes |
| 3058 | fi |
| 3059 | if test -z "$ac_cpp_err"; then |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3060 | # We can compile using X headers with no special include directory. |
| 3061 | ac_x_includes= |
| 3062 | else |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3063 | echo "$as_me: failed program was:" >&5 |
| 3064 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3065 | |
| 3066 | for ac_dir in $ac_x_header_dirs; do |
| 3067 | if test -r "$ac_dir/X11/Intrinsic.h"; then |
| 3068 | ac_x_includes=$ac_dir |
| 3069 | break |
| 3070 | fi |
| 3071 | done |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3072 | fi |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3073 | rm -f conftest.err conftest.$ac_ext |
| 3074 | fi # $ac_x_includes = no |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3075 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3076 | if test "$ac_x_libraries" = no; then |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3077 | # Check for the libraries. |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3078 | # See if we find them without any special options. |
| 3079 | # Don't add to $LIBS permanently. |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3080 | ac_save_LIBS=$LIBS |
| 3081 | LIBS="-lXt $LIBS" |
| 3082 | cat >conftest.$ac_ext <<_ACEOF |
| 3083 | /* confdefs.h. */ |
| 3084 | _ACEOF |
| 3085 | cat confdefs.h >>conftest.$ac_ext |
| 3086 | cat >>conftest.$ac_ext <<_ACEOF |
| 3087 | /* end confdefs.h. */ |
| 3088 | #include <X11/Intrinsic.h> |
| 3089 | int |
| 3090 | main () |
| 3091 | { |
| 3092 | XtMalloc (0) |
| 3093 | ; |
| 3094 | return 0; |
| 3095 | } |
| 3096 | _ACEOF |
| 3097 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3098 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3099 | (eval $ac_link) 2>conftest.er1 |
| 3100 | ac_status=$? |
| 3101 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3102 | rm -f conftest.er1 |
| 3103 | cat conftest.err >&5 |
| 3104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3105 | (exit $ac_status); } && |
| 3106 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 3107 | || test ! -s conftest.err' |
| 3108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3109 | (eval $ac_try) 2>&5 |
| 3110 | ac_status=$? |
| 3111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3112 | (exit $ac_status); }; } && |
| 3113 | { ac_try='test -s conftest$ac_exeext' |
| 3114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3115 | (eval $ac_try) 2>&5 |
| 3116 | ac_status=$? |
| 3117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3118 | (exit $ac_status); }; }; then |
| 3119 | LIBS=$ac_save_LIBS |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3120 | # We can link X programs with no special library path. |
| 3121 | ac_x_libraries= |
| 3122 | else |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3123 | echo "$as_me: failed program was:" >&5 |
| 3124 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3125 | |
| 3126 | LIBS=$ac_save_LIBS |
| 3127 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3128 | do |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3129 | # Don't even attempt the hair of trying to link an X program! |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3130 | for ac_extension in a so sl; do |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3131 | if test -r $ac_dir/libXt.$ac_extension; then |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3132 | ac_x_libraries=$ac_dir |
| 3133 | break 2 |
| 3134 | fi |
| 3135 | done |
| 3136 | done |
| 3137 | fi |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3138 | rm -f conftest.err conftest.$ac_objext \ |
| 3139 | conftest$ac_exeext conftest.$ac_ext |
| 3140 | fi # $ac_x_libraries = no |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3141 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3142 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3143 | # Didn't find X anywhere. Cache the known absence of X. |
| 3144 | ac_cv_have_x="have_x=no" |
| 3145 | else |
| 3146 | # Record where we found X for the cache. |
| 3147 | ac_cv_have_x="have_x=yes \ |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3148 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3149 | fi |
| 3150 | fi |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3151 | |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3152 | fi |
| 3153 | eval "$ac_cv_have_x" |
| 3154 | fi # $with_x != no |
| 3155 | |
| 3156 | if test "$have_x" != yes; then |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3157 | echo "$as_me:$LINENO: result: $have_x" >&5 |
| 3158 | echo "${ECHO_T}$have_x" >&6 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3159 | no_x=yes |
| 3160 | else |
| 3161 | # If each of the values was on the command line, it overrides each guess. |
| 3162 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 3163 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
| 3164 | # Update the cache value to reflect the command line values. |
| 3165 | ac_cv_have_x="have_x=yes \ |
| 3166 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3167 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
| 3168 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3169 | fi |
| 3170 | |
| 3171 | if test "$no_x" = yes; then |
| 3172 | # Not all programs may use this symbol, but it does not hurt to define it. |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3173 | |
| 3174 | cat >>confdefs.h <<\_ACEOF |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3175 | #define X_DISPLAY_MISSING 1 |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3176 | _ACEOF |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3177 | |
| 3178 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
| 3179 | else |
| 3180 | if test -n "$x_includes"; then |
| 3181 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 3182 | fi |
| 3183 | |
| 3184 | # It would also be nice to do this for all -L options, not just this one. |
| 3185 | if test -n "$x_libraries"; then |
| 3186 | X_LIBS="$X_LIBS -L$x_libraries" |
| 3187 | # For Solaris; some versions of Sun CC require a space after -R and |
| 3188 | # others require no space. Words are not sufficient . . . . |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3189 | case `(uname -sr) 2>/dev/null` in |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3190 | "SunOS 5"*) |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3191 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
| 3192 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 |
| 3193 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
| 3194 | cat >conftest.$ac_ext <<_ACEOF |
| 3195 | /* confdefs.h. */ |
| 3196 | _ACEOF |
| 3197 | cat confdefs.h >>conftest.$ac_ext |
| 3198 | cat >>conftest.$ac_ext <<_ACEOF |
| 3199 | /* end confdefs.h. */ |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3200 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3201 | int |
| 3202 | main () |
| 3203 | { |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3204 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3205 | ; |
| 3206 | return 0; |
| 3207 | } |
| 3208 | _ACEOF |
| 3209 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3210 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3211 | (eval $ac_link) 2>conftest.er1 |
| 3212 | ac_status=$? |
| 3213 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3214 | rm -f conftest.er1 |
| 3215 | cat conftest.err >&5 |
| 3216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3217 | (exit $ac_status); } && |
| 3218 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 3219 | || test ! -s conftest.err' |
| 3220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3221 | (eval $ac_try) 2>&5 |
| 3222 | ac_status=$? |
| 3223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3224 | (exit $ac_status); }; } && |
| 3225 | { ac_try='test -s conftest$ac_exeext' |
| 3226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3227 | (eval $ac_try) 2>&5 |
| 3228 | ac_status=$? |
| 3229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3230 | (exit $ac_status); }; }; then |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3231 | ac_R_nospace=yes |
| 3232 | else |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3233 | echo "$as_me: failed program was:" >&5 |
| 3234 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3235 | |
| 3236 | ac_R_nospace=no |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3237 | fi |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3238 | rm -f conftest.err conftest.$ac_objext \ |
| 3239 | conftest$ac_exeext conftest.$ac_ext |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3240 | if test $ac_R_nospace = yes; then |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3241 | echo "$as_me:$LINENO: result: no" >&5 |
| 3242 | echo "${ECHO_T}no" >&6 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3243 | X_LIBS="$X_LIBS -R$x_libraries" |
| 3244 | else |
| 3245 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3246 | cat >conftest.$ac_ext <<_ACEOF |
| 3247 | /* confdefs.h. */ |
| 3248 | _ACEOF |
| 3249 | cat confdefs.h >>conftest.$ac_ext |
| 3250 | cat >>conftest.$ac_ext <<_ACEOF |
| 3251 | /* end confdefs.h. */ |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3252 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3253 | int |
| 3254 | main () |
| 3255 | { |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3256 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3257 | ; |
| 3258 | return 0; |
| 3259 | } |
| 3260 | _ACEOF |
| 3261 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3262 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3263 | (eval $ac_link) 2>conftest.er1 |
| 3264 | ac_status=$? |
| 3265 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3266 | rm -f conftest.er1 |
| 3267 | cat conftest.err >&5 |
| 3268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3269 | (exit $ac_status); } && |
| 3270 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 3271 | || test ! -s conftest.err' |
| 3272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3273 | (eval $ac_try) 2>&5 |
| 3274 | ac_status=$? |
| 3275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3276 | (exit $ac_status); }; } && |
| 3277 | { ac_try='test -s conftest$ac_exeext' |
| 3278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3279 | (eval $ac_try) 2>&5 |
| 3280 | ac_status=$? |
| 3281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3282 | (exit $ac_status); }; }; then |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3283 | ac_R_space=yes |
| 3284 | else |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3285 | echo "$as_me: failed program was:" >&5 |
| 3286 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3287 | |
| 3288 | ac_R_space=no |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3289 | fi |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3290 | rm -f conftest.err conftest.$ac_objext \ |
| 3291 | conftest$ac_exeext conftest.$ac_ext |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3292 | if test $ac_R_space = yes; then |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3293 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3294 | echo "${ECHO_T}yes" >&6 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3295 | X_LIBS="$X_LIBS -R $x_libraries" |
| 3296 | else |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3297 | echo "$as_me:$LINENO: result: neither works" >&5 |
| 3298 | echo "${ECHO_T}neither works" >&6 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3299 | fi |
| 3300 | fi |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3301 | LIBS=$ac_xsave_LIBS |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3302 | esac |
| 3303 | fi |
| 3304 | |
| 3305 | # Check for system-dependent libraries X programs must link with. |
| 3306 | # Do this before checking for the system-independent R6 libraries |
| 3307 | # (-lICE), since we may need -lsocket or whatever for X linking. |
| 3308 | |
| 3309 | if test "$ISC" = yes; then |
| 3310 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
| 3311 | else |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3312 | # Martyn Johnson says this is needed for Ultrix, if the X |
| 3313 | # libraries were built with DECnet support. And Karl Berry says |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3314 | # the Alpha needs dnet_stub (dnet does not exist). |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3315 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
| 3316 | cat >conftest.$ac_ext <<_ACEOF |
| 3317 | /* confdefs.h. */ |
| 3318 | _ACEOF |
| 3319 | cat confdefs.h >>conftest.$ac_ext |
| 3320 | cat >>conftest.$ac_ext <<_ACEOF |
| 3321 | /* end confdefs.h. */ |
| 3322 | |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3323 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3324 | #ifdef __cplusplus |
| 3325 | extern "C" |
| 3326 | #endif |
| 3327 | /* We use char because int might match the return type of a gcc2 |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3328 | builtin and then its argument prototype would still apply. */ |
| 3329 | char XOpenDisplay (); |
| 3330 | int |
| 3331 | main () |
| 3332 | { |
| 3333 | XOpenDisplay (); |
| 3334 | ; |
| 3335 | return 0; |
| 3336 | } |
| 3337 | _ACEOF |
| 3338 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3339 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3340 | (eval $ac_link) 2>conftest.er1 |
| 3341 | ac_status=$? |
| 3342 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3343 | rm -f conftest.er1 |
| 3344 | cat conftest.err >&5 |
| 3345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3346 | (exit $ac_status); } && |
| 3347 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 3348 | || test ! -s conftest.err' |
| 3349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3350 | (eval $ac_try) 2>&5 |
| 3351 | ac_status=$? |
| 3352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3353 | (exit $ac_status); }; } && |
| 3354 | { ac_try='test -s conftest$ac_exeext' |
| 3355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3356 | (eval $ac_try) 2>&5 |
| 3357 | ac_status=$? |
| 3358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3359 | (exit $ac_status); }; }; then |
| 3360 | : |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3361 | else |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3362 | echo "$as_me: failed program was:" >&5 |
| 3363 | sed 's/^/| /' conftest.$ac_ext >&5 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3364 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3365 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
| 3366 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 |
| 3367 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then |
| 3368 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3369 | else |
| 3370 | ac_check_lib_save_LIBS=$LIBS |
| 3371 | LIBS="-ldnet $LIBS" |
| 3372 | cat >conftest.$ac_ext <<_ACEOF |
| 3373 | /* confdefs.h. */ |
| 3374 | _ACEOF |
| 3375 | cat confdefs.h >>conftest.$ac_ext |
| 3376 | cat >>conftest.$ac_ext <<_ACEOF |
| 3377 | /* end confdefs.h. */ |
| 3378 | |
| 3379 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3380 | #ifdef __cplusplus |
| 3381 | extern "C" |
| 3382 | #endif |
| 3383 | /* We use char because int might match the return type of a gcc2 |
| 3384 | builtin and then its argument prototype would still apply. */ |
| 3385 | char dnet_ntoa (); |
| 3386 | int |
| 3387 | main () |
| 3388 | { |
| 3389 | dnet_ntoa (); |
| 3390 | ; |
| 3391 | return 0; |
| 3392 | } |
| 3393 | _ACEOF |
| 3394 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3395 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3396 | (eval $ac_link) 2>conftest.er1 |
| 3397 | ac_status=$? |
| 3398 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3399 | rm -f conftest.er1 |
| 3400 | cat conftest.err >&5 |
| 3401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3402 | (exit $ac_status); } && |
| 3403 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 3404 | || test ! -s conftest.err' |
| 3405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3406 | (eval $ac_try) 2>&5 |
| 3407 | ac_status=$? |
| 3408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3409 | (exit $ac_status); }; } && |
| 3410 | { ac_try='test -s conftest$ac_exeext' |
| 3411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3412 | (eval $ac_try) 2>&5 |
| 3413 | ac_status=$? |
| 3414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3415 | (exit $ac_status); }; }; then |
| 3416 | ac_cv_lib_dnet_dnet_ntoa=yes |
| 3417 | else |
| 3418 | echo "$as_me: failed program was:" >&5 |
| 3419 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3420 | |
| 3421 | ac_cv_lib_dnet_dnet_ntoa=no |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3422 | fi |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3423 | rm -f conftest.err conftest.$ac_objext \ |
| 3424 | conftest$ac_exeext conftest.$ac_ext |
| 3425 | LIBS=$ac_check_lib_save_LIBS |
| 3426 | fi |
| 3427 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
| 3428 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 |
| 3429 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3430 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3431 | fi |
| 3432 | |
| 3433 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3434 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
| 3435 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 |
| 3436 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then |
| 3437 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3438 | else |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3439 | ac_check_lib_save_LIBS=$LIBS |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3440 | LIBS="-ldnet_stub $LIBS" |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3441 | cat >conftest.$ac_ext <<_ACEOF |
| 3442 | /* confdefs.h. */ |
| 3443 | _ACEOF |
| 3444 | cat confdefs.h >>conftest.$ac_ext |
| 3445 | cat >>conftest.$ac_ext <<_ACEOF |
| 3446 | /* end confdefs.h. */ |
| 3447 | |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3448 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3449 | #ifdef __cplusplus |
| 3450 | extern "C" |
| 3451 | #endif |
| 3452 | /* We use char because int might match the return type of a gcc2 |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3453 | builtin and then its argument prototype would still apply. */ |
| 3454 | char dnet_ntoa (); |
| 3455 | int |
| 3456 | main () |
| 3457 | { |
| 3458 | dnet_ntoa (); |
| 3459 | ; |
| 3460 | return 0; |
| 3461 | } |
| 3462 | _ACEOF |
| 3463 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3464 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3465 | (eval $ac_link) 2>conftest.er1 |
| 3466 | ac_status=$? |
| 3467 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3468 | rm -f conftest.er1 |
| 3469 | cat conftest.err >&5 |
| 3470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3471 | (exit $ac_status); } && |
| 3472 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 3473 | || test ! -s conftest.err' |
| 3474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3475 | (eval $ac_try) 2>&5 |
| 3476 | ac_status=$? |
| 3477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3478 | (exit $ac_status); }; } && |
| 3479 | { ac_try='test -s conftest$ac_exeext' |
| 3480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3481 | (eval $ac_try) 2>&5 |
| 3482 | ac_status=$? |
| 3483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3484 | (exit $ac_status); }; }; then |
| 3485 | ac_cv_lib_dnet_stub_dnet_ntoa=yes |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3486 | else |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3487 | echo "$as_me: failed program was:" >&5 |
| 3488 | sed 's/^/| /' conftest.$ac_ext >&5 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3489 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3490 | ac_cv_lib_dnet_stub_dnet_ntoa=no |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3491 | fi |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3492 | rm -f conftest.err conftest.$ac_objext \ |
| 3493 | conftest$ac_exeext conftest.$ac_ext |
| 3494 | LIBS=$ac_check_lib_save_LIBS |
| 3495 | fi |
| 3496 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 |
| 3497 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 |
| 3498 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3499 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3500 | fi |
| 3501 | |
| 3502 | fi |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3503 | fi |
| 3504 | rm -f conftest.err conftest.$ac_objext \ |
| 3505 | conftest$ac_exeext conftest.$ac_ext |
| 3506 | LIBS="$ac_xsave_LIBS" |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3507 | |
| 3508 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
| 3509 | # to get the SysV transport functions. |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3510 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3511 | # needs -lnsl. |
| 3512 | # The nsl library prevents programs from opening the X display |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3513 | # on Irix 5.2, according to T.E. Dickey. |
| 3514 | # The functions gethostbyname, getservbyname, and inet_addr are |
| 3515 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
| 3516 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
| 3517 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 |
| 3518 | if test "${ac_cv_func_gethostbyname+set}" = set; then |
| 3519 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3520 | else |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3521 | cat >conftest.$ac_ext <<_ACEOF |
| 3522 | /* confdefs.h. */ |
| 3523 | _ACEOF |
| 3524 | cat confdefs.h >>conftest.$ac_ext |
| 3525 | cat >>conftest.$ac_ext <<_ACEOF |
| 3526 | /* end confdefs.h. */ |
| 3527 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
| 3528 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 3529 | #define gethostbyname innocuous_gethostbyname |
| 3530 | |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3531 | /* System header to define __stub macros and hopefully few prototypes, |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3532 | which can conflict with char gethostbyname (); below. |
| 3533 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3534 | <limits.h> exists even on freestanding compilers. */ |
| 3535 | |
| 3536 | #ifdef __STDC__ |
| 3537 | # include <limits.h> |
| 3538 | #else |
| 3539 | # include <assert.h> |
| 3540 | #endif |
| 3541 | |
| 3542 | #undef gethostbyname |
| 3543 | |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3544 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3545 | #ifdef __cplusplus |
| 3546 | extern "C" |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3547 | { |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3548 | #endif |
| 3549 | /* We use char because int might match the return type of a gcc2 |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3550 | builtin and then its argument prototype would still apply. */ |
| 3551 | char gethostbyname (); |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3552 | /* The GNU C library defines this for functions which it implements |
| 3553 | to always fail with ENOSYS. Some functions are actually named |
| 3554 | something starting with __ and the normal name is an alias. */ |
| 3555 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
| 3556 | choke me |
| 3557 | #else |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3558 | char (*f) () = gethostbyname; |
| 3559 | #endif |
| 3560 | #ifdef __cplusplus |
| 3561 | } |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3562 | #endif |
| 3563 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3564 | int |
| 3565 | main () |
| 3566 | { |
| 3567 | return f != gethostbyname; |
| 3568 | ; |
| 3569 | return 0; |
| 3570 | } |
| 3571 | _ACEOF |
| 3572 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3573 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3574 | (eval $ac_link) 2>conftest.er1 |
| 3575 | ac_status=$? |
| 3576 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3577 | rm -f conftest.er1 |
| 3578 | cat conftest.err >&5 |
| 3579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3580 | (exit $ac_status); } && |
| 3581 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 3582 | || test ! -s conftest.err' |
| 3583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3584 | (eval $ac_try) 2>&5 |
| 3585 | ac_status=$? |
| 3586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3587 | (exit $ac_status); }; } && |
| 3588 | { ac_try='test -s conftest$ac_exeext' |
| 3589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3590 | (eval $ac_try) 2>&5 |
| 3591 | ac_status=$? |
| 3592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3593 | (exit $ac_status); }; }; then |
| 3594 | ac_cv_func_gethostbyname=yes |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3595 | else |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3596 | echo "$as_me: failed program was:" >&5 |
| 3597 | sed 's/^/| /' conftest.$ac_ext >&5 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3598 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3599 | ac_cv_func_gethostbyname=no |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3600 | fi |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3601 | rm -f conftest.err conftest.$ac_objext \ |
| 3602 | conftest$ac_exeext conftest.$ac_ext |
| 3603 | fi |
| 3604 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 |
| 3605 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3606 | |
| 3607 | if test $ac_cv_func_gethostbyname = no; then |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3608 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
| 3609 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 |
| 3610 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
| 3611 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3612 | else |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3613 | ac_check_lib_save_LIBS=$LIBS |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3614 | LIBS="-lnsl $LIBS" |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3615 | cat >conftest.$ac_ext <<_ACEOF |
| 3616 | /* confdefs.h. */ |
| 3617 | _ACEOF |
| 3618 | cat confdefs.h >>conftest.$ac_ext |
| 3619 | cat >>conftest.$ac_ext <<_ACEOF |
| 3620 | /* end confdefs.h. */ |
| 3621 | |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3622 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3623 | #ifdef __cplusplus |
| 3624 | extern "C" |
| 3625 | #endif |
| 3626 | /* We use char because int might match the return type of a gcc2 |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3627 | builtin and then its argument prototype would still apply. */ |
| 3628 | char gethostbyname (); |
| 3629 | int |
| 3630 | main () |
| 3631 | { |
| 3632 | gethostbyname (); |
| 3633 | ; |
| 3634 | return 0; |
| 3635 | } |
| 3636 | _ACEOF |
| 3637 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3638 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3639 | (eval $ac_link) 2>conftest.er1 |
| 3640 | ac_status=$? |
| 3641 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3642 | rm -f conftest.er1 |
| 3643 | cat conftest.err >&5 |
| 3644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3645 | (exit $ac_status); } && |
| 3646 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 3647 | || test ! -s conftest.err' |
| 3648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3649 | (eval $ac_try) 2>&5 |
| 3650 | ac_status=$? |
| 3651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3652 | (exit $ac_status); }; } && |
| 3653 | { ac_try='test -s conftest$ac_exeext' |
| 3654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3655 | (eval $ac_try) 2>&5 |
| 3656 | ac_status=$? |
| 3657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3658 | (exit $ac_status); }; }; then |
| 3659 | ac_cv_lib_nsl_gethostbyname=yes |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3660 | else |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3661 | echo "$as_me: failed program was:" >&5 |
| 3662 | sed 's/^/| /' conftest.$ac_ext >&5 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3663 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3664 | ac_cv_lib_nsl_gethostbyname=no |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3665 | fi |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3666 | rm -f conftest.err conftest.$ac_objext \ |
| 3667 | conftest$ac_exeext conftest.$ac_ext |
| 3668 | LIBS=$ac_check_lib_save_LIBS |
| 3669 | fi |
| 3670 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
| 3671 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 |
| 3672 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3673 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3674 | fi |
| 3675 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3676 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
| 3677 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
| 3678 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 |
| 3679 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then |
| 3680 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3681 | else |
| 3682 | ac_check_lib_save_LIBS=$LIBS |
| 3683 | LIBS="-lbsd $LIBS" |
| 3684 | cat >conftest.$ac_ext <<_ACEOF |
| 3685 | /* confdefs.h. */ |
| 3686 | _ACEOF |
| 3687 | cat confdefs.h >>conftest.$ac_ext |
| 3688 | cat >>conftest.$ac_ext <<_ACEOF |
| 3689 | /* end confdefs.h. */ |
| 3690 | |
| 3691 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3692 | #ifdef __cplusplus |
| 3693 | extern "C" |
| 3694 | #endif |
| 3695 | /* We use char because int might match the return type of a gcc2 |
| 3696 | builtin and then its argument prototype would still apply. */ |
| 3697 | char gethostbyname (); |
| 3698 | int |
| 3699 | main () |
| 3700 | { |
| 3701 | gethostbyname (); |
| 3702 | ; |
| 3703 | return 0; |
| 3704 | } |
| 3705 | _ACEOF |
| 3706 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3707 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3708 | (eval $ac_link) 2>conftest.er1 |
| 3709 | ac_status=$? |
| 3710 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3711 | rm -f conftest.er1 |
| 3712 | cat conftest.err >&5 |
| 3713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3714 | (exit $ac_status); } && |
| 3715 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 3716 | || test ! -s conftest.err' |
| 3717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3718 | (eval $ac_try) 2>&5 |
| 3719 | ac_status=$? |
| 3720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3721 | (exit $ac_status); }; } && |
| 3722 | { ac_try='test -s conftest$ac_exeext' |
| 3723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3724 | (eval $ac_try) 2>&5 |
| 3725 | ac_status=$? |
| 3726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3727 | (exit $ac_status); }; }; then |
| 3728 | ac_cv_lib_bsd_gethostbyname=yes |
| 3729 | else |
| 3730 | echo "$as_me: failed program was:" >&5 |
| 3731 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3732 | |
| 3733 | ac_cv_lib_bsd_gethostbyname=no |
| 3734 | fi |
| 3735 | rm -f conftest.err conftest.$ac_objext \ |
| 3736 | conftest$ac_exeext conftest.$ac_ext |
| 3737 | LIBS=$ac_check_lib_save_LIBS |
| 3738 | fi |
| 3739 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
| 3740 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 |
| 3741 | if test $ac_cv_lib_bsd_gethostbyname = yes; then |
| 3742 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
| 3743 | fi |
| 3744 | |
| 3745 | fi |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3746 | fi |
| 3747 | |
| 3748 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
| 3749 | # socket/setsockopt and other routines are undefined under SCO ODT |
| 3750 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3751 | # on later versions), says Simon Leinen: it contains gethostby* |
| 3752 | # variants that don't use the name server (or something). -lsocket |
| 3753 | # must be given before -lnsl if both are needed. We assume that |
| 3754 | # if connect needs -lnsl, so does gethostbyname. |
| 3755 | echo "$as_me:$LINENO: checking for connect" >&5 |
| 3756 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 |
| 3757 | if test "${ac_cv_func_connect+set}" = set; then |
| 3758 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3759 | else |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3760 | cat >conftest.$ac_ext <<_ACEOF |
| 3761 | /* confdefs.h. */ |
| 3762 | _ACEOF |
| 3763 | cat confdefs.h >>conftest.$ac_ext |
| 3764 | cat >>conftest.$ac_ext <<_ACEOF |
| 3765 | /* end confdefs.h. */ |
| 3766 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
| 3767 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 3768 | #define connect innocuous_connect |
| 3769 | |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3770 | /* System header to define __stub macros and hopefully few prototypes, |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3771 | which can conflict with char connect (); below. |
| 3772 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3773 | <limits.h> exists even on freestanding compilers. */ |
| 3774 | |
| 3775 | #ifdef __STDC__ |
| 3776 | # include <limits.h> |
| 3777 | #else |
| 3778 | # include <assert.h> |
| 3779 | #endif |
| 3780 | |
| 3781 | #undef connect |
| 3782 | |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3783 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3784 | #ifdef __cplusplus |
| 3785 | extern "C" |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3786 | { |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3787 | #endif |
| 3788 | /* We use char because int might match the return type of a gcc2 |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3789 | builtin and then its argument prototype would still apply. */ |
| 3790 | char connect (); |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3791 | /* The GNU C library defines this for functions which it implements |
| 3792 | to always fail with ENOSYS. Some functions are actually named |
| 3793 | something starting with __ and the normal name is an alias. */ |
| 3794 | #if defined (__stub_connect) || defined (__stub___connect) |
| 3795 | choke me |
| 3796 | #else |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3797 | char (*f) () = connect; |
| 3798 | #endif |
| 3799 | #ifdef __cplusplus |
| 3800 | } |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3801 | #endif |
| 3802 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3803 | int |
| 3804 | main () |
| 3805 | { |
| 3806 | return f != connect; |
| 3807 | ; |
| 3808 | return 0; |
| 3809 | } |
| 3810 | _ACEOF |
| 3811 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3812 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3813 | (eval $ac_link) 2>conftest.er1 |
| 3814 | ac_status=$? |
| 3815 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3816 | rm -f conftest.er1 |
| 3817 | cat conftest.err >&5 |
| 3818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3819 | (exit $ac_status); } && |
| 3820 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 3821 | || test ! -s conftest.err' |
| 3822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3823 | (eval $ac_try) 2>&5 |
| 3824 | ac_status=$? |
| 3825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3826 | (exit $ac_status); }; } && |
| 3827 | { ac_try='test -s conftest$ac_exeext' |
| 3828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3829 | (eval $ac_try) 2>&5 |
| 3830 | ac_status=$? |
| 3831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3832 | (exit $ac_status); }; }; then |
| 3833 | ac_cv_func_connect=yes |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3834 | else |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3835 | echo "$as_me: failed program was:" >&5 |
| 3836 | sed 's/^/| /' conftest.$ac_ext >&5 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3837 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3838 | ac_cv_func_connect=no |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3839 | fi |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3840 | rm -f conftest.err conftest.$ac_objext \ |
| 3841 | conftest$ac_exeext conftest.$ac_ext |
| 3842 | fi |
| 3843 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 |
| 3844 | echo "${ECHO_T}$ac_cv_func_connect" >&6 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3845 | |
| 3846 | if test $ac_cv_func_connect = no; then |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3847 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
| 3848 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 |
| 3849 | if test "${ac_cv_lib_socket_connect+set}" = set; then |
| 3850 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3851 | else |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3852 | ac_check_lib_save_LIBS=$LIBS |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3853 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3854 | cat >conftest.$ac_ext <<_ACEOF |
| 3855 | /* confdefs.h. */ |
| 3856 | _ACEOF |
| 3857 | cat confdefs.h >>conftest.$ac_ext |
| 3858 | cat >>conftest.$ac_ext <<_ACEOF |
| 3859 | /* end confdefs.h. */ |
| 3860 | |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3861 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3862 | #ifdef __cplusplus |
| 3863 | extern "C" |
| 3864 | #endif |
| 3865 | /* We use char because int might match the return type of a gcc2 |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3866 | builtin and then its argument prototype would still apply. */ |
| 3867 | char connect (); |
| 3868 | int |
| 3869 | main () |
| 3870 | { |
| 3871 | connect (); |
| 3872 | ; |
| 3873 | return 0; |
| 3874 | } |
| 3875 | _ACEOF |
| 3876 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3877 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3878 | (eval $ac_link) 2>conftest.er1 |
| 3879 | ac_status=$? |
| 3880 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3881 | rm -f conftest.er1 |
| 3882 | cat conftest.err >&5 |
| 3883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3884 | (exit $ac_status); } && |
| 3885 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 3886 | || test ! -s conftest.err' |
| 3887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3888 | (eval $ac_try) 2>&5 |
| 3889 | ac_status=$? |
| 3890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3891 | (exit $ac_status); }; } && |
| 3892 | { ac_try='test -s conftest$ac_exeext' |
| 3893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3894 | (eval $ac_try) 2>&5 |
| 3895 | ac_status=$? |
| 3896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3897 | (exit $ac_status); }; }; then |
| 3898 | ac_cv_lib_socket_connect=yes |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3899 | else |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3900 | echo "$as_me: failed program was:" >&5 |
| 3901 | sed 's/^/| /' conftest.$ac_ext >&5 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3902 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3903 | ac_cv_lib_socket_connect=no |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3904 | fi |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3905 | rm -f conftest.err conftest.$ac_objext \ |
| 3906 | conftest$ac_exeext conftest.$ac_ext |
| 3907 | LIBS=$ac_check_lib_save_LIBS |
| 3908 | fi |
| 3909 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 |
| 3910 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 |
| 3911 | if test $ac_cv_lib_socket_connect = yes; then |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3912 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3913 | fi |
| 3914 | |
| 3915 | fi |
| 3916 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3917 | # Guillermo Gomez says -lposix is necessary on A/UX. |
| 3918 | echo "$as_me:$LINENO: checking for remove" >&5 |
| 3919 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 |
| 3920 | if test "${ac_cv_func_remove+set}" = set; then |
| 3921 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3922 | else |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3923 | cat >conftest.$ac_ext <<_ACEOF |
| 3924 | /* confdefs.h. */ |
| 3925 | _ACEOF |
| 3926 | cat confdefs.h >>conftest.$ac_ext |
| 3927 | cat >>conftest.$ac_ext <<_ACEOF |
| 3928 | /* end confdefs.h. */ |
| 3929 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
| 3930 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 3931 | #define remove innocuous_remove |
| 3932 | |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3933 | /* System header to define __stub macros and hopefully few prototypes, |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3934 | which can conflict with char remove (); below. |
| 3935 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3936 | <limits.h> exists even on freestanding compilers. */ |
| 3937 | |
| 3938 | #ifdef __STDC__ |
| 3939 | # include <limits.h> |
| 3940 | #else |
| 3941 | # include <assert.h> |
| 3942 | #endif |
| 3943 | |
| 3944 | #undef remove |
| 3945 | |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3946 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3947 | #ifdef __cplusplus |
| 3948 | extern "C" |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3949 | { |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3950 | #endif |
| 3951 | /* We use char because int might match the return type of a gcc2 |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3952 | builtin and then its argument prototype would still apply. */ |
| 3953 | char remove (); |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3954 | /* The GNU C library defines this for functions which it implements |
| 3955 | to always fail with ENOSYS. Some functions are actually named |
| 3956 | something starting with __ and the normal name is an alias. */ |
| 3957 | #if defined (__stub_remove) || defined (__stub___remove) |
| 3958 | choke me |
| 3959 | #else |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3960 | char (*f) () = remove; |
| 3961 | #endif |
| 3962 | #ifdef __cplusplus |
| 3963 | } |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3964 | #endif |
| 3965 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3966 | int |
| 3967 | main () |
| 3968 | { |
| 3969 | return f != remove; |
| 3970 | ; |
| 3971 | return 0; |
| 3972 | } |
| 3973 | _ACEOF |
| 3974 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3975 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3976 | (eval $ac_link) 2>conftest.er1 |
| 3977 | ac_status=$? |
| 3978 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3979 | rm -f conftest.er1 |
| 3980 | cat conftest.err >&5 |
| 3981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3982 | (exit $ac_status); } && |
| 3983 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 3984 | || test ! -s conftest.err' |
| 3985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3986 | (eval $ac_try) 2>&5 |
| 3987 | ac_status=$? |
| 3988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3989 | (exit $ac_status); }; } && |
| 3990 | { ac_try='test -s conftest$ac_exeext' |
| 3991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3992 | (eval $ac_try) 2>&5 |
| 3993 | ac_status=$? |
| 3994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3995 | (exit $ac_status); }; }; then |
| 3996 | ac_cv_func_remove=yes |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 3997 | else |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 3998 | echo "$as_me: failed program was:" >&5 |
| 3999 | sed 's/^/| /' conftest.$ac_ext >&5 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4000 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4001 | ac_cv_func_remove=no |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4002 | fi |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4003 | rm -f conftest.err conftest.$ac_objext \ |
| 4004 | conftest$ac_exeext conftest.$ac_ext |
| 4005 | fi |
| 4006 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 |
| 4007 | echo "${ECHO_T}$ac_cv_func_remove" >&6 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4008 | |
| 4009 | if test $ac_cv_func_remove = no; then |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4010 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
| 4011 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 |
| 4012 | if test "${ac_cv_lib_posix_remove+set}" = set; then |
| 4013 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4014 | else |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4015 | ac_check_lib_save_LIBS=$LIBS |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4016 | LIBS="-lposix $LIBS" |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4017 | cat >conftest.$ac_ext <<_ACEOF |
| 4018 | /* confdefs.h. */ |
| 4019 | _ACEOF |
| 4020 | cat confdefs.h >>conftest.$ac_ext |
| 4021 | cat >>conftest.$ac_ext <<_ACEOF |
| 4022 | /* end confdefs.h. */ |
| 4023 | |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4024 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4025 | #ifdef __cplusplus |
| 4026 | extern "C" |
| 4027 | #endif |
| 4028 | /* We use char because int might match the return type of a gcc2 |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4029 | builtin and then its argument prototype would still apply. */ |
| 4030 | char remove (); |
| 4031 | int |
| 4032 | main () |
| 4033 | { |
| 4034 | remove (); |
| 4035 | ; |
| 4036 | return 0; |
| 4037 | } |
| 4038 | _ACEOF |
| 4039 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4040 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4041 | (eval $ac_link) 2>conftest.er1 |
| 4042 | ac_status=$? |
| 4043 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4044 | rm -f conftest.er1 |
| 4045 | cat conftest.err >&5 |
| 4046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4047 | (exit $ac_status); } && |
| 4048 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 4049 | || test ! -s conftest.err' |
| 4050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4051 | (eval $ac_try) 2>&5 |
| 4052 | ac_status=$? |
| 4053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4054 | (exit $ac_status); }; } && |
| 4055 | { ac_try='test -s conftest$ac_exeext' |
| 4056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4057 | (eval $ac_try) 2>&5 |
| 4058 | ac_status=$? |
| 4059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4060 | (exit $ac_status); }; }; then |
| 4061 | ac_cv_lib_posix_remove=yes |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4062 | else |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4063 | echo "$as_me: failed program was:" >&5 |
| 4064 | sed 's/^/| /' conftest.$ac_ext >&5 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4065 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4066 | ac_cv_lib_posix_remove=no |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4067 | fi |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4068 | rm -f conftest.err conftest.$ac_objext \ |
| 4069 | conftest$ac_exeext conftest.$ac_ext |
| 4070 | LIBS=$ac_check_lib_save_LIBS |
| 4071 | fi |
| 4072 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 |
| 4073 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 |
| 4074 | if test $ac_cv_lib_posix_remove = yes; then |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4075 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4076 | fi |
| 4077 | |
| 4078 | fi |
| 4079 | |
| 4080 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4081 | echo "$as_me:$LINENO: checking for shmat" >&5 |
| 4082 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 |
| 4083 | if test "${ac_cv_func_shmat+set}" = set; then |
| 4084 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4085 | else |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4086 | cat >conftest.$ac_ext <<_ACEOF |
| 4087 | /* confdefs.h. */ |
| 4088 | _ACEOF |
| 4089 | cat confdefs.h >>conftest.$ac_ext |
| 4090 | cat >>conftest.$ac_ext <<_ACEOF |
| 4091 | /* end confdefs.h. */ |
| 4092 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
| 4093 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 4094 | #define shmat innocuous_shmat |
| 4095 | |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4096 | /* System header to define __stub macros and hopefully few prototypes, |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4097 | which can conflict with char shmat (); below. |
| 4098 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4099 | <limits.h> exists even on freestanding compilers. */ |
| 4100 | |
| 4101 | #ifdef __STDC__ |
| 4102 | # include <limits.h> |
| 4103 | #else |
| 4104 | # include <assert.h> |
| 4105 | #endif |
| 4106 | |
| 4107 | #undef shmat |
| 4108 | |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4109 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4110 | #ifdef __cplusplus |
| 4111 | extern "C" |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4112 | { |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4113 | #endif |
| 4114 | /* We use char because int might match the return type of a gcc2 |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4115 | builtin and then its argument prototype would still apply. */ |
| 4116 | char shmat (); |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4117 | /* The GNU C library defines this for functions which it implements |
| 4118 | to always fail with ENOSYS. Some functions are actually named |
| 4119 | something starting with __ and the normal name is an alias. */ |
| 4120 | #if defined (__stub_shmat) || defined (__stub___shmat) |
| 4121 | choke me |
| 4122 | #else |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4123 | char (*f) () = shmat; |
| 4124 | #endif |
| 4125 | #ifdef __cplusplus |
| 4126 | } |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4127 | #endif |
| 4128 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4129 | int |
| 4130 | main () |
| 4131 | { |
| 4132 | return f != shmat; |
| 4133 | ; |
| 4134 | return 0; |
| 4135 | } |
| 4136 | _ACEOF |
| 4137 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4138 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4139 | (eval $ac_link) 2>conftest.er1 |
| 4140 | ac_status=$? |
| 4141 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4142 | rm -f conftest.er1 |
| 4143 | cat conftest.err >&5 |
| 4144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4145 | (exit $ac_status); } && |
| 4146 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 4147 | || test ! -s conftest.err' |
| 4148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4149 | (eval $ac_try) 2>&5 |
| 4150 | ac_status=$? |
| 4151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4152 | (exit $ac_status); }; } && |
| 4153 | { ac_try='test -s conftest$ac_exeext' |
| 4154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4155 | (eval $ac_try) 2>&5 |
| 4156 | ac_status=$? |
| 4157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4158 | (exit $ac_status); }; }; then |
| 4159 | ac_cv_func_shmat=yes |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4160 | else |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4161 | echo "$as_me: failed program was:" >&5 |
| 4162 | sed 's/^/| /' conftest.$ac_ext >&5 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4163 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4164 | ac_cv_func_shmat=no |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4165 | fi |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4166 | rm -f conftest.err conftest.$ac_objext \ |
| 4167 | conftest$ac_exeext conftest.$ac_ext |
| 4168 | fi |
| 4169 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 |
| 4170 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4171 | |
| 4172 | if test $ac_cv_func_shmat = no; then |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4173 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
| 4174 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 |
| 4175 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then |
| 4176 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4177 | else |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4178 | ac_check_lib_save_LIBS=$LIBS |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4179 | LIBS="-lipc $LIBS" |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4180 | cat >conftest.$ac_ext <<_ACEOF |
| 4181 | /* confdefs.h. */ |
| 4182 | _ACEOF |
| 4183 | cat confdefs.h >>conftest.$ac_ext |
| 4184 | cat >>conftest.$ac_ext <<_ACEOF |
| 4185 | /* end confdefs.h. */ |
| 4186 | |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4187 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4188 | #ifdef __cplusplus |
| 4189 | extern "C" |
| 4190 | #endif |
| 4191 | /* We use char because int might match the return type of a gcc2 |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4192 | builtin and then its argument prototype would still apply. */ |
| 4193 | char shmat (); |
| 4194 | int |
| 4195 | main () |
| 4196 | { |
| 4197 | shmat (); |
| 4198 | ; |
| 4199 | return 0; |
| 4200 | } |
| 4201 | _ACEOF |
| 4202 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4203 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4204 | (eval $ac_link) 2>conftest.er1 |
| 4205 | ac_status=$? |
| 4206 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4207 | rm -f conftest.er1 |
| 4208 | cat conftest.err >&5 |
| 4209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4210 | (exit $ac_status); } && |
| 4211 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 4212 | || test ! -s conftest.err' |
| 4213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4214 | (eval $ac_try) 2>&5 |
| 4215 | ac_status=$? |
| 4216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4217 | (exit $ac_status); }; } && |
| 4218 | { ac_try='test -s conftest$ac_exeext' |
| 4219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4220 | (eval $ac_try) 2>&5 |
| 4221 | ac_status=$? |
| 4222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4223 | (exit $ac_status); }; }; then |
| 4224 | ac_cv_lib_ipc_shmat=yes |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4225 | else |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4226 | echo "$as_me: failed program was:" >&5 |
| 4227 | sed 's/^/| /' conftest.$ac_ext >&5 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4228 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4229 | ac_cv_lib_ipc_shmat=no |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4230 | fi |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4231 | rm -f conftest.err conftest.$ac_objext \ |
| 4232 | conftest$ac_exeext conftest.$ac_ext |
| 4233 | LIBS=$ac_check_lib_save_LIBS |
| 4234 | fi |
| 4235 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 |
| 4236 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 |
| 4237 | if test $ac_cv_lib_ipc_shmat = yes; then |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4238 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4239 | fi |
| 4240 | |
| 4241 | fi |
| 4242 | fi |
| 4243 | |
| 4244 | # Check for libraries that X11R6 Xt/Xaw programs need. |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4245 | ac_save_LDFLAGS=$LDFLAGS |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4246 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
| 4247 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
| 4248 | # check for ICE first), but we must link in the order -lSM -lICE or |
| 4249 | # we get undefined symbols. So assume we have SM if we have ICE. |
| 4250 | # These have to be linked with before -lX11, unlike the other |
| 4251 | # libraries we check for below, so use a different variable. |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4252 | # John Interrante, Karl Berry |
| 4253 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 |
| 4254 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 |
| 4255 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then |
| 4256 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4257 | else |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4258 | ac_check_lib_save_LIBS=$LIBS |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4259 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4260 | cat >conftest.$ac_ext <<_ACEOF |
| 4261 | /* confdefs.h. */ |
| 4262 | _ACEOF |
| 4263 | cat confdefs.h >>conftest.$ac_ext |
| 4264 | cat >>conftest.$ac_ext <<_ACEOF |
| 4265 | /* end confdefs.h. */ |
| 4266 | |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4267 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4268 | #ifdef __cplusplus |
| 4269 | extern "C" |
| 4270 | #endif |
| 4271 | /* We use char because int might match the return type of a gcc2 |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4272 | builtin and then its argument prototype would still apply. */ |
| 4273 | char IceConnectionNumber (); |
| 4274 | int |
| 4275 | main () |
| 4276 | { |
| 4277 | IceConnectionNumber (); |
| 4278 | ; |
| 4279 | return 0; |
| 4280 | } |
| 4281 | _ACEOF |
| 4282 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4283 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4284 | (eval $ac_link) 2>conftest.er1 |
| 4285 | ac_status=$? |
| 4286 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4287 | rm -f conftest.er1 |
| 4288 | cat conftest.err >&5 |
| 4289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4290 | (exit $ac_status); } && |
| 4291 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 4292 | || test ! -s conftest.err' |
| 4293 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4294 | (eval $ac_try) 2>&5 |
| 4295 | ac_status=$? |
| 4296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4297 | (exit $ac_status); }; } && |
| 4298 | { ac_try='test -s conftest$ac_exeext' |
| 4299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4300 | (eval $ac_try) 2>&5 |
| 4301 | ac_status=$? |
| 4302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4303 | (exit $ac_status); }; }; then |
| 4304 | ac_cv_lib_ICE_IceConnectionNumber=yes |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4305 | else |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4306 | echo "$as_me: failed program was:" >&5 |
| 4307 | sed 's/^/| /' conftest.$ac_ext >&5 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4308 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4309 | ac_cv_lib_ICE_IceConnectionNumber=no |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4310 | fi |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4311 | rm -f conftest.err conftest.$ac_objext \ |
| 4312 | conftest$ac_exeext conftest.$ac_ext |
| 4313 | LIBS=$ac_check_lib_save_LIBS |
| 4314 | fi |
| 4315 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 |
| 4316 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 |
| 4317 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4318 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4319 | fi |
| 4320 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4321 | LDFLAGS=$ac_save_LDFLAGS |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4322 | |
| 4323 | fi |
| 4324 | |
| 4325 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4326 | |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4327 | # Check whether --with-installed-zlib or --without-installed-zlib was given. |
| 4328 | if test "${with_installed_zlib+set}" = set; then |
| 4329 | withval="$with_installed_zlib" |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4330 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4331 | fi; |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4332 | |
| 4333 | if test "$with_installed_zlib" = yes; then |
| 4334 | echo "using installed zlib" |
| 4335 | ZLIB_LIB=-lz |
| 4336 | else |
| 4337 | ZLIB_DIR=zlib |
| 4338 | ZLIB_INCLUDE='-I$(top_srcdir)/zlib' |
| 4339 | ZLIB_LIB='$(top_srcdir)/zlib/libz.a' |
| 4340 | echo "configuring zlib..." |
| 4341 | (cd zlib; ./configure) |
| 4342 | echo "...done configuring zlib" |
| 4343 | fi |
| 4344 | |
| 4345 | |
| 4346 | |
| 4347 | |
| 4348 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4349 | echo "$as_me:$LINENO: checking for vsnprintf" >&5 |
| 4350 | echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6 |
| 4351 | if test "${ac_cv_func_vsnprintf+set}" = set; then |
| 4352 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4353 | else |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4354 | cat >conftest.$ac_ext <<_ACEOF |
| 4355 | /* confdefs.h. */ |
| 4356 | _ACEOF |
| 4357 | cat confdefs.h >>conftest.$ac_ext |
| 4358 | cat >>conftest.$ac_ext <<_ACEOF |
| 4359 | /* end confdefs.h. */ |
| 4360 | /* Define vsnprintf to an innocuous variant, in case <limits.h> declares vsnprintf. |
| 4361 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 4362 | #define vsnprintf innocuous_vsnprintf |
| 4363 | |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4364 | /* System header to define __stub macros and hopefully few prototypes, |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4365 | which can conflict with char vsnprintf (); below. |
| 4366 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4367 | <limits.h> exists even on freestanding compilers. */ |
| 4368 | |
| 4369 | #ifdef __STDC__ |
| 4370 | # include <limits.h> |
| 4371 | #else |
| 4372 | # include <assert.h> |
| 4373 | #endif |
| 4374 | |
| 4375 | #undef vsnprintf |
| 4376 | |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4377 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4378 | #ifdef __cplusplus |
| 4379 | extern "C" |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4380 | { |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4381 | #endif |
| 4382 | /* We use char because int might match the return type of a gcc2 |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4383 | builtin and then its argument prototype would still apply. */ |
| 4384 | char vsnprintf (); |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4385 | /* The GNU C library defines this for functions which it implements |
| 4386 | to always fail with ENOSYS. Some functions are actually named |
| 4387 | something starting with __ and the normal name is an alias. */ |
| 4388 | #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf) |
| 4389 | choke me |
| 4390 | #else |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4391 | char (*f) () = vsnprintf; |
| 4392 | #endif |
| 4393 | #ifdef __cplusplus |
| 4394 | } |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4395 | #endif |
| 4396 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4397 | int |
| 4398 | main () |
| 4399 | { |
| 4400 | return f != vsnprintf; |
| 4401 | ; |
| 4402 | return 0; |
| 4403 | } |
| 4404 | _ACEOF |
| 4405 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4406 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4407 | (eval $ac_link) 2>conftest.er1 |
| 4408 | ac_status=$? |
| 4409 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4410 | rm -f conftest.er1 |
| 4411 | cat conftest.err >&5 |
| 4412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4413 | (exit $ac_status); } && |
| 4414 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 4415 | || test ! -s conftest.err' |
| 4416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4417 | (eval $ac_try) 2>&5 |
| 4418 | ac_status=$? |
| 4419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4420 | (exit $ac_status); }; } && |
| 4421 | { ac_try='test -s conftest$ac_exeext' |
| 4422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4423 | (eval $ac_try) 2>&5 |
| 4424 | ac_status=$? |
| 4425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4426 | (exit $ac_status); }; }; then |
| 4427 | ac_cv_func_vsnprintf=yes |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4428 | else |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4429 | echo "$as_me: failed program was:" >&5 |
| 4430 | sed 's/^/| /' conftest.$ac_ext >&5 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4431 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4432 | ac_cv_func_vsnprintf=no |
| 4433 | fi |
| 4434 | rm -f conftest.err conftest.$ac_objext \ |
| 4435 | conftest$ac_exeext conftest.$ac_ext |
| 4436 | fi |
| 4437 | echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf" >&5 |
| 4438 | echo "${ECHO_T}$ac_cv_func_vsnprintf" >&6 |
| 4439 | if test $ac_cv_func_vsnprintf = yes; then |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4440 | VSNPRINTF_DEFINE='-DHAVE_VSNPRINTF' |
| 4441 | else |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4442 | VSNPRINTF_DEFINE= |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4443 | fi |
| 4444 | |
| 4445 | |
| 4446 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4447 | echo "$as_me:$LINENO: checking for socklen_t" >&5 |
| 4448 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 |
| 4449 | cat >conftest.$ac_ext <<_ACEOF |
| 4450 | /* confdefs.h. */ |
| 4451 | _ACEOF |
| 4452 | cat confdefs.h >>conftest.$ac_ext |
| 4453 | cat >>conftest.$ac_ext <<_ACEOF |
| 4454 | /* end confdefs.h. */ |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4455 | #include <sys/types.h> |
| 4456 | #include <sys/socket.h> |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4457 | int |
| 4458 | main () |
| 4459 | { |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4460 | socklen_t x; |
| 4461 | accept(0, 0, &x); |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4462 | ; |
| 4463 | return 0; |
| 4464 | } |
| 4465 | _ACEOF |
| 4466 | rm -f conftest.$ac_objext |
| 4467 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4468 | (eval $ac_compile) 2>conftest.er1 |
| 4469 | ac_status=$? |
| 4470 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4471 | rm -f conftest.er1 |
| 4472 | cat conftest.err >&5 |
| 4473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4474 | (exit $ac_status); } && |
| 4475 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 4476 | || test ! -s conftest.err' |
| 4477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4478 | (eval $ac_try) 2>&5 |
| 4479 | ac_status=$? |
| 4480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4481 | (exit $ac_status); }; } && |
| 4482 | { ac_try='test -s conftest.$ac_objext' |
| 4483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4484 | (eval $ac_try) 2>&5 |
| 4485 | ac_status=$? |
| 4486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4487 | (exit $ac_status); }; }; then |
| 4488 | echo "$as_me:$LINENO: result: yes" >&5 |
| 4489 | echo "${ECHO_T}yes" >&6 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4490 | SOCKLEN_T_DEFINE='-DVNC_SOCKLEN_T=socklen_t' |
| 4491 | else |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4492 | echo "$as_me: failed program was:" >&5 |
| 4493 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4494 | |
| 4495 | echo "$as_me:$LINENO: result: using int" >&5 |
| 4496 | echo "${ECHO_T}using int" >&6 |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4497 | SOCKLEN_T_DEFINE='-DVNC_SOCKLEN_T=int' |
| 4498 | fi |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4499 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4500 | |
| 4501 | |
| 4502 | BOILERPLATE=boilerplate.mk |
| 4503 | |
| 4504 | if (sh -c "make --version" 2>/dev/null | grep GNU 2>&1 >/dev/null); then |
| 4505 | if sh -c "vncmkdepend" >/dev/null 2>&1; then |
| 4506 | BOILERPLATE="$BOILERPLATE:depend.mk" |
| 4507 | fi |
| 4508 | fi |
| 4509 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4510 | ac_config_files="$ac_config_files Makefile:Makefile.in:$BOILERPLATE rdr/Makefile:rdr/Makefile.in:$BOILERPLATE network/Makefile:network/Makefile.in:$BOILERPLATE Xregion/Makefile:Xregion/Makefile.in:$BOILERPLATE rfb/Makefile:rfb/Makefile.in:$BOILERPLATE tx/Makefile:tx/Makefile.in:$BOILERPLATE x0vncserver/Makefile:x0vncserver/Makefile.in:$BOILERPLATE vncviewer_unix/Makefile:vncviewer_unix/Makefile.in:$BOILERPLATE vncconfig_unix/Makefile:vncconfig_unix/Makefile.in:$BOILERPLATE vncpasswd/Makefile:vncpasswd/Makefile.in:$BOILERPLATE" |
| 4511 | cat >confcache <<\_ACEOF |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4512 | # This file is a shell script that caches the results of configure |
| 4513 | # tests run on this system so they can be shared between configure |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4514 | # scripts and configure runs, see configure's option --config-cache. |
| 4515 | # It is not useful on other systems. If it contains results you don't |
| 4516 | # want to keep, you may remove or edit it. |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4517 | # |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4518 | # config.status only pays attention to the cache file if you give it |
| 4519 | # the --recheck option to rerun configure. |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4520 | # |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4521 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 4522 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 4523 | # following values. |
| 4524 | |
| 4525 | _ACEOF |
| 4526 | |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4527 | # The following way of writing the cache mishandles newlines in values, |
| 4528 | # but we know of no workaround that is simple, portable, and efficient. |
| 4529 | # So, don't put newlines in cache variables' values. |
| 4530 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 4531 | # and sets the high bit in the cache file unless we assign to the vars. |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4532 | { |
| 4533 | (set) 2>&1 | |
| 4534 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 4535 | *ac_space=\ *) |
| 4536 | # `set' does not quote correctly, so add quotes (double-quote |
| 4537 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 4538 | sed -n \ |
| 4539 | "s/'/'\\\\''/g; |
| 4540 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 4541 | ;; |
| 4542 | *) |
| 4543 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 4544 | sed -n \ |
| 4545 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 4546 | ;; |
| 4547 | esac; |
| 4548 | } | |
| 4549 | sed ' |
| 4550 | t clear |
| 4551 | : clear |
| 4552 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 4553 | t end |
| 4554 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 4555 | : end' >>confcache |
| 4556 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4557 | if test -w $cache_file; then |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4558 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 4559 | cat confcache >$cache_file |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4560 | else |
| 4561 | echo "not updating unwritable cache $cache_file" |
| 4562 | fi |
| 4563 | fi |
| 4564 | rm -f confcache |
| 4565 | |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4566 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 4567 | # Let make expand exec_prefix. |
| 4568 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 4569 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4570 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 4571 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 4572 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 4573 | # (actually we leave an empty line to preserve line numbers). |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4574 | if test "x$srcdir" = x.; then |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4575 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 4576 | s/:*\$(srcdir):*/:/; |
| 4577 | s/:*\${srcdir}:*/:/; |
| 4578 | s/:*@srcdir@:*/:/; |
| 4579 | s/^\([^=]*=[ ]*\):*/\1/; |
| 4580 | s/:*$//; |
| 4581 | s/^[^=]*=[ ]*$//; |
| 4582 | }' |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4583 | fi |
| 4584 | |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4585 | # Transform confdefs.h into DEFS. |
| 4586 | # Protect against shell expansion while executing Makefile rules. |
| 4587 | # Protect against Makefile macro expansion. |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4588 | # |
| 4589 | # If the first sed substitution is executed (which looks for macros that |
| 4590 | # take arguments), then we branch to the quote section. Otherwise, |
| 4591 | # look for a macro that doesn't take arguments. |
| 4592 | cat >confdef2opt.sed <<\_ACEOF |
| 4593 | t clear |
| 4594 | : clear |
| 4595 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g |
| 4596 | t quote |
| 4597 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g |
| 4598 | t quote |
| 4599 | d |
| 4600 | : quote |
| 4601 | s,[ `~#$^&*(){}\\|;'"<>?],\\&,g |
| 4602 | s,\[,\\&,g |
| 4603 | s,\],\\&,g |
| 4604 | s,\$,$$,g |
| 4605 | p |
| 4606 | _ACEOF |
| 4607 | # We use echo to avoid assuming a particular line-breaking character. |
| 4608 | # The extra dot is to prevent the shell from consuming trailing |
| 4609 | # line-breaks from the sub-command output. A line-break within |
| 4610 | # single-quotes doesn't work because, if this script is created in a |
| 4611 | # platform that uses two characters for line-breaks (e.g., DOS), tr |
| 4612 | # would break. |
| 4613 | ac_LF_and_DOT=`echo; echo .` |
| 4614 | DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` |
| 4615 | rm -f confdef2opt.sed |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4616 | |
| 4617 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4618 | ac_libobjs= |
| 4619 | ac_ltlibobjs= |
| 4620 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 4621 | # 1. Remove the extension, and $U if already installed. |
| 4622 | ac_i=`echo "$ac_i" | |
| 4623 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
| 4624 | # 2. Add them. |
| 4625 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 4626 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 4627 | done |
| 4628 | LIBOBJS=$ac_libobjs |
| 4629 | |
| 4630 | LTLIBOBJS=$ac_ltlibobjs |
| 4631 | |
| 4632 | |
| 4633 | |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4634 | : ${CONFIG_STATUS=./config.status} |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4635 | ac_clean_files_save=$ac_clean_files |
| 4636 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 4637 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 4638 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 4639 | cat >$CONFIG_STATUS <<_ACEOF |
| 4640 | #! $SHELL |
| 4641 | # Generated by $as_me. |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4642 | # Run this file to recreate the current configuration. |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4643 | # Compiler output produced by configure, useful for debugging |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4644 | # configure, is in config.log if it exists. |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4645 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4646 | debug=false |
| 4647 | ac_cs_recheck=false |
| 4648 | ac_cs_silent=false |
| 4649 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 4650 | _ACEOF |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4651 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4652 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 4653 | ## --------------------- ## |
| 4654 | ## M4sh Initialization. ## |
| 4655 | ## --------------------- ## |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4656 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4657 | # Be Bourne compatible |
| 4658 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 4659 | emulate sh |
| 4660 | NULLCMD=: |
| 4661 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 4662 | # is contrary to our usage. Disable this feature. |
| 4663 | alias -g '${1+"$@"}'='"$@"' |
| 4664 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 4665 | set -o posix |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4666 | fi |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4667 | DUALCASE=1; export DUALCASE # for MKS sh |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4668 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4669 | # Support unset when possible. |
| 4670 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 4671 | as_unset=unset |
| 4672 | else |
| 4673 | as_unset=false |
| 4674 | fi |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4675 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4676 | |
| 4677 | # Work around bugs in pre-3.0 UWIN ksh. |
| 4678 | $as_unset ENV MAIL MAILPATH |
| 4679 | PS1='$ ' |
| 4680 | PS2='> ' |
| 4681 | PS4='+ ' |
| 4682 | |
| 4683 | # NLS nuisances. |
| 4684 | for as_var in \ |
| 4685 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 4686 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 4687 | LC_TELEPHONE LC_TIME |
| 4688 | do |
| 4689 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 4690 | eval $as_var=C; export $as_var |
| 4691 | else |
| 4692 | $as_unset $as_var |
| 4693 | fi |
| 4694 | done |
| 4695 | |
| 4696 | # Required to use basename. |
| 4697 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 4698 | as_expr=expr |
| 4699 | else |
| 4700 | as_expr=false |
| 4701 | fi |
| 4702 | |
| 4703 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 4704 | as_basename=basename |
| 4705 | else |
| 4706 | as_basename=false |
| 4707 | fi |
| 4708 | |
| 4709 | |
| 4710 | # Name of the executable. |
| 4711 | as_me=`$as_basename "$0" || |
| 4712 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 4713 | X"$0" : 'X\(//\)$' \| \ |
| 4714 | X"$0" : 'X\(/\)$' \| \ |
| 4715 | . : '\(.\)' 2>/dev/null || |
| 4716 | echo X/"$0" | |
| 4717 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 4718 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 4719 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 4720 | s/.*/./; q'` |
| 4721 | |
| 4722 | |
| 4723 | # PATH needs CR, and LINENO needs CR and PATH. |
| 4724 | # Avoid depending upon Character Ranges. |
| 4725 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 4726 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 4727 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 4728 | as_cr_digits='0123456789' |
| 4729 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 4730 | |
| 4731 | # The user is always right. |
| 4732 | if test "${PATH_SEPARATOR+set}" != set; then |
| 4733 | echo "#! /bin/sh" >conf$$.sh |
| 4734 | echo "exit 0" >>conf$$.sh |
| 4735 | chmod +x conf$$.sh |
| 4736 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 4737 | PATH_SEPARATOR=';' |
| 4738 | else |
| 4739 | PATH_SEPARATOR=: |
| 4740 | fi |
| 4741 | rm -f conf$$.sh |
| 4742 | fi |
| 4743 | |
| 4744 | |
| 4745 | as_lineno_1=$LINENO |
| 4746 | as_lineno_2=$LINENO |
| 4747 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 4748 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 4749 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 4750 | # Find who we are. Look in the path if we contain no path at all |
| 4751 | # relative or not. |
| 4752 | case $0 in |
| 4753 | *[\\/]* ) as_myself=$0 ;; |
| 4754 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4755 | for as_dir in $PATH |
| 4756 | do |
| 4757 | IFS=$as_save_IFS |
| 4758 | test -z "$as_dir" && as_dir=. |
| 4759 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 4760 | done |
| 4761 | |
| 4762 | ;; |
| 4763 | esac |
| 4764 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 4765 | # in which case we are not to be found in the path. |
| 4766 | if test "x$as_myself" = x; then |
| 4767 | as_myself=$0 |
| 4768 | fi |
| 4769 | if test ! -f "$as_myself"; then |
| 4770 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 4771 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 4772 | { (exit 1); exit 1; }; } |
| 4773 | fi |
| 4774 | case $CONFIG_SHELL in |
| 4775 | '') |
| 4776 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4777 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 4778 | do |
| 4779 | IFS=$as_save_IFS |
| 4780 | test -z "$as_dir" && as_dir=. |
| 4781 | for as_base in sh bash ksh sh5; do |
| 4782 | case $as_dir in |
| 4783 | /*) |
| 4784 | if ("$as_dir/$as_base" -c ' |
| 4785 | as_lineno_1=$LINENO |
| 4786 | as_lineno_2=$LINENO |
| 4787 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 4788 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 4789 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 4790 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 4791 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 4792 | CONFIG_SHELL=$as_dir/$as_base |
| 4793 | export CONFIG_SHELL |
| 4794 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 4795 | fi;; |
| 4796 | esac |
| 4797 | done |
| 4798 | done |
| 4799 | ;; |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4800 | esac |
| 4801 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4802 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 4803 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 4804 | # line-number line before each line; the second 'sed' does the real |
| 4805 | # work. The second script uses 'N' to pair each line-number line |
| 4806 | # with the numbered line, and appends trailing '-' during |
| 4807 | # substitution so that $LINENO is not a special case at line end. |
| 4808 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 4809 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 4810 | sed '=' <$as_myself | |
| 4811 | sed ' |
| 4812 | N |
| 4813 | s,$,-, |
| 4814 | : loop |
| 4815 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 4816 | t loop |
| 4817 | s,-$,, |
| 4818 | s,^['$as_cr_digits']*\n,, |
| 4819 | ' >$as_me.lineno && |
| 4820 | chmod +x $as_me.lineno || |
| 4821 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 4822 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 4823 | { (exit 1); exit 1; }; } |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4824 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4825 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 4826 | # (the dirname of $[0] is not the place where we might find the |
| 4827 | # original and so on. Autoconf is especially sensible to this). |
| 4828 | . ./$as_me.lineno |
| 4829 | # Exit status is that of the last command. |
| 4830 | exit |
| 4831 | } |
| 4832 | |
| 4833 | |
| 4834 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 4835 | *c*,-n*) ECHO_N= ECHO_C=' |
| 4836 | ' ECHO_T=' ' ;; |
| 4837 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 4838 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 4839 | esac |
| 4840 | |
| 4841 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 4842 | as_expr=expr |
| 4843 | else |
| 4844 | as_expr=false |
| 4845 | fi |
| 4846 | |
| 4847 | rm -f conf$$ conf$$.exe conf$$.file |
| 4848 | echo >conf$$.file |
| 4849 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 4850 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 4851 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 4852 | if test -f conf$$.exe; then |
| 4853 | # Don't use ln at all; we don't have any links |
| 4854 | as_ln_s='cp -p' |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 4855 | else |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 4856 | as_ln_s='ln -s' |
| 4857 | fi |
| 4858 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 4859 | as_ln_s=ln |
| 4860 | else |
| 4861 | as_ln_s='cp -p' |
| 4862 | fi |
| 4863 | rm -f conf$$ conf$$.exe conf$$.file |
| 4864 | |
| 4865 | if mkdir -p . 2>/dev/null; then |
| 4866 | as_mkdir_p=: |
| 4867 | else |
| 4868 | test -d ./-p && rmdir ./-p |
| 4869 | as_mkdir_p=false |
| 4870 | fi |
| 4871 | |
| 4872 | as_executable_p="test -f" |
| 4873 | |
| 4874 | # Sed expression to map a string onto a valid CPP name. |
| 4875 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 4876 | |
| 4877 | # Sed expression to map a string onto a valid variable name. |
| 4878 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 4879 | |
| 4880 | |
| 4881 | # IFS |
| 4882 | # We need space, tab and new line, in precisely that order. |
| 4883 | as_nl=' |
| 4884 | ' |
| 4885 | IFS=" $as_nl" |
| 4886 | |
| 4887 | # CDPATH. |
| 4888 | $as_unset CDPATH |
| 4889 | |
| 4890 | exec 6>&1 |
| 4891 | |
| 4892 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 4893 | # report actual input values of CONFIG_FILES etc. instead of their |
| 4894 | # values after options handling. Logging --version etc. is OK. |
| 4895 | exec 5>>config.log |
| 4896 | { |
| 4897 | echo |
| 4898 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 4899 | ## Running $as_me. ## |
| 4900 | _ASBOX |
| 4901 | } >&5 |
| 4902 | cat >&5 <<_CSEOF |
| 4903 | |
| 4904 | This file was extended by $as_me, which was |
| 4905 | generated by GNU Autoconf 2.59. Invocation command line was |
| 4906 | |
| 4907 | CONFIG_FILES = $CONFIG_FILES |
| 4908 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 4909 | CONFIG_LINKS = $CONFIG_LINKS |
| 4910 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 4911 | $ $0 $@ |
| 4912 | |
| 4913 | _CSEOF |
| 4914 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 4915 | echo >&5 |
| 4916 | _ACEOF |
| 4917 | |
| 4918 | # Files that config.status was made for. |
| 4919 | if test -n "$ac_config_files"; then |
| 4920 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 4921 | fi |
| 4922 | |
| 4923 | if test -n "$ac_config_headers"; then |
| 4924 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 4925 | fi |
| 4926 | |
| 4927 | if test -n "$ac_config_links"; then |
| 4928 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 4929 | fi |
| 4930 | |
| 4931 | if test -n "$ac_config_commands"; then |
| 4932 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 4933 | fi |
| 4934 | |
| 4935 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 4936 | |
| 4937 | ac_cs_usage="\ |
| 4938 | \`$as_me' instantiates files from templates according to the |
| 4939 | current configuration. |
| 4940 | |
| 4941 | Usage: $0 [OPTIONS] [FILE]... |
| 4942 | |
| 4943 | -h, --help print this help, then exit |
| 4944 | -V, --version print version number, then exit |
| 4945 | -q, --quiet do not print progress messages |
| 4946 | -d, --debug don't remove temporary files |
| 4947 | --recheck update $as_me by reconfiguring in the same conditions |
| 4948 | --file=FILE[:TEMPLATE] |
| 4949 | instantiate the configuration file FILE |
| 4950 | |
| 4951 | Configuration files: |
| 4952 | $config_files |
| 4953 | |
| 4954 | Report bugs to <bug-autoconf@gnu.org>." |
| 4955 | _ACEOF |
| 4956 | |
| 4957 | cat >>$CONFIG_STATUS <<_ACEOF |
| 4958 | ac_cs_version="\\ |
| 4959 | config.status |
| 4960 | configured by $0, generated by GNU Autoconf 2.59, |
| 4961 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 4962 | |
| 4963 | Copyright (C) 2003 Free Software Foundation, Inc. |
| 4964 | This config.status script is free software; the Free Software Foundation |
| 4965 | gives unlimited permission to copy, distribute and modify it." |
| 4966 | srcdir=$srcdir |
| 4967 | _ACEOF |
| 4968 | |
| 4969 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 4970 | # If no file are specified by the user, then we need to provide default |
| 4971 | # value. By we need to know if files were specified by the user. |
| 4972 | ac_need_defaults=: |
| 4973 | while test $# != 0 |
| 4974 | do |
| 4975 | case $1 in |
| 4976 | --*=*) |
| 4977 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 4978 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
| 4979 | ac_shift=: |
| 4980 | ;; |
| 4981 | -*) |
| 4982 | ac_option=$1 |
| 4983 | ac_optarg=$2 |
| 4984 | ac_shift=shift |
| 4985 | ;; |
| 4986 | *) # This is not an option, so the user has probably given explicit |
| 4987 | # arguments. |
| 4988 | ac_option=$1 |
| 4989 | ac_need_defaults=false;; |
| 4990 | esac |
| 4991 | |
| 4992 | case $ac_option in |
| 4993 | # Handling of the options. |
| 4994 | _ACEOF |
| 4995 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 4996 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 4997 | ac_cs_recheck=: ;; |
| 4998 | --version | --vers* | -V ) |
| 4999 | echo "$ac_cs_version"; exit 0 ;; |
| 5000 | --he | --h) |
| 5001 | # Conflict between --help and --header |
| 5002 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 5003 | Try \`$0 --help' for more information." >&5 |
| 5004 | echo "$as_me: error: ambiguous option: $1 |
| 5005 | Try \`$0 --help' for more information." >&2;} |
| 5006 | { (exit 1); exit 1; }; };; |
| 5007 | --help | --hel | -h ) |
| 5008 | echo "$ac_cs_usage"; exit 0 ;; |
| 5009 | --debug | --d* | -d ) |
| 5010 | debug=: ;; |
| 5011 | --file | --fil | --fi | --f ) |
| 5012 | $ac_shift |
| 5013 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
| 5014 | ac_need_defaults=false;; |
| 5015 | --header | --heade | --head | --hea ) |
| 5016 | $ac_shift |
| 5017 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
| 5018 | ac_need_defaults=false;; |
| 5019 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 5020 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 5021 | ac_cs_silent=: ;; |
| 5022 | |
| 5023 | # This is an error. |
| 5024 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 5025 | Try \`$0 --help' for more information." >&5 |
| 5026 | echo "$as_me: error: unrecognized option: $1 |
| 5027 | Try \`$0 --help' for more information." >&2;} |
| 5028 | { (exit 1); exit 1; }; } ;; |
| 5029 | |
| 5030 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 5031 | |
| 5032 | esac |
| 5033 | shift |
| 5034 | done |
| 5035 | |
| 5036 | ac_configure_extra_args= |
| 5037 | |
| 5038 | if $ac_cs_silent; then |
| 5039 | exec 6>/dev/null |
| 5040 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 5041 | fi |
| 5042 | |
| 5043 | _ACEOF |
| 5044 | cat >>$CONFIG_STATUS <<_ACEOF |
| 5045 | if \$ac_cs_recheck; then |
| 5046 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 5047 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 5048 | fi |
| 5049 | |
| 5050 | _ACEOF |
| 5051 | |
| 5052 | |
| 5053 | |
| 5054 | |
| 5055 | |
| 5056 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 5057 | for ac_config_target in $ac_config_targets |
| 5058 | do |
| 5059 | case "$ac_config_target" in |
| 5060 | # Handling of arguments. |
| 5061 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:$BOILERPLATE" ;; |
| 5062 | "rdr/Makefile" ) CONFIG_FILES="$CONFIG_FILES rdr/Makefile:rdr/Makefile.in:$BOILERPLATE" ;; |
| 5063 | "network/Makefile" ) CONFIG_FILES="$CONFIG_FILES network/Makefile:network/Makefile.in:$BOILERPLATE" ;; |
| 5064 | "Xregion/Makefile" ) CONFIG_FILES="$CONFIG_FILES Xregion/Makefile:Xregion/Makefile.in:$BOILERPLATE" ;; |
| 5065 | "rfb/Makefile" ) CONFIG_FILES="$CONFIG_FILES rfb/Makefile:rfb/Makefile.in:$BOILERPLATE" ;; |
| 5066 | "tx/Makefile" ) CONFIG_FILES="$CONFIG_FILES tx/Makefile:tx/Makefile.in:$BOILERPLATE" ;; |
| 5067 | "x0vncserver/Makefile" ) CONFIG_FILES="$CONFIG_FILES x0vncserver/Makefile:x0vncserver/Makefile.in:$BOILERPLATE" ;; |
| 5068 | "vncviewer_unix/Makefile" ) CONFIG_FILES="$CONFIG_FILES vncviewer_unix/Makefile:vncviewer_unix/Makefile.in:$BOILERPLATE" ;; |
| 5069 | "vncconfig_unix/Makefile" ) CONFIG_FILES="$CONFIG_FILES vncconfig_unix/Makefile:vncconfig_unix/Makefile.in:$BOILERPLATE" ;; |
| 5070 | "vncpasswd/Makefile" ) CONFIG_FILES="$CONFIG_FILES vncpasswd/Makefile:vncpasswd/Makefile.in:$BOILERPLATE" ;; |
| 5071 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 5072 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 5073 | { (exit 1); exit 1; }; };; |
| 5074 | esac |
| 5075 | done |
| 5076 | |
| 5077 | # If the user did not use the arguments to specify the items to instantiate, |
| 5078 | # then the envvar interface is used. Set only those that are not. |
| 5079 | # We use the long form for the default assignment because of an extremely |
| 5080 | # bizarre bug on SunOS 4.1.3. |
| 5081 | if $ac_need_defaults; then |
| 5082 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 5083 | fi |
| 5084 | |
| 5085 | # Have a temporary directory for convenience. Make it in the build tree |
| 5086 | # simply because there is no reason to put it here, and in addition, |
| 5087 | # creating and moving files from /tmp can sometimes cause problems. |
| 5088 | # Create a temporary directory, and hook for its removal unless debugging. |
| 5089 | $debug || |
| 5090 | { |
| 5091 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 5092 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 5093 | } |
| 5094 | |
| 5095 | # Create a (secure) tmp directory for tmp files. |
| 5096 | |
| 5097 | { |
| 5098 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
| 5099 | test -n "$tmp" && test -d "$tmp" |
| 5100 | } || |
| 5101 | { |
| 5102 | tmp=./confstat$$-$RANDOM |
| 5103 | (umask 077 && mkdir $tmp) |
| 5104 | } || |
| 5105 | { |
| 5106 | echo "$me: cannot create a temporary directory in ." >&2 |
| 5107 | { (exit 1); exit 1; } |
| 5108 | } |
| 5109 | |
| 5110 | _ACEOF |
| 5111 | |
| 5112 | cat >>$CONFIG_STATUS <<_ACEOF |
| 5113 | |
| 5114 | # |
| 5115 | # CONFIG_FILES section. |
| 5116 | # |
| 5117 | |
| 5118 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 5119 | # This happens for instance when ./config.status config.h |
| 5120 | if test -n "\$CONFIG_FILES"; then |
| 5121 | # Protect against being on the right side of a sed subst in config.status. |
| 5122 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 5123 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 5124 | s,@SHELL@,$SHELL,;t t |
| 5125 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 5126 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 5127 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 5128 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 5129 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 5130 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 5131 | s,@exec_prefix@,$exec_prefix,;t t |
| 5132 | s,@prefix@,$prefix,;t t |
| 5133 | s,@program_transform_name@,$program_transform_name,;t t |
| 5134 | s,@bindir@,$bindir,;t t |
| 5135 | s,@sbindir@,$sbindir,;t t |
| 5136 | s,@libexecdir@,$libexecdir,;t t |
| 5137 | s,@datadir@,$datadir,;t t |
| 5138 | s,@sysconfdir@,$sysconfdir,;t t |
| 5139 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 5140 | s,@localstatedir@,$localstatedir,;t t |
| 5141 | s,@libdir@,$libdir,;t t |
| 5142 | s,@includedir@,$includedir,;t t |
| 5143 | s,@oldincludedir@,$oldincludedir,;t t |
| 5144 | s,@infodir@,$infodir,;t t |
| 5145 | s,@mandir@,$mandir,;t t |
| 5146 | s,@build_alias@,$build_alias,;t t |
| 5147 | s,@host_alias@,$host_alias,;t t |
| 5148 | s,@target_alias@,$target_alias,;t t |
| 5149 | s,@DEFS@,$DEFS,;t t |
| 5150 | s,@ECHO_C@,$ECHO_C,;t t |
| 5151 | s,@ECHO_N@,$ECHO_N,;t t |
| 5152 | s,@ECHO_T@,$ECHO_T,;t t |
| 5153 | s,@LIBS@,$LIBS,;t t |
| 5154 | s,@CC@,$CC,;t t |
| 5155 | s,@CFLAGS@,$CFLAGS,;t t |
| 5156 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 5157 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 5158 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 5159 | s,@EXEEXT@,$EXEEXT,;t t |
| 5160 | s,@OBJEXT@,$OBJEXT,;t t |
| 5161 | s,@CXX@,$CXX,;t t |
| 5162 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
| 5163 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
| 5164 | s,@RANLIB@,$RANLIB,;t t |
| 5165 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 5166 | s,@SET_MAKE@,$SET_MAKE,;t t |
| 5167 | s,@MITSHM_CPPFLAGS@,$MITSHM_CPPFLAGS,;t t |
| 5168 | s,@CXXCPP@,$CXXCPP,;t t |
| 5169 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
| 5170 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t |
| 5171 | s,@X_LIBS@,$X_LIBS,;t t |
| 5172 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t |
| 5173 | s,@ZLIB_DIR@,$ZLIB_DIR,;t t |
| 5174 | s,@ZLIB_INCLUDE@,$ZLIB_INCLUDE,;t t |
| 5175 | s,@ZLIB_LIB@,$ZLIB_LIB,;t t |
| 5176 | s,@VSNPRINTF_DEFINE@,$VSNPRINTF_DEFINE,;t t |
| 5177 | s,@SOCKLEN_T_DEFINE@,$SOCKLEN_T_DEFINE,;t t |
| 5178 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 5179 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
| 5180 | CEOF |
| 5181 | |
| 5182 | _ACEOF |
| 5183 | |
| 5184 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 5185 | # Split the substitutions into bite-sized pieces for seds with |
| 5186 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 5187 | ac_max_sed_lines=48 |
| 5188 | ac_sed_frag=1 # Number of current file. |
| 5189 | ac_beg=1 # First line for current file. |
| 5190 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 5191 | ac_more_lines=: |
| 5192 | ac_sed_cmds= |
| 5193 | while $ac_more_lines; do |
| 5194 | if test $ac_beg -gt 1; then |
| 5195 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 5196 | else |
| 5197 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 5198 | fi |
| 5199 | if test ! -s $tmp/subs.frag; then |
| 5200 | ac_more_lines=false |
| 5201 | else |
| 5202 | # The purpose of the label and of the branching condition is to |
| 5203 | # speed up the sed processing (if there are no `@' at all, there |
| 5204 | # is no need to browse any of the substitutions). |
| 5205 | # These are the two extra sed commands mentioned above. |
| 5206 | (echo ':t |
| 5207 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 5208 | if test -z "$ac_sed_cmds"; then |
| 5209 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 5210 | else |
| 5211 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 5212 | fi |
| 5213 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 5214 | ac_beg=$ac_end |
| 5215 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 5216 | fi |
| 5217 | done |
| 5218 | if test -z "$ac_sed_cmds"; then |
| 5219 | ac_sed_cmds=cat |
| 5220 | fi |
| 5221 | fi # test -n "$CONFIG_FILES" |
| 5222 | |
| 5223 | _ACEOF |
| 5224 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 5225 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 5226 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 5227 | case $ac_file in |
| 5228 | - | *:- | *:-:* ) # input from stdin |
| 5229 | cat >$tmp/stdin |
| 5230 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 5231 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 5232 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 5233 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 5234 | * ) ac_file_in=$ac_file.in ;; |
| 5235 | esac |
| 5236 | |
| 5237 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 5238 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 5239 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 5240 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 5241 | X"$ac_file" : 'X\(//\)$' \| \ |
| 5242 | X"$ac_file" : 'X\(/\)' \| \ |
| 5243 | . : '\(.\)' 2>/dev/null || |
| 5244 | echo X"$ac_file" | |
| 5245 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 5246 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 5247 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 5248 | /^X\(\/\).*/{ s//\1/; q; } |
| 5249 | s/.*/./; q'` |
| 5250 | { if $as_mkdir_p; then |
| 5251 | mkdir -p "$ac_dir" |
| 5252 | else |
| 5253 | as_dir="$ac_dir" |
| 5254 | as_dirs= |
| 5255 | while test ! -d "$as_dir"; do |
| 5256 | as_dirs="$as_dir $as_dirs" |
| 5257 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 5258 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 5259 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 5260 | X"$as_dir" : 'X\(//\)$' \| \ |
| 5261 | X"$as_dir" : 'X\(/\)' \| \ |
| 5262 | . : '\(.\)' 2>/dev/null || |
| 5263 | echo X"$as_dir" | |
| 5264 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 5265 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 5266 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 5267 | /^X\(\/\).*/{ s//\1/; q; } |
| 5268 | s/.*/./; q'` |
| 5269 | done |
| 5270 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 5271 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 5272 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 5273 | { (exit 1); exit 1; }; }; } |
| 5274 | |
| 5275 | ac_builddir=. |
| 5276 | |
| 5277 | if test "$ac_dir" != .; then |
| 5278 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 5279 | # A "../" for each directory in $ac_dir_suffix. |
| 5280 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 5281 | else |
| 5282 | ac_dir_suffix= ac_top_builddir= |
| 5283 | fi |
| 5284 | |
| 5285 | case $srcdir in |
| 5286 | .) # No --srcdir option. We are building in place. |
| 5287 | ac_srcdir=. |
| 5288 | if test -z "$ac_top_builddir"; then |
| 5289 | ac_top_srcdir=. |
| 5290 | else |
| 5291 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 5292 | fi ;; |
| 5293 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 5294 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 5295 | ac_top_srcdir=$srcdir ;; |
| 5296 | *) # Relative path. |
| 5297 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 5298 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 5299 | esac |
| 5300 | |
| 5301 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 5302 | # the directories may not exist. |
| 5303 | case `pwd` in |
| 5304 | .) ac_abs_builddir="$ac_dir";; |
| 5305 | *) |
| 5306 | case "$ac_dir" in |
| 5307 | .) ac_abs_builddir=`pwd`;; |
| 5308 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 5309 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 5310 | esac;; |
| 5311 | esac |
| 5312 | case $ac_abs_builddir in |
| 5313 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 5314 | *) |
| 5315 | case ${ac_top_builddir}. in |
| 5316 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 5317 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 5318 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 5319 | esac;; |
| 5320 | esac |
| 5321 | case $ac_abs_builddir in |
| 5322 | .) ac_abs_srcdir=$ac_srcdir;; |
| 5323 | *) |
| 5324 | case $ac_srcdir in |
| 5325 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 5326 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 5327 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 5328 | esac;; |
| 5329 | esac |
| 5330 | case $ac_abs_builddir in |
| 5331 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 5332 | *) |
| 5333 | case $ac_top_srcdir in |
| 5334 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 5335 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 5336 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 5337 | esac;; |
| 5338 | esac |
| 5339 | |
| 5340 | |
| 5341 | |
| 5342 | if test x"$ac_file" != x-; then |
| 5343 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 5344 | echo "$as_me: creating $ac_file" >&6;} |
| 5345 | rm -f "$ac_file" |
| 5346 | fi |
| 5347 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 5348 | # use $as_me), people would be surprised to read: |
| 5349 | # /* config.h. Generated by config.status. */ |
| 5350 | if test x"$ac_file" = x-; then |
| 5351 | configure_input= |
| 5352 | else |
| 5353 | configure_input="$ac_file. " |
| 5354 | fi |
| 5355 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 5356 | sed 's,.*/,,'` by configure." |
| 5357 | |
| 5358 | # First look for the input files in the build tree, otherwise in the |
| 5359 | # src tree. |
| 5360 | ac_file_inputs=`IFS=: |
| 5361 | for f in $ac_file_in; do |
| 5362 | case $f in |
| 5363 | -) echo $tmp/stdin ;; |
| 5364 | [\\/$]*) |
| 5365 | # Absolute (can't be DOS-style, as IFS=:) |
| 5366 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 5367 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 5368 | { (exit 1); exit 1; }; } |
| 5369 | echo "$f";; |
| 5370 | *) # Relative |
| 5371 | if test -f "$f"; then |
| 5372 | # Build tree |
| 5373 | echo "$f" |
| 5374 | elif test -f "$srcdir/$f"; then |
| 5375 | # Source tree |
| 5376 | echo "$srcdir/$f" |
| 5377 | else |
| 5378 | # /dev/null tree |
| 5379 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 5380 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 5381 | { (exit 1); exit 1; }; } |
| 5382 | fi;; |
| 5383 | esac |
| 5384 | done` || { (exit 1); exit 1; } |
| 5385 | _ACEOF |
| 5386 | cat >>$CONFIG_STATUS <<_ACEOF |
| 5387 | sed "$ac_vpsub |
| 5388 | $extrasub |
| 5389 | _ACEOF |
| 5390 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 5391 | :t |
| 5392 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 5393 | s,@configure_input@,$configure_input,;t t |
| 5394 | s,@srcdir@,$ac_srcdir,;t t |
| 5395 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 5396 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 5397 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 5398 | s,@builddir@,$ac_builddir,;t t |
| 5399 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 5400 | s,@top_builddir@,$ac_top_builddir,;t t |
| 5401 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 5402 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 5403 | rm -f $tmp/stdin |
| 5404 | if test x"$ac_file" != x-; then |
| 5405 | mv $tmp/out $ac_file |
| 5406 | else |
| 5407 | cat $tmp/out |
| 5408 | rm -f $tmp/out |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 5409 | fi |
| 5410 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 5411 | done |
| 5412 | _ACEOF |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 5413 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 5414 | cat >>$CONFIG_STATUS <<\_ACEOF |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 5415 | |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 5416 | { (exit 0); exit 0; } |
| 5417 | _ACEOF |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 5418 | chmod +x $CONFIG_STATUS |
Peter Åstrand | e713b14 | 2004-11-16 13:29:40 +0000 | [diff] [blame^] | 5419 | ac_clean_files=$ac_clean_files_save |
| 5420 | |
| 5421 | |
| 5422 | # configure is writing to config.log, and then calls config.status. |
| 5423 | # config.status does its own redirection, appending to config.log. |
| 5424 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 5425 | # by configure, so config.status won't be able to write to it; its |
| 5426 | # output is simply discarded. So we exec the FD to /dev/null, |
| 5427 | # effectively closing config.log, so it can be properly (re)opened and |
| 5428 | # appended to by config.status. When coming back to configure, we |
| 5429 | # need to make the FD available again. |
| 5430 | if test "$no_create" != yes; then |
| 5431 | ac_cs_success=: |
| 5432 | ac_config_status_args= |
| 5433 | test "$silent" = yes && |
| 5434 | ac_config_status_args="$ac_config_status_args --quiet" |
| 5435 | exec 5>/dev/null |
| 5436 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 5437 | exec 5>>config.log |
| 5438 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 5439 | # would make configure fail if this is the last instruction. |
| 5440 | $ac_cs_success || { (exit 1); exit 1; } |
| 5441 | fi |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 5442 | |