configure 876 KB
Newer Older
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2001
# ./install, which can be erroneously created by make from ./install.sh.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2002
2003
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
if test -z "$INSTALL"; then
if test "${ac_cv_path_install+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
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
2025
	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
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
	  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
	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
	    break 3
	  fi
	fi
      done
    done
    ;;
esac
done
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2044
IFS=$as_save_IFS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2045
2046
2047
2048
2049
2050


fi
  if test "${ac_cv_path_install+set}" = set; then
    INSTALL=$ac_cv_path_install
  else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2051
2052
    # 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
2053
    # break other packages using the cache if that directory is
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2054
    # removed, or if the value is a relative name.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2055
2056
2057
    INSTALL=$ac_install_sh
  fi
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2058
2059
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
echo "${ECHO_T}$INSTALL" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2060
2061
2062
2063
2064
2065
2066
2067
2068

# 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'

Emmanuel Bertin's avatar
Emmanuel Bertin committed
2069
2070
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
# 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".
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
alias in your environment" >&5
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
alias in your environment" >&2;}
   { (exit 1); exit 1; }; }
   fi

   test "$2" = conftest.file
   )
then
   # Ok.
   :
else
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
Check your system clock" >&5
echo "$as_me: error: newly created file is older than distributed files!
Check your system clock" >&2;}
   { (exit 1); exit 1; }; }
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2112
2113
{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2114
test "$program_prefix" != NONE &&
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2115
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2116
2117
# Use a double $ so make ignores it.
test "$program_suffix" != NONE &&
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2118
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2119
2120
2121
2122
2123
2124
# Double any \ or $.  echo might interpret backslashes.
# By default was `s,x,x', remove it if useless.
cat <<\_ACEOF >conftest.sed
s/[\\$]/&&/g;s/;s,x,x,$//
_ACEOF
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2125
rm -f conftest.sed
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139

# 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=
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
if test -z "$MKDIR_P"; then
  if test "${ac_cv_path_mkdir+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
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
2170
  else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2171
2172
2173
2174
2175
2176
    # 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
2177
2178
  fi
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2179
2180
2181
2182
2183
2184
2185
2186
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
echo "${ECHO_T}$MKDIR_P" >&6; }

mkdir_p="$MKDIR_P"
case $mkdir_p in
  [\\/$]* | ?:[\\/]*) ;;
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
esac
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2187
2188
2189
2190
2191

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
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2192
2193
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
if test "${ac_cv_prog_AWK+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
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
2206
  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
2207
2208
2209
2210
2211
2212
    ac_cv_prog_AWK="$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2213
IFS=$as_save_IFS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2214
2215
2216
2217
2218

fi
fi
AWK=$ac_cv_prog_AWK
if test -n "$AWK"; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2219
2220
  { echo "$as_me:$LINENO: result: $AWK" >&5
echo "${ECHO_T}$AWK" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2221
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2222
2223
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2224
2225
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
2226

Emmanuel Bertin's avatar
Emmanuel Bertin committed
2227
2228
2229
  test -n "$AWK" && break
done

Emmanuel Bertin's avatar
Emmanuel Bertin committed
2230
2231
2232
2233
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2234
2235
2236
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.make <<\_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2237
SHELL = /bin/sh
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2238
all:
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2239
	@echo '@@@%%%=$(MAKE)=@@@%%%'
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2240
2241
_ACEOF
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2242
2243
2244
2245
2246
2247
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
2248
2249
rm -f conftest.make
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2250
2251
2252
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  { echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2253
2254
  SET_MAKE=
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2255
2256
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
  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
2269
2270
2271
2272
2273
2274
2275
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
    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2276
2277
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
   { (exit 1); exit 1; }; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2278
  fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
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'
2293
 VERSION='2.8.3'
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320


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
2321
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2322
2323
2324
2325
2326
2327
2328
2329
2330

# 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
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2331
2332
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
if test "${ac_cv_prog_STRIP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
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
2345
  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
2346
2347
2348
2349
2350
2351
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2352
IFS=$as_save_IFS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2353
2354
2355
2356
2357

fi
fi
STRIP=$ac_cv_prog_STRIP
if test -n "$STRIP"; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2358
2359
  { echo "$as_me:$LINENO: result: $STRIP" >&5
echo "${ECHO_T}$STRIP" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2360
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2361
2362
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2363
2364
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
2365

Emmanuel Bertin's avatar
Emmanuel Bertin committed
2366
2367
2368
2369
2370
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
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2371
2372
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
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
2385
  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
2386
2387
2388
2389
2390
2391
    ac_cv_prog_ac_ct_STRIP="strip"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2392
IFS=$as_save_IFS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2393
2394
2395
2396
2397

fi
fi
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
if test -n "$ac_ct_STRIP"; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2398
2399
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2400
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2401
2402
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2403
2404
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
  if test "x$ac_ct_STRIP" = x; then
    STRIP=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    STRIP=$ac_ct_STRIP
  fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2420
2421
2422
2423
2424
else
  STRIP="$ac_cv_prog_STRIP"
fi

fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2425
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2426
2427
2428
2429
2430
2431
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

# 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
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481








# 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
2482
# Display pakage and version number
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2483
2484
{ echo "$as_me:$LINENO: result: *********** Configuring:  $PACKAGE $VERSION ($date) **********" >&5
echo "${ECHO_T}*********** Configuring:  $PACKAGE $VERSION ($date) **********" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495

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

# Backup and reset the input CFLAGS and LDFLAGS
mycflags="$CFLAGS"
CFLAGS=""
myldflags="$LDFLAGS"
LDFLAGS=""

# Provide special option for the Linux Intel C compiler
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2496
2497
2498
{ echo "$as_me:$LINENO: checking for Linux Intel C compiler mode" >&5
echo $ECHO_N "checking for Linux Intel C compiler mode... $ECHO_C" >&6; }
# Check whether --enable-icc was given.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2499
if test "${enable_icc+set}" = set; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2500
  enableval=$enable_icc; use_icc="yes"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2501
        cclist="icc $cclist"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2502
2503
	{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2504
2505
else
  use_icc="no"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2506
2507
2508
	{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2509
2510
2511
2512


# Checks for programs.
# GCC is chosen last because it is likely to yield less optimized code
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2513
2514
2515
2516
2517
2518
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
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
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
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2529
2530
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
if test "${ac_cv_prog_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
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
2543
  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
2544
2545
2546
2547
2548
2549
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2550
IFS=$as_save_IFS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2551
2552
2553
2554
2555

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2556
2557
  { echo "$as_me:$LINENO: result: $CC" >&5
echo "${ECHO_T}$CC" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2558
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2559
2560
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2561
2562
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
2563

Emmanuel Bertin's avatar
Emmanuel Bertin committed
2564
2565
2566
2567
2568
2569
2570
2571
2572
    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
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2573
2574
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
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
2587
  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
2588
2589
2590
2591
2592
2593
    ac_cv_prog_ac_ct_CC="$ac_prog"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2594
IFS=$as_save_IFS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2595
2596
2597
2598
2599

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2600
2601
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
echo "${ECHO_T}$ac_ct_CC" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2602
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2603
2604
  { echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2605
2606
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
2607

Emmanuel Bertin's avatar
Emmanuel Bertin committed
2608
2609
2610
  test -n "$ac_ct_CC" && break
done

Emmanuel Bertin's avatar
Emmanuel Bertin committed
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@gnu.org." >&5
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
fi


test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
See \`config.log' for more details." >&5
echo "$as_me: error: no acceptable C compiler found in \$PATH
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }

# Provide some information about the compiler.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2636
echo "$as_me:$LINENO: checking for C compiler version" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2637
ac_compiler=`set X $ac_compile; echo $2`
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2638
2639
2640
2641
2642
2643
2644
{ (ac_try="$ac_compiler --version >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compiler --version >&5") 2>&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2645
2646
2647
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2648
2649
2650
2651
2652
2653
2654
{ (ac_try="$ac_compiler -v >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compiler -v >&5") 2>&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2655
2656
2657
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2658
2659
2660
2661
2662
2663
2664
{ (ac_try="$ac_compiler -V >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compiler -V >&5") 2>&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (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
ac_clean_files="$ac_clean_files a.out a.exe b.out"
# 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.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2689
2690
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2691
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
#
# List of possible output files, starting from the most likely.
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
# only as a last resort.  b.out is created by i960 compilers.
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
#
# The IRIX 6 linker writes into existing files which may not be
# executable, retaining their permissions.  Remove them first so a
# subsequent execution test works.
ac_rmfiles=
for ac_file in $ac_files
do
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
    * ) 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
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link_default") 2>&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2718
2719
2720
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2721
2722
2723
2724
2725
2726
  # 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
2727
2728
2729
do
  test -f "$ac_file" || continue
  case $ac_file in
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2730
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2731
2732
2733
2734
2735
2736
	;;
    [ab].out )
	# We found the default executable, but exeext='' is most
	# certainly right.
	break;;
    *.* )
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2737
2738
2739
2740
2741
2742
2743
2744
2745
        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
2746
2747
2748
2749
2750
	break;;
    * )
	break;;
  esac
done
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2751
2752
test "$ac_cv_exeext" = no && ac_cv_exeext=

Emmanuel Bertin's avatar
Emmanuel Bertin committed
2753
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2754
2755
2756
2757
2758
2759
  ac_file=''
fi

{ echo "$as_me:$LINENO: result: $ac_file" >&5
echo "${ECHO_T}$ac_file" >&6; }
if test -z "$ac_file"; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
See \`config.log' for more details." >&5
echo "$as_me: error: C compiler cannot create executables
See \`config.log' for more details." >&2;}
   { (exit 77); exit 77; }; }
fi

ac_exeext=$ac_cv_exeext

Emmanuel Bertin's avatar
Emmanuel Bertin committed
2772
# Check that the compiler produces executables we can run.  If not, either
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2773
# the compiler is broken, or we cross compile.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2774
2775
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2776
2777
2778
2779
# 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
2780
2781
2782
2783
2784
2785
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_try") 2>&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
    cross_compiling=no
  else
    if test "$cross_compiling" = maybe; then
	cross_compiling=yes
    else
	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
If you meant to cross compile, use \`--host'.
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run C compiled programs.
If you meant to cross compile, use \`--host'.
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
    fi
  fi
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2804
2805
{ echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2806
2807
2808

rm -f a.out a.exe conftest$ac_cv_exeext b.out
ac_clean_files=$ac_clean_files_save
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2809
# Check that the compiler produces executables we can run.  If not, either
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2810
# the compiler is broken, or we cross compile.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
echo "${ECHO_T}$cross_compiling" >&6; }

{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (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
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2835
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
	  break;;
    * ) break;;
  esac
done
else
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

rm -f conftest$ac_cv_exeext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2850
2851
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
echo "${ECHO_T}$ac_cv_exeext" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2852
2853
2854
2855

rm -f conftest.$ac_ext
EXEEXT=$ac_cv_exeext
ac_exeext=$EXEEXT
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2856
2857
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
if test "${ac_cv_objext+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  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
rm -f conftest.o conftest.obj
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2877
2878
2879
2880
2881
2882
2883
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2884
2885
2886
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2887
2888
  for ac_file in conftest.o conftest.obj conftest.*; do
  test -f "$ac_file" || continue;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2889
  case $ac_file in
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2890
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
       break;;
  esac
done
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute suffix of object files: cannot compile
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
fi

rm -f conftest.$ac_cv_objext conftest.$ac_ext
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2908
2909
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
echo "${ECHO_T}$ac_cv_objext" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2910
2911
OBJEXT=$ac_cv_objext
ac_objext=$OBJEXT
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2912
2913
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
if test "${ac_cv_c_compiler_gnu+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{
#ifndef __GNUC__
       choke me
#endif

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2936
2937
2938
2939
2940
2941
2942
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2943
2944
2945
2946
2947
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2948
2949
2950
2951
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2952
2953
2954
2955
2956
  ac_compiler_gnu=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
2957
	ac_compiler_gnu=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2958
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2959
2960

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2961
2962
2963
ac_cv_c_compiler_gnu=$ac_compiler_gnu

fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2964
2965
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2966
2967
2968
GCC=`test $ac_compiler_gnu = yes && echo yes`
ac_test_CFLAGS=${CFLAGS+set}
ac_save_CFLAGS=$CFLAGS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2969
2970
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2971
2972
2973
if test "${ac_cv_prog_cc_g+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2974
2975
2976
2977
2978
  ac_save_c_werror_flag=$ac_c_werror_flag
   ac_c_werror_flag=yes
   ac_cv_prog_cc_g=no
   CFLAGS="-g"
   cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2994
2995
2996
2997
2998
2999
3000
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
For faster browsing, not all history is shown. View entire blame