patch-configure 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519
  1. --- avahi-0.6.25.orig/configure 2009-04-14 03:57:18.000000000 +0200
  2. +++ avahi-0.6.25/configure 2009-06-12 20:47:01.000000000 +0200
  3. @@ -21663,272 +21663,6 @@ $as_echo "$USE_NLS" >&6; }
  4. -case "$am__api_version" in
  5. - 1.01234)
  6. - { { $as_echo "$as_me:$LINENO: error: Automake 1.5 or newer is required to use intltool" >&5
  7. -$as_echo "$as_me: error: Automake 1.5 or newer is required to use intltool" >&2;}
  8. - { (exit 1); exit 1; }; }
  9. - ;;
  10. - *)
  11. - ;;
  12. -esac
  13. -
  14. -if test -n "0.35.0"; then
  15. - { $as_echo "$as_me:$LINENO: checking for intltool >= 0.35.0" >&5
  16. -$as_echo_n "checking for intltool >= 0.35.0... " >&6; }
  17. -
  18. - INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.35.0 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
  19. - INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
  20. - INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
  21. -
  22. - { $as_echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
  23. -$as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }
  24. - test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
  25. - { { $as_echo "$as_me:$LINENO: error: Your intltool is too old. You need intltool 0.35.0 or later." >&5
  26. -$as_echo "$as_me: error: Your intltool is too old. You need intltool 0.35.0 or later." >&2;}
  27. - { (exit 1); exit 1; }; }
  28. -fi
  29. -
  30. -# Extract the first word of "intltool-update", so it can be a program name with args.
  31. -set dummy intltool-update; ac_word=$2
  32. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  33. -$as_echo_n "checking for $ac_word... " >&6; }
  34. -if test "${ac_cv_path_INTLTOOL_UPDATE+set}" = set; then
  35. - $as_echo_n "(cached) " >&6
  36. -else
  37. - case $INTLTOOL_UPDATE in
  38. - [\\/]* | ?:[\\/]*)
  39. - ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
  40. - ;;
  41. - *)
  42. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  43. -for as_dir in $PATH
  44. -do
  45. - IFS=$as_save_IFS
  46. - test -z "$as_dir" && as_dir=.
  47. - for ac_exec_ext in '' $ac_executable_extensions; do
  48. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  49. - ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
  50. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  51. - break 2
  52. - fi
  53. -done
  54. -done
  55. -IFS=$as_save_IFS
  56. -
  57. - ;;
  58. -esac
  59. -fi
  60. -INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
  61. -if test -n "$INTLTOOL_UPDATE"; then
  62. - { $as_echo "$as_me:$LINENO: result: $INTLTOOL_UPDATE" >&5
  63. -$as_echo "$INTLTOOL_UPDATE" >&6; }
  64. -else
  65. - { $as_echo "$as_me:$LINENO: result: no" >&5
  66. -$as_echo "no" >&6; }
  67. -fi
  68. -
  69. -
  70. -# Extract the first word of "intltool-merge", so it can be a program name with args.
  71. -set dummy intltool-merge; ac_word=$2
  72. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  73. -$as_echo_n "checking for $ac_word... " >&6; }
  74. -if test "${ac_cv_path_INTLTOOL_MERGE+set}" = set; then
  75. - $as_echo_n "(cached) " >&6
  76. -else
  77. - case $INTLTOOL_MERGE in
  78. - [\\/]* | ?:[\\/]*)
  79. - ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
  80. - ;;
  81. - *)
  82. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  83. -for as_dir in $PATH
  84. -do
  85. - IFS=$as_save_IFS
  86. - test -z "$as_dir" && as_dir=.
  87. - for ac_exec_ext in '' $ac_executable_extensions; do
  88. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  89. - ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
  90. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  91. - break 2
  92. - fi
  93. -done
  94. -done
  95. -IFS=$as_save_IFS
  96. -
  97. - ;;
  98. -esac
  99. -fi
  100. -INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
  101. -if test -n "$INTLTOOL_MERGE"; then
  102. - { $as_echo "$as_me:$LINENO: result: $INTLTOOL_MERGE" >&5
  103. -$as_echo "$INTLTOOL_MERGE" >&6; }
  104. -else
  105. - { $as_echo "$as_me:$LINENO: result: no" >&5
  106. -$as_echo "no" >&6; }
  107. -fi
  108. -
  109. -
  110. -# Extract the first word of "intltool-extract", so it can be a program name with args.
  111. -set dummy intltool-extract; ac_word=$2
  112. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  113. -$as_echo_n "checking for $ac_word... " >&6; }
  114. -if test "${ac_cv_path_INTLTOOL_EXTRACT+set}" = set; then
  115. - $as_echo_n "(cached) " >&6
  116. -else
  117. - case $INTLTOOL_EXTRACT in
  118. - [\\/]* | ?:[\\/]*)
  119. - ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
  120. - ;;
  121. - *)
  122. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  123. -for as_dir in $PATH
  124. -do
  125. - IFS=$as_save_IFS
  126. - test -z "$as_dir" && as_dir=.
  127. - for ac_exec_ext in '' $ac_executable_extensions; do
  128. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  129. - ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
  130. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  131. - break 2
  132. - fi
  133. -done
  134. -done
  135. -IFS=$as_save_IFS
  136. -
  137. - ;;
  138. -esac
  139. -fi
  140. -INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
  141. -if test -n "$INTLTOOL_EXTRACT"; then
  142. - { $as_echo "$as_me:$LINENO: result: $INTLTOOL_EXTRACT" >&5
  143. -$as_echo "$INTLTOOL_EXTRACT" >&6; }
  144. -else
  145. - { $as_echo "$as_me:$LINENO: result: no" >&5
  146. -$as_echo "no" >&6; }
  147. -fi
  148. -
  149. -
  150. -if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
  151. - { { $as_echo "$as_me:$LINENO: error: The intltool scripts were not found. Please install intltool." >&5
  152. -$as_echo "$as_me: error: The intltool scripts were not found. Please install intltool." >&2;}
  153. - { (exit 1); exit 1; }; }
  154. -fi
  155. -
  156. - INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
  157. -INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
  158. - INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
  159. - INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
  160. - INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
  161. - INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
  162. - INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
  163. - INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
  164. -INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
  165. - INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
  166. - INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
  167. - INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@'
  168. - INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
  169. - INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
  170. - INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
  171. - INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
  172. - INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
  173. - INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
  174. - INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
  175. -
  176. -
  177. -
  178. -
  179. -
  180. -
  181. -
  182. -
  183. -
  184. -
  185. -
  186. -
  187. -
  188. -
  189. -
  190. -
  191. -
  192. -
  193. -
  194. -
  195. -
  196. -
  197. -
  198. -
  199. -
  200. -
  201. -
  202. -
  203. -
  204. -
  205. -
  206. -
  207. -
  208. -
  209. -
  210. -
  211. -
  212. -
  213. -
  214. -
  215. -
  216. -
  217. -
  218. -
  219. -
  220. -
  221. -
  222. -
  223. -
  224. -
  225. -
  226. -
  227. -
  228. -
  229. -
  230. -
  231. -
  232. -
  233. -
  234. -
  235. -
  236. -
  237. -
  238. -
  239. -
  240. -
  241. -
  242. -
  243. -
  244. -
  245. -
  246. -
  247. -
  248. -
  249. -
  250. -
  251. -
  252. -
  253. -
  254. -
  255. -
  256. -
  257. -
  258. -
  259. -
  260. -
  261. -
  262. -
  263. -
  264. -
  265. -
  266. -
  267. -
  268. -
  269. -
  270. # Check the gettext tools to make sure they are GNU
  271. @@ -22093,243 +21827,6 @@ $as_echo "no" >&6; }
  272. fi
  273. -if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
  274. - { { $as_echo "$as_me:$LINENO: error: GNU gettext tools not found; required for intltool" >&5
  275. -$as_echo "$as_me: error: GNU gettext tools not found; required for intltool" >&2;}
  276. - { (exit 1); exit 1; }; }
  277. -fi
  278. -xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
  279. -mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
  280. -mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
  281. -if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
  282. - { { $as_echo "$as_me:$LINENO: error: GNU gettext tools not found; required for intltool" >&5
  283. -$as_echo "$as_me: error: GNU gettext tools not found; required for intltool" >&2;}
  284. - { (exit 1); exit 1; }; }
  285. -fi
  286. -
  287. -# Extract the first word of "perl", so it can be a program name with args.
  288. -set dummy perl; ac_word=$2
  289. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  290. -$as_echo_n "checking for $ac_word... " >&6; }
  291. -if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
  292. - $as_echo_n "(cached) " >&6
  293. -else
  294. - case $INTLTOOL_PERL in
  295. - [\\/]* | ?:[\\/]*)
  296. - ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
  297. - ;;
  298. - *)
  299. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  300. -for as_dir in $PATH
  301. -do
  302. - IFS=$as_save_IFS
  303. - test -z "$as_dir" && as_dir=.
  304. - for ac_exec_ext in '' $ac_executable_extensions; do
  305. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  306. - ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
  307. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  308. - break 2
  309. - fi
  310. -done
  311. -done
  312. -IFS=$as_save_IFS
  313. -
  314. - ;;
  315. -esac
  316. -fi
  317. -INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
  318. -if test -n "$INTLTOOL_PERL"; then
  319. - { $as_echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
  320. -$as_echo "$INTLTOOL_PERL" >&6; }
  321. -else
  322. - { $as_echo "$as_me:$LINENO: result: no" >&5
  323. -$as_echo "no" >&6; }
  324. -fi
  325. -
  326. -
  327. -if test -z "$INTLTOOL_PERL"; then
  328. - { { $as_echo "$as_me:$LINENO: error: perl not found" >&5
  329. -$as_echo "$as_me: error: perl not found" >&2;}
  330. - { (exit 1); exit 1; }; }
  331. -fi
  332. -{ $as_echo "$as_me:$LINENO: checking for perl >= 5.8.1" >&5
  333. -$as_echo_n "checking for perl >= 5.8.1... " >&6; }
  334. -$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
  335. -if test $? -ne 0; then
  336. - { { $as_echo "$as_me:$LINENO: error: perl 5.8.1 is required for intltool" >&5
  337. -$as_echo "$as_me: error: perl 5.8.1 is required for intltool" >&2;}
  338. - { (exit 1); exit 1; }; }
  339. -else
  340. - IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
  341. - { $as_echo "$as_me:$LINENO: result: $IT_PERL_VERSION" >&5
  342. -$as_echo "$IT_PERL_VERSION" >&6; }
  343. -fi
  344. -if test "x" != "xno-xml"; then
  345. - { $as_echo "$as_me:$LINENO: checking for XML::Parser" >&5
  346. -$as_echo_n "checking for XML::Parser... " >&6; }
  347. - if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
  348. - { $as_echo "$as_me:$LINENO: result: ok" >&5
  349. -$as_echo "ok" >&6; }
  350. - else
  351. - { { $as_echo "$as_me:$LINENO: error: XML::Parser perl module is required for intltool" >&5
  352. -$as_echo "$as_me: error: XML::Parser perl module is required for intltool" >&2;}
  353. - { (exit 1); exit 1; }; }
  354. - fi
  355. -fi
  356. -
  357. -# Substitute ALL_LINGUAS so we can use it in po/Makefile
  358. -
  359. -
  360. -# Set DATADIRNAME correctly if it is not set yet
  361. -# (copied from glib-gettext.m4)
  362. -if test -z "$DATADIRNAME"; then
  363. - cat >conftest.$ac_ext <<_ACEOF
  364. -/* confdefs.h. */
  365. -_ACEOF
  366. -cat confdefs.h >>conftest.$ac_ext
  367. -cat >>conftest.$ac_ext <<_ACEOF
  368. -/* end confdefs.h. */
  369. -
  370. -int
  371. -main ()
  372. -{
  373. -extern int _nl_msg_cat_cntr;
  374. - return _nl_msg_cat_cntr
  375. - ;
  376. - return 0;
  377. -}
  378. -_ACEOF
  379. -rm -f conftest.$ac_objext conftest$ac_exeext
  380. -if { (ac_try="$ac_link"
  381. -case "(($ac_try" in
  382. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  383. - *) ac_try_echo=$ac_try;;
  384. -esac
  385. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  386. -$as_echo "$ac_try_echo") >&5
  387. - (eval "$ac_link") 2>conftest.er1
  388. - ac_status=$?
  389. - grep -v '^ *+' conftest.er1 >conftest.err
  390. - rm -f conftest.er1
  391. - cat conftest.err >&5
  392. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  393. - (exit $ac_status); } && {
  394. - test -z "$ac_c_werror_flag" ||
  395. - test ! -s conftest.err
  396. - } && test -s conftest$ac_exeext && {
  397. - test "$cross_compiling" = yes ||
  398. - $as_test_x conftest$ac_exeext
  399. - }; then
  400. - DATADIRNAME=share
  401. -else
  402. - $as_echo "$as_me: failed program was:" >&5
  403. -sed 's/^/| /' conftest.$ac_ext >&5
  404. -
  405. - case $host in
  406. - *-*-solaris*)
  407. - { $as_echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
  408. -$as_echo_n "checking for bind_textdomain_codeset... " >&6; }
  409. -if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
  410. - $as_echo_n "(cached) " >&6
  411. -else
  412. - cat >conftest.$ac_ext <<_ACEOF
  413. -/* confdefs.h. */
  414. -_ACEOF
  415. -cat confdefs.h >>conftest.$ac_ext
  416. -cat >>conftest.$ac_ext <<_ACEOF
  417. -/* end confdefs.h. */
  418. -/* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
  419. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  420. -#define bind_textdomain_codeset innocuous_bind_textdomain_codeset
  421. -
  422. -/* System header to define __stub macros and hopefully few prototypes,
  423. - which can conflict with char bind_textdomain_codeset (); below.
  424. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  425. - <limits.h> exists even on freestanding compilers. */
  426. -
  427. -#ifdef __STDC__
  428. -# include <limits.h>
  429. -#else
  430. -# include <assert.h>
  431. -#endif
  432. -
  433. -#undef bind_textdomain_codeset
  434. -
  435. -/* Override any GCC internal prototype to avoid an error.
  436. - Use char because int might match the return type of a GCC
  437. - builtin and then its argument prototype would still apply. */
  438. -#ifdef __cplusplus
  439. -extern "C"
  440. -#endif
  441. -char bind_textdomain_codeset ();
  442. -/* The GNU C library defines this for functions which it implements
  443. - to always fail with ENOSYS. Some functions are actually named
  444. - something starting with __ and the normal name is an alias. */
  445. -#if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
  446. -choke me
  447. -#endif
  448. -
  449. -int
  450. -main ()
  451. -{
  452. -return bind_textdomain_codeset ();
  453. - ;
  454. - return 0;
  455. -}
  456. -_ACEOF
  457. -rm -f conftest.$ac_objext conftest$ac_exeext
  458. -if { (ac_try="$ac_link"
  459. -case "(($ac_try" in
  460. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  461. - *) ac_try_echo=$ac_try;;
  462. -esac
  463. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  464. -$as_echo "$ac_try_echo") >&5
  465. - (eval "$ac_link") 2>conftest.er1
  466. - ac_status=$?
  467. - grep -v '^ *+' conftest.er1 >conftest.err
  468. - rm -f conftest.er1
  469. - cat conftest.err >&5
  470. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  471. - (exit $ac_status); } && {
  472. - test -z "$ac_c_werror_flag" ||
  473. - test ! -s conftest.err
  474. - } && test -s conftest$ac_exeext && {
  475. - test "$cross_compiling" = yes ||
  476. - $as_test_x conftest$ac_exeext
  477. - }; then
  478. - ac_cv_func_bind_textdomain_codeset=yes
  479. -else
  480. - $as_echo "$as_me: failed program was:" >&5
  481. -sed 's/^/| /' conftest.$ac_ext >&5
  482. -
  483. - ac_cv_func_bind_textdomain_codeset=no
  484. -fi
  485. -
  486. -rm -rf conftest.dSYM
  487. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  488. - conftest$ac_exeext conftest.$ac_ext
  489. -fi
  490. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
  491. -$as_echo "$ac_cv_func_bind_textdomain_codeset" >&6; }
  492. -if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then
  493. - DATADIRNAME=share
  494. -else
  495. - DATADIRNAME=lib
  496. -fi
  497. -
  498. - ;;
  499. - *)
  500. - DATADIRNAME=lib
  501. - ;;
  502. - esac
  503. -fi
  504. -
  505. -rm -rf conftest.dSYM
  506. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  507. - conftest$ac_exeext conftest.$ac_ext
  508. -fi
  509. -