~ubuntu-branches/debian/sid/gnome-chess/sid

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Rittau
  • Date: 2005-09-04 18:16:43 UTC
  • mfrom: (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20050904181643-qfph33u3pa4azz5h
Tags: 0.3.3-6
* Fix problems with gcc 4.0:
  + debian/patches/021-gcc-4.0-fixes.diff: New patch.
  + Closes: #258798 "FTBFS with gcc-3.4: label at end of compound statement"
* Fix wrong Debian patch:
  + debian/patch/019-assertions.diff: Fixed.
  + Partly addresses bug #247846 "Crashes after a few moves (assertion
    failed)". This fix is not perfect. As Göran Weinholt notes in the
    bug report, assertions are not the way to go, but are a temporary
    stop-gap measure. (Better assertions than unpredicable results.)

Show diffs side-by-side

added added

removed removed

Lines of Context:
714
714
 
715
715
PACKAGE=gnome-chess
716
716
 
717
 
VERSION=0.3.2
 
717
VERSION=0.3.3
718
718
 
719
719
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
720
720
  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
835
835
        for k in macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
836
836
 
837
837
 
838
 
# Extract the first word of "gcc", so it can be a program name with args.
839
 
set dummy gcc; ac_word=$2
840
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
841
 
echo "configure:842: checking for $ac_word" >&5
842
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
843
 
  echo $ac_n "(cached) $ac_c" 1>&6
844
 
else
845
 
  if test -n "$CC"; then
846
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
847
 
else
848
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
849
 
  ac_dummy="$PATH"
850
 
  for ac_dir in $ac_dummy; do
851
 
    test -z "$ac_dir" && ac_dir=.
852
 
    if test -f $ac_dir/$ac_word; then
853
 
      ac_cv_prog_CC="gcc"
854
 
      break
855
 
    fi
856
 
  done
857
 
  IFS="$ac_save_ifs"
858
 
fi
859
 
fi
860
 
CC="$ac_cv_prog_CC"
861
 
if test -n "$CC"; then
862
 
  echo "$ac_t""$CC" 1>&6
863
 
else
864
 
  echo "$ac_t""no" 1>&6
865
 
fi
866
 
 
867
 
if test -z "$CC"; then
868
 
  # Extract the first word of "cc", so it can be a program name with args.
869
 
set dummy cc; ac_word=$2
870
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
871
 
echo "configure:872: checking for $ac_word" >&5
872
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
873
 
  echo $ac_n "(cached) $ac_c" 1>&6
874
 
else
875
 
  if test -n "$CC"; then
876
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
877
 
else
878
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
879
 
  ac_prog_rejected=no
880
 
  ac_dummy="$PATH"
881
 
  for ac_dir in $ac_dummy; do
882
 
    test -z "$ac_dir" && ac_dir=.
883
 
    if test -f $ac_dir/$ac_word; then
884
 
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
885
 
        ac_prog_rejected=yes
886
 
        continue
887
 
      fi
888
 
      ac_cv_prog_CC="cc"
889
 
      break
890
 
    fi
891
 
  done
892
 
  IFS="$ac_save_ifs"
893
 
if test $ac_prog_rejected = yes; then
894
 
  # We found a bogon in the path, so make sure we never use it.
895
 
  set dummy $ac_cv_prog_CC
896
 
  shift
897
 
  if test $# -gt 0; then
898
 
    # We chose a different compiler from the bogus one.
899
 
    # However, it has the same basename, so the bogon will be chosen
900
 
    # first if we set CC to just the basename; use the full file name.
901
 
    shift
902
 
    set dummy "$ac_dir/$ac_word" "$@"
903
 
    shift
904
 
    ac_cv_prog_CC="$@"
905
 
  fi
906
 
fi
907
 
fi
908
 
fi
909
 
CC="$ac_cv_prog_CC"
910
 
if test -n "$CC"; then
911
 
  echo "$ac_t""$CC" 1>&6
912
 
else
913
 
  echo "$ac_t""no" 1>&6
914
 
fi
915
 
 
916
 
  if test -z "$CC"; then
917
 
    case "`uname -s`" in
918
 
    *win32* | *WIN32*)
919
 
      # Extract the first word of "cl", so it can be a program name with args.
920
 
set dummy cl; ac_word=$2
921
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
922
 
echo "configure:923: checking for $ac_word" >&5
923
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
924
 
  echo $ac_n "(cached) $ac_c" 1>&6
925
 
else
926
 
  if test -n "$CC"; then
927
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
928
 
else
929
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
930
 
  ac_dummy="$PATH"
931
 
  for ac_dir in $ac_dummy; do
932
 
    test -z "$ac_dir" && ac_dir=.
933
 
    if test -f $ac_dir/$ac_word; then
934
 
      ac_cv_prog_CC="cl"
935
 
      break
936
 
    fi
937
 
  done
938
 
  IFS="$ac_save_ifs"
939
 
fi
940
 
fi
941
 
CC="$ac_cv_prog_CC"
942
 
if test -n "$CC"; then
943
 
  echo "$ac_t""$CC" 1>&6
944
 
else
945
 
  echo "$ac_t""no" 1>&6
946
 
fi
947
 
 ;;
948
 
    esac
949
 
  fi
950
 
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
951
 
fi
952
 
 
953
 
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
954
 
echo "configure:955: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
955
 
 
956
 
ac_ext=c
957
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
958
 
ac_cpp='$CPP $CPPFLAGS'
959
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
960
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
961
 
cross_compiling=$ac_cv_prog_cc_cross
962
 
 
963
 
cat > conftest.$ac_ext << EOF
964
 
 
965
 
#line 966 "configure"
966
 
#include "confdefs.h"
967
 
 
968
 
main(){return(0);}
969
 
EOF
970
 
if { (eval echo configure:971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
971
 
  ac_cv_prog_cc_works=yes
972
 
  # If we can't run a trivial program, we are probably using a cross compiler.
973
 
  if (./conftest; exit) 2>/dev/null; then
974
 
    ac_cv_prog_cc_cross=no
975
 
  else
976
 
    ac_cv_prog_cc_cross=yes
977
 
  fi
978
 
else
979
 
  echo "configure: failed program was:" >&5
980
 
  cat conftest.$ac_ext >&5
981
 
  ac_cv_prog_cc_works=no
982
 
fi
983
 
rm -fr conftest*
984
 
ac_ext=c
985
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
986
 
ac_cpp='$CPP $CPPFLAGS'
987
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
988
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
989
 
cross_compiling=$ac_cv_prog_cc_cross
990
 
 
991
 
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
992
 
if test $ac_cv_prog_cc_works = no; then
993
 
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
994
 
fi
995
 
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
996
 
echo "configure:997: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
997
 
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
998
 
cross_compiling=$ac_cv_prog_cc_cross
999
 
 
1000
 
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1001
 
echo "configure:1002: checking whether we are using GNU C" >&5
1002
 
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1003
 
  echo $ac_n "(cached) $ac_c" 1>&6
1004
 
else
1005
 
  cat > conftest.c <<EOF
1006
 
#ifdef __GNUC__
1007
 
  yes;
1008
 
#endif
1009
 
EOF
1010
 
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1011: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1011
 
  ac_cv_prog_gcc=yes
1012
 
else
1013
 
  ac_cv_prog_gcc=no
1014
 
fi
1015
 
fi
1016
 
 
1017
 
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1018
 
 
1019
 
if test $ac_cv_prog_gcc = yes; then
1020
 
  GCC=yes
1021
 
else
1022
 
  GCC=
1023
 
fi
1024
 
 
1025
 
ac_test_CFLAGS="${CFLAGS+set}"
1026
 
ac_save_CFLAGS="$CFLAGS"
1027
 
CFLAGS=
1028
 
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1029
 
echo "configure:1030: checking whether ${CC-cc} accepts -g" >&5
1030
 
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1031
 
  echo $ac_n "(cached) $ac_c" 1>&6
1032
 
else
1033
 
  echo 'void f(){}' > conftest.c
1034
 
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1035
 
  ac_cv_prog_cc_g=yes
1036
 
else
1037
 
  ac_cv_prog_cc_g=no
1038
 
fi
1039
 
rm -f conftest*
1040
 
 
1041
 
fi
1042
 
 
1043
 
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1044
 
if test "$ac_test_CFLAGS" = set; then
1045
 
  CFLAGS="$ac_save_CFLAGS"
1046
 
elif test $ac_cv_prog_cc_g = yes; then
1047
 
  if test "$GCC" = yes; then
1048
 
    CFLAGS="-g -O2"
1049
 
  else
1050
 
    CFLAGS="-g"
1051
 
  fi
1052
 
else
1053
 
  if test "$GCC" = yes; then
1054
 
    CFLAGS="-O2"
1055
 
  else
1056
 
    CFLAGS=
1057
 
  fi
1058
 
fi
1059
 
 
1060
 
echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1061
 
echo "configure:1062: checking for POSIXized ISC" >&5
1062
 
if test -d /etc/conf/kconfig.d &&
1063
 
  grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1064
 
then
1065
 
  echo "$ac_t""yes" 1>&6
1066
 
  ISC=yes # If later tests want to check for ISC.
1067
 
  cat >> confdefs.h <<\EOF
1068
 
#define _POSIX_SOURCE 1
1069
 
EOF
1070
 
 
1071
 
  if test "$GCC" = yes; then
1072
 
    CC="$CC -posix"
1073
 
  else
1074
 
    CC="$CC -Xp"
1075
 
  fi
1076
 
else
1077
 
  echo "$ac_t""no" 1>&6
1078
 
  ISC=
1079
 
fi
1080
 
 
1081
 
# Extract the first word of "gcc", so it can be a program name with args.
1082
 
set dummy gcc; ac_word=$2
1083
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1084
 
echo "configure:1085: checking for $ac_word" >&5
1085
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1086
 
  echo $ac_n "(cached) $ac_c" 1>&6
1087
 
else
1088
 
  if test -n "$CC"; then
1089
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
1090
 
else
1091
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1092
 
  ac_dummy="$PATH"
1093
 
  for ac_dir in $ac_dummy; do
1094
 
    test -z "$ac_dir" && ac_dir=.
1095
 
    if test -f $ac_dir/$ac_word; then
1096
 
      ac_cv_prog_CC="gcc"
1097
 
      break
1098
 
    fi
1099
 
  done
1100
 
  IFS="$ac_save_ifs"
1101
 
fi
1102
 
fi
1103
 
CC="$ac_cv_prog_CC"
1104
 
if test -n "$CC"; then
1105
 
  echo "$ac_t""$CC" 1>&6
1106
 
else
1107
 
  echo "$ac_t""no" 1>&6
1108
 
fi
1109
 
 
1110
 
if test -z "$CC"; then
1111
 
  # Extract the first word of "cc", so it can be a program name with args.
1112
 
set dummy cc; ac_word=$2
1113
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1114
 
echo "configure:1115: checking for $ac_word" >&5
1115
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1116
 
  echo $ac_n "(cached) $ac_c" 1>&6
1117
 
else
1118
 
  if test -n "$CC"; then
1119
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
1120
 
else
1121
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1122
 
  ac_prog_rejected=no
1123
 
  ac_dummy="$PATH"
1124
 
  for ac_dir in $ac_dummy; do
1125
 
    test -z "$ac_dir" && ac_dir=.
1126
 
    if test -f $ac_dir/$ac_word; then
1127
 
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1128
 
        ac_prog_rejected=yes
1129
 
        continue
1130
 
      fi
1131
 
      ac_cv_prog_CC="cc"
1132
 
      break
1133
 
    fi
1134
 
  done
1135
 
  IFS="$ac_save_ifs"
1136
 
if test $ac_prog_rejected = yes; then
1137
 
  # We found a bogon in the path, so make sure we never use it.
1138
 
  set dummy $ac_cv_prog_CC
1139
 
  shift
1140
 
  if test $# -gt 0; then
1141
 
    # We chose a different compiler from the bogus one.
1142
 
    # However, it has the same basename, so the bogon will be chosen
1143
 
    # first if we set CC to just the basename; use the full file name.
1144
 
    shift
1145
 
    set dummy "$ac_dir/$ac_word" "$@"
1146
 
    shift
1147
 
    ac_cv_prog_CC="$@"
1148
 
  fi
1149
 
fi
1150
 
fi
1151
 
fi
1152
 
CC="$ac_cv_prog_CC"
1153
 
if test -n "$CC"; then
1154
 
  echo "$ac_t""$CC" 1>&6
1155
 
else
1156
 
  echo "$ac_t""no" 1>&6
1157
 
fi
1158
 
 
1159
 
  if test -z "$CC"; then
1160
 
    case "`uname -s`" in
1161
 
    *win32* | *WIN32*)
1162
 
      # Extract the first word of "cl", so it can be a program name with args.
1163
 
set dummy cl; ac_word=$2
1164
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1165
 
echo "configure:1166: checking for $ac_word" >&5
1166
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1167
 
  echo $ac_n "(cached) $ac_c" 1>&6
1168
 
else
1169
 
  if test -n "$CC"; then
1170
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
1171
 
else
1172
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1173
 
  ac_dummy="$PATH"
1174
 
  for ac_dir in $ac_dummy; do
1175
 
    test -z "$ac_dir" && ac_dir=.
1176
 
    if test -f $ac_dir/$ac_word; then
1177
 
      ac_cv_prog_CC="cl"
1178
 
      break
1179
 
    fi
1180
 
  done
1181
 
  IFS="$ac_save_ifs"
1182
 
fi
1183
 
fi
1184
 
CC="$ac_cv_prog_CC"
1185
 
if test -n "$CC"; then
1186
 
  echo "$ac_t""$CC" 1>&6
1187
 
else
1188
 
  echo "$ac_t""no" 1>&6
1189
 
fi
1190
 
 ;;
1191
 
    esac
1192
 
  fi
1193
 
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1194
 
fi
1195
 
 
1196
 
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1197
 
echo "configure:1198: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1198
 
 
1199
 
ac_ext=c
1200
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1201
 
ac_cpp='$CPP $CPPFLAGS'
1202
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1203
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1204
 
cross_compiling=$ac_cv_prog_cc_cross
1205
 
 
1206
 
cat > conftest.$ac_ext << EOF
1207
 
 
1208
 
#line 1209 "configure"
1209
 
#include "confdefs.h"
1210
 
 
1211
 
main(){return(0);}
1212
 
EOF
1213
 
if { (eval echo configure:1214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1214
 
  ac_cv_prog_cc_works=yes
1215
 
  # If we can't run a trivial program, we are probably using a cross compiler.
1216
 
  if (./conftest; exit) 2>/dev/null; then
1217
 
    ac_cv_prog_cc_cross=no
1218
 
  else
1219
 
    ac_cv_prog_cc_cross=yes
1220
 
  fi
1221
 
else
1222
 
  echo "configure: failed program was:" >&5
1223
 
  cat conftest.$ac_ext >&5
1224
 
  ac_cv_prog_cc_works=no
1225
 
fi
1226
 
rm -fr conftest*
1227
 
ac_ext=c
1228
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1229
 
ac_cpp='$CPP $CPPFLAGS'
1230
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1231
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1232
 
cross_compiling=$ac_cv_prog_cc_cross
1233
 
 
1234
 
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1235
 
if test $ac_cv_prog_cc_works = no; then
1236
 
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1237
 
fi
1238
 
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1239
 
echo "configure:1240: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1240
 
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1241
 
cross_compiling=$ac_cv_prog_cc_cross
1242
 
 
1243
 
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1244
 
echo "configure:1245: checking whether we are using GNU C" >&5
1245
 
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1246
 
  echo $ac_n "(cached) $ac_c" 1>&6
1247
 
else
1248
 
  cat > conftest.c <<EOF
1249
 
#ifdef __GNUC__
1250
 
  yes;
1251
 
#endif
1252
 
EOF
1253
 
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1254
 
  ac_cv_prog_gcc=yes
1255
 
else
1256
 
  ac_cv_prog_gcc=no
1257
 
fi
1258
 
fi
1259
 
 
1260
 
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1261
 
 
1262
 
if test $ac_cv_prog_gcc = yes; then
1263
 
  GCC=yes
1264
 
else
1265
 
  GCC=
1266
 
fi
1267
 
 
1268
 
ac_test_CFLAGS="${CFLAGS+set}"
1269
 
ac_save_CFLAGS="$CFLAGS"
1270
 
CFLAGS=
1271
 
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1272
 
echo "configure:1273: checking whether ${CC-cc} accepts -g" >&5
1273
 
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1274
 
  echo $ac_n "(cached) $ac_c" 1>&6
1275
 
else
1276
 
  echo 'void f(){}' > conftest.c
1277
 
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1278
 
  ac_cv_prog_cc_g=yes
1279
 
else
1280
 
  ac_cv_prog_cc_g=no
1281
 
fi
1282
 
rm -f conftest*
1283
 
 
1284
 
fi
1285
 
 
1286
 
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1287
 
if test "$ac_test_CFLAGS" = set; then
1288
 
  CFLAGS="$ac_save_CFLAGS"
1289
 
elif test $ac_cv_prog_cc_g = yes; then
1290
 
  if test "$GCC" = yes; then
1291
 
    CFLAGS="-g -O2"
1292
 
  else
1293
 
    CFLAGS="-g"
1294
 
  fi
1295
 
else
1296
 
  if test "$GCC" = yes; then
1297
 
    CFLAGS="-O2"
1298
 
  else
1299
 
    CFLAGS=
1300
 
  fi
1301
 
fi
1302
 
 
1303
 
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1304
 
echo "configure:1305: checking how to run the C preprocessor" >&5
1305
 
# On Suns, sometimes $CPP names a directory.
1306
 
if test -n "$CPP" && test -d "$CPP"; then
1307
 
  CPP=
1308
 
fi
1309
 
if test -z "$CPP"; then
1310
 
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1311
 
  echo $ac_n "(cached) $ac_c" 1>&6
1312
 
else
1313
 
    # This must be in double quotes, not single quotes, because CPP may get
1314
 
  # substituted into the Makefile and "${CC-cc}" will confuse make.
1315
 
  CPP="${CC-cc} -E"
1316
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
1317
 
  # not just through cpp.
1318
 
  cat > conftest.$ac_ext <<EOF
1319
 
#line 1320 "configure"
1320
 
#include "confdefs.h"
1321
 
#include <assert.h>
1322
 
Syntax Error
1323
 
EOF
1324
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1325
 
{ (eval echo configure:1326: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1326
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1327
 
if test -z "$ac_err"; then
1328
 
  :
1329
 
else
1330
 
  echo "$ac_err" >&5
1331
 
  echo "configure: failed program was:" >&5
1332
 
  cat conftest.$ac_ext >&5
1333
 
  rm -rf conftest*
1334
 
  CPP="${CC-cc} -E -traditional-cpp"
1335
 
  cat > conftest.$ac_ext <<EOF
1336
 
#line 1337 "configure"
1337
 
#include "confdefs.h"
1338
 
#include <assert.h>
1339
 
Syntax Error
1340
 
EOF
1341
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1342
 
{ (eval echo configure:1343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1343
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1344
 
if test -z "$ac_err"; then
1345
 
  :
1346
 
else
1347
 
  echo "$ac_err" >&5
1348
 
  echo "configure: failed program was:" >&5
1349
 
  cat conftest.$ac_ext >&5
1350
 
  rm -rf conftest*
1351
 
  CPP="${CC-cc} -nologo -E"
1352
 
  cat > conftest.$ac_ext <<EOF
1353
 
#line 1354 "configure"
1354
 
#include "confdefs.h"
1355
 
#include <assert.h>
1356
 
Syntax Error
1357
 
EOF
1358
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1359
 
{ (eval echo configure:1360: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1360
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1361
 
if test -z "$ac_err"; then
1362
 
  :
1363
 
else
1364
 
  echo "$ac_err" >&5
1365
 
  echo "configure: failed program was:" >&5
1366
 
  cat conftest.$ac_ext >&5
1367
 
  rm -rf conftest*
1368
 
  CPP=/lib/cpp
1369
 
fi
1370
 
rm -f conftest*
1371
 
fi
1372
 
rm -f conftest*
1373
 
fi
1374
 
rm -f conftest*
1375
 
  ac_cv_prog_CPP="$CPP"
1376
 
fi
1377
 
  CPP="$ac_cv_prog_CPP"
1378
 
else
1379
 
  ac_cv_prog_CPP="$CPP"
1380
 
fi
1381
 
echo "$ac_t""$CPP" 1>&6
1382
 
 
1383
 
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1384
 
echo "configure:1385: checking for ANSI C header files" >&5
1385
 
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1386
 
  echo $ac_n "(cached) $ac_c" 1>&6
1387
 
else
1388
 
  cat > conftest.$ac_ext <<EOF
1389
 
#line 1390 "configure"
1390
 
#include "confdefs.h"
1391
 
#include <stdlib.h>
1392
 
#include <stdarg.h>
1393
 
#include <string.h>
1394
 
#include <float.h>
1395
 
EOF
1396
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1397
 
{ (eval echo configure:1398: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1398
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1399
 
if test -z "$ac_err"; then
1400
 
  rm -rf conftest*
1401
 
  ac_cv_header_stdc=yes
1402
 
else
1403
 
  echo "$ac_err" >&5
1404
 
  echo "configure: failed program was:" >&5
1405
 
  cat conftest.$ac_ext >&5
1406
 
  rm -rf conftest*
1407
 
  ac_cv_header_stdc=no
1408
 
fi
1409
 
rm -f conftest*
1410
 
 
1411
 
if test $ac_cv_header_stdc = yes; then
1412
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1413
 
cat > conftest.$ac_ext <<EOF
1414
 
#line 1415 "configure"
1415
 
#include "confdefs.h"
1416
 
#include <string.h>
1417
 
EOF
1418
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1419
 
  egrep "memchr" >/dev/null 2>&1; then
1420
 
  :
1421
 
else
1422
 
  rm -rf conftest*
1423
 
  ac_cv_header_stdc=no
1424
 
fi
1425
 
rm -f conftest*
1426
 
 
1427
 
fi
1428
 
 
1429
 
if test $ac_cv_header_stdc = yes; then
1430
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1431
 
cat > conftest.$ac_ext <<EOF
1432
 
#line 1433 "configure"
1433
 
#include "confdefs.h"
1434
 
#include <stdlib.h>
1435
 
EOF
1436
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1437
 
  egrep "free" >/dev/null 2>&1; then
1438
 
  :
1439
 
else
1440
 
  rm -rf conftest*
1441
 
  ac_cv_header_stdc=no
1442
 
fi
1443
 
rm -f conftest*
1444
 
 
1445
 
fi
1446
 
 
1447
 
if test $ac_cv_header_stdc = yes; then
1448
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1449
 
if test "$cross_compiling" = yes; then
1450
 
  :
1451
 
else
1452
 
  cat > conftest.$ac_ext <<EOF
1453
 
#line 1454 "configure"
1454
 
#include "confdefs.h"
1455
 
#include <ctype.h>
1456
 
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1457
 
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1458
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1459
 
int main () { int i; for (i = 0; i < 256; i++)
1460
 
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1461
 
exit (0); }
1462
 
 
1463
 
EOF
1464
 
if { (eval echo configure:1465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1465
 
then
1466
 
  :
1467
 
else
1468
 
  echo "configure: failed program was:" >&5
1469
 
  cat conftest.$ac_ext >&5
1470
 
  rm -fr conftest*
1471
 
  ac_cv_header_stdc=no
1472
 
fi
1473
 
rm -fr conftest*
1474
 
fi
1475
 
 
1476
 
fi
1477
 
fi
1478
 
 
1479
 
echo "$ac_t""$ac_cv_header_stdc" 1>&6
1480
 
if test $ac_cv_header_stdc = yes; then
1481
 
  cat >> confdefs.h <<\EOF
1482
 
#define STDC_HEADERS 1
1483
 
EOF
1484
 
 
1485
 
fi
1486
 
 
1487
 
if test "$program_transform_name" = s,x,x,; then
1488
 
  program_transform_name=
1489
 
else
1490
 
  # Double any \ or $.  echo might interpret backslashes.
1491
 
  cat <<\EOF_SED > conftestsed
1492
 
s,\\,\\\\,g; s,\$,$$,g
1493
 
EOF_SED
1494
 
  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1495
 
  rm -f conftestsed
1496
 
fi
1497
 
test "$program_prefix" != NONE &&
1498
 
  program_transform_name="s,^,${program_prefix},; $program_transform_name"
1499
 
# Use a double $ so make ignores it.
1500
 
test "$program_suffix" != NONE &&
1501
 
  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1502
 
 
1503
 
# sed with no file args requires a program.
1504
 
test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1505
 
 
1506
 
missing_dir=`cd $ac_aux_dir && pwd`
1507
 
for ac_prog in flex lex
1508
 
do
1509
 
# Extract the first word of "$ac_prog", so it can be a program name with args.
1510
 
set dummy $ac_prog; ac_word=$2
1511
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1512
 
echo "configure:1513: checking for $ac_word" >&5
1513
 
if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1514
 
  echo $ac_n "(cached) $ac_c" 1>&6
1515
 
else
1516
 
  if test -n "$LEX"; then
1517
 
  ac_cv_prog_LEX="$LEX" # Let the user override the test.
1518
 
else
1519
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1520
 
  ac_dummy="$PATH"
1521
 
  for ac_dir in $ac_dummy; do
1522
 
    test -z "$ac_dir" && ac_dir=.
1523
 
    if test -f $ac_dir/$ac_word; then
1524
 
      ac_cv_prog_LEX="$ac_prog"
1525
 
      break
1526
 
    fi
1527
 
  done
1528
 
  IFS="$ac_save_ifs"
1529
 
fi
1530
 
fi
1531
 
LEX="$ac_cv_prog_LEX"
1532
 
if test -n "$LEX"; then
1533
 
  echo "$ac_t""$LEX" 1>&6
1534
 
else
1535
 
  echo "$ac_t""no" 1>&6
1536
 
fi
1537
 
 
1538
 
test -n "$LEX" && break
1539
 
done
1540
 
test -n "$LEX" || LEX=""$missing_dir/missing flex""
1541
 
 
1542
 
# Extract the first word of "flex", so it can be a program name with args.
1543
 
set dummy flex; ac_word=$2
1544
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1545
 
echo "configure:1546: checking for $ac_word" >&5
1546
 
if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1547
 
  echo $ac_n "(cached) $ac_c" 1>&6
1548
 
else
1549
 
  if test -n "$LEX"; then
1550
 
  ac_cv_prog_LEX="$LEX" # Let the user override the test.
1551
 
else
1552
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1553
 
  ac_dummy="$PATH"
1554
 
  for ac_dir in $ac_dummy; do
1555
 
    test -z "$ac_dir" && ac_dir=.
1556
 
    if test -f $ac_dir/$ac_word; then
1557
 
      ac_cv_prog_LEX="flex"
1558
 
      break
1559
 
    fi
1560
 
  done
1561
 
  IFS="$ac_save_ifs"
1562
 
  test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1563
 
fi
1564
 
fi
1565
 
LEX="$ac_cv_prog_LEX"
1566
 
if test -n "$LEX"; then
1567
 
  echo "$ac_t""$LEX" 1>&6
1568
 
else
1569
 
  echo "$ac_t""no" 1>&6
1570
 
fi
1571
 
 
1572
 
if test -z "$LEXLIB"
1573
 
then
1574
 
  case "$LEX" in
1575
 
  flex*) ac_lib=fl ;;
1576
 
  *) ac_lib=l ;;
1577
 
  esac
1578
 
  echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1579
 
echo "configure:1580: checking for yywrap in -l$ac_lib" >&5
1580
 
ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1581
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1582
 
  echo $ac_n "(cached) $ac_c" 1>&6
1583
 
else
1584
 
  ac_save_LIBS="$LIBS"
1585
 
LIBS="-l$ac_lib  $LIBS"
1586
 
cat > conftest.$ac_ext <<EOF
1587
 
#line 1588 "configure"
1588
 
#include "confdefs.h"
1589
 
/* Override any gcc2 internal prototype to avoid an error.  */
1590
 
/* We use char because int might match the return type of a gcc2
1591
 
    builtin and then its argument prototype would still apply.  */
1592
 
char yywrap();
1593
 
 
1594
 
int main() {
1595
 
yywrap()
1596
 
; return 0; }
1597
 
EOF
1598
 
if { (eval echo configure:1599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1599
 
  rm -rf conftest*
1600
 
  eval "ac_cv_lib_$ac_lib_var=yes"
1601
 
else
1602
 
  echo "configure: failed program was:" >&5
1603
 
  cat conftest.$ac_ext >&5
1604
 
  rm -rf conftest*
1605
 
  eval "ac_cv_lib_$ac_lib_var=no"
1606
 
fi
1607
 
rm -f conftest*
1608
 
LIBS="$ac_save_LIBS"
1609
 
 
1610
 
fi
1611
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1612
 
  echo "$ac_t""yes" 1>&6
1613
 
  LEXLIB="-l$ac_lib"
1614
 
else
1615
 
  echo "$ac_t""no" 1>&6
1616
 
fi
1617
 
 
1618
 
fi
1619
 
 
1620
 
echo $ac_n "checking lex output file root""... $ac_c" 1>&6
1621
 
echo "configure:1622: checking lex output file root" >&5
1622
 
if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
1623
 
  echo $ac_n "(cached) $ac_c" 1>&6
1624
 
else
1625
 
  # The minimal lex program is just a single line: %%.  But some broken lexes
1626
 
# (Solaris, I think it was) want two %% lines, so accommodate them.
1627
 
echo '%%
1628
 
%%' | $LEX
1629
 
if test -f lex.yy.c; then
1630
 
  ac_cv_prog_lex_root=lex.yy
1631
 
elif test -f lexyy.c; then
1632
 
  ac_cv_prog_lex_root=lexyy
1633
 
else
1634
 
  { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
1635
 
fi
1636
 
fi
1637
 
 
1638
 
echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
1639
 
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
1640
 
 
1641
 
echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
1642
 
echo "configure:1643: checking whether yytext is a pointer" >&5
1643
 
if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
1644
 
  echo $ac_n "(cached) $ac_c" 1>&6
1645
 
else
1646
 
  # POSIX says lex can declare yytext either as a pointer or an array; the
1647
 
# default is implementation-dependent. Figure out which it is, since
1648
 
# not all implementations provide the %pointer and %array declarations.
1649
 
ac_cv_prog_lex_yytext_pointer=no
1650
 
echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
1651
 
ac_save_LIBS="$LIBS"
1652
 
LIBS="$LIBS $LEXLIB"
1653
 
cat > conftest.$ac_ext <<EOF
1654
 
#line 1655 "configure"
1655
 
#include "confdefs.h"
1656
 
`cat $LEX_OUTPUT_ROOT.c`
1657
 
int main() {
1658
 
 
1659
 
; return 0; }
1660
 
EOF
1661
 
if { (eval echo configure:1662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1662
 
  rm -rf conftest*
1663
 
  ac_cv_prog_lex_yytext_pointer=yes
1664
 
else
1665
 
  echo "configure: failed program was:" >&5
1666
 
  cat conftest.$ac_ext >&5
1667
 
fi
1668
 
rm -f conftest*
1669
 
LIBS="$ac_save_LIBS"
1670
 
rm -f "${LEX_OUTPUT_ROOT}.c"
1671
 
 
1672
 
fi
1673
 
 
1674
 
echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
1675
 
if test $ac_cv_prog_lex_yytext_pointer = yes; then
1676
 
  cat >> confdefs.h <<\EOF
1677
 
#define YYTEXT_POINTER 1
1678
 
EOF
1679
 
 
1680
 
fi
1681
 
 
1682
 
 
1683
838
 
1684
839
        
1685
840
        
1735
890
            # Extract the first word of "gnome-config", so it can be a program name with args.
1736
891
set dummy gnome-config; ac_word=$2
1737
892
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1738
 
echo "configure:1739: checking for $ac_word" >&5
 
893
echo "configure:894: checking for $ac_word" >&5
1739
894
if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
1740
895
  echo $ac_n "(cached) $ac_c" 1>&6
1741
896
else
1772
927
              no_gnome_config="yes"
1773
928
            else
1774
929
              echo $ac_n "checking if $GNOME_CONFIG works""... $ac_c" 1>&6
1775
 
echo "configure:1776: checking if $GNOME_CONFIG works" >&5
 
930
echo "configure:931: checking if $GNOME_CONFIG works" >&5
1776
931
              if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
1777
932
                echo "$ac_t""yes" 1>&6
1778
933
                
1780
935
        # Extract the first word of "orbit-config", so it can be a program name with args.
1781
936
set dummy orbit-config; ac_word=$2
1782
937
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1783
 
echo "configure:1784: checking for $ac_word" >&5
 
938
echo "configure:939: checking for $ac_word" >&5
1784
939
if eval "test \"`echo '$''{'ac_cv_path_ORBIT_CONFIG'+set}'`\" = set"; then
1785
940
  echo $ac_n "(cached) $ac_c" 1>&6
1786
941
else
1816
971
        # Extract the first word of "orbit-idl", so it can be a program name with args.
1817
972
set dummy orbit-idl; ac_word=$2
1818
973
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1819
 
echo "configure:1820: checking for $ac_word" >&5
 
974
echo "configure:975: checking for $ac_word" >&5
1820
975
if eval "test \"`echo '$''{'ac_cv_path_ORBIT_IDL'+set}'`\" = set"; then
1821
976
  echo $ac_n "(cached) $ac_c" 1>&6
1822
977
else
1850
1005
fi
1851
1006
 
1852
1007
        echo $ac_n "checking for working ORBit environment""... $ac_c" 1>&6
1853
 
echo "configure:1854: checking for working ORBit environment" >&5
 
1008
echo "configure:1009: checking for working ORBit environment" >&5
1854
1009
if eval "test \"`echo '$''{'gnome_cv_orbit_found'+set}'`\" = set"; then
1855
1010
  echo $ac_n "(cached) $ac_c" 1>&6
1856
1011
else
1886
1041
        fi
1887
1042
 
1888
1043
        echo $ac_n "checking for gnorba libraries""... $ac_c" 1>&6
1889
 
echo "configure:1890: checking for gnorba libraries" >&5
 
1044
echo "configure:1045: checking for gnorba libraries" >&5
1890
1045
if eval "test \"`echo '$''{'gnome_cv_gnorba_found'+set}'`\" = set"; then
1891
1046
  echo $ac_n "(cached) $ac_c" 1>&6
1892
1047
else
1950
1105
        
1951
1106
            if test "$no_gnome_config" = "yes"; then
1952
1107
              echo $ac_n "checking for gnomeConf.sh file in $gnome_prefix""... $ac_c" 1>&6
1953
 
echo "configure:1954: checking for gnomeConf.sh file in $gnome_prefix" >&5
 
1108
echo "configure:1109: checking for gnomeConf.sh file in $gnome_prefix" >&5
1954
1109
              if test -f $gnome_prefix/gnomeConf.sh; then
1955
1110
                echo "$ac_t""found" 1>&6
1956
1111
                echo "loading gnome configuration from" \
1970
1125
          n=""
1971
1126
          for i in $n; do
1972
1127
            echo $ac_n "checking extra library \"$i\"""... $ac_c" 1>&6
1973
 
echo "configure:1974: checking extra library \"$i\"" >&5
 
1128
echo "configure:1129: checking extra library \"$i\"" >&5
1974
1129
            case $i in 
1975
1130
              applets)
1976
1131
                
1987
1142
              *)
1988
1143
                echo "$ac_t""unknown library" 1>&6
1989
1144
            esac
 
1145
            EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
 
1146
            GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
1990
1147
          done
1991
1148
        fi
1992
1149
 
1993
1150
 
1994
 
 
1995
 
## this should come after `AC_PROG_CC'
 
1151
# Extract the first word of "gcc", so it can be a program name with args.
 
1152
set dummy gcc; ac_word=$2
 
1153
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
1154
echo "configure:1155: checking for $ac_word" >&5
 
1155
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 
1156
  echo $ac_n "(cached) $ac_c" 1>&6
 
1157
else
 
1158
  if test -n "$CC"; then
 
1159
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1160
else
 
1161
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
1162
  ac_dummy="$PATH"
 
1163
  for ac_dir in $ac_dummy; do
 
1164
    test -z "$ac_dir" && ac_dir=.
 
1165
    if test -f $ac_dir/$ac_word; then
 
1166
      ac_cv_prog_CC="gcc"
 
1167
      break
 
1168
    fi
 
1169
  done
 
1170
  IFS="$ac_save_ifs"
 
1171
fi
 
1172
fi
 
1173
CC="$ac_cv_prog_CC"
 
1174
if test -n "$CC"; then
 
1175
  echo "$ac_t""$CC" 1>&6
 
1176
else
 
1177
  echo "$ac_t""no" 1>&6
 
1178
fi
 
1179
 
 
1180
if test -z "$CC"; then
 
1181
  # Extract the first word of "cc", so it can be a program name with args.
 
1182
set dummy cc; ac_word=$2
 
1183
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
1184
echo "configure:1185: checking for $ac_word" >&5
 
1185
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 
1186
  echo $ac_n "(cached) $ac_c" 1>&6
 
1187
else
 
1188
  if test -n "$CC"; then
 
1189
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1190
else
 
1191
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
1192
  ac_prog_rejected=no
 
1193
  ac_dummy="$PATH"
 
1194
  for ac_dir in $ac_dummy; do
 
1195
    test -z "$ac_dir" && ac_dir=.
 
1196
    if test -f $ac_dir/$ac_word; then
 
1197
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
 
1198
        ac_prog_rejected=yes
 
1199
        continue
 
1200
      fi
 
1201
      ac_cv_prog_CC="cc"
 
1202
      break
 
1203
    fi
 
1204
  done
 
1205
  IFS="$ac_save_ifs"
 
1206
if test $ac_prog_rejected = yes; then
 
1207
  # We found a bogon in the path, so make sure we never use it.
 
1208
  set dummy $ac_cv_prog_CC
 
1209
  shift
 
1210
  if test $# -gt 0; then
 
1211
    # We chose a different compiler from the bogus one.
 
1212
    # However, it has the same basename, so the bogon will be chosen
 
1213
    # first if we set CC to just the basename; use the full file name.
 
1214
    shift
 
1215
    set dummy "$ac_dir/$ac_word" "$@"
 
1216
    shift
 
1217
    ac_cv_prog_CC="$@"
 
1218
  fi
 
1219
fi
 
1220
fi
 
1221
fi
 
1222
CC="$ac_cv_prog_CC"
 
1223
if test -n "$CC"; then
 
1224
  echo "$ac_t""$CC" 1>&6
 
1225
else
 
1226
  echo "$ac_t""no" 1>&6
 
1227
fi
 
1228
 
 
1229
  if test -z "$CC"; then
 
1230
    case "`uname -s`" in
 
1231
    *win32* | *WIN32*)
 
1232
      # Extract the first word of "cl", so it can be a program name with args.
 
1233
set dummy cl; ac_word=$2
 
1234
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
1235
echo "configure:1236: checking for $ac_word" >&5
 
1236
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 
1237
  echo $ac_n "(cached) $ac_c" 1>&6
 
1238
else
 
1239
  if test -n "$CC"; then
 
1240
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1241
else
 
1242
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
1243
  ac_dummy="$PATH"
 
1244
  for ac_dir in $ac_dummy; do
 
1245
    test -z "$ac_dir" && ac_dir=.
 
1246
    if test -f $ac_dir/$ac_word; then
 
1247
      ac_cv_prog_CC="cl"
 
1248
      break
 
1249
    fi
 
1250
  done
 
1251
  IFS="$ac_save_ifs"
 
1252
fi
 
1253
fi
 
1254
CC="$ac_cv_prog_CC"
 
1255
if test -n "$CC"; then
 
1256
  echo "$ac_t""$CC" 1>&6
 
1257
else
 
1258
  echo "$ac_t""no" 1>&6
 
1259
fi
 
1260
 ;;
 
1261
    esac
 
1262
  fi
 
1263
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
 
1264
fi
 
1265
 
 
1266
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
 
1267
echo "configure:1268: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
 
1268
 
 
1269
ac_ext=c
 
1270
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
1271
ac_cpp='$CPP $CPPFLAGS'
 
1272
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
1273
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
1274
cross_compiling=$ac_cv_prog_cc_cross
 
1275
 
 
1276
cat > conftest.$ac_ext << EOF
 
1277
 
 
1278
#line 1279 "configure"
 
1279
#include "confdefs.h"
 
1280
 
 
1281
main(){return(0);}
 
1282
EOF
 
1283
if { (eval echo configure:1284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1284
  ac_cv_prog_cc_works=yes
 
1285
  # If we can't run a trivial program, we are probably using a cross compiler.
 
1286
  if (./conftest; exit) 2>/dev/null; then
 
1287
    ac_cv_prog_cc_cross=no
 
1288
  else
 
1289
    ac_cv_prog_cc_cross=yes
 
1290
  fi
 
1291
else
 
1292
  echo "configure: failed program was:" >&5
 
1293
  cat conftest.$ac_ext >&5
 
1294
  ac_cv_prog_cc_works=no
 
1295
fi
 
1296
rm -fr conftest*
 
1297
ac_ext=c
 
1298
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
1299
ac_cpp='$CPP $CPPFLAGS'
 
1300
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
1301
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
1302
cross_compiling=$ac_cv_prog_cc_cross
 
1303
 
 
1304
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
 
1305
if test $ac_cv_prog_cc_works = no; then
 
1306
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
 
1307
fi
 
1308
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
 
1309
echo "configure:1310: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
 
1310
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
 
1311
cross_compiling=$ac_cv_prog_cc_cross
 
1312
 
 
1313
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
 
1314
echo "configure:1315: checking whether we are using GNU C" >&5
 
1315
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
 
1316
  echo $ac_n "(cached) $ac_c" 1>&6
 
1317
else
 
1318
  cat > conftest.c <<EOF
 
1319
#ifdef __GNUC__
 
1320
  yes;
 
1321
#endif
 
1322
EOF
 
1323
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
 
1324
  ac_cv_prog_gcc=yes
 
1325
else
 
1326
  ac_cv_prog_gcc=no
 
1327
fi
 
1328
fi
 
1329
 
 
1330
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
 
1331
 
 
1332
if test $ac_cv_prog_gcc = yes; then
 
1333
  GCC=yes
 
1334
else
 
1335
  GCC=
 
1336
fi
 
1337
 
 
1338
ac_test_CFLAGS="${CFLAGS+set}"
 
1339
ac_save_CFLAGS="$CFLAGS"
 
1340
CFLAGS=
 
1341
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
 
1342
echo "configure:1343: checking whether ${CC-cc} accepts -g" >&5
 
1343
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
 
1344
  echo $ac_n "(cached) $ac_c" 1>&6
 
1345
else
 
1346
  echo 'void f(){}' > conftest.c
 
1347
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
 
1348
  ac_cv_prog_cc_g=yes
 
1349
else
 
1350
  ac_cv_prog_cc_g=no
 
1351
fi
 
1352
rm -f conftest*
 
1353
 
 
1354
fi
 
1355
 
 
1356
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
 
1357
if test "$ac_test_CFLAGS" = set; then
 
1358
  CFLAGS="$ac_save_CFLAGS"
 
1359
elif test $ac_cv_prog_cc_g = yes; then
 
1360
  if test "$GCC" = yes; then
 
1361
    CFLAGS="-g -O2"
 
1362
  else
 
1363
    CFLAGS="-g"
 
1364
  fi
 
1365
else
 
1366
  if test "$GCC" = yes; then
 
1367
    CFLAGS="-O2"
 
1368
  else
 
1369
    CFLAGS=
 
1370
  fi
 
1371
fi
 
1372
 
 
1373
echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
 
1374
echo "configure:1375: checking for POSIXized ISC" >&5
 
1375
if test -d /etc/conf/kconfig.d &&
 
1376
  grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
 
1377
then
 
1378
  echo "$ac_t""yes" 1>&6
 
1379
  ISC=yes # If later tests want to check for ISC.
 
1380
  cat >> confdefs.h <<\EOF
 
1381
#define _POSIX_SOURCE 1
 
1382
EOF
 
1383
 
 
1384
  if test "$GCC" = yes; then
 
1385
    CC="$CC -posix"
 
1386
  else
 
1387
    CC="$CC -Xp"
 
1388
  fi
 
1389
else
 
1390
  echo "$ac_t""no" 1>&6
 
1391
  ISC=
 
1392
fi
 
1393
 
 
1394
# Extract the first word of "gcc", so it can be a program name with args.
 
1395
set dummy gcc; ac_word=$2
 
1396
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
1397
echo "configure:1398: checking for $ac_word" >&5
 
1398
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 
1399
  echo $ac_n "(cached) $ac_c" 1>&6
 
1400
else
 
1401
  if test -n "$CC"; then
 
1402
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1403
else
 
1404
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
1405
  ac_dummy="$PATH"
 
1406
  for ac_dir in $ac_dummy; do
 
1407
    test -z "$ac_dir" && ac_dir=.
 
1408
    if test -f $ac_dir/$ac_word; then
 
1409
      ac_cv_prog_CC="gcc"
 
1410
      break
 
1411
    fi
 
1412
  done
 
1413
  IFS="$ac_save_ifs"
 
1414
fi
 
1415
fi
 
1416
CC="$ac_cv_prog_CC"
 
1417
if test -n "$CC"; then
 
1418
  echo "$ac_t""$CC" 1>&6
 
1419
else
 
1420
  echo "$ac_t""no" 1>&6
 
1421
fi
 
1422
 
 
1423
if test -z "$CC"; then
 
1424
  # Extract the first word of "cc", so it can be a program name with args.
 
1425
set dummy cc; ac_word=$2
 
1426
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
1427
echo "configure:1428: checking for $ac_word" >&5
 
1428
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 
1429
  echo $ac_n "(cached) $ac_c" 1>&6
 
1430
else
 
1431
  if test -n "$CC"; then
 
1432
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1433
else
 
1434
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
1435
  ac_prog_rejected=no
 
1436
  ac_dummy="$PATH"
 
1437
  for ac_dir in $ac_dummy; do
 
1438
    test -z "$ac_dir" && ac_dir=.
 
1439
    if test -f $ac_dir/$ac_word; then
 
1440
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
 
1441
        ac_prog_rejected=yes
 
1442
        continue
 
1443
      fi
 
1444
      ac_cv_prog_CC="cc"
 
1445
      break
 
1446
    fi
 
1447
  done
 
1448
  IFS="$ac_save_ifs"
 
1449
if test $ac_prog_rejected = yes; then
 
1450
  # We found a bogon in the path, so make sure we never use it.
 
1451
  set dummy $ac_cv_prog_CC
 
1452
  shift
 
1453
  if test $# -gt 0; then
 
1454
    # We chose a different compiler from the bogus one.
 
1455
    # However, it has the same basename, so the bogon will be chosen
 
1456
    # first if we set CC to just the basename; use the full file name.
 
1457
    shift
 
1458
    set dummy "$ac_dir/$ac_word" "$@"
 
1459
    shift
 
1460
    ac_cv_prog_CC="$@"
 
1461
  fi
 
1462
fi
 
1463
fi
 
1464
fi
 
1465
CC="$ac_cv_prog_CC"
 
1466
if test -n "$CC"; then
 
1467
  echo "$ac_t""$CC" 1>&6
 
1468
else
 
1469
  echo "$ac_t""no" 1>&6
 
1470
fi
 
1471
 
 
1472
  if test -z "$CC"; then
 
1473
    case "`uname -s`" in
 
1474
    *win32* | *WIN32*)
 
1475
      # Extract the first word of "cl", so it can be a program name with args.
 
1476
set dummy cl; ac_word=$2
 
1477
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
1478
echo "configure:1479: checking for $ac_word" >&5
 
1479
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 
1480
  echo $ac_n "(cached) $ac_c" 1>&6
 
1481
else
 
1482
  if test -n "$CC"; then
 
1483
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1484
else
 
1485
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
1486
  ac_dummy="$PATH"
 
1487
  for ac_dir in $ac_dummy; do
 
1488
    test -z "$ac_dir" && ac_dir=.
 
1489
    if test -f $ac_dir/$ac_word; then
 
1490
      ac_cv_prog_CC="cl"
 
1491
      break
 
1492
    fi
 
1493
  done
 
1494
  IFS="$ac_save_ifs"
 
1495
fi
 
1496
fi
 
1497
CC="$ac_cv_prog_CC"
 
1498
if test -n "$CC"; then
 
1499
  echo "$ac_t""$CC" 1>&6
 
1500
else
 
1501
  echo "$ac_t""no" 1>&6
 
1502
fi
 
1503
 ;;
 
1504
    esac
 
1505
  fi
 
1506
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
 
1507
fi
 
1508
 
 
1509
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
 
1510
echo "configure:1511: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
 
1511
 
 
1512
ac_ext=c
 
1513
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
1514
ac_cpp='$CPP $CPPFLAGS'
 
1515
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
1516
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
1517
cross_compiling=$ac_cv_prog_cc_cross
 
1518
 
 
1519
cat > conftest.$ac_ext << EOF
 
1520
 
 
1521
#line 1522 "configure"
 
1522
#include "confdefs.h"
 
1523
 
 
1524
main(){return(0);}
 
1525
EOF
 
1526
if { (eval echo configure:1527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1527
  ac_cv_prog_cc_works=yes
 
1528
  # If we can't run a trivial program, we are probably using a cross compiler.
 
1529
  if (./conftest; exit) 2>/dev/null; then
 
1530
    ac_cv_prog_cc_cross=no
 
1531
  else
 
1532
    ac_cv_prog_cc_cross=yes
 
1533
  fi
 
1534
else
 
1535
  echo "configure: failed program was:" >&5
 
1536
  cat conftest.$ac_ext >&5
 
1537
  ac_cv_prog_cc_works=no
 
1538
fi
 
1539
rm -fr conftest*
 
1540
ac_ext=c
 
1541
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
1542
ac_cpp='$CPP $CPPFLAGS'
 
1543
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
1544
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
1545
cross_compiling=$ac_cv_prog_cc_cross
 
1546
 
 
1547
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
 
1548
if test $ac_cv_prog_cc_works = no; then
 
1549
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
 
1550
fi
 
1551
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
 
1552
echo "configure:1553: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
 
1553
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
 
1554
cross_compiling=$ac_cv_prog_cc_cross
 
1555
 
 
1556
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
 
1557
echo "configure:1558: checking whether we are using GNU C" >&5
 
1558
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
 
1559
  echo $ac_n "(cached) $ac_c" 1>&6
 
1560
else
 
1561
  cat > conftest.c <<EOF
 
1562
#ifdef __GNUC__
 
1563
  yes;
 
1564
#endif
 
1565
EOF
 
1566
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
 
1567
  ac_cv_prog_gcc=yes
 
1568
else
 
1569
  ac_cv_prog_gcc=no
 
1570
fi
 
1571
fi
 
1572
 
 
1573
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
 
1574
 
 
1575
if test $ac_cv_prog_gcc = yes; then
 
1576
  GCC=yes
 
1577
else
 
1578
  GCC=
 
1579
fi
 
1580
 
 
1581
ac_test_CFLAGS="${CFLAGS+set}"
 
1582
ac_save_CFLAGS="$CFLAGS"
 
1583
CFLAGS=
 
1584
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
 
1585
echo "configure:1586: checking whether ${CC-cc} accepts -g" >&5
 
1586
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
 
1587
  echo $ac_n "(cached) $ac_c" 1>&6
 
1588
else
 
1589
  echo 'void f(){}' > conftest.c
 
1590
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
 
1591
  ac_cv_prog_cc_g=yes
 
1592
else
 
1593
  ac_cv_prog_cc_g=no
 
1594
fi
 
1595
rm -f conftest*
 
1596
 
 
1597
fi
 
1598
 
 
1599
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
 
1600
if test "$ac_test_CFLAGS" = set; then
 
1601
  CFLAGS="$ac_save_CFLAGS"
 
1602
elif test $ac_cv_prog_cc_g = yes; then
 
1603
  if test "$GCC" = yes; then
 
1604
    CFLAGS="-g -O2"
 
1605
  else
 
1606
    CFLAGS="-g"
 
1607
  fi
 
1608
else
 
1609
  if test "$GCC" = yes; then
 
1610
    CFLAGS="-O2"
 
1611
  else
 
1612
    CFLAGS=
 
1613
  fi
 
1614
fi
 
1615
 
 
1616
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
 
1617
echo "configure:1618: checking how to run the C preprocessor" >&5
 
1618
# On Suns, sometimes $CPP names a directory.
 
1619
if test -n "$CPP" && test -d "$CPP"; then
 
1620
  CPP=
 
1621
fi
 
1622
if test -z "$CPP"; then
 
1623
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
 
1624
  echo $ac_n "(cached) $ac_c" 1>&6
 
1625
else
 
1626
    # This must be in double quotes, not single quotes, because CPP may get
 
1627
  # substituted into the Makefile and "${CC-cc}" will confuse make.
 
1628
  CPP="${CC-cc} -E"
 
1629
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
1630
  # not just through cpp.
 
1631
  cat > conftest.$ac_ext <<EOF
 
1632
#line 1633 "configure"
 
1633
#include "confdefs.h"
 
1634
#include <assert.h>
 
1635
Syntax Error
 
1636
EOF
 
1637
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
1638
{ (eval echo configure:1639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
1639
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
1640
if test -z "$ac_err"; then
 
1641
  :
 
1642
else
 
1643
  echo "$ac_err" >&5
 
1644
  echo "configure: failed program was:" >&5
 
1645
  cat conftest.$ac_ext >&5
 
1646
  rm -rf conftest*
 
1647
  CPP="${CC-cc} -E -traditional-cpp"
 
1648
  cat > conftest.$ac_ext <<EOF
 
1649
#line 1650 "configure"
 
1650
#include "confdefs.h"
 
1651
#include <assert.h>
 
1652
Syntax Error
 
1653
EOF
 
1654
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
1655
{ (eval echo configure:1656: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
1656
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
1657
if test -z "$ac_err"; then
 
1658
  :
 
1659
else
 
1660
  echo "$ac_err" >&5
 
1661
  echo "configure: failed program was:" >&5
 
1662
  cat conftest.$ac_ext >&5
 
1663
  rm -rf conftest*
 
1664
  CPP="${CC-cc} -nologo -E"
 
1665
  cat > conftest.$ac_ext <<EOF
 
1666
#line 1667 "configure"
 
1667
#include "confdefs.h"
 
1668
#include <assert.h>
 
1669
Syntax Error
 
1670
EOF
 
1671
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
1672
{ (eval echo configure:1673: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
1673
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
1674
if test -z "$ac_err"; then
 
1675
  :
 
1676
else
 
1677
  echo "$ac_err" >&5
 
1678
  echo "configure: failed program was:" >&5
 
1679
  cat conftest.$ac_ext >&5
 
1680
  rm -rf conftest*
 
1681
  CPP=/lib/cpp
 
1682
fi
 
1683
rm -f conftest*
 
1684
fi
 
1685
rm -f conftest*
 
1686
fi
 
1687
rm -f conftest*
 
1688
  ac_cv_prog_CPP="$CPP"
 
1689
fi
 
1690
  CPP="$ac_cv_prog_CPP"
 
1691
else
 
1692
  ac_cv_prog_CPP="$CPP"
 
1693
fi
 
1694
echo "$ac_t""$CPP" 1>&6
 
1695
 
 
1696
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
 
1697
echo "configure:1698: checking for ANSI C header files" >&5
 
1698
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
 
1699
  echo $ac_n "(cached) $ac_c" 1>&6
 
1700
else
 
1701
  cat > conftest.$ac_ext <<EOF
 
1702
#line 1703 "configure"
 
1703
#include "confdefs.h"
 
1704
#include <stdlib.h>
 
1705
#include <stdarg.h>
 
1706
#include <string.h>
 
1707
#include <float.h>
 
1708
EOF
 
1709
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
1710
{ (eval echo configure:1711: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
1711
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
1712
if test -z "$ac_err"; then
 
1713
  rm -rf conftest*
 
1714
  ac_cv_header_stdc=yes
 
1715
else
 
1716
  echo "$ac_err" >&5
 
1717
  echo "configure: failed program was:" >&5
 
1718
  cat conftest.$ac_ext >&5
 
1719
  rm -rf conftest*
 
1720
  ac_cv_header_stdc=no
 
1721
fi
 
1722
rm -f conftest*
 
1723
 
 
1724
if test $ac_cv_header_stdc = yes; then
 
1725
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
1726
cat > conftest.$ac_ext <<EOF
 
1727
#line 1728 "configure"
 
1728
#include "confdefs.h"
 
1729
#include <string.h>
 
1730
EOF
 
1731
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
1732
  egrep "memchr" >/dev/null 2>&1; then
 
1733
  :
 
1734
else
 
1735
  rm -rf conftest*
 
1736
  ac_cv_header_stdc=no
 
1737
fi
 
1738
rm -f conftest*
 
1739
 
 
1740
fi
 
1741
 
 
1742
if test $ac_cv_header_stdc = yes; then
 
1743
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
1744
cat > conftest.$ac_ext <<EOF
 
1745
#line 1746 "configure"
 
1746
#include "confdefs.h"
 
1747
#include <stdlib.h>
 
1748
EOF
 
1749
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
1750
  egrep "free" >/dev/null 2>&1; then
 
1751
  :
 
1752
else
 
1753
  rm -rf conftest*
 
1754
  ac_cv_header_stdc=no
 
1755
fi
 
1756
rm -f conftest*
 
1757
 
 
1758
fi
 
1759
 
 
1760
if test $ac_cv_header_stdc = yes; then
 
1761
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
1762
if test "$cross_compiling" = yes; then
 
1763
  :
 
1764
else
 
1765
  cat > conftest.$ac_ext <<EOF
 
1766
#line 1767 "configure"
 
1767
#include "confdefs.h"
 
1768
#include <ctype.h>
 
1769
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
1770
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
1771
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
1772
int main () { int i; for (i = 0; i < 256; i++)
 
1773
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
 
1774
exit (0); }
 
1775
 
 
1776
EOF
 
1777
if { (eval echo configure:1778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 
1778
then
 
1779
  :
 
1780
else
 
1781
  echo "configure: failed program was:" >&5
 
1782
  cat conftest.$ac_ext >&5
 
1783
  rm -fr conftest*
 
1784
  ac_cv_header_stdc=no
 
1785
fi
 
1786
rm -fr conftest*
 
1787
fi
 
1788
 
 
1789
fi
 
1790
fi
 
1791
 
 
1792
echo "$ac_t""$ac_cv_header_stdc" 1>&6
 
1793
if test $ac_cv_header_stdc = yes; then
 
1794
  cat >> confdefs.h <<\EOF
 
1795
#define STDC_HEADERS 1
 
1796
EOF
 
1797
 
 
1798
fi
 
1799
 
 
1800
if test "$program_transform_name" = s,x,x,; then
 
1801
  program_transform_name=
 
1802
else
 
1803
  # Double any \ or $.  echo might interpret backslashes.
 
1804
  cat <<\EOF_SED > conftestsed
 
1805
s,\\,\\\\,g; s,\$,$$,g
 
1806
EOF_SED
 
1807
  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
 
1808
  rm -f conftestsed
 
1809
fi
 
1810
test "$program_prefix" != NONE &&
 
1811
  program_transform_name="s,^,${program_prefix},; $program_transform_name"
 
1812
# Use a double $ so make ignores it.
 
1813
test "$program_suffix" != NONE &&
 
1814
  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
 
1815
 
 
1816
# sed with no file args requires a program.
 
1817
test "$program_transform_name" = "" && program_transform_name="s,x,x,"
 
1818
 
 
1819
missing_dir=`cd $ac_aux_dir && pwd`
 
1820
for ac_prog in flex lex
 
1821
do
 
1822
# Extract the first word of "$ac_prog", so it can be a program name with args.
 
1823
set dummy $ac_prog; ac_word=$2
 
1824
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
1825
echo "configure:1826: checking for $ac_word" >&5
 
1826
if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
 
1827
  echo $ac_n "(cached) $ac_c" 1>&6
 
1828
else
 
1829
  if test -n "$LEX"; then
 
1830
  ac_cv_prog_LEX="$LEX" # Let the user override the test.
 
1831
else
 
1832
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
1833
  ac_dummy="$PATH"
 
1834
  for ac_dir in $ac_dummy; do
 
1835
    test -z "$ac_dir" && ac_dir=.
 
1836
    if test -f $ac_dir/$ac_word; then
 
1837
      ac_cv_prog_LEX="$ac_prog"
 
1838
      break
 
1839
    fi
 
1840
  done
 
1841
  IFS="$ac_save_ifs"
 
1842
fi
 
1843
fi
 
1844
LEX="$ac_cv_prog_LEX"
 
1845
if test -n "$LEX"; then
 
1846
  echo "$ac_t""$LEX" 1>&6
 
1847
else
 
1848
  echo "$ac_t""no" 1>&6
 
1849
fi
 
1850
 
 
1851
test -n "$LEX" && break
 
1852
done
 
1853
test -n "$LEX" || LEX=""$missing_dir/missing flex""
 
1854
 
 
1855
# Extract the first word of "flex", so it can be a program name with args.
 
1856
set dummy flex; ac_word=$2
 
1857
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
1858
echo "configure:1859: checking for $ac_word" >&5
 
1859
if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
 
1860
  echo $ac_n "(cached) $ac_c" 1>&6
 
1861
else
 
1862
  if test -n "$LEX"; then
 
1863
  ac_cv_prog_LEX="$LEX" # Let the user override the test.
 
1864
else
 
1865
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
1866
  ac_dummy="$PATH"
 
1867
  for ac_dir in $ac_dummy; do
 
1868
    test -z "$ac_dir" && ac_dir=.
 
1869
    if test -f $ac_dir/$ac_word; then
 
1870
      ac_cv_prog_LEX="flex"
 
1871
      break
 
1872
    fi
 
1873
  done
 
1874
  IFS="$ac_save_ifs"
 
1875
  test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
 
1876
fi
 
1877
fi
 
1878
LEX="$ac_cv_prog_LEX"
 
1879
if test -n "$LEX"; then
 
1880
  echo "$ac_t""$LEX" 1>&6
 
1881
else
 
1882
  echo "$ac_t""no" 1>&6
 
1883
fi
 
1884
 
 
1885
if test -z "$LEXLIB"
 
1886
then
 
1887
  case "$LEX" in
 
1888
  flex*) ac_lib=fl ;;
 
1889
  *) ac_lib=l ;;
 
1890
  esac
 
1891
  echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
 
1892
echo "configure:1893: checking for yywrap in -l$ac_lib" >&5
 
1893
ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
 
1894
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
1895
  echo $ac_n "(cached) $ac_c" 1>&6
 
1896
else
 
1897
  ac_save_LIBS="$LIBS"
 
1898
LIBS="-l$ac_lib  $LIBS"
 
1899
cat > conftest.$ac_ext <<EOF
 
1900
#line 1901 "configure"
 
1901
#include "confdefs.h"
 
1902
/* Override any gcc2 internal prototype to avoid an error.  */
 
1903
/* We use char because int might match the return type of a gcc2
 
1904
    builtin and then its argument prototype would still apply.  */
 
1905
char yywrap();
 
1906
 
 
1907
int main() {
 
1908
yywrap()
 
1909
; return 0; }
 
1910
EOF
 
1911
if { (eval echo configure:1912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1912
  rm -rf conftest*
 
1913
  eval "ac_cv_lib_$ac_lib_var=yes"
 
1914
else
 
1915
  echo "configure: failed program was:" >&5
 
1916
  cat conftest.$ac_ext >&5
 
1917
  rm -rf conftest*
 
1918
  eval "ac_cv_lib_$ac_lib_var=no"
 
1919
fi
 
1920
rm -f conftest*
 
1921
LIBS="$ac_save_LIBS"
 
1922
 
 
1923
fi
 
1924
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
1925
  echo "$ac_t""yes" 1>&6
 
1926
  LEXLIB="-l$ac_lib"
 
1927
else
 
1928
  echo "$ac_t""no" 1>&6
 
1929
fi
 
1930
 
 
1931
fi
 
1932
 
 
1933
echo $ac_n "checking lex output file root""... $ac_c" 1>&6
 
1934
echo "configure:1935: checking lex output file root" >&5
 
1935
if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
 
1936
  echo $ac_n "(cached) $ac_c" 1>&6
 
1937
else
 
1938
  # The minimal lex program is just a single line: %%.  But some broken lexes
 
1939
# (Solaris, I think it was) want two %% lines, so accommodate them.
 
1940
echo '%%
 
1941
%%' | $LEX
 
1942
if test -f lex.yy.c; then
 
1943
  ac_cv_prog_lex_root=lex.yy
 
1944
elif test -f lexyy.c; then
 
1945
  ac_cv_prog_lex_root=lexyy
 
1946
else
 
1947
  { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
 
1948
fi
 
1949
fi
 
1950
 
 
1951
echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
 
1952
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
 
1953
 
 
1954
echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
 
1955
echo "configure:1956: checking whether yytext is a pointer" >&5
 
1956
if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
 
1957
  echo $ac_n "(cached) $ac_c" 1>&6
 
1958
else
 
1959
  # POSIX says lex can declare yytext either as a pointer or an array; the
 
1960
# default is implementation-dependent. Figure out which it is, since
 
1961
# not all implementations provide the %pointer and %array declarations.
 
1962
ac_cv_prog_lex_yytext_pointer=no
 
1963
echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
 
1964
ac_save_LIBS="$LIBS"
 
1965
LIBS="$LIBS $LEXLIB"
 
1966
cat > conftest.$ac_ext <<EOF
 
1967
#line 1968 "configure"
 
1968
#include "confdefs.h"
 
1969
`cat $LEX_OUTPUT_ROOT.c`
 
1970
int main() {
 
1971
 
 
1972
; return 0; }
 
1973
EOF
 
1974
if { (eval echo configure:1975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1975
  rm -rf conftest*
 
1976
  ac_cv_prog_lex_yytext_pointer=yes
 
1977
else
 
1978
  echo "configure: failed program was:" >&5
 
1979
  cat conftest.$ac_ext >&5
 
1980
fi
 
1981
rm -f conftest*
 
1982
LIBS="$ac_save_LIBS"
 
1983
rm -f "${LEX_OUTPUT_ROOT}.c"
 
1984
 
 
1985
fi
 
1986
 
 
1987
echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
 
1988
if test $ac_cv_prog_lex_yytext_pointer = yes; then
 
1989
  cat >> confdefs.h <<\EOF
 
1990
#define YYTEXT_POINTER 1
 
1991
EOF
 
1992
 
 
1993
fi
 
1994
 
 
1995
 
1996
1996
 
1997
1997
        PTHREAD_LIB=""
1998
1998
        echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
2741
2741
 
2742
2742
 
2743
2743
 
2744
 
 
2745
 
 
2746
 
ALL_LINGUAS="az ca da de el es fr ga gl it ja lt nl no pl pt_BR ro ru sv tr uk zh_TW.Big5"
 
2744
XML_I18N_MERGE_OAF_RULE='\%.oaf : \%.oaf.in $(top_builddir)/xml-i18n-merge $(top_srcdir)/po/*.po\
 
2745
        $(top_builddir)/xml-i18n-merge -o $(top_srcdir)/po $< $*.oaf'
 
2746
 
 
2747
XML_I18N_MERGE_KEYS_RULE='\%.keys : \%.keys.in $(top_builddir)/xml-i18n-merge $(top_srcdir)/po/*.po\
 
2748
        $(top_builddir)/xml-i18n-merge -k $(top_srcdir)/po $< $*.keys'
 
2749
 
 
2750
XML_I18N_MERGE_DESKTOP_RULE='\%.desktop : \%.desktop.in $(top_builddir)/xml-i18n-merge $(top_srcdir)/po/*.po\
 
2751
        $(top_builddir)/xml-i18n-merge -d $(top_srcdir)/po $< $*.desktop'
 
2752
 
 
2753
# Always use our own xml-i18n-tools.
 
2754
XML_I18N_EXTRACT='$(top_builddir)/xml-i18n-extract'
 
2755
 
 
2756
XML_I18N_MERGE='$(top_builddir)/xml-i18n-merge'
 
2757
 
 
2758
XML_I18N_UPDATE='$(top_builddir)/xml-i18n-update'
 
2759
 
 
2760
# Extract the first word of "perl", so it can be a program name with args.
 
2761
set dummy perl; ac_word=$2
 
2762
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
2763
echo "configure:2764: checking for $ac_word" >&5
 
2764
if eval "test \"`echo '$''{'ac_cv_path_XML_I18N_TOOLS_PERL'+set}'`\" = set"; then
 
2765
  echo $ac_n "(cached) $ac_c" 1>&6
 
2766
else
 
2767
  case "$XML_I18N_TOOLS_PERL" in
 
2768
  /*)
 
2769
  ac_cv_path_XML_I18N_TOOLS_PERL="$XML_I18N_TOOLS_PERL" # Let the user override the test with a path.
 
2770
  ;;
 
2771
  ?:/*)                  
 
2772
  ac_cv_path_XML_I18N_TOOLS_PERL="$XML_I18N_TOOLS_PERL" # Let the user override the test with a dos path.
 
2773
  ;;
 
2774
  *)
 
2775
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
2776
  ac_dummy="$PATH"
 
2777
  for ac_dir in $ac_dummy; do 
 
2778
    test -z "$ac_dir" && ac_dir=.
 
2779
    if test -f $ac_dir/$ac_word; then
 
2780
      ac_cv_path_XML_I18N_TOOLS_PERL="$ac_dir/$ac_word"
 
2781
      break
 
2782
    fi
 
2783
  done
 
2784
  IFS="$ac_save_ifs"
 
2785
  ;;
 
2786
esac
 
2787
fi
 
2788
XML_I18N_TOOLS_PERL="$ac_cv_path_XML_I18N_TOOLS_PERL"
 
2789
if test -n "$XML_I18N_TOOLS_PERL"; then
 
2790
  echo "$ac_t""$XML_I18N_TOOLS_PERL" 1>&6
 
2791
else
 
2792
  echo "$ac_t""no" 1>&6
 
2793
fi
 
2794
 
 
2795
if test -z "$XML_I18N_TOOLS_PERL"; then
 
2796
   { echo "configure: error: perl not found; required for xml-i18n-tools" 1>&2; exit 1; }
 
2797
fi
 
2798
if test -z "`$XML_I18N_TOOLS_PERL -v | fgrep '5.' 2> /dev/null`"; then
 
2799
   { echo "configure: error: perl 5.x required for xml-i18n-tools" 1>&2; exit 1; }
 
2800
fi
 
2801
 
 
2802
 
 
2803
 
 
2804
# Redirect the config.log output again, so that the ltconfig log is not
 
2805
# clobbered by the next message.
 
2806
exec 5>>./config.log
 
2807
 
 
2808
 
 
2809
 
 
2810
 
 
2811
 
 
2812
 
 
2813
ALL_LINGUAS="az ca da de el es fr ga gl it ja lt nl nn no pl pt_BR ro ru sv tr uk zh_TW.Big5"
2747
2814
# Extract the first word of "ranlib", so it can be a program name with args.
2748
2815
set dummy ranlib; ac_word=$2
2749
2816
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2750
 
echo "configure:2751: checking for $ac_word" >&5
 
2817
echo "configure:2818: checking for $ac_word" >&5
2751
2818
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2752
2819
  echo $ac_n "(cached) $ac_c" 1>&6
2753
2820
else
2775
2842
fi
2776
2843
 
2777
2844
echo $ac_n "checking for working const""... $ac_c" 1>&6
2778
 
echo "configure:2779: checking for working const" >&5
 
2845
echo "configure:2846: checking for working const" >&5
2779
2846
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2780
2847
  echo $ac_n "(cached) $ac_c" 1>&6
2781
2848
else
2782
2849
  cat > conftest.$ac_ext <<EOF
2783
 
#line 2784 "configure"
 
2850
#line 2851 "configure"
2784
2851
#include "confdefs.h"
2785
2852
 
2786
2853
int main() {
2829
2896
 
2830
2897
; return 0; }
2831
2898
EOF
2832
 
if { (eval echo configure:2833: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
2899
if { (eval echo configure:2900: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2833
2900
  rm -rf conftest*
2834
2901
  ac_cv_c_const=yes
2835
2902
else
2850
2917
fi
2851
2918
 
2852
2919
echo $ac_n "checking for inline""... $ac_c" 1>&6
2853
 
echo "configure:2854: checking for inline" >&5
 
2920
echo "configure:2921: checking for inline" >&5
2854
2921
if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2855
2922
  echo $ac_n "(cached) $ac_c" 1>&6
2856
2923
else
2857
2924
  ac_cv_c_inline=no
2858
2925
for ac_kw in inline __inline__ __inline; do
2859
2926
  cat > conftest.$ac_ext <<EOF
2860
 
#line 2861 "configure"
 
2927
#line 2928 "configure"
2861
2928
#include "confdefs.h"
2862
2929
 
2863
2930
int main() {
2864
2931
} $ac_kw foo() {
2865
2932
; return 0; }
2866
2933
EOF
2867
 
if { (eval echo configure:2868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
2934
if { (eval echo configure:2935: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2868
2935
  rm -rf conftest*
2869
2936
  ac_cv_c_inline=$ac_kw; break
2870
2937
else
2890
2957
esac
2891
2958
 
2892
2959
echo $ac_n "checking for off_t""... $ac_c" 1>&6
2893
 
echo "configure:2894: checking for off_t" >&5
 
2960
echo "configure:2961: checking for off_t" >&5
2894
2961
if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2895
2962
  echo $ac_n "(cached) $ac_c" 1>&6
2896
2963
else
2897
2964
  cat > conftest.$ac_ext <<EOF
2898
 
#line 2899 "configure"
 
2965
#line 2966 "configure"
2899
2966
#include "confdefs.h"
2900
2967
#include <sys/types.h>
2901
2968
#if STDC_HEADERS
2923
2990
fi
2924
2991
 
2925
2992
echo $ac_n "checking for size_t""... $ac_c" 1>&6
2926
 
echo "configure:2927: checking for size_t" >&5
 
2993
echo "configure:2994: checking for size_t" >&5
2927
2994
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2928
2995
  echo $ac_n "(cached) $ac_c" 1>&6
2929
2996
else
2930
2997
  cat > conftest.$ac_ext <<EOF
2931
 
#line 2932 "configure"
 
2998
#line 2999 "configure"
2932
2999
#include "confdefs.h"
2933
3000
#include <sys/types.h>
2934
3001
#if STDC_HEADERS
2958
3025
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2959
3026
# for constant arguments.  Useless!
2960
3027
echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2961
 
echo "configure:2962: checking for working alloca.h" >&5
 
3028
echo "configure:3029: checking for working alloca.h" >&5
2962
3029
if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2963
3030
  echo $ac_n "(cached) $ac_c" 1>&6
2964
3031
else
2965
3032
  cat > conftest.$ac_ext <<EOF
2966
 
#line 2967 "configure"
 
3033
#line 3034 "configure"
2967
3034
#include "confdefs.h"
2968
3035
#include <alloca.h>
2969
3036
int main() {
2970
3037
char *p = alloca(2 * sizeof(int));
2971
3038
; return 0; }
2972
3039
EOF
2973
 
if { (eval echo configure:2974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3040
if { (eval echo configure:3041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2974
3041
  rm -rf conftest*
2975
3042
  ac_cv_header_alloca_h=yes
2976
3043
else
2991
3058
fi
2992
3059
 
2993
3060
echo $ac_n "checking for alloca""... $ac_c" 1>&6
2994
 
echo "configure:2995: checking for alloca" >&5
 
3061
echo "configure:3062: checking for alloca" >&5
2995
3062
if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2996
3063
  echo $ac_n "(cached) $ac_c" 1>&6
2997
3064
else
2998
3065
  cat > conftest.$ac_ext <<EOF
2999
 
#line 3000 "configure"
 
3066
#line 3067 "configure"
3000
3067
#include "confdefs.h"
3001
3068
 
3002
3069
#ifdef __GNUC__
3024
3091
char *p = (char *) alloca(1);
3025
3092
; return 0; }
3026
3093
EOF
3027
 
if { (eval echo configure:3028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3094
if { (eval echo configure:3095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3028
3095
  rm -rf conftest*
3029
3096
  ac_cv_func_alloca_works=yes
3030
3097
else
3056
3123
 
3057
3124
 
3058
3125
echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3059
 
echo "configure:3060: checking whether alloca needs Cray hooks" >&5
 
3126
echo "configure:3127: checking whether alloca needs Cray hooks" >&5
3060
3127
if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3061
3128
  echo $ac_n "(cached) $ac_c" 1>&6
3062
3129
else
3063
3130
  cat > conftest.$ac_ext <<EOF
3064
 
#line 3065 "configure"
 
3131
#line 3132 "configure"
3065
3132
#include "confdefs.h"
3066
3133
#if defined(CRAY) && ! defined(CRAY2)
3067
3134
webecray
3086
3153
if test $ac_cv_os_cray = yes; then
3087
3154
for ac_func in _getb67 GETB67 getb67; do
3088
3155
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3089
 
echo "configure:3090: checking for $ac_func" >&5
 
3156
echo "configure:3157: checking for $ac_func" >&5
3090
3157
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3091
3158
  echo $ac_n "(cached) $ac_c" 1>&6
3092
3159
else
3093
3160
  cat > conftest.$ac_ext <<EOF
3094
 
#line 3095 "configure"
 
3161
#line 3162 "configure"
3095
3162
#include "confdefs.h"
3096
3163
/* System header to define __stub macros and hopefully few prototypes,
3097
3164
    which can conflict with char $ac_func(); below.  */
3114
3181
 
3115
3182
; return 0; }
3116
3183
EOF
3117
 
if { (eval echo configure:3118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3184
if { (eval echo configure:3185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3118
3185
  rm -rf conftest*
3119
3186
  eval "ac_cv_func_$ac_func=yes"
3120
3187
else
3141
3208
fi
3142
3209
 
3143
3210
echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3144
 
echo "configure:3145: checking stack direction for C alloca" >&5
 
3211
echo "configure:3212: checking stack direction for C alloca" >&5
3145
3212
if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3146
3213
  echo $ac_n "(cached) $ac_c" 1>&6
3147
3214
else
3149
3216
  ac_cv_c_stack_direction=0
3150
3217
else
3151
3218
  cat > conftest.$ac_ext <<EOF
3152
 
#line 3153 "configure"
 
3219
#line 3220 "configure"
3153
3220
#include "confdefs.h"
3154
3221
find_stack_direction ()
3155
3222
{
3168
3235
  exit (find_stack_direction() < 0);
3169
3236
}
3170
3237
EOF
3171
 
if { (eval echo configure:3172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 
3238
if { (eval echo configure:3239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3172
3239
then
3173
3240
  ac_cv_c_stack_direction=1
3174
3241
else
3193
3260
do
3194
3261
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3195
3262
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3196
 
echo "configure:3197: checking for $ac_hdr" >&5
 
3263
echo "configure:3264: checking for $ac_hdr" >&5
3197
3264
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3198
3265
  echo $ac_n "(cached) $ac_c" 1>&6
3199
3266
else
3200
3267
  cat > conftest.$ac_ext <<EOF
3201
 
#line 3202 "configure"
 
3268
#line 3269 "configure"
3202
3269
#include "confdefs.h"
3203
3270
#include <$ac_hdr>
3204
3271
EOF
3205
3272
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3206
 
{ (eval echo configure:3207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
3273
{ (eval echo configure:3274: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3207
3274
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3208
3275
if test -z "$ac_err"; then
3209
3276
  rm -rf conftest*
3232
3299
for ac_func in getpagesize
3233
3300
do
3234
3301
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3235
 
echo "configure:3236: checking for $ac_func" >&5
 
3302
echo "configure:3303: checking for $ac_func" >&5
3236
3303
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3237
3304
  echo $ac_n "(cached) $ac_c" 1>&6
3238
3305
else
3239
3306
  cat > conftest.$ac_ext <<EOF
3240
 
#line 3241 "configure"
 
3307
#line 3308 "configure"
3241
3308
#include "confdefs.h"
3242
3309
/* System header to define __stub macros and hopefully few prototypes,
3243
3310
    which can conflict with char $ac_func(); below.  */
3260
3327
 
3261
3328
; return 0; }
3262
3329
EOF
3263
 
if { (eval echo configure:3264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3330
if { (eval echo configure:3331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3264
3331
  rm -rf conftest*
3265
3332
  eval "ac_cv_func_$ac_func=yes"
3266
3333
else
3285
3352
done
3286
3353
 
3287
3354
echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3288
 
echo "configure:3289: checking for working mmap" >&5
 
3355
echo "configure:3356: checking for working mmap" >&5
3289
3356
if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3290
3357
  echo $ac_n "(cached) $ac_c" 1>&6
3291
3358
else
3293
3360
  ac_cv_func_mmap_fixed_mapped=no
3294
3361
else
3295
3362
  cat > conftest.$ac_ext <<EOF
3296
 
#line 3297 "configure"
 
3363
#line 3364 "configure"
3297
3364
#include "confdefs.h"
3298
3365
 
3299
3366
/* Thanks to Mike Haertel and Jim Avera for this test.
3433
3500
}
3434
3501
 
3435
3502
EOF
3436
 
if { (eval echo configure:3437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 
3503
if { (eval echo configure:3504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3437
3504
then
3438
3505
  ac_cv_func_mmap_fixed_mapped=yes
3439
3506
else
3461
3528
do
3462
3529
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3463
3530
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3464
 
echo "configure:3465: checking for $ac_hdr" >&5
 
3531
echo "configure:3532: checking for $ac_hdr" >&5
3465
3532
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3466
3533
  echo $ac_n "(cached) $ac_c" 1>&6
3467
3534
else
3468
3535
  cat > conftest.$ac_ext <<EOF
3469
 
#line 3470 "configure"
 
3536
#line 3537 "configure"
3470
3537
#include "confdefs.h"
3471
3538
#include <$ac_hdr>
3472
3539
EOF
3473
3540
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3474
 
{ (eval echo configure:3475: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
3541
{ (eval echo configure:3542: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3475
3542
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3476
3543
if test -z "$ac_err"; then
3477
3544
  rm -rf conftest*
3501
3568
strdup __argz_count __argz_stringify __argz_next
3502
3569
do
3503
3570
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3504
 
echo "configure:3505: checking for $ac_func" >&5
 
3571
echo "configure:3572: checking for $ac_func" >&5
3505
3572
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3506
3573
  echo $ac_n "(cached) $ac_c" 1>&6
3507
3574
else
3508
3575
  cat > conftest.$ac_ext <<EOF
3509
 
#line 3510 "configure"
 
3576
#line 3577 "configure"
3510
3577
#include "confdefs.h"
3511
3578
/* System header to define __stub macros and hopefully few prototypes,
3512
3579
    which can conflict with char $ac_func(); below.  */
3529
3596
 
3530
3597
; return 0; }
3531
3598
EOF
3532
 
if { (eval echo configure:3533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3599
if { (eval echo configure:3600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3533
3600
  rm -rf conftest*
3534
3601
  eval "ac_cv_func_$ac_func=yes"
3535
3602
else
3558
3625
     for ac_func in stpcpy
3559
3626
do
3560
3627
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3561
 
echo "configure:3562: checking for $ac_func" >&5
 
3628
echo "configure:3629: checking for $ac_func" >&5
3562
3629
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3563
3630
  echo $ac_n "(cached) $ac_c" 1>&6
3564
3631
else
3565
3632
  cat > conftest.$ac_ext <<EOF
3566
 
#line 3567 "configure"
 
3633
#line 3634 "configure"
3567
3634
#include "confdefs.h"
3568
3635
/* System header to define __stub macros and hopefully few prototypes,
3569
3636
    which can conflict with char $ac_func(); below.  */
3586
3653
 
3587
3654
; return 0; }
3588
3655
EOF
3589
 
if { (eval echo configure:3590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3656
if { (eval echo configure:3657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3590
3657
  rm -rf conftest*
3591
3658
  eval "ac_cv_func_$ac_func=yes"
3592
3659
else
3620
3687
 
3621
3688
   if test $ac_cv_header_locale_h = yes; then
3622
3689
    echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3623
 
echo "configure:3624: checking for LC_MESSAGES" >&5
 
3690
echo "configure:3691: checking for LC_MESSAGES" >&5
3624
3691
if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3625
3692
  echo $ac_n "(cached) $ac_c" 1>&6
3626
3693
else
3627
3694
  cat > conftest.$ac_ext <<EOF
3628
 
#line 3629 "configure"
 
3695
#line 3696 "configure"
3629
3696
#include "confdefs.h"
3630
3697
#include <locale.h>
3631
3698
int main() {
3632
3699
return LC_MESSAGES
3633
3700
; return 0; }
3634
3701
EOF
3635
 
if { (eval echo configure:3636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3702
if { (eval echo configure:3703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3636
3703
  rm -rf conftest*
3637
3704
  am_cv_val_LC_MESSAGES=yes
3638
3705
else
3653
3720
    fi
3654
3721
  fi
3655
3722
   echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3656
 
echo "configure:3657: checking whether NLS is requested" >&5
 
3723
echo "configure:3724: checking whether NLS is requested" >&5
3657
3724
        # Check whether --enable-nls or --disable-nls was given.
3658
3725
if test "${enable_nls+set}" = set; then
3659
3726
  enableval="$enable_nls"
3686
3753
 
3687
3754
        ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3688
3755
echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3689
 
echo "configure:3690: checking for libintl.h" >&5
 
3756
echo "configure:3757: checking for libintl.h" >&5
3690
3757
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3691
3758
  echo $ac_n "(cached) $ac_c" 1>&6
3692
3759
else
3693
3760
  cat > conftest.$ac_ext <<EOF
3694
 
#line 3695 "configure"
 
3761
#line 3762 "configure"
3695
3762
#include "confdefs.h"
3696
3763
#include <libintl.h>
3697
3764
EOF
3698
3765
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3699
 
{ (eval echo configure:3700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
3766
{ (eval echo configure:3767: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3700
3767
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3701
3768
if test -z "$ac_err"; then
3702
3769
  rm -rf conftest*
3713
3780
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3714
3781
  echo "$ac_t""yes" 1>&6
3715
3782
  echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3716
 
echo "configure:3717: checking for gettext in libc" >&5
 
3783
echo "configure:3784: checking for gettext in libc" >&5
3717
3784
if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3718
3785
  echo $ac_n "(cached) $ac_c" 1>&6
3719
3786
else
3720
3787
  cat > conftest.$ac_ext <<EOF
3721
 
#line 3722 "configure"
 
3788
#line 3789 "configure"
3722
3789
#include "confdefs.h"
3723
3790
#include <libintl.h>
3724
3791
int main() {
3725
3792
return (int) gettext ("")
3726
3793
; return 0; }
3727
3794
EOF
3728
 
if { (eval echo configure:3729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3795
if { (eval echo configure:3796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3729
3796
  rm -rf conftest*
3730
3797
  gt_cv_func_gettext_libc=yes
3731
3798
else
3741
3808
 
3742
3809
           if test "$gt_cv_func_gettext_libc" != "yes"; then
3743
3810
             echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3744
 
echo "configure:3745: checking for bindtextdomain in -lintl" >&5
 
3811
echo "configure:3812: checking for bindtextdomain in -lintl" >&5
3745
3812
ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3746
3813
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3747
3814
  echo $ac_n "(cached) $ac_c" 1>&6
3749
3816
  ac_save_LIBS="$LIBS"
3750
3817
LIBS="-lintl  $LIBS"
3751
3818
cat > conftest.$ac_ext <<EOF
3752
 
#line 3753 "configure"
 
3819
#line 3820 "configure"
3753
3820
#include "confdefs.h"
3754
3821
/* Override any gcc2 internal prototype to avoid an error.  */
3755
3822
/* We use char because int might match the return type of a gcc2
3760
3827
bindtextdomain()
3761
3828
; return 0; }
3762
3829
EOF
3763
 
if { (eval echo configure:3764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3830
if { (eval echo configure:3831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3764
3831
  rm -rf conftest*
3765
3832
  eval "ac_cv_lib_$ac_lib_var=yes"
3766
3833
else
3776
3843
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3777
3844
  echo "$ac_t""yes" 1>&6
3778
3845
  echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3779
 
echo "configure:3780: checking for gettext in libintl" >&5
 
3846
echo "configure:3847: checking for gettext in libintl" >&5
3780
3847
if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3781
3848
  echo $ac_n "(cached) $ac_c" 1>&6
3782
3849
else
3783
3850
  echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
3784
 
echo "configure:3785: checking for gettext in -lintl" >&5
 
3851
echo "configure:3852: checking for gettext in -lintl" >&5
3785
3852
ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
3786
3853
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3787
3854
  echo $ac_n "(cached) $ac_c" 1>&6
3789
3856
  ac_save_LIBS="$LIBS"
3790
3857
LIBS="-lintl  $LIBS"
3791
3858
cat > conftest.$ac_ext <<EOF
3792
 
#line 3793 "configure"
 
3859
#line 3860 "configure"
3793
3860
#include "confdefs.h"
3794
3861
/* Override any gcc2 internal prototype to avoid an error.  */
3795
3862
/* We use char because int might match the return type of a gcc2
3800
3867
gettext()
3801
3868
; return 0; }
3802
3869
EOF
3803
 
if { (eval echo configure:3804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3870
if { (eval echo configure:3871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3804
3871
  rm -rf conftest*
3805
3872
  eval "ac_cv_lib_$ac_lib_var=yes"
3806
3873
else
3839
3906
              # Extract the first word of "msgfmt", so it can be a program name with args.
3840
3907
set dummy msgfmt; ac_word=$2
3841
3908
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3842
 
echo "configure:3843: checking for $ac_word" >&5
 
3909
echo "configure:3910: checking for $ac_word" >&5
3843
3910
if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3844
3911
  echo $ac_n "(cached) $ac_c" 1>&6
3845
3912
else
3873
3940
                for ac_func in dcgettext
3874
3941
do
3875
3942
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3876
 
echo "configure:3877: checking for $ac_func" >&5
 
3943
echo "configure:3944: checking for $ac_func" >&5
3877
3944
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3878
3945
  echo $ac_n "(cached) $ac_c" 1>&6
3879
3946
else
3880
3947
  cat > conftest.$ac_ext <<EOF
3881
 
#line 3882 "configure"
 
3948
#line 3949 "configure"
3882
3949
#include "confdefs.h"
3883
3950
/* System header to define __stub macros and hopefully few prototypes,
3884
3951
    which can conflict with char $ac_func(); below.  */
3901
3968
 
3902
3969
; return 0; }
3903
3970
EOF
3904
 
if { (eval echo configure:3905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3971
if { (eval echo configure:3972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3905
3972
  rm -rf conftest*
3906
3973
  eval "ac_cv_func_$ac_func=yes"
3907
3974
else
3928
3995
                # Extract the first word of "gmsgfmt", so it can be a program name with args.
3929
3996
set dummy gmsgfmt; ac_word=$2
3930
3997
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3931
 
echo "configure:3932: checking for $ac_word" >&5
 
3998
echo "configure:3999: checking for $ac_word" >&5
3932
3999
if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3933
4000
  echo $ac_n "(cached) $ac_c" 1>&6
3934
4001
else
3964
4031
                # Extract the first word of "xgettext", so it can be a program name with args.
3965
4032
set dummy xgettext; ac_word=$2
3966
4033
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3967
 
echo "configure:3968: checking for $ac_word" >&5
 
4034
echo "configure:4035: checking for $ac_word" >&5
3968
4035
if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3969
4036
  echo $ac_n "(cached) $ac_c" 1>&6
3970
4037
else
3996
4063
fi
3997
4064
 
3998
4065
                cat > conftest.$ac_ext <<EOF
3999
 
#line 4000 "configure"
 
4066
#line 4067 "configure"
4000
4067
#include "confdefs.h"
4001
4068
 
4002
4069
int main() {
4004
4071
                               return _nl_msg_cat_cntr
4005
4072
; return 0; }
4006
4073
EOF
4007
 
if { (eval echo configure:4008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4074
if { (eval echo configure:4075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4008
4075
  rm -rf conftest*
4009
4076
  CATOBJEXT=.gmo
4010
4077
                   DATADIRNAME=share
4034
4101
 
4035
4102
        if test "$CATOBJEXT" = "NONE"; then
4036
4103
          echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
4037
 
echo "configure:4038: checking whether catgets can be used" >&5
 
4104
echo "configure:4105: checking whether catgets can be used" >&5
4038
4105
          # Check whether --with-catgets or --without-catgets was given.
4039
4106
if test "${with_catgets+set}" = set; then
4040
4107
  withval="$with_catgets"
4047
4114
 
4048
4115
          if test "$nls_cv_use_catgets" = "yes"; then
4049
4116
                    echo $ac_n "checking for main in -li""... $ac_c" 1>&6
4050
 
echo "configure:4051: checking for main in -li" >&5
 
4117
echo "configure:4118: checking for main in -li" >&5
4051
4118
ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
4052
4119
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4053
4120
  echo $ac_n "(cached) $ac_c" 1>&6
4055
4122
  ac_save_LIBS="$LIBS"
4056
4123
LIBS="-li  $LIBS"
4057
4124
cat > conftest.$ac_ext <<EOF
4058
 
#line 4059 "configure"
 
4125
#line 4126 "configure"
4059
4126
#include "confdefs.h"
4060
4127
 
4061
4128
int main() {
4062
4129
main()
4063
4130
; return 0; }
4064
4131
EOF
4065
 
if { (eval echo configure:4066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4132
if { (eval echo configure:4133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4066
4133
  rm -rf conftest*
4067
4134
  eval "ac_cv_lib_$ac_lib_var=yes"
4068
4135
else
4090
4157
fi
4091
4158
 
4092
4159
            echo $ac_n "checking for catgets""... $ac_c" 1>&6
4093
 
echo "configure:4094: checking for catgets" >&5
 
4160
echo "configure:4161: checking for catgets" >&5
4094
4161
if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
4095
4162
  echo $ac_n "(cached) $ac_c" 1>&6
4096
4163
else
4097
4164
  cat > conftest.$ac_ext <<EOF
4098
 
#line 4099 "configure"
 
4165
#line 4166 "configure"
4099
4166
#include "confdefs.h"
4100
4167
/* System header to define __stub macros and hopefully few prototypes,
4101
4168
    which can conflict with char catgets(); below.  */
4118
4185
 
4119
4186
; return 0; }
4120
4187
EOF
4121
 
if { (eval echo configure:4122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4188
if { (eval echo configure:4189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4122
4189
  rm -rf conftest*
4123
4190
  eval "ac_cv_func_catgets=yes"
4124
4191
else
4140
4207
               # Extract the first word of "gencat", so it can be a program name with args.
4141
4208
set dummy gencat; ac_word=$2
4142
4209
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4143
 
echo "configure:4144: checking for $ac_word" >&5
 
4210
echo "configure:4211: checking for $ac_word" >&5
4144
4211
if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
4145
4212
  echo $ac_n "(cached) $ac_c" 1>&6
4146
4213
else
4281
4348
       LINGUAS=
4282
4349
     else
4283
4350
       echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4284
 
echo "configure:4285: checking for catalogs to be installed" >&5
 
4351
echo "configure:4352: checking for catalogs to be installed" >&5
4285
4352
       NEW_LINGUAS=
4286
4353
       if test "x$LINGUAS" = "x"; then
4287
4354
           LINGUAS=$ALL_LINGUAS
4312
4379
   if test "$CATOBJEXT" = ".cat"; then
4313
4380
     ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4314
4381
echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4315
 
echo "configure:4316: checking for linux/version.h" >&5
 
4382
echo "configure:4383: checking for linux/version.h" >&5
4316
4383
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4317
4384
  echo $ac_n "(cached) $ac_c" 1>&6
4318
4385
else
4319
4386
  cat > conftest.$ac_ext <<EOF
4320
 
#line 4321 "configure"
 
4387
#line 4388 "configure"
4321
4388
#include "confdefs.h"
4322
4389
#include <linux/version.h>
4323
4390
EOF
4324
4391
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4325
 
{ (eval echo configure:4326: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
4392
{ (eval echo configure:4393: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4326
4393
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4327
4394
if test -z "$ac_err"; then
4328
4395
  rm -rf conftest*
4387
4454
        < $srcdir/po/POTFILES.in > po/POTFILES
4388
4455
  
4389
4456
 
 
4457
# Extract the first word of "scrollkeeper-config", so it can be a program name with args.
 
4458
set dummy scrollkeeper-config; ac_word=$2
 
4459
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
4460
echo "configure:4461: checking for $ac_word" >&5
 
4461
if eval "test \"`echo '$''{'ac_cv_path_SCROLLKEEPER_CONFIG'+set}'`\" = set"; then
 
4462
  echo $ac_n "(cached) $ac_c" 1>&6
 
4463
else
 
4464
  case "$SCROLLKEEPER_CONFIG" in
 
4465
  /*)
 
4466
  ac_cv_path_SCROLLKEEPER_CONFIG="$SCROLLKEEPER_CONFIG" # Let the user override the test with a path.
 
4467
  ;;
 
4468
  ?:/*)                  
 
4469
  ac_cv_path_SCROLLKEEPER_CONFIG="$SCROLLKEEPER_CONFIG" # Let the user override the test with a dos path.
 
4470
  ;;
 
4471
  *)
 
4472
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
4473
  ac_dummy="$PATH"
 
4474
  for ac_dir in $ac_dummy; do 
 
4475
    test -z "$ac_dir" && ac_dir=.
 
4476
    if test -f $ac_dir/$ac_word; then
 
4477
      ac_cv_path_SCROLLKEEPER_CONFIG="$ac_dir/$ac_word"
 
4478
      break
 
4479
    fi
 
4480
  done
 
4481
  IFS="$ac_save_ifs"
 
4482
  test -z "$ac_cv_path_SCROLLKEEPER_CONFIG" && ac_cv_path_SCROLLKEEPER_CONFIG="no"
 
4483
  ;;
 
4484
esac
 
4485
fi
 
4486
SCROLLKEEPER_CONFIG="$ac_cv_path_SCROLLKEEPER_CONFIG"
 
4487
if test -n "$SCROLLKEEPER_CONFIG"; then
 
4488
  echo "$ac_t""$SCROLLKEEPER_CONFIG" 1>&6
 
4489
else
 
4490
  echo "$ac_t""no" 1>&6
 
4491
fi
 
4492
 
 
4493
if test x$SCROLLKEEPER_CONFIG = xno; then
 
4494
  
 
4495
 
 
4496
if false; then
 
4497
  BUILD_DOCS_TRUE=
 
4498
  BUILD_DOCS_FALSE='#'
 
4499
else
 
4500
  BUILD_DOCS_TRUE='#'
 
4501
  BUILD_DOCS_FALSE=
 
4502
fi
 
4503
else
 
4504
  
 
4505
 
 
4506
if true; then
 
4507
  BUILD_DOCS_TRUE=
 
4508
  BUILD_DOCS_FALSE='#'
 
4509
else
 
4510
  BUILD_DOCS_TRUE='#'
 
4511
  BUILD_DOCS_FALSE=
 
4512
fi
 
4513
fi
 
4514
 
4390
4515
echo $ac_n "checking for Glade libraries""... $ac_c" 1>&6
4391
 
echo "configure:4392: checking for Glade libraries" >&5
 
4516
echo "configure:4517: checking for Glade libraries" >&5
4392
4517
if gnome-config --libs libglade > /dev/null 2>&1; then 
4393
4518
    echo "$ac_t""found" 1>&6
4394
4519
else
4396
4521
fi
4397
4522
 
4398
4523
echo $ac_n "checking for GnomeCanvasPixbuf libraries >= 0.8.0""... $ac_c" 1>&6
4399
 
echo "configure:4400: checking for GnomeCanvasPixbuf libraries >= 0.8.0" >&5
 
4524
echo "configure:4525: checking for GnomeCanvasPixbuf libraries >= 0.8.0" >&5
4400
4525
if gnome-config --libs gnomecanvaspixbuf > /dev/null 2>&1; then 
4401
 
    vers=`gnome-config --modversion print | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
 
4526
    vers=`gnome-config --modversion gnomecanvaspixbuf | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
4402
4527
    if test "$vers" -ge 8000; then
4403
4528
        echo "$ac_t""found" 1>&6
4404
4529
    else
4414
4539
LIBS=`gnome-config --libs gnomeui`
4415
4540
use_wm_icons=false
4416
4541
echo $ac_n "checking for gnome_window_icon_set_default_from_file in -lgnomeui""... $ac_c" 1>&6
4417
 
echo "configure:4418: checking for gnome_window_icon_set_default_from_file in -lgnomeui" >&5
 
4542
echo "configure:4543: checking for gnome_window_icon_set_default_from_file in -lgnomeui" >&5
4418
4543
ac_lib_var=`echo gnomeui'_'gnome_window_icon_set_default_from_file | sed 'y%./+-%__p_%'`
4419
4544
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4420
4545
  echo $ac_n "(cached) $ac_c" 1>&6
4422
4547
  ac_save_LIBS="$LIBS"
4423
4548
LIBS="-lgnomeui  $LIBS"
4424
4549
cat > conftest.$ac_ext <<EOF
4425
 
#line 4426 "configure"
 
4550
#line 4551 "configure"
4426
4551
#include "confdefs.h"
4427
4552
/* Override any gcc2 internal prototype to avoid an error.  */
4428
4553
/* We use char because int might match the return type of a gcc2
4433
4558
gnome_window_icon_set_default_from_file()
4434
4559
; return 0; }
4435
4560
EOF
4436
 
if { (eval echo configure:4437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4561
if { (eval echo configure:4562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4437
4562
  rm -rf conftest*
4438
4563
  eval "ac_cv_lib_$ac_lib_var=yes"
4439
4564
else
4574
4699
src/dialogs/Makefile
4575
4700
macros/Makefile
4576
4701
Sets/Makefile
 
4702
doc/Makefile
 
4703
doc/C/Makefile
 
4704
omf-install/Makefile
4577
4705
po/Makefile.in
4578
4706
intl/Makefile
4579
4707
 config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4624
4752
s%@MAINT@%$MAINT%g
4625
4753
s%@INSIDE_GNOME_COMMON_TRUE@%$INSIDE_GNOME_COMMON_TRUE%g
4626
4754
s%@INSIDE_GNOME_COMMON_FALSE@%$INSIDE_GNOME_COMMON_FALSE%g
4627
 
s%@CC@%$CC%g
4628
 
s%@CPP@%$CPP%g
4629
 
s%@LEX@%$LEX%g
4630
 
s%@LEXLIB@%$LEXLIB%g
4631
 
s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
4632
4755
s%@GNOME_LIBS@%$GNOME_LIBS%g
4633
4756
s%@GNOMEUI_LIBS@%$GNOMEUI_LIBS%g
4634
4757
s%@GNOMEGNORBA_LIBS@%$GNOMEGNORBA_LIBS%g
4650
4773
s%@GNOME_APPLETS_LIBS@%$GNOME_APPLETS_LIBS%g
4651
4774
s%@GNOME_DOCKLETS_LIBS@%$GNOME_DOCKLETS_LIBS%g
4652
4775
s%@GNOME_CAPPLET_LIBS@%$GNOME_CAPPLET_LIBS%g
 
4776
s%@CC@%$CC%g
 
4777
s%@CPP@%$CPP%g
 
4778
s%@LEX@%$LEX%g
 
4779
s%@LEXLIB@%$LEXLIB%g
 
4780
s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
4653
4781
s%@GTK_CONFIG@%$GTK_CONFIG%g
4654
4782
s%@GTK_CFLAGS@%$GTK_CFLAGS%g
4655
4783
s%@GTK_LIBS@%$GTK_LIBS%g
4657
4785
s%@PTHREAD_LIB@%$PTHREAD_LIB%g
4658
4786
s%@GNOME_XML_CFLAGS@%$GNOME_XML_CFLAGS%g
4659
4787
s%@GNOME_XML_LIB@%$GNOME_XML_LIB%g
 
4788
s%@XML_I18N_MERGE_OAF_RULE@%$XML_I18N_MERGE_OAF_RULE%g
 
4789
s%@XML_I18N_MERGE_KEYS_RULE@%$XML_I18N_MERGE_KEYS_RULE%g
 
4790
s%@XML_I18N_MERGE_DESKTOP_RULE@%$XML_I18N_MERGE_DESKTOP_RULE%g
 
4791
s%@XML_I18N_EXTRACT@%$XML_I18N_EXTRACT%g
 
4792
s%@XML_I18N_MERGE@%$XML_I18N_MERGE%g
 
4793
s%@XML_I18N_UPDATE@%$XML_I18N_UPDATE%g
 
4794
s%@XML_I18N_TOOLS_PERL@%$XML_I18N_TOOLS_PERL%g
4660
4795
s%@RANLIB@%$RANLIB%g
4661
4796
s%@ALLOCA@%$ALLOCA%g
4662
4797
s%@USE_NLS@%$USE_NLS%g
4681
4816
s%@GT_YES@%$GT_YES%g
4682
4817
s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4683
4818
s%@l@%$l%g
 
4819
s%@SCROLLKEEPER_CONFIG@%$SCROLLKEEPER_CONFIG%g
 
4820
s%@BUILD_DOCS_TRUE@%$BUILD_DOCS_TRUE%g
 
4821
s%@BUILD_DOCS_FALSE@%$BUILD_DOCS_FALSE%g
4684
4822
s%@EXTRA_GNOME_LIBS@%$EXTRA_GNOME_LIBS%g
4685
4823
s%@EXTRA_GNOME_CFLAGS@%$EXTRA_GNOME_CFLAGS%g
4686
4824
 
4730
4868
src/dialogs/Makefile
4731
4869
macros/Makefile
4732
4870
Sets/Makefile
 
4871
doc/Makefile
 
4872
doc/C/Makefile
 
4873
omf-install/Makefile
4733
4874
po/Makefile.in
4734
4875
intl/Makefile
4735
4876
"}
4946
5087
EOF
4947
5088
cat >> $CONFIG_STATUS <<EOF
4948
5089
 
 
5090
XML_I18N_TOOLS_PERL=${XML_I18N_TOOLS_PERL}
4949
5091
 
4950
5092
 
4951
5093
EOF
4952
5094
cat >> $CONFIG_STATUS <<\EOF
4953
5095
test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
 
5096
 
 
5097
sed -e "s:@XML_I18N_TOOLS_PERL@:${XML_I18N_TOOLS_PERL}:;" < ${ac_given_srcdir}/xml-i18n-extract.in > xml-i18n-extract;
 
5098
chmod ugo+x xml-i18n-extract;
 
5099
 
 
5100
sed -e "s:@XML_I18N_TOOLS_PERL@:${XML_I18N_TOOLS_PERL}:;" < ${ac_given_srcdir}/xml-i18n-merge.in > xml-i18n-merge;
 
5101
chmod ugo+x xml-i18n-merge;
 
5102
 
 
5103
sed -e "s:@XML_I18N_TOOLS_PERL@:${XML_I18N_TOOLS_PERL}:;" < ${ac_given_srcdir}/xml-i18n-update.in > xml-i18n-update;
 
5104
chmod ugo+x xml-i18n-update;
 
5105
 
4954
5106
case "$CONFIG_FILES" in *po/Makefile.in*)
4955
5107
        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
4956
5108
      esac