Annotation of /slony1-engine/configure
Parent Directory
|
Revision Log
|
Revision Graph
Revision 1.15 - (view) (download)
| 1 : | wieck | 1.1 | #! /bin/sh |
| 2 : | # Guess values for system-dependent variables and create Makefiles. | ||
| 3 : | wieck | 1.14 | # Generated by GNU Autoconf 2.57 for slony1-engine 20040330. |
| 4 : | wieck | 1.1 | # |
| 5 : | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 | ||
| 6 : | # Free Software Foundation, Inc. | ||
| 7 : | # This configure script is free software; the Free Software Foundation | ||
| 8 : | # gives unlimited permission to copy, distribute and modify it. | ||
| 9 : | ## --------------------- ## | ||
| 10 : | ## M4sh Initialization. ## | ||
| 11 : | ## --------------------- ## | ||
| 12 : | |||
| 13 : | # Be Bourne compatible | ||
| 14 : | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
| 15 : | emulate sh | ||
| 16 : | NULLCMD=: | ||
| 17 : | wieck | 1.14 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 18 : | # is contrary to our usage. Disable this feature. | ||
| 19 : | alias -g '${1+"$@"}'='"$@"' | ||
| 20 : | wieck | 1.1 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 21 : | set -o posix | ||
| 22 : | fi | ||
| 23 : | |||
| 24 : | # Support unset when possible. | ||
| 25 : | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | ||
| 26 : | as_unset=unset | ||
| 27 : | else | ||
| 28 : | as_unset=false | ||
| 29 : | fi | ||
| 30 : | |||
| 31 : | wieck | 1.14 | |
| 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 -n "`(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 : | wieck | 1.1 | |
| 64 : | |||
| 65 : | # Name of the executable. | ||
| 66 : | wieck | 1.14 | as_me=`$as_basename "$0" || |
| 67 : | wieck | 1.1 | $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 : | wieck | 1.14 | |
| 78 : | wieck | 1.1 | # 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 : | wieck | 1.14 | 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 : | wieck | 1.1 | PATH_SEPARATOR=';' |
| 93 : | else | ||
| 94 : | PATH_SEPARATOR=: | ||
| 95 : | fi | ||
| 96 : | wieck | 1.14 | rm -f conf$$.sh |
| 97 : | wieck | 1.1 | 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 : | wieck | 1.14 | $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 : | wieck | 1.1 | 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 : | wieck | 1.14 | if mkdir -p . 2>/dev/null; then |
| 219 : | as_mkdir_p=: | ||
| 220 : | else | ||
| 221 : | as_mkdir_p=false | ||
| 222 : | fi | ||
| 223 : | |||
| 224 : | wieck | 1.1 | as_executable_p="test -f" |
| 225 : | |||
| 226 : | # Sed expression to map a string onto a valid CPP name. | ||
| 227 : | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | ||
| 228 : | |||
| 229 : | # Sed expression to map a string onto a valid variable name. | ||
| 230 : | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | ||
| 231 : | |||
| 232 : | |||
| 233 : | # IFS | ||
| 234 : | # We need space, tab and new line, in precisely that order. | ||
| 235 : | as_nl=' | ||
| 236 : | ' | ||
| 237 : | IFS=" $as_nl" | ||
| 238 : | |||
| 239 : | # CDPATH. | ||
| 240 : | wieck | 1.14 | $as_unset CDPATH |
| 241 : | wieck | 1.1 | |
| 242 : | |||
| 243 : | # Name of the host. | ||
| 244 : | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | ||
| 245 : | # so uname gets run too. | ||
| 246 : | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | ||
| 247 : | |||
| 248 : | exec 6>&1 | ||
| 249 : | |||
| 250 : | # | ||
| 251 : | # Initializations. | ||
| 252 : | # | ||
| 253 : | ac_default_prefix=/usr/local | ||
| 254 : | wieck | 1.14 | ac_config_libobj_dir=. |
| 255 : | wieck | 1.1 | cross_compiling=no |
| 256 : | subdirs= | ||
| 257 : | MFLAGS= | ||
| 258 : | MAKEFLAGS= | ||
| 259 : | SHELL=${CONFIG_SHELL-/bin/sh} | ||
| 260 : | |||
| 261 : | # Maximum number of lines to put in a shell here document. | ||
| 262 : | # This variable seems obsolete. It should probably be removed, and | ||
| 263 : | # only ac_max_sed_lines should be used. | ||
| 264 : | : ${ac_max_here_lines=38} | ||
| 265 : | |||
| 266 : | # Identity of this package. | ||
| 267 : | wieck | 1.12 | PACKAGE_NAME='slony1-engine' |
| 268 : | PACKAGE_TARNAME='slony1-engine' | ||
| 269 : | wieck | 1.14 | PACKAGE_VERSION='20040330' |
| 270 : | PACKAGE_STRING='slony1-engine 20040330' | ||
| 271 : | wieck | 1.12 | PACKAGE_BUGREPORT='' |
| 272 : | wieck | 1.1 | |
| 273 : | ac_unique_file="src" | ||
| 274 : | wieck | 1.14 | 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LD with_gnu_ld acx_pthread_config PTHREAD_CC PTHREAD_LIBS PTHREAD_CFLAGS PGSOURCETREE LIBOBJS LTLIBOBJS' |
| 275 : | ac_subst_files='' | ||
| 276 : | wieck | 1.1 | |
| 277 : | # Initialize some variables set by options. | ||
| 278 : | ac_init_help= | ||
| 279 : | ac_init_version=false | ||
| 280 : | # The variables have the same names as the options, with | ||
| 281 : | # dashes changed to underlines. | ||
| 282 : | cache_file=/dev/null | ||
| 283 : | exec_prefix=NONE | ||
| 284 : | no_create= | ||
| 285 : | no_recursion= | ||
| 286 : | prefix=NONE | ||
| 287 : | program_prefix=NONE | ||
| 288 : | program_suffix=NONE | ||
| 289 : | program_transform_name=s,x,x, | ||
| 290 : | silent= | ||
| 291 : | site= | ||
| 292 : | srcdir= | ||
| 293 : | verbose= | ||
| 294 : | x_includes=NONE | ||
| 295 : | x_libraries=NONE | ||
| 296 : | |||
| 297 : | # Installation directory options. | ||
| 298 : | # These are left unexpanded so users can "make install exec_prefix=/foo" | ||
| 299 : | # and all the variables that are supposed to be based on exec_prefix | ||
| 300 : | # by default will actually change. | ||
| 301 : | # Use braces instead of parens because sh, perl, etc. also accept them. | ||
| 302 : | bindir='${exec_prefix}/bin' | ||
| 303 : | sbindir='${exec_prefix}/sbin' | ||
| 304 : | libexecdir='${exec_prefix}/libexec' | ||
| 305 : | datadir='${prefix}/share' | ||
| 306 : | sysconfdir='${prefix}/etc' | ||
| 307 : | sharedstatedir='${prefix}/com' | ||
| 308 : | localstatedir='${prefix}/var' | ||
| 309 : | libdir='${exec_prefix}/lib' | ||
| 310 : | includedir='${prefix}/include' | ||
| 311 : | oldincludedir='/usr/include' | ||
| 312 : | infodir='${prefix}/info' | ||
| 313 : | mandir='${prefix}/man' | ||
| 314 : | |||
| 315 : | ac_prev= | ||
| 316 : | for ac_option | ||
| 317 : | do | ||
| 318 : | # If the previous option needs an argument, assign it. | ||
| 319 : | if test -n "$ac_prev"; then | ||
| 320 : | eval "$ac_prev=\$ac_option" | ||
| 321 : | ac_prev= | ||
| 322 : | continue | ||
| 323 : | fi | ||
| 324 : | |||
| 325 : | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | ||
| 326 : | |||
| 327 : | # Accept the important Cygnus configure options, so we can diagnose typos. | ||
| 328 : | |||
| 329 : | case $ac_option in | ||
| 330 : | |||
| 331 : | -bindir | --bindir | --bindi | --bind | --bin | --bi) | ||
| 332 : | ac_prev=bindir ;; | ||
| 333 : | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | ||
| 334 : | bindir=$ac_optarg ;; | ||
| 335 : | |||
| 336 : | -build | --build | --buil | --bui | --bu) | ||
| 337 : | ac_prev=build_alias ;; | ||
| 338 : | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | ||
| 339 : | build_alias=$ac_optarg ;; | ||
| 340 : | |||
| 341 : | -cache-file | --cache-file | --cache-fil | --cache-fi \ | ||
| 342 : | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | ||
| 343 : | ac_prev=cache_file ;; | ||
| 344 : | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | ||
| 345 : | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | ||
| 346 : | cache_file=$ac_optarg ;; | ||
| 347 : | |||
| 348 : | --config-cache | -C) | ||
| 349 : | cache_file=config.cache ;; | ||
| 350 : | |||
| 351 : | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | ||
| 352 : | ac_prev=datadir ;; | ||
| 353 : | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | ||
| 354 : | | --da=*) | ||
| 355 : | datadir=$ac_optarg ;; | ||
| 356 : | |||
| 357 : | -disable-* | --disable-*) | ||
| 358 : | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | ||
| 359 : | # Reject names that are not valid shell variable names. | ||
| 360 : | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
| 361 : | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | ||
| 362 : | { (exit 1); exit 1; }; } | ||
| 363 : | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | ||
| 364 : | eval "enable_$ac_feature=no" ;; | ||
| 365 : | |||
| 366 : | -enable-* | --enable-*) | ||
| 367 : | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | ||
| 368 : | # Reject names that are not valid shell variable names. | ||
| 369 : | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
| 370 : | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | ||
| 371 : | { (exit 1); exit 1; }; } | ||
| 372 : | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | ||
| 373 : | case $ac_option in | ||
| 374 : | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | ||
| 375 : | *) ac_optarg=yes ;; | ||
| 376 : | esac | ||
| 377 : | eval "enable_$ac_feature='$ac_optarg'" ;; | ||
| 378 : | |||
| 379 : | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | ||
| 380 : | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | ||
| 381 : | | --exec | --exe | --ex) | ||
| 382 : | ac_prev=exec_prefix ;; | ||
| 383 : | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | ||
| 384 : | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | ||
| 385 : | | --exec=* | --exe=* | --ex=*) | ||
| 386 : | exec_prefix=$ac_optarg ;; | ||
| 387 : | |||
| 388 : | -gas | --gas | --ga | --g) | ||
| 389 : | # Obsolete; use --with-gas. | ||
| 390 : | with_gas=yes ;; | ||
| 391 : | |||
| 392 : | -help | --help | --hel | --he | -h) | ||
| 393 : | ac_init_help=long ;; | ||
| 394 : | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | ||
| 395 : | ac_init_help=recursive ;; | ||
| 396 : | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | ||
| 397 : | ac_init_help=short ;; | ||
| 398 : | |||
| 399 : | -host | --host | --hos | --ho) | ||
| 400 : | ac_prev=host_alias ;; | ||
| 401 : | -host=* | --host=* | --hos=* | --ho=*) | ||
| 402 : | host_alias=$ac_optarg ;; | ||
| 403 : | |||
| 404 : | -includedir | --includedir | --includedi | --included | --include \ | ||
| 405 : | | --includ | --inclu | --incl | --inc) | ||
| 406 : | ac_prev=includedir ;; | ||
| 407 : | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | ||
| 408 : | | --includ=* | --inclu=* | --incl=* | --inc=*) | ||
| 409 : | includedir=$ac_optarg ;; | ||
| 410 : | |||
| 411 : | -infodir | --infodir | --infodi | --infod | --info | --inf) | ||
| 412 : | ac_prev=infodir ;; | ||
| 413 : | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | ||
| 414 : | infodir=$ac_optarg ;; | ||
| 415 : | |||
| 416 : | -libdir | --libdir | --libdi | --libd) | ||
| 417 : | ac_prev=libdir ;; | ||
| 418 : | -libdir=* | --libdir=* | --libdi=* | --libd=*) | ||
| 419 : | libdir=$ac_optarg ;; | ||
| 420 : | |||
| 421 : | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | ||
| 422 : | | --libexe | --libex | --libe) | ||
| 423 : | ac_prev=libexecdir ;; | ||
| 424 : | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | ||
| 425 : | | --libexe=* | --libex=* | --libe=*) | ||
| 426 : | libexecdir=$ac_optarg ;; | ||
| 427 : | |||
| 428 : | -localstatedir | --localstatedir | --localstatedi | --localstated \ | ||
| 429 : | | --localstate | --localstat | --localsta | --localst \ | ||
| 430 : | | --locals | --local | --loca | --loc | --lo) | ||
| 431 : | ac_prev=localstatedir ;; | ||
| 432 : | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | ||
| 433 : | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | ||
| 434 : | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | ||
| 435 : | localstatedir=$ac_optarg ;; | ||
| 436 : | |||
| 437 : | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | ||
| 438 : | ac_prev=mandir ;; | ||
| 439 : | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | ||
| 440 : | mandir=$ac_optarg ;; | ||
| 441 : | |||
| 442 : | -nfp | --nfp | --nf) | ||
| 443 : | # Obsolete; use --without-fp. | ||
| 444 : | with_fp=no ;; | ||
| 445 : | |||
| 446 : | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
| 447 : | | --no-cr | --no-c | -n) | ||
| 448 : | no_create=yes ;; | ||
| 449 : | |||
| 450 : | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
| 451 : | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | ||
| 452 : | no_recursion=yes ;; | ||
| 453 : | |||
| 454 : | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | ||
| 455 : | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | ||
| 456 : | | --oldin | --oldi | --old | --ol | --o) | ||
| 457 : | ac_prev=oldincludedir ;; | ||
| 458 : | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | ||
| 459 : | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | ||
| 460 : | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | ||
| 461 : | oldincludedir=$ac_optarg ;; | ||
| 462 : | |||
| 463 : | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | ||
| 464 : | ac_prev=prefix ;; | ||
| 465 : | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | ||
| 466 : | prefix=$ac_optarg ;; | ||
| 467 : | |||
| 468 : | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | ||
| 469 : | | --program-pre | --program-pr | --program-p) | ||
| 470 : | ac_prev=program_prefix ;; | ||
| 471 : | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | ||
| 472 : | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | ||
| 473 : | program_prefix=$ac_optarg ;; | ||
| 474 : | |||
| 475 : | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | ||
| 476 : | | --program-suf | --program-su | --program-s) | ||
| 477 : | ac_prev=program_suffix ;; | ||
| 478 : | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | ||
| 479 : | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | ||
| 480 : | program_suffix=$ac_optarg ;; | ||
| 481 : | |||
| 482 : | -program-transform-name | --program-transform-name \ | ||
| 483 : | | --program-transform-nam | --program-transform-na \ | ||
| 484 : | | --program-transform-n | --program-transform- \ | ||
| 485 : | | --program-transform | --program-transfor \ | ||
| 486 : | | --program-transfo | --program-transf \ | ||
| 487 : | | --program-trans | --program-tran \ | ||
| 488 : | | --progr-tra | --program-tr | --program-t) | ||
| 489 : | ac_prev=program_transform_name ;; | ||
| 490 : | -program-transform-name=* | --program-transform-name=* \ | ||
| 491 : | | --program-transform-nam=* | --program-transform-na=* \ | ||
| 492 : | | --program-transform-n=* | --program-transform-=* \ | ||
| 493 : | | --program-transform=* | --program-transfor=* \ | ||
| 494 : | | --program-transfo=* | --program-transf=* \ | ||
| 495 : | | --program-trans=* | --program-tran=* \ | ||
| 496 : | | --progr-tra=* | --program-tr=* | --program-t=*) | ||
| 497 : | program_transform_name=$ac_optarg ;; | ||
| 498 : | |||
| 499 : | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
| 500 : | | -silent | --silent | --silen | --sile | --sil) | ||
| 501 : | silent=yes ;; | ||
| 502 : | |||
| 503 : | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | ||
| 504 : | ac_prev=sbindir ;; | ||
| 505 : | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | ||
| 506 : | | --sbi=* | --sb=*) | ||
| 507 : | sbindir=$ac_optarg ;; | ||
| 508 : | |||
| 509 : | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | ||
| 510 : | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | ||
| 511 : | | --sharedst | --shareds | --shared | --share | --shar \ | ||
| 512 : | | --sha | --sh) | ||
| 513 : | ac_prev=sharedstatedir ;; | ||
| 514 : | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | ||
| 515 : | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | ||
| 516 : | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | ||
| 517 : | | --sha=* | --sh=*) | ||
| 518 : | sharedstatedir=$ac_optarg ;; | ||
| 519 : | |||
| 520 : | -site | --site | --sit) | ||
| 521 : | ac_prev=site ;; | ||
| 522 : | -site=* | --site=* | --sit=*) | ||
| 523 : | site=$ac_optarg ;; | ||
| 524 : | |||
| 525 : | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | ||
| 526 : | ac_prev=srcdir ;; | ||
| 527 : | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | ||
| 528 : | srcdir=$ac_optarg ;; | ||
| 529 : | |||
| 530 : | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | ||
| 531 : | | --syscon | --sysco | --sysc | --sys | --sy) | ||
| 532 : | ac_prev=sysconfdir ;; | ||
| 533 : | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | ||
| 534 : | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | ||
| 535 : | sysconfdir=$ac_optarg ;; | ||
| 536 : | |||
| 537 : | -target | --target | --targe | --targ | --tar | --ta | --t) | ||
| 538 : | ac_prev=target_alias ;; | ||
| 539 : | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | ||
| 540 : | target_alias=$ac_optarg ;; | ||
| 541 : | |||
| 542 : | -v | -verbose | --verbose | --verbos | --verbo | --verb) | ||
| 543 : | verbose=yes ;; | ||
| 544 : | |||
| 545 : | -version | --version | --versio | --versi | --vers | -V) | ||
| 546 : | ac_init_version=: ;; | ||
| 547 : | |||
| 548 : | -with-* | --with-*) | ||
| 549 : | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | ||
| 550 : | # Reject names that are not valid shell variable names. | ||
| 551 : | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
| 552 : | { echo "$as_me: error: invalid package name: $ac_package" >&2 | ||
| 553 : | { (exit 1); exit 1; }; } | ||
| 554 : | ac_package=`echo $ac_package| sed 's/-/_/g'` | ||
| 555 : | case $ac_option in | ||
| 556 : | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | ||
| 557 : | *) ac_optarg=yes ;; | ||
| 558 : | esac | ||
| 559 : | eval "with_$ac_package='$ac_optarg'" ;; | ||
| 560 : | |||
| 561 : | -without-* | --without-*) | ||
| 562 : | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | ||
| 563 : | # Reject names that are not valid shell variable names. | ||
| 564 : | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
| 565 : | { echo "$as_me: error: invalid package name: $ac_package" >&2 | ||
| 566 : | { (exit 1); exit 1; }; } | ||
| 567 : | ac_package=`echo $ac_package | sed 's/-/_/g'` | ||
| 568 : | eval "with_$ac_package=no" ;; | ||
| 569 : | |||
| 570 : | --x) | ||
| 571 : | # Obsolete; use --with-x. | ||
| 572 : | with_x=yes ;; | ||
| 573 : | |||
| 574 : | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | ||
| 575 : | | --x-incl | --x-inc | --x-in | --x-i) | ||
| 576 : | ac_prev=x_includes ;; | ||
| 577 : | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | ||
| 578 : | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | ||
| 579 : | x_includes=$ac_optarg ;; | ||
| 580 : | |||
| 581 : | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | ||
| 582 : | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | ||
| 583 : | ac_prev=x_libraries ;; | ||
| 584 : | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | ||
| 585 : | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | ||
| 586 : | x_libraries=$ac_optarg ;; | ||
| 587 : | |||
| 588 : | -*) { echo "$as_me: error: unrecognized option: $ac_option | ||
| 589 : | Try \`$0 --help' for more information." >&2 | ||
| 590 : | { (exit 1); exit 1; }; } | ||
| 591 : | ;; | ||
| 592 : | |||
| 593 : | *=*) | ||
| 594 : | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | ||
| 595 : | # Reject names that are not valid shell variable names. | ||
| 596 : | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | ||
| 597 : | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | ||
| 598 : | { (exit 1); exit 1; }; } | ||
| 599 : | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | ||
| 600 : | eval "$ac_envvar='$ac_optarg'" | ||
| 601 : | export $ac_envvar ;; | ||
| 602 : | |||
| 603 : | *) | ||
| 604 : | # FIXME: should be removed in autoconf 3.0. | ||
| 605 : | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | ||
| 606 : | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
| 607 : | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | ||
| 608 : | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | ||
| 609 : | ;; | ||
| 610 : | |||
| 611 : | esac | ||
| 612 : | done | ||
| 613 : | |||
| 614 : | if test -n "$ac_prev"; then | ||
| 615 : | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | ||
| 616 : | { echo "$as_me: error: missing argument to $ac_option" >&2 | ||
| 617 : | { (exit 1); exit 1; }; } | ||
| 618 : | fi | ||
| 619 : | |||
| 620 : | # Be sure to have absolute paths. | ||
| 621 : | for ac_var in exec_prefix prefix | ||
| 622 : | do | ||
| 623 : | eval ac_val=$`echo $ac_var` | ||
| 624 : | case $ac_val in | ||
| 625 : | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | ||
| 626 : | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | ||
| 627 : | { (exit 1); exit 1; }; };; | ||
| 628 : | esac | ||
| 629 : | done | ||
| 630 : | |||
| 631 : | # Be sure to have absolute paths. | ||
| 632 : | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | ||
| 633 : | localstatedir libdir includedir oldincludedir infodir mandir | ||
| 634 : | do | ||
| 635 : | eval ac_val=$`echo $ac_var` | ||
| 636 : | case $ac_val in | ||
| 637 : | [\\/$]* | ?:[\\/]* ) ;; | ||
| 638 : | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | ||
| 639 : | { (exit 1); exit 1; }; };; | ||
| 640 : | esac | ||
| 641 : | done | ||
| 642 : | |||
| 643 : | # There might be people who depend on the old broken behavior: `$host' | ||
| 644 : | # used to hold the argument of --host etc. | ||
| 645 : | # FIXME: To remove some day. | ||
| 646 : | build=$build_alias | ||
| 647 : | host=$host_alias | ||
| 648 : | target=$target_alias | ||
| 649 : | |||
| 650 : | # FIXME: To remove some day. | ||
| 651 : | if test "x$host_alias" != x; then | ||
| 652 : | if test "x$build_alias" = x; then | ||
| 653 : | cross_compiling=maybe | ||
| 654 : | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | ||
| 655 : | If a cross compiler is detected then cross compile mode will be used." >&2 | ||
| 656 : | elif test "x$build_alias" != "x$host_alias"; then | ||
| 657 : | cross_compiling=yes | ||
| 658 : | fi | ||
| 659 : | fi | ||
| 660 : | |||
| 661 : | ac_tool_prefix= | ||
| 662 : | test -n "$host_alias" && ac_tool_prefix=$host_alias- | ||
| 663 : | |||
| 664 : | test "$silent" = yes && exec 6>/dev/null | ||
| 665 : | |||
| 666 : | |||
| 667 : | # Find the source files, if location was not specified. | ||
| 668 : | if test -z "$srcdir"; then | ||
| 669 : | ac_srcdir_defaulted=yes | ||
| 670 : | # Try the directory containing this script, then its parent. | ||
| 671 : | ac_confdir=`(dirname "$0") 2>/dev/null || | ||
| 672 : | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
| 673 : | X"$0" : 'X\(//\)[^/]' \| \ | ||
| 674 : | X"$0" : 'X\(//\)$' \| \ | ||
| 675 : | X"$0" : 'X\(/\)' \| \ | ||
| 676 : | . : '\(.\)' 2>/dev/null || | ||
| 677 : | echo X"$0" | | ||
| 678 : | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
| 679 : | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
| 680 : | /^X\(\/\/\)$/{ s//\1/; q; } | ||
| 681 : | /^X\(\/\).*/{ s//\1/; q; } | ||
| 682 : | s/.*/./; q'` | ||
| 683 : | srcdir=$ac_confdir | ||
| 684 : | if test ! -r $srcdir/$ac_unique_file; then | ||
| 685 : | srcdir=.. | ||
| 686 : | fi | ||
| 687 : | else | ||
| 688 : | ac_srcdir_defaulted=no | ||
| 689 : | fi | ||
| 690 : | if test ! -r $srcdir/$ac_unique_file; then | ||
| 691 : | if test "$ac_srcdir_defaulted" = yes; then | ||
| 692 : | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | ||
| 693 : | { (exit 1); exit 1; }; } | ||
| 694 : | else | ||
| 695 : | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | ||
| 696 : | { (exit 1); exit 1; }; } | ||
| 697 : | fi | ||
| 698 : | fi | ||
| 699 : | wieck | 1.14 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
| 700 : | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | ||
| 701 : | { (exit 1); exit 1; }; } | ||
| 702 : | wieck | 1.1 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 703 : | ac_env_build_alias_set=${build_alias+set} | ||
| 704 : | ac_env_build_alias_value=$build_alias | ||
| 705 : | ac_cv_env_build_alias_set=${build_alias+set} | ||
| 706 : | ac_cv_env_build_alias_value=$build_alias | ||
| 707 : | ac_env_host_alias_set=${host_alias+set} | ||
| 708 : | ac_env_host_alias_value=$host_alias | ||
| 709 : | ac_cv_env_host_alias_set=${host_alias+set} | ||
| 710 : | ac_cv_env_host_alias_value=$host_alias | ||
| 711 : | ac_env_target_alias_set=${target_alias+set} | ||
| 712 : | ac_env_target_alias_value=$target_alias | ||
| 713 : | ac_cv_env_target_alias_set=${target_alias+set} | ||
| 714 : | ac_cv_env_target_alias_value=$target_alias | ||
| 715 : | ac_env_CC_set=${CC+set} | ||
| 716 : | ac_env_CC_value=$CC | ||
| 717 : | ac_cv_env_CC_set=${CC+set} | ||
| 718 : | ac_cv_env_CC_value=$CC | ||
| 719 : | ac_env_CFLAGS_set=${CFLAGS+set} | ||
| 720 : | ac_env_CFLAGS_value=$CFLAGS | ||
| 721 : | ac_cv_env_CFLAGS_set=${CFLAGS+set} | ||
| 722 : | ac_cv_env_CFLAGS_value=$CFLAGS | ||
| 723 : | ac_env_LDFLAGS_set=${LDFLAGS+set} | ||
| 724 : | ac_env_LDFLAGS_value=$LDFLAGS | ||
| 725 : | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | ||
| 726 : | ac_cv_env_LDFLAGS_value=$LDFLAGS | ||
| 727 : | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | ||
| 728 : | ac_env_CPPFLAGS_value=$CPPFLAGS | ||
| 729 : | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | ||
| 730 : | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | ||
| 731 : | |||
| 732 : | # | ||
| 733 : | # Report the --help message. | ||
| 734 : | # | ||
| 735 : | if test "$ac_init_help" = "long"; then | ||
| 736 : | # Omit some internal or obsolete options to make the list less imposing. | ||
| 737 : | # This message is too long to be a string in the A/UX 3.1 sh. | ||
| 738 : | cat <<_ACEOF | ||
| 739 : | wieck | 1.14 | \`configure' configures slony1-engine 20040330 to adapt to many kinds of systems. |
| 740 : | wieck | 1.1 | |
| 741 : | Usage: $0 [OPTION]... [VAR=VALUE]... | ||
| 742 : | |||
| 743 : | To assign environment variables (e.g., CC, CFLAGS...), specify them as | ||
| 744 : | VAR=VALUE. See below for descriptions of some of the useful variables. | ||
| 745 : | |||
| 746 : | Defaults for the options are specified in brackets. | ||
| 747 : | |||
| 748 : | Configuration: | ||
| 749 : | -h, --help display this help and exit | ||
| 750 : | --help=short display options specific to this package | ||
| 751 : | --help=recursive display the short help of all the included packages | ||
| 752 : | -V, --version display version information and exit | ||
| 753 : | -q, --quiet, --silent do not print \`checking...' messages | ||
| 754 : | --cache-file=FILE cache test results in FILE [disabled] | ||
| 755 : | -C, --config-cache alias for \`--cache-file=config.cache' | ||
| 756 : | -n, --no-create do not create output files | ||
| 757 : | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | ||
| 758 : | |||
| 759 : | _ACEOF | ||
| 760 : | |||
| 761 : | cat <<_ACEOF | ||
| 762 : | Installation directories: | ||
| 763 : | --prefix=PREFIX install architecture-independent files in PREFIX | ||
| 764 : | [$ac_default_prefix] | ||
| 765 : | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | ||
| 766 : | [PREFIX] | ||
| 767 : | |||
| 768 : | By default, \`make install' will install all the files in | ||
| 769 : | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | ||
| 770 : | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | ||
| 771 : | for instance \`--prefix=\$HOME'. | ||
| 772 : | |||
| 773 : | For better control, use the options below. | ||
| 774 : | |||
| 775 : | Fine tuning of the installation directories: | ||
| 776 : | --bindir=DIR user executables [EPREFIX/bin] | ||
| 777 : | --sbindir=DIR system admin executables [EPREFIX/sbin] | ||
| 778 : | --libexecdir=DIR program executables [EPREFIX/libexec] | ||
| 779 : | --datadir=DIR read-only architecture-independent data [PREFIX/share] | ||
| 780 : | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | ||
| 781 : | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | ||
| 782 : | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | ||
| 783 : | --libdir=DIR object code libraries [EPREFIX/lib] | ||
| 784 : | --includedir=DIR C header files [PREFIX/include] | ||
| 785 : | --oldincludedir=DIR C header files for non-gcc [/usr/include] | ||
| 786 : | --infodir=DIR info documentation [PREFIX/info] | ||
| 787 : | --mandir=DIR man documentation [PREFIX/man] | ||
| 788 : | _ACEOF | ||
| 789 : | |||
| 790 : | cat <<\_ACEOF | ||
| 791 : | |||
| 792 : | System types: | ||
| 793 : | --build=BUILD configure for building on BUILD [guessed] | ||
| 794 : | --host=HOST cross-compile to build programs to run on HOST [BUILD] | ||
| 795 : | _ACEOF | ||
| 796 : | fi | ||
| 797 : | |||
| 798 : | if test -n "$ac_init_help"; then | ||
| 799 : | case $ac_init_help in | ||
| 800 : | wieck | 1.14 | short | recursive ) echo "Configuration of slony1-engine 20040330:";; |
| 801 : | wieck | 1.1 | esac |
| 802 : | cat <<\_ACEOF | ||
| 803 : | |||
| 804 : | Optional Packages: | ||
| 805 : | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||
| 806 : | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | ||
| 807 : | --with-gnu-ld assume the C compiler uses GNU ld default=no | ||
| 808 : | wieck | 1.14 | --with-pgsourcetree=<dir> Location of PostgreSQL source tree |
| 809 : | wieck | 1.1 | |
| 810 : | Some influential environment variables: | ||
| 811 : | CC C compiler command | ||
| 812 : | CFLAGS C compiler flags | ||
| 813 : | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | ||
| 814 : | nonstandard directory <lib dir> | ||
| 815 : | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | ||
| 816 : | headers in a nonstandard directory <include dir> | ||
| 817 : | |||
| 818 : | Use these variables to override the choices made by `configure' or to help | ||
| 819 : | it to find libraries and programs with nonstandard names/locations. | ||
| 820 : | |||
| 821 : | _ACEOF | ||
| 822 : | fi | ||
| 823 : | |||
| 824 : | if test "$ac_init_help" = "recursive"; then | ||
| 825 : | # If there are subdirs, report their specific --help. | ||
| 826 : | ac_popdir=`pwd` | ||
| 827 : | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | ||
| 828 : | test -d $ac_dir || continue | ||
| 829 : | ac_builddir=. | ||
| 830 : | |||
| 831 : | if test "$ac_dir" != .; then | ||
| 832 : | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | ||
| 833 : | # A "../" for each directory in $ac_dir_suffix. | ||
| 834 : | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | ||
| 835 : | else | ||
| 836 : | ac_dir_suffix= ac_top_builddir= | ||
| 837 : | fi | ||
| 838 : | |||
| 839 : | case $srcdir in | ||
| 840 : | .) # No --srcdir option. We are building in place. | ||
| 841 : | ac_srcdir=. | ||
| 842 : | if test -z "$ac_top_builddir"; then | ||
| 843 : | ac_top_srcdir=. | ||
| 844 : | else | ||
| 845 : | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | ||
| 846 : | fi ;; | ||
| 847 : | [\\/]* | ?:[\\/]* ) # Absolute path. | ||
| 848 : | ac_srcdir=$srcdir$ac_dir_suffix; | ||
| 849 : | ac_top_srcdir=$srcdir ;; | ||
| 850 : | *) # Relative path. | ||
| 851 : | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | ||
| 852 : | ac_top_srcdir=$ac_top_builddir$srcdir ;; | ||
| 853 : | esac | ||
| 854 : | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | ||
| 855 : | # absolute. | ||
| 856 : | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | ||
| 857 : | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | ||
| 858 : | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | ||
| 859 : | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | ||
| 860 : | |||
| 861 : | cd $ac_dir | ||
| 862 : | # Check for guested configure; otherwise get Cygnus style configure. | ||
| 863 : | if test -f $ac_srcdir/configure.gnu; then | ||
| 864 : | echo | ||
| 865 : | $SHELL $ac_srcdir/configure.gnu --help=recursive | ||
| 866 : | elif test -f $ac_srcdir/configure; then | ||
| 867 : | echo | ||
| 868 : | $SHELL $ac_srcdir/configure --help=recursive | ||
| 869 : | elif test -f $ac_srcdir/configure.ac || | ||
| 870 : | test -f $ac_srcdir/configure.in; then | ||
| 871 : | echo | ||
| 872 : | $ac_configure --help | ||
| 873 : | else | ||
| 874 : | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | ||
| 875 : | fi | ||
| 876 : | cd $ac_popdir | ||
| 877 : | done | ||
| 878 : | fi | ||
| 879 : | |||
| 880 : | test -n "$ac_init_help" && exit 0 | ||
| 881 : | if $ac_init_version; then | ||
| 882 : | cat <<\_ACEOF | ||
| 883 : | wieck | 1.14 | slony1-engine configure 20040330 |
| 884 : | generated by GNU Autoconf 2.57 | ||
| 885 : | wieck | 1.1 | |
| 886 : | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 | ||
| 887 : | Free Software Foundation, Inc. | ||
| 888 : | This configure script is free software; the Free Software Foundation | ||
| 889 : | gives unlimited permission to copy, distribute and modify it. | ||
| 890 : | _ACEOF | ||
| 891 : | exit 0 | ||
| 892 : | fi | ||
| 893 : | exec 5>config.log | ||
| 894 : | cat >&5 <<_ACEOF | ||
| 895 : | This file contains any messages produced by compilers while | ||
| 896 : | running configure, to aid debugging if configure makes a mistake. | ||
| 897 : | |||
| 898 : | wieck | 1.14 | It was created by slony1-engine $as_me 20040330, which was |
| 899 : | generated by GNU Autoconf 2.57. Invocation command line was | ||
| 900 : | wieck | 1.1 | |
| 901 : | $ $0 $@ | ||
| 902 : | |||
| 903 : | _ACEOF | ||
| 904 : | { | ||
| 905 : | cat <<_ASUNAME | ||
| 906 : | ## --------- ## | ||
| 907 : | ## Platform. ## | ||
| 908 : | ## --------- ## | ||
| 909 : | |||
| 910 : | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
| 911 : | uname -m = `(uname -m) 2>/dev/null || echo unknown` | ||
| 912 : | uname -r = `(uname -r) 2>/dev/null || echo unknown` | ||
| 913 : | uname -s = `(uname -s) 2>/dev/null || echo unknown` | ||
| 914 : | uname -v = `(uname -v) 2>/dev/null || echo unknown` | ||
| 915 : | |||
| 916 : | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | ||
| 917 : | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | ||
| 918 : | |||
| 919 : | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | ||
| 920 : | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | ||
| 921 : | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | ||
| 922 : | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | ||
| 923 : | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | ||
| 924 : | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | ||
| 925 : | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | ||
| 926 : | |||
| 927 : | _ASUNAME | ||
| 928 : | |||
| 929 : | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 930 : | for as_dir in $PATH | ||
| 931 : | do | ||
| 932 : | IFS=$as_save_IFS | ||
| 933 : | test -z "$as_dir" && as_dir=. | ||
| 934 : | echo "PATH: $as_dir" | ||
| 935 : | done | ||
| 936 : | |||
| 937 : | } >&5 | ||
| 938 : | |||
| 939 : | cat >&5 <<_ACEOF | ||
| 940 : | |||
| 941 : | |||
| 942 : | ## ----------- ## | ||
| 943 : | ## Core tests. ## | ||
| 944 : | ## ----------- ## | ||
| 945 : | |||
| 946 : | _ACEOF | ||
| 947 : | |||
| 948 : | |||
| 949 : | # Keep a trace of the command line. | ||
| 950 : | # Strip out --no-create and --no-recursion so they do not pile up. | ||
| 951 : | wieck | 1.14 | # Strip out --silent because we don't want to record it for future runs. |
| 952 : | wieck | 1.1 | # Also quote any args containing shell meta-characters. |
| 953 : | wieck | 1.14 | # Make two passes to allow for proper duplicate-argument suppression. |
| 954 : | wieck | 1.1 | ac_configure_args= |
| 955 : | wieck | 1.14 | ac_configure_args0= |
| 956 : | ac_configure_args1= | ||
| 957 : | wieck | 1.1 | ac_sep= |
| 958 : | wieck | 1.14 | ac_must_keep_next=false |
| 959 : | for ac_pass in 1 2 | ||
| 960 : | wieck | 1.1 | do |
| 961 : | wieck | 1.14 | for ac_arg |
| 962 : | do | ||
| 963 : | case $ac_arg in | ||
| 964 : | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | ||
| 965 : | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
| 966 : | | -silent | --silent | --silen | --sile | --sil) | ||
| 967 : | continue ;; | ||
| 968 : | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | ||
| 969 : | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
| 970 : | esac | ||
| 971 : | case $ac_pass in | ||
| 972 : | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | ||
| 973 : | 2) | ||
| 974 : | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | ||
| 975 : | if test $ac_must_keep_next = true; then | ||
| 976 : | ac_must_keep_next=false # Got value, back to normal. | ||
| 977 : | else | ||
| 978 : | case $ac_arg in | ||
| 979 : | *=* | --config-cache | -C | -disable-* | --disable-* \ | ||
| 980 : | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | ||
| 981 : | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | ||
| 982 : | | -with-* | --with-* | -without-* | --without-* | --x) | ||
| 983 : | case "$ac_configure_args0 " in | ||
| 984 : | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | ||
| 985 : | esac | ||
| 986 : | ;; | ||
| 987 : | -* ) ac_must_keep_next=true ;; | ||
| 988 : | esac | ||
| 989 : | fi | ||
| 990 : | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | ||
| 991 : | # Get rid of the leading space. | ||
| 992 : | ac_sep=" " | ||
| 993 : | ;; | ||
| 994 : | esac | ||
| 995 : | done | ||
| 996 : | wieck | 1.1 | done |
| 997 : | wieck | 1.14 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 998 : | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | ||
| 999 : | wieck | 1.1 | |
| 1000 : | # When interrupted or exit'd, cleanup temporary files, and complete | ||
| 1001 : | # config.log. We remove comments because anyway the quotes in there | ||
| 1002 : | # would cause problems or look ugly. | ||
| 1003 : | # WARNING: Be sure not to use single quotes in there, as some shells, | ||
| 1004 : | # such as our DU 5.0 friend, will then `close' the trap. | ||
| 1005 : | trap 'exit_status=$? | ||
| 1006 : | # Save into config.log some information that might help in debugging. | ||
| 1007 : | { | ||
| 1008 : | echo | ||
| 1009 : | wieck | 1.14 | |
| 1010 : | wieck | 1.1 | cat <<\_ASBOX |
| 1011 : | ## ---------------- ## | ||
| 1012 : | ## Cache variables. ## | ||
| 1013 : | ## ---------------- ## | ||
| 1014 : | _ASBOX | ||
| 1015 : | echo | ||
| 1016 : | # The following way of writing the cache mishandles newlines in values, | ||
| 1017 : | { | ||
| 1018 : | (set) 2>&1 | | ||
| 1019 : | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | ||
| 1020 : | *ac_space=\ *) | ||
| 1021 : | sed -n \ | ||
| 1022 : | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | ||
| 1023 : | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | ||
| 1024 : | ;; | ||
| 1025 : | *) | ||
| 1026 : | sed -n \ | ||
| 1027 : | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | ||
| 1028 : | ;; | ||
| 1029 : | esac; | ||
| 1030 : | } | ||
| 1031 : | echo | ||
| 1032 : | wieck | 1.14 | |
| 1033 : | cat <<\_ASBOX | ||
| 1034 : | ## ----------------- ## | ||
| 1035 : | ## Output variables. ## | ||
| 1036 : | ## ----------------- ## | ||
| 1037 : | _ASBOX | ||
| 1038 : | echo | ||
| 1039 : | for ac_var in $ac_subst_vars | ||
| 1040 : | do | ||
| 1041 : | eval ac_val=$`echo $ac_var` | ||
| 1042 : | echo "$ac_var='"'"'$ac_val'"'"'" | ||
| 1043 : | done | sort | ||
| 1044 : | echo | ||
| 1045 : | |||
| 1046 : | if test -n "$ac_subst_files"; then | ||
| 1047 : | cat <<\_ASBOX | ||
| 1048 : | ## ------------- ## | ||
| 1049 : | ## Output files. ## | ||
| 1050 : | ## ------------- ## | ||
| 1051 : | _ASBOX | ||
| 1052 : | echo | ||
| 1053 : | for ac_var in $ac_subst_files | ||
| 1054 : | do | ||
| 1055 : | eval ac_val=$`echo $ac_var` | ||
| 1056 : | echo "$ac_var='"'"'$ac_val'"'"'" | ||
| 1057 : | done | sort | ||
| 1058 : | echo | ||
| 1059 : | fi | ||
| 1060 : | |||
| 1061 : | wieck | 1.1 | if test -s confdefs.h; then |
| 1062 : | cat <<\_ASBOX | ||
| 1063 : | ## ----------- ## | ||
| 1064 : | ## confdefs.h. ## | ||
| 1065 : | ## ----------- ## | ||
| 1066 : | _ASBOX | ||
| 1067 : | echo | ||
| 1068 : | wieck | 1.14 | sed "/^$/d" confdefs.h | sort |
| 1069 : | wieck | 1.1 | echo |
| 1070 : | fi | ||
| 1071 : | test "$ac_signal" != 0 && | ||
| 1072 : | echo "$as_me: caught signal $ac_signal" | ||
| 1073 : | echo "$as_me: exit $exit_status" | ||
| 1074 : | } >&5 | ||
| 1075 : | rm -f core core.* *.core && | ||
| 1076 : | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | ||
| 1077 : | exit $exit_status | ||
| 1078 : | ' 0 | ||
| 1079 : | for ac_signal in 1 2 13 15; do | ||
| 1080 : | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | ||
| 1081 : | done | ||
| 1082 : | ac_signal=0 | ||
| 1083 : | |||
| 1084 : | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||
| 1085 : | rm -rf conftest* confdefs.h | ||
| 1086 : | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | ||
| 1087 : | echo >confdefs.h | ||
| 1088 : | |||
| 1089 : | # Predefined preprocessor variables. | ||
| 1090 : | |||
| 1091 : | cat >>confdefs.h <<_ACEOF | ||
| 1092 : | #define PACKAGE_NAME "$PACKAGE_NAME" | ||
| 1093 : | _ACEOF | ||
| 1094 : | |||
| 1095 : | |||
| 1096 : | cat >>confdefs.h <<_ACEOF | ||
| 1097 : | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | ||
| 1098 : | _ACEOF | ||
| 1099 : | |||
| 1100 : | |||
| 1101 : | cat >>confdefs.h <<_ACEOF | ||
| 1102 : | #define PACKAGE_VERSION "$PACKAGE_VERSION" | ||
| 1103 : | _ACEOF | ||
| 1104 : | |||
| 1105 : | |||
| 1106 : | cat >>confdefs.h <<_ACEOF | ||
| 1107 : | #define PACKAGE_STRING "$PACKAGE_STRING" | ||
| 1108 : | _ACEOF | ||
| 1109 : | |||
| 1110 : | |||
| 1111 : | cat >>confdefs.h <<_ACEOF | ||
| 1112 : | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | ||
| 1113 : | _ACEOF | ||
| 1114 : | |||
| 1115 : | |||
| 1116 : | # Let the site file select an alternate cache file if it wants to. | ||
| 1117 : | # Prefer explicitly selected file to automatically selected ones. | ||
| 1118 : | if test -z "$CONFIG_SITE"; then | ||
| 1119 : | if test "x$prefix" != xNONE; then | ||
| 1120 : | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | ||
| 1121 : | else | ||
| 1122 : | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | ||
| 1123 : | fi | ||
| 1124 : | fi | ||
| 1125 : | for ac_site_file in $CONFIG_SITE; do | ||
| 1126 : | if test -r "$ac_site_file"; then | ||
| 1127 : | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | ||
| 1128 : | echo "$as_me: loading site script $ac_site_file" >&6;} | ||
| 1129 : | sed 's/^/| /' "$ac_site_file" >&5 | ||
| 1130 : | . "$ac_site_file" | ||
| 1131 : | fi | ||
| 1132 : | done | ||
| 1133 : | |||
| 1134 : | if test -r "$cache_file"; then | ||
| 1135 : | # Some versions of bash will fail to source /dev/null (special | ||
| 1136 : | # files actually), so we avoid doing that. | ||
| 1137 : | if test -f "$cache_file"; then | ||
| 1138 : | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | ||
| 1139 : | echo "$as_me: loading cache $cache_file" >&6;} | ||
| 1140 : | case $cache_file in | ||
| 1141 : | [\\/]* | ?:[\\/]* ) . $cache_file;; | ||
| 1142 : | *) . ./$cache_file;; | ||
| 1143 : | esac | ||
| 1144 : | fi | ||
| 1145 : | else | ||
| 1146 : | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | ||
| 1147 : | echo "$as_me: creating cache $cache_file" >&6;} | ||
| 1148 : | >$cache_file | ||
| 1149 : | fi | ||
| 1150 : | |||
| 1151 : | # Check that the precious variables saved in the cache have kept the same | ||
| 1152 : | # value. | ||
| 1153 : | ac_cache_corrupted=false | ||
| 1154 : | for ac_var in `(set) 2>&1 | | ||
| 1155 : | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | ||
| 1156 : | eval ac_old_set=\$ac_cv_env_${ac_var}_set | ||
| 1157 : | eval ac_new_set=\$ac_env_${ac_var}_set | ||
| 1158 : | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | ||
| 1159 : | eval ac_new_val="\$ac_env_${ac_var}_value" | ||
| 1160 : | case $ac_old_set,$ac_new_set in | ||
| 1161 : | set,) | ||
| 1162 : | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | ||
| 1163 : | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | ||
| 1164 : | ac_cache_corrupted=: ;; | ||
| 1165 : | ,set) | ||
| 1166 : | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | ||
| 1167 : | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | ||
| 1168 : | ac_cache_corrupted=: ;; | ||
| 1169 : | ,);; | ||
| 1170 : | *) | ||
| 1171 : | if test "x$ac_old_val" != "x$ac_new_val"; then | ||
| 1172 : | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | ||
| 1173 : | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | ||
| 1174 : | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | ||
| 1175 : | echo "$as_me: former value: $ac_old_val" >&2;} | ||
| 1176 : | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | ||
| 1177 : | echo "$as_me: current value: $ac_new_val" >&2;} | ||
| 1178 : | ac_cache_corrupted=: | ||
| 1179 : | fi;; | ||
| 1180 : | esac | ||
| 1181 : | # Pass precious variables to config.status. | ||
| 1182 : | if test "$ac_new_set" = set; then | ||
| 1183 : | case $ac_new_val in | ||
| 1184 : | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | ||
| 1185 : | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
| 1186 : | *) ac_arg=$ac_var=$ac_new_val ;; | ||
| 1187 : | esac | ||
| 1188 : | case " $ac_configure_args " in | ||
| 1189 : | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | ||
| 1190 : | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | ||
| 1191 : | esac | ||
| 1192 : | fi | ||
| 1193 : | done | ||
| 1194 : | if $ac_cache_corrupted; then | ||
| 1195 : | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | ||
| 1196 : | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | ||
| 1197 : | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | ||
| 1198 : | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | ||
| 1199 : | { (exit 1); exit 1; }; } | ||
| 1200 : | fi | ||
| 1201 : | |||
| 1202 : | ac_ext=c | ||
| 1203 : | ac_cpp='$CPP $CPPFLAGS' | ||
| 1204 : | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
| 1205 : | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
| 1206 : | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
| 1207 : | |||
| 1208 : | |||
| 1209 : | |||
| 1210 : | |||
| 1211 : | |||
| 1212 : | |||
| 1213 : | |||
| 1214 : | |||
| 1215 : | |||
| 1216 : | |||
| 1217 : | |||
| 1218 : | |||
| 1219 : | |||
| 1220 : | |||
| 1221 : | |||
| 1222 : | |||
| 1223 : | |||
| 1224 : | |||
| 1225 : | |||
| 1226 : | |||
| 1227 : | |||
| 1228 : | |||
| 1229 : | |||
| 1230 : | |||
| 1231 : | |||
| 1232 : | |||
| 1233 : | wieck | 1.14 | |
| 1234 : | ac_config_headers="$ac_config_headers config.h" | ||
| 1235 : | wieck | 1.5 | |
| 1236 : | wieck | 1.1 | ac_aux_dir= |
| 1237 : | for ac_dir in config $srcdir/config; do | ||
| 1238 : | if test -f $ac_dir/install-sh; then | ||
| 1239 : | ac_aux_dir=$ac_dir | ||
| 1240 : | ac_install_sh="$ac_aux_dir/install-sh -c" | ||
| 1241 : | break | ||
| 1242 : | elif test -f $ac_dir/install.sh; then | ||
| 1243 : | ac_aux_dir=$ac_dir | ||
| 1244 : | ac_install_sh="$ac_aux_dir/install.sh -c" | ||
| 1245 : | break | ||
| 1246 : | elif test -f $ac_dir/shtool; then | ||
| 1247 : | ac_aux_dir=$ac_dir | ||
| 1248 : | ac_install_sh="$ac_aux_dir/shtool install -c" | ||
| 1249 : | break | ||
| 1250 : | fi | ||
| 1251 : | done | ||
| 1252 : | if test -z "$ac_aux_dir"; then | ||
| 1253 : | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5 | ||
| 1254 : | echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;} | ||
| 1255 : | { (exit 1); exit 1; }; } | ||
| 1256 : | fi | ||
| 1257 : | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | ||
| 1258 : | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | ||
| 1259 : | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | ||
| 1260 : | |||
| 1261 : | |||
| 1262 : | |||
| 1263 : | # Make sure we can run config.sub. | ||
| 1264 : | $ac_config_sub sun4 >/dev/null 2>&1 || | ||
| 1265 : | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | ||
| 1266 : | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | ||
| 1267 : | { (exit 1); exit 1; }; } | ||
| 1268 : | |||
| 1269 : | echo "$as_me:$LINENO: checking build system type" >&5 | ||
| 1270 : | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | ||
| 1271 : | if test "${ac_cv_build+set}" = set; then | ||
| 1272 : | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 1273 : | else | ||
| 1274 : | ac_cv_build_alias=$build_alias | ||
| 1275 : | test -z "$ac_cv_build_alias" && | ||
| 1276 : | ac_cv_build_alias=`$ac_config_guess` | ||
| 1277 : | test -z "$ac_cv_build_alias" && | ||
| 1278 : | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | ||
| 1279 : | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | ||
| 1280 : | { (exit 1); exit 1; }; } | ||
| 1281 : | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | ||
| 1282 : | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | ||
| 1283 : | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | ||
| 1284 : | { (exit 1); exit 1; }; } | ||
| 1285 : | |||
| 1286 : | fi | ||
| 1287 : | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | ||
| 1288 : | echo "${ECHO_T}$ac_cv_build" >&6 | ||
| 1289 : | build=$ac_cv_build | ||
| 1290 : | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | ||
| 1291 : | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | ||
| 1292 : | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | ||
| 1293 : | |||
| 1294 : | |||
| 1295 : | echo "$as_me:$LINENO: checking host system type" >&5 | ||
| 1296 : | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | ||
| 1297 : | if test "${ac_cv_host+set}" = set; then | ||
| 1298 : | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 1299 : | else | ||
| 1300 : | ac_cv_host_alias=$host_alias | ||
| 1301 : | test -z "$ac_cv_host_alias" && | ||
| 1302 : | ac_cv_host_alias=$ac_cv_build_alias | ||
| 1303 : | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | ||
| 1304 : | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | ||
| 1305 : | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | ||
| 1306 : | { (exit 1); exit 1; }; } | ||
| 1307 : | |||
| 1308 : | fi | ||
| 1309 : | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | ||
| 1310 : | echo "${ECHO_T}$ac_cv_host" >&6 | ||
| 1311 : | host=$ac_cv_host | ||
| 1312 : | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | ||
| 1313 : | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | ||
| 1314 : | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | ||
| 1315 : | |||
| 1316 : | |||
| 1317 : | |||
| 1318 : | template= | ||
| 1319 : | echo "$as_me:$LINENO: checking which template to use" >&5 | ||
| 1320 : | echo $ECHO_N "checking which template to use... $ECHO_C" >&6 | ||
| 1321 : | |||
| 1322 : | case $host_os in | ||
| 1323 : | aix*) template=aix ;; | ||
| 1324 : | beos*) template=beos ;; | ||
| 1325 : | bsdi*) template=bsdi ;; | ||
| 1326 : | cygwin*) template=win ;; | ||
| 1327 : | darwin*) template=darwin ;; | ||
| 1328 : | dgux*) template=dgux ;; | ||
| 1329 : | freebsd*) template=freebsd ;; | ||
| 1330 : | hpux*) template=hpux ;; | ||
| 1331 : | irix*) template=irix5 ;; | ||
| 1332 : | linux*) template=linux ;; | ||
| 1333 : | netbsd*) template=netbsd ;; | ||
| 1334 : | nextstep*) template=nextstep ;; | ||
| 1335 : | openbsd*) template=openbsd ;; | ||
| 1336 : | osf*) template=osf ;; | ||
| 1337 : | qnx*) template=qnx4 ;; | ||
| 1338 : | sco*) template=sco ;; | ||
| 1339 : | solaris*) template=solaris ;; | ||
| 1340 : | sunos*) template=sunos4 ;; | ||
| 1341 : | sysv4.2*) | ||
| 1342 : | case $host_vendor in | ||
| 1343 : | univel) template=univel ;; | ||
| 1344 : | esac ;; | ||
| 1345 : | sysv4*) template=svr4 ;; | ||
| 1346 : | sysv5*) template=unixware ;; | ||
| 1347 : | ultrix*) template=ultrix4 ;; | ||
| 1348 : | esac | ||
| 1349 : | |||
| 1350 : | echo "$as_me:$LINENO: result: $template" >&5 | ||
| 1351 : | echo "${ECHO_T}$template" >&6 | ||
| 1352 : | |||
| 1353 : | # Checks for programs. | ||
| 1354 : | ac_ext=c | ||
| 1355 : | ac_cpp='$CPP $CPPFLAGS' | ||
| 1356 : | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
| 1357 : | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
| 1358 : | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
| 1359 : | if test -n "$ac_tool_prefix"; then | ||
| 1360 : | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||
| 1361 : | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
| 1362 : | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
| 1363 : | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
| 1364 : | if test "${ac_cv_prog_CC+set}" = set; then | ||
| 1365 : | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 1366 : | else | ||
| 1367 : | if test -n "$CC"; then | ||
| 1368 : | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
| 1369 : | else | ||
| 1370 : | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 1371 : | for as_dir in $PATH | ||
| 1372 : | do | ||
| 1373 : | IFS=$as_save_IFS | ||
| 1374 : | test -z "$as_dir" && as_dir=. | ||
| 1375 : | for ac_exec_ext in '' $ac_executable_extensions; do | ||
| 1376 : | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
| 1377 : | ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
| 1378 : | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
| 1379 : | break 2 | ||
| 1380 : | fi | ||
| 1381 : | done | ||
| 1382 : | done | ||
| 1383 : | |||
| 1384 : | fi | ||
| 1385 : | fi | ||
| 1386 : | CC=$ac_cv_prog_CC | ||
| 1387 : | if test -n "$CC"; then | ||
| 1388 : | echo "$as_me:$LINENO: result: $CC" >&5 | ||
| 1389 : | echo "${ECHO_T}$CC" >&6 | ||
| 1390 : | else | ||
| 1391 : | echo "$as_me:$LINENO: result: no" >&5 | ||
| 1392 : | echo "${ECHO_T}no" >&6 | ||
| 1393 : | fi | ||
| 1394 : | |||
| 1395 : | fi | ||
| 1396 : | if test -z "$ac_cv_prog_CC"; then | ||
| 1397 : | ac_ct_CC=$CC | ||
| 1398 : | # Extract the first word of "gcc", so it can be a program name with args. | ||
| 1399 : | set dummy gcc; ac_word=$2 | ||
| 1400 : | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
| 1401 : | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
| 1402 : | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
| 1403 : | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 1404 : | else | ||
| 1405 : | if test -n "$ac_ct_CC"; then | ||
| 1406 : | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
| 1407 : | else | ||
| 1408 : | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 1409 : | for as_dir in $PATH | ||
| 1410 : | do | ||
| 1411 : | IFS=$as_save_IFS | ||
| 1412 : | test -z "$as_dir" && as_dir=. | ||
| 1413 : | for ac_exec_ext in '' $ac_executable_extensions; do | ||
| 1414 : | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
| 1415 : | ac_cv_prog_ac_ct_CC="gcc" | ||
| 1416 : | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
| 1417 : | break 2 | ||
| 1418 : | fi | ||
| 1419 : | done | ||
| 1420 : | done | ||
| 1421 : | |||
| 1422 : | fi | ||
| 1423 : | fi | ||
| 1424 : | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
| 1425 : | if test -n "$ac_ct_CC"; then | ||
| 1426 : | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
| 1427 : | echo "${ECHO_T}$ac_ct_CC" >&6 | ||
| 1428 : | else | ||
| 1429 : | echo "$as_me:$LINENO: result: no" >&5 | ||
| 1430 : | echo "${ECHO_T}no" >&6 | ||
| 1431 : | fi | ||
| 1432 : | |||
| 1433 : | CC=$ac_ct_CC | ||
| 1434 : | else | ||
| 1435 : | CC="$ac_cv_prog_CC" | ||
| 1436 : | fi | ||
| 1437 : | |||
| 1438 : | if test -z "$CC"; then | ||
| 1439 : | if test -n "$ac_tool_prefix"; then | ||
| 1440 : | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||
| 1441 : | set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
| 1442 : | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
| 1443 : | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
| 1444 : | if test "${ac_cv_prog_CC+set}" = set; then | ||
| 1445 : | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 1446 : | else | ||
| 1447 : | if test -n "$CC"; then | ||
| 1448 : | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
| 1449 : | else | ||
| 1450 : | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 1451 : | for as_dir in $PATH | ||
| 1452 : | do | ||
| 1453 : | IFS=$as_save_IFS | ||
| 1454 : | test -z "$as_dir" && as_dir=. | ||
| 1455 : | for ac_exec_ext in '' $ac_executable_extensions; do | ||
| 1456 : | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
| 1457 : | ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
| 1458 : | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
| 1459 : | break 2 | ||
| 1460 : | fi | ||
| 1461 : | done | ||
| 1462 : | done | ||
| 1463 : | |||
| 1464 : | fi | ||
| 1465 : | fi | ||
| 1466 : | CC=$ac_cv_prog_CC | ||
| 1467 : | if test -n "$CC"; then | ||
| 1468 : | echo "$as_me:$LINENO: result: $CC" >&5 | ||
| 1469 : | echo "${ECHO_T}$CC" >&6 | ||
| 1470 : | else | ||
| 1471 : | echo "$as_me:$LINENO: result: no" >&5 | ||
| 1472 : | echo "${ECHO_T}no" >&6 | ||
| 1473 : | fi | ||
| 1474 : | |||
| 1475 : | fi | ||
| 1476 : | if test -z "$ac_cv_prog_CC"; then | ||
| 1477 : | ac_ct_CC=$CC | ||
| 1478 : | # Extract the first word of "cc", so it can be a program name with args. | ||
| 1479 : | set dummy cc; ac_word=$2 | ||
| 1480 : | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
| 1481 : | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
| 1482 : | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
| 1483 : | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 1484 : | else | ||
| 1485 : | if test -n "$ac_ct_CC"; then | ||
| 1486 : | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
| 1487 : | else | ||
| 1488 : | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 1489 : | for as_dir in $PATH | ||
| 1490 : | do | ||
| 1491 : | IFS=$as_save_IFS | ||
| 1492 : | test -z "$as_dir" && as_dir=. | ||
| 1493 : | for ac_exec_ext in '' $ac_executable_extensions; do | ||
| 1494 : | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
| 1495 : | ac_cv_prog_ac_ct_CC="cc" | ||
| 1496 : | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
| 1497 : | break 2 | ||
| 1498 : | fi | ||
| 1499 : | done | ||
| 1500 : | done | ||
| 1501 : | |||
| 1502 : | fi | ||
| 1503 : | fi | ||
| 1504 : | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
| 1505 : | if test -n "$ac_ct_CC"; then | ||
| 1506 : | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
| 1507 : | echo "${ECHO_T}$ac_ct_CC" >&6 | ||
| 1508 : | else | ||
| 1509 : | echo "$as_me:$LINENO: result: no" >&5 | ||
| 1510 : | echo "${ECHO_T}no" >&6 | ||
| 1511 : | fi | ||
| 1512 : | |||
| 1513 : | CC=$ac_ct_CC | ||
| 1514 : | else | ||
| 1515 : | CC="$ac_cv_prog_CC" | ||
| 1516 : | fi | ||
| 1517 : | |||
| 1518 : | fi | ||
| 1519 : | if test -z "$CC"; then | ||
| 1520 : | # Extract the first word of "cc", so it can be a program name with args. | ||
| 1521 : | set dummy cc; ac_word=$2 | ||
| 1522 : | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
| 1523 : | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
| 1524 : | if test "${ac_cv_prog_CC+set}" = set; then | ||
| 1525 : | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 1526 : | else | ||
| 1527 : | if test -n "$CC"; then | ||
| 1528 : | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
| 1529 : | else | ||
| 1530 : | ac_prog_rejected=no | ||
| 1531 : | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 1532 : | for as_dir in $PATH | ||
| 1533 : | do | ||
| 1534 : | IFS=$as_save_IFS | ||
| 1535 : | test -z "$as_dir" && as_dir=. | ||
| 1536 : | for ac_exec_ext in '' $ac_executable_extensions; do | ||
| 1537 : | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
| 1538 : | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | ||
| 1539 : | ac_prog_rejected=yes | ||
| 1540 : | continue | ||
| 1541 : | fi | ||
| 1542 : | ac_cv_prog_CC="cc" | ||
| 1543 : | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
| 1544 : | break 2 | ||
| 1545 : | fi | ||
| 1546 : | done | ||
| 1547 : | done | ||
| 1548 : | |||
| 1549 : | if test $ac_prog_rejected = yes; then | ||
| 1550 : | # We found a bogon in the path, so make sure we never use it. | ||
| 1551 : | set dummy $ac_cv_prog_CC | ||
| 1552 : | shift | ||
| 1553 : | if test $# != 0; then | ||
| 1554 : | # We chose a different compiler from the bogus one. | ||
| 1555 : | # However, it has the same basename, so the bogon will be chosen | ||
| 1556 : | # first if we set CC to just the basename; use the full file name. | ||
| 1557 : | shift | ||
| 1558 : | wieck | 1.14 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 1559 : | wieck | 1.1 | fi |
| 1560 : | fi | ||
| 1561 : | fi | ||
| 1562 : | fi | ||
| 1563 : | CC=$ac_cv_prog_CC | ||
| 1564 : | if test -n "$CC"; then | ||
| 1565 : | echo "$as_me:$LINENO: result: $CC" >&5 | ||
| 1566 : | echo "${ECHO_T}$CC" >&6 | ||
| 1567 : | else | ||
| 1568 : | echo "$as_me:$LINENO: result: no" >&5 | ||
| 1569 : | echo "${ECHO_T}no" >&6 | ||
| 1570 : | fi | ||
| 1571 : | |||
| 1572 : | fi | ||
| 1573 : | if test -z "$CC"; then | ||
| 1574 : | if test -n "$ac_tool_prefix"; then | ||
| 1575 : | for ac_prog in cl | ||
| 1576 : | do | ||
| 1577 : | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
| 1578 : | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
| 1579 : | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
| 1580 : | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
| 1581 : | if test "${ac_cv_prog_CC+set}" = set; then | ||
| 1582 : | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 1583 : | else | ||
| 1584 : | if test -n "$CC"; then | ||
| 1585 : | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
| 1586 : | else | ||
| 1587 : | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 1588 : | for as_dir in $PATH | ||
| 1589 : | do | ||
| 1590 : | IFS=$as_save_IFS | ||
| 1591 : | test -z "$as_dir" && as_dir=. | ||
| 1592 : | for ac_exec_ext in '' $ac_executable_extensions; do | ||
| 1593 : | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
| 1594 : | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ||
| 1595 : | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
| 1596 : | break 2 | ||
| 1597 : | fi | ||
| 1598 : | done | ||
| 1599 : | done | ||
| 1600 : | |||
| 1601 : | fi | ||
| 1602 : | fi | ||
| 1603 : | CC=$ac_cv_prog_CC | ||
| 1604 : | if test -n "$CC"; then | ||
| 1605 : | echo "$as_me:$LINENO: result: $CC" >&5 | ||
| 1606 : | echo "${ECHO_T}$CC" >&6 | ||
| 1607 : | else | ||
| 1608 : | echo "$as_me:$LINENO: result: no" >&5 | ||
| 1609 : | echo "${ECHO_T}no" >&6 | ||
| 1610 : | fi | ||
| 1611 : | |||
| 1612 : | test -n "$CC" && break | ||
| 1613 : | done | ||
| 1614 : | fi | ||
| 1615 : | if test -z "$CC"; then | ||
| 1616 : | ac_ct_CC=$CC | ||
| 1617 : | for ac_prog in cl | ||
| 1618 : | do | ||
| 1619 : | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
| 1620 : | set dummy $ac_prog; ac_word=$2 | ||
| 1621 : | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
| 1622 : | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
| 1623 : | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
| 1624 : | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 1625 : | else | ||
| 1626 : | if test -n "$ac_ct_CC"; then | ||
| 1627 : | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
| 1628 : | else | ||
| 1629 : | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 1630 : | for as_dir in $PATH | ||
| 1631 : | do | ||
| 1632 : | IFS=$as_save_IFS | ||
| 1633 : | test -z "$as_dir" && as_dir=. | ||
| 1634 : | for ac_exec_ext in '' $ac_executable_extensions; do | ||
| 1635 : | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
| 1636 : | ac_cv_prog_ac_ct_CC="$ac_prog" | ||
| 1637 : | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
| 1638 : | break 2 | ||
| 1639 : | fi | ||
| 1640 : | done | ||
| 1641 : | done | ||
| 1642 : | |||
| 1643 : | fi | ||
| 1644 : | fi | ||
| 1645 : | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
| 1646 : | if test -n "$ac_ct_CC"; then | ||
| 1647 : | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
| 1648 : | echo "${ECHO_T}$ac_ct_CC" >&6 | ||
| 1649 : | else | ||
| 1650 : | echo "$as_me:$LINENO: result: no" >&5 | ||
| 1651 : | echo "${ECHO_T}no" >&6 | ||
| 1652 : | fi | ||
| 1653 : | |||
| 1654 : | test -n "$ac_ct_CC" && break | ||
| 1655 : | done | ||
| 1656 : | |||
| 1657 : | CC=$ac_ct_CC | ||
| 1658 : | fi | ||
| 1659 : | |||
| 1660 : | fi | ||
| 1661 : | |||
| 1662 : | |||
| 1663 : | wieck | 1.14 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 1664 : | See \`config.log' for more details." >&5 | ||
| 1665 : | echo "$as_me: error: no acceptable C compiler found in \$PATH | ||
| 1666 : | See \`config.log' for more details." >&2;} | ||
| 1667 : | wieck | 1.1 | { (exit 1); exit 1; }; } |
| 1668 : | |||
| 1669 : | # Provide some information about the compiler. | ||
| 1670 : | echo "$as_me:$LINENO:" \ | ||
| 1671 : | "checking for C compiler version" >&5 | ||
| 1672 : | ac_compiler=`set X $ac_compile; echo $2` | ||
| 1673 : | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | ||
| 1674 : | (eval $ac_compiler --version </dev/null >&5) 2>&5 | ||
| 1675 : | ac_status=$? | ||
| 1676 : | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 1677 : | (exit $ac_status); } | ||
| 1678 : | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | ||
| 1679 : | (eval $ac_compiler -v </dev/null >&5) 2>&5 | ||
| 1680 : | ac_status=$? | ||
| 1681 : | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 1682 : | (exit $ac_status); } | ||
| 1683 : | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | ||
| 1684 : | (eval $ac_compiler -V </dev/null >&5) 2>&5 | ||
| 1685 : | ac_status=$? | ||
| 1686 : | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 1687 : | (exit $ac_status); } | ||
| 1688 : | |||
| 1689 : | cat >conftest.$ac_ext <<_ACEOF | ||
| 1690 : | #line $LINENO "configure" | ||
| 1691 : | wieck | 1.14 | /* confdefs.h. */ |
| 1692 : | _ACEOF | ||
| 1693 : | cat confdefs.h >>conftest.$ac_ext | ||
| 1694 : | cat >>conftest.$ac_ext <<_ACEOF | ||
| 1695 : | /* end confdefs.h. */ | ||
| 1696 : | wieck | 1.1 | |
| 1697 : | int | ||
| 1698 : | main () | ||
| 1699 : | { | ||
| 1700 : | |||
| 1701 : | ; | ||
| 1702 : | return 0; | ||
| 1703 : | } | ||
| 1704 : | _ACEOF | ||
| 1705 : | ac_clean_files_save=$ac_clean_files | ||
| 1706 : | wieck | 1.14 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
| 1707 : | wieck | 1.1 | # Try to create an executable without -o first, disregard a.out. |
| 1708 : | # It will help us diagnose broken compilers, and finding out an intuition | ||
| 1709 : | # of exeext. | ||
| 1710 : | echo "$as_me:$LINENO: checking for C compiler default output" >&5 | ||
| 1711 : | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 | ||
| 1712 : | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | ||
| 1713 : | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | ||
| 1714 : | (eval $ac_link_default) 2>&5 | ||
| 1715 : | ac_status=$? | ||
| 1716 : | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 1717 : | (exit $ac_status); }; then | ||
| 1718 : | # Find the output, starting from the most likely. This scheme is | ||
| 1719 : | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | ||
| 1720 : | # resort. | ||
| 1721 : | |||
| 1722 : | # Be careful to initialize this variable, since it used to be cached. | ||
| 1723 : | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | ||
| 1724 : | ac_cv_exeext= | ||
| 1725 : | wieck | 1.14 | # b.out is created by i960 compilers. |
| 1726 : | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | ||
| 1727 : | do | ||
| 1728 : | test -f "$ac_file" || continue | ||
| 1729 : | wieck | 1.1 | case $ac_file in |
| 1730 : | wieck | 1.14 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
| 1731 : | ;; | ||
| 1732 : | conftest.$ac_ext ) | ||
| 1733 : | # This is the source file. | ||
| 1734 : | ;; | ||
| 1735 : | [ab].out ) | ||
| 1736 : | # We found the default executable, but exeext='' is most | ||
| 1737 : | # certainly right. | ||
| 1738 : | break;; | ||
| 1739 : | *.* ) | ||
| 1740 : | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
| 1741 : | # FIXME: I believe we export ac_cv_exeext for Libtool, | ||
| 1742 : | # but it would be cool to find out if it's true. Does anybody | ||
| 1743 : | # maintain Libtool? --akim. | ||
| 1744 : | export ac_cv_exeext | ||
| 1745 : | break;; | ||
| 1746 : | * ) | ||
| 1747 : | break;; | ||
| 1748 : | wieck | 1.1 | esac |
| 1749 : | done | ||
| 1750 : | else | ||
| 1751 : | echo "$as_me: failed program was:" >&5 | ||
| 1752 : | wieck | 1.14 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1753 : | |||
| 1754 : | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | ||
| 1755 : | See \`config.log' for more details." >&5 | ||
| 1756 : | echo "$as_me: error: C compiler cannot create executables | ||
| 1757 : | See \`config.log' for more details." >&2;} | ||
| 1758 : | wieck | 1.1 | { (exit 77); exit 77; }; } |
| 1759 : | fi | ||
| 1760 : | |||
| 1761 : | ac_exeext=$ac_cv_exeext | ||
| 1762 : | echo "$as_me:$LINENO: result: $ac_file" >&5 | ||
| 1763 : | echo "${ECHO_T}$ac_file" >&6 | ||
| 1764 : | |||
| 1765 : | # Check the compiler produces executables we can run. If not, either | ||
| 1766 : | # the compiler is broken, or we cross compile. | ||
| 1767 : | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | ||
| 1768 : | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | ||
| 1769 : | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | ||
| 1770 : | # If not cross compiling, check that we can run a simple program. | ||
| 1771 : | if test "$cross_compiling" != yes; then | ||
| 1772 : | if { ac_try='./$ac_file' | ||
| 1773 : | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
| 1774 : | (eval $ac_try) 2>&5 | ||
| 1775 : | ac_status=$? | ||
| 1776 : | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 1777 : | (exit $ac_status); }; }; then | ||
| 1778 : | cross_compiling=no | ||
| 1779 : | else | ||
| 1780 : | if test "$cross_compiling" = maybe; then | ||
| 1781 : | cross_compiling=yes | ||
| 1782 : | else | ||
| 1783 : | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | ||
| 1784 : | wieck | 1.14 | If you meant to cross compile, use \`--host'. |
| 1785 : | See \`config.log' for more details." >&5 | ||
| 1786 : | wieck | 1.1 | echo "$as_me: error: cannot run C compiled programs. |
| 1787 : | wieck | 1.14 | If you meant to cross compile, use \`--host'. |
| 1788 : | See \`config.log' for more details." >&2;} | ||
| 1789 : | wieck | 1.1 | { (exit 1); exit 1; }; } |
| 1790 : | fi | ||
| 1791 : | fi | ||
| 1792 : | fi | ||
| 1793 : | echo "$as_me:$LINENO: result: yes" >&5 | ||
| 1794 : | echo "${ECHO_T}yes" >&6 | ||
| 1795 : | |||
| 1796 : | wieck | 1.14 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
| 1797 : | wieck | 1.1 | ac_clean_files=$ac_clean_files_save |
| 1798 : | # Check the compiler produces executables we can run. If not, either | ||
| 1799 : | # the compiler is broken, or we cross compile. | ||
| 1800 : | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | ||
| 1801 : | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | ||
| 1802 : | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | ||
| 1803 : | echo "${ECHO_T}$cross_compiling" >&6 | ||
| 1804 : | |||
| 1805 : | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | ||
| 1806 : | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | ||
| 1807 : | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
| 1808 : | (eval $ac_link) 2>&5 | ||
| 1809 : | ac_status=$? | ||
| 1810 : | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 1811 : | (exit $ac_status); }; then | ||
| 1812 : | # If both `conftest.exe' and `conftest' are `present' (well, observable) | ||
| 1813 : | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | ||
| 1814 : | # work properly (i.e., refer to `conftest.exe'), while it won't with | ||
| 1815 : | # `rm'. | ||
| 1816 : | wieck | 1.14 | for ac_file in conftest.exe conftest conftest.*; do |
| 1817 : | test -f "$ac_file" || continue | ||
| 1818 : | wieck | 1.1 | case $ac_file in |
| 1819 : | wieck | 1.14 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
| 1820 : | wieck | 1.1 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1821 : | export ac_cv_exeext | ||
| 1822 : | break;; | ||
| 1823 : | * ) break;; | ||
| 1824 : | esac | ||
| 1825 : | done | ||
| 1826 : | else | ||
| 1827 : | wieck | 1.14 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 1828 : | See \`config.log' for more details." >&5 | ||
| 1829 : | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | ||
| 1830 : | See \`config.log' for more details." >&2;} | ||
| 1831 : | wieck | 1.1 | { (exit 1); exit 1; }; } |
| 1832 : | fi | ||
| 1833 : | |||
| 1834 : | rm -f conftest$ac_cv_exeext | ||
| 1835 : | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | ||
| 1836 : | echo "${ECHO_T}$ac_cv_exeext" >&6 | ||
| 1837 : | |||
| 1838 : | rm -f conftest.$ac_ext | ||
| 1839 : | EXEEXT=$ac_cv_exeext | ||
| 1840 : | ac_exeext=$EXEEXT | ||
| 1841 : | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | ||
| 1842 : | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | ||
| 1843 : | if test "${ac_cv_objext+set}" = set; then | ||
| 1844 : | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 1845 : | else | ||
| 1846 : | cat >conftest.$ac_ext <<_ACEOF | ||
| 1847 : | #line $LINENO "configure" | ||
| 1848 : | wieck | 1.14 | /* confdefs.h. */ |
| 1849 : | _ACEOF | ||
| 1850 : | cat confdefs.h >>conftest.$ac_ext | ||
| 1851 : | cat >>conftest.$ac_ext <<_ACEOF | ||
| 1852 : | /* end confdefs.h. */ | ||
| 1853 : | wieck | 1.1 | |
| 1854 : | int | ||
| 1855 : | main () | ||
| 1856 : | { | ||
| 1857 : | |||
| 1858 : | ; | ||
| 1859 : | return 0; | ||
| 1860 : | } | ||
| 1861 : | _ACEOF | ||
| 1862 : | rm -f conftest.o conftest.obj | ||
| 1863 : | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
| 1864 : | (eval $ac_compile) 2>&5 | ||
| 1865 : | ac_status=$? | ||
| 1866 : | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 1867 : | (exit $ac_status); }; then | ||
| 1868 : | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | ||
| 1869 : | case $ac_file in | ||
| 1870 : | wieck | 1.14 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
| 1871 : | wieck | 1.1 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 1872 : | break;; | ||
| 1873 : | esac | ||
| 1874 : | done | ||
| 1875 : | else | ||
| 1876 : | echo "$as_me: failed program was:" >&5 | ||
| 1877 : | wieck | 1.14 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1878 : | |||
| 1879 : | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | ||
| 1880 : | See \`config.log' for more details." >&5 | ||
| 1881 : | echo "$as_me: error: cannot compute suffix of object files: cannot compile | ||
| 1882 : | See \`config.log' for more details." >&2;} | ||
| 1883 : | wieck | 1.1 | { (exit 1); exit 1; }; } |
| 1884 : | fi | ||
| 1885 : | |||
| 1886 : | rm -f conftest.$ac_cv_objext conftest.$ac_ext | ||
| 1887 : | fi | ||
| 1888 : | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | ||
| 1889 : | echo "${ECHO_T}$ac_cv_objext" >&6 | ||
| 1890 : | OBJEXT=$ac_cv_objext | ||
| 1891 : | ac_objext=$OBJEXT | ||
| 1892 : | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | ||
| 1893 : | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | ||
| 1894 : | if test "${ac_cv_c_compiler_gnu+set}" = set; then | ||
| 1895 : | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 1896 : | else | ||
| 1897 : | cat >conftest.$ac_ext <<_ACEOF | ||
| 1898 : | #line $LINENO "configure" | ||
| 1899 : | wieck | 1.14 | /* confdefs.h. */ |
| 1900 : | _ACEOF | ||
| 1901 : | cat confdefs.h >>conftest.$ac_ext | ||
| 1902 : | cat >>conftest.$ac_ext <<_ACEOF | ||
| 1903 : | /* end confdefs.h. */ | ||
| 1904 : | wieck | 1.1 | |
| 1905 : | int | ||
| 1906 : | main () | ||
| 1907 : | { | ||
| 1908 : | #ifndef __GNUC__ | ||
| 1909 : | choke me | ||
| 1910 : | #endif | ||
| 1911 : | |||
| 1912 : | ; | ||
| 1913 : | return 0; | ||
| 1914 : | } | ||
| 1915 : | _ACEOF | ||
| 1916 : | rm -f conftest.$ac_objext | ||
| 1917 : | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
| 1918 : | (eval $ac_compile) 2>&5 | ||
| 1919 : | ac_status=$? | ||
| 1920 : | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 1921 : | (exit $ac_status); } && | ||
| 1922 : | { ac_try='test -s conftest.$ac_objext' | ||
| 1923 : | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
| 1924 : | (eval $ac_try) 2>&5 | ||
| 1925 : | ac_status=$? | ||
| 1926 : | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 1927 : | (exit $ac_status); }; }; then | ||
| 1928 : | ac_compiler_gnu=yes | ||
| 1929 : | else | ||
| 1930 : | echo "$as_me: failed program was:" >&5 | ||
| 1931 : | wieck | 1.14 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1932 : | |||
| 1933 : | wieck | 1.1 | ac_compiler_gnu=no |
| 1934 : | fi | ||
| 1935 : | rm -f conftest.$ac_objext conftest.$ac_ext | ||
| 1936 : | ac_cv_c_compiler_gnu=$ac_compiler_gnu | ||
| 1937 : | |||
| 1938 : | fi | ||
| 1939 : | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | ||
| 1940 : | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | ||
| 1941 : | GCC=`test $ac_compiler_gnu = yes && echo yes` | ||
| 1942 : | ac_test_CFLAGS=${CFLAGS+set} | ||
| 1943 : | ac_save_CFLAGS=$CFLAGS | ||
| 1944 : | CFLAGS="-g" | ||
| 1945 : | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | ||
| 1946 : | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | ||
| 1947 : | if test "${ac_cv_prog_cc_g+set}" = set; then | ||
| 1948 : | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 1949 : | else | ||
| 1950 : | cat >conftest.$ac_ext <<_ACEOF | ||
| 1951 : | #line $LINENO "configure" | ||
| 1952 : | wieck | 1.14 | /* confdefs.h. */ |
| 1953 : | _ACEOF | ||
| 1954 : | cat confdefs.h >>conftest.$ac_ext | ||
| 1955 : | cat >>conftest.$ac_ext <<_ACEOF | ||
| 1956 : | /* end confdefs.h. */ | ||
| 1957 : | wieck | 1.1 | |
| 1958 : | int | ||
| 1959 : | main () | ||
| 1960 : | { | ||
| 1961 : | |||
| 1962 : | ; | ||
| 1963 : | return 0; | ||
| 1964 : | } | ||
| 1965 : | _ACEOF | ||
| 1966 : | rm -f conftest.$ac_objext | ||
| 1967 : | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
| 1968 : | (eval $ac_compile) 2>&5 | ||
| 1969 : | ac_status=$? | ||
| 1970 : | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 1971 : | (exit $ac_status); } && | ||
| 1972 : | { ac_try='test -s conftest.$ac_objext' | ||
| 1973 : | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
| 1974 : | (eval $ac_try) 2>&5 | ||
| 1975 : | ac_status=$? | ||
| 1976 : | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 1977 : | (exit $ac_status); }; }; then | ||
| 1978 : | ac_cv_prog_cc_g=yes | ||
| 1979 : | else | ||
| 1980 : | echo "$as_me: failed program was:" >&5 | ||
| 1981 : | wieck | 1.14 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1982 : | |||
| 1983 : | wieck | 1.1 | ac_cv_prog_cc_g=no |
| 1984 : | fi | ||
| 1985 : | rm -f conftest.$ac_objext conftest.$ac_ext | ||
| 1986 : | fi | ||
| 1987 : | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | ||
| 1988 : | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | ||
| 1989 : | if test "$ac_test_CFLAGS" = set; then | ||
| 1990 : | CFLAGS=$ac_save_CFLAGS | ||
| 1991 : | elif test $ac_cv_prog_cc_g = yes; then | ||
| 1992 : | if test "$GCC" = yes; then | ||
| 1993 : | CFLAGS="-g -O2" | ||
| 1994 : | else | ||
| 1995 : | CFLAGS="-g" | ||
| 1996 : | fi | ||
| 1997 : | else | ||
| 1998 : | if test "$GCC" = yes; then | ||
| 1999 : | CFLAGS="-O2" | ||
| 2000 : | else | ||
| 2001 : | CFLAGS= | ||
| 2002 : | fi | ||
| 2003 : | fi | ||
| 2004 : | wieck | 1.14 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2005 : | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | ||
| 2006 : | if test "${ac_cv_prog_cc_stdc+set}" = set; then | ||
| 2007 : | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 2008 : | else | ||
| 2009 : | ac_cv_prog_cc_stdc=no | ||
| 2010 : | ac_save_CC=$CC | ||
| 2011 : | cat >conftest.$ac_ext <<_ACEOF | ||
| 2012 : | #line $LINENO "configure" | ||
| 2013 : | /* confdefs.h. */ | ||
| 2014 : | _ACEOF | ||
| 2015 : | cat confdefs.h >>conftest.$ac_ext | ||
| 2016 : | cat >>conftest.$ac_ext <<_ACEOF | ||
| 2017 : | /* end confdefs.h. */ | ||
| 2018 : | #include <stdarg.h> | ||
| 2019 : | #include <stdio.h> | ||
| 2020 : | #include <sys/types.h> | ||
| 2021 : | #include <sys/stat.h> | ||
| 2022 : | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
| 2023 : | struct buf { int x; }; | ||
| 2024 : | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
| 2025 : | static char *e (p, i) | ||
| 2026 : | char **p; | ||
| 2027 : | int i; | ||
| 2028 : | { | ||
| 2029 : | return p[i]; | ||
| 2030 : | } | ||
| 2031 : | static char *f (char * (*g) (char **, int), char **p, ...) | ||
| 2032 : | { | ||
| 2033 : | char *s; | ||
| 2034 : | va_list v; | ||
| 2035 : | va_start (v,p); | ||
| 2036 : | s = g (p, va_arg (v,int)); | ||
| 2037 : | va_end (v); | ||
| 2038 : | return s; | ||
| 2039 : | } | ||
| 2040 : | int test (int i, double x); | ||
| 2041 : | struct s1 {int (*f) (int a);}; | ||
| 2042 : | struct s2 {int (*f) (double a);}; | ||
| 2043 : | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
| 2044 : | int argc; | ||
| 2045 : | char **argv; | ||
| 2046 : | int | ||
| 2047 : | main () | ||
| 2048 : | { | ||
| 2049 : | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
| 2050 : | ; | ||
| 2051 : | return 0; | ||
| 2052 : | } | ||
| 2053 : | _ACEOF | ||
| 2054 : | # Don't try gcc -ansi; that turns off useful extensions and | ||
| 2055 : | # breaks some systems' header files. | ||
| 2056 : | # AIX -qlanglvl=ansi | ||
| 2057 : | # Ultrix and OSF/1 -std1 | ||
| 2058 : | # HP-UX 10.20 and later -Ae | ||
| 2059 : | # HP-UX older versions -Aa -D_HPUX_SOURCE | ||
| 2060 : | # SVR4 -Xc -D__EXTENSIONS__ | ||
| 2061 : | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
| 2062 : | do | ||
| 2063 : | CC="$ac_save_CC $ac_arg" | ||
| 2064 : | rm -f conftest.$ac_objext | ||
| 2065 : | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
| 2066 : | (eval $ac_compile) 2>&5 | ||
| 2067 : | ac_status=$? | ||
| 2068 : | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 2069 : | (exit $ac_status); } && | ||
| 2070 : | { ac_try='test -s conftest.$ac_objext' | ||
| 2071 : | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
| 2072 : | (eval $ac_try) 2>&5 | ||
| 2073 : | ac_status=$? | ||
| 2074 : | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 2075 : | (exit $ac_status); }; }; then | ||
| 2076 : | ac_cv_prog_cc_stdc=$ac_arg | ||
| 2077 : | break | ||
| 2078 : | else | ||
| 2079 : | echo "$as_me: failed program was:" >&5 | ||
| 2080 : | sed 's/^/| /' conftest.$ac_ext >&5 | ||
| 2081 : | |||
| 2082 : | fi | ||
| 2083 : | rm -f conftest.$ac_objext | ||
| 2084 : | done | ||
| 2085 : | rm -f conftest.$ac_ext conftest.$ac_objext | ||
| 2086 : | CC=$ac_save_CC | ||
| 2087 : | |||
| 2088 : | fi | ||
| 2089 : | |||
| 2090 : | case "x$ac_cv_prog_cc_stdc" in | ||
| 2091 : | x|xno) | ||
| 2092 : | echo "$as_me:$LINENO: result: none needed" >&5 | ||
| 2093 : | echo "${ECHO_T}none needed" >&6 ;; | ||
| 2094 : | *) | ||
| 2095 : | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | ||
| 2096 : | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | ||
| 2097 : | CC="$CC $ac_cv_prog_cc_stdc" ;; | ||
| 2098 : | esac | ||
| 2099 : | |||
| 2100 : | wieck | 1.1 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2101 : | # in C++ we need to declare it. In case someone uses the same compiler | ||
| 2102 : | # for both compiling C and C++ we need to have the C++ compiler decide | ||
| 2103 : | # the declaration of exit, since it's the most demanding environment. | ||
| 2104 : | cat >conftest.$ac_ext <<_ACEOF | ||
| 2105 : | #ifndef __cplusplus | ||
| 2106 : | choke me | ||
| 2107 : | #endif | ||
| 2108 : | _ACEOF | ||
| 2109 : | rm -f conftest.$ac_objext | ||
| 2110 : | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
| 2111 : | (eval $ac_compile) 2>&5 | ||
| 2112 : | ac_status=$? | ||
| 2113 : | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 2114 : | (exit $ac_status); } && | ||
| 2115 : | { ac_try='test -s conftest.$ac_objext' | ||
| 2116 : | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
| 2117 : | (eval $ac_try) 2>&5 | ||
| 2118 : | ac_status=$? | ||
| 2119 : | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 2120 : | (exit $ac_status); }; }; then | ||
| 2121 : | for ac_declaration in \ | ||
| 2122 : | ''\ | ||
| 2123 : | '#include <stdlib.h>' \ | ||
| 2124 : | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | ||
| 2125 : | 'extern "C" void std::exit (int); using std::exit;' \ | ||
| 2126 : | 'extern "C" void exit (int) throw ();' \ | ||
| 2127 : | 'extern "C" void exit (int);' \ | ||
| 2128 : | 'void exit (int);' | ||
| 2129 : | do | ||
| 2130 : | cat >conftest.$ac_ext <<_ACEOF | ||
| 2131 : | #line $LINENO "configure" | ||
| 2132 : | wieck | 1.14 | /* confdefs.h. */ |
| 2133 : | _ACEOF | ||
| 2134 : | cat confdefs.h >>conftest.$ac_ext | ||
| 2135 : | cat >>conftest.$ac_ext <<_ACEOF | ||
| 2136 : | /* end confdefs.h. */ | ||
| 2137 : | wieck | 1.1 | #include <stdlib.h> |
| 2138 : | $ac_declaration | ||
| 2139 : | int | ||
| 2140 : | main () | ||
| 2141 : | { | ||
| 2142 : | exit (42); | ||
| 2143 : | ; | ||
| 2144 : | return 0; | ||
| 2145 : | } | ||
| 2146 : | _ACEOF | ||
| 2147 : | rm -f conftest.$ac_objext | ||
| 2148 : | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
| 2149 : | (eval $ac_compile) 2>&5 | ||
| 2150 : | ac_status=$? | ||
| 2151 : | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 2152 : | (exit $ac_status); } && | ||
| 2153 : | { ac_try='test -s conftest.$ac_objext' | ||
| 2154 : | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
| 2155 : | (eval $ac_try) 2>&5 | ||
| 2156 : | ac_status=$? | ||
| 2157 : | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 2158 : | (exit $ac_status); }; }; then | ||
| 2159 : | : | ||
| 2160 : | else | ||
| 2161 : | echo "$as_me: failed program was:" >&5 | ||
| 2162 : | wieck | 1.14 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2163 : | |||
| 2164 : | wieck | 1.1 | continue |
| 2165 : | fi | ||
| 2166 : | rm -f conftest.$ac_objext conftest.$ac_ext | ||
| 2167 : | cat >conftest.$ac_ext <<_ACEOF | ||
| 2168 : | #line $LINENO "configure" | ||
| 2169 : | wieck | 1.14 | /* confdefs.h. */ |
| 2170 : | _ACEOF | ||
| 2171 : | cat confdefs.h >>conftest.$ac_ext | ||
| 2172 : | cat >>conftest.$ac_ext <<_ACEOF | ||
| 2173 : | /* end confdefs.h. */ | ||
| 2174 : | wieck | 1.1 | $ac_declaration |
| 2175 : | int | ||
| 2176 : | main () | ||
| 2177 : | { | ||
| 2178 : | exit (42); | ||
| 2179 : | ; | ||
| 2180 : | return 0; | ||
| 2181 : | } | ||
| 2182 : | _ACEOF | ||
| 2183 : | rm -f conftest.$ac_objext | ||
| 2184 : | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
| 2185 : | (eval $ac_compile) 2>&5 | ||
| 2186 : | ac_status=$? | ||
| 2187 : | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 2188 : | (exit $ac_status); } && | ||
| 2189 : | { ac_try='test -s conftest.$ac_objext' | ||
| 2190 : | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
| 2191 : | (eval $ac_try) 2>&5 | ||
| 2192 : | ac_status=$? | ||
| 2193 : | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 2194 : | (exit $ac_status); }; }; then | ||
| 2195 : | break | ||
| 2196 : | else | ||
| 2197 : | echo "$as_me: failed program was:" >&5 | ||
| 2198 : | wieck | 1.14 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2199 : | |||
| 2200 : | wieck | 1.1 | fi |
| 2201 : | rm -f conftest.$ac_objext conftest.$ac_ext | ||
| 2202 : | done | ||
| 2203 : | rm -f conftest* | ||
| 2204 : | if test -n "$ac_declaration"; then | ||
| 2205 : | echo '#ifdef __cplusplus' >>confdefs.h | ||
| 2206 : | echo $ac_declaration >>confdefs.h | ||
| 2207 : | echo '#endif' >>confdefs.h | ||
| 2208 : | fi | ||
| 2209 : | |||
| 2210 : | else | ||
| 2211 : | echo "$as_me: failed program was:" >&5 | ||
| 2212 : | wieck | 1.14 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2213 : | |||
| 2214 : | wieck | 1.1 | fi |
| 2215 : | rm -f conftest.$ac_objext conftest.$ac_ext | ||
| 2216 : | ac_ext=c | ||
| 2217 : | ac_cpp='$CPP $CPPFLAGS' | ||
| 2218 : | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
| 2219 : | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
| 2220 : | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
| 2221 : | |||
| 2222 : | |||
| 2223 : | # Check whether --with-gnu-ld or --without-gnu-ld was given. | ||
| 2224 : | if test "${with_gnu_ld+set}" = set; then | ||
| 2225 : | withval="$with_gnu_ld" | ||
| 2226 : | test "$withval" = no || with_gnu_ld=yes | ||
| 2227 : | else | ||
| 2228 : | with_gnu_ld=no | ||
| 2229 : | fi; | ||
| 2230 : | ac_prog=ld | ||
| 2231 : | if test "$GCC" = yes; then | ||
| 2232 : | # Check if gcc -print-prog-name=ld gives a path. | ||
| 2233 : | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 | ||
| 2234 : | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 | ||
| 2235 : | case $host in | ||
| 2236 : | *-*-mingw*) | ||
| 2237 : | # gcc leaves a trailing carriage return which upsets mingw | ||
| 2238 : | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | ||
| 2239 : | *) | ||
| 2240 : | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | ||
| 2241 : | esac | ||
| 2242 : | case "$ac_prog" in | ||
| 2243 : | # Accept absolute paths. | ||
| 2244 : | [\\/]* | [A-Za-z]:[\\/]*) | ||
| 2245 : | re_direlt='/[^/][^/]*/\.\./' | ||
| 2246 : | # Canonicalize the path of ld | ||
| 2247 : | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | ||
| 2248 : | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | ||
| 2249 : | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | ||
| 2250 : | done | ||
| 2251 : | test -z "$LD" && LD="$ac_prog" | ||
| 2252 : | ;; | ||
| 2253 : | "") | ||
| 2254 : | # If it fails, then pretend we aren't using GCC. | ||
| 2255 : | ac_prog=ld | ||
| 2256 : | ;; | ||
| 2257 : | *) | ||
| 2258 : | # If it is relative, then search for the first ld in PATH. | ||
| 2259 : | with_gnu_ld=unknown | ||
| 2260 : | ;; | ||
| 2261 : | esac | ||
| 2262 : | elif test "$with_gnu_ld" = yes; then | ||
| 2263 : | echo "$as_me:$LINENO: checking for GNU ld" >&5 | ||
| 2264 : | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | ||
| 2265 : | else | ||
| 2266 : | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | ||
| 2267 : | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | ||
| 2268 : | fi | ||
| 2269 : | if test "${ac_cv_path_LD+set}" = set; then | ||
| 2270 : | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 2271 : | else | ||
| 2272 : | if test -z "$LD"; then | ||
| 2273 : | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | ||
| 2274 : | for ac_dir in $PATH; do | ||
| 2275 : | test -z "$ac_dir" && ac_dir=. | ||
| 2276 : | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | ||
| 2277 : | ac_cv_path_LD="$ac_dir/$ac_prog" | ||
| 2278 : | # Check to see if the program is GNU ld. I'd rather use --version, | ||
| 2279 : | # but apparently some GNU ld's only accept -v. | ||
| 2280 : | # Break only if it was the GNU/non-GNU ld that we prefer. | ||
| 2281 : | if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then | ||
| 2282 : | test "$with_gnu_ld" != no && break | ||
| 2283 : | else | ||
| 2284 : | test "$with_gnu_ld" != yes && break | ||
| 2285 : | fi | ||
| 2286 : | fi | ||
| 2287 : | done | ||
| 2288 : | IFS="$ac_save_ifs" | ||
| 2289 : | else | ||
| 2290 : | ac_cv_path_LD="$LD" # Let the user override the test with a path. | ||
| 2291 : | fi | ||
| 2292 : | fi | ||
| 2293 : | |||
| 2294 : | LD="$ac_cv_path_LD" | ||
| 2295 : | if test -n "$LD"; then | ||
| 2296 : | echo "$as_me:$LINENO: result: $LD" >&5 | ||
| 2297 : | echo "${ECHO_T}$LD" >&6 | ||
| 2298 : | else | ||
| 2299 : | echo "$as_me:$LINENO: result: no" >&5 | ||
| 2300 : | echo "${ECHO_T}no" >&6 | ||
| 2301 : | fi | ||
| 2302 : | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | ||
| 2303 : | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | ||
| 2304 : | { (exit 1); exit 1; }; } | ||
| 2305 : | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | ||
| 2306 : | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | ||
| 2307 : | if test "${ac_cv_prog_gnu_ld+set}" = set; then | ||
| 2308 : | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 2309 : | else | ||
| 2310 : | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | ||
| 2311 : | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | ||
| 2312 : | ac_cv_prog_gnu_ld=yes | ||
| 2313 : | else | ||
| 2314 : | ac_cv_prog_gnu_ld=no | ||
| 2315 : | fi | ||
| 2316 : | fi | ||
| 2317 : | echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5 | ||
| 2318 : | echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6 | ||
| 2319 : | with_gnu_ld=$ac_cv_prog_gnu_ld | ||
| 2320 : | |||
| 2321 : | |||
| 2322 : | |||
| 2323 : | |||
| 2324 : | |||
| 2325 : | |||
| 2326 : | |||
| 2327 : | wieck | 1.9 | |
| 2328 : | wieck | 1.4 | |
| 2329 : | wieck | 1.14 | ac_ext=c |
| 2330 : | ac_cpp='$CPP $CPPFLAGS' | ||
| 2331 : | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
| 2332 : | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
| 2333 : | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
| 2334 : | wieck | 1.4 | |
| 2335 : | wieck | 1.14 | acx_pthread_ok=no |
| 2336 : | wieck | 1.6 | |
| 2337 : | wieck | 1.14 | # We used to check for pthread.h first, but this fails if pthread.h |
| 2338 : | # requires special compiler flags (e.g. on True64 or Sequent). | ||
| 2339 : | # It gets checked for in the link test anyway. | ||
| 2340 : | wieck | 1.9 | |
| 2341 : | wieck | 1.14 | # First of all, check if the user has set any of the PTHREAD_LIBS, |
| 2342 : | # etcetera environment variables, and if threads linking works using | ||
| 2343 : | # them: | ||
| 2344 : | if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then | ||
| 2345 : | save_CFLAGS="$CFLAGS" | ||
| 2346 : | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" | ||
| 2347 : | save_LIBS="$LIBS" | ||
| 2348 : | LIBS="$PTHREAD_LIBS $LIBS" | ||
| 2349 : | echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 | ||
| 2350 : | echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6 | ||
| 2351 : | cat >conftest.$ac_ext <<_ACEOF | ||
| 2352 : | wieck | 1.5 | #line $LINENO "configure" |
| 2353 : | wieck | 1.14 | /* confdefs.h. */ |
| 2354 : | wieck | 1.5 | _ACEOF |
| 2355 : | wieck | 1.14 | cat confdefs.h >>conftest.$ac_ext |
| 2356 : | cat >>conftest.$ac_ext <<_ACEOF | ||
| 2357 : | /* end confdefs.h. */ | ||
| 2358 : | wieck | 1.5 | |
| 2359 : | wieck | 1.14 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2360 : | #ifdef __cplusplus | ||
| 2361 : | extern "C" | ||
| 2362 : | wieck | 1.10 | #endif |
| 2363 : | wieck | 1.14 | /* We use char because int might match the return type of a gcc2 |
| 2364 : | builtin and then its argument prototype would still apply. */ | ||
| 2365 : | char pthread_join (); | ||
| 2366 : | wieck | 1.5 | int |
| 2367 : | main () | ||
| 2368 : | { | ||
| 2369 : | wieck | 1.14 | pthread_join (); |
| 2370 : | wieck | 1.5 | ; |
| 2371 : | return 0; | ||
| 2372 : | } | ||
| 2373 : | _ACEOF | ||
| 2374 : | rm -f conftest.$ac_objext conftest$ac_exeext | ||
| 2375 : | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
| 2376 : | (eval $ac_link) 2>&5 | ||
| 2377 : | ac_status=$? | ||
| 2378 : | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 2379 : | (exit $ac_status); } && | ||
| 2380 : | { ac_try='test -s conftest$ac_exeext' | ||
| 2381 : | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
| 2382 : | (eval $ac_try) 2>&5 | ||
| 2383 : | ac_status=$? | ||
| 2384 : | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 2385 : | (exit $ac_status); }; }; then | ||
| 2386 : | wieck | 1.14 | acx_pthread_ok=yes |
| 2387 : | wieck | 1.5 | else |
| 2388 : | echo "$as_me: failed program was:" >&5 | ||
| 2389 : | wieck | 1.14 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2390 : | |||
| 2391 : | wieck | 1.5 | fi |
| 2392 : | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
| 2393 : | wieck | 1.14 | echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5 |
| 2394 : | echo "${ECHO_T}$acx_pthread_ok" >&6 | ||
| 2395 : | if test x"$acx_pthread_ok" = xno; then | ||
| 2396 : | PTHREAD_LIBS="" | ||
| 2397 : | PTHREAD_CFLAGS="" | ||
| 2398 : | fi | ||
| 2399 : | LIBS="$save_LIBS" | ||
| 2400 : | CFLAGS="$save_CFLAGS" | ||
| 2401 : | wieck | 1.5 | fi |
| 2402 : | |||
| 2403 : | wieck | 1.14 | # We must check for the threads library under a number of different |
| 2404 : | # names; the ordering is very important because some systems | ||
| 2405 : | # (e.g. DEC) have both -lpthread and -lpthreads, where one of the | ||
| 2406 : | # libraries is broken (non-POSIX). | ||
| 2407 : | wieck | 1.2 | |
| 2408 : | # Create a list of thread flags to try. Items starting with a "-" are | ||
| 2409 : | # C compiler flags, and other items are library names, except for "none" | ||
| 2410 : | # which indicates that we try without any flags at all, and "pthread-config" | ||
| 2411 : | # which is a program returning the flags for the Pth emulation library. | ||
| 2412 : | |||
| 2413 : | acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" | ||
| 2414 : | |||
| 2415 : | # The ordering *is* (sometimes) important. Some notes on the | ||
| 2416 : | # individual items follow: | ||
| 2417 : | |||
| 2418 : | # pthreads: AIX (must check this before -lpthread) | ||
| 2419 : | # none: in case threads are in libc; should be tried before -Kthread and | ||
| 2420 : | # other compiler flags to prevent continual compiler warnings | ||
| 2421 : | # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) | ||
| 2422 : | # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) | ||
| 2423 : | # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) | ||
| 2424 : | # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) | ||
| 2425 : | # -pthreads: Solaris/gcc | ||
| 2426 : | # -mthreads: Mingw32/gcc, Lynx/gcc | ||
| 2427 : | # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it | ||
| 2428 : | # doesn't hurt to check since this sometimes defines pthreads too; | ||
| 2429 : | # also defines -D_REENTRANT) | ||
| 2430 : | # pthread: Linux, etcetera | ||
| 2431 : | # --thread-safe: KAI C++ | ||
| 2432 : | # pthread-config: use pthread-config program (for GNU Pth library) | ||
| 2433 : | |||
| 2434 : | case "${host_cpu}-${host_os}" in | ||
| 2435 : | *solaris*) | ||
| 2436 : | |||
| 2437 : | # On Solaris (at least, for some versions), libc contains stubbed | ||
| 2438 : | # (non-functional) versions of the pthreads routines, so link-based | ||
| 2439 : | # tests will erroneously succeed. (We need to link with -pthread or | ||
| 2440 : | # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather | ||
| 2441 : | # a function called by this macro, so we could check for that, but | ||
| 2442 : | # who knows whether they'll stub that too in a future libc.) So, | ||
| 2443 : | # we'll just look for -pthreads and -lpthread first: | ||
| 2444 : | |||
| 2445 : | acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags" | ||
| 2446 : | ;; | ||
| 2447 : | esac | ||
| 2448 : | |||
| 2449 : | if test x"$acx_pthread_ok" = xno; then | ||
| 2450 : | for flag in $acx_pthread_flags; do | ||
| 2451 : | |||
| 2452 : | case $flag in | ||
| 2453 : | none) | ||
| 2454 : | echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 | ||
| 2455 : | echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6 | ||
| 2456 : | ;; | ||
| 2457 : | |||
| 2458 : | -*) | ||
| 2459 : | echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 | ||
| 2460 : | echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6 | ||
| 2461 : | PTHREAD_CFLAGS="$flag" | ||
| 2462 : | ;; | ||
| 2463 : | |||
| 2464 : | pthread-config) | ||
| 2465 : | # Extract the first word of "pthread-config", so it can be a program name with args. | ||
| 2466 : | set dummy pthread-config; ac_word=$2 | ||
| 2467 : | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
| 2468 : | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
| 2469 : | if test "${ac_cv_prog_acx_pthread_config+set}" = set; then | ||
| 2470 : | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 2471 : | else | ||
| 2472 : | if test -n "$acx_pthread_config"; then | ||
| 2473 : | ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test. | ||
| 2474 : | else | ||
| 2475 : | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 2476 : | for as_dir in $PATH | ||
| 2477 : | do | ||
| 2478 : | IFS=$as_save_IFS | ||
| 2479 : | test -z "$as_dir" && as_dir=. | ||
| 2480 : | for ac_exec_ext in '' $ac_executable_extensions; do | ||
| 2481 : | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
| 2482 : | ac_cv_prog_acx_pthread_config="yes" | ||
| 2483 : | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
| 2484 : | break 2 | ||
| 2485 : | fi | ||
| 2486 : | done | ||
| 2487 : | done | ||
| 2488 : | |||
| 2489 : | test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no" | ||
| 2490 : | fi | ||
| 2491 : | fi | ||
| 2492 : | acx_pthread_config=$ac_cv_prog_acx_pthread_config | ||
| 2493 : | if test -n "$acx_pthread_config"; then | ||
| 2494 : | echo "$as_me:$LINENO: result: $acx_pthread_config" >&5 | ||
| 2495 : | echo "${ECHO_T}$acx_pthread_config" >&6 | ||
| 2496 : | else | ||
| 2497 : | echo "$as_me:$LINENO: result: no" >&5 | ||
| 2498 : | echo "${ECHO_T}no" >&6 | ||
| 2499 : | fi | ||
| 2500 : | |||
| 2501 : | if test x"$acx_pthread_config" = xno; then continue; fi | ||
| 2502 : | PTHREAD_CFLAGS="`pthread-config --cflags`" | ||
| 2503 : | PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" | ||
| 2504 : | ;; | ||
| 2505 : | |||
| 2506 : | *) | ||
| 2507 : | echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 | ||
| 2508 : | echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6 | ||
| 2509 : | PTHREAD_LIBS="-l$flag" | ||
| 2510 : | ;; | ||
| 2511 : | esac | ||
| 2512 : | |||
| 2513 : | save_LIBS="$LIBS" | ||
| 2514 : | save_CFLAGS="$CFLAGS" | ||
| 2515 : | LIBS="$PTHREAD_LIBS $LIBS" | ||
| 2516 : | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" | ||
| 2517 : | |||
| 2518 : | # Check for various functions. We must include pthread.h, | ||
| 2519 : | # since some functions may be macros. (On the Sequent, we | ||
| 2520 : | # need a special flag -Kthread to make this header compile.) | ||
| 2521 : | # We check for pthread_join because it is in -lpthread on IRIX | ||
| 2522 : | # while pthread_create is in libc. We check for pthread_attr_init | ||
| 2523 : | # due to DEC craziness with -lpthreads. We check for | ||
| 2524 : | # pthread_cleanup_push because it is one of the few pthread | ||
| 2525 : | # functions on Solaris that doesn't have a non-functional libc stub. | ||
| 2526 : | # We try pthread_create on general principles. | ||
| 2527 : | cat >conftest.$ac_ext <<_ACEOF | ||
| 2528 : | #line $LINENO "configure" | ||
| 2529 : | wieck | 1.14 | /* confdefs.h. */ |
| 2530 : | _ACEOF | ||
| 2531 : | cat confdefs.h >>conftest.$ac_ext | ||
| 2532 : | cat >>conftest.$ac_ext <<_ACEOF | ||
| 2533 : | /* end confdefs.h. */ | ||
| 2534 : | wieck | 1.2 | #include <pthread.h> |
| 2535 : | int | ||
| 2536 : | main () | ||
| 2537 : | { | ||
| 2538 : | pthread_t th; pthread_join(th, 0); | ||
| 2539 : | pthread_attr_init(0); pthread_cleanup_push(0, 0); | ||
| 2540 : | pthread_create(0,0,0,0); pthread_cleanup_pop(0); | ||
| 2541 : | ; | ||
| 2542 : | return 0; | ||
| 2543 : | } | ||
| 2544 : | _ACEOF | ||
| 2545 : | rm -f conftest.$ac_objext conftest$ac_exeext | ||
| 2546 : | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
| 2547 : | (eval $ac_link) 2>&5 | ||
| 2548 : | ac_status=$? | ||
| 2549 : | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 2550 : | (exit $ac_status); } && | ||
| 2551 : | { ac_try='test -s conftest$ac_exeext' | ||
| 2552 : | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
| 2553 : | (eval $ac_try) 2>&5 | ||
| 2554 : | ac_status=$? | ||
| 2555 : | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 2556 : | (exit $ac_status); }; }; then | ||
| 2557 : | acx_pthread_ok=yes | ||
| 2558 : | else | ||
| 2559 : | echo "$as_me: failed program was:" >&5 | ||
| 2560 : | wieck | 1.14 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2561 : | |||
| 2562 : | wieck | 1.2 | fi |
| 2563 : | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
| 2564 : | |||
| 2565 : | LIBS="$save_LIBS" | ||
| 2566 : | CFLAGS="$save_CFLAGS" | ||
| 2567 : | |||
| 2568 : | echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5 | ||
| 2569 : | echo "${ECHO_T}$acx_pthread_ok" >&6 | ||
| 2570 : | if test "x$acx_pthread_ok" = xyes; then | ||
| 2571 : | break; | ||
| 2572 : | fi | ||
| 2573 : | |||
| 2574 : | PTHREAD_LIBS="" | ||
| 2575 : | PTHREAD_CFLAGS="" | ||
| 2576 : | done | ||
| 2577 : | fi | ||
| 2578 : | |||
| 2579 : | # Various other checks: | ||
| 2580 : | if test "x$acx_pthread_ok" = xyes; then | ||
| 2581 : | save_LIBS="$LIBS" | ||
| 2582 : | LIBS="$PTHREAD_LIBS $LIBS" | ||
| 2583 : | save_CFLAGS="$CFLAGS" | ||
| 2584 : | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" | ||
| 2585 : | |||
| 2586 : | # Detect AIX lossage: threads are created detached by default | ||
| 2587 : | # and the JOINABLE attribute has a nonstandard name (UNDETACHED). | ||
| 2588 : | echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5 | ||
| 2589 : | echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6 | ||
| 2590 : | cat >conftest.$ac_ext <<_ACEOF | ||
| 2591 : | #line $LINENO "configure" | ||
| 2592 : | wieck | 1.14 | /* confdefs.h. */ |
| 2593 : | _ACEOF | ||
| 2594 : | cat confdefs.h >>conftest.$ac_ext | ||
| 2595 : | cat >>conftest.$ac_ext <<_ACEOF | ||
| 2596 : | /* end confdefs.h. */ | ||
| 2597 : | wieck | 1.2 | #include <pthread.h> |
| 2598 : | int | ||
| 2599 : | main () | ||
| 2600 : | { | ||
| 2601 : | int attr=PTHREAD_CREATE_JOINABLE; | ||
| 2602 : | ; | ||
| 2603 : | return 0; | ||
| 2604 : | } | ||
| 2605 : | _ACEOF | ||
| 2606 : | rm -f conftest.$ac_objext conftest$ac_exeext | ||
| 2607 : | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
| 2608 : | (eval $ac_link) 2>&5 | ||
| 2609 : | ac_status=$? | ||
| 2610 : | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 2611 : | (exit $ac_status); } && | ||
| 2612 : | { ac_try='test -s conftest$ac_exeext' | ||
| 2613 : | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
| 2614 : | (eval $ac_try) 2>&5 | ||
| 2615 : | ac_status=$? | ||
| 2616 : | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 2617 : | (exit $ac_status); }; }; then | ||
| 2618 : | ok=PTHREAD_CREATE_JOINABLE | ||
| 2619 : | else | ||
| 2620 : | echo "$as_me: failed program was:" >&5 | ||
| 2621 : | wieck | 1.14 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2622 : | |||
| 2623 : | wieck | 1.2 | ok=unknown |
| 2624 : | fi | ||
| 2625 : | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
| 2626 : | if test x"$ok" = xunknown; then | ||
| 2627 : | cat >conftest.$ac_ext <<_ACEOF | ||
| 2628 : | #line $LINENO "configure" | ||
| 2629 : | wieck | 1.14 | /* confdefs.h. */ |
| 2630 : | _ACEOF | ||
| 2631 : | cat confdefs.h >>conftest.$ac_ext | ||
| 2632 : | cat >>conftest.$ac_ext <<_ACEOF | ||
| 2633 : | /* end confdefs.h. */ | ||
| 2634 : | wieck | 1.2 | #include <pthread.h> |
| 2635 : | int | ||
| 2636 : | main () | ||
| 2637 : | { | ||
| 2638 : | int attr=PTHREAD_CREATE_UNDETACHED; | ||
| 2639 : | ; | ||
| 2640 : | return 0; | ||
| 2641 : | } | ||
| 2642 : | _ACEOF | ||
| 2643 : | rm -f conftest.$ac_objext conftest$ac_exeext | ||
| 2644 : | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
| 2645 : | (eval $ac_link) 2>&5 | ||
| 2646 : | ac_status=$? | ||
| 2647 : | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 2648 : | (exit $ac_status); } && | ||
| 2649 : | { ac_try='test -s conftest$ac_exeext' | ||
| 2650 : | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
| 2651 : | (eval $ac_try) 2>&5 | ||
| 2652 : | ac_status=$? | ||
| 2653 : | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 2654 : | (exit $ac_status); }; }; then | ||
| 2655 : | ok=PTHREAD_CREATE_UNDETACHED | ||
| 2656 : | else | ||
| 2657 : | echo "$as_me: failed program was:" >&5 | ||
| 2658 : | wieck | 1.14 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2659 : | |||
| 2660 : | wieck | 1.2 | ok=unknown |
| 2661 : | fi | ||
| 2662 : | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
| 2663 : | fi | ||
| 2664 : | if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then | ||
| 2665 : | |||
| 2666 : | cat >>confdefs.h <<\_ACEOF | ||
| 2667 : | #define PTHREAD_CREATE_JOINABLE $ok | ||
| 2668 : | _ACEOF | ||
| 2669 : | |||
| 2670 : | fi | ||
| 2671 : | echo "$as_me:$LINENO: result: ${ok}" >&5 | ||
| 2672 : | echo "${ECHO_T}${ok}" >&6 | ||
| 2673 : | if test x"$ok" = xunknown; then | ||
| 2674 : | { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5 | ||
| 2675 : | echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;} | ||
| 2676 : | fi | ||
| 2677 : | |||
| 2678 : | echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 | ||
| 2679 : | echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6 | ||
| 2680 : | flag=no | ||
| 2681 : | case "${host_cpu}-${host_os}" in | ||
| 2682 : | *-aix* | *-freebsd*) flag="-D_THREAD_SAFE";; | ||
| 2683 : | *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; | ||
| 2684 : | esac | ||
| 2685 : | echo "$as_me:$LINENO: result: ${flag}" >&5 | ||
| 2686 : | echo "${ECHO_T}${flag}" >&6 | ||
| 2687 : | if test "x$flag" != xno; then | ||
| 2688 : | PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" | ||
| 2689 : | fi | ||
| 2690 : | |||
| 2691 : | LIBS="$save_LIBS" | ||
| 2692 : | CFLAGS="$save_CFLAGS" | ||
| 2693 : | |||
| 2694 : | # More AIX lossage: must compile with cc_r | ||
| 2695 : | # Extract the first word of "cc_r", so it can be a program name with args. | ||
| 2696 : | set dummy cc_r; ac_word=$2 | ||
| 2697 : | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
| 2698 : | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
| 2699 : | if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then | ||
| 2700 : | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 2701 : | else | ||
| 2702 : | if test -n "$PTHREAD_CC"; then | ||
| 2703 : | ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. | ||
| 2704 : | else | ||
| 2705 : | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 2706 : | wieck | 1.14 | for as_dir in $PATH |
| 2707 : | do | ||
| 2708 : | IFS=$as_save_IFS | ||
| 2709 : | test -z "$as_dir" && as_dir=. | ||
| 2710 : | for ac_exec_ext in '' $ac_executable_extensions; do | ||
| 2711 : | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
| 2712 : | ac_cv_prog_PTHREAD_CC="cc_r" | ||
| 2713 : | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
| 2714 : | break 2 | ||
| 2715 : | fi | ||
| 2716 : | done | ||
| 2717 : | done | ||
| 2718 : | |||
| 2719 : | test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}" | ||
| 2720 : | fi | ||
| 2721 : | fi | ||
| 2722 : | PTHREAD_CC=$ac_cv_prog_PTHREAD_CC | ||
| 2723 : | if test -n "$PTHREAD_CC"; then | ||
| 2724 : | echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5 | ||
| 2725 : | echo "${ECHO_T}$PTHREAD_CC" >&6 | ||
| 2726 : | else | ||
| 2727 : | echo "$as_me:$LINENO: result: no" >&5 | ||
| 2728 : | echo "${ECHO_T}no" >&6 | ||
| 2729 : | fi | ||
| 2730 : | |||
| 2731 : | else | ||
| 2732 : | PTHREAD_CC="$CC" | ||
| 2733 : | fi | ||
| 2734 : | |||
| 2735 : | |||
| 2736 : | |||
| 2737 : | |||
| 2738 : | |||
| 2739 : | # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: | ||
| 2740 : | if test x"$acx_pthread_ok" = xyes; then | ||
| 2741 : | |||
| 2742 : | cat >>confdefs.h <<\_ACEOF | ||
| 2743 : | #define HAVE_PTHREAD 1 | ||
| 2744 : | _ACEOF | ||
| 2745 : | |||
| 2746 : | : | ||
| 2747 : | else | ||
| 2748 : | acx_pthread_ok=no | ||
| 2749 : | |||
| 2750 : | fi | ||
| 2751 : | ac_ext=c | ||
| 2752 : | ac_cpp='$CPP $CPPFLAGS' | ||
| 2753 : | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
| 2754 : | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
| 2755 : | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
| 2756 : | |||
| 2757 : | |||
| 2758 : | |||
| 2759 : | # Locate the PostgreSQL source tree | ||
| 2760 : | |||
| 2761 : | |||
| 2762 : | # Check whether --with-pgsourcetree or --without-pgsourcetree was given. | ||
| 2763 : | if test "${with_pgsourcetree+set}" = set; then | ||
| 2764 : | withval="$with_pgsourcetree" | ||
| 2765 : | PGSOURCETREE=$with_pgsourcetree | ||
| 2766 : | |||
| 2767 : | fi; | ||
| 2768 : | |||
| 2769 : | if test "x$with_pgsourcetree" = "x" ; then | ||
| 2770 : | { { echo "$as_me:$LINENO: error: | ||
| 2771 : | wieck | 1.15 | ******************** |
| 2772 : | * Compiling Slony-I currently requires a source installation | ||
| 2773 : | * of PostgreSQL. Please specify the location of the tree you | ||
| 2774 : | * built as --with-pgsourcetree=<dir> | ||
| 2775 : | ******************** | ||
| 2776 : | wieck | 1.14 | " >&5 |
| 2777 : | echo "$as_me: error: | ||
| 2778 : | wieck | 1.15 | ******************** |
| 2779 : | * Compiling Slony-I currently requires a source installation | ||
| 2780 : | * of PostgreSQL. Please specify the location of the tree you | ||
| 2781 : | * built as --with-pgsourcetree=<dir> | ||
| 2782 : | ******************** | ||
| 2783 : | wieck | 1.14 | " >&2;} |
| 2784 : | { (exit 1); exit 1; }; } | ||
| 2785 : | fi | ||
| 2786 : | |||
| 2787 : | # ---- | ||
| 2788 : | # Check if our libpq contains several functions | ||
| 2789 : | # ---- | ||
| 2790 : | save_CFLAGS="$CFLAGS" | ||
| 2791 : | save_LIBS="$LIBS" | ||
| 2792 : | CFLAGS="-I${with_pgsourcetree}/src/interfaces/libpq -I${with_pgsourcetree}/src/include $CFLAGS" | ||
| 2793 : | LIBS="-L${with_pgsourcetree}/src/interfaces/libpq -lpq $LIBS" | ||
| 2794 : | |||
| 2795 : | # PQfreemem() | ||
| 2796 : | echo "$as_me:$LINENO: checking for PQfreemem() in libpq" >&5 | ||
| 2797 : | echo $ECHO_N "checking for PQfreemem() in libpq... $ECHO_C" >&6 | ||
| 2798 : | have_pqfreemem=no | ||
| 2799 : | cat >conftest.$ac_ext <<_ACEOF | ||
| 2800 : | #line $LINENO "configure" | ||
| 2801 : | /* confdefs.h. */ | ||
| 2802 : | _ACEOF | ||
| 2803 : | cat confdefs.h >>conftest.$ac_ext | ||
| 2804 : | cat >>conftest.$ac_ext <<_ACEOF | ||
| 2805 : | /* end confdefs.h. */ | ||
| 2806 : | #include <libpq-fe.h> | ||
| 2807 : | int | ||
| 2808 : | main () | ||
| 2809 : | { | ||
| 2810 : | PQfreemem(NULL); | ||
| 2811 : | ; | ||
| 2812 : | return 0; | ||
| 2813 : | } | ||
| 2814 : | _ACEOF | ||
| 2815 : | rm -f conftest.$ac_objext conftest$ac_exeext | ||
| 2816 : | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
| 2817 : | (eval $ac_link) 2>&5 | ||
| 2818 : | ac_status=$? | ||
| 2819 : | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 2820 : | (exit $ac_status); } && | ||
| 2821 : | { ac_try='test -s conftest$ac_exeext' | ||
| 2822 : | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
| 2823 : | (eval $ac_try) 2>&5 | ||
| 2824 : | ac_status=$? | ||
| 2825 : | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 2826 : | (exit $ac_status); }; }; then | ||
| 2827 : | have_pqfreemem=yes | ||
| 2828 : | else | ||
| 2829 : | echo "$as_me: failed program was:" >&5 | ||
| 2830 : | sed 's/^/| /' conftest.$ac_ext >&5 | ||
| 2831 : | wieck | 1.2 | |
| 2832 : | fi | ||
| 2833 : | wieck | 1.14 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 2834 : | echo "$as_me:$LINENO: result: $have_pqfreemem" >&5 | ||
| 2835 : | echo "${ECHO_T}$have_pqfreemem" >&6 | ||
| 2836 : | if test $have_pqfreemem = yes ; then | ||
| 2837 : | cat >>confdefs.h <<\_ACEOF | ||
| 2838 : | #define HAVE_PQFREEMEM 1 | ||
| 2839 : | _ACEOF | ||
| 2840 : | wieck | 1.2 | |
| 2841 : | fi | ||
| 2842 : | |||
| 2843 : | wieck | 1.14 | # PQputCopyData() |
| 2844 : | echo "$as_me:$LINENO: checking for PQputCopyData() in libpq" >&5 | ||
| 2845 : | echo $ECHO_N "checking for PQputCopyData() in libpq... $ECHO_C" >&6 | ||
| 2846 : | have_pqputcopydata=no | ||
| 2847 : | cat >conftest.$ac_ext <<_ACEOF | ||
| 2848 : | #line $LINENO "configure" | ||
| 2849 : | /* confdefs.h. */ | ||
| 2850 : | _ACEOF | ||
| 2851 : | cat confdefs.h >>conftest.$ac_ext | ||
| 2852 : | cat >>conftest.$ac_ext <<_ACEOF | ||
| 2853 : | /* end confdefs.h. */ | ||
| 2854 : | #include <libpq-fe.h> | ||
| 2855 : | int | ||
| 2856 : | main () | ||
| 2857 : | { | ||
| 2858 : | PQputCopyData(NULL,NULL,0); | ||
| 2859 : | ; | ||
| 2860 : | return 0; | ||
| 2861 : | } | ||
| 2862 : | wieck | 1.2 | _ACEOF |
| 2863 : | wieck | 1.14 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2864 : | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
| 2865 : | (eval $ac_link) 2>&5 | ||
| 2866 : | ac_status=$? | ||
| 2867 : | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 2868 : | (exit $ac_status); } && | ||
| 2869 : | { ac_try='test -s conftest$ac_exeext' | ||
| 2870 : | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
| 2871 : | (eval $ac_try) 2>&5 | ||
| 2872 : | ac_status=$? | ||
| 2873 : | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 2874 : | (exit $ac_status); }; }; then | ||
| 2875 : | have_pqputcopydata=yes | ||
| 2876 : | wieck | 1.2 | else |
| 2877 : | wieck | 1.14 | echo "$as_me: failed program was:" >&5 |
| 2878 : | sed 's/^/| /' conftest.$ac_ext >&5 | ||
| 2879 : | wieck | 1.2 | |
| 2880 : | fi | ||
| 2881 : | wieck | 1.14 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 2882 : | echo "$as_me:$LINENO: result: $have_pqputcopydata" >&5 | ||
| 2883 : | echo "${ECHO_T}$have_pqputcopydata" >&6 | ||
| 2884 : | if test $have_pqputcopydata = yes ; then | ||
| 2885 : | cat >>confdefs.h <<\_ACEOF | ||
| 2886 : | #define HAVE_PQPUTCOPYDATA 1 | ||
| 2887 : | _ACEOF | ||
| 2888 : | wieck | 1.2 | |
| 2889 : | wieck | 1.14 | fi |
| 2890 : | wieck | 1.2 | |
| 2891 : | wieck | 1.14 | # PQsetNoticeReceiver() |
| 2892 : | echo "$as_me:$LINENO: checking for PQsetNoticeReceiver() in libpq" >&5 | ||
| 2893 : | echo $ECHO_N "checking for PQsetNoticeReceiver() in libpq... $ECHO_C" >&6 | ||
| 2894 : | have_pqsetnoticereceiver=no | ||
| 2895 : | cat >conftest.$ac_ext <<_ACEOF | ||
| 2896 : | wieck | 1.1 | #line $LINENO "configure" |
| 2897 : | wieck | 1.14 | /* confdefs.h. */ |
| 2898 : | _ACEOF | ||
| 2899 : | cat confdefs.h >>conftest.$ac_ext | ||
| 2900 : | cat >>conftest.$ac_ext <<_ACEOF | ||
| 2901 : | /* end confdefs.h. */ | ||
| 2902 : | #include <libpq-fe.h> | ||
| 2903 : | wieck | 1.10 | int |
| 2904 : | main () | ||
| 2905 : | { | ||
| 2906 : | wieck | 1.14 | PQsetNoticeReceiver(NULL,NULL,NULL); |
| 2907 : | wieck | 1.1 | ; |
| 2908 : | return 0; | ||
| 2909 : | } | ||
| 2910 : | _ACEOF | ||
| 2911 : | rm -f conftest.$ac_objext conftest$ac_exeext | ||
| 2912 : | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
| 2913 : | (eval $ac_link) 2>&5 | ||
| 2914 : | ac_status=$? | ||
| 2915 : | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 2916 : | (exit $ac_status); } && | ||
| 2917 : | { ac_try='test -s conftest$ac_exeext' | ||
| 2918 : | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
| 2919 : | (eval $ac_try) 2>&5 | ||
| 2920 : | ac_status=$? | ||
| 2921 : | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
| 2922 : | (exit $ac_status); }; }; then | ||
| 2923 : | wieck | 1.14 | have_pqsetnoticereceiver=yes |
| 2924 : | wieck | 1.1 | else |
| 2925 : | echo "$as_me: failed program was:" >&5 | ||
| 2926 : | wieck | 1.14 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2927 : | |||
| 2928 : | wieck | 1.1 | fi |
| 2929 : | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | ||
| 2930 : | wieck | 1.14 | echo "$as_me:$LINENO: result: $have_pqsetnoticereceiver" >&5 |
| 2931 : | echo "${ECHO_T}$have_pqsetnoticereceiver" >&6 | ||
| 2932 : | if test $have_pqsetnoticereceiver = yes ; then | ||
| 2933 : | cat >>confdefs.h <<\_ACEOF | ||
| 2934 : | #define HAVE_PQSETNOTICERECEIVER 1 | ||
| 2935 : | wieck | 1.1 | _ACEOF |
| 2936 : | |||
| 2937 : | fi | ||
| 2938 : | |||
| 2939 : | wieck | 1.14 | echo "$as_me:$LINENO: checking for typcache.h" >&5 |
| 2940 : | echo $ECHO_N "checking for typcache.h... $ECHO_C" >&6 | ||
| 2941 : | if test -f "${with_pgsourcetree}/src/include/utils/typcache.h"; then | ||
| 2942 : | have_typcache=yes | ||
| 2943 : | cat >>confdefs.h <<\_ACEOF | ||
| 2944 : | #define HAVE_TYPCACHE 1 | ||
| 2945 : | _ACEOF | ||
| 2946 : | wieck | 1.1 | |
| 2947 : | wieck | 1.14 | else |
| 2948 : | have_typcache=no | ||
| 2949 : | fi | ||
| 2950 : | echo "$as_me:$LINENO: result: $have_typcache" >&5 | ||
| 2951 : | echo "${ECHO_T}$have_typcache" >&6 | ||
| 2952 : | wieck | 1.1 | |
| 2953 : | wieck | 1.14 | CFLAGS="$save_CFLAGS" |
| 2954 : | LIBS="$save_LIBS" | ||
| 2955 : | wieck | 1.1 | |
| 2956 : | wieck | 1.14 | ac_config_files="$ac_config_files Makefile.global" |
| 2957 : | wieck | 1.1 | |
| 2958 : | |||
| 2959 : | wieck | 1.14 | ac_config_files="$ac_config_files postgresql-slony1-engine.spec" |
| 2960 : | wieck | 1.1 | cat >confcache <<\_ACEOF |
| 2961 : | # This file is a shell script that caches the results of configure | ||
| 2962 : | # tests run on this system so they can be shared between configure | ||
| 2963 : | # scripts and configure runs, see configure's option --config-cache. | ||
| 2964 : | # It is not useful on other systems. If it contains results you don't | ||
| 2965 : | # want to keep, you may remove or edit it. | ||
| 2966 : | # | ||
| 2967 : | # config.status only pays attention to the cache file if you give it | ||
| 2968 : | # the --recheck option to rerun configure. | ||
| 2969 : | # | ||
| 2970 : | wieck | 1.14 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 2971 : | wieck | 1.1 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 2972 : | # following values. | ||
| 2973 : | |||
| 2974 : | _ACEOF | ||
| 2975 : | |||
| 2976 : | # The following way of writing the cache mishandles newlines in values, | ||
| 2977 : | # but we know of no workaround that is simple, portable, and efficient. | ||
| 2978 : | # So, don't put newlines in cache variables' values. | ||
| 2979 : | # Ultrix sh set writes to stderr and can't be redirected directly, | ||
| 2980 : | # and sets the high bit in the cache file unless we assign to the vars. | ||
| 2981 : | { | ||
| 2982 : | (set) 2>&1 | | ||
| 2983 : | case `(ac_space=' '; set | grep ac_space) 2>&1` in | ||
| 2984 : | *ac_space=\ *) | ||
| 2985 : | # `set' does not quote correctly, so add quotes (double-quote | ||
| 2986 : | # substitution turns \\\\ into \\, and sed turns \\ into \). | ||
| 2987 : | sed -n \ | ||
| 2988 : | "s/'/'\\\\''/g; | ||
| 2989 : | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | ||
| 2990 : | ;; | ||
| 2991 : | *) | ||
| 2992 : | # `set' quotes correctly as required by POSIX, so do not add quotes. | ||
| 2993 : | sed -n \ | ||
| 2994 : | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | ||
| 2995 : | ;; | ||
| 2996 : | esac; | ||
| 2997 : | } | | ||
| 2998 : | sed ' | ||
| 2999 : | t clear | ||
| 3000 : | : clear | ||
| 3001 : | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | ||
| 3002 : | t end | ||
| 3003 : | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | ||
| 3004 : | : end' >>confcache | ||
| 3005 : | wieck | 1.14 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
| 3006 : | wieck | 1.1 | if test -w $cache_file; then |
| 3007 : | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | ||
| 3008 : | cat confcache >$cache_file | ||
| 3009 : | else | ||
| 3010 : | echo "not updating unwritable cache $cache_file" | ||
| 3011 : | fi | ||
| 3012 : | fi | ||
| 3013 : | rm -f confcache | ||
| 3014 : | |||
| 3015 : | test "x$prefix" = xNONE && prefix=$ac_default_prefix | ||
| 3016 : | # Let make expand exec_prefix. | ||
| 3017 : | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||
| 3018 : | |||
| 3019 : | # VPATH may cause trouble with some makes, so we remove $(srcdir), | ||
| 3020 : | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | ||
| 3021 : | # trailing colons and then remove the whole line if VPATH becomes empty | ||
| 3022 : | # (actually we leave an empty line to preserve line numbers). | ||
| 3023 : | if test "x$srcdir" = x.; then | ||
| 3024 : | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | ||
| 3025 : | s/:*\$(srcdir):*/:/; | ||
| 3026 : | s/:*\${srcdir}:*/:/; | ||
| 3027 : | s/:*@srcdir@:*/:/; | ||
| 3028 : | s/^\([^=]*=[ ]*\):*/\1/; | ||
| 3029 : | s/:*$//; | ||
| 3030 : | s/^[^=]*=[ ]*$//; | ||
| 3031 : | }' | ||
| 3032 : | fi | ||
| 3033 : | |||
| 3034 : | DEFS=-DHAVE_CONFIG_H | ||
| 3035 : | |||
| 3036 : | wieck | 1.14 | ac_libobjs= |
| 3037 : | ac_ltlibobjs= | ||
| 3038 : | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | ||
| 3039 : | # 1. Remove the extension, and $U if already installed. | ||
| 3040 : | ac_i=`echo "$ac_i" | | ||
| 3041 : | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | ||
| 3042 : | # 2. Add them. | ||
| 3043 : | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | ||
| 3044 : | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | ||
| 3045 : | done | ||
| 3046 : | LIBOBJS=$ac_libobjs | ||
| 3047 : | |||
| 3048 : | LTLIBOBJS=$ac_ltlibobjs | ||
| 3049 : | |||
| 3050 : | |||
| 3051 : | wieck | 1.1 | |
| 3052 : | : ${CONFIG_STATUS=./config.status} | ||
| 3053 : | ac_clean_files_save=$ac_clean_files | ||
| 3054 : | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | ||
| 3055 : | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | ||
| 3056 : | echo "$as_me: creating $CONFIG_STATUS" >&6;} | ||
| 3057 : | cat >$CONFIG_STATUS <<_ACEOF | ||
| 3058 : | #! $SHELL | ||
| 3059 : | # Generated by $as_me. | ||
| 3060 : | # Run this file to recreate the current configuration. | ||
| 3061 : | # Compiler output produced by configure, useful for debugging | ||
| 3062 : | # configure, is in config.log if it exists. | ||
| 3063 : | |||
| 3064 : | debug=false | ||
| 3065 : | wieck | 1.14 | ac_cs_recheck=false |
| 3066 : | ac_cs_silent=false | ||
| 3067 : | wieck | 1.1 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 3068 : | _ACEOF | ||
| 3069 : | |||
| 3070 : | cat >>$CONFIG_STATUS <<\_ACEOF | ||
| 3071 : | ## --------------------- ## | ||
| 3072 : | ## M4sh Initialization. ## | ||
| 3073 : | ## --------------------- ## | ||
| 3074 : | |||
| 3075 : | # Be Bourne compatible | ||
| 3076 : | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
| 3077 : | emulate sh | ||
| 3078 : | NULLCMD=: | ||
| 3079 : | wieck | 1.14 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 3080 : | # is contrary to our usage. Disable this feature. | ||
| 3081 : | alias -g '${1+"$@"}'='"$@"' | ||
| 3082 : | wieck | 1.1 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 3083 : | set -o posix | ||
| 3084 : | fi | ||
| 3085 : | |||
| 3086 : | # Support unset when possible. | ||
| 3087 : | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | ||
| 3088 : | as_unset=unset | ||
| 3089 : | else | ||
| 3090 : | as_unset=false | ||
| 3091 : | fi | ||
| 3092 : | |||
| 3093 : | wieck | 1.14 | |
| 3094 : | # Work around bugs in pre-3.0 UWIN ksh. | ||
| 3095 : | $as_unset ENV MAIL MAILPATH | ||
| 3096 : | PS1='$ ' | ||
| 3097 : | PS2='> ' | ||
| 3098 : | PS4='+ ' | ||
| 3099 : | |||
| 3100 : | # NLS nuisances. | ||
| 3101 : | for as_var in \ | ||
| 3102 : | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | ||
| 3103 : | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | ||
| 3104 : | LC_TELEPHONE LC_TIME | ||
| 3105 : | do | ||
| 3106 : | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then | ||
| 3107 : | eval $as_var=C; export $as_var | ||
| 3108 : | else | ||
| 3109 : | $as_unset $as_var | ||
| 3110 : | fi | ||
| 3111 : | done | ||
| 3112 : | |||
| 3113 : | # Required to use basename. | ||
| 3114 : | if expr a : '\(a\)' >/dev/null 2>&1; then | ||
| 3115 : | as_expr=expr | ||
| 3116 : | else | ||
| 3117 : | as_expr=false | ||
| 3118 : | fi | ||
| 3119 : | |||
| 3120 : | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | ||
| 3121 : | as_basename=basename | ||
| 3122 : | else | ||
| 3123 : | as_basename=false | ||
| 3124 : | fi | ||
| 3125 : | wieck | 1.1 | |
| 3126 : | |||
| 3127 : | # Name of the executable. | ||
| 3128 : | wieck | 1.14 | as_me=`$as_basename "$0" || |
| 3129 : | wieck | 1.1 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 3130 : | X"$0" : 'X\(//\)$' \| \ | ||
| 3131 : | X"$0" : 'X\(/\)$' \| \ | ||
| 3132 : | . : '\(.\)' 2>/dev/null || | ||
| 3133 : | echo X/"$0" | | ||
| 3134 : | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | ||
| 3135 : | /^X\/\(\/\/\)$/{ s//\1/; q; } | ||
| 3136 : | /^X\/\(\/\).*/{ s//\1/; q; } | ||
| 3137 : | s/.*/./; q'` | ||
| 3138 : | |||
| 3139 : | wieck | 1.14 | |
| 3140 : | wieck | 1.1 | # PATH needs CR, and LINENO needs CR and PATH. |
| 3141 : | # Avoid depending upon Character Ranges. | ||
| 3142 : | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
| 3143 : | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
| 3144 : | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
| 3145 : | as_cr_digits='0123456789' | ||
| 3146 : | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
| 3147 : | |||
| 3148 : | # The user is always right. | ||
| 3149 : | if test "${PATH_SEPARATOR+set}" != set; then | ||
| 3150 : | wieck | 1.14 | echo "#! /bin/sh" >conf$$.sh |
| 3151 : | echo "exit 0" >>conf$$.sh | ||
| 3152 : | chmod +x conf$$.sh | ||
| 3153 : | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | ||
| 3154 : | wieck | 1.1 | PATH_SEPARATOR=';' |
| 3155 : | else | ||
| 3156 : | PATH_SEPARATOR=: | ||
| 3157 : | fi | ||
| 3158 : | wieck | 1.14 | rm -f conf$$.sh |
| 3159 : | wieck | 1.1 | fi |
| 3160 : | |||
| 3161 : | |||
| 3162 : | as_lineno_1=$LINENO | ||
| 3163 : | as_lineno_2=$LINENO | ||
| 3164 : | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | ||
| 3165 : | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
| 3166 : | test "x$as_lineno_3" = "x$as_lineno_2" || { | ||
| 3167 : | # Find who we are. Look in the path if we contain no path at all | ||
| 3168 : | # relative or not. | ||
| 3169 : | case $0 in | ||
| 3170 : | *[\\/]* ) as_myself=$0 ;; | ||
| 3171 : | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 3172 : | for as_dir in $PATH | ||
| 3173 : | do | ||
| 3174 : | IFS=$as_save_IFS | ||
| 3175 : | test -z "$as_dir" && as_dir=. | ||
| 3176 : | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
| 3177 : | done | ||
| 3178 : | |||
| 3179 : | ;; | ||
| 3180 : | esac | ||
| 3181 : | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
| 3182 : | # in which case we are not to be found in the path. | ||
| 3183 : | if test "x$as_myself" = x; then | ||
| 3184 : | as_myself=$0 | ||
| 3185 : | fi | ||
| 3186 : | if test ! -f "$as_myself"; then | ||
| 3187 : | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | ||
| 3188 : | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | ||
| 3189 : | { (exit 1); exit 1; }; } | ||
| 3190 : | fi | ||
| 3191 : | case $CONFIG_SHELL in | ||
| 3192 : | '') | ||
| 3193 : | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
| 3194 : | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | ||
| 3195 : | do | ||
| 3196 : | IFS=$as_save_IFS | ||
| 3197 : | test -z "$as_dir" && as_dir=. | ||
| 3198 : | for as_base in sh bash ksh sh5; do | ||
| 3199 : | case $as_dir in | ||
| 3200 : | /*) | ||
| 3201 : | if ("$as_dir/$as_base" -c ' | ||
| 3202 : | as_lineno_1=$LINENO | ||
| 3203 : | as_lineno_2=$LINENO | ||
| 3204 : | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | ||
| 3205 : | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
| 3206 : | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | ||
| 3207 : | wieck | 1.14 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 3208 : | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | ||
| 3209 : | wieck | 1.1 | CONFIG_SHELL=$as_dir/$as_base |
| 3210 : | export CONFIG_SHELL | ||
| 3211 : | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | ||
| 3212 : | fi;; | ||
| 3213 : | esac | ||
| 3214 : | done | ||
| 3215 : | done | ||
| 3216 : | ;; | ||
| 3217 : | esac | ||
| 3218 : | |||
| 3219 : | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | ||
| 3220 : | # uniformly replaced by the line number. The first 'sed' inserts a | ||
| 3221 : | # line-number line before each line; the second 'sed' does the real | ||
| 3222 : | # work. The second script uses 'N' to pair each line-number line | ||
| 3223 : | # with the numbered line, and appends trailing '-' during | ||
| 3224 : | # substitution so that $LINENO is not a special case at line end. | ||
| 3225 : | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | ||
| 3226 : | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | ||
| 3227 : | sed '=' <$as_myself | | ||
| 3228 : | sed ' | ||
| 3229 : | N | ||
| 3230 : | s,$,-, | ||
| 3231 : | : loop | ||
| 3232 : | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | ||
| 3233 : | t loop | ||
| 3234 : | s,-$,, | ||
| 3235 : | s,^['$as_cr_digits']*\n,, | ||
| 3236 : | ' >$as_me.lineno && | ||
| 3237 : | chmod +x $as_me.lineno || | ||
| 3238 : | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | ||
| 3239 : | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | ||
| 3240 : | { (exit 1); exit 1; }; } | ||
| 3241 : | |||
| 3242 : | # Don't try to exec as it changes $[0], causing all sort of problems | ||
| 3243 : | # (the dirname of $[0] is not the place where we might find the | ||
| 3244 : | # original and so on. Autoconf is especially sensible to this). | ||
| 3245 : | . ./$as_me.lineno | ||
| 3246 : | # Exit status is that of the last command. | ||
| 3247 : | exit | ||
| 3248 : | } | ||
| 3249 : | |||
| 3250 : | |||
| 3251 : | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | ||
| 3252 : | *c*,-n*) ECHO_N= ECHO_C=' | ||
| 3253 : | ' ECHO_T=' ' ;; | ||
| 3254 : | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | ||
| 3255 : | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | ||
| 3256 : | esac | ||
| 3257 : | |||
| 3258 : | if expr a : '\(a\)' >/dev/null 2>&1; then | ||
| 3259 : | as_expr=expr | ||
| 3260 : | else | ||
| 3261 : | as_expr=false | ||
| 3262 : | fi | ||
| 3263 : | |||
| 3264 : | rm -f conf$$ conf$$.exe conf$$.file | ||
| 3265 : | echo >conf$$.file | ||
| 3266 : | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
| 3267 : | # We could just check for DJGPP; but this test a) works b) is more generic | ||
| 3268 : | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | ||
| 3269 : | if test -f conf$$.exe; then | ||
| 3270 : | # Don't use ln at all; we don't have any links | ||
| 3271 : | as_ln_s='cp -p' | ||
| 3272 : | else | ||
| 3273 : | as_ln_s='ln -s' | ||
| 3274 : | fi | ||
| 3275 : | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
| 3276 : | as_ln_s=ln | ||
| 3277 : | else | ||
| 3278 : | as_ln_s='cp -p' | ||
| 3279 : | fi | ||
| 3280 : | rm -f conf$$ conf$$.exe conf$$.file | ||
| 3281 : | |||
| 3282 : | wieck | 1.14 | if mkdir -p . 2>/dev/null; then |
| 3283 : | as_mkdir_p=: | ||
| 3284 : | else | ||
| 3285 : | as_mkdir_p=false | ||
| 3286 : | fi | ||
| 3287 : | |||
| 3288 : | wieck | 1.1 | as_executable_p="test -f" |
| 3289 : | |||
| 3290 : | # Sed expression to map a string onto a valid CPP name. | ||
| 3291 : | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | ||
| 3292 : | |||
| 3293 : | # Sed expression to map a string onto a valid variable name. | ||
| 3294 : | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | ||
| 3295 : | |||
| 3296 : | |||
| 3297 : | # IFS | ||
| 3298 : | # We need space, tab and new line, in precisely that order. | ||
| 3299 : | as_nl=' | ||
| 3300 : | ' | ||
| 3301 : | IFS=" $as_nl" | ||
| 3302 : | |||
| 3303 : | # CDPATH. | ||
| 3304 : | wieck | 1.14 | $as_unset CDPATH |
| 3305 : | wieck | 1.1 | |
| 3306 : | exec 6>&1 | ||
| 3307 : | |||
| 3308 : | # Open the log real soon, to keep \$[0] and so on meaningful, and to | ||
| 3309 : | # report actual input values of CONFIG_FILES etc. instead of their | ||
| 3310 : | # values after options handling. Logging --version etc. is OK. | ||
| 3311 : | exec 5>>config.log | ||
| 3312 : | { | ||
| 3313 : | echo | ||
| 3314 : | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | ||
| 3315 : | ## Running $as_me. ## | ||
| 3316 : | _ASBOX | ||
| 3317 : | } >&5 | ||
| 3318 : | cat >&5 <<_CSEOF | ||
| 3319 : | |||
| 3320 : | wieck | 1.14 | This file was extended by slony1-engine $as_me 20040330, which was |
| 3321 : | generated by GNU Autoconf 2.57. Invocation command line was | ||
| 3322 : | wieck | 1.1 | |
| 3323 : | CONFIG_FILES = $CONFIG_FILES | ||
| 3324 : | CONFIG_HEADERS = $CONFIG_HEADERS | ||
| 3325 : | CONFIG_LINKS = $CONFIG_LINKS | ||
| 3326 : | CONFIG_COMMANDS = $CONFIG_COMMANDS | ||
| 3327 : | $ $0 $@ | ||
| 3328 : | |||
| 3329 : | _CSEOF | ||
| 3330 : | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | ||
| 3331 : | echo >&5 | ||
| 3332 : | _ACEOF | ||
| 3333 : | |||
| 3334 : | # Files that config.status was made for. | ||
| 3335 : | if test -n "$ac_config_files"; then | ||
| 3336 : | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | ||
| 3337 : | fi | ||
| 3338 : | |||
| 3339 : | if test -n "$ac_config_headers"; then | ||
| 3340 : | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | ||
| 3341 : | fi | ||
| 3342 : | |||
| 3343 : | if test -n "$ac_config_links"; then | ||
| 3344 : | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | ||
| 3345 : | fi | ||
| 3346 : | |||
| 3347 : | if test -n "$ac_config_commands"; then | ||
| 3348 : | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | ||
| 3349 : | fi | ||
| 3350 : | |||
| 3351 : | cat >>$CONFIG_STATUS <<\_ACEOF | ||
| 3352 : | |||
| 3353 : | ac_cs_usage="\ | ||
| 3354 : | \`$as_me' instantiates files from templates according to the | ||
| 3355 : | current configuration. | ||
| 3356 : | |||
| 3357 : | Usage: $0 [OPTIONS] [FILE]... | ||
| 3358 : | |||
| 3359 : | -h, --help print this help, then exit | ||
| 3360 : | -V, --version print version number, then exit | ||
| 3361 : | wieck | 1.14 | -q, --quiet do not print progress messages |
| 3362 : | wieck | 1.1 | -d, --debug don't remove temporary files |
| 3363 : | --recheck update $as_me by reconfiguring in the same conditions | ||
| 3364 : | --file=FILE[:TEMPLATE] | ||
| 3365 : | instantiate the configuration file FILE | ||
| 3366 : | --header=FILE[:TEMPLATE] | ||
| 3367 : | instantiate the configuration header FILE | ||
| 3368 : | |||
| 3369 : | Configuration files: | ||
| 3370 : | $config_files | ||
| 3371 : | |||
| 3372 : | Configuration headers: | ||
| 3373 : | $config_headers | ||
| 3374 : | |||
| 3375 : | Report bugs to <bug-autoconf@gnu.org>." | ||
| 3376 : | _ACEOF | ||
| 3377 : | |||
| 3378 : | cat >>$CONFIG_STATUS <<_ACEOF | ||
| 3379 : | ac_cs_version="\\ | ||
| 3380 : | wieck | 1.14 | slony1-engine config.status 20040330 |
| 3381 : | configured by $0, generated by GNU Autoconf 2.57, | ||
| 3382 : | wieck | 1.1 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 3383 : | |||
| 3384 : | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | ||
| 3385 : | Free Software Foundation, Inc. | ||
| 3386 : | This config.status script is free software; the Free Software Foundation | ||
| 3387 : | gives unlimited permission to copy, distribute and modify it." | ||
| 3388 : | srcdir=$srcdir | ||
| 3389 : | _ACEOF | ||
| 3390 : | |||
| 3391 : | cat >>$CONFIG_STATUS <<\_ACEOF | ||
| 3392 : | # If no file are specified by the user, then we need to provide default | ||
| 3393 : | # value. By we need to know if files were specified by the user. | ||
| 3394 : | ac_need_defaults=: | ||
| 3395 : | while test $# != 0 | ||
| 3396 : | do | ||
| 3397 : | case $1 in | ||
| 3398 : | --*=*) | ||
| 3399 : | ac_option=`expr "x$1" : 'x\([^=]*\)='` | ||
| 3400 : | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | ||
| 3401 : | wieck | 1.14 | ac_shift=: |
| 3402 : | ;; | ||
| 3403 : | -*) | ||
| 3404 : | ac_option=$1 | ||
| 3405 : | ac_optarg=$2 | ||
| 3406 : | ac_shift=shift | ||
| 3407 : | wieck | 1.1 | ;; |
| 3408 : | *) # This is not an option, so the user has probably given explicit | ||
| 3409 : | # arguments. | ||
| 3410 : | wieck | 1.14 | ac_option=$1 |
| 3411 : | wieck | 1.1 | ac_need_defaults=false;; |
| 3412 : | esac | ||
| 3413 : | |||
| 3414 : | wieck | 1.14 | case $ac_option in |
| 3415 : | wieck | 1.1 | # Handling of the options. |
| 3416 : | _ACEOF | ||
| 3417 : | wieck | 1.14 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 3418 : | wieck | 1.10 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 3419 : | wieck | 1.14 | ac_cs_recheck=: ;; |
| 3420 : | wieck | 1.1 | --version | --vers* | -V ) |
| 3421 : | echo "$ac_cs_version"; exit 0 ;; | ||
| 3422 : | --he | --h) | ||
| 3423 : | # Conflict between --help and --header | ||
| 3424 : | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | ||
| 3425 : | Try \`$0 --help' for more information." >&5 | ||
| 3426 : | echo "$as_me: error: ambiguous option: $1 | ||
| 3427 : | Try \`$0 --help' for more information." >&2;} | ||
| 3428 : | { (exit 1); exit 1; }; };; | ||
| 3429 : | --help | --hel | -h ) | ||
| 3430 : | echo "$ac_cs_usage"; exit 0 ;; | ||
| 3431 : | --debug | --d* | -d ) | ||
| 3432 : | debug=: ;; | ||
| 3433 : | --file | --fil | --fi | --f ) | ||
| 3434 : | wieck | 1.14 | $ac_shift |
| 3435 : | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | ||
| 3436 : | wieck | 1.1 | ac_need_defaults=false;; |
| 3437 : | --header | --heade | --head | --hea ) | ||
| 3438 : | wieck | 1.14 | $ac_shift |
| 3439 : | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | ||
| 3440 : | wieck | 1.1 | ac_need_defaults=false;; |
| 3441 : | wieck | 1.14 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 3442 : | | -silent | --silent | --silen | --sile | --sil | --si | --s) | ||
| 3443 : | ac_cs_silent=: ;; | ||
| 3444 : | wieck | 1.1 | |
| 3445 : | # This is an error. | ||
| 3446 : | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | ||
| 3447 : | Try \`$0 --help' for more information." >&5 | ||
| 3448 : | echo "$as_me: error: unrecognized option: $1 | ||
| 3449 : | Try \`$0 --help' for more information." >&2;} | ||
| 3450 : | { (exit 1); exit 1; }; } ;; | ||
| 3451 : | |||
| 3452 : | *) ac_config_targets="$ac_config_targets $1" ;; | ||
| 3453 : | |||
| 3454 : | esac | ||
| 3455 : | shift | ||
| 3456 : | done | ||
| 3457 : | |||
| 3458 : | wieck | 1.14 | ac_configure_extra_args= |
| 3459 : | |||
| 3460 : | if $ac_cs_silent; then | ||
| 3461 : | exec 6>/dev/null | ||
| 3462 : | ac_configure_extra_args="$ac_configure_extra_args --silent" | ||
| 3463 : | fi | ||
| 3464 : | |||
| 3465 : | _ACEOF | ||
| 3466 : | cat >>$CONFIG_STATUS <<_ACEOF | ||
| 3467 : | if \$ac_cs_recheck; then | ||
| 3468 : | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | ||
| 3469 : | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | ||
| 3470 : | fi | ||
| 3471 : | |||
| 3472 : | wieck | 1.1 | _ACEOF |
| 3473 : | |||
| 3474 : | |||
| 3475 : | |||
| 3476 : | |||
| 3477 : | |||
| 3478 : | cat >>$CONFIG_STATUS <<\_ACEOF | ||
| 3479 : | for ac_config_target in $ac_config_targets | ||
| 3480 : | do | ||
| 3481 : | case "$ac_config_target" in | ||
| 3482 : | # Handling of arguments. | ||
| 3483 : | "Makefile.global" ) CONFIG_FILES="$CONFIG_FILES Makefile.global" ;; | ||
| 3484 : | wieck | 1.12 | "postgresql-slony1-engine.spec" ) CONFIG_FILES="$CONFIG_FILES postgresql-slony1-engine.spec" ;; |
| 3485 : | wieck | 1.1 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
| 3486 : | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | ||
| 3487 : | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | ||
| 3488 : | { (exit 1); exit 1; }; };; | ||
| 3489 : | esac | ||
| 3490 : | done | ||
| 3491 : | |||
| 3492 : | # If the user did not use the arguments to specify the items to instantiate, | ||
| 3493 : | # then the envvar interface is used. Set only those that are not. | ||
| 3494 : | # We use the long form for the default assignment because of an extremely | ||
| 3495 : | # bizarre bug on SunOS 4.1.3. | ||
| 3496 : | if $ac_need_defaults; then | ||
| 3497 : | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | ||
| 3498 : | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | ||
| 3499 : | fi | ||
| 3500 : | |||
| 3501 : | wieck | 1.14 | # Have a temporary directory for convenience. Make it in the build tree |
| 3502 : | # simply because there is no reason to put it here, and in addition, | ||
| 3503 : | # creating and moving files from /tmp can sometimes cause problems. | ||
| 3504 : | wieck | 1.1 | # Create a temporary directory, and hook for its removal unless debugging. |
| 3505 : | $debug || | ||
| 3506 : | { | ||
| 3507 : | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | ||
| 3508 : | trap '{ (exit 1); exit 1; }' 1 2 13 15 | ||
| 3509 : | } | ||
| 3510 : | |||
| 3511 : | # Create a (secure) tmp directory for tmp files. | ||
| 3512 : | wieck | 1.14 | |
| 3513 : | wieck | 1.1 | { |
| 3514 : | wieck | 1.14 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
| 3515 : | wieck | 1.1 | test -n "$tmp" && test -d "$tmp" |
| 3516 : | } || | ||
| 3517 : | { | ||
| 3518 : | wieck | 1.14 | tmp=./confstat$$-$RANDOM |
| 3519 : | wieck | 1.1 | (umask 077 && mkdir $tmp) |
| 3520 : | } || | ||
| 3521 : | { | ||
| 3522 : | wieck | 1.14 | echo "$me: cannot create a temporary directory in ." >&2 |
| 3523 : | wieck | 1.1 | { (exit 1); exit 1; } |
| 3524 : | } | ||
| 3525 : | |||
| 3526 : | _ACEOF | ||
| 3527 : | |||
| 3528 : | cat >>$CONFIG_STATUS <<_ACEOF | ||
| 3529 : | |||
| 3530 : | # | ||
| 3531 : | # CONFIG_FILES section. | ||
| 3532 : | # | ||
| 3533 : | |||
| 3534 : | # No need to generate the scripts if there are no CONFIG_FILES. | ||
| 3535 : | # This happens for instance when ./config.status config.h | ||
| 3536 : | if test -n "\$CONFIG_FILES"; then | ||
| 3537 : | # Protect against being on the right side of a sed subst in config.status. | ||
| 3538 : | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | ||
| 3539 : | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | ||
| 3540 : | s,@SHELL@,$SHELL,;t t | ||
| 3541 : | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | ||
| 3542 : | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | ||
| 3543 : | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | ||
| 3544 : | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | ||
| 3545 : | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | ||
| 3546 : | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | ||
| 3547 : | s,@exec_prefix@,$exec_prefix,;t t | ||
| 3548 : | s,@prefix@,$prefix,;t t | ||
| 3549 : | s,@program_transform_name@,$program_transform_name,;t t | ||
| 3550 : | s,@bindir@,$bindir,;t t | ||
| 3551 : | s,@sbindir@,$sbindir,;t t | ||
| 3552 : | s,@libexecdir@,$libexecdir,;t t | ||
| 3553 : | s,@datadir@,$datadir,;t t | ||
| 3554 : | s,@sysconfdir@,$sysconfdir,;t t | ||
| 3555 : | s,@sharedstatedir@,$sharedstatedir,;t t | ||
| 3556 : | s,@localstatedir@,$localstatedir,;t t | ||
| 3557 : | s,@libdir@,$libdir,;t t | ||
| 3558 : | s,@includedir@,$includedir,;t t | ||
| 3559 : | s,@oldincludedir@,$oldincludedir,;t t | ||
| 3560 : | s,@infodir@,$infodir,;t t | ||
| 3561 : | s,@mandir@,$mandir,;t t | ||
| 3562 : | s,@build_alias@,$build_alias,;t t | ||
| 3563 : | s,@host_alias@,$host_alias,;t t | ||
| 3564 : | s,@target_alias@,$target_alias,;t t | ||
| 3565 : | s,@DEFS@,$DEFS,;t t | ||
| 3566 : | s,@ECHO_C@,$ECHO_C,;t t | ||
| 3567 : | s,@ECHO_N@,$ECHO_N,;t t | ||
| 3568 : | s,@ECHO_T@,$ECHO_T,;t t | ||
| 3569 : | s,@LIBS@,$LIBS,;t t | ||
| 3570 : | s,@build@,$build,;t t | ||
| 3571 : | s,@build_cpu@,$build_cpu,;t t | ||
| 3572 : | s,@build_vendor@,$build_vendor,;t t | ||
| 3573 : | s,@build_os@,$build_os,;t t | ||
| 3574 : | s,@host@,$host,;t t | ||
| 3575 : | s,@host_cpu@,$host_cpu,;t t | ||
| 3576 : | s,@host_vendor@,$host_vendor,;t t | ||
| 3577 : | s,@host_os@,$host_os,;t t | ||
| 3578 : | s,@CC@,$CC,;t t | ||
| 3579 : | s,@CFLAGS@,$CFLAGS,;t t | ||
| 3580 : | s,@LDFLAGS@,$LDFLAGS,;t t | ||
| 3581 : | s,@CPPFLAGS@,$CPPFLAGS,;t t | ||
| 3582 : | s,@ac_ct_CC@,$ac_ct_CC,;t t | ||
| 3583 : | s,@EXEEXT@,$EXEEXT,;t t | ||
| 3584 : | s,@OBJEXT@,$OBJEXT,;t t | ||
| 3585 : | s,@LD@,$LD,;t t | ||
| 3586 : | s,@with_gnu_ld@,$with_gnu_ld,;t t | ||
| 3587 : | wieck | 1.2 | s,@acx_pthread_config@,$acx_pthread_config,;t t |
| 3588 : | s,@PTHREAD_CC@,$PTHREAD_CC,;t t | ||
| 3589 : | s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t | ||
| 3590 : | s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t | ||
| 3591 : | wieck | 1.14 | s,@PGSOURCETREE@,$PGSOURCETREE,;t t |
| 3592 : | s,@LIBOBJS@,$LIBOBJS,;t t | ||
| 3593 : | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | ||
| 3594 : | wieck | 1.1 | CEOF |
| 3595 : | |||
| 3596 : | _ACEOF | ||
| 3597 : | |||
| 3598 : | cat >>$CONFIG_STATUS <<\_ACEOF | ||
| 3599 : | # Split the substitutions into bite-sized pieces for seds with | ||
| 3600 : | # small command number limits, like on Digital OSF/1 and HP-UX. | ||
| 3601 : | ac_max_sed_lines=48 | ||
| 3602 : | ac_sed_frag=1 # Number of current file. | ||
| 3603 : | ac_beg=1 # First line for current file. | ||
| 3604 : | ac_end=$ac_max_sed_lines # Line after last line for current file. | ||
| 3605 : | ac_more_lines=: | ||
| 3606 : | ac_sed_cmds= | ||
| 3607 : | while $ac_more_lines; do | ||
| 3608 : | if test $ac_beg -gt 1; then | ||
| 3609 : | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | ||
| 3610 : | else | ||
| 3611 : | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | ||
| 3612 : | fi | ||
| 3613 : | if test ! -s $tmp/subs.frag; then | ||
| 3614 : | ac_more_lines=false | ||
| 3615 : | else | ||
| 3616 : | # The purpose of the label and of the branching condition is to | ||
| 3617 : | # speed up the sed processing (if there are no `@' at all, there | ||
| 3618 : | # is no need to browse any of the substitutions). | ||
| 3619 : | # These are the two extra sed commands mentioned above. | ||
| 3620 : | (echo ':t | ||
| 3621 : | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | ||
| 3622 : | if test -z "$ac_sed_cmds"; then | ||
| 3623 : | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | ||
| 3624 : | else | ||
| 3625 : | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | ||
| 3626 : | fi | ||
| 3627 : | ac_sed_frag=`expr $ac_sed_frag + 1` | ||
| 3628 : | ac_beg=$ac_end | ||
| 3629 : | ac_end=`expr $ac_end + $ac_max_sed_lines` | ||
| 3630 : | fi | ||
| 3631 : | done | ||
| 3632 : | if test -z "$ac_sed_cmds"; then | ||
| 3633 : | ac_sed_cmds=cat | ||
| 3634 : | fi | ||
| 3635 : | fi # test -n "$CONFIG_FILES" | ||
| 3636 : | |||
| 3637 : | _ACEOF | ||
| 3638 : | cat >>$CONFIG_STATUS <<\_ACEOF | ||
| 3639 : | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | ||
| 3640 : | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | ||
| 3641 : | case $ac_file in | ||
| 3642 : | - | *:- | *:-:* ) # input from stdin | ||
| 3643 : | cat >$tmp/stdin | ||
| 3644 : | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
| 3645 : | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
| 3646 : | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
| 3647 : | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
| 3648 : | * ) ac_file_in=$ac_file.in ;; | ||
| 3649 : | esac | ||
| 3650 : | |||
| 3651 : | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | ||
| 3652 : | ac_dir=`(dirname "$ac_file") 2>/dev/null || | ||
| 3653 : | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
| 3654 : | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
| 3655 : | X"$ac_file" : 'X\(//\)$' \| \ | ||
| 3656 : | X"$ac_file" : 'X\(/\)' \| \ | ||
| 3657 : | . : '\(.\)' 2>/dev/null || | ||
| 3658 : | echo X"$ac_file" | | ||
| 3659 : | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
| 3660 : | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
| 3661 : | /^X\(\/\/\)$/{ s//\1/; q; } | ||
| 3662 : | /^X\(\/\).*/{ s//\1/; q; } | ||
| 3663 : | s/.*/./; q'` | ||
| 3664 : | wieck | 1.14 | { if $as_mkdir_p; then |
| 3665 : | mkdir -p "$ac_dir" | ||
| 3666 : | else | ||
| 3667 : | as_dir="$ac_dir" | ||
| 3668 : | as_dirs= | ||
| 3669 : | while test ! -d "$as_dir"; do | ||
| 3670 : | as_dirs="$as_dir $as_dirs" | ||
| 3671 : | as_dir=`(dirname "$as_dir") 2>/dev/null || | ||
| 3672 : | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
| 3673 : | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
| 3674 : | X"$as_dir" : 'X\(//\)$' \| \ | ||
| 3675 : | X"$as_dir" : 'X\(/\)' \| \ | ||
| 3676 : | . : '\(.\)' 2>/dev/null || | ||
| 3677 : | echo X"$as_dir" | | ||
| 3678 : | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
| 3679 : | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
| 3680 : | /^X\(\/\/\)$/{ s//\1/; q; } | ||
| 3681 : | /^X\(\/\).*/{ s//\1/; q; } | ||
| 3682 : | s/.*/./; q'` | ||
| 3683 : | done | ||
| 3684 : | test ! -n "$as_dirs" || mkdir $as_dirs | ||
| 3685 : | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | ||
| 3686 : | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | ||
| 3687 : | { (exit 1); exit 1; }; }; } | ||
| 3688 : | wieck | 1.1 | |
| 3689 : | ac_builddir=. | ||
| 3690 : | |||
| 3691 : | if test "$ac_dir" != .; then | ||
| 3692 : | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | ||
| 3693 : | # A "../" for each directory in $ac_dir_suffix. | ||
| 3694 : | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | ||
| 3695 : | else | ||
| 3696 : | ac_dir_suffix= ac_top_builddir= | ||
| 3697 : | fi | ||
| 3698 : | |||
| 3699 : | case $srcdir in | ||
| 3700 : | .) # No --srcdir option. We are building in place. | ||
| 3701 : | ac_srcdir=. | ||
| 3702 : | if test -z "$ac_top_builddir"; then | ||
| 3703 : | ac_top_srcdir=. | ||
| 3704 : | else | ||
| 3705 : | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | ||
| 3706 : | fi ;; | ||
| 3707 : | [\\/]* | ?:[\\/]* ) # Absolute path. | ||
| 3708 : | ac_srcdir=$srcdir$ac_dir_suffix; | ||
| 3709 : | ac_top_srcdir=$srcdir ;; | ||
| 3710 : | *) # Relative path. | ||
| 3711 : | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | ||
| 3712 : | ac_top_srcdir=$ac_top_builddir$srcdir ;; | ||
| 3713 : | esac | ||
| 3714 : | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | ||
| 3715 : | # absolute. | ||
| 3716 : | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | ||
| 3717 : | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | ||
| 3718 : | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | ||
| 3719 : | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | ||
| 3720 : | |||
| 3721 : | |||
| 3722 : | |||
| 3723 : | if test x"$ac_file" != x-; then | ||
| 3724 : | { echo "$as_me:$LINENO: creating $ac_file" >&5 | ||
| 3725 : | echo "$as_me: creating $ac_file" >&6;} | ||
| 3726 : | rm -f "$ac_file" | ||
| 3727 : | fi | ||
| 3728 : | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
| 3729 : | # use $as_me), people would be surprised to read: | ||
| 3730 : | # /* config.h. Generated by config.status. */ | ||
| 3731 : | if test x"$ac_file" = x-; then | ||
| 3732 : | configure_input= | ||
| 3733 : | else | ||
| 3734 : | configure_input="$ac_file. " | ||
| 3735 : | fi | ||
| 3736 : | configure_input=$configure_input"Generated from `echo $ac_file_in | | ||
| 3737 : | sed 's,.*/,,'` by configure." | ||
| 3738 : | |||
| 3739 : | # First look for the input files in the build tree, otherwise in the | ||
| 3740 : | # src tree. | ||
| 3741 : | ac_file_inputs=`IFS=: | ||
| 3742 : | for f in $ac_file_in; do | ||
| 3743 : | case $f in | ||
| 3744 : | -) echo $tmp/stdin ;; | ||
| 3745 : | [\\/$]*) | ||
| 3746 : | # Absolute (can't be DOS-style, as IFS=:) | ||
| 3747 : | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | ||
| 3748 : | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
| 3749 : | { (exit 1); exit 1; }; } | ||
| 3750 : | echo $f;; | ||
| 3751 : | *) # Relative | ||
| 3752 : | if test -f "$f"; then | ||
| 3753 : | # Build tree | ||
| 3754 : | echo $f | ||
| 3755 : | elif test -f "$srcdir/$f"; then | ||
| 3756 : | # Source tree | ||
| 3757 : | echo $srcdir/$f | ||
| 3758 : | else | ||
| 3759 : | # /dev/null tree | ||
| 3760 : | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | ||
| 3761 : | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
| 3762 : | { (exit 1); exit 1; }; } | ||
| 3763 : | fi;; | ||
| 3764 : | esac | ||
| 3765 : | done` || { (exit 1); exit 1; } | ||
| 3766 : | _ACEOF | ||
| 3767 : | cat >>$CONFIG_STATUS <<_ACEOF | ||
| 3768 : | sed "$ac_vpsub | ||
| 3769 : | $extrasub | ||
| 3770 : | _ACEOF | ||
| 3771 : | cat >>$CONFIG_STATUS <<\_ACEOF | ||
| 3772 : | :t | ||
| 3773 : | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
| 3774 : | s,@configure_input@,$configure_input,;t t | ||
| 3775 : | s,@srcdir@,$ac_srcdir,;t t | ||
| 3776 : | s,@abs_srcdir@,$ac_abs_srcdir,;t t | ||
| 3777 : | s,@top_srcdir@,$ac_top_srcdir,;t t | ||
| 3778 : | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | ||
| 3779 : | s,@builddir@,$ac_builddir,;t t | ||
| 3780 : | s,@abs_builddir@,$ac_abs_builddir,;t t | ||
| 3781 : | s,@top_builddir@,$ac_top_builddir,;t t | ||
| 3782 : | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | ||
| 3783 : | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | ||
| 3784 : | rm -f $tmp/stdin | ||
| 3785 : | if test x"$ac_file" != x-; then | ||
| 3786 : | mv $tmp/out $ac_file | ||
| 3787 : | else | ||
| 3788 : | cat $tmp/out | ||
| 3789 : | rm -f $tmp/out | ||
| 3790 : | fi | ||
| 3791 : | |||
| 3792 : | done | ||
| 3793 : | _ACEOF | ||
| 3794 : | cat >>$CONFIG_STATUS <<\_ACEOF | ||
| 3795 : | |||
| 3796 : | # | ||
| 3797 : | # CONFIG_HEADER section. | ||
| 3798 : | # | ||
| 3799 : | |||
| 3800 : | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | ||
| 3801 : | # NAME is the cpp macro being defined and VALUE is the value it is being given. | ||
| 3802 : | # | ||
| 3803 : | # ac_d sets the value in "#define NAME VALUE" lines. | ||
| 3804 : | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | ||
| 3805 : | ac_dB='[ ].*$,\1#\2' | ||
| 3806 : | ac_dC=' ' | ||
| 3807 : | ac_dD=',;t' | ||
| 3808 : | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | ||
| 3809 : | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | ||
| 3810 : | ac_uB='$,\1#\2define\3' | ||
| 3811 : | ac_uC=' ' | ||
| 3812 : | ac_uD=',;t' | ||
| 3813 : | |||
| 3814 : | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | ||
| 3815 : | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | ||
| 3816 : | case $ac_file in | ||
| 3817 : | - | *:- | *:-:* ) # input from stdin | ||
| 3818 : | cat >$tmp/stdin | ||
| 3819 : | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
| 3820 : | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
| 3821 : | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
| 3822 : | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
| 3823 : | * ) ac_file_in=$ac_file.in ;; | ||
| 3824 : | esac | ||
| 3825 : | |||
| 3826 : | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | ||
| 3827 : | echo "$as_me: creating $ac_file" >&6;} | ||
| 3828 : | |||
| 3829 : | # First look for the input files in the build tree, otherwise in the | ||
| 3830 : | # src tree. | ||
| 3831 : | ac_file_inputs=`IFS=: | ||
| 3832 : | for f in $ac_file_in; do | ||
| 3833 : | case $f in | ||
| 3834 : | -) echo $tmp/stdin ;; | ||
| 3835 : | [\\/$]*) | ||
| 3836 : | # Absolute (can't be DOS-style, as IFS=:) | ||
| 3837 : | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | ||
| 3838 : | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
| 3839 : | { (exit 1); exit 1; }; } | ||
| 3840 : | echo $f;; | ||
| 3841 : | *) # Relative | ||
| 3842 : | if test -f "$f"; then | ||
| 3843 : | # Build tree | ||
| 3844 : | echo $f | ||
| 3845 : | elif test -f "$srcdir/$f"; then | ||
| 3846 : | # Source tree | ||
| 3847 : | echo $srcdir/$f | ||
| 3848 : | else | ||
| 3849 : | # /dev/null tree | ||
| 3850 : | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | ||
| 3851 : | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
| 3852 : | { (exit 1); exit 1; }; } | ||
| 3853 : | fi;; | ||
| 3854 : | esac | ||
| 3855 : | done` || { (exit 1); exit 1; } | ||
| 3856 : | # Remove the trailing spaces. | ||
| 3857 : | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | ||
| 3858 : | |||
| 3859 : | _ACEOF | ||
| 3860 : | |||
| 3861 : | # Transform confdefs.h into two sed scripts, `conftest.defines' and | ||
| 3862 : | # `conftest.undefs', that substitutes the proper values into | ||
| 3863 : | # config.h.in to produce config.h. The first handles `#define' | ||
| 3864 : | # templates, and the second `#undef' templates. | ||
| 3865 : | # And first: Protect against being on the right side of a sed subst in | ||
| 3866 : | # config.status. Protect against being in an unquoted here document | ||
| 3867 : | # in config.status. | ||
| 3868 : | rm -f conftest.defines conftest.undefs | ||
| 3869 : | # Using a here document instead of a string reduces the quoting nightmare. | ||
| 3870 : | # Putting comments in sed scripts is not portable. | ||
| 3871 : | # | ||
| 3872 : | # `end' is used to avoid that the second main sed command (meant for | ||
| 3873 : | # 0-ary CPP macros) applies to n-ary macro definitions. | ||
| 3874 : | # See the Autoconf documentation for `clear'. | ||
| 3875 : | cat >confdef2sed.sed <<\_ACEOF | ||
| 3876 : | s/[\\&,]/\\&/g | ||
| 3877 : | s,[\\$`],\\&,g | ||
| 3878 : | t clear | ||
| 3879 : | : clear | ||
| 3880 : | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | ||
| 3881 : | t end | ||
| 3882 : | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | ||
| 3883 : | : end | ||
| 3884 : | _ACEOF | ||
| 3885 : | # If some macros were called several times there might be several times | ||
| 3886 : | # the same #defines, which is useless. Nevertheless, we may not want to | ||
| 3887 : | # sort them, since we want the *last* AC-DEFINE to be honored. | ||
| 3888 : | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | ||
| 3889 : | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | ||
| 3890 : | rm -f confdef2sed.sed | ||
| 3891 : | |||
| 3892 : | # This sed command replaces #undef with comments. This is necessary, for | ||
| 3893 : | # example, in the case of _POSIX_SOURCE, which is predefined and required | ||
| 3894 : | # on some systems where configure will not decide to define it. | ||
| 3895 : | cat >>conftest.undefs <<\_ACEOF | ||
| 3896 : | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | ||
| 3897 : | _ACEOF | ||
| 3898 : | |||
| 3899 : | # Break up conftest.defines because some shells have a limit on the size | ||
| 3900 : | # of here documents, and old seds have small limits too (100 cmds). | ||
| 3901 : | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | ||
| 3902 : | wieck | 1.14 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
| 3903 : | wieck | 1.1 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 3904 : | echo ' :' >>$CONFIG_STATUS | ||
| 3905 : | rm -f conftest.tail | ||
| 3906 : | while grep . conftest.defines >/dev/null | ||
| 3907 : | do | ||
| 3908 : | # Write a limited-size here document to $tmp/defines.sed. | ||
| 3909 : | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | ||
| 3910 : | # Speed up: don't consider the non `#define' lines. | ||
| 3911 : | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | ||
| 3912 : | # Work around the forget-to-reset-the-flag bug. | ||
| 3913 : | echo 't clr' >>$CONFIG_STATUS | ||
| 3914 : | echo ': clr' >>$CONFIG_STATUS | ||
| 3915 : | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | ||
| 3916 : | echo 'CEOF | ||
| 3917 : | sed -f $tmp/defines.sed $tmp/in >$tmp/out | ||
| 3918 : | rm -f $tmp/in | ||
| 3919 : | mv $tmp/out $tmp/in | ||
| 3920 : | ' >>$CONFIG_STATUS | ||
| 3921 : | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | ||
| 3922 : | rm -f conftest.defines | ||
| 3923 : | mv conftest.tail conftest.defines | ||
| 3924 : | done | ||
| 3925 : | rm -f conftest.defines | ||
| 3926 : | wieck | 1.14 | echo ' fi # grep' >>$CONFIG_STATUS |
| 3927 : | wieck | 1.1 | echo >>$CONFIG_STATUS |
| 3928 : | |||
| 3929 : | # Break up conftest.undefs because some shells have a limit on the size | ||
| 3930 : | # of here documents, and old seds have small limits too (100 cmds). | ||
| 3931 : | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | ||
| 3932 : | rm -f conftest.tail | ||
| 3933 : | while grep . conftest.undefs >/dev/null | ||
| 3934 : | do | ||
| 3935 : | # Write a limited-size here document to $tmp/undefs.sed. | ||
| 3936 : | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | ||
| 3937 : | # Speed up: don't consider the non `#undef' | ||
| 3938 : | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | ||
| 3939 : | # Work around the forget-to-reset-the-flag bug. | ||
| 3940 : | echo 't clr' >>$CONFIG_STATUS | ||
| 3941 : | echo ': clr' >>$CONFIG_STATUS | ||
| 3942 : | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | ||
| 3943 : | echo 'CEOF | ||
| 3944 : | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | ||
| 3945 : | rm -f $tmp/in | ||
| 3946 : | mv $tmp/out $tmp/in | ||
| 3947 : | ' >>$CONFIG_STATUS | ||
| 3948 : | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | ||
| 3949 : | rm -f conftest.undefs | ||
| 3950 : | mv conftest.tail conftest.undefs | ||
| 3951 : | done | ||
| 3952 : | rm -f conftest.undefs | ||
| 3953 : | |||
| 3954 : | cat >>$CONFIG_STATUS <<\_ACEOF | ||
| 3955 : | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
| 3956 : | # use $as_me), people would be surprised to read: | ||
| 3957 : | # /* config.h. Generated by config.status. */ | ||
| 3958 : | if test x"$ac_file" = x-; then | ||
| 3959 : | echo "/* Generated by configure. */" >$tmp/config.h | ||
| 3960 : | else | ||
| 3961 : | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | ||
| 3962 : | fi | ||
| 3963 : | cat $tmp/in >>$tmp/config.h | ||
| 3964 : | rm -f $tmp/in | ||
| 3965 : | if test x"$ac_file" != x-; then | ||
| 3966 : | wieck | 1.14 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
| 3967 : | wieck | 1.1 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 3968 : | echo "$as_me: $ac_file is unchanged" >&6;} | ||
| 3969 : | else | ||
| 3970 : | ac_dir=`(dirname "$ac_file") 2>/dev/null || | ||
| 3971 : | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
| 3972 : | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
| 3973 : | X"$ac_file" : 'X\(//\)$' \| \ | ||
| 3974 : | X"$ac_file" : 'X\(/\)' \| \ | ||
| 3975 : | . : '\(.\)' 2>/dev/null || | ||
| 3976 : | echo X"$ac_file" | | ||
| 3977 : | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
| 3978 : | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
| 3979 : | /^X\(\/\/\)$/{ s//\1/; q; } | ||
| 3980 : | /^X\(\/\).*/{ s//\1/; q; } | ||
| 3981 : | s/.*/./; q'` | ||
| 3982 : | wieck | 1.14 | { if $as_mkdir_p; then |
| 3983 : | mkdir -p "$ac_dir" | ||
| 3984 : | else | ||
| 3985 : | as_dir="$ac_dir" | ||
| 3986 : | as_dirs= | ||
| 3987 : | while test ! -d "$as_dir"; do | ||
| 3988 : | as_dirs="$as_dir $as_dirs" | ||
| 3989 : | as_dir=`(dirname "$as_dir") 2>/dev/null || | ||
| 3990 : | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
| 3991 : | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
| 3992 : | X"$as_dir" : 'X\(//\)$' \| \ | ||
| 3993 : | X"$as_dir" : 'X\(/\)' \| \ | ||
| 3994 : | . : '\(.\)' 2>/dev/null || | ||
| 3995 : | echo X"$as_dir" | | ||
| 3996 : | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
| 3997 : | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
| 3998 : | /^X\(\/\/\)$/{ s//\1/; q; } | ||
| 3999 : | /^X\(\/\).*/{ s//\1/; q; } | ||
| 4000 : | s/.*/./; q'` | ||
| 4001 : | done | ||
| 4002 : | test ! -n "$as_dirs" || mkdir $as_dirs | ||
| 4003 : | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | ||
| 4004 : | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | ||
| 4005 : | { (exit 1); exit 1; }; }; } | ||
| 4006 : | wieck | 1.1 | |
| 4007 : | rm -f $ac_file | ||
| 4008 : | mv $tmp/config.h $ac_file | ||
| 4009 : | fi | ||
| 4010 : | else | ||
| 4011 : | cat $tmp/config.h | ||
| 4012 : | rm -f $tmp/config.h | ||
| 4013 : | fi | ||
| 4014 : | done | ||
| 4015 : | _ACEOF | ||
| 4016 : | |||
| 4017 : | cat >>$CONFIG_STATUS <<\_ACEOF | ||
| 4018 : | |||
| 4019 : | { (exit 0); exit 0; } | ||
| 4020 : | _ACEOF | ||
| 4021 : | chmod +x $CONFIG_STATUS | ||
| 4022 : | ac_clean_files=$ac_clean_files_save | ||
| 4023 : | |||
| 4024 : | |||
| 4025 : | # configure is writing to config.log, and then calls config.status. | ||
| 4026 : | # config.status does its own redirection, appending to config.log. | ||
| 4027 : | # Unfortunately, on DOS this fails, as config.log is still kept open | ||
| 4028 : | # by configure, so config.status won't be able to write to it; its | ||
| 4029 : | # output is simply discarded. So we exec the FD to /dev/null, | ||
| 4030 : | # effectively closing config.log, so it can be properly (re)opened and | ||
| 4031 : | # appended to by config.status. When coming back to configure, we | ||
| 4032 : | # need to make the FD available again. | ||
| 4033 : | if test "$no_create" != yes; then | ||
| 4034 : | ac_cs_success=: | ||
| 4035 : | wieck | 1.14 | ac_config_status_args= |
| 4036 : | test "$silent" = yes && | ||
| 4037 : | ac_config_status_args="$ac_config_status_args --quiet" | ||
| 4038 : | wieck | 1.1 | exec 5>/dev/null |
| 4039 : | wieck | 1.14 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 4040 : | wieck | 1.1 | exec 5>>config.log |
| 4041 : | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | ||
| 4042 : | # would make configure fail if this is the last instruction. | ||
| 4043 : | $ac_cs_success || { (exit 1); exit 1; } | ||
| 4044 : | fi | ||
| 4045 : |
| ViewVC Help | |
| Powered by ViewVC 1.0.3 |