Revision 82bb3329 configure

View differences:

configure
954 954
    host_cflags
955 955
    host_ldflags
956 956
    host_libs
957
    host_os
957 958
    logfile
958 959
    nm
959 960
    source_path
......
1162 1163

  
1163 1164
# OS
1164 1165
target_os=$(tolower $(uname -s))
1166
host_os=$target_os
1165 1167

  
1166 1168
# configurable options
1167 1169
enable debug
......
1325 1327
enabled cross_compile || host_cc_default=$cc
1326 1328
set_default host_cc
1327 1329

  
1328
case $target_os in
1329
    mingw32*|cygwin*|*-dos|freedos|opendos|os/2*) EXESUF=.exe ;;
1330
esac
1330
exesuf() {
1331
    case $1 in
1332
        mingw32*|cygwin*|*-dos|freedos|opendos|os/2*) echo .exe ;;
1333
    esac
1334
}
1335

  
1336
EXESUF=$(exesuf $target_os)
1337
HOSTEXESUF=$(exesuf $host_os)
1331 1338

  
1332 1339
# set temporary file name
1333 1340
: ${TMPDIR:=$TEMPDIR}
......
2376 2383
echo "DEPEND_CMD=$DEPEND_CMD" >> config.mak
2377 2384
echo "HOSTCC=$host_cc" >> config.mak
2378 2385
echo "HOSTCFLAGS=$host_cflags" >> config.mak
2386
echo "HOSTEXESUF=$HOSTEXESUF" >> config.mak
2379 2387
echo "HOSTLDFLAGS=$host_ldflags" >> config.mak
2380 2388
echo "HOSTLIBS=$host_libs" >> config.mak
2381 2389
echo "TARGET_EXEC=$target_exec" >> config.mak

Also available in: Unified diff