configure 913 KB
Newer Older
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2001
2002
      ac_cache_corrupted=: ;;
    ,set)
2003
2004
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2005
2006
2007
2008
      ac_cache_corrupted=: ;;
    ,);;
    *)
      if test "x$ac_old_val" != "x$ac_new_val"; then
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
	# differences in whitespace do not lead to failure.
	ac_old_val_w=`echo x $ac_old_val`
	ac_new_val_w=`echo x $ac_new_val`
	if test "$ac_old_val_w" != "$ac_new_val_w"; then
	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
	  ac_cache_corrupted=:
	else
	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
	  eval $ac_var=\$ac_old_val
	fi
	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2025
2026
2027
2028
2029
      fi;;
  esac
  # Pass precious variables to config.status.
  if test "$ac_new_set" = set; then
    case $ac_new_val in
2030
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2031
2032
2033
2034
2035
2036
2037
2038
2039
    *) ac_arg=$ac_var=$ac_new_val ;;
    esac
    case " $ac_configure_args " in
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
    esac
  fi
done
if $ac_cache_corrupted; then
2040
2041
2042
2043
2044
2045
  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
   { (exit 1); exit 1; }; }
fi

























Emmanuel Bertin's avatar
Emmanuel Bertin committed
2073
2074
2075
2076
2077
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2078
2079
2080
2081



ac_aux_dir=
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2082
2083
for ac_dir in autoconf "$srcdir"/autoconf; do
  if test -f "$ac_dir/install-sh"; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2084
2085
2086
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install-sh -c"
    break
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2087
  elif test -f "$ac_dir/install.sh"; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2088
2089
2090
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install.sh -c"
    break
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2091
  elif test -f "$ac_dir/shtool"; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2092
2093
2094
2095
2096
2097
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/shtool install -c"
    break
  fi
done
if test -z "$ac_aux_dir"; then
2098
2099
  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
$as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2100
2101
2102
   { (exit 1); exit 1; }; }
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
# These three variables are undocumented and unsupported,
# and are intended to be withdrawn in a future Autoconf release.
# They can cause serious problems if a builder's source tree is in a directory
# whose full name contains unusual characters.
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.


ac_config_headers="$ac_config_headers config.h"

am__api_version='1.10'
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128

# Find a good install program.  We prefer a C program (faster),
# so one script is as good as another.  But avoid the broken or
# incompatible versions:
# SysV /etc/install, /usr/sbin/install
# SunOS /usr/etc/install
# IRIX /sbin/install
# AIX /bin/install
# AmigaOS /C/install, which installs bootblocks on floppy discs
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# OS/2's system install, which has a completely different semantic
# ./install, which can be erroneously created by make from ./install.sh.
2129
2130
2131
# Reject install programs that cannot install multiple files.
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
$as_echo_n "checking for a BSD-compatible install... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2132
2133
if test -z "$INSTALL"; then
if test "${ac_cv_path_install+set}" = set; then
2134
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
else
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  # Account for people who put trailing slashes in PATH elements.
case $as_dir/ in
  ./ | .// | /cC/* | \
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  /usr/ucb/* ) ;;
  *)
    # OSF1 and SCO ODT 3.0 have their own names for install.
    # Don't use installbsd from OSF since it installs stuff as root
    # by default.
    for ac_prog in ginstall scoinst install; do
      for ac_exec_ext in '' $ac_executable_extensions; do
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2153
	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2154
2155
2156
2157
2158
2159
2160
2161
2162
	  if test $ac_prog = install &&
	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
	    # AIX install.  It has an incompatible calling convention.
	    :
	  elif test $ac_prog = install &&
	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
	    # program-specific install script used by HP pwplus--don't use.
	    :
	  else
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
	    rm -rf conftest.one conftest.two conftest.dir
	    echo one > conftest.one
	    echo two > conftest.two
	    mkdir conftest.dir
	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
	      test -s conftest.one && test -s conftest.two &&
	      test -s conftest.dir/conftest.one &&
	      test -s conftest.dir/conftest.two
	    then
	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
	      break 3
	    fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2175
2176
2177
2178
2179
2180
	  fi
	fi
      done
    done
    ;;
esac
2181

Emmanuel Bertin's avatar
Emmanuel Bertin committed
2182
done
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2183
IFS=$as_save_IFS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2184

2185
rm -rf conftest.one conftest.two conftest.dir
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2186
2187
2188
2189
2190

fi
  if test "${ac_cv_path_install+set}" = set; then
    INSTALL=$ac_cv_path_install
  else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2191
2192
    # As a last resort, use the slow shell script.  Don't cache a
    # value for INSTALL within a source directory, because that will
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2193
    # break other packages using the cache if that directory is
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2194
    # removed, or if the value is a relative name.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2195
2196
2197
    INSTALL=$ac_install_sh
  fi
fi
2198
2199
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
$as_echo "$INSTALL" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2200
2201
2202
2203
2204
2205
2206
2207
2208

# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
# It thinks the first close brace ends the variable substitution.
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'

test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'

test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'

2209
2210
{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
$as_echo_n "checking whether build environment is sane... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
# Just in case
sleep 1
echo timestamp > conftest.file
# Do `set' in a subshell so we don't clobber the current shell's
# arguments.  Must try -L first in case configure is actually a
# symlink; some systems play weird games with the mod time of symlinks
# (eg FreeBSD returns the mod time of the symlink's containing
# directory).
if (
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
   if test "$*" = "X"; then
      # -L didn't work.
      set X `ls -t $srcdir/configure conftest.file`
   fi
   rm -f conftest.file
   if test "$*" != "X $srcdir/configure conftest.file" \
      && test "$*" != "X conftest.file $srcdir/configure"; then

      # If neither matched, then we have a broken ls.  This can happen
      # if, for instance, CONFIG_SHELL is bash and it inherits a
      # broken ls alias from the environment.  This has actually
      # happened.  Such a system could not be considered "sane".
2233
      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2234
alias in your environment" >&5
2235
$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
alias in your environment" >&2;}
   { (exit 1); exit 1; }; }
   fi

   test "$2" = conftest.file
   )
then
   # Ok.
   :
else
2246
   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2247
Check your system clock" >&5
2248
$as_echo "$as_me: error: newly created file is older than distributed files!
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2249
2250
2251
Check your system clock" >&2;}
   { (exit 1); exit 1; }; }
fi
2252
2253
{ $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2254
test "$program_prefix" != NONE &&
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2255
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2256
2257
# Use a double $ so make ignores it.
test "$program_suffix" != NONE &&
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2258
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2259
# Double any \ or $.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2260
# By default was `s,x,x', remove it if useless.
2261
2262
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272

# expand $ac_aux_dir to an absolute path
am_aux_dir=`cd $ac_aux_dir && pwd`

test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
# Use eval to expand $SHELL
if eval "$MISSING --run true"; then
  am_missing_run="$MISSING --run "
else
  am_missing_run=
2273
2274
  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2275
2276
fi

2277
2278
{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2279
2280
if test -z "$MKDIR_P"; then
  if test "${ac_cv_path_mkdir+set}" = set; then
2281
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
else
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_prog in mkdir gmkdir; do
	 for ac_exec_ext in '' $ac_executable_extensions; do
	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
	     'mkdir (GNU coreutils) '* | \
	     'mkdir (coreutils) '* | \
	     'mkdir (fileutils) '4.1*)
	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
	       break 3;;
	   esac
	 done
       done
done
IFS=$as_save_IFS

fi

  if test "${ac_cv_path_mkdir+set}" = set; then
    MKDIR_P="$ac_cv_path_mkdir -p"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2307
  else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2308
2309
2310
2311
2312
2313
    # As a last resort, use the slow shell script.  Don't cache a
    # value for MKDIR_P within a source directory, because that will
    # break other packages using the cache if that directory is
    # removed, or if the value is a relative name.
    test -d ./--version && rmdir ./--version
    MKDIR_P="$ac_install_sh -d"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2314
2315
  fi
fi
2316
2317
{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
$as_echo "$MKDIR_P" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2318
2319
2320
2321
2322
2323

mkdir_p="$MKDIR_P"
case $mkdir_p in
  [\\/$]* | ?:[\\/]*) ;;
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
esac
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2324
2325
2326
2327
2328

for ac_prog in gawk mawk nawk awk
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
2329
2330
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2331
if test "${ac_cv_prog_AWK+set}" = set; then
2332
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
else
  if test -n "$AWK"; then
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2343
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2344
    ac_cv_prog_AWK="$ac_prog"
2345
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2346
2347
2348
2349
    break 2
  fi
done
done
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2350
IFS=$as_save_IFS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2351
2352
2353
2354
2355

fi
fi
AWK=$ac_cv_prog_AWK
if test -n "$AWK"; then
2356
2357
  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
$as_echo "$AWK" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2358
else
2359
2360
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2361
2362
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
2363

Emmanuel Bertin's avatar
Emmanuel Bertin committed
2364
2365
2366
  test -n "$AWK" && break
done

2367
2368
2369
2370
{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
set x ${MAKE-make}
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2371
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2372
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2373
2374
else
  cat >conftest.make <<\_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2375
SHELL = /bin/sh
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2376
all:
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2377
	@echo '@@@%%%=$(MAKE)=@@@%%%'
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2378
2379
_ACEOF
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2380
2381
2382
2383
2384
2385
case `${MAKE-make} -f conftest.make 2>/dev/null` in
  *@@@%%%=?*=@@@%%%*)
    eval ac_cv_prog_make_${ac_make}_set=yes;;
  *)
    eval ac_cv_prog_make_${ac_make}_set=no;;
esac
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2386
2387
rm -f conftest.make
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2388
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2389
2390
  { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2391
2392
  SET_MAKE=
else
2393
2394
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
  SET_MAKE="MAKE=${MAKE-make}"
fi

rm -rf .tst 2>/dev/null
mkdir .tst 2>/dev/null
if test -d .tst; then
  am__leading_dot=.
else
  am__leading_dot=_
fi
rmdir .tst 2>/dev/null

Emmanuel Bertin's avatar
Emmanuel Bertin committed
2407
2408
2409
2410
2411
2412
if test "`cd $srcdir && pwd`" != "`pwd`"; then
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  # is not polluted with repeated "-I."
  am__isrc=' -I$(srcdir)'
  # test to see if srcdir already configured
  if test -f $srcdir/config.status; then
2413
2414
    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2415
   { (exit 1); exit 1; }; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2416
  fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
fi

# test whether we have cygpath
if test -z "$CYGPATH_W"; then
  if (cygpath --version) >/dev/null 2>/dev/null; then
    CYGPATH_W='cygpath -w'
  else
    CYGPATH_W=echo
  fi
fi


# Define the identity of the package.
 PACKAGE='sextractor'
2431
 VERSION='2.12.3'
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458


cat >>confdefs.h <<_ACEOF
#define PACKAGE "$PACKAGE"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define VERSION "$VERSION"
_ACEOF

# Some tools Automake needs.

ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}


AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}


AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}


AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}


MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}

Emmanuel Bertin's avatar
Emmanuel Bertin committed
2459
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2460
2461
2462
2463
2464
2465
2466
2467
2468

# Installed binaries are usually stripped using `strip' when the user
# run `make install-strip'.  However `strip' might not be the right
# tool to use in cross-compilation environments, therefore Automake
# will honor the `STRIP' environment variable to overrule this program.
if test "$cross_compiling" != no; then
  if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
set dummy ${ac_tool_prefix}strip; ac_word=$2
2469
2470
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2471
if test "${ac_cv_prog_STRIP+set}" = set; then
2472
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
else
  if test -n "$STRIP"; then
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2483
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2484
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2485
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2486
2487
2488
2489
    break 2
  fi
done
done
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2490
IFS=$as_save_IFS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2491
2492
2493
2494
2495

fi
fi
STRIP=$ac_cv_prog_STRIP
if test -n "$STRIP"; then
2496
2497
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
$as_echo "$STRIP" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2498
else
2499
2500
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2501
2502
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
2503

Emmanuel Bertin's avatar
Emmanuel Bertin committed
2504
2505
2506
2507
2508
fi
if test -z "$ac_cv_prog_STRIP"; then
  ac_ct_STRIP=$STRIP
  # Extract the first word of "strip", so it can be a program name with args.
set dummy strip; ac_word=$2
2509
2510
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2511
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2512
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
else
  if test -n "$ac_ct_STRIP"; then
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2523
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2524
    ac_cv_prog_ac_ct_STRIP="strip"
2525
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2526
2527
2528
2529
    break 2
  fi
done
done
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2530
IFS=$as_save_IFS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2531
2532
2533
2534
2535

fi
fi
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
if test -n "$ac_ct_STRIP"; then
2536
2537
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
$as_echo "$ac_ct_STRIP" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2538
else
2539
2540
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2541
2542
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
2543
2544
2545
2546
2547
  if test "x$ac_ct_STRIP" = x; then
    STRIP=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
2548
2549
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2550
2551
2552
2553
ac_tool_warned=yes ;;
esac
    STRIP=$ac_ct_STRIP
  fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2554
2555
2556
2557
2558
else
  STRIP="$ac_cv_prog_STRIP"
fi

fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2559
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590

# We need awk for the "check" target.  The system "awk" is bad on
# some platforms.
# Always define AMTAR for backward compatibility.

AMTAR=${AMTAR-"${am_missing_run}tar"}

am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'





date=`date +%Y-%m-%d`
date2=`date +"%a %b %d %Y"`
date3=`date +"%B %Y"`

cat >>confdefs.h <<_ACEOF
#define DATE "$date"
_ACEOF

PACKAGER="Emmanuel Bertin"

DATE2="$date2"

DATE3="$date3"


# Include macros


Emmanuel Bertin's avatar
Emmanuel Bertin committed
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615








# URBI_RESOLVE_DIR_PREPARE
# ------------------------
# Define urbi_resolve_dir.



# PATH URBI_RESOLVE_DIR(DIR)
# --------------------------
# Return the DIR with all inner variables expanded.



## Local Variables:
## mode: autoconf
## End:


Emmanuel Bertin's avatar
Emmanuel Bertin committed
2616
# Display pakage and version number
2617
2618
{ $as_echo "$as_me:$LINENO: result: *********** Configuring:  $PACKAGE $VERSION ($date) **********" >&5
$as_echo "*********** Configuring:  $PACKAGE $VERSION ($date) **********" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2619
2620
2621
2622

# Initialize the list of compilers to consider
cclist="cc gcc"

2623
2624
2625
# Provide special option for choosing automatically the compilation flags.
{ $as_echo "$as_me:$LINENO: checking if compilation flags are set automatically" >&5
$as_echo_n "checking if compilation flags are set automatically... " >&6; }
2626
2627
# Check whether --enable-auto-flags was given.
if test "${enable_auto_flags+set}" = set; then
2628
  enableval=$enable_auto_flags; { $as_echo "$as_me:$LINENO: result: yes" >&5
2629
2630
$as_echo "yes" >&6; }
else
2631
  { $as_echo "$as_me:$LINENO: result: no" >&5
2632
2633
2634
$as_echo "no" >&6; }
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
2635
2636

# Provide special option for the Linux Intel C compiler
2637
2638
{ $as_echo "$as_me:$LINENO: checking for Linux Intel C compiler mode" >&5
$as_echo_n "checking for Linux Intel C compiler mode... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2639
# Check whether --enable-icc was given.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2640
if test "${enable_icc+set}" = set; then
2641
  enableval=$enable_icc; cclist="icc $cclist"
2642
2643
	{ $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2644
else
2645
  { $as_echo "$as_me:$LINENO: result: no" >&5
2646
$as_echo "no" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2647
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2648
2649
2650
2651


# Checks for programs.
# GCC is chosen last because it is likely to yield less optimized code
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2652
2653
2654
2655
2656
2657
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

Emmanuel Bertin's avatar
Emmanuel Bertin committed
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
if test -n "$ac_tool_prefix"; then
  for ac_prog in $cclist
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2668
2669
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2670
if test "${ac_cv_prog_CC+set}" = set; then
2671
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2682
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2683
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2684
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2685
2686
2687
2688
    break 2
  fi
done
done
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2689
IFS=$as_save_IFS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2690
2691
2692
2693
2694

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
2695
2696
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
$as_echo "$CC" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2697
else
2698
2699
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2700
2701
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
2702

Emmanuel Bertin's avatar
Emmanuel Bertin committed
2703
2704
2705
2706
2707
2708
2709
2710
2711
    test -n "$CC" && break
  done
fi
if test -z "$CC"; then
  ac_ct_CC=$CC
  for ac_prog in $cclist
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
2712
2713
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2714
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2715
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2726
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2727
    ac_cv_prog_ac_ct_CC="$ac_prog"
2728
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2729
2730
2731
2732
    break 2
  fi
done
done
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2733
IFS=$as_save_IFS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2734
2735
2736
2737
2738

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
2739
2740
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
$as_echo "$ac_ct_CC" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2741
else
2742
2743
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2744
2745
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
2746

Emmanuel Bertin's avatar
Emmanuel Bertin committed
2747
2748
2749
  test -n "$ac_ct_CC" && break
done

Emmanuel Bertin's avatar
Emmanuel Bertin committed
2750
2751
2752
2753
2754
  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
2755
2756
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2757
2758
2759
2760
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2761
2762
2763
fi


2764
2765
2766
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2767
See \`config.log' for more details." >&5
2768
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2769
See \`config.log' for more details." >&2;}
2770
   { (exit 1); exit 1; }; }; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2771
2772

# Provide some information about the compiler.
2773
2774
2775
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
set X $ac_compile
ac_compiler=$2
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2776
2777
2778
2779
2780
{ (ac_try="$ac_compiler --version >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
2781
2782
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2783
  (eval "$ac_compiler --version >&5") 2>&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2784
  ac_status=$?
2785
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2786
  (exit $ac_status); }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2787
2788
2789
2790
2791
{ (ac_try="$ac_compiler -v >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
2792
2793
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2794
  (eval "$ac_compiler -v >&5") 2>&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2795
  ac_status=$?
2796
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2797
  (exit $ac_status); }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2798
2799
2800
2801
2802
{ (ac_try="$ac_compiler -V >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
2803
2804
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2805
  (eval "$ac_compiler -V >&5") 2>&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2806
  ac_status=$?
2807
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
  (exit $ac_status); }

cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
ac_clean_files_save=$ac_clean_files
2826
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2827
2828
2829
# Try to create an executable without -o first, disregard a.out.
# It will help us diagnose broken compilers, and finding out an intuition
# of exeext.
2830
2831
2832
2833
2834
2835
2836
{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
$as_echo_n "checking for C compiler default output file name... " >&6; }
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`

# The possible output files:
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"

Emmanuel Bertin's avatar
Emmanuel Bertin committed
2837
2838
2839
2840
ac_rmfiles=
for ac_file in $ac_files
do
  case $ac_file in
2841
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  esac
done
rm -f $ac_rmfiles

if { (ac_try="$ac_link_default"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
2852
2853
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2854
  (eval "$ac_link_default") 2>&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2855
  ac_status=$?
2856
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2857
  (exit $ac_status); }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2858
2859
2860
2861
2862
2863
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
# so that the user can short-circuit this test for compilers unknown to
# Autoconf.
for ac_file in $ac_files ''
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2864
2865
2866
do
  test -f "$ac_file" || continue
  case $ac_file in
2867
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2868
2869
2870
2871
2872
2873
	;;
    [ab].out )
	# We found the default executable, but exeext='' is most
	# certainly right.
	break;;
    *.* )
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2874
2875
2876
2877
2878
2879
2880
2881
2882
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
	then :; else
	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
	fi
	# We set ac_cv_exeext here because the later test for it is not
	# safe: cross compilers may not add the suffix if given an `-o'
	# argument, so we may need to know it at that point already.
	# Even if this section looks crufty: it has the advantage of
	# actually working.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2883
2884
2885
2886
2887
	break;;
    * )
	break;;
  esac
done
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2888
2889
test "$ac_cv_exeext" = no && ac_cv_exeext=

Emmanuel Bertin's avatar
Emmanuel Bertin committed
2890
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2891
2892
2893
  ac_file=''
fi

2894
2895
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
$as_echo "$ac_file" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2896
if test -z "$ac_file"; then
2897
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2898
2899
sed 's/^/| /' conftest.$ac_ext >&5

2900
2901
2902
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2903
See \`config.log' for more details." >&5
2904
$as_echo "$as_me: error: C compiler cannot create executables
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2905
See \`config.log' for more details." >&2;}
2906
   { (exit 77); exit 77; }; }; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2907
2908
2909
2910
fi

ac_exeext=$ac_cv_exeext

Emmanuel Bertin's avatar
Emmanuel Bertin committed
2911
# Check that the compiler produces executables we can run.  If not, either
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2912
# the compiler is broken, or we cross compile.
2913
2914
{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
$as_echo_n "checking whether the C compiler works... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2915
2916
2917
2918
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
# If not cross compiling, check that we can run a simple program.
if test "$cross_compiling" != yes; then
  if { ac_try='./$ac_file'
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2919
2920
2921
2922
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
2923
2924
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2925
  (eval "$ac_try") 2>&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2926
  ac_status=$?
2927
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2928
2929
2930
2931
2932
2933
  (exit $ac_status); }; }; then
    cross_compiling=no
  else
    if test "$cross_compiling" = maybe; then
	cross_compiling=yes
    else
2934
2935
2936
	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2937
2938
If you meant to cross compile, use \`--host'.
See \`config.log' for more details." >&5
2939
$as_echo "$as_me: error: cannot run C compiled programs.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2940
2941
If you meant to cross compile, use \`--host'.
See \`config.log' for more details." >&2;}
2942
   { (exit 1); exit 1; }; }; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2943
2944
2945
    fi
  fi
fi
2946
2947
{ $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2948

2949
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2950
ac_clean_files=$ac_clean_files_save
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2951
# Check that the compiler produces executables we can run.  If not, either
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2952
# the compiler is broken, or we cross compile.
2953
2954
2955
2956
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
$as_echo_n "checking whether we are cross compiling... " >&6; }
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
$as_echo "$cross_compiling" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2957

2958
2959
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
$as_echo_n "checking for suffix of executables... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2960
2961
2962
2963
2964
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
2965
2966
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2967
  (eval "$ac_link") 2>&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2968
  ac_status=$?
2969
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2970
2971
2972
2973
2974
2975
2976
2977
  (exit $ac_status); }; then
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
# work properly (i.e., refer to `conftest.exe'), while it won't with
# `rm'.
for ac_file in conftest.exe conftest conftest.*; do
  test -f "$ac_file" || continue
  case $ac_file in
2978
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2979
2980
2981
2982
2983
2984
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
	  break;;
    * ) break;;
  esac
done
else
2985
2986
2987
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2988
See \`config.log' for more details." >&5
2989
$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2990
See \`config.log' for more details." >&2;}
2991
   { (exit 1); exit 1; }; }; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2992
2993
2994
fi

rm -f conftest$ac_cv_exeext
2995
2996
{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
$as_echo "$ac_cv_exeext" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2997
2998
2999
3000

rm -f conftest.$ac_ext
EXEEXT=$ac_cv_exeext
ac_exeext=$EXEEXT
For faster browsing, not all history is shown. View entire blame