2
1

libglib_configure.patch 64 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800
  1. diff -urN glib-1.2.10/acglib.m4 glib-1.2.10-1/acglib.m4
  2. --- glib-1.2.10/acglib.m4 1999-01-04 16:37:40.000000000 -0700
  3. +++ glib-1.2.10-1/acglib.m4 2002-03-13 21:38:32.000000000 -0700
  4. @@ -122,6 +122,18 @@
  5. fi
  6. echo "#define GLIB_SYSDEF_$glib_sysdef$glib_default" >>$glib_sysdefso
  7. done
  8. - AC_MSG_RESULT(failed)])
  9. + AC_MSG_RESULT(failed)],
  10. +[ for glib_sysdef_input in $2 ; do
  11. + glib_sysdef=`echo $glib_sysdef_input | sed 's/^\([[^:]]*\):.*$/\1/'`
  12. + glib_default=`echo $glib_sysdef_input | sed 's/^[[^:]]*:\(.*\)$/\1/'`
  13. + if test $glib_sysdef != $glib_default; then
  14. + glib_default=" $4$glib_default"
  15. + else
  16. + glib_default=
  17. + fi
  18. + echo "#define GLIB_SYSDEF_$glib_sysdef$glib_default" >>$glib_sysdefso
  19. + done
  20. + AC_MSG_WARN(cannot check it if cross compiling -- using defaults)]
  21. +)
  22. rm -f confrun.c
  23. ])
  24. diff -urN glib-1.2.10/configure glib-1.2.10-1/configure
  25. --- glib-1.2.10/configure 2001-03-15 08:44:01.000000000 -0700
  26. +++ glib-1.2.10-1/configure 2002-03-13 21:38:32.000000000 -0700
  27. @@ -2099,15 +2099,16 @@
  28. glib_save_LIBS=$LIBS
  29. LIBS="$LIBS -lm"
  30. if test "$cross_compiling" = yes; then
  31. - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  32. + echo "configure: warning: cannot check it if cross compiling -- defaulting to none needed" 1>&2
  33. +
  34. else
  35. cat > conftest.$ac_ext <<EOF
  36. -#line 2106 "configure"
  37. +#line 2107 "configure"
  38. #include "confdefs.h"
  39. #include <math.h>
  40. int main (void) { return (log(1) != log(1.)); }
  41. EOF
  42. -if { (eval echo configure:2111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  43. +if { (eval echo configure:2112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  44. then
  45. echo "$ac_t""none needed" 1>&6
  46. else
  47. @@ -2117,15 +2118,16 @@
  48. glib_save_CFLAGS=$CFLAGS
  49. CFLAGS="$CFLAGS -std1"
  50. if test "$cross_compiling" = yes; then
  51. - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  52. + echo "configure: warning: suppress autoconf warning message" 1>&2
  53. +
  54. else
  55. cat > conftest.$ac_ext <<EOF
  56. -#line 2124 "configure"
  57. +#line 2126 "configure"
  58. #include "confdefs.h"
  59. #include <math.h>
  60. int main (void) { return (log(1) != log(1.)); }
  61. EOF
  62. -if { (eval echo configure:2129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  63. +if { (eval echo configure:2131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  64. then
  65. echo "$ac_t""-std1" 1>&6
  66. else
  67. @@ -2135,12 +2137,10 @@
  68. echo "$ac_t""" 1>&6
  69. CFLAGS=$glib_save_CFLAGS
  70. echo "configure: warning: No ANSI prototypes found in library. (-std1 didn't work.)" 1>&2
  71. -
  72. fi
  73. rm -fr conftest*
  74. fi
  75. -
  76. fi
  77. rm -fr conftest*
  78. fi
  79. @@ -2544,7 +2544,7 @@
  80. echo $ac_n "(cached) $ac_c" 1>&6
  81. else
  82. if test "$cross_compiling" = yes; then
  83. - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  84. + ac_cv_sizeof_char=1
  85. else
  86. cat > conftest.$ac_ext <<EOF
  87. #line 2551 "configure"
  88. @@ -2583,7 +2583,7 @@
  89. echo $ac_n "(cached) $ac_c" 1>&6
  90. else
  91. if test "$cross_compiling" = yes; then
  92. - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  93. + ac_cv_sizeof_short=2
  94. else
  95. cat > conftest.$ac_ext <<EOF
  96. #line 2590 "configure"
  97. @@ -2622,7 +2622,7 @@
  98. echo $ac_n "(cached) $ac_c" 1>&6
  99. else
  100. if test "$cross_compiling" = yes; then
  101. - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  102. + ac_cv_sizeof_long=4
  103. else
  104. cat > conftest.$ac_ext <<EOF
  105. #line 2629 "configure"
  106. @@ -2661,7 +2661,7 @@
  107. echo $ac_n "(cached) $ac_c" 1>&6
  108. else
  109. if test "$cross_compiling" = yes; then
  110. - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  111. + ac_cv_sizeof_int=4
  112. else
  113. cat > conftest.$ac_ext <<EOF
  114. #line 2668 "configure"
  115. @@ -2700,7 +2700,7 @@
  116. echo $ac_n "(cached) $ac_c" 1>&6
  117. else
  118. if test "$cross_compiling" = yes; then
  119. - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  120. + ac_cv_sizeof_void_p=4
  121. else
  122. cat > conftest.$ac_ext <<EOF
  123. #line 2707 "configure"
  124. @@ -2739,7 +2739,7 @@
  125. echo $ac_n "(cached) $ac_c" 1>&6
  126. else
  127. if test "$cross_compiling" = yes; then
  128. - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  129. + ac_cv_sizeof_long_long=8
  130. else
  131. cat > conftest.$ac_ext <<EOF
  132. #line 2746 "configure"
  133. @@ -2785,7 +2785,7 @@
  134. int main() {
  135. /* Ultrix mips cc rejects this. */
  136. -typedef int charset[2]; const charset x;
  137. +typedef int charset[2]; const charset x = {0,0};
  138. /* SunOS 4.1.1 cc rejects this. */
  139. char const *const *ccp;
  140. char **p;
  141. @@ -2855,31 +2855,29 @@
  142. echo $ac_n "(cached) $ac_c" 1>&6
  143. else
  144. - if test "$cross_compiling" = yes; then
  145. - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  146. -else
  147. - cat > conftest.$ac_ext <<EOF
  148. -#line 2863 "configure"
  149. + cat > conftest.$ac_ext <<EOF
  150. +#line 2860 "configure"
  151. #include "confdefs.h"
  152. +int main() {
  153. +
  154. __inline int foo () { return 0; }
  155. int main () { return foo (); }
  156. +; return 0; }
  157. EOF
  158. -if { (eval echo configure:2870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  159. -then
  160. +if { (eval echo configure:2870: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  161. + rm -rf conftest*
  162. glib_cv_has__inline=yes
  163. else
  164. echo "configure: failed program was:" >&5
  165. cat conftest.$ac_ext >&5
  166. - rm -fr conftest*
  167. + rm -rf conftest*
  168. glib_cv_has__inline=no
  169. -
  170. -fi
  171. -rm -fr conftest*
  172. +
  173. fi
  174. -
  175. +rm -f conftest*
  176. fi
  177. @@ -2891,36 +2889,34 @@
  178. esac
  179. echo $ac_n "checking for __inline__""... $ac_c" 1>&6
  180. -echo "configure:2895: checking for __inline__" >&5
  181. +echo "configure:2893: checking for __inline__" >&5
  182. if eval "test \"`echo '$''{'glib_cv_has__inline__'+set}'`\" = set"; then
  183. echo $ac_n "(cached) $ac_c" 1>&6
  184. else
  185. - if test "$cross_compiling" = yes; then
  186. - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  187. -else
  188. - cat > conftest.$ac_ext <<EOF
  189. -#line 2904 "configure"
  190. + cat > conftest.$ac_ext <<EOF
  191. +#line 2899 "configure"
  192. #include "confdefs.h"
  193. +int main() {
  194. +
  195. __inline__ int foo () { return 0; }
  196. int main () { return foo (); }
  197. +; return 0; }
  198. EOF
  199. -if { (eval echo configure:2911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  200. -then
  201. +if { (eval echo configure:2909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  202. + rm -rf conftest*
  203. glib_cv_has__inline__=yes
  204. else
  205. echo "configure: failed program was:" >&5
  206. cat conftest.$ac_ext >&5
  207. - rm -fr conftest*
  208. + rm -rf conftest*
  209. glib_cv_has__inline__=no
  210. fi
  211. -rm -fr conftest*
  212. -fi
  213. -
  214. +rm -f conftest*
  215. fi
  216. @@ -2932,36 +2928,34 @@
  217. esac
  218. echo $ac_n "checking for inline""... $ac_c" 1>&6
  219. -echo "configure:2936: checking for inline" >&5
  220. +echo "configure:2932: checking for inline" >&5
  221. if eval "test \"`echo '$''{'glib_cv_hasinline'+set}'`\" = set"; then
  222. echo $ac_n "(cached) $ac_c" 1>&6
  223. else
  224. - if test "$cross_compiling" = yes; then
  225. - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  226. -else
  227. - cat > conftest.$ac_ext <<EOF
  228. -#line 2945 "configure"
  229. + cat > conftest.$ac_ext <<EOF
  230. +#line 2938 "configure"
  231. #include "confdefs.h"
  232. +int main() {
  233. +
  234. inline int foo () { return 0; }
  235. int main () { return foo (); }
  236. +; return 0; }
  237. EOF
  238. -if { (eval echo configure:2952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  239. -then
  240. +if { (eval echo configure:2948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  241. + rm -rf conftest*
  242. glib_cv_hasinline=yes
  243. else
  244. echo "configure: failed program was:" >&5
  245. cat conftest.$ac_ext >&5
  246. - rm -fr conftest*
  247. + rm -rf conftest*
  248. glib_cv_hasinline=no
  249. fi
  250. -rm -fr conftest*
  251. -fi
  252. -
  253. +rm -f conftest*
  254. fi
  255. @@ -2973,112 +2967,22 @@
  256. esac
  257. -echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
  258. -echo "configure:2978: checking whether byte ordering is bigendian" >&5
  259. -if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
  260. - echo $ac_n "(cached) $ac_c" 1>&6
  261. -else
  262. - ac_cv_c_bigendian=unknown
  263. -# See if sys/param.h defines the BYTE_ORDER macro.
  264. -cat > conftest.$ac_ext <<EOF
  265. -#line 2985 "configure"
  266. -#include "confdefs.h"
  267. -#include <sys/types.h>
  268. -#include <sys/param.h>
  269. -int main() {
  270. -
  271. -#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  272. - bogus endian macros
  273. -#endif
  274. -; return 0; }
  275. -EOF
  276. -if { (eval echo configure:2996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  277. - rm -rf conftest*
  278. - # It does; now see whether it defined to BIG_ENDIAN or not.
  279. -cat > conftest.$ac_ext <<EOF
  280. -#line 3000 "configure"
  281. -#include "confdefs.h"
  282. -#include <sys/types.h>
  283. -#include <sys/param.h>
  284. -int main() {
  285. -
  286. -#if BYTE_ORDER != BIG_ENDIAN
  287. - not big endian
  288. -#endif
  289. -; return 0; }
  290. -EOF
  291. -if { (eval echo configure:3011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  292. - rm -rf conftest*
  293. - ac_cv_c_bigendian=yes
  294. -else
  295. - echo "configure: failed program was:" >&5
  296. - cat conftest.$ac_ext >&5
  297. - rm -rf conftest*
  298. - ac_cv_c_bigendian=no
  299. -fi
  300. -rm -f conftest*
  301. -else
  302. - echo "configure: failed program was:" >&5
  303. - cat conftest.$ac_ext >&5
  304. -fi
  305. -rm -f conftest*
  306. -if test $ac_cv_c_bigendian = unknown; then
  307. -if test "$cross_compiling" = yes; then
  308. - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  309. -else
  310. - cat > conftest.$ac_ext <<EOF
  311. -#line 3031 "configure"
  312. -#include "confdefs.h"
  313. -main () {
  314. - /* Are we little or big endian? From Harbison&Steele. */
  315. - union
  316. - {
  317. - long l;
  318. - char c[sizeof (long)];
  319. - } u;
  320. - u.l = 1;
  321. - exit (u.c[sizeof (long) - 1] == 1);
  322. -}
  323. -EOF
  324. -if { (eval echo configure:3044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  325. -then
  326. - ac_cv_c_bigendian=no
  327. -else
  328. - echo "configure: failed program was:" >&5
  329. - cat conftest.$ac_ext >&5
  330. - rm -fr conftest*
  331. - ac_cv_c_bigendian=yes
  332. -fi
  333. -rm -fr conftest*
  334. -fi
  335. -
  336. -fi
  337. -fi
  338. -
  339. -echo "$ac_t""$ac_cv_c_bigendian" 1>&6
  340. -if test $ac_cv_c_bigendian = yes; then
  341. - cat >> confdefs.h <<\EOF
  342. -#define WORDS_BIGENDIAN 1
  343. -EOF
  344. -
  345. -fi
  346. -
  347. for ac_hdr in float.h
  348. do
  349. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  350. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  351. -echo "configure:3072: checking for $ac_hdr" >&5
  352. +echo "configure:2976: checking for $ac_hdr" >&5
  353. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  354. echo $ac_n "(cached) $ac_c" 1>&6
  355. else
  356. cat > conftest.$ac_ext <<EOF
  357. -#line 3077 "configure"
  358. +#line 2981 "configure"
  359. #include "confdefs.h"
  360. #include <$ac_hdr>
  361. EOF
  362. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  363. -{ (eval echo configure:3082: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  364. +{ (eval echo configure:2986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  365. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  366. if test -z "$ac_err"; then
  367. rm -rf conftest*
  368. @@ -3111,17 +3015,17 @@
  369. do
  370. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  371. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  372. -echo "configure:3115: checking for $ac_hdr" >&5
  373. +echo "configure:3019: checking for $ac_hdr" >&5
  374. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  375. echo $ac_n "(cached) $ac_c" 1>&6
  376. else
  377. cat > conftest.$ac_ext <<EOF
  378. -#line 3120 "configure"
  379. +#line 3024 "configure"
  380. #include "confdefs.h"
  381. #include <$ac_hdr>
  382. EOF
  383. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  384. -{ (eval echo configure:3125: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  385. +{ (eval echo configure:3029: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  386. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  387. if test -z "$ac_err"; then
  388. rm -rf conftest*
  389. @@ -3154,17 +3058,17 @@
  390. do
  391. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  392. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  393. -echo "configure:3158: checking for $ac_hdr" >&5
  394. +echo "configure:3062: checking for $ac_hdr" >&5
  395. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  396. echo $ac_n "(cached) $ac_c" 1>&6
  397. else
  398. cat > conftest.$ac_ext <<EOF
  399. -#line 3163 "configure"
  400. +#line 3067 "configure"
  401. #include "confdefs.h"
  402. #include <$ac_hdr>
  403. EOF
  404. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  405. -{ (eval echo configure:3168: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  406. +{ (eval echo configure:3072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  407. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  408. if test -z "$ac_err"; then
  409. rm -rf conftest*
  410. @@ -3197,17 +3101,17 @@
  411. do
  412. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  413. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  414. -echo "configure:3201: checking for $ac_hdr" >&5
  415. +echo "configure:3105: checking for $ac_hdr" >&5
  416. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  417. echo $ac_n "(cached) $ac_c" 1>&6
  418. else
  419. cat > conftest.$ac_ext <<EOF
  420. -#line 3206 "configure"
  421. +#line 3110 "configure"
  422. #include "confdefs.h"
  423. #include <$ac_hdr>
  424. EOF
  425. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  426. -{ (eval echo configure:3211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  427. +{ (eval echo configure:3115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  428. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  429. if test -z "$ac_err"; then
  430. rm -rf conftest*
  431. @@ -3240,17 +3144,17 @@
  432. do
  433. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  434. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  435. -echo "configure:3244: checking for $ac_hdr" >&5
  436. +echo "configure:3148: checking for $ac_hdr" >&5
  437. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  438. echo $ac_n "(cached) $ac_c" 1>&6
  439. else
  440. cat > conftest.$ac_ext <<EOF
  441. -#line 3249 "configure"
  442. +#line 3153 "configure"
  443. #include "confdefs.h"
  444. #include <$ac_hdr>
  445. EOF
  446. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  447. -{ (eval echo configure:3254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  448. +{ (eval echo configure:3158: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  449. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  450. if test -z "$ac_err"; then
  451. rm -rf conftest*
  452. @@ -3283,17 +3187,17 @@
  453. do
  454. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  455. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  456. -echo "configure:3287: checking for $ac_hdr" >&5
  457. +echo "configure:3191: checking for $ac_hdr" >&5
  458. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  459. echo $ac_n "(cached) $ac_c" 1>&6
  460. else
  461. cat > conftest.$ac_ext <<EOF
  462. -#line 3292 "configure"
  463. +#line 3196 "configure"
  464. #include "confdefs.h"
  465. #include <$ac_hdr>
  466. EOF
  467. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  468. -{ (eval echo configure:3297: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  469. +{ (eval echo configure:3201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  470. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  471. if test -z "$ac_err"; then
  472. rm -rf conftest*
  473. @@ -3326,17 +3230,17 @@
  474. do
  475. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  476. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  477. -echo "configure:3330: checking for $ac_hdr" >&5
  478. +echo "configure:3234: checking for $ac_hdr" >&5
  479. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  480. echo $ac_n "(cached) $ac_c" 1>&6
  481. else
  482. cat > conftest.$ac_ext <<EOF
  483. -#line 3335 "configure"
  484. +#line 3239 "configure"
  485. #include "confdefs.h"
  486. #include <$ac_hdr>
  487. EOF
  488. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  489. -{ (eval echo configure:3340: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  490. +{ (eval echo configure:3244: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  491. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  492. if test -z "$ac_err"; then
  493. rm -rf conftest*
  494. @@ -3369,17 +3273,17 @@
  495. do
  496. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  497. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  498. -echo "configure:3373: checking for $ac_hdr" >&5
  499. +echo "configure:3277: checking for $ac_hdr" >&5
  500. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  501. echo $ac_n "(cached) $ac_c" 1>&6
  502. else
  503. cat > conftest.$ac_ext <<EOF
  504. -#line 3378 "configure"
  505. +#line 3282 "configure"
  506. #include "confdefs.h"
  507. #include <$ac_hdr>
  508. EOF
  509. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  510. -{ (eval echo configure:3383: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  511. +{ (eval echo configure:3287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  512. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  513. if test -z "$ac_err"; then
  514. rm -rf conftest*
  515. @@ -3412,17 +3316,17 @@
  516. do
  517. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  518. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  519. -echo "configure:3416: checking for $ac_hdr" >&5
  520. +echo "configure:3320: checking for $ac_hdr" >&5
  521. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  522. echo $ac_n "(cached) $ac_c" 1>&6
  523. else
  524. cat > conftest.$ac_ext <<EOF
  525. -#line 3421 "configure"
  526. +#line 3325 "configure"
  527. #include "confdefs.h"
  528. #include <$ac_hdr>
  529. EOF
  530. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  531. -{ (eval echo configure:3426: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  532. +{ (eval echo configure:3330: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  533. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  534. if test -z "$ac_err"; then
  535. rm -rf conftest*
  536. @@ -3455,17 +3359,17 @@
  537. do
  538. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  539. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  540. -echo "configure:3459: checking for $ac_hdr" >&5
  541. +echo "configure:3363: checking for $ac_hdr" >&5
  542. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  543. echo $ac_n "(cached) $ac_c" 1>&6
  544. else
  545. cat > conftest.$ac_ext <<EOF
  546. -#line 3464 "configure"
  547. +#line 3368 "configure"
  548. #include "confdefs.h"
  549. #include <$ac_hdr>
  550. EOF
  551. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  552. -{ (eval echo configure:3469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  553. +{ (eval echo configure:3373: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  554. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  555. if test -z "$ac_err"; then
  556. rm -rf conftest*
  557. @@ -3499,12 +3403,12 @@
  558. for ac_func in lstat strerror strsignal memmove vsnprintf strcasecmp strncasecmp poll
  559. do
  560. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  561. -echo "configure:3503: checking for $ac_func" >&5
  562. +echo "configure:3407: checking for $ac_func" >&5
  563. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  564. echo $ac_n "(cached) $ac_c" 1>&6
  565. else
  566. cat > conftest.$ac_ext <<EOF
  567. -#line 3508 "configure"
  568. +#line 3412 "configure"
  569. #include "confdefs.h"
  570. /* System header to define __stub macros and hopefully few prototypes,
  571. which can conflict with char $ac_func(); below. */
  572. @@ -3527,7 +3431,7 @@
  573. ; return 0; }
  574. EOF
  575. -if { (eval echo configure:3531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  576. +if { (eval echo configure:3435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  577. rm -rf conftest*
  578. eval "ac_cv_func_$ac_func=yes"
  579. else
  580. @@ -3554,9 +3458,9 @@
  581. # Check for sys_errlist
  582. echo $ac_n "checking for sys_errlist""... $ac_c" 1>&6
  583. -echo "configure:3558: checking for sys_errlist" >&5
  584. +echo "configure:3462: checking for sys_errlist" >&5
  585. cat > conftest.$ac_ext <<EOF
  586. -#line 3560 "configure"
  587. +#line 3464 "configure"
  588. #include "confdefs.h"
  589. int main() {
  590. @@ -3567,7 +3471,7 @@
  591. ; return 0; }
  592. EOF
  593. -if { (eval echo configure:3571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  594. +if { (eval echo configure:3475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  595. rm -rf conftest*
  596. glib_ok=yes
  597. else
  598. @@ -3587,9 +3491,9 @@
  599. # Check for sys_siglist
  600. echo $ac_n "checking for sys_siglist""... $ac_c" 1>&6
  601. -echo "configure:3591: checking for sys_siglist" >&5
  602. +echo "configure:3495: checking for sys_siglist" >&5
  603. cat > conftest.$ac_ext <<EOF
  604. -#line 3593 "configure"
  605. +#line 3497 "configure"
  606. #include "confdefs.h"
  607. int main() {
  608. @@ -3599,7 +3503,7 @@
  609. ; return 0; }
  610. EOF
  611. -if { (eval echo configure:3603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  612. +if { (eval echo configure:3507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  613. rm -rf conftest*
  614. glib_ok=yes
  615. else
  616. @@ -3619,9 +3523,9 @@
  617. # Check for sys_siglist decl (see Tue Jan 19 00:44:24 1999 in changelog)
  618. echo $ac_n "checking for sys_siglist declaration""... $ac_c" 1>&6
  619. -echo "configure:3623: checking for sys_siglist declaration" >&5
  620. +echo "configure:3527: checking for sys_siglist declaration" >&5
  621. cat > conftest.$ac_ext <<EOF
  622. -#line 3625 "configure"
  623. +#line 3529 "configure"
  624. #include "confdefs.h"
  625. #include <signal.h>
  626. int main() {
  627. @@ -3630,7 +3534,7 @@
  628. ; return 0; }
  629. EOF
  630. -if { (eval echo configure:3634: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  631. +if { (eval echo configure:3538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  632. rm -rf conftest*
  633. glib_ok=yes
  634. else
  635. @@ -3650,16 +3554,16 @@
  636. # Check if <sys/select.h> needs to be included for fd_set
  637. echo $ac_n "checking for fd_set""... $ac_c" 1>&6
  638. -echo "configure:3654: checking for fd_set" >&5
  639. +echo "configure:3558: checking for fd_set" >&5
  640. cat > conftest.$ac_ext <<EOF
  641. -#line 3656 "configure"
  642. +#line 3560 "configure"
  643. #include "confdefs.h"
  644. #include <sys/types.h>
  645. int main() {
  646. fd_set readMask, writeMask;
  647. ; return 0; }
  648. EOF
  649. -if { (eval echo configure:3663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  650. +if { (eval echo configure:3567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  651. rm -rf conftest*
  652. gtk_ok=yes
  653. else
  654. @@ -3673,7 +3577,7 @@
  655. echo "$ac_t""yes, found in sys/types.h" 1>&6
  656. else
  657. cat > conftest.$ac_ext <<EOF
  658. -#line 3677 "configure"
  659. +#line 3581 "configure"
  660. #include "confdefs.h"
  661. #include <sys/select.h>
  662. EOF
  663. @@ -3707,14 +3611,14 @@
  664. # Check for wchar.h
  665. echo $ac_n "checking for wchar.h""... $ac_c" 1>&6
  666. -echo "configure:3711: checking for wchar.h" >&5
  667. +echo "configure:3615: checking for wchar.h" >&5
  668. cat > conftest.$ac_ext <<EOF
  669. -#line 3713 "configure"
  670. +#line 3617 "configure"
  671. #include "confdefs.h"
  672. #include <wchar.h>
  673. EOF
  674. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  675. -{ (eval echo configure:3718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  676. +{ (eval echo configure:3622: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  677. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  678. if test -z "$ac_err"; then
  679. rm -rf conftest*
  680. @@ -3738,14 +3642,14 @@
  681. # Check for wctype.h (for iswalnum)
  682. echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
  683. -echo "configure:3742: checking for wctype.h" >&5
  684. +echo "configure:3646: checking for wctype.h" >&5
  685. cat > conftest.$ac_ext <<EOF
  686. -#line 3744 "configure"
  687. +#line 3648 "configure"
  688. #include "confdefs.h"
  689. #include <wctype.h>
  690. EOF
  691. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  692. -{ (eval echo configure:3749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  693. +{ (eval echo configure:3653: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  694. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  695. if test -z "$ac_err"; then
  696. rm -rf conftest*
  697. @@ -3769,12 +3673,12 @@
  698. oLIBS="$LIBS"
  699. # in Solaris 2.5, `iswalnum' is in -lw
  700. echo $ac_n "checking for iswalnum""... $ac_c" 1>&6
  701. -echo "configure:3773: checking for iswalnum" >&5
  702. +echo "configure:3677: checking for iswalnum" >&5
  703. if eval "test \"`echo '$''{'ac_cv_func_iswalnum'+set}'`\" = set"; then
  704. echo $ac_n "(cached) $ac_c" 1>&6
  705. else
  706. cat > conftest.$ac_ext <<EOF
  707. -#line 3778 "configure"
  708. +#line 3682 "configure"
  709. #include "confdefs.h"
  710. /* System header to define __stub macros and hopefully few prototypes,
  711. which can conflict with char iswalnum(); below. */
  712. @@ -3797,7 +3701,7 @@
  713. ; return 0; }
  714. EOF
  715. -if { (eval echo configure:3801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  716. +if { (eval echo configure:3705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  717. rm -rf conftest*
  718. eval "ac_cv_func_iswalnum=yes"
  719. else
  720. @@ -3815,7 +3719,7 @@
  721. else
  722. echo "$ac_t""no" 1>&6
  723. echo $ac_n "checking for iswalnum in -lw""... $ac_c" 1>&6
  724. -echo "configure:3819: checking for iswalnum in -lw" >&5
  725. +echo "configure:3723: checking for iswalnum in -lw" >&5
  726. ac_lib_var=`echo w'_'iswalnum | sed 'y%./+-%__p_%'`
  727. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  728. echo $ac_n "(cached) $ac_c" 1>&6
  729. @@ -3823,7 +3727,7 @@
  730. ac_save_LIBS="$LIBS"
  731. LIBS="-lw $LIBS"
  732. cat > conftest.$ac_ext <<EOF
  733. -#line 3827 "configure"
  734. +#line 3731 "configure"
  735. #include "confdefs.h"
  736. /* Override any gcc2 internal prototype to avoid an error. */
  737. /* We use char because int might match the return type of a gcc2
  738. @@ -3834,7 +3738,7 @@
  739. iswalnum()
  740. ; return 0; }
  741. EOF
  742. -if { (eval echo configure:3838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  743. +if { (eval echo configure:3742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  744. rm -rf conftest*
  745. eval "ac_cv_lib_$ac_lib_var=yes"
  746. else
  747. @@ -3866,9 +3770,9 @@
  748. # The following is necessary for Linux libc-5.4.38
  749. echo $ac_n "checking if iswalnum() and friends are properly defined""... $ac_c" 1>&6
  750. -echo "configure:3870: checking if iswalnum() and friends are properly defined" >&5
  751. +echo "configure:3774: checking if iswalnum() and friends are properly defined" >&5
  752. cat > conftest.$ac_ext <<EOF
  753. -#line 3872 "configure"
  754. +#line 3776 "configure"
  755. #include "confdefs.h"
  756. #include <stdlib.h>
  757. int main() {
  758. @@ -3888,7 +3792,7 @@
  759. ; return 0; }
  760. EOF
  761. -if { (eval echo configure:3892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  762. +if { (eval echo configure:3796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  763. rm -rf conftest*
  764. glib_working_wctype=yes
  765. else
  766. @@ -3909,16 +3813,22 @@
  767. echo "$ac_t""$glib_working_wctype" 1>&6
  768. echo $ac_n "checking whether realloc (NULL,) will work""... $ac_c" 1>&6
  769. -echo "configure:3913: checking whether realloc (NULL,) will work" >&5
  770. +echo "configure:3817: checking whether realloc (NULL,) will work" >&5
  771. if eval "test \"`echo '$''{'glib_cv_sane_realloc'+set}'`\" = set"; then
  772. echo $ac_n "(cached) $ac_c" 1>&6
  773. else
  774. if test "$cross_compiling" = yes; then
  775. - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  776. + echo "configure: warning: cannot check it if cross compiling -- defaulting to yes" 1>&2
  777. + glib_cv_sane_realloc=yes
  778. + cat >> confdefs.h <<\EOF
  779. +#define REALLOC_0_WORKS 1
  780. +EOF
  781. +
  782. +
  783. else
  784. cat > conftest.$ac_ext <<EOF
  785. -#line 3922 "configure"
  786. +#line 3832 "configure"
  787. #include "confdefs.h"
  788. #include <stdlib.h>
  789. @@ -3926,7 +3836,7 @@
  790. return realloc (0, sizeof (int)) == 0;
  791. }
  792. EOF
  793. -if { (eval echo configure:3930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  794. +if { (eval echo configure:3840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  795. then
  796. glib_cv_sane_realloc=yes
  797. cat >> confdefs.h <<\EOF
  798. @@ -3951,16 +3861,18 @@
  799. echo $ac_n "checking for an implementation of va_copy()""... $ac_c" 1>&6
  800. -echo "configure:3955: checking for an implementation of va_copy()" >&5
  801. +echo "configure:3865: checking for an implementation of va_copy()" >&5
  802. if eval "test \"`echo '$''{'glib_cv_va_copy'+set}'`\" = set"; then
  803. echo $ac_n "(cached) $ac_c" 1>&6
  804. else
  805. if test "$cross_compiling" = yes; then
  806. - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  807. + echo "configure: warning: cannot check it if cross compiling -- defaulting to no" 1>&2
  808. + glib_cv_va_copy=no
  809. +
  810. else
  811. cat > conftest.$ac_ext <<EOF
  812. -#line 3964 "configure"
  813. +#line 3876 "configure"
  814. #include "confdefs.h"
  815. #include <stdarg.h>
  816. @@ -3977,7 +3889,7 @@
  817. return 0;
  818. }
  819. EOF
  820. -if { (eval echo configure:3981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  821. +if { (eval echo configure:3893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  822. then
  823. glib_cv_va_copy=yes
  824. @@ -3996,16 +3908,18 @@
  825. echo "$ac_t""$glib_cv_va_copy" 1>&6
  826. echo $ac_n "checking for an implementation of __va_copy()""... $ac_c" 1>&6
  827. -echo "configure:4000: checking for an implementation of __va_copy()" >&5
  828. +echo "configure:3912: checking for an implementation of __va_copy()" >&5
  829. if eval "test \"`echo '$''{'glib_cv___va_copy'+set}'`\" = set"; then
  830. echo $ac_n "(cached) $ac_c" 1>&6
  831. else
  832. if test "$cross_compiling" = yes; then
  833. - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  834. + echo "configure: warning: cannot check it if cross compiling -- defaulting to yes" 1>&2
  835. + glib_cv___va_copy=yes
  836. +
  837. else
  838. cat > conftest.$ac_ext <<EOF
  839. -#line 4009 "configure"
  840. +#line 3923 "configure"
  841. #include "confdefs.h"
  842. #include <stdarg.h>
  843. @@ -4022,7 +3936,7 @@
  844. return 0;
  845. }
  846. EOF
  847. -if { (eval echo configure:4026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  848. +if { (eval echo configure:3940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  849. then
  850. glib_cv___va_copy=yes
  851. @@ -4041,16 +3955,18 @@
  852. echo "$ac_t""$glib_cv___va_copy" 1>&6
  853. echo $ac_n "checking whether va_lists can be copied by value""... $ac_c" 1>&6
  854. -echo "configure:4045: checking whether va_lists can be copied by value" >&5
  855. +echo "configure:3959: checking whether va_lists can be copied by value" >&5
  856. if eval "test \"`echo '$''{'glib_cv_va_val_copy'+set}'`\" = set"; then
  857. echo $ac_n "(cached) $ac_c" 1>&6
  858. else
  859. if test "$cross_compiling" = yes; then
  860. - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  861. + echo "configure: warning: cannot check it if cross compiling -- defaulting to yes" 1>&2
  862. + glib_cv_va_val_copy=yes
  863. +
  864. else
  865. cat > conftest.$ac_ext <<EOF
  866. -#line 4054 "configure"
  867. +#line 3970 "configure"
  868. #include "confdefs.h"
  869. #include <stdarg.h>
  870. @@ -4067,7 +3983,7 @@
  871. return 0;
  872. }
  873. EOF
  874. -if { (eval echo configure:4071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  875. +if { (eval echo configure:3987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  876. then
  877. glib_cv_va_val_copy=yes
  878. @@ -4112,12 +4028,12 @@
  879. G_MODULE_HAVE_DLERROR=0
  880. if test -z "$G_MODULE_IMPL"; then
  881. echo $ac_n "checking for dlopen""... $ac_c" 1>&6
  882. -echo "configure:4116: checking for dlopen" >&5
  883. +echo "configure:4032: checking for dlopen" >&5
  884. if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
  885. echo $ac_n "(cached) $ac_c" 1>&6
  886. else
  887. cat > conftest.$ac_ext <<EOF
  888. -#line 4121 "configure"
  889. +#line 4037 "configure"
  890. #include "confdefs.h"
  891. /* System header to define __stub macros and hopefully few prototypes,
  892. which can conflict with char dlopen(); below. */
  893. @@ -4140,7 +4056,7 @@
  894. ; return 0; }
  895. EOF
  896. -if { (eval echo configure:4144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  897. +if { (eval echo configure:4060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  898. rm -rf conftest*
  899. eval "ac_cv_func_dlopen=yes"
  900. else
  901. @@ -4155,12 +4071,12 @@
  902. if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
  903. echo "$ac_t""yes" 1>&6
  904. echo $ac_n "checking for dlsym""... $ac_c" 1>&6
  905. -echo "configure:4159: checking for dlsym" >&5
  906. +echo "configure:4075: checking for dlsym" >&5
  907. if eval "test \"`echo '$''{'ac_cv_func_dlsym'+set}'`\" = set"; then
  908. echo $ac_n "(cached) $ac_c" 1>&6
  909. else
  910. cat > conftest.$ac_ext <<EOF
  911. -#line 4164 "configure"
  912. +#line 4080 "configure"
  913. #include "confdefs.h"
  914. /* System header to define __stub macros and hopefully few prototypes,
  915. which can conflict with char dlsym(); below. */
  916. @@ -4183,7 +4099,7 @@
  917. ; return 0; }
  918. EOF
  919. -if { (eval echo configure:4187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  920. +if { (eval echo configure:4103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  921. rm -rf conftest*
  922. eval "ac_cv_func_dlsym=yes"
  923. else
  924. @@ -4211,7 +4127,7 @@
  925. fi
  926. if test -z "$G_MODULE_IMPL"; then
  927. echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
  928. -echo "configure:4215: checking for dlopen in -ldl" >&5
  929. +echo "configure:4131: checking for dlopen in -ldl" >&5
  930. ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
  931. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  932. echo $ac_n "(cached) $ac_c" 1>&6
  933. @@ -4219,7 +4135,7 @@
  934. ac_save_LIBS="$LIBS"
  935. LIBS="-ldl $LIBS"
  936. cat > conftest.$ac_ext <<EOF
  937. -#line 4223 "configure"
  938. +#line 4139 "configure"
  939. #include "confdefs.h"
  940. /* Override any gcc2 internal prototype to avoid an error. */
  941. /* We use char because int might match the return type of a gcc2
  942. @@ -4230,7 +4146,7 @@
  943. dlopen()
  944. ; return 0; }
  945. EOF
  946. -if { (eval echo configure:4234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  947. +if { (eval echo configure:4150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  948. rm -rf conftest*
  949. eval "ac_cv_lib_$ac_lib_var=yes"
  950. else
  951. @@ -4246,7 +4162,7 @@
  952. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  953. echo "$ac_t""yes" 1>&6
  954. echo $ac_n "checking for dlsym in -ldl""... $ac_c" 1>&6
  955. -echo "configure:4250: checking for dlsym in -ldl" >&5
  956. +echo "configure:4166: checking for dlsym in -ldl" >&5
  957. ac_lib_var=`echo dl'_'dlsym | sed 'y%./+-%__p_%'`
  958. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  959. echo $ac_n "(cached) $ac_c" 1>&6
  960. @@ -4254,7 +4170,7 @@
  961. ac_save_LIBS="$LIBS"
  962. LIBS="-ldl $LIBS"
  963. cat > conftest.$ac_ext <<EOF
  964. -#line 4258 "configure"
  965. +#line 4174 "configure"
  966. #include "confdefs.h"
  967. /* Override any gcc2 internal prototype to avoid an error. */
  968. /* We use char because int might match the return type of a gcc2
  969. @@ -4265,7 +4181,7 @@
  970. dlsym()
  971. ; return 0; }
  972. EOF
  973. -if { (eval echo configure:4269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  974. +if { (eval echo configure:4185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  975. rm -rf conftest*
  976. eval "ac_cv_lib_$ac_lib_var=yes"
  977. else
  978. @@ -4295,18 +4211,18 @@
  979. fi
  980. if test -z "$G_MODULE_IMPL"; then
  981. echo $ac_n "checking how to export all symbols""... $ac_c" 1>&6
  982. -echo "configure:4299: checking how to export all symbols" >&5
  983. +echo "configure:4215: checking how to export all symbols" >&5
  984. SAVED_LDFLAGS=$LDFLAGS
  985. LDFLAGS="$LDFLAGS -Wl,-E"
  986. cat > conftest.$ac_ext <<EOF
  987. -#line 4303 "configure"
  988. +#line 4219 "configure"
  989. #include "confdefs.h"
  990. int main() {
  991. return 0;
  992. ; return 0; }
  993. EOF
  994. -if { (eval echo configure:4310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  995. +if { (eval echo configure:4226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  996. rm -rf conftest*
  997. G_MODULE_LDFLAGS="-Wl,-E"
  998. else
  999. @@ -4316,14 +4232,14 @@
  1000. LDFLAGS="$SAVED_LDFLAGS -bexpall"
  1001. cat > conftest.$ac_ext <<EOF
  1002. -#line 4320 "configure"
  1003. +#line 4236 "configure"
  1004. #include "confdefs.h"
  1005. int main() {
  1006. return 0;
  1007. ; return 0; }
  1008. EOF
  1009. -if { (eval echo configure:4327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1010. +if { (eval echo configure:4243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1011. rm -rf conftest*
  1012. G_MODULE_LDFLAGS="-bexpall"
  1013. else
  1014. @@ -4343,7 +4259,7 @@
  1015. G_MODULE_LDFLAGS=
  1016. fi
  1017. echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
  1018. -echo "configure:4347: checking for shl_load in -ldld" >&5
  1019. +echo "configure:4263: checking for shl_load in -ldld" >&5
  1020. ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
  1021. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1022. echo $ac_n "(cached) $ac_c" 1>&6
  1023. @@ -4351,7 +4267,7 @@
  1024. ac_save_LIBS="$LIBS"
  1025. LIBS="-ldld $LIBS"
  1026. cat > conftest.$ac_ext <<EOF
  1027. -#line 4355 "configure"
  1028. +#line 4271 "configure"
  1029. #include "confdefs.h"
  1030. /* Override any gcc2 internal prototype to avoid an error. */
  1031. /* We use char because int might match the return type of a gcc2
  1032. @@ -4362,7 +4278,7 @@
  1033. shl_load()
  1034. ; return 0; }
  1035. EOF
  1036. -if { (eval echo configure:4366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1037. +if { (eval echo configure:4282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1038. rm -rf conftest*
  1039. eval "ac_cv_lib_$ac_lib_var=yes"
  1040. else
  1041. @@ -4396,16 +4312,17 @@
  1042. LIBS="$LIBS $G_MODULE_LIBS"
  1043. LDFLAGS="$LDFLAGS $G_MODULE_LDFLAGS"
  1044. echo $ac_n "checking for RTLD_GLOBAL brokenness""... $ac_c" 1>&6
  1045. -echo "configure:4400: checking for RTLD_GLOBAL brokenness" >&5
  1046. +echo "configure:4316: checking for RTLD_GLOBAL brokenness" >&5
  1047. if eval "test \"`echo '$''{'glib_cv_rtldglobal_broken'+set}'`\" = set"; then
  1048. echo $ac_n "(cached) $ac_c" 1>&6
  1049. else
  1050. if test "$cross_compiling" = yes; then
  1051. - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1052. + echo "configure: warning: cannot check it if cross compiling -- defaulting to no" 1>&2
  1053. + glib_cv_rtldglobal_broken=no
  1054. else
  1055. cat > conftest.$ac_ext <<EOF
  1056. -#line 4409 "configure"
  1057. +#line 4326 "configure"
  1058. #include "confdefs.h"
  1059. #include <dlfcn.h>
  1060. @@ -4425,7 +4342,7 @@
  1061. return global == local;
  1062. }
  1063. EOF
  1064. -if { (eval echo configure:4429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1065. +if { (eval echo configure:4346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1066. then
  1067. glib_cv_rtldglobal_broken=no
  1068. else
  1069. @@ -4448,16 +4365,18 @@
  1070. G_MODULE_BROKEN_RTLD_GLOBAL=0
  1071. fi
  1072. echo $ac_n "checking for preceeding underscore in symbols""... $ac_c" 1>&6
  1073. -echo "configure:4452: checking for preceeding underscore in symbols" >&5
  1074. +echo "configure:4369: checking for preceeding underscore in symbols" >&5
  1075. if eval "test \"`echo '$''{'glib_cv_uscore'+set}'`\" = set"; then
  1076. echo $ac_n "(cached) $ac_c" 1>&6
  1077. else
  1078. if test "$cross_compiling" = yes; then
  1079. - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1080. + echo "configure: warning: cannot check it if cross compiling -- defaulting to no" 1>&2
  1081. + glib_cv_uscore=no
  1082. +
  1083. else
  1084. cat > conftest.$ac_ext <<EOF
  1085. -#line 4461 "configure"
  1086. +#line 4380 "configure"
  1087. #include "confdefs.h"
  1088. #include <dlfcn.h>
  1089. @@ -4471,7 +4390,7 @@
  1090. } return (!f2 || f1);
  1091. }
  1092. EOF
  1093. -if { (eval echo configure:4475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1094. +if { (eval echo configure:4394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1095. then
  1096. glib_cv_uscore=yes
  1097. else
  1098. @@ -4496,12 +4415,12 @@
  1099. LDFLAGS="$LDFLAGS_orig"
  1100. echo $ac_n "checking for dlerror""... $ac_c" 1>&6
  1101. -echo "configure:4500: checking for dlerror" >&5
  1102. +echo "configure:4419: checking for dlerror" >&5
  1103. if eval "test \"`echo '$''{'ac_cv_func_dlerror'+set}'`\" = set"; then
  1104. echo $ac_n "(cached) $ac_c" 1>&6
  1105. else
  1106. cat > conftest.$ac_ext <<EOF
  1107. -#line 4505 "configure"
  1108. +#line 4424 "configure"
  1109. #include "confdefs.h"
  1110. /* System header to define __stub macros and hopefully few prototypes,
  1111. which can conflict with char dlerror(); below. */
  1112. @@ -4524,7 +4443,7 @@
  1113. ; return 0; }
  1114. EOF
  1115. -if { (eval echo configure:4528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1116. +if { (eval echo configure:4447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1117. rm -rf conftest*
  1118. eval "ac_cv_func_dlerror=yes"
  1119. else
  1120. @@ -4608,7 +4527,7 @@
  1121. case $host in
  1122. *-*-solaris*)
  1123. echo $ac_n "checking for cond_init in -lthread""... $ac_c" 1>&6
  1124. -echo "configure:4612: checking for cond_init in -lthread" >&5
  1125. +echo "configure:4531: checking for cond_init in -lthread" >&5
  1126. ac_lib_var=`echo thread'_'cond_init | sed 'y%./+-%__p_%'`
  1127. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1128. echo $ac_n "(cached) $ac_c" 1>&6
  1129. @@ -4616,7 +4535,7 @@
  1130. ac_save_LIBS="$LIBS"
  1131. LIBS="-lthread $LIBS"
  1132. cat > conftest.$ac_ext <<EOF
  1133. -#line 4620 "configure"
  1134. +#line 4539 "configure"
  1135. #include "confdefs.h"
  1136. /* Override any gcc2 internal prototype to avoid an error. */
  1137. /* We use char because int might match the return type of a gcc2
  1138. @@ -4627,7 +4546,7 @@
  1139. cond_init()
  1140. ; return 0; }
  1141. EOF
  1142. -if { (eval echo configure:4631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1143. +if { (eval echo configure:4550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1144. rm -rf conftest*
  1145. eval "ac_cv_lib_$ac_lib_var=yes"
  1146. else
  1147. @@ -4654,17 +4573,17 @@
  1148. if test "x$have_threads" = xnone; then
  1149. ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
  1150. echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
  1151. -echo "configure:4658: checking for pthread.h" >&5
  1152. +echo "configure:4577: checking for pthread.h" >&5
  1153. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1154. echo $ac_n "(cached) $ac_c" 1>&6
  1155. else
  1156. cat > conftest.$ac_ext <<EOF
  1157. -#line 4663 "configure"
  1158. +#line 4582 "configure"
  1159. #include "confdefs.h"
  1160. #include <pthread.h>
  1161. EOF
  1162. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1163. -{ (eval echo configure:4668: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1164. +{ (eval echo configure:4587: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1165. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1166. if test -z "$ac_err"; then
  1167. rm -rf conftest*
  1168. @@ -4690,7 +4609,7 @@
  1169. if test "x$want_threads" = xyes || test "x$want_threads" = xnspr; then
  1170. if test "x$have_threads" = xnone; then
  1171. echo $ac_n "checking for PRP_NewNakedCondVar in -lnspr21""... $ac_c" 1>&6
  1172. -echo "configure:4694: checking for PRP_NewNakedCondVar in -lnspr21" >&5
  1173. +echo "configure:4613: checking for PRP_NewNakedCondVar in -lnspr21" >&5
  1174. ac_lib_var=`echo nspr21'_'PRP_NewNakedCondVar | sed 'y%./+-%__p_%'`
  1175. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1176. echo $ac_n "(cached) $ac_c" 1>&6
  1177. @@ -4698,7 +4617,7 @@
  1178. ac_save_LIBS="$LIBS"
  1179. LIBS="-lnspr21 $LIBS"
  1180. cat > conftest.$ac_ext <<EOF
  1181. -#line 4702 "configure"
  1182. +#line 4621 "configure"
  1183. #include "confdefs.h"
  1184. /* Override any gcc2 internal prototype to avoid an error. */
  1185. /* We use char because int might match the return type of a gcc2
  1186. @@ -4709,7 +4628,7 @@
  1187. PRP_NewNakedCondVar()
  1188. ; return 0; }
  1189. EOF
  1190. -if { (eval echo configure:4713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1191. +if { (eval echo configure:4632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1192. rm -rf conftest*
  1193. eval "ac_cv_lib_$ac_lib_var=yes"
  1194. else
  1195. @@ -4733,7 +4652,7 @@
  1196. fi
  1197. echo $ac_n "checking for thread implementation""... $ac_c" 1>&6
  1198. -echo "configure:4737: checking for thread implementation" >&5
  1199. +echo "configure:4656: checking for thread implementation" >&5
  1200. if test "x$have_threads" = xnone && test "x$want_threads" != xno; then
  1201. echo "$ac_t""none available" 1>&6
  1202. @@ -4752,7 +4671,7 @@
  1203. posix)
  1204. G_THREAD_LIBS=error
  1205. echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
  1206. -echo "configure:4756: checking for pthread_attr_init in -lpthread" >&5
  1207. +echo "configure:4675: checking for pthread_attr_init in -lpthread" >&5
  1208. ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
  1209. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1210. echo $ac_n "(cached) $ac_c" 1>&6
  1211. @@ -4760,7 +4679,7 @@
  1212. ac_save_LIBS="$LIBS"
  1213. LIBS="-lpthread $LIBS"
  1214. cat > conftest.$ac_ext <<EOF
  1215. -#line 4764 "configure"
  1216. +#line 4683 "configure"
  1217. #include "confdefs.h"
  1218. /* Override any gcc2 internal prototype to avoid an error. */
  1219. /* We use char because int might match the return type of a gcc2
  1220. @@ -4771,7 +4690,7 @@
  1221. pthread_attr_init()
  1222. ; return 0; }
  1223. EOF
  1224. -if { (eval echo configure:4775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1225. +if { (eval echo configure:4694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1226. rm -rf conftest*
  1227. eval "ac_cv_lib_$ac_lib_var=yes"
  1228. else
  1229. @@ -4793,7 +4712,7 @@
  1230. if test "x$G_THREAD_LIBS" = xerror; then
  1231. echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
  1232. -echo "configure:4797: checking for pthread_attr_init in -lpthreads" >&5
  1233. +echo "configure:4716: checking for pthread_attr_init in -lpthreads" >&5
  1234. ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
  1235. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1236. echo $ac_n "(cached) $ac_c" 1>&6
  1237. @@ -4801,7 +4720,7 @@
  1238. ac_save_LIBS="$LIBS"
  1239. LIBS="-lpthreads $LIBS"
  1240. cat > conftest.$ac_ext <<EOF
  1241. -#line 4805 "configure"
  1242. +#line 4724 "configure"
  1243. #include "confdefs.h"
  1244. /* Override any gcc2 internal prototype to avoid an error. */
  1245. /* We use char because int might match the return type of a gcc2
  1246. @@ -4812,7 +4731,7 @@
  1247. pthread_attr_init()
  1248. ; return 0; }
  1249. EOF
  1250. -if { (eval echo configure:4816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1251. +if { (eval echo configure:4735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1252. rm -rf conftest*
  1253. eval "ac_cv_lib_$ac_lib_var=yes"
  1254. else
  1255. @@ -4835,7 +4754,7 @@
  1256. fi
  1257. if test "x$G_THREAD_LIBS" = xerror; then
  1258. echo $ac_n "checking for pthread_attr_init in -lthread""... $ac_c" 1>&6
  1259. -echo "configure:4839: checking for pthread_attr_init in -lthread" >&5
  1260. +echo "configure:4758: checking for pthread_attr_init in -lthread" >&5
  1261. ac_lib_var=`echo thread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
  1262. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1263. echo $ac_n "(cached) $ac_c" 1>&6
  1264. @@ -4843,7 +4762,7 @@
  1265. ac_save_LIBS="$LIBS"
  1266. LIBS="-lthread $LIBS"
  1267. cat > conftest.$ac_ext <<EOF
  1268. -#line 4847 "configure"
  1269. +#line 4766 "configure"
  1270. #include "confdefs.h"
  1271. /* Override any gcc2 internal prototype to avoid an error. */
  1272. /* We use char because int might match the return type of a gcc2
  1273. @@ -4854,7 +4773,7 @@
  1274. pthread_attr_init()
  1275. ; return 0; }
  1276. EOF
  1277. -if { (eval echo configure:4858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1278. +if { (eval echo configure:4777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1279. rm -rf conftest*
  1280. eval "ac_cv_lib_$ac_lib_var=yes"
  1281. else
  1282. @@ -4877,7 +4796,7 @@
  1283. fi
  1284. if test "x$G_THREAD_LIBS" = xerror; then
  1285. echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
  1286. -echo "configure:4881: checking for pthread_attr_init in -lc_r" >&5
  1287. +echo "configure:4800: checking for pthread_attr_init in -lc_r" >&5
  1288. ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
  1289. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1290. echo $ac_n "(cached) $ac_c" 1>&6
  1291. @@ -4885,7 +4804,7 @@
  1292. ac_save_LIBS="$LIBS"
  1293. LIBS="-lc_r $LIBS"
  1294. cat > conftest.$ac_ext <<EOF
  1295. -#line 4889 "configure"
  1296. +#line 4808 "configure"
  1297. #include "confdefs.h"
  1298. /* Override any gcc2 internal prototype to avoid an error. */
  1299. /* We use char because int might match the return type of a gcc2
  1300. @@ -4896,7 +4815,7 @@
  1301. pthread_attr_init()
  1302. ; return 0; }
  1303. EOF
  1304. -if { (eval echo configure:4900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1305. +if { (eval echo configure:4819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1306. rm -rf conftest*
  1307. eval "ac_cv_lib_$ac_lib_var=yes"
  1308. else
  1309. @@ -4919,12 +4838,12 @@
  1310. fi
  1311. if test "x$G_THREAD_LIBS" = xerror; then
  1312. echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
  1313. -echo "configure:4923: checking for pthread_attr_init" >&5
  1314. +echo "configure:4842: checking for pthread_attr_init" >&5
  1315. if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
  1316. echo $ac_n "(cached) $ac_c" 1>&6
  1317. else
  1318. cat > conftest.$ac_ext <<EOF
  1319. -#line 4928 "configure"
  1320. +#line 4847 "configure"
  1321. #include "confdefs.h"
  1322. /* System header to define __stub macros and hopefully few prototypes,
  1323. which can conflict with char pthread_attr_init(); below. */
  1324. @@ -4947,7 +4866,7 @@
  1325. ; return 0; }
  1326. EOF
  1327. -if { (eval echo configure:4951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1328. +if { (eval echo configure:4870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1329. rm -rf conftest*
  1330. eval "ac_cv_func_pthread_attr_init=yes"
  1331. else
  1332. @@ -4969,7 +4888,7 @@
  1333. fi
  1334. if test "x$G_THREAD_LIBS" = xerror; then
  1335. echo $ac_n "checking for __d10_pthread_attr_init in -lthread""... $ac_c" 1>&6
  1336. -echo "configure:4973: checking for __d10_pthread_attr_init in -lthread" >&5
  1337. +echo "configure:4892: checking for __d10_pthread_attr_init in -lthread" >&5
  1338. ac_lib_var=`echo thread'_'__d10_pthread_attr_init | sed 'y%./+-%__p_%'`
  1339. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1340. echo $ac_n "(cached) $ac_c" 1>&6
  1341. @@ -4977,7 +4896,7 @@
  1342. ac_save_LIBS="$LIBS"
  1343. LIBS="-lthread $LIBS"
  1344. cat > conftest.$ac_ext <<EOF
  1345. -#line 4981 "configure"
  1346. +#line 4900 "configure"
  1347. #include "confdefs.h"
  1348. /* Override any gcc2 internal prototype to avoid an error. */
  1349. /* We use char because int might match the return type of a gcc2
  1350. @@ -4988,7 +4907,7 @@
  1351. __d10_pthread_attr_init()
  1352. ; return 0; }
  1353. EOF
  1354. -if { (eval echo configure:4992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1355. +if { (eval echo configure:4911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1356. rm -rf conftest*
  1357. eval "ac_cv_lib_$ac_lib_var=yes"
  1358. else
  1359. @@ -5012,7 +4931,7 @@
  1360. fi
  1361. if test "x$G_THREAD_LIBS" = xerror; then
  1362. echo $ac_n "checking for __pthread_attr_init_system in -lpthread""... $ac_c" 1>&6
  1363. -echo "configure:5016: checking for __pthread_attr_init_system in -lpthread" >&5
  1364. +echo "configure:4935: checking for __pthread_attr_init_system in -lpthread" >&5
  1365. ac_lib_var=`echo pthread'_'__pthread_attr_init_system | sed 'y%./+-%__p_%'`
  1366. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1367. echo $ac_n "(cached) $ac_c" 1>&6
  1368. @@ -5020,7 +4939,7 @@
  1369. ac_save_LIBS="$LIBS"
  1370. LIBS="-lpthread $LIBS"
  1371. cat > conftest.$ac_ext <<EOF
  1372. -#line 5024 "configure"
  1373. +#line 4943 "configure"
  1374. #include "confdefs.h"
  1375. /* Override any gcc2 internal prototype to avoid an error. */
  1376. /* We use char because int might match the return type of a gcc2
  1377. @@ -5031,7 +4950,7 @@
  1378. __pthread_attr_init_system()
  1379. ; return 0; }
  1380. EOF
  1381. -if { (eval echo configure:5035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1382. +if { (eval echo configure:4954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1383. rm -rf conftest*
  1384. eval "ac_cv_lib_$ac_lib_var=yes"
  1385. else
  1386. @@ -5061,7 +4980,7 @@
  1387. solaris)
  1388. G_THREAD_LIBS=error
  1389. echo $ac_n "checking for cond_init in -lthread""... $ac_c" 1>&6
  1390. -echo "configure:5065: checking for cond_init in -lthread" >&5
  1391. +echo "configure:4984: checking for cond_init in -lthread" >&5
  1392. ac_lib_var=`echo thread'_'cond_init | sed 'y%./+-%__p_%'`
  1393. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1394. echo $ac_n "(cached) $ac_c" 1>&6
  1395. @@ -5069,7 +4988,7 @@
  1396. ac_save_LIBS="$LIBS"
  1397. LIBS="-lthread $LIBS"
  1398. cat > conftest.$ac_ext <<EOF
  1399. -#line 5073 "configure"
  1400. +#line 4992 "configure"
  1401. #include "confdefs.h"
  1402. /* Override any gcc2 internal prototype to avoid an error. */
  1403. /* We use char because int might match the return type of a gcc2
  1404. @@ -5080,7 +4999,7 @@
  1405. cond_init()
  1406. ; return 0; }
  1407. EOF
  1408. -if { (eval echo configure:5084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1409. +if { (eval echo configure:5003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1410. rm -rf conftest*
  1411. eval "ac_cv_lib_$ac_lib_var=yes"
  1412. else
  1413. @@ -5108,7 +5027,7 @@
  1414. ;;
  1415. nspr)
  1416. echo $ac_n "checking for PRP_NewNakedCondVar in -lnspr21""... $ac_c" 1>&6
  1417. -echo "configure:5112: checking for PRP_NewNakedCondVar in -lnspr21" >&5
  1418. +echo "configure:5031: checking for PRP_NewNakedCondVar in -lnspr21" >&5
  1419. ac_lib_var=`echo nspr21'_'PRP_NewNakedCondVar | sed 'y%./+-%__p_%'`
  1420. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1421. echo $ac_n "(cached) $ac_c" 1>&6
  1422. @@ -5116,7 +5035,7 @@
  1423. ac_save_LIBS="$LIBS"
  1424. LIBS="-lnspr21 $LIBS"
  1425. cat > conftest.$ac_ext <<EOF
  1426. -#line 5120 "configure"
  1427. +#line 5039 "configure"
  1428. #include "confdefs.h"
  1429. /* Override any gcc2 internal prototype to avoid an error. */
  1430. /* We use char because int might match the return type of a gcc2
  1431. @@ -5127,7 +5046,7 @@
  1432. PRP_NewNakedCondVar()
  1433. ; return 0; }
  1434. EOF
  1435. -if { (eval echo configure:5131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1436. +if { (eval echo configure:5050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1437. rm -rf conftest*
  1438. eval "ac_cv_lib_$ac_lib_var=yes"
  1439. else
  1440. @@ -5163,7 +5082,7 @@
  1441. fi
  1442. echo $ac_n "checking necessary linker options""... $ac_c" 1>&6
  1443. -echo "configure:5167: checking necessary linker options" >&5
  1444. +echo "configure:5086: checking necessary linker options" >&5
  1445. echo "$ac_t""$G_THREAD_LIBS" 1>&6
  1446. @@ -5191,7 +5110,7 @@
  1447. old_CPPFLAGS=$CPPFLAGS
  1448. CPPFLAGS="$CPPFLAGS $G_THREAD_CFLAGS"
  1449. cat > conftest.$ac_ext <<EOF
  1450. -#line 5195 "configure"
  1451. +#line 5114 "configure"
  1452. #include "confdefs.h"
  1453. #include <time.h>
  1454. EOF
  1455. @@ -5208,7 +5127,7 @@
  1456. CPPFLAGS=$old_CPPFLAGS
  1457. echo $ac_n "checking necessary compiler options""... $ac_c" 1>&6
  1458. -echo "configure:5212: checking necessary compiler options" >&5
  1459. +echo "configure:5131: checking necessary compiler options" >&5
  1460. echo "$ac_t""$G_THREAD_CFLAGS" 1>&6
  1461. else
  1462. @@ -5226,12 +5145,12 @@
  1463. for ac_func in localtime_r rand_r
  1464. do
  1465. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1466. -echo "configure:5230: checking for $ac_func" >&5
  1467. +echo "configure:5149: checking for $ac_func" >&5
  1468. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1469. echo $ac_n "(cached) $ac_c" 1>&6
  1470. else
  1471. cat > conftest.$ac_ext <<EOF
  1472. -#line 5235 "configure"
  1473. +#line 5154 "configure"
  1474. #include "confdefs.h"
  1475. /* System header to define __stub macros and hopefully few prototypes,
  1476. which can conflict with char $ac_func(); below. */
  1477. @@ -5254,7 +5173,7 @@
  1478. ; return 0; }
  1479. EOF
  1480. -if { (eval echo configure:5258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1481. +if { (eval echo configure:5177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1482. rm -rf conftest*
  1483. eval "ac_cv_func_$ac_func=yes"
  1484. else
  1485. @@ -5280,15 +5199,17 @@
  1486. if test "$ac_cv_header_pwd_h" = "yes"; then
  1487. echo $ac_n "checking for getpwuid_r""... $ac_c" 1>&6
  1488. -echo "configure:5284: checking for getpwuid_r" >&5
  1489. +echo "configure:5203: checking for getpwuid_r" >&5
  1490. if eval "test \"`echo '$''{'ac_cv_func_getpwuid_r'+set}'`\" = set"; then
  1491. echo $ac_n "(cached) $ac_c" 1>&6
  1492. else
  1493. if test "$cross_compiling" = yes; then
  1494. - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1495. + echo "configure: warning: cannot check it if cross compiling -- defaulting to yes" 1>&2
  1496. + ac_cv_func_getpwuid_r=yes
  1497. +
  1498. else
  1499. cat > conftest.$ac_ext <<EOF
  1500. -#line 5292 "configure"
  1501. +#line 5213 "configure"
  1502. #include "confdefs.h"
  1503. #include <errno.h>
  1504. int main () { char buffer[10000], *pointer;
  1505. @@ -5300,7 +5221,7 @@
  1506. sizeof (buffer), &pointer);
  1507. return errno == ENOSYS || error == ENOSYS;}
  1508. EOF
  1509. -if { (eval echo configure:5304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1510. +if { (eval echo configure:5225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1511. then
  1512. ac_cv_func_getpwuid_r=yes
  1513. else
  1514. @@ -5312,6 +5233,7 @@
  1515. rm -fr conftest*
  1516. fi
  1517. +
  1518. fi
  1519. if test "$ac_cv_func_getpwuid_r" = yes; then
  1520. @@ -5325,11 +5247,11 @@
  1521. fi
  1522. if test "$ac_cv_func_getpwuid_r" = "yes"; then
  1523. echo $ac_n "checking whether getpwuid_r is posix like""... $ac_c" 1>&6
  1524. -echo "configure:5329: checking whether getpwuid_r is posix like" >&5
  1525. +echo "configure:5251: checking whether getpwuid_r is posix like" >&5
  1526. # The signature for the POSIX version is:
  1527. # int getpwuid_r(uid_t, struct passwd *, char *, size_t, struct passwd **)
  1528. cat > conftest.$ac_ext <<EOF
  1529. -#line 5333 "configure"
  1530. +#line 5255 "configure"
  1531. #include "confdefs.h"
  1532. #include <pwd.h>
  1533. #include <sys/types.h>
  1534. @@ -5338,7 +5260,7 @@
  1535. getpwuid_r((uid_t)0, NULL, NULL, (size_t)0, NULL);
  1536. ; return 0; }
  1537. EOF
  1538. -if { (eval echo configure:5342: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1539. +if { (eval echo configure:5264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1540. rm -rf conftest*
  1541. cat >> confdefs.h <<\EOF
  1542. #define HAVE_GETPWUID_R_POSIX 1
  1543. @@ -5357,17 +5279,17 @@
  1544. if test x"$have_threads" = xposix; then
  1545. LIBS="$LIBS $G_THREAD_LIBS"
  1546. echo $ac_n "checking whether pthread_getspecific is posix like""... $ac_c" 1>&6
  1547. -echo "configure:5361: checking whether pthread_getspecific is posix like" >&5
  1548. +echo "configure:5283: checking whether pthread_getspecific is posix like" >&5
  1549. # PCThreads has pthread_getspecific(pthread_key_t, void **);
  1550. cat > conftest.$ac_ext <<EOF
  1551. -#line 5364 "configure"
  1552. +#line 5286 "configure"
  1553. #include "confdefs.h"
  1554. #include <pthread.h>
  1555. int main() {
  1556. pthread_getspecific(0,NULL);
  1557. ; return 0; }
  1558. EOF
  1559. -if { (eval echo configure:5371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1560. +if { (eval echo configure:5293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1561. rm -rf conftest*
  1562. echo "$ac_t""no" 1>&6
  1563. else
  1564. @@ -5382,20 +5304,25 @@
  1565. fi
  1566. rm -f conftest*
  1567. echo $ac_n "checking whether pthread_mutex_trylock is posix like""... $ac_c" 1>&6
  1568. -echo "configure:5386: checking whether pthread_mutex_trylock is posix like" >&5
  1569. +echo "configure:5308: checking whether pthread_mutex_trylock is posix like" >&5
  1570. # DCE Threads return 1 as success, posix 0. what a mess.
  1571. if test "$cross_compiling" = yes; then
  1572. - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1573. + echo "configure: warning: cannot check it if cross compiling -- defaulting to yes" 1>&2
  1574. + cat >> confdefs.h <<\EOF
  1575. +#define HAVE_PTHREAD_MUTEX_TRYLOCK_POSIX 1
  1576. +EOF
  1577. +
  1578. +
  1579. else
  1580. cat > conftest.$ac_ext <<EOF
  1581. -#line 5392 "configure"
  1582. +#line 5319 "configure"
  1583. #include "confdefs.h"
  1584. #include <pthread.h>
  1585. pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
  1586. int main () {
  1587. return !pthread_mutex_trylock (&mutex); }
  1588. EOF
  1589. -if { (eval echo configure:5399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1590. +if { (eval echo configure:5326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1591. then
  1592. echo "$ac_t""no" 1>&6
  1593. else
  1594. @@ -5412,13 +5339,18 @@
  1595. fi
  1596. echo $ac_n "checking whether pthread_cond_timedwait is posix like""... $ac_c" 1>&6
  1597. -echo "configure:5416: checking whether pthread_cond_timedwait is posix like" >&5
  1598. +echo "configure:5343: checking whether pthread_cond_timedwait is posix like" >&5
  1599. # DCE Threads return -1 as failure, posix ETIMEDOUT.
  1600. if test "$cross_compiling" = yes; then
  1601. - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1602. + echo "configure: warning: cannot check it if cross compiling -- defaulting to yes" 1>&2
  1603. + cat >> confdefs.h <<\EOF
  1604. +#define HAVE_PTHREAD_COND_TIMEDWAIT_POSIX 1
  1605. +EOF
  1606. +
  1607. +
  1608. else
  1609. cat > conftest.$ac_ext <<EOF
  1610. -#line 5422 "configure"
  1611. +#line 5354 "configure"
  1612. #include "confdefs.h"
  1613. #include <pthread.h>
  1614. int main () {
  1615. @@ -5432,7 +5364,7 @@
  1616. return pthread_cond_timedwait (&cond,&mutex,&tspec)
  1617. != -1;}
  1618. EOF
  1619. -if { (eval echo configure:5436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1620. +if { (eval echo configure:5368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1621. then
  1622. echo "$ac_t""no" 1>&6
  1623. else
  1624. @@ -5475,15 +5407,16 @@
  1625. case "$mutex_has_default" in
  1626. "yes")
  1627. echo $ac_n "checking size of $mutex_default_type""... $ac_c" 1>&6
  1628. -echo "configure:5479: checking size of $mutex_default_type" >&5
  1629. +echo "configure:5411: checking size of $mutex_default_type" >&5
  1630. if eval "test \"`echo '$''{'glib_cv_sizeof_gmutex'+set}'`\" = set"; then
  1631. echo $ac_n "(cached) $ac_c" 1>&6
  1632. else
  1633. if test "$cross_compiling" = yes; then
  1634. - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1635. + glib_cv_sizeof_gmutex=24
  1636. +
  1637. else
  1638. cat > conftest.$ac_ext <<EOF
  1639. -#line 5487 "configure"
  1640. +#line 5420 "configure"
  1641. #include "confdefs.h"
  1642. #include <stdio.h>
  1643. #include <$mutex_header_file>
  1644. @@ -5495,7 +5428,7 @@
  1645. exit(0);
  1646. }
  1647. EOF
  1648. -if { (eval echo configure:5499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1649. +if { (eval echo configure:5432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1650. then
  1651. glib_cv_sizeof_gmutex=`cat conftestval`
  1652. else
  1653. @@ -5515,7 +5448,7 @@
  1654. echo $ac_n "checking byte contents of $mutex_default_type""... $ac_c" 1>&6
  1655. -echo "configure:5519: checking byte contents of $mutex_default_type" >&5
  1656. +echo "configure:5452: checking byte contents of $mutex_default_type" >&5
  1657. if eval "test \"`echo '$''{'glib_cv_byte_contents_gmutex'+set}'`\" = set"; then
  1658. echo $ac_n "(cached) $ac_c" 1>&6
  1659. else
  1660. @@ -5523,7 +5456,7 @@
  1661. glib_cv_byte_contents_gmutex=0
  1662. else
  1663. cat > conftest.$ac_ext <<EOF
  1664. -#line 5527 "configure"
  1665. +#line 5460 "configure"
  1666. #include "confdefs.h"
  1667. #include <stdio.h>
  1668. #include <$mutex_header_file>
  1669. @@ -5540,7 +5473,7 @@
  1670. exit(0);
  1671. }
  1672. EOF
  1673. -if { (eval echo configure:5544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1674. +if { (eval echo configure:5477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1675. then
  1676. glib_cv_byte_contents_gmutex=`cat conftestval`
  1677. else
  1678. @@ -5576,7 +5509,7 @@
  1679. glib_nl='\n'
  1680. fi
  1681. echo $ac_n "checking system definitions for $glib_sysdef_msg""... $ac_c" 1>&6
  1682. -echo "configure:5580: checking system definitions for $glib_sysdef_msg" >&5
  1683. +echo "configure:5513: checking system definitions for $glib_sysdef_msg" >&5
  1684. cat >confrun.c <<_______EOF
  1685. #include <stdio.h>
  1686. #include <sys/types.h>
  1687. @@ -5600,14 +5533,25 @@
  1688. done
  1689. echo "return 0; }" >>confrun.c
  1690. if test "$cross_compiling" = yes; then
  1691. - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1692. + for glib_sysdef_input in POLLIN:1 POLLOUT:4 POLLPRI:2 POLLERR:8 POLLHUP:16 POLLNVAL:32 ; do
  1693. + glib_sysdef=`echo $glib_sysdef_input | sed 's/^\([^:]*\):.*$/\1/'`
  1694. + glib_default=`echo $glib_sysdef_input | sed 's/^[^:]*:\(.*\)$/\1/'`
  1695. + if test $glib_sysdef != $glib_default; then
  1696. + glib_default=" =$glib_default"
  1697. + else
  1698. + glib_default=
  1699. + fi
  1700. + echo "#define GLIB_SYSDEF_$glib_sysdef$glib_default" >>$glib_sysdefso
  1701. + done
  1702. + echo "configure: warning: cannot check it if cross compiling -- using defaults" 1>&2
  1703. +
  1704. else
  1705. cat > conftest.$ac_ext <<EOF
  1706. -#line 5607 "configure"
  1707. +#line 5551 "configure"
  1708. #include "confdefs.h"
  1709. `cat confrun.c`
  1710. EOF
  1711. -if { (eval echo configure:5611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1712. +if { (eval echo configure:5555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1713. then
  1714. echo "$ac_t""done" 1>&6
  1715. else