Codebase list gnomad2 / 338fb50
Imported Upstream version 2.9.5 Alessio Treglia 12 years ago
33 changed file(s) with 4248 addition(s) and 9888 deletion(s). Raw diff Collapse all Expand all
0 2009-02-18 Linus Walleij <triad@df.lth.se>
1
2 * src/tagfile.c: implement the public bug fix from:
3 http://blog.steve.org.uk/what_can_you_do__sparta_will_need_sons_.html
4 cheers!
5
06 2009-01-22 Linus Walleij <triad@df.lth.se>
17
28 * src/filesystem.c: finally (hopefully) nailed the bug that
0 # Makefile.in generated by automake 1.10.1 from Makefile.am.
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
11 # @configure_input@
22
33 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
56 # This Makefile.in is free software; the Free Software Foundation
67 # gives unlimited permission to copy and/or distribute it,
78 # with or without modifications, as long as this notice is preserved.
1516
1617 VPATH = @srcdir@
1718 pkgdatadir = $(datadir)/@PACKAGE@
19 pkgincludedir = $(includedir)/@PACKAGE@
1820 pkglibdir = $(libdir)/@PACKAGE@
19 pkgincludedir = $(includedir)/@PACKAGE@
21 pkglibexecdir = $(libexecdir)/@PACKAGE@
2022 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
2123 install_sh_DATA = $(install_sh) -c -m 644
2224 install_sh_PROGRAM = $(install_sh) -c
3234 subdir = .
3335 DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
3436 $(srcdir)/Makefile.in $(top_srcdir)/configure AUTHORS COPYING \
35 ChangeLog INSTALL NEWS TODO config.guess config.sub depcomp \
36 install-sh missing mkinstalldirs
37 ChangeLog INSTALL NEWS TODO depcomp install-sh missing \
38 mkinstalldirs
3739 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
3840 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
3941 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
4244 configure.lineno config.status.lineno
4345 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
4446 CONFIG_CLEAN_FILES =
47 CONFIG_CLEAN_VPATH_FILES =
4548 SOURCES =
4649 DIST_SOURCES =
4750 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
5154 install-pdf-recursive install-ps-recursive install-recursive \
5255 installcheck-recursive installdirs-recursive pdf-recursive \
5356 ps-recursive uninstall-recursive
57 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
58 am__vpath_adj = case $$p in \
59 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
60 *) f=$$p;; \
61 esac;
62 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
63 am__install_max = 40
64 am__nobase_strip_setup = \
65 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
66 am__nobase_strip = \
67 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
68 am__nobase_list = $(am__nobase_strip_setup); \
69 for p in $$list; do echo "$$p $$p"; done | \
70 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
71 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
72 if (++n[$$2] == $(am__install_max)) \
73 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
74 END { for (dir in files) print dir, files[dir] }'
75 am__base_list = \
76 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
77 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
5478 man1dir = $(mandir)/man1
5579 am__installdirs = "$(DESTDIR)$(man1dir)" \
5680 "$(DESTDIR)$(applicationsdir)" "$(DESTDIR)$(desktopdir)" \
5781 "$(DESTDIR)$(icondir)"
5882 NROFF = nroff
5983 MANS = $(man_MANS)
60 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
61 am__vpath_adj = case $$p in \
62 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
63 *) f=$$p;; \
64 esac;
65 am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
66 applicationsDATA_INSTALL = $(INSTALL_DATA)
67 desktopDATA_INSTALL = $(INSTALL_DATA)
68 iconDATA_INSTALL = $(INSTALL_DATA)
6984 DATA = $(applications_DATA) $(desktop_DATA) $(icon_DATA)
7085 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
7186 distclean-recursive maintainer-clean-recursive
87 AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
88 $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
89 distdir dist dist-all distcheck
7290 ETAGS = etags
7391 CTAGS = ctags
7492 DIST_SUBDIRS = $(SUBDIRS)
7694 distdir = $(PACKAGE)-$(VERSION)
7795 top_distdir = $(distdir)
7896 am__remove_distdir = \
79 { test ! -d $(distdir) \
80 || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
81 && rm -fr $(distdir); }; }
97 { test ! -d "$(distdir)" \
98 || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
99 && rm -fr "$(distdir)"; }; }
100 am__relativize = \
101 dir0=`pwd`; \
102 sed_first='s,^\([^/]*\)/.*$$,\1,'; \
103 sed_rest='s,^[^/]*/*,,'; \
104 sed_last='s,^.*/\([^/]*\)$$,\1,'; \
105 sed_butlast='s,/*[^/]*$$,,'; \
106 while test -n "$$dir1"; do \
107 first=`echo "$$dir1" | sed -e "$$sed_first"`; \
108 if test "$$first" != "."; then \
109 if test "$$first" = ".."; then \
110 dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
111 dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
112 else \
113 first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
114 if test "$$first2" = "$$first"; then \
115 dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
116 else \
117 dir2="../$$dir2"; \
118 fi; \
119 dir0="$$dir0"/"$$first"; \
120 fi; \
121 fi; \
122 dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
123 done; \
124 reldir="$$dir2"
82125 DIST_ARCHIVES = $(distdir).tar.gz
83126 GZIP_ENV = --best
84127 distuninstallcheck_listfiles = find . -type f -print
99142 CPPFLAGS = @CPPFLAGS@
100143 CYGPATH_W = @CYGPATH_W@
101144 DATADIRNAME = @DATADIRNAME@
102 DBUSGLIB_CFLAGS = @DBUSGLIB_CFLAGS@
103 DBUSGLIB_LIBS = @DBUSGLIB_LIBS@
104145 DEFS = @DEFS@
105146 DEPDIR = @DEPDIR@
106147 ECHO_C = @ECHO_C@
111152 GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
112153 GMOFILES = @GMOFILES@
113154 GMSGFMT = @GMSGFMT@
114 GNOMEUI_CFLAGS = @GNOMEUI_CFLAGS@
115 GNOMEUI_LIBS = @GNOMEUI_LIBS@
116155 GN_CFLAGS = @GN_CFLAGS@
117156 GN_LIBS = @GN_LIBS@
118157 GREP = @GREP@
119 HAL_CFLAGS = @HAL_CFLAGS@
120 HAL_LIBS = @HAL_LIBS@
158 GUDEV_CFLAGS = @GUDEV_CFLAGS@
159 GUDEV_LIBS = @GUDEV_LIBS@
121160 INSTALL = @INSTALL@
122161 INSTALL_DATA = @INSTALL_DATA@
123162 INSTALL_PROGRAM = @INSTALL_PROGRAM@
125164 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
126165 INSTOBJEXT = @INSTOBJEXT@
127166 INTLLIBS = @INTLLIBS@
128 INTLTOOL_CAVES_RULE = @INTLTOOL_CAVES_RULE@
129 INTLTOOL_DESKTOP_RULE = @INTLTOOL_DESKTOP_RULE@
130 INTLTOOL_DIRECTORY_RULE = @INTLTOOL_DIRECTORY_RULE@
131167 INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
132 INTLTOOL_KBD_RULE = @INTLTOOL_KBD_RULE@
133 INTLTOOL_KEYS_RULE = @INTLTOOL_KEYS_RULE@
134168 INTLTOOL_MERGE = @INTLTOOL_MERGE@
135 INTLTOOL_OAF_RULE = @INTLTOOL_OAF_RULE@
136169 INTLTOOL_PERL = @INTLTOOL_PERL@
137 INTLTOOL_POLICY_RULE = @INTLTOOL_POLICY_RULE@
138 INTLTOOL_PONG_RULE = @INTLTOOL_PONG_RULE@
139 INTLTOOL_PROP_RULE = @INTLTOOL_PROP_RULE@
140 INTLTOOL_SCHEMAS_RULE = @INTLTOOL_SCHEMAS_RULE@
141 INTLTOOL_SERVER_RULE = @INTLTOOL_SERVER_RULE@
142 INTLTOOL_SERVICE_RULE = @INTLTOOL_SERVICE_RULE@
143 INTLTOOL_SHEET_RULE = @INTLTOOL_SHEET_RULE@
144 INTLTOOL_SOUNDLIST_RULE = @INTLTOOL_SOUNDLIST_RULE@
145 INTLTOOL_THEME_RULE = @INTLTOOL_THEME_RULE@
146 INTLTOOL_UI_RULE = @INTLTOOL_UI_RULE@
147170 INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
148 INTLTOOL_XAM_RULE = @INTLTOOL_XAM_RULE@
149 INTLTOOL_XML_NOMERGE_RULE = @INTLTOOL_XML_NOMERGE_RULE@
150 INTLTOOL_XML_RULE = @INTLTOOL_XML_RULE@
151171 LDFLAGS = @LDFLAGS@
152172 LIBOBJS = @LIBOBJS@
153173 LIBS = @LIBS@
167187 PACKAGE_NAME = @PACKAGE_NAME@
168188 PACKAGE_STRING = @PACKAGE_STRING@
169189 PACKAGE_TARNAME = @PACKAGE_TARNAME@
190 PACKAGE_URL = @PACKAGE_URL@
170191 PACKAGE_VERSION = @PACKAGE_VERSION@
171192 PATH_SEPARATOR = @PATH_SEPARATOR@
172193 PKG_CONFIG = @PKG_CONFIG@
194 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
195 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
173196 POFILES = @POFILES@
174197 POSUB = @POSUB@
175198 PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@
267290 @for dep in $?; do \
268291 case '$(am__configure_deps)' in \
269292 *$$dep*) \
270 echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \
271 cd $(srcdir) && $(AUTOMAKE) --gnu \
293 echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \
294 $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \
272295 && exit 0; \
273296 exit 1;; \
274297 esac; \
275298 done; \
276 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
277 cd $(top_srcdir) && \
278 $(AUTOMAKE) --gnu Makefile
299 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
300 $(am__cd) $(top_srcdir) && \
301 $(AUTOMAKE) --gnu Makefile
279302 .PRECIOUS: Makefile
280303 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
281304 @case '$?' in \
291314 $(SHELL) ./config.status --recheck
292315
293316 $(top_srcdir)/configure: $(am__configure_deps)
294 cd $(srcdir) && $(AUTOCONF)
317 $(am__cd) $(srcdir) && $(AUTOCONF)
295318 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
296 cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
297 install-man1: $(man1_MANS) $(man_MANS)
319 $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
320 $(am__aclocal_m4_deps):
321 install-man1: $(man_MANS)
298322 @$(NORMAL_INSTALL)
299323 test -z "$(man1dir)" || $(MKDIR_P) "$(DESTDIR)$(man1dir)"
300 @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \
301 l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
302 for i in $$l2; do \
303 case "$$i" in \
304 *.1*) list="$$list $$i" ;; \
305 esac; \
324 @list=''; test -n "$(man1dir)" || exit 0; \
325 { for i in $$list; do echo "$$i"; done; \
326 l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
327 sed -n '/\.1[a-z]*$$/p'; \
328 } | while read p; do \
329 if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
330 echo "$$d$$p"; echo "$$p"; \
331 done | \
332 sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
333 -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \
334 sed 'N;N;s,\n, ,g' | { \
335 list=; while read file base inst; do \
336 if test "$$base" = "$$inst"; then list="$$list $$file"; else \
337 echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \
338 $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \
339 fi; \
306340 done; \
307 for i in $$list; do \
308 if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
309 else file=$$i; fi; \
310 ext=`echo $$i | sed -e 's/^.*\\.//'`; \
311 case "$$ext" in \
312 1*) ;; \
313 *) ext='1' ;; \
314 esac; \
315 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
316 inst=`echo $$inst | sed -e 's/^.*\///'`; \
317 inst=`echo $$inst | sed '$(transform)'`.$$ext; \
318 echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \
319 $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst"; \
320 done
341 for i in $$list; do echo "$$i"; done | $(am__base_list) | \
342 while read files; do \
343 test -z "$$files" || { \
344 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \
345 $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \
346 done; }
347
321348 uninstall-man1:
322349 @$(NORMAL_UNINSTALL)
323 @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \
324 l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
325 for i in $$l2; do \
326 case "$$i" in \
327 *.1*) list="$$list $$i" ;; \
328 esac; \
329 done; \
330 for i in $$list; do \
331 ext=`echo $$i | sed -e 's/^.*\\.//'`; \
332 case "$$ext" in \
333 1*) ;; \
334 *) ext='1' ;; \
335 esac; \
336 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
337 inst=`echo $$inst | sed -e 's/^.*\///'`; \
338 inst=`echo $$inst | sed '$(transform)'`.$$ext; \
339 echo " rm -f '$(DESTDIR)$(man1dir)/$$inst'"; \
340 rm -f "$(DESTDIR)$(man1dir)/$$inst"; \
341 done
350 @list=''; test -n "$(man1dir)" || exit 0; \
351 files=`{ for i in $$list; do echo "$$i"; done; \
352 l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
353 sed -n '/\.1[a-z]*$$/p'; \
354 } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
355 -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
356 test -z "$$files" || { \
357 echo " ( cd '$(DESTDIR)$(man1dir)' && rm -f" $$files ")"; \
358 cd "$(DESTDIR)$(man1dir)" && rm -f $$files; }
342359 install-applicationsDATA: $(applications_DATA)
343360 @$(NORMAL_INSTALL)
344361 test -z "$(applicationsdir)" || $(MKDIR_P) "$(DESTDIR)$(applicationsdir)"
345 @list='$(applications_DATA)'; for p in $$list; do \
362 @list='$(applications_DATA)'; test -n "$(applicationsdir)" || list=; \
363 for p in $$list; do \
346364 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
347 f=$(am__strip_dir) \
348 echo " $(applicationsDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(applicationsdir)/$$f'"; \
349 $(applicationsDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(applicationsdir)/$$f"; \
365 echo "$$d$$p"; \
366 done | $(am__base_list) | \
367 while read files; do \
368 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(applicationsdir)'"; \
369 $(INSTALL_DATA) $$files "$(DESTDIR)$(applicationsdir)" || exit $$?; \
350370 done
351371
352372 uninstall-applicationsDATA:
353373 @$(NORMAL_UNINSTALL)
354 @list='$(applications_DATA)'; for p in $$list; do \
355 f=$(am__strip_dir) \
356 echo " rm -f '$(DESTDIR)$(applicationsdir)/$$f'"; \
357 rm -f "$(DESTDIR)$(applicationsdir)/$$f"; \
358 done
374 @list='$(applications_DATA)'; test -n "$(applicationsdir)" || list=; \
375 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
376 test -n "$$files" || exit 0; \
377 echo " ( cd '$(DESTDIR)$(applicationsdir)' && rm -f" $$files ")"; \
378 cd "$(DESTDIR)$(applicationsdir)" && rm -f $$files
359379 install-desktopDATA: $(desktop_DATA)
360380 @$(NORMAL_INSTALL)
361381 test -z "$(desktopdir)" || $(MKDIR_P) "$(DESTDIR)$(desktopdir)"
362 @list='$(desktop_DATA)'; for p in $$list; do \
382 @list='$(desktop_DATA)'; test -n "$(desktopdir)" || list=; \
383 for p in $$list; do \
363384 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
364 f=$(am__strip_dir) \
365 echo " $(desktopDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(desktopdir)/$$f'"; \
366 $(desktopDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(desktopdir)/$$f"; \
385 echo "$$d$$p"; \
386 done | $(am__base_list) | \
387 while read files; do \
388 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(desktopdir)'"; \
389 $(INSTALL_DATA) $$files "$(DESTDIR)$(desktopdir)" || exit $$?; \
367390 done
368391
369392 uninstall-desktopDATA:
370393 @$(NORMAL_UNINSTALL)
371 @list='$(desktop_DATA)'; for p in $$list; do \
372 f=$(am__strip_dir) \
373 echo " rm -f '$(DESTDIR)$(desktopdir)/$$f'"; \
374 rm -f "$(DESTDIR)$(desktopdir)/$$f"; \
375 done
394 @list='$(desktop_DATA)'; test -n "$(desktopdir)" || list=; \
395 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
396 test -n "$$files" || exit 0; \
397 echo " ( cd '$(DESTDIR)$(desktopdir)' && rm -f" $$files ")"; \
398 cd "$(DESTDIR)$(desktopdir)" && rm -f $$files
376399 install-iconDATA: $(icon_DATA)
377400 @$(NORMAL_INSTALL)
378401 test -z "$(icondir)" || $(MKDIR_P) "$(DESTDIR)$(icondir)"
379 @list='$(icon_DATA)'; for p in $$list; do \
402 @list='$(icon_DATA)'; test -n "$(icondir)" || list=; \
403 for p in $$list; do \
380404 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
381 f=$(am__strip_dir) \
382 echo " $(iconDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(icondir)/$$f'"; \
383 $(iconDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(icondir)/$$f"; \
405 echo "$$d$$p"; \
406 done | $(am__base_list) | \
407 while read files; do \
408 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(icondir)'"; \
409 $(INSTALL_DATA) $$files "$(DESTDIR)$(icondir)" || exit $$?; \
384410 done
385411
386412 uninstall-iconDATA:
387413 @$(NORMAL_UNINSTALL)
388 @list='$(icon_DATA)'; for p in $$list; do \
389 f=$(am__strip_dir) \
390 echo " rm -f '$(DESTDIR)$(icondir)/$$f'"; \
391 rm -f "$(DESTDIR)$(icondir)/$$f"; \
392 done
414 @list='$(icon_DATA)'; test -n "$(icondir)" || list=; \
415 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
416 test -n "$$files" || exit 0; \
417 echo " ( cd '$(DESTDIR)$(icondir)' && rm -f" $$files ")"; \
418 cd "$(DESTDIR)$(icondir)" && rm -f $$files
393419
394420 # This directory's subdirectories are mostly independent; you can cd
395421 # into them and run `make' without going through this Makefile.
398424 # (which will cause the Makefiles to be regenerated when you run `make');
399425 # (2) otherwise, pass the desired values on the `make' command line.
400426 $(RECURSIVE_TARGETS):
401 @failcom='exit 1'; \
427 @fail= failcom='exit 1'; \
402428 for f in x $$MAKEFLAGS; do \
403429 case $$f in \
404430 *=* | --[!k]*);; \
415441 else \
416442 local_target="$$target"; \
417443 fi; \
418 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
444 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
419445 || eval $$failcom; \
420446 done; \
421447 if test "$$dot_seen" = "no"; then \
423449 fi; test -z "$$fail"
424450
425451 $(RECURSIVE_CLEAN_TARGETS):
426 @failcom='exit 1'; \
452 @fail= failcom='exit 1'; \
427453 for f in x $$MAKEFLAGS; do \
428454 case $$f in \
429455 *=* | --[!k]*);; \
449475 else \
450476 local_target="$$target"; \
451477 fi; \
452 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
478 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
453479 || eval $$failcom; \
454480 done && test -z "$$fail"
455481 tags-recursive:
456482 list='$(SUBDIRS)'; for subdir in $$list; do \
457 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
483 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
458484 done
459485 ctags-recursive:
460486 list='$(SUBDIRS)'; for subdir in $$list; do \
461 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
487 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
462488 done
463489
464490 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
466492 unique=`for i in $$list; do \
467493 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
468494 done | \
469 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
495 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
470496 END { if (nonempty) { for (i in files) print i; }; }'`; \
471497 mkid -fID $$unique
472498 tags: TAGS
473499
474500 TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
475501 $(TAGS_FILES) $(LISP)
476 tags=; \
502 set x; \
477503 here=`pwd`; \
478504 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
479505 include_option=--etags-include; \
485511 list='$(SUBDIRS)'; for subdir in $$list; do \
486512 if test "$$subdir" = .; then :; else \
487513 test ! -f $$subdir/TAGS || \
488 tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
514 set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
489515 fi; \
490516 done; \
491517 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
494520 done | \
495521 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
496522 END { if (nonempty) { for (i in files) print i; }; }'`; \
497 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
523 shift; \
524 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
498525 test -n "$$unique" || unique=$$empty_fix; \
499 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
500 $$tags $$unique; \
526 if test $$# -gt 0; then \
527 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
528 "$$@" $$unique; \
529 else \
530 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
531 $$unique; \
532 fi; \
501533 fi
502534 ctags: CTAGS
503535 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
504536 $(TAGS_FILES) $(LISP)
505 tags=; \
506537 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
507538 unique=`for i in $$list; do \
508539 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
509540 done | \
510541 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
511542 END { if (nonempty) { for (i in files) print i; }; }'`; \
512 test -z "$(CTAGS_ARGS)$$tags$$unique" \
543 test -z "$(CTAGS_ARGS)$$unique" \
513544 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
514 $$tags $$unique
545 $$unique
515546
516547 GTAGS:
517548 here=`$(am__cd) $(top_builddir) && pwd` \
518 && cd $(top_srcdir) \
519 && gtags -i $(GTAGS_ARGS) $$here
549 && $(am__cd) $(top_srcdir) \
550 && gtags -i $(GTAGS_ARGS) "$$here"
520551
521552 distclean-tags:
522553 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
523554
524555 distdir: $(DISTFILES)
525 $(am__remove_distdir)
526 test -d $(distdir) || mkdir $(distdir)
556 @list='$(MANS)'; if test -n "$$list"; then \
557 list=`for p in $$list; do \
558 if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
559 if test -f "$$d$$p"; then echo "$$d$$p"; else :; fi; done`; \
560 if test -n "$$list" && \
561 grep 'ab help2man is required to generate this page' $$list >/dev/null; then \
562 echo "error: found man pages containing the \`missing help2man' replacement text:" >&2; \
563 grep -l 'ab help2man is required to generate this page' $$list | sed 's/^/ /' >&2; \
564 echo " to fix them, install help2man, remove and regenerate the man pages;" >&2; \
565 echo " typically \`make maintainer-clean' will remove them" >&2; \
566 exit 1; \
567 else :; fi; \
568 else :; fi
569 $(am__remove_distdir)
570 test -d "$(distdir)" || mkdir "$(distdir)"
527571 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
528572 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
529573 list='$(DISTFILES)'; \
539583 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
540584 if test -d $$d/$$file; then \
541585 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
586 if test -d "$(distdir)/$$file"; then \
587 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
588 fi; \
542589 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
543 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
590 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
591 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
544592 fi; \
545 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
593 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
546594 else \
547 test -f $(distdir)/$$file \
548 || cp -p $$d/$$file $(distdir)/$$file \
595 test -f "$(distdir)/$$file" \
596 || cp -p $$d/$$file "$(distdir)/$$file" \
549597 || exit 1; \
550598 fi; \
551599 done
552 list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
600 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
553601 if test "$$subdir" = .; then :; else \
554602 test -d "$(distdir)/$$subdir" \
555603 || $(MKDIR_P) "$(distdir)/$$subdir" \
556604 || exit 1; \
557 distdir=`$(am__cd) $(distdir) && pwd`; \
558 top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
559 (cd $$subdir && \
605 fi; \
606 done
607 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
608 if test "$$subdir" = .; then :; else \
609 dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
610 $(am__relativize); \
611 new_distdir=$$reldir; \
612 dir1=$$subdir; dir2="$(top_distdir)"; \
613 $(am__relativize); \
614 new_top_distdir=$$reldir; \
615 echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
616 echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
617 ($(am__cd) $$subdir && \
560618 $(MAKE) $(AM_MAKEFLAGS) \
561 top_distdir="$$top_distdir" \
562 distdir="$$distdir/$$subdir" \
619 top_distdir="$$new_top_distdir" \
620 distdir="$$new_distdir" \
563621 am__remove_distdir=: \
564622 am__skip_length_check=: \
623 am__skip_mode_fix=: \
565624 distdir) \
566625 || exit 1; \
567626 fi; \
568627 done
569 -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
628 -test -n "$(am__skip_mode_fix)" \
629 || find "$(distdir)" -type d ! -perm -755 \
630 -exec chmod u+rwx,go+rx {} \; -o \
570631 ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
571632 ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
572633 ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
573 || chmod -R a+r $(distdir)
634 || chmod -R a+r "$(distdir)"
574635 dist-gzip: distdir
575636 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
576637 $(am__remove_distdir)
581642
582643 dist-lzma: distdir
583644 tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
645 $(am__remove_distdir)
646
647 dist-xz: distdir
648 tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
584649 $(am__remove_distdir)
585650
586651 dist-tarZ: distdir
606671 distcheck: dist
607672 case '$(DIST_ARCHIVES)' in \
608673 *.tar.gz*) \
609 GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
674 GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
610675 *.tar.bz2*) \
611 bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
676 bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
612677 *.tar.lzma*) \
613 unlzma -c $(distdir).tar.lzma | $(am__untar) ;;\
678 lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
679 *.tar.xz*) \
680 xz -dc $(distdir).tar.xz | $(am__untar) ;;\
614681 *.tar.Z*) \
615682 uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
616683 *.shar.gz*) \
617 GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
684 GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
618685 *.zip*) \
619686 unzip $(distdir).zip ;;\
620687 esac
622689 mkdir $(distdir)/_build
623690 mkdir $(distdir)/_inst
624691 chmod a-w $(distdir)
692 test -d $(distdir)/_build || exit 0; \
625693 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
626694 && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
627 && cd $(distdir)/_build \
695 && am__cwd=`pwd` \
696 && $(am__cd) $(distdir)/_build \
628697 && ../configure --srcdir=.. --prefix="$$dc_install_base" \
629698 $(DISTCHECK_CONFIGURE_FLAGS) \
630699 && $(MAKE) $(AM_MAKEFLAGS) \
646715 && rm -rf "$$dc_destdir" \
647716 && $(MAKE) $(AM_MAKEFLAGS) dist \
648717 && rm -rf $(DIST_ARCHIVES) \
649 && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
718 && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
719 && cd "$$am__cwd" \
720 || exit 1
650721 $(am__remove_distdir)
651722 @(echo "$(distdir) archives ready for distribution: "; \
652723 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
653724 sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
654725 distuninstallcheck:
655 @cd $(distuninstallcheck_dir) \
726 @$(am__cd) '$(distuninstallcheck_dir)' \
656727 && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
657728 || { echo "ERROR: files left after uninstall:" ; \
658729 if test -n "$(DESTDIR)"; then \
697768
698769 distclean-generic:
699770 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
771 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
700772 -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
701773
702774 maintainer-clean-generic:
717789
718790 html: html-recursive
719791
792 html-am:
793
720794 info: info-recursive
721795
722796 info-am:
726800
727801 install-dvi: install-dvi-recursive
728802
803 install-dvi-am:
804
729805 install-exec-am:
730806
731807 install-html: install-html-recursive
732808
809 install-html-am:
810
733811 install-info: install-info-recursive
734812
813 install-info-am:
814
735815 install-man: install-man1
736816
737817 install-pdf: install-pdf-recursive
738818
819 install-pdf-am:
820
739821 install-ps: install-ps-recursive
822
823 install-ps-am:
740824
741825 installcheck-am:
742826
763847
764848 uninstall-man: uninstall-man1
765849
766 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
767 install-strip
850 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \
851 install-am install-strip tags-recursive
768852
769853 .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
770854 all all-am am--refresh check check-am clean clean-generic \
771855 ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \
772 dist-lzma dist-shar dist-tarZ dist-zip distcheck distclean \
773 distclean-generic distclean-tags distcleancheck distdir \
774 distuninstallcheck dvi dvi-am html html-am info info-am \
775 install install-am install-applicationsDATA install-data \
776 install-data-am install-desktopDATA install-dvi install-dvi-am \
777 install-exec install-exec-am install-html install-html-am \
778 install-iconDATA install-info install-info-am install-man \
779 install-man1 install-pdf install-pdf-am install-ps \
856 dist-lzma dist-shar dist-tarZ dist-xz dist-zip distcheck \
857 distclean distclean-generic distclean-tags distcleancheck \
858 distdir distuninstallcheck dvi dvi-am html html-am info \
859 info-am install install-am install-applicationsDATA \
860 install-data install-data-am install-desktopDATA install-dvi \
861 install-dvi-am install-exec install-exec-am install-html \
862 install-html-am install-iconDATA install-info install-info-am \
863 install-man install-man1 install-pdf install-pdf-am install-ps \
780864 install-ps-am install-strip installcheck installcheck-am \
781865 installdirs installdirs-am maintainer-clean \
782866 maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
785869 uninstall-iconDATA uninstall-man uninstall-man1
786870
787871 @INTLTOOL_DESKTOP_RULE@
872
788873 # Tell versions [3.59,3.63) of GNU make to not export all variables.
789874 # Otherwise a system limit (for SysV at least) may be exceeded.
790875 .NOEXPORT:
2424 fine with Gnomad2.
2525
2626
27 2. Gnomad2 using GTK+ < 2.6 will require the library
27 2. Gnomad2 using GTK+ < 2.6 will require the library
2828 libGnomeui to build. Newer versions will rely solely
2929 on GTK+. (Hey, this also actually works from Gnomad2
3030 >= 2.8.2!)
3535 fine with Gnomad2.
3636
3737
38 3. Gnomad2 also requires the library libnjb
38 3. Gnomad2 also requires the library libnjb
3939 to build.
4040
4141 Get it here: http://sourceforge.net/projects/libnjb/
4242
43 Pay attention to the notes in the libnjb README file
44 for underlying functionality requirements and
43 Pay attention to the notes in the libnjb README file
44 for underlying functionality requirements and
4545 troubleshooting.
4646
4747 libnjb may in turn require libusb if you're building
4848 under Linux.
4949
50 Debian: libnjb is now included in the Debian
50 Debian: libnjb is now included in the Debian
5151 distribution. You might need a newer
5252 library revision (subsitute the "5"
5353 for something higher).
6161
6262 Notice that Debian also carries gnomad2 so
6363 why bother installing libnjb separately...
64 When you "apt-get install gnomad2" libnjb
64 When you "apt-get install gnomad2" libnjb
6565 will be auto-installed anyway.
6666
67 Red Hat / Fedora Core: An RPM package of libusb is
68 included in the Red Hat / Fedora Core
67 Red Hat / Fedora Core: An RPM package of libusb is
68 included in the Red Hat / Fedora Core
6969 distribution. (New versions are available
7070 at RawHide (beta)). It is installed by
7171 default, you don't have to do anything about it.
124124 This will only be needed if you have an MTP device that can
125125 play these files I suppose.
126126
127 7. Gnomad2 will optionally use D-Bus and HAL to autodetect attached
127 7. Gnomad2 will optionally use D-Bus and GUDEV to autodetect attached
128128 and removed devices. You'll need development files for the D-Bus
129 glib bindings and hal if you want this stuff to work.
129 glib bindings and libgudev1 if you want this stuff to work.
130130
131131 8. Install gnomad using this sequence:
132132
146146 A: First, do you have USB support in your kernel, with
147147 the usbfs filesystem activated?
148148
149 /proc/bus/usb/ is a virtual file system implemented
150 (usbfs) in the 2.4.x versions of the Linux kernel that
151 represents the USB port. So this info is worthless for
149 /proc/bus/usb/ is a virtual file system implemented
150 (usbfs) in the 2.4.x versions of the Linux kernel that
151 represents the USB port. So this info is worthless for
152152 BSD users.
153153
154 In the Linux kernel USB is used in user mode by
154 In the Linux kernel USB is used in user mode by
155155 accessing this virtual file system. Devices that have
156156 kernel drivers appear here, and devices that haven't
157 atleast appear in /proc/usb/001/... etc. And this is
157 atleast appear in /proc/usb/001/... etc. And this is
158158 how libusb access your USB port.
159159
160160 * Distributions with hotplugging:
163163 This is info for distributions with hotplugging enabled
164164 for USB / PCI devices. This typically means you have
165165 something i /etc/hotplug and that hotplugging is started
166 when you boot your machine in a script named
166 when you boot your machine in a script named
167167 /etc/init.d/hotplug or similar.
168168
169169 See the README file of libnjb for instructions on how this
177177 want to set it up on your machine either. You want to
178178 mount the usbfs manually.
179179
180 According to Tim Pepper, this should work in your
180 According to Tim Pepper, this should work in your
181181 /etc/fstab:
182182
183183 none /proc/bus/usb usbdevfs noauto,devmode=0666 0 0
191191
192192 2: Q: My kernel does not find a driver for the jukebox!
193193
194 A: So I guess you're using Linux. libnjb doesn't use a
194 A: So I guess you're using Linux. libnjb doesn't use a
195195 kernel driver for the jukebox anyway. It uses the USB
196196 from userland, accessing the device through /proc/bus/usb.
197197
0 # generated automatically by aclocal 1.10.1 -*- Autoconf -*-
0 # generated automatically by aclocal 1.11.1 -*- Autoconf -*-
11
22 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
3 # 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
3 # 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
44 # This file is free software; the Free Software Foundation
55 # gives unlimited permission to copy and/or distribute it,
66 # with or without modifications, as long as this notice is preserved.
1212
1313 m4_ifndef([AC_AUTOCONF_VERSION],
1414 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
15 m4_if(AC_AUTOCONF_VERSION, [2.63],,
16 [m4_warning([this file was generated for autoconf 2.63.
15 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
16 [m4_warning([this file was generated for autoconf 2.68.
1717 You have another version of autoconf. It may work, but is not guaranteed to.
1818 If you have problems, you may need to regenerate the build system entirely.
1919 To do so, use the procedure documented by the package, typically `autoreconf'.])])
300300
301301 dnl These rules are solely for the distribution goal. While doing this
302302 dnl we only have to keep exactly one list of the available catalogs
303 dnl in configure.in.
303 dnl in configure.ac.
304304 for lang in $ALL_LINGUAS; do
305305 GMOFILES="$GMOFILES $lang.gmo"
306306 POFILES="$POFILES $lang.po"
429429 dnl
430430 dnl Now the definitions that aclocal will find
431431 dnl
432 ifdef(glib_configure_in,[],[
432 ifdef(glib_configure_ac,[],[
433433 AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
434434 AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
435435 ])dnl
505505 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 $< [$]@'
506506 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 $< [$]@'
507507
508 AC_SUBST(INTLTOOL_DESKTOP_RULE)
509 AC_SUBST(INTLTOOL_DIRECTORY_RULE)
510 AC_SUBST(INTLTOOL_KEYS_RULE)
511 AC_SUBST(INTLTOOL_PROP_RULE)
512 AC_SUBST(INTLTOOL_OAF_RULE)
513 AC_SUBST(INTLTOOL_PONG_RULE)
514 AC_SUBST(INTLTOOL_SERVER_RULE)
515 AC_SUBST(INTLTOOL_SHEET_RULE)
516 AC_SUBST(INTLTOOL_SOUNDLIST_RULE)
517 AC_SUBST(INTLTOOL_UI_RULE)
518 AC_SUBST(INTLTOOL_XAM_RULE)
519 AC_SUBST(INTLTOOL_KBD_RULE)
520 AC_SUBST(INTLTOOL_XML_RULE)
521 AC_SUBST(INTLTOOL_XML_NOMERGE_RULE)
522 AC_SUBST(INTLTOOL_CAVES_RULE)
523 AC_SUBST(INTLTOOL_SCHEMAS_RULE)
524 AC_SUBST(INTLTOOL_THEME_RULE)
525 AC_SUBST(INTLTOOL_SERVICE_RULE)
526 AC_SUBST(INTLTOOL_POLICY_RULE)
508 _IT_SUBST(INTLTOOL_DESKTOP_RULE)
509 _IT_SUBST(INTLTOOL_DIRECTORY_RULE)
510 _IT_SUBST(INTLTOOL_KEYS_RULE)
511 _IT_SUBST(INTLTOOL_PROP_RULE)
512 _IT_SUBST(INTLTOOL_OAF_RULE)
513 _IT_SUBST(INTLTOOL_PONG_RULE)
514 _IT_SUBST(INTLTOOL_SERVER_RULE)
515 _IT_SUBST(INTLTOOL_SHEET_RULE)
516 _IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
517 _IT_SUBST(INTLTOOL_UI_RULE)
518 _IT_SUBST(INTLTOOL_XAM_RULE)
519 _IT_SUBST(INTLTOOL_KBD_RULE)
520 _IT_SUBST(INTLTOOL_XML_RULE)
521 _IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
522 _IT_SUBST(INTLTOOL_CAVES_RULE)
523 _IT_SUBST(INTLTOOL_SCHEMAS_RULE)
524 _IT_SUBST(INTLTOOL_THEME_RULE)
525 _IT_SUBST(INTLTOOL_SERVICE_RULE)
526 _IT_SUBST(INTLTOOL_POLICY_RULE)
527527
528528 # Check the gettext tools to make sure they are GNU
529529 AC_PATH_PROG(XGETTEXT, xgettext)
540540 AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
541541 fi
542542
543 AC_PATH_PROG(INTLTOOL_PERL, [perl])
543 AC_PATH_PROG(INTLTOOL_PERL, perl)
544544 if test -z "$INTLTOOL_PERL"; then
545 AC_MSG_ERROR([perl not found; required for intltool])
546 fi
547 if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
548 AC_MSG_ERROR([perl 5.x required for intltool])
545 AC_MSG_ERROR([perl not found])
546 fi
547 AC_MSG_CHECKING([for perl >= 5.8.1])
548 $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
549 if test $? -ne 0; then
550 AC_MSG_ERROR([perl 5.8.1 is required for intltool])
551 else
552 IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
553 AC_MSG_RESULT([$IT_PERL_VERSION])
549554 fi
550555 if test "x$2" != "xno-xml"; then
551556 AC_MSG_CHECKING([for XML::Parser])
597602 AC_DEFUN([IT_PO_SUBDIR],
598603 [AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
599604 dnl
600 dnl The following CONFIG_COMMANDS should be exetuted at the very end
605 dnl The following CONFIG_COMMANDS should be executed at the very end
601606 dnl of config.status.
602607 AC_CONFIG_COMMANDS_PRE([
603608 AC_CONFIG_COMMANDS([$1/stamp-it], [
604 if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" ]; then
609 if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
605610 AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
606611 fi
607612 rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
623628 ])dnl
624629 ])
625630
631 # _IT_SUBST(VARIABLE)
632 # -------------------
633 # Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
634 #
635 AC_DEFUN([_IT_SUBST],
636 [
637 AC_SUBST([$1])
638 m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
639 ]
640 )
641
626642 # deprecated macros
627643 AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
628644 # A hint is needed for aclocal from Automake <= 1.9.4:
629645 # AC_DEFUN([AC_PROG_INTLTOOL], ...)
630646
631647
632 # nls.m4 serial 3 (gettext-0.15)
633 dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc.
648 # nls.m4 serial 5 (gettext-0.18)
649 dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation,
650 dnl Inc.
634651 dnl This file is free software; the Free Software Foundation
635652 dnl gives unlimited permission to copy and/or distribute it,
636653 dnl with or without modifications, as long as this notice is preserved.
648665 dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
649666 dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
650667
651 AC_PREREQ(2.50)
668 AC_PREREQ([2.50])
652669
653670 AC_DEFUN([AM_NLS],
654671 [
655672 AC_MSG_CHECKING([whether NLS is requested])
656673 dnl Default is enabled NLS
657 AC_ARG_ENABLE(nls,
674 AC_ARG_ENABLE([nls],
658675 [ --disable-nls do not use Native Language Support],
659676 USE_NLS=$enableval, USE_NLS=yes)
660 AC_MSG_RESULT($USE_NLS)
661 AC_SUBST(USE_NLS)
677 AC_MSG_RESULT([$USE_NLS])
678 AC_SUBST([USE_NLS])
662679 ])
663680
664681 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
682 # serial 1 (pkg-config-0.24)
665683 #
666684 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
667685 #
689707 AC_DEFUN([PKG_PROG_PKG_CONFIG],
690708 [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
691709 m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
692 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
710 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
711 AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
712 AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
713
693714 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
694715 AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
695716 fi
702723 AC_MSG_RESULT([no])
703724 PKG_CONFIG=""
704725 fi
705
706726 fi[]dnl
707727 ])# PKG_PROG_PKG_CONFIG
708728
711731 # Check to see whether a particular set of modules exists. Similar
712732 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
713733 #
714 #
715 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
716 # this or PKG_CHECK_MODULES is called, or make sure to call
717 # PKG_CHECK_EXISTS manually
734 # Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
735 # only at the first occurence in configure.ac, so if the first place
736 # it's called might be skipped (such as if it is within an "if", you
737 # have to call PKG_CHECK_EXISTS manually
718738 # --------------------------------------------------------------
719739 AC_DEFUN([PKG_CHECK_EXISTS],
720740 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
721741 if test -n "$PKG_CONFIG" && \
722742 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
723 m4_ifval([$2], [$2], [:])
743 m4_default([$2], [:])
724744 m4_ifvaln([$3], [else
725745 $3])dnl
726746 fi])
727
728747
729748 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
730749 # ---------------------------------------------
778797 See the pkg-config man page for more details.])
779798
780799 if test $pkg_failed = yes; then
800 AC_MSG_RESULT([no])
781801 _PKG_SHORT_ERRORS_SUPPORTED
782802 if test $_pkg_short_errors_supported = yes; then
783803 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
787807 # Put the nasty error message in config.log where it belongs
788808 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
789809
790 ifelse([$4], , [AC_MSG_ERROR(dnl
810 m4_default([$4], [AC_MSG_ERROR(
791811 [Package requirements ($2) were not met:
792812
793813 $$1_PKG_ERRORS
795815 Consider adjusting the PKG_CONFIG_PATH environment variable if you
796816 installed software in a non-standard prefix.
797817
798 _PKG_TEXT
799 ])],
800 [AC_MSG_RESULT([no])
801 $4])
818 _PKG_TEXT])
819 ])
802820 elif test $pkg_failed = untried; then
803 ifelse([$4], , [AC_MSG_FAILURE(dnl
821 AC_MSG_RESULT([no])
822 m4_default([$4], [AC_MSG_FAILURE(
804823 [The pkg-config script could not be found or is too old. Make sure it
805824 is in your PATH or set the PKG_CONFIG environment variable to the full
806825 path to pkg-config.
807826
808827 _PKG_TEXT
809828
810 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
811 [$4])
829 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])
830 ])
812831 else
813832 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
814833 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
815834 AC_MSG_RESULT([yes])
816 ifelse([$3], , :, [$3])
835 $3
817836 fi[]dnl
818837 ])# PKG_CHECK_MODULES
819838
820 # Copyright (C) 2002, 2003, 2005, 2006, 2007 Free Software Foundation, Inc.
839 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
821840 #
822841 # This file is free software; the Free Software Foundation
823842 # gives unlimited permission to copy and/or distribute it,
829848 # generated from the m4 files accompanying Automake X.Y.
830849 # (This private macro should not be called outside this file.)
831850 AC_DEFUN([AM_AUTOMAKE_VERSION],
832 [am__api_version='1.10'
851 [am__api_version='1.11'
833852 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
834853 dnl require some minimum version. Point them to the right macro.
835 m4_if([$1], [1.10.1], [],
854 m4_if([$1], [1.11.1], [],
836855 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
837856 ])
838857
846865 # AM_SET_CURRENT_AUTOMAKE_VERSION
847866 # -------------------------------
848867 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
849 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
868 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
850869 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
851 [AM_AUTOMAKE_VERSION([1.10.1])dnl
870 [AM_AUTOMAKE_VERSION([1.11.1])dnl
852871 m4_ifndef([AC_AUTOCONF_VERSION],
853872 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
854 _AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])
873 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
855874
856875 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
857876
908927
909928 # AM_CONDITIONAL -*- Autoconf -*-
910929
911 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
930 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
912931 # Free Software Foundation, Inc.
913932 #
914933 # This file is free software; the Free Software Foundation
915934 # gives unlimited permission to copy and/or distribute it,
916935 # with or without modifications, as long as this notice is preserved.
917936
918 # serial 8
937 # serial 9
919938
920939 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
921940 # -------------------------------------
928947 AC_SUBST([$1_FALSE])dnl
929948 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
930949 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
950 m4_define([_AM_COND_VALUE_$1], [$2])dnl
931951 if $2; then
932952 $1_TRUE=
933953 $1_FALSE='#'
941961 Usually this means the macro was only invoked conditionally.]])
942962 fi])])
943963
944 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
964 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
945965 # Free Software Foundation, Inc.
946966 #
947967 # This file is free software; the Free Software Foundation
948968 # gives unlimited permission to copy and/or distribute it,
949969 # with or without modifications, as long as this notice is preserved.
950970
951 # serial 9
971 # serial 10
952972
953973 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
954974 # written in clear, in which case automake, when reading aclocal.m4,
10051025 if test "$am_compiler_list" = ""; then
10061026 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
10071027 fi
1028 am__universal=false
1029 m4_case([$1], [CC],
1030 [case " $depcc " in #(
1031 *\ -arch\ *\ -arch\ *) am__universal=true ;;
1032 esac],
1033 [CXX],
1034 [case " $depcc " in #(
1035 *\ -arch\ *\ -arch\ *) am__universal=true ;;
1036 esac])
1037
10081038 for depmode in $am_compiler_list; do
10091039 # Setup a source with many dependencies, because some compilers
10101040 # like to wrap large dependency lists on column 80 (with \), and
10221052 done
10231053 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10241054
1055 # We check with `-c' and `-o' for the sake of the "dashmstdout"
1056 # mode. It turns out that the SunPro C++ compiler does not properly
1057 # handle `-M -o', and we need to detect this. Also, some Intel
1058 # versions had trouble with output in subdirs
1059 am__obj=sub/conftest.${OBJEXT-o}
1060 am__minus_obj="-o $am__obj"
10251061 case $depmode in
1062 gcc)
1063 # This depmode causes a compiler race in universal mode.
1064 test "$am__universal" = false || continue
1065 ;;
10261066 nosideeffect)
10271067 # after this tag, mechanisms are not by side-effect, so they'll
10281068 # only be used when explicitly requested
10321072 break
10331073 fi
10341074 ;;
1075 msvisualcpp | msvcmsys)
1076 # This compiler won't grok `-c -o', but also, the minuso test has
1077 # not run yet. These depmodes are late enough in the game, and
1078 # so weak that their functioning should not be impacted.
1079 am__obj=conftest.${OBJEXT-o}
1080 am__minus_obj=
1081 ;;
10351082 none) break ;;
10361083 esac
1037 # We check with `-c' and `-o' for the sake of the "dashmstdout"
1038 # mode. It turns out that the SunPro C++ compiler does not properly
1039 # handle `-M -o', and we need to detect this.
10401084 if depmode=$depmode \
1041 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
1085 source=sub/conftest.c object=$am__obj \
10421086 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1043 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
1087 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10441088 >/dev/null 2>conftest.err &&
10451089 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10461090 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1047 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1091 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10481092 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10491093 # icc doesn't choke on unknown options, it will just issue warnings
10501094 # or remarks (even with -Werror). So we grep stderr for any message
11011145
11021146 # Generate code to set up dependency tracking. -*- Autoconf -*-
11031147
1104 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
1148 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
11051149 # Free Software Foundation, Inc.
11061150 #
11071151 # This file is free software; the Free Software Foundation
11081152 # gives unlimited permission to copy and/or distribute it,
11091153 # with or without modifications, as long as this notice is preserved.
11101154
1111 #serial 3
1155 #serial 5
11121156
11131157 # _AM_OUTPUT_DEPENDENCY_COMMANDS
11141158 # ------------------------------
11151159 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
1116 [for mf in $CONFIG_FILES; do
1117 # Strip MF so we end up with the name of the file.
1118 mf=`echo "$mf" | sed -e 's/:.*$//'`
1119 # Check whether this is an Automake generated Makefile or not.
1120 # We used to match only the files named `Makefile.in', but
1121 # some people rename them; so instead we look at the file content.
1122 # Grep'ing the first line is not enough: some people post-process
1123 # each Makefile.in and add a new line on top of each file to say so.
1124 # Grep'ing the whole file is not good either: AIX grep has a line
1125 # limit of 2048, but all sed's we know have understand at least 4000.
1126 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
1127 dirpart=`AS_DIRNAME("$mf")`
1128 else
1129 continue
1130 fi
1131 # Extract the definition of DEPDIR, am__include, and am__quote
1132 # from the Makefile without running `make'.
1133 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
1134 test -z "$DEPDIR" && continue
1135 am__include=`sed -n 's/^am__include = //p' < "$mf"`
1136 test -z "am__include" && continue
1137 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
1138 # When using ansi2knr, U may be empty or an underscore; expand it
1139 U=`sed -n 's/^U = //p' < "$mf"`
1140 # Find all dependency output files, they are included files with
1141 # $(DEPDIR) in their names. We invoke sed twice because it is the
1142 # simplest approach to changing $(DEPDIR) to its actual value in the
1143 # expansion.
1144 for file in `sed -n "
1145 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1146 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
1147 # Make sure the directory exists.
1148 test -f "$dirpart/$file" && continue
1149 fdir=`AS_DIRNAME(["$file"])`
1150 AS_MKDIR_P([$dirpart/$fdir])
1151 # echo "creating $dirpart/$file"
1152 echo '# dummy' > "$dirpart/$file"
1160 [{
1161 # Autoconf 2.62 quotes --file arguments for eval, but not when files
1162 # are listed without --file. Let's play safe and only enable the eval
1163 # if we detect the quoting.
1164 case $CONFIG_FILES in
1165 *\'*) eval set x "$CONFIG_FILES" ;;
1166 *) set x $CONFIG_FILES ;;
1167 esac
1168 shift
1169 for mf
1170 do
1171 # Strip MF so we end up with the name of the file.
1172 mf=`echo "$mf" | sed -e 's/:.*$//'`
1173 # Check whether this is an Automake generated Makefile or not.
1174 # We used to match only the files named `Makefile.in', but
1175 # some people rename them; so instead we look at the file content.
1176 # Grep'ing the first line is not enough: some people post-process
1177 # each Makefile.in and add a new line on top of each file to say so.
1178 # Grep'ing the whole file is not good either: AIX grep has a line
1179 # limit of 2048, but all sed's we know have understand at least 4000.
1180 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
1181 dirpart=`AS_DIRNAME("$mf")`
1182 else
1183 continue
1184 fi
1185 # Extract the definition of DEPDIR, am__include, and am__quote
1186 # from the Makefile without running `make'.
1187 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
1188 test -z "$DEPDIR" && continue
1189 am__include=`sed -n 's/^am__include = //p' < "$mf"`
1190 test -z "am__include" && continue
1191 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
1192 # When using ansi2knr, U may be empty or an underscore; expand it
1193 U=`sed -n 's/^U = //p' < "$mf"`
1194 # Find all dependency output files, they are included files with
1195 # $(DEPDIR) in their names. We invoke sed twice because it is the
1196 # simplest approach to changing $(DEPDIR) to its actual value in the
1197 # expansion.
1198 for file in `sed -n "
1199 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1200 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
1201 # Make sure the directory exists.
1202 test -f "$dirpart/$file" && continue
1203 fdir=`AS_DIRNAME(["$file"])`
1204 AS_MKDIR_P([$dirpart/$fdir])
1205 # echo "creating $dirpart/$file"
1206 echo '# dummy' > "$dirpart/$file"
1207 done
11531208 done
1154 done
1209 }
11551210 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
11561211
11571212
11711226 # Do all the work for Automake. -*- Autoconf -*-
11721227
11731228 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
1174 # 2005, 2006, 2008 Free Software Foundation, Inc.
1229 # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
11751230 #
11761231 # This file is free software; the Free Software Foundation
11771232 # gives unlimited permission to copy and/or distribute it,
11781233 # with or without modifications, as long as this notice is preserved.
11791234
1180 # serial 13
1235 # serial 16
11811236
11821237 # This macro actually does too much. Some checks are only needed if
11831238 # your package does certain things. But this isn't really a big deal.
11941249 # arguments mandatory, and then we can depend on a new Autoconf
11951250 # release and drop the old call support.
11961251 AC_DEFUN([AM_INIT_AUTOMAKE],
1197 [AC_PREREQ([2.60])dnl
1252 [AC_PREREQ([2.62])dnl
11981253 dnl Autoconf wants to disallow AM_ names. We explicitly allow
11991254 dnl the ones we care about.
12001255 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
12451300 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
12461301 AM_MISSING_PROG(AUTOHEADER, autoheader)
12471302 AM_MISSING_PROG(MAKEINFO, makeinfo)
1248 AM_PROG_INSTALL_SH
1249 AM_PROG_INSTALL_STRIP
1303 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1304 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
12501305 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
12511306 # We need awk for the "check" target. The system "awk" is bad on
12521307 # some platforms.
12541309 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
12551310 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
12561311 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
1257 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
1258 [_AM_PROG_TAR([v7])])])
1312 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
1313 [_AM_PROG_TAR([v7])])])
12591314 _AM_IF_OPTION([no-dependencies],,
12601315 [AC_PROVIDE_IFELSE([AC_PROG_CC],
1261 [_AM_DEPENDENCIES(CC)],
1262 [define([AC_PROG_CC],
1263 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
1316 [_AM_DEPENDENCIES(CC)],
1317 [define([AC_PROG_CC],
1318 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
12641319 AC_PROVIDE_IFELSE([AC_PROG_CXX],
1265 [_AM_DEPENDENCIES(CXX)],
1266 [define([AC_PROG_CXX],
1267 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
1320 [_AM_DEPENDENCIES(CXX)],
1321 [define([AC_PROG_CXX],
1322 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
12681323 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
1269 [_AM_DEPENDENCIES(OBJC)],
1270 [define([AC_PROG_OBJC],
1271 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
1324 [_AM_DEPENDENCIES(OBJC)],
1325 [define([AC_PROG_OBJC],
1326 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
12721327 ])
1328 _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
1329 dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
1330 dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
1331 dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
1332 AC_CONFIG_COMMANDS_PRE(dnl
1333 [m4_provide_if([_AM_COMPILER_EXEEXT],
1334 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
12731335 ])
1336
1337 dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
1338 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
1339 dnl mangled by Autoconf and run in a shell conditional statement.
1340 m4_define([_AC_COMPILER_EXEEXT],
1341 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
12741342
12751343
12761344 # When config.status generates a header, we must update the stamp-h file.
12941362 done
12951363 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
12961364
1297 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
1365 # Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
12981366 #
12991367 # This file is free software; the Free Software Foundation
13001368 # gives unlimited permission to copy and/or distribute it,
13051373 # Define $install_sh.
13061374 AC_DEFUN([AM_PROG_INSTALL_SH],
13071375 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1308 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
1376 if test x"${install_sh}" != xset; then
1377 case $am_aux_dir in
1378 *\ * | *\ *)
1379 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
1380 *)
1381 install_sh="\${SHELL} $am_aux_dir/install-sh"
1382 esac
1383 fi
13091384 AC_SUBST(install_sh)])
13101385
13111386 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
13311406
13321407 # Check to see how 'make' treats includes. -*- Autoconf -*-
13331408
1334 # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
1409 # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
13351410 #
13361411 # This file is free software; the Free Software Foundation
13371412 # gives unlimited permission to copy and/or distribute it,
13381413 # with or without modifications, as long as this notice is preserved.
13391414
1340 # serial 3
1415 # serial 4
13411416
13421417 # AM_MAKE_INCLUDE()
13431418 # -----------------
13461421 [am_make=${MAKE-make}
13471422 cat > confinc << 'END'
13481423 am__doit:
1349 @echo done
1424 @echo this is the am__doit target
13501425 .PHONY: am__doit
13511426 END
13521427 # If we don't find an include directive, just comment out the code.
13561431 _am_result=none
13571432 # First try GNU make style include.
13581433 echo "include confinc" > confmf
1359 # We grep out `Entering directory' and `Leaving directory'
1360 # messages which can occur if `w' ends up in MAKEFLAGS.
1361 # In particular we don't look at `^make:' because GNU make might
1362 # be invoked under some other name (usually "gmake"), in which
1363 # case it prints its new name instead of `make'.
1364 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1365 am__include=include
1366 am__quote=
1367 _am_result=GNU
1368 fi
1434 # Ignore all kinds of additional output from `make'.
1435 case `$am_make -s -f confmf 2> /dev/null` in #(
1436 *the\ am__doit\ target*)
1437 am__include=include
1438 am__quote=
1439 _am_result=GNU
1440 ;;
1441 esac
13691442 # Now try BSD make style include.
13701443 if test "$am__include" = "#"; then
13711444 echo '.include "confinc"' > confmf
1372 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1373 am__include=.include
1374 am__quote="\""
1375 _am_result=BSD
1376 fi
1445 case `$am_make -s -f confmf 2> /dev/null` in #(
1446 *the\ am__doit\ target*)
1447 am__include=.include
1448 am__quote="\""
1449 _am_result=BSD
1450 ;;
1451 esac
13771452 fi
13781453 AC_SUBST([am__include])
13791454 AC_SUBST([am__quote])
13831458
13841459 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
13851460
1386 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
1461 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
13871462 # Free Software Foundation, Inc.
13881463 #
13891464 # This file is free software; the Free Software Foundation
13901465 # gives unlimited permission to copy and/or distribute it,
13911466 # with or without modifications, as long as this notice is preserved.
13921467
1393 # serial 5
1468 # serial 6
13941469
13951470 # AM_MISSING_PROG(NAME, PROGRAM)
13961471 # ------------------------------
14071482 AC_DEFUN([AM_MISSING_HAS_RUN],
14081483 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
14091484 AC_REQUIRE_AUX_FILE([missing])dnl
1410 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1485 if test x"${MISSING+set}" != xset; then
1486 case $am_aux_dir in
1487 *\ * | *\ *)
1488 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
1489 *)
1490 MISSING="\${SHELL} $am_aux_dir/missing" ;;
1491 esac
1492 fi
14111493 # Use eval to expand $SHELL
14121494 if eval "$MISSING --run true"; then
14131495 am_missing_run="$MISSING --run "
14451527
14461528 # Helper functions for option handling. -*- Autoconf -*-
14471529
1448 # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
1530 # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
14491531 #
14501532 # This file is free software; the Free Software Foundation
14511533 # gives unlimited permission to copy and/or distribute it,
14521534 # with or without modifications, as long as this notice is preserved.
14531535
1454 # serial 3
1536 # serial 4
14551537
14561538 # _AM_MANGLE_OPTION(NAME)
14571539 # -----------------------
14681550 # ----------------------------------
14691551 # OPTIONS is a space-separated list of Automake options.
14701552 AC_DEFUN([_AM_SET_OPTIONS],
1471 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
1553 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
14721554
14731555 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
14741556 # -------------------------------------------
14781560
14791561 # Check to make sure that the build environment is sane. -*- Autoconf -*-
14801562
1481 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
1563 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
14821564 # Free Software Foundation, Inc.
14831565 #
14841566 # This file is free software; the Free Software Foundation
14851567 # gives unlimited permission to copy and/or distribute it,
14861568 # with or without modifications, as long as this notice is preserved.
14871569
1488 # serial 4
1570 # serial 5
14891571
14901572 # AM_SANITY_CHECK
14911573 # ---------------
14941576 # Just in case
14951577 sleep 1
14961578 echo timestamp > conftest.file
1579 # Reject unsafe characters in $srcdir or the absolute working directory
1580 # name. Accept space and tab only in the latter.
1581 am_lf='
1582 '
1583 case `pwd` in
1584 *[[\\\"\#\$\&\'\`$am_lf]]*)
1585 AC_MSG_ERROR([unsafe absolute working directory name]);;
1586 esac
1587 case $srcdir in
1588 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
1589 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
1590 esac
1591
14971592 # Do `set' in a subshell so we don't clobber the current shell's
14981593 # arguments. Must try -L first in case configure is actually a
14991594 # symlink; some systems play weird games with the mod time of symlinks
15001595 # (eg FreeBSD returns the mod time of the symlink's containing
15011596 # directory).
15021597 if (
1503 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1598 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
15041599 if test "$[*]" = "X"; then
15051600 # -L didn't work.
1506 set X `ls -t $srcdir/configure conftest.file`
1601 set X `ls -t "$srcdir/configure" conftest.file`
15071602 fi
15081603 rm -f conftest.file
15091604 if test "$[*]" != "X $srcdir/configure conftest.file" \
15561651 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
15571652 AC_SUBST([INSTALL_STRIP_PROGRAM])])
15581653
1559 # Copyright (C) 2006 Free Software Foundation, Inc.
1654 # Copyright (C) 2006, 2008 Free Software Foundation, Inc.
15601655 #
15611656 # This file is free software; the Free Software Foundation
15621657 # gives unlimited permission to copy and/or distribute it,
15631658 # with or without modifications, as long as this notice is preserved.
1659
1660 # serial 2
15641661
15651662 # _AM_SUBST_NOTMAKE(VARIABLE)
15661663 # ---------------------------
15671664 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
15681665 # This macro is traced by Automake.
15691666 AC_DEFUN([_AM_SUBST_NOTMAKE])
1667
1668 # AM_SUBST_NOTMAKE(VARIABLE)
1669 # ---------------------------
1670 # Public sister of _AM_SUBST_NOTMAKE.
1671 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
15701672
15711673 # Check how to create a tarball. -*- Autoconf -*-
15721674
+0
-1526
config.guess less more
0 #! /bin/sh
1 # Attempt to guess a canonical system name.
2 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
4 # Free Software Foundation, Inc.
5
6 timestamp='2008-01-08'
7
8 # This file is free software; you can redistribute it and/or modify it
9 # under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or
11 # (at your option) any later version.
12 #
13 # This program is distributed in the hope that it will be useful, but
14 # WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 # General Public License for more details.
17 #
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
21 # 02110-1301, USA.
22 #
23 # As a special exception to the GNU General Public License, if you
24 # distribute this file as part of a program that contains a
25 # configuration script generated by Autoconf, you may include it under
26 # the same distribution terms that you use for the rest of that program.
27
28
29 # Originally written by Per Bothner <per@bothner.com>.
30 # Please send patches to <config-patches@gnu.org>. Submit a context
31 # diff and a properly formatted ChangeLog entry.
32 #
33 # This script attempts to guess a canonical system name similar to
34 # config.sub. If it succeeds, it prints the system name on stdout, and
35 # exits with 0. Otherwise, it exits with 1.
36 #
37 # The plan is that this can be called by configure scripts if you
38 # don't specify an explicit build system type.
39
40 me=`echo "$0" | sed -e 's,.*/,,'`
41
42 usage="\
43 Usage: $0 [OPTION]
44
45 Output the configuration name of the system \`$me' is run on.
46
47 Operation modes:
48 -h, --help print this help, then exit
49 -t, --time-stamp print date of last modification, then exit
50 -v, --version print version number, then exit
51
52 Report bugs and patches to <config-patches@gnu.org>."
53
54 version="\
55 GNU config.guess ($timestamp)
56
57 Originally written by Per Bothner.
58 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
59 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
60
61 This is free software; see the source for copying conditions. There is NO
62 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
63
64 help="
65 Try \`$me --help' for more information."
66
67 # Parse command line
68 while test $# -gt 0 ; do
69 case $1 in
70 --time-stamp | --time* | -t )
71 echo "$timestamp" ; exit ;;
72 --version | -v )
73 echo "$version" ; exit ;;
74 --help | --h* | -h )
75 echo "$usage"; exit ;;
76 -- ) # Stop option processing
77 shift; break ;;
78 - ) # Use stdin as input.
79 break ;;
80 -* )
81 echo "$me: invalid option $1$help" >&2
82 exit 1 ;;
83 * )
84 break ;;
85 esac
86 done
87
88 if test $# != 0; then
89 echo "$me: too many arguments$help" >&2
90 exit 1
91 fi
92
93 trap 'exit 1' 1 2 15
94
95 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a
96 # compiler to aid in system detection is discouraged as it requires
97 # temporary files to be created and, as you can see below, it is a
98 # headache to deal with in a portable fashion.
99
100 # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
101 # use `HOST_CC' if defined, but it is deprecated.
102
103 # Portable tmp directory creation inspired by the Autoconf team.
104
105 set_cc_for_build='
106 trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
107 trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
108 : ${TMPDIR=/tmp} ;
109 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
110 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
111 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
112 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
113 dummy=$tmp/dummy ;
114 tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
115 case $CC_FOR_BUILD,$HOST_CC,$CC in
116 ,,) echo "int x;" > $dummy.c ;
117 for c in cc gcc c89 c99 ; do
118 if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
119 CC_FOR_BUILD="$c"; break ;
120 fi ;
121 done ;
122 if test x"$CC_FOR_BUILD" = x ; then
123 CC_FOR_BUILD=no_compiler_found ;
124 fi
125 ;;
126 ,,*) CC_FOR_BUILD=$CC ;;
127 ,*,*) CC_FOR_BUILD=$HOST_CC ;;
128 esac ; set_cc_for_build= ;'
129
130 # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
131 # (ghazi@noc.rutgers.edu 1994-08-24)
132 if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
133 PATH=$PATH:/.attbin ; export PATH
134 fi
135
136 UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
137 UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
138 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
139 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
140
141 # Note: order is significant - the case branches are not exclusive.
142
143 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
144 *:NetBSD:*:*)
145 # NetBSD (nbsd) targets should (where applicable) match one or
146 # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
147 # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
148 # switched to ELF, *-*-netbsd* would select the old
149 # object file format. This provides both forward
150 # compatibility and a consistent mechanism for selecting the
151 # object file format.
152 #
153 # Note: NetBSD doesn't particularly care about the vendor
154 # portion of the name. We always set it to "unknown".
155 sysctl="sysctl -n hw.machine_arch"
156 UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
157 /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
158 case "${UNAME_MACHINE_ARCH}" in
159 armeb) machine=armeb-unknown ;;
160 arm*) machine=arm-unknown ;;
161 sh3el) machine=shl-unknown ;;
162 sh3eb) machine=sh-unknown ;;
163 sh5el) machine=sh5le-unknown ;;
164 *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
165 esac
166 # The Operating System including object format, if it has switched
167 # to ELF recently, or will in the future.
168 case "${UNAME_MACHINE_ARCH}" in
169 arm*|i386|m68k|ns32k|sh3*|sparc|vax)
170 eval $set_cc_for_build
171 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
172 | grep __ELF__ >/dev/null
173 then
174 # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
175 # Return netbsd for either. FIX?
176 os=netbsd
177 else
178 os=netbsdelf
179 fi
180 ;;
181 *)
182 os=netbsd
183 ;;
184 esac
185 # The OS release
186 # Debian GNU/NetBSD machines have a different userland, and
187 # thus, need a distinct triplet. However, they do not need
188 # kernel version information, so it can be replaced with a
189 # suitable tag, in the style of linux-gnu.
190 case "${UNAME_VERSION}" in
191 Debian*)
192 release='-gnu'
193 ;;
194 *)
195 release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
196 ;;
197 esac
198 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
199 # contains redundant information, the shorter form:
200 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
201 echo "${machine}-${os}${release}"
202 exit ;;
203 *:OpenBSD:*:*)
204 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
205 echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
206 exit ;;
207 *:ekkoBSD:*:*)
208 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
209 exit ;;
210 *:SolidBSD:*:*)
211 echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
212 exit ;;
213 macppc:MirBSD:*:*)
214 echo powerpc-unknown-mirbsd${UNAME_RELEASE}
215 exit ;;
216 *:MirBSD:*:*)
217 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
218 exit ;;
219 alpha:OSF1:*:*)
220 case $UNAME_RELEASE in
221 *4.0)
222 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
223 ;;
224 *5.*)
225 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
226 ;;
227 esac
228 # According to Compaq, /usr/sbin/psrinfo has been available on
229 # OSF/1 and Tru64 systems produced since 1995. I hope that
230 # covers most systems running today. This code pipes the CPU
231 # types through head -n 1, so we only detect the type of CPU 0.
232 ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
233 case "$ALPHA_CPU_TYPE" in
234 "EV4 (21064)")
235 UNAME_MACHINE="alpha" ;;
236 "EV4.5 (21064)")
237 UNAME_MACHINE="alpha" ;;
238 "LCA4 (21066/21068)")
239 UNAME_MACHINE="alpha" ;;
240 "EV5 (21164)")
241 UNAME_MACHINE="alphaev5" ;;
242 "EV5.6 (21164A)")
243 UNAME_MACHINE="alphaev56" ;;
244 "EV5.6 (21164PC)")
245 UNAME_MACHINE="alphapca56" ;;
246 "EV5.7 (21164PC)")
247 UNAME_MACHINE="alphapca57" ;;
248 "EV6 (21264)")
249 UNAME_MACHINE="alphaev6" ;;
250 "EV6.7 (21264A)")
251 UNAME_MACHINE="alphaev67" ;;
252 "EV6.8CB (21264C)")
253 UNAME_MACHINE="alphaev68" ;;
254 "EV6.8AL (21264B)")
255 UNAME_MACHINE="alphaev68" ;;
256 "EV6.8CX (21264D)")
257 UNAME_MACHINE="alphaev68" ;;
258 "EV6.9A (21264/EV69A)")
259 UNAME_MACHINE="alphaev69" ;;
260 "EV7 (21364)")
261 UNAME_MACHINE="alphaev7" ;;
262 "EV7.9 (21364A)")
263 UNAME_MACHINE="alphaev79" ;;
264 esac
265 # A Pn.n version is a patched version.
266 # A Vn.n version is a released version.
267 # A Tn.n version is a released field test version.
268 # A Xn.n version is an unreleased experimental baselevel.
269 # 1.2 uses "1.2" for uname -r.
270 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
271 exit ;;
272 Alpha\ *:Windows_NT*:*)
273 # How do we know it's Interix rather than the generic POSIX subsystem?
274 # Should we change UNAME_MACHINE based on the output of uname instead
275 # of the specific Alpha model?
276 echo alpha-pc-interix
277 exit ;;
278 21064:Windows_NT:50:3)
279 echo alpha-dec-winnt3.5
280 exit ;;
281 Amiga*:UNIX_System_V:4.0:*)
282 echo m68k-unknown-sysv4
283 exit ;;
284 *:[Aa]miga[Oo][Ss]:*:*)
285 echo ${UNAME_MACHINE}-unknown-amigaos
286 exit ;;
287 *:[Mm]orph[Oo][Ss]:*:*)
288 echo ${UNAME_MACHINE}-unknown-morphos
289 exit ;;
290 *:OS/390:*:*)
291 echo i370-ibm-openedition
292 exit ;;
293 *:z/VM:*:*)
294 echo s390-ibm-zvmoe
295 exit ;;
296 *:OS400:*:*)
297 echo powerpc-ibm-os400
298 exit ;;
299 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
300 echo arm-acorn-riscix${UNAME_RELEASE}
301 exit ;;
302 arm:riscos:*:*|arm:RISCOS:*:*)
303 echo arm-unknown-riscos
304 exit ;;
305 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
306 echo hppa1.1-hitachi-hiuxmpp
307 exit ;;
308 Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
309 # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
310 if test "`(/bin/universe) 2>/dev/null`" = att ; then
311 echo pyramid-pyramid-sysv3
312 else
313 echo pyramid-pyramid-bsd
314 fi
315 exit ;;
316 NILE*:*:*:dcosx)
317 echo pyramid-pyramid-svr4
318 exit ;;
319 DRS?6000:unix:4.0:6*)
320 echo sparc-icl-nx6
321 exit ;;
322 DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
323 case `/usr/bin/uname -p` in
324 sparc) echo sparc-icl-nx7; exit ;;
325 esac ;;
326 sun4H:SunOS:5.*:*)
327 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
328 exit ;;
329 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
330 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
331 exit ;;
332 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
333 echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
334 exit ;;
335 sun4*:SunOS:6*:*)
336 # According to config.sub, this is the proper way to canonicalize
337 # SunOS6. Hard to guess exactly what SunOS6 will be like, but
338 # it's likely to be more like Solaris than SunOS4.
339 echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
340 exit ;;
341 sun4*:SunOS:*:*)
342 case "`/usr/bin/arch -k`" in
343 Series*|S4*)
344 UNAME_RELEASE=`uname -v`
345 ;;
346 esac
347 # Japanese Language versions have a version number like `4.1.3-JL'.
348 echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
349 exit ;;
350 sun3*:SunOS:*:*)
351 echo m68k-sun-sunos${UNAME_RELEASE}
352 exit ;;
353 sun*:*:4.2BSD:*)
354 UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
355 test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
356 case "`/bin/arch`" in
357 sun3)
358 echo m68k-sun-sunos${UNAME_RELEASE}
359 ;;
360 sun4)
361 echo sparc-sun-sunos${UNAME_RELEASE}
362 ;;
363 esac
364 exit ;;
365 aushp:SunOS:*:*)
366 echo sparc-auspex-sunos${UNAME_RELEASE}
367 exit ;;
368 # The situation for MiNT is a little confusing. The machine name
369 # can be virtually everything (everything which is not
370 # "atarist" or "atariste" at least should have a processor
371 # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
372 # to the lowercase version "mint" (or "freemint"). Finally
373 # the system name "TOS" denotes a system which is actually not
374 # MiNT. But MiNT is downward compatible to TOS, so this should
375 # be no problem.
376 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
377 echo m68k-atari-mint${UNAME_RELEASE}
378 exit ;;
379 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
380 echo m68k-atari-mint${UNAME_RELEASE}
381 exit ;;
382 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
383 echo m68k-atari-mint${UNAME_RELEASE}
384 exit ;;
385 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
386 echo m68k-milan-mint${UNAME_RELEASE}
387 exit ;;
388 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
389 echo m68k-hades-mint${UNAME_RELEASE}
390 exit ;;
391 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
392 echo m68k-unknown-mint${UNAME_RELEASE}
393 exit ;;
394 m68k:machten:*:*)
395 echo m68k-apple-machten${UNAME_RELEASE}
396 exit ;;
397 powerpc:machten:*:*)
398 echo powerpc-apple-machten${UNAME_RELEASE}
399 exit ;;
400 RISC*:Mach:*:*)
401 echo mips-dec-mach_bsd4.3
402 exit ;;
403 RISC*:ULTRIX:*:*)
404 echo mips-dec-ultrix${UNAME_RELEASE}
405 exit ;;
406 VAX*:ULTRIX*:*:*)
407 echo vax-dec-ultrix${UNAME_RELEASE}
408 exit ;;
409 2020:CLIX:*:* | 2430:CLIX:*:*)
410 echo clipper-intergraph-clix${UNAME_RELEASE}
411 exit ;;
412 mips:*:*:UMIPS | mips:*:*:RISCos)
413 eval $set_cc_for_build
414 sed 's/^ //' << EOF >$dummy.c
415 #ifdef __cplusplus
416 #include <stdio.h> /* for printf() prototype */
417 int main (int argc, char *argv[]) {
418 #else
419 int main (argc, argv) int argc; char *argv[]; {
420 #endif
421 #if defined (host_mips) && defined (MIPSEB)
422 #if defined (SYSTYPE_SYSV)
423 printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
424 #endif
425 #if defined (SYSTYPE_SVR4)
426 printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
427 #endif
428 #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
429 printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
430 #endif
431 #endif
432 exit (-1);
433 }
434 EOF
435 $CC_FOR_BUILD -o $dummy $dummy.c &&
436 dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
437 SYSTEM_NAME=`$dummy $dummyarg` &&
438 { echo "$SYSTEM_NAME"; exit; }
439 echo mips-mips-riscos${UNAME_RELEASE}
440 exit ;;
441 Motorola:PowerMAX_OS:*:*)
442 echo powerpc-motorola-powermax
443 exit ;;
444 Motorola:*:4.3:PL8-*)
445 echo powerpc-harris-powermax
446 exit ;;
447 Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
448 echo powerpc-harris-powermax
449 exit ;;
450 Night_Hawk:Power_UNIX:*:*)
451 echo powerpc-harris-powerunix
452 exit ;;
453 m88k:CX/UX:7*:*)
454 echo m88k-harris-cxux7
455 exit ;;
456 m88k:*:4*:R4*)
457 echo m88k-motorola-sysv4
458 exit ;;
459 m88k:*:3*:R3*)
460 echo m88k-motorola-sysv3
461 exit ;;
462 AViiON:dgux:*:*)
463 # DG/UX returns AViiON for all architectures
464 UNAME_PROCESSOR=`/usr/bin/uname -p`
465 if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
466 then
467 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
468 [ ${TARGET_BINARY_INTERFACE}x = x ]
469 then
470 echo m88k-dg-dgux${UNAME_RELEASE}
471 else
472 echo m88k-dg-dguxbcs${UNAME_RELEASE}
473 fi
474 else
475 echo i586-dg-dgux${UNAME_RELEASE}
476 fi
477 exit ;;
478 M88*:DolphinOS:*:*) # DolphinOS (SVR3)
479 echo m88k-dolphin-sysv3
480 exit ;;
481 M88*:*:R3*:*)
482 # Delta 88k system running SVR3
483 echo m88k-motorola-sysv3
484 exit ;;
485 XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
486 echo m88k-tektronix-sysv3
487 exit ;;
488 Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
489 echo m68k-tektronix-bsd
490 exit ;;
491 *:IRIX*:*:*)
492 echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
493 exit ;;
494 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
495 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
496 exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
497 i*86:AIX:*:*)
498 echo i386-ibm-aix
499 exit ;;
500 ia64:AIX:*:*)
501 if [ -x /usr/bin/oslevel ] ; then
502 IBM_REV=`/usr/bin/oslevel`
503 else
504 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
505 fi
506 echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
507 exit ;;
508 *:AIX:2:3)
509 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
510 eval $set_cc_for_build
511 sed 's/^ //' << EOF >$dummy.c
512 #include <sys/systemcfg.h>
513
514 main()
515 {
516 if (!__power_pc())
517 exit(1);
518 puts("powerpc-ibm-aix3.2.5");
519 exit(0);
520 }
521 EOF
522 if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
523 then
524 echo "$SYSTEM_NAME"
525 else
526 echo rs6000-ibm-aix3.2.5
527 fi
528 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
529 echo rs6000-ibm-aix3.2.4
530 else
531 echo rs6000-ibm-aix3.2
532 fi
533 exit ;;
534 *:AIX:*:[456])
535 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
536 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
537 IBM_ARCH=rs6000
538 else
539 IBM_ARCH=powerpc
540 fi
541 if [ -x /usr/bin/oslevel ] ; then
542 IBM_REV=`/usr/bin/oslevel`
543 else
544 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
545 fi
546 echo ${IBM_ARCH}-ibm-aix${IBM_REV}
547 exit ;;
548 *:AIX:*:*)
549 echo rs6000-ibm-aix
550 exit ;;
551 ibmrt:4.4BSD:*|romp-ibm:BSD:*)
552 echo romp-ibm-bsd4.4
553 exit ;;
554 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
555 echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
556 exit ;; # report: romp-ibm BSD 4.3
557 *:BOSX:*:*)
558 echo rs6000-bull-bosx
559 exit ;;
560 DPX/2?00:B.O.S.:*:*)
561 echo m68k-bull-sysv3
562 exit ;;
563 9000/[34]??:4.3bsd:1.*:*)
564 echo m68k-hp-bsd
565 exit ;;
566 hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
567 echo m68k-hp-bsd4.4
568 exit ;;
569 9000/[34678]??:HP-UX:*:*)
570 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
571 case "${UNAME_MACHINE}" in
572 9000/31? ) HP_ARCH=m68000 ;;
573 9000/[34]?? ) HP_ARCH=m68k ;;
574 9000/[678][0-9][0-9])
575 if [ -x /usr/bin/getconf ]; then
576 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
577 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
578 case "${sc_cpu_version}" in
579 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
580 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
581 532) # CPU_PA_RISC2_0
582 case "${sc_kernel_bits}" in
583 32) HP_ARCH="hppa2.0n" ;;
584 64) HP_ARCH="hppa2.0w" ;;
585 '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
586 esac ;;
587 esac
588 fi
589 if [ "${HP_ARCH}" = "" ]; then
590 eval $set_cc_for_build
591 sed 's/^ //' << EOF >$dummy.c
592
593 #define _HPUX_SOURCE
594 #include <stdlib.h>
595 #include <unistd.h>
596
597 int main ()
598 {
599 #if defined(_SC_KERNEL_BITS)
600 long bits = sysconf(_SC_KERNEL_BITS);
601 #endif
602 long cpu = sysconf (_SC_CPU_VERSION);
603
604 switch (cpu)
605 {
606 case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
607 case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
608 case CPU_PA_RISC2_0:
609 #if defined(_SC_KERNEL_BITS)
610 switch (bits)
611 {
612 case 64: puts ("hppa2.0w"); break;
613 case 32: puts ("hppa2.0n"); break;
614 default: puts ("hppa2.0"); break;
615 } break;
616 #else /* !defined(_SC_KERNEL_BITS) */
617 puts ("hppa2.0"); break;
618 #endif
619 default: puts ("hppa1.0"); break;
620 }
621 exit (0);
622 }
623 EOF
624 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
625 test -z "$HP_ARCH" && HP_ARCH=hppa
626 fi ;;
627 esac
628 if [ ${HP_ARCH} = "hppa2.0w" ]
629 then
630 eval $set_cc_for_build
631
632 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
633 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
634 # generating 64-bit code. GNU and HP use different nomenclature:
635 #
636 # $ CC_FOR_BUILD=cc ./config.guess
637 # => hppa2.0w-hp-hpux11.23
638 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
639 # => hppa64-hp-hpux11.23
640
641 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
642 grep __LP64__ >/dev/null
643 then
644 HP_ARCH="hppa2.0w"
645 else
646 HP_ARCH="hppa64"
647 fi
648 fi
649 echo ${HP_ARCH}-hp-hpux${HPUX_REV}
650 exit ;;
651 ia64:HP-UX:*:*)
652 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
653 echo ia64-hp-hpux${HPUX_REV}
654 exit ;;
655 3050*:HI-UX:*:*)
656 eval $set_cc_for_build
657 sed 's/^ //' << EOF >$dummy.c
658 #include <unistd.h>
659 int
660 main ()
661 {
662 long cpu = sysconf (_SC_CPU_VERSION);
663 /* The order matters, because CPU_IS_HP_MC68K erroneously returns
664 true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
665 results, however. */
666 if (CPU_IS_PA_RISC (cpu))
667 {
668 switch (cpu)
669 {
670 case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
671 case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
672 case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
673 default: puts ("hppa-hitachi-hiuxwe2"); break;
674 }
675 }
676 else if (CPU_IS_HP_MC68K (cpu))
677 puts ("m68k-hitachi-hiuxwe2");
678 else puts ("unknown-hitachi-hiuxwe2");
679 exit (0);
680 }
681 EOF
682 $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
683 { echo "$SYSTEM_NAME"; exit; }
684 echo unknown-hitachi-hiuxwe2
685 exit ;;
686 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
687 echo hppa1.1-hp-bsd
688 exit ;;
689 9000/8??:4.3bsd:*:*)
690 echo hppa1.0-hp-bsd
691 exit ;;
692 *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
693 echo hppa1.0-hp-mpeix
694 exit ;;
695 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
696 echo hppa1.1-hp-osf
697 exit ;;
698 hp8??:OSF1:*:*)
699 echo hppa1.0-hp-osf
700 exit ;;
701 i*86:OSF1:*:*)
702 if [ -x /usr/sbin/sysversion ] ; then
703 echo ${UNAME_MACHINE}-unknown-osf1mk
704 else
705 echo ${UNAME_MACHINE}-unknown-osf1
706 fi
707 exit ;;
708 parisc*:Lites*:*:*)
709 echo hppa1.1-hp-lites
710 exit ;;
711 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
712 echo c1-convex-bsd
713 exit ;;
714 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
715 if getsysinfo -f scalar_acc
716 then echo c32-convex-bsd
717 else echo c2-convex-bsd
718 fi
719 exit ;;
720 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
721 echo c34-convex-bsd
722 exit ;;
723 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
724 echo c38-convex-bsd
725 exit ;;
726 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
727 echo c4-convex-bsd
728 exit ;;
729 CRAY*Y-MP:*:*:*)
730 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
731 exit ;;
732 CRAY*[A-Z]90:*:*:*)
733 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
734 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
735 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
736 -e 's/\.[^.]*$/.X/'
737 exit ;;
738 CRAY*TS:*:*:*)
739 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
740 exit ;;
741 CRAY*T3E:*:*:*)
742 echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
743 exit ;;
744 CRAY*SV1:*:*:*)
745 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
746 exit ;;
747 *:UNICOS/mp:*:*)
748 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
749 exit ;;
750 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
751 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
752 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
753 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
754 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
755 exit ;;
756 5000:UNIX_System_V:4.*:*)
757 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
758 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
759 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
760 exit ;;
761 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
762 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
763 exit ;;
764 sparc*:BSD/OS:*:*)
765 echo sparc-unknown-bsdi${UNAME_RELEASE}
766 exit ;;
767 *:BSD/OS:*:*)
768 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
769 exit ;;
770 *:FreeBSD:*:*)
771 case ${UNAME_MACHINE} in
772 pc98)
773 echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
774 amd64)
775 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
776 *)
777 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
778 esac
779 exit ;;
780 i*:CYGWIN*:*)
781 echo ${UNAME_MACHINE}-pc-cygwin
782 exit ;;
783 *:MINGW*:*)
784 echo ${UNAME_MACHINE}-pc-mingw32
785 exit ;;
786 i*:windows32*:*)
787 # uname -m includes "-pc" on this system.
788 echo ${UNAME_MACHINE}-mingw32
789 exit ;;
790 i*:PW*:*)
791 echo ${UNAME_MACHINE}-pc-pw32
792 exit ;;
793 *:Interix*:[3456]*)
794 case ${UNAME_MACHINE} in
795 x86)
796 echo i586-pc-interix${UNAME_RELEASE}
797 exit ;;
798 EM64T | authenticamd)
799 echo x86_64-unknown-interix${UNAME_RELEASE}
800 exit ;;
801 IA64)
802 echo ia64-unknown-interix${UNAME_RELEASE}
803 exit ;;
804 esac ;;
805 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
806 echo i${UNAME_MACHINE}-pc-mks
807 exit ;;
808 i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
809 # How do we know it's Interix rather than the generic POSIX subsystem?
810 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
811 # UNAME_MACHINE based on the output of uname instead of i386?
812 echo i586-pc-interix
813 exit ;;
814 i*:UWIN*:*)
815 echo ${UNAME_MACHINE}-pc-uwin
816 exit ;;
817 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
818 echo x86_64-unknown-cygwin
819 exit ;;
820 p*:CYGWIN*:*)
821 echo powerpcle-unknown-cygwin
822 exit ;;
823 prep*:SunOS:5.*:*)
824 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
825 exit ;;
826 *:GNU:*:*)
827 # the GNU system
828 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
829 exit ;;
830 *:GNU/*:*:*)
831 # other systems with GNU libc and userland
832 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
833 exit ;;
834 i*86:Minix:*:*)
835 echo ${UNAME_MACHINE}-pc-minix
836 exit ;;
837 arm*:Linux:*:*)
838 eval $set_cc_for_build
839 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
840 | grep -q __ARM_EABI__
841 then
842 echo ${UNAME_MACHINE}-unknown-linux-gnu
843 else
844 echo ${UNAME_MACHINE}-unknown-linux-gnueabi
845 fi
846 exit ;;
847 avr32*:Linux:*:*)
848 echo ${UNAME_MACHINE}-unknown-linux-gnu
849 exit ;;
850 cris:Linux:*:*)
851 echo cris-axis-linux-gnu
852 exit ;;
853 crisv32:Linux:*:*)
854 echo crisv32-axis-linux-gnu
855 exit ;;
856 frv:Linux:*:*)
857 echo frv-unknown-linux-gnu
858 exit ;;
859 ia64:Linux:*:*)
860 echo ${UNAME_MACHINE}-unknown-linux-gnu
861 exit ;;
862 m32r*:Linux:*:*)
863 echo ${UNAME_MACHINE}-unknown-linux-gnu
864 exit ;;
865 m68*:Linux:*:*)
866 echo ${UNAME_MACHINE}-unknown-linux-gnu
867 exit ;;
868 mips:Linux:*:*)
869 eval $set_cc_for_build
870 sed 's/^ //' << EOF >$dummy.c
871 #undef CPU
872 #undef mips
873 #undef mipsel
874 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
875 CPU=mipsel
876 #else
877 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
878 CPU=mips
879 #else
880 CPU=
881 #endif
882 #endif
883 EOF
884 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
885 /^CPU/{
886 s: ::g
887 p
888 }'`"
889 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
890 ;;
891 mips64:Linux:*:*)
892 eval $set_cc_for_build
893 sed 's/^ //' << EOF >$dummy.c
894 #undef CPU
895 #undef mips64
896 #undef mips64el
897 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
898 CPU=mips64el
899 #else
900 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
901 CPU=mips64
902 #else
903 CPU=
904 #endif
905 #endif
906 EOF
907 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
908 /^CPU/{
909 s: ::g
910 p
911 }'`"
912 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
913 ;;
914 or32:Linux:*:*)
915 echo or32-unknown-linux-gnu
916 exit ;;
917 ppc:Linux:*:*)
918 echo powerpc-unknown-linux-gnu
919 exit ;;
920 ppc64:Linux:*:*)
921 echo powerpc64-unknown-linux-gnu
922 exit ;;
923 alpha:Linux:*:*)
924 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
925 EV5) UNAME_MACHINE=alphaev5 ;;
926 EV56) UNAME_MACHINE=alphaev56 ;;
927 PCA56) UNAME_MACHINE=alphapca56 ;;
928 PCA57) UNAME_MACHINE=alphapca56 ;;
929 EV6) UNAME_MACHINE=alphaev6 ;;
930 EV67) UNAME_MACHINE=alphaev67 ;;
931 EV68*) UNAME_MACHINE=alphaev68 ;;
932 esac
933 objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
934 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
935 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
936 exit ;;
937 parisc:Linux:*:* | hppa:Linux:*:*)
938 # Look for CPU level
939 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
940 PA7*) echo hppa1.1-unknown-linux-gnu ;;
941 PA8*) echo hppa2.0-unknown-linux-gnu ;;
942 *) echo hppa-unknown-linux-gnu ;;
943 esac
944 exit ;;
945 parisc64:Linux:*:* | hppa64:Linux:*:*)
946 echo hppa64-unknown-linux-gnu
947 exit ;;
948 s390:Linux:*:* | s390x:Linux:*:*)
949 echo ${UNAME_MACHINE}-ibm-linux
950 exit ;;
951 sh64*:Linux:*:*)
952 echo ${UNAME_MACHINE}-unknown-linux-gnu
953 exit ;;
954 sh*:Linux:*:*)
955 echo ${UNAME_MACHINE}-unknown-linux-gnu
956 exit ;;
957 sparc:Linux:*:* | sparc64:Linux:*:*)
958 echo ${UNAME_MACHINE}-unknown-linux-gnu
959 exit ;;
960 vax:Linux:*:*)
961 echo ${UNAME_MACHINE}-dec-linux-gnu
962 exit ;;
963 x86_64:Linux:*:*)
964 echo x86_64-unknown-linux-gnu
965 exit ;;
966 xtensa*:Linux:*:*)
967 echo ${UNAME_MACHINE}-unknown-linux-gnu
968 exit ;;
969 i*86:Linux:*:*)
970 # The BFD linker knows what the default object file format is, so
971 # first see if it will tell us. cd to the root directory to prevent
972 # problems with other programs or directories called `ld' in the path.
973 # Set LC_ALL=C to ensure ld outputs messages in English.
974 ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
975 | sed -ne '/supported targets:/!d
976 s/[ ][ ]*/ /g
977 s/.*supported targets: *//
978 s/ .*//
979 p'`
980 case "$ld_supported_targets" in
981 elf32-i386)
982 TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
983 ;;
984 a.out-i386-linux)
985 echo "${UNAME_MACHINE}-pc-linux-gnuaout"
986 exit ;;
987 coff-i386)
988 echo "${UNAME_MACHINE}-pc-linux-gnucoff"
989 exit ;;
990 "")
991 # Either a pre-BFD a.out linker (linux-gnuoldld) or
992 # one that does not give us useful --help.
993 echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
994 exit ;;
995 esac
996 # Determine whether the default compiler is a.out or elf
997 eval $set_cc_for_build
998 sed 's/^ //' << EOF >$dummy.c
999 #include <features.h>
1000 #ifdef __ELF__
1001 # ifdef __GLIBC__
1002 # if __GLIBC__ >= 2
1003 LIBC=gnu
1004 # else
1005 LIBC=gnulibc1
1006 # endif
1007 # else
1008 LIBC=gnulibc1
1009 # endif
1010 #else
1011 #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
1012 LIBC=gnu
1013 #else
1014 LIBC=gnuaout
1015 #endif
1016 #endif
1017 #ifdef __dietlibc__
1018 LIBC=dietlibc
1019 #endif
1020 EOF
1021 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
1022 /^LIBC/{
1023 s: ::g
1024 p
1025 }'`"
1026 test x"${LIBC}" != x && {
1027 echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
1028 exit
1029 }
1030 test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
1031 ;;
1032 i*86:DYNIX/ptx:4*:*)
1033 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
1034 # earlier versions are messed up and put the nodename in both
1035 # sysname and nodename.
1036 echo i386-sequent-sysv4
1037 exit ;;
1038 i*86:UNIX_SV:4.2MP:2.*)
1039 # Unixware is an offshoot of SVR4, but it has its own version
1040 # number series starting with 2...
1041 # I am not positive that other SVR4 systems won't match this,
1042 # I just have to hope. -- rms.
1043 # Use sysv4.2uw... so that sysv4* matches it.
1044 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
1045 exit ;;
1046 i*86:OS/2:*:*)
1047 # If we were able to find `uname', then EMX Unix compatibility
1048 # is probably installed.
1049 echo ${UNAME_MACHINE}-pc-os2-emx
1050 exit ;;
1051 i*86:XTS-300:*:STOP)
1052 echo ${UNAME_MACHINE}-unknown-stop
1053 exit ;;
1054 i*86:atheos:*:*)
1055 echo ${UNAME_MACHINE}-unknown-atheos
1056 exit ;;
1057 i*86:syllable:*:*)
1058 echo ${UNAME_MACHINE}-pc-syllable
1059 exit ;;
1060 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
1061 echo i386-unknown-lynxos${UNAME_RELEASE}
1062 exit ;;
1063 i*86:*DOS:*:*)
1064 echo ${UNAME_MACHINE}-pc-msdosdjgpp
1065 exit ;;
1066 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
1067 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
1068 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
1069 echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
1070 else
1071 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
1072 fi
1073 exit ;;
1074 i*86:*:5:[678]*)
1075 # UnixWare 7.x, OpenUNIX and OpenServer 6.
1076 case `/bin/uname -X | grep "^Machine"` in
1077 *486*) UNAME_MACHINE=i486 ;;
1078 *Pentium) UNAME_MACHINE=i586 ;;
1079 *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
1080 esac
1081 echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1082 exit ;;
1083 i*86:*:3.2:*)
1084 if test -f /usr/options/cb.name; then
1085 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
1086 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
1087 elif /bin/uname -X 2>/dev/null >/dev/null ; then
1088 UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
1089 (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
1090 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
1091 && UNAME_MACHINE=i586
1092 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
1093 && UNAME_MACHINE=i686
1094 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
1095 && UNAME_MACHINE=i686
1096 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
1097 else
1098 echo ${UNAME_MACHINE}-pc-sysv32
1099 fi
1100 exit ;;
1101 pc:*:*:*)
1102 # Left here for compatibility:
1103 # uname -m prints for DJGPP always 'pc', but it prints nothing about
1104 # the processor, so we play safe by assuming i386.
1105 echo i386-pc-msdosdjgpp
1106 exit ;;
1107 Intel:Mach:3*:*)
1108 echo i386-pc-mach3
1109 exit ;;
1110 paragon:*:*:*)
1111 echo i860-intel-osf1
1112 exit ;;
1113 i860:*:4.*:*) # i860-SVR4
1114 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1115 echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
1116 else # Add other i860-SVR4 vendors below as they are discovered.
1117 echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
1118 fi
1119 exit ;;
1120 mini*:CTIX:SYS*5:*)
1121 # "miniframe"
1122 echo m68010-convergent-sysv
1123 exit ;;
1124 mc68k:UNIX:SYSTEM5:3.51m)
1125 echo m68k-convergent-sysv
1126 exit ;;
1127 M680?0:D-NIX:5.3:*)
1128 echo m68k-diab-dnix
1129 exit ;;
1130 M68*:*:R3V[5678]*:*)
1131 test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
1132 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
1133 OS_REL=''
1134 test -r /etc/.relid \
1135 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1136 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1137 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1138 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1139 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1140 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1141 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1142 && { echo i486-ncr-sysv4; exit; } ;;
1143 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1144 echo m68k-unknown-lynxos${UNAME_RELEASE}
1145 exit ;;
1146 mc68030:UNIX_System_V:4.*:*)
1147 echo m68k-atari-sysv4
1148 exit ;;
1149 TSUNAMI:LynxOS:2.*:*)
1150 echo sparc-unknown-lynxos${UNAME_RELEASE}
1151 exit ;;
1152 rs6000:LynxOS:2.*:*)
1153 echo rs6000-unknown-lynxos${UNAME_RELEASE}
1154 exit ;;
1155 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
1156 echo powerpc-unknown-lynxos${UNAME_RELEASE}
1157 exit ;;
1158 SM[BE]S:UNIX_SV:*:*)
1159 echo mips-dde-sysv${UNAME_RELEASE}
1160 exit ;;
1161 RM*:ReliantUNIX-*:*:*)
1162 echo mips-sni-sysv4
1163 exit ;;
1164 RM*:SINIX-*:*:*)
1165 echo mips-sni-sysv4
1166 exit ;;
1167 *:SINIX-*:*:*)
1168 if uname -p 2>/dev/null >/dev/null ; then
1169 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1170 echo ${UNAME_MACHINE}-sni-sysv4
1171 else
1172 echo ns32k-sni-sysv
1173 fi
1174 exit ;;
1175 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1176 # says <Richard.M.Bartel@ccMail.Census.GOV>
1177 echo i586-unisys-sysv4
1178 exit ;;
1179 *:UNIX_System_V:4*:FTX*)
1180 # From Gerald Hewes <hewes@openmarket.com>.
1181 # How about differentiating between stratus architectures? -djm
1182 echo hppa1.1-stratus-sysv4
1183 exit ;;
1184 *:*:*:FTX*)
1185 # From seanf@swdc.stratus.com.
1186 echo i860-stratus-sysv4
1187 exit ;;
1188 i*86:VOS:*:*)
1189 # From Paul.Green@stratus.com.
1190 echo ${UNAME_MACHINE}-stratus-vos
1191 exit ;;
1192 *:VOS:*:*)
1193 # From Paul.Green@stratus.com.
1194 echo hppa1.1-stratus-vos
1195 exit ;;
1196 mc68*:A/UX:*:*)
1197 echo m68k-apple-aux${UNAME_RELEASE}
1198 exit ;;
1199 news*:NEWS-OS:6*:*)
1200 echo mips-sony-newsos6
1201 exit ;;
1202 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1203 if [ -d /usr/nec ]; then
1204 echo mips-nec-sysv${UNAME_RELEASE}
1205 else
1206 echo mips-unknown-sysv${UNAME_RELEASE}
1207 fi
1208 exit ;;
1209 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
1210 echo powerpc-be-beos
1211 exit ;;
1212 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
1213 echo powerpc-apple-beos
1214 exit ;;
1215 BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
1216 echo i586-pc-beos
1217 exit ;;
1218 SX-4:SUPER-UX:*:*)
1219 echo sx4-nec-superux${UNAME_RELEASE}
1220 exit ;;
1221 SX-5:SUPER-UX:*:*)
1222 echo sx5-nec-superux${UNAME_RELEASE}
1223 exit ;;
1224 SX-6:SUPER-UX:*:*)
1225 echo sx6-nec-superux${UNAME_RELEASE}
1226 exit ;;
1227 SX-7:SUPER-UX:*:*)
1228 echo sx7-nec-superux${UNAME_RELEASE}
1229 exit ;;
1230 SX-8:SUPER-UX:*:*)
1231 echo sx8-nec-superux${UNAME_RELEASE}
1232 exit ;;
1233 SX-8R:SUPER-UX:*:*)
1234 echo sx8r-nec-superux${UNAME_RELEASE}
1235 exit ;;
1236 Power*:Rhapsody:*:*)
1237 echo powerpc-apple-rhapsody${UNAME_RELEASE}
1238 exit ;;
1239 *:Rhapsody:*:*)
1240 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1241 exit ;;
1242 *:Darwin:*:*)
1243 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1244 case $UNAME_PROCESSOR in
1245 unknown) UNAME_PROCESSOR=powerpc ;;
1246 esac
1247 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1248 exit ;;
1249 *:procnto*:*:* | *:QNX:[0123456789]*:*)
1250 UNAME_PROCESSOR=`uname -p`
1251 if test "$UNAME_PROCESSOR" = "x86"; then
1252 UNAME_PROCESSOR=i386
1253 UNAME_MACHINE=pc
1254 fi
1255 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
1256 exit ;;
1257 *:QNX:*:4*)
1258 echo i386-pc-qnx
1259 exit ;;
1260 NSE-?:NONSTOP_KERNEL:*:*)
1261 echo nse-tandem-nsk${UNAME_RELEASE}
1262 exit ;;
1263 NSR-?:NONSTOP_KERNEL:*:*)
1264 echo nsr-tandem-nsk${UNAME_RELEASE}
1265 exit ;;
1266 *:NonStop-UX:*:*)
1267 echo mips-compaq-nonstopux
1268 exit ;;
1269 BS2000:POSIX*:*:*)
1270 echo bs2000-siemens-sysv
1271 exit ;;
1272 DS/*:UNIX_System_V:*:*)
1273 echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
1274 exit ;;
1275 *:Plan9:*:*)
1276 # "uname -m" is not consistent, so use $cputype instead. 386
1277 # is converted to i386 for consistency with other x86
1278 # operating systems.
1279 if test "$cputype" = "386"; then
1280 UNAME_MACHINE=i386
1281 else
1282 UNAME_MACHINE="$cputype"
1283 fi
1284 echo ${UNAME_MACHINE}-unknown-plan9
1285 exit ;;
1286 *:TOPS-10:*:*)
1287 echo pdp10-unknown-tops10
1288 exit ;;
1289 *:TENEX:*:*)
1290 echo pdp10-unknown-tenex
1291 exit ;;
1292 KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
1293 echo pdp10-dec-tops20
1294 exit ;;
1295 XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
1296 echo pdp10-xkl-tops20
1297 exit ;;
1298 *:TOPS-20:*:*)
1299 echo pdp10-unknown-tops20
1300 exit ;;
1301 *:ITS:*:*)
1302 echo pdp10-unknown-its
1303 exit ;;
1304 SEI:*:*:SEIUX)
1305 echo mips-sei-seiux${UNAME_RELEASE}
1306 exit ;;
1307 *:DragonFly:*:*)
1308 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1309 exit ;;
1310 *:*VMS:*:*)
1311 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1312 case "${UNAME_MACHINE}" in
1313 A*) echo alpha-dec-vms ; exit ;;
1314 I*) echo ia64-dec-vms ; exit ;;
1315 V*) echo vax-dec-vms ; exit ;;
1316 esac ;;
1317 *:XENIX:*:SysV)
1318 echo i386-pc-xenix
1319 exit ;;
1320 i*86:skyos:*:*)
1321 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
1322 exit ;;
1323 i*86:rdos:*:*)
1324 echo ${UNAME_MACHINE}-pc-rdos
1325 exit ;;
1326 esac
1327
1328 #echo '(No uname command or uname output not recognized.)' 1>&2
1329 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
1330
1331 eval $set_cc_for_build
1332 cat >$dummy.c <<EOF
1333 #ifdef _SEQUENT_
1334 # include <sys/types.h>
1335 # include <sys/utsname.h>
1336 #endif
1337 main ()
1338 {
1339 #if defined (sony)
1340 #if defined (MIPSEB)
1341 /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
1342 I don't know.... */
1343 printf ("mips-sony-bsd\n"); exit (0);
1344 #else
1345 #include <sys/param.h>
1346 printf ("m68k-sony-newsos%s\n",
1347 #ifdef NEWSOS4
1348 "4"
1349 #else
1350 ""
1351 #endif
1352 ); exit (0);
1353 #endif
1354 #endif
1355
1356 #if defined (__arm) && defined (__acorn) && defined (__unix)
1357 printf ("arm-acorn-riscix\n"); exit (0);
1358 #endif
1359
1360 #if defined (hp300) && !defined (hpux)
1361 printf ("m68k-hp-bsd\n"); exit (0);
1362 #endif
1363
1364 #if defined (NeXT)
1365 #if !defined (__ARCHITECTURE__)
1366 #define __ARCHITECTURE__ "m68k"
1367 #endif
1368 int version;
1369 version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
1370 if (version < 4)
1371 printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
1372 else
1373 printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
1374 exit (0);
1375 #endif
1376
1377 #if defined (MULTIMAX) || defined (n16)
1378 #if defined (UMAXV)
1379 printf ("ns32k-encore-sysv\n"); exit (0);
1380 #else
1381 #if defined (CMU)
1382 printf ("ns32k-encore-mach\n"); exit (0);
1383 #else
1384 printf ("ns32k-encore-bsd\n"); exit (0);
1385 #endif
1386 #endif
1387 #endif
1388
1389 #if defined (__386BSD__)
1390 printf ("i386-pc-bsd\n"); exit (0);
1391 #endif
1392
1393 #if defined (sequent)
1394 #if defined (i386)
1395 printf ("i386-sequent-dynix\n"); exit (0);
1396 #endif
1397 #if defined (ns32000)
1398 printf ("ns32k-sequent-dynix\n"); exit (0);
1399 #endif
1400 #endif
1401
1402 #if defined (_SEQUENT_)
1403 struct utsname un;
1404
1405 uname(&un);
1406
1407 if (strncmp(un.version, "V2", 2) == 0) {
1408 printf ("i386-sequent-ptx2\n"); exit (0);
1409 }
1410 if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
1411 printf ("i386-sequent-ptx1\n"); exit (0);
1412 }
1413 printf ("i386-sequent-ptx\n"); exit (0);
1414
1415 #endif
1416
1417 #if defined (vax)
1418 # if !defined (ultrix)
1419 # include <sys/param.h>
1420 # if defined (BSD)
1421 # if BSD == 43
1422 printf ("vax-dec-bsd4.3\n"); exit (0);
1423 # else
1424 # if BSD == 199006
1425 printf ("vax-dec-bsd4.3reno\n"); exit (0);
1426 # else
1427 printf ("vax-dec-bsd\n"); exit (0);
1428 # endif
1429 # endif
1430 # else
1431 printf ("vax-dec-bsd\n"); exit (0);
1432 # endif
1433 # else
1434 printf ("vax-dec-ultrix\n"); exit (0);
1435 # endif
1436 #endif
1437
1438 #if defined (alliant) && defined (i860)
1439 printf ("i860-alliant-bsd\n"); exit (0);
1440 #endif
1441
1442 exit (1);
1443 }
1444 EOF
1445
1446 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
1447 { echo "$SYSTEM_NAME"; exit; }
1448
1449 # Apollos put the system type in the environment.
1450
1451 test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
1452
1453 # Convex versions that predate uname can use getsysinfo(1)
1454
1455 if [ -x /usr/convex/getsysinfo ]
1456 then
1457 case `getsysinfo -f cpu_type` in
1458 c1*)
1459 echo c1-convex-bsd
1460 exit ;;
1461 c2*)
1462 if getsysinfo -f scalar_acc
1463 then echo c32-convex-bsd
1464 else echo c2-convex-bsd
1465 fi
1466 exit ;;
1467 c34*)
1468 echo c34-convex-bsd
1469 exit ;;
1470 c38*)
1471 echo c38-convex-bsd
1472 exit ;;
1473 c4*)
1474 echo c4-convex-bsd
1475 exit ;;
1476 esac
1477 fi
1478
1479 cat >&2 <<EOF
1480 $0: unable to guess system type
1481
1482 This script, last modified $timestamp, has failed to recognize
1483 the operating system you are using. It is advised that you
1484 download the most up to date version of the config scripts from
1485
1486 http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
1487 and
1488 http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
1489
1490 If the version you run ($0) is already up to date, please
1491 send the following data and any information you think might be
1492 pertinent to <config-patches@gnu.org> in order to provide the needed
1493 information to handle your system.
1494
1495 config.guess timestamp = $timestamp
1496
1497 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1498 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1499 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1500 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1501
1502 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
1503 /bin/uname -X = `(/bin/uname -X) 2>/dev/null`
1504
1505 hostinfo = `(hostinfo) 2>/dev/null`
1506 /bin/universe = `(/bin/universe) 2>/dev/null`
1507 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
1508 /bin/arch = `(/bin/arch) 2>/dev/null`
1509 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
1510 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
1511
1512 UNAME_MACHINE = ${UNAME_MACHINE}
1513 UNAME_RELEASE = ${UNAME_RELEASE}
1514 UNAME_SYSTEM = ${UNAME_SYSTEM}
1515 UNAME_VERSION = ${UNAME_VERSION}
1516 EOF
1517
1518 exit 1
1519
1520 # Local variables:
1521 # eval: (add-hook 'write-file-hooks 'time-stamp)
1522 # time-stamp-start: "timestamp='"
1523 # time-stamp-format: "%:y-%02m-%02d"
1524 # time-stamp-end: "'"
1525 # End:
+0
-1658
config.sub less more
0 #! /bin/sh
1 # Configuration validation subroutine script.
2 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
4 # Free Software Foundation, Inc.
5
6 timestamp='2008-01-16'
7
8 # This file is (in principle) common to ALL GNU software.
9 # The presence of a machine in this file suggests that SOME GNU software
10 # can handle that machine. It does not imply ALL GNU software can.
11 #
12 # This file is free software; you can redistribute it and/or modify
13 # it under the terms of the GNU General Public License as published by
14 # the Free Software Foundation; either version 2 of the License, or
15 # (at your option) any later version.
16 #
17 # This program is distributed in the hope that it will be useful,
18 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 # GNU General Public License for more details.
21 #
22 # You should have received a copy of the GNU General Public License
23 # along with this program; if not, write to the Free Software
24 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
25 # 02110-1301, USA.
26 #
27 # As a special exception to the GNU General Public License, if you
28 # distribute this file as part of a program that contains a
29 # configuration script generated by Autoconf, you may include it under
30 # the same distribution terms that you use for the rest of that program.
31
32
33 # Please send patches to <config-patches@gnu.org>. Submit a context
34 # diff and a properly formatted ChangeLog entry.
35 #
36 # Configuration subroutine to validate and canonicalize a configuration type.
37 # Supply the specified configuration type as an argument.
38 # If it is invalid, we print an error message on stderr and exit with code 1.
39 # Otherwise, we print the canonical config type on stdout and succeed.
40
41 # This file is supposed to be the same for all GNU packages
42 # and recognize all the CPU types, system types and aliases
43 # that are meaningful with *any* GNU software.
44 # Each package is responsible for reporting which valid configurations
45 # it does not support. The user should be able to distinguish
46 # a failure to support a valid configuration from a meaningless
47 # configuration.
48
49 # The goal of this file is to map all the various variations of a given
50 # machine specification into a single specification in the form:
51 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
52 # or in some cases, the newer four-part form:
53 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
54 # It is wrong to echo any other type of specification.
55
56 me=`echo "$0" | sed -e 's,.*/,,'`
57
58 usage="\
59 Usage: $0 [OPTION] CPU-MFR-OPSYS
60 $0 [OPTION] ALIAS
61
62 Canonicalize a configuration name.
63
64 Operation modes:
65 -h, --help print this help, then exit
66 -t, --time-stamp print date of last modification, then exit
67 -v, --version print version number, then exit
68
69 Report bugs and patches to <config-patches@gnu.org>."
70
71 version="\
72 GNU config.sub ($timestamp)
73
74 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
75 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
76
77 This is free software; see the source for copying conditions. There is NO
78 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
79
80 help="
81 Try \`$me --help' for more information."
82
83 # Parse command line
84 while test $# -gt 0 ; do
85 case $1 in
86 --time-stamp | --time* | -t )
87 echo "$timestamp" ; exit ;;
88 --version | -v )
89 echo "$version" ; exit ;;
90 --help | --h* | -h )
91 echo "$usage"; exit ;;
92 -- ) # Stop option processing
93 shift; break ;;
94 - ) # Use stdin as input.
95 break ;;
96 -* )
97 echo "$me: invalid option $1$help"
98 exit 1 ;;
99
100 *local*)
101 # First pass through any local machine types.
102 echo $1
103 exit ;;
104
105 * )
106 break ;;
107 esac
108 done
109
110 case $# in
111 0) echo "$me: missing argument$help" >&2
112 exit 1;;
113 1) ;;
114 *) echo "$me: too many arguments$help" >&2
115 exit 1;;
116 esac
117
118 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
119 # Here we must recognize all the valid KERNEL-OS combinations.
120 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
121 case $maybe_os in
122 nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
123 uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
124 storm-chaos* | os2-emx* | rtmk-nova*)
125 os=-$maybe_os
126 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
127 ;;
128 *)
129 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
130 if [ $basic_machine != $1 ]
131 then os=`echo $1 | sed 's/.*-/-/'`
132 else os=; fi
133 ;;
134 esac
135
136 ### Let's recognize common machines as not being operating systems so
137 ### that things like config.sub decstation-3100 work. We also
138 ### recognize some manufacturers as not being operating systems, so we
139 ### can provide default operating systems below.
140 case $os in
141 -sun*os*)
142 # Prevent following clause from handling this invalid input.
143 ;;
144 -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
145 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
146 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
147 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
148 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
149 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
150 -apple | -axis | -knuth | -cray)
151 os=
152 basic_machine=$1
153 ;;
154 -sim | -cisco | -oki | -wec | -winbond)
155 os=
156 basic_machine=$1
157 ;;
158 -scout)
159 ;;
160 -wrs)
161 os=-vxworks
162 basic_machine=$1
163 ;;
164 -chorusos*)
165 os=-chorusos
166 basic_machine=$1
167 ;;
168 -chorusrdb)
169 os=-chorusrdb
170 basic_machine=$1
171 ;;
172 -hiux*)
173 os=-hiuxwe2
174 ;;
175 -sco6)
176 os=-sco5v6
177 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
178 ;;
179 -sco5)
180 os=-sco3.2v5
181 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
182 ;;
183 -sco4)
184 os=-sco3.2v4
185 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
186 ;;
187 -sco3.2.[4-9]*)
188 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
189 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
190 ;;
191 -sco3.2v[4-9]*)
192 # Don't forget version if it is 3.2v4 or newer.
193 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
194 ;;
195 -sco5v6*)
196 # Don't forget version if it is 3.2v4 or newer.
197 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
198 ;;
199 -sco*)
200 os=-sco3.2v2
201 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
202 ;;
203 -udk*)
204 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
205 ;;
206 -isc)
207 os=-isc2.2
208 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
209 ;;
210 -clix*)
211 basic_machine=clipper-intergraph
212 ;;
213 -isc*)
214 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
215 ;;
216 -lynx*)
217 os=-lynxos
218 ;;
219 -ptx*)
220 basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
221 ;;
222 -windowsnt*)
223 os=`echo $os | sed -e 's/windowsnt/winnt/'`
224 ;;
225 -psos*)
226 os=-psos
227 ;;
228 -mint | -mint[0-9]*)
229 basic_machine=m68k-atari
230 os=-mint
231 ;;
232 esac
233
234 # Decode aliases for certain CPU-COMPANY combinations.
235 case $basic_machine in
236 # Recognize the basic CPU types without company name.
237 # Some are omitted here because they have special meanings below.
238 1750a | 580 \
239 | a29k \
240 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
241 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
242 | am33_2.0 \
243 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
244 | bfin \
245 | c4x | clipper \
246 | d10v | d30v | dlx | dsp16xx \
247 | fido | fr30 | frv \
248 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
249 | i370 | i860 | i960 | ia64 \
250 | ip2k | iq2000 \
251 | m32c | m32r | m32rle | m68000 | m68k | m88k \
252 | maxq | mb | microblaze | mcore | mep \
253 | mips | mipsbe | mipseb | mipsel | mipsle \
254 | mips16 \
255 | mips64 | mips64el \
256 | mips64vr | mips64vrel \
257 | mips64orion | mips64orionel \
258 | mips64vr4100 | mips64vr4100el \
259 | mips64vr4300 | mips64vr4300el \
260 | mips64vr5000 | mips64vr5000el \
261 | mips64vr5900 | mips64vr5900el \
262 | mipsisa32 | mipsisa32el \
263 | mipsisa32r2 | mipsisa32r2el \
264 | mipsisa64 | mipsisa64el \
265 | mipsisa64r2 | mipsisa64r2el \
266 | mipsisa64sb1 | mipsisa64sb1el \
267 | mipsisa64sr71k | mipsisa64sr71kel \
268 | mipstx39 | mipstx39el \
269 | mn10200 | mn10300 \
270 | mt \
271 | msp430 \
272 | nios | nios2 \
273 | ns16k | ns32k \
274 | or32 \
275 | pdp10 | pdp11 | pj | pjl \
276 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
277 | pyramid \
278 | score \
279 | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
280 | sh64 | sh64le \
281 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
282 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
283 | spu | strongarm \
284 | tahoe | thumb | tic4x | tic80 | tron \
285 | v850 | v850e \
286 | we32k \
287 | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
288 | z8k)
289 basic_machine=$basic_machine-unknown
290 ;;
291 m6811 | m68hc11 | m6812 | m68hc12)
292 # Motorola 68HC11/12.
293 basic_machine=$basic_machine-unknown
294 os=-none
295 ;;
296 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
297 ;;
298 ms1)
299 basic_machine=mt-unknown
300 ;;
301
302 # We use `pc' rather than `unknown'
303 # because (1) that's what they normally are, and
304 # (2) the word "unknown" tends to confuse beginning users.
305 i*86 | x86_64)
306 basic_machine=$basic_machine-pc
307 ;;
308 # Object if more than one company name word.
309 *-*-*)
310 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
311 exit 1
312 ;;
313 # Recognize the basic CPU types with company name.
314 580-* \
315 | a29k-* \
316 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
317 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
318 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
319 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
320 | avr-* | avr32-* \
321 | bfin-* | bs2000-* \
322 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
323 | clipper-* | craynv-* | cydra-* \
324 | d10v-* | d30v-* | dlx-* \
325 | elxsi-* \
326 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
327 | h8300-* | h8500-* \
328 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
329 | i*86-* | i860-* | i960-* | ia64-* \
330 | ip2k-* | iq2000-* \
331 | m32c-* | m32r-* | m32rle-* \
332 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
333 | m88110-* | m88k-* | maxq-* | mcore-* \
334 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
335 | mips16-* \
336 | mips64-* | mips64el-* \
337 | mips64vr-* | mips64vrel-* \
338 | mips64orion-* | mips64orionel-* \
339 | mips64vr4100-* | mips64vr4100el-* \
340 | mips64vr4300-* | mips64vr4300el-* \
341 | mips64vr5000-* | mips64vr5000el-* \
342 | mips64vr5900-* | mips64vr5900el-* \
343 | mipsisa32-* | mipsisa32el-* \
344 | mipsisa32r2-* | mipsisa32r2el-* \
345 | mipsisa64-* | mipsisa64el-* \
346 | mipsisa64r2-* | mipsisa64r2el-* \
347 | mipsisa64sb1-* | mipsisa64sb1el-* \
348 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
349 | mipstx39-* | mipstx39el-* \
350 | mmix-* \
351 | mt-* \
352 | msp430-* \
353 | nios-* | nios2-* \
354 | none-* | np1-* | ns16k-* | ns32k-* \
355 | orion-* \
356 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
357 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
358 | pyramid-* \
359 | romp-* | rs6000-* \
360 | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
361 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
362 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
363 | sparclite-* \
364 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
365 | tahoe-* | thumb-* \
366 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
367 | tron-* \
368 | v850-* | v850e-* | vax-* \
369 | we32k-* \
370 | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
371 | xstormy16-* | xtensa*-* \
372 | ymp-* \
373 | z8k-*)
374 ;;
375 # Recognize the basic CPU types without company name, with glob match.
376 xtensa*)
377 basic_machine=$basic_machine-unknown
378 ;;
379 # Recognize the various machine names and aliases which stand
380 # for a CPU type and a company and sometimes even an OS.
381 386bsd)
382 basic_machine=i386-unknown
383 os=-bsd
384 ;;
385 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
386 basic_machine=m68000-att
387 ;;
388 3b*)
389 basic_machine=we32k-att
390 ;;
391 a29khif)
392 basic_machine=a29k-amd
393 os=-udi
394 ;;
395 abacus)
396 basic_machine=abacus-unknown
397 ;;
398 adobe68k)
399 basic_machine=m68010-adobe
400 os=-scout
401 ;;
402 alliant | fx80)
403 basic_machine=fx80-alliant
404 ;;
405 altos | altos3068)
406 basic_machine=m68k-altos
407 ;;
408 am29k)
409 basic_machine=a29k-none
410 os=-bsd
411 ;;
412 amd64)
413 basic_machine=x86_64-pc
414 ;;
415 amd64-*)
416 basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
417 ;;
418 amdahl)
419 basic_machine=580-amdahl
420 os=-sysv
421 ;;
422 amiga | amiga-*)
423 basic_machine=m68k-unknown
424 ;;
425 amigaos | amigados)
426 basic_machine=m68k-unknown
427 os=-amigaos
428 ;;
429 amigaunix | amix)
430 basic_machine=m68k-unknown
431 os=-sysv4
432 ;;
433 apollo68)
434 basic_machine=m68k-apollo
435 os=-sysv
436 ;;
437 apollo68bsd)
438 basic_machine=m68k-apollo
439 os=-bsd
440 ;;
441 aux)
442 basic_machine=m68k-apple
443 os=-aux
444 ;;
445 balance)
446 basic_machine=ns32k-sequent
447 os=-dynix
448 ;;
449 blackfin)
450 basic_machine=bfin-unknown
451 os=-linux
452 ;;
453 blackfin-*)
454 basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
455 os=-linux
456 ;;
457 c90)
458 basic_machine=c90-cray
459 os=-unicos
460 ;;
461 convex-c1)
462 basic_machine=c1-convex
463 os=-bsd
464 ;;
465 convex-c2)
466 basic_machine=c2-convex
467 os=-bsd
468 ;;
469 convex-c32)
470 basic_machine=c32-convex
471 os=-bsd
472 ;;
473 convex-c34)
474 basic_machine=c34-convex
475 os=-bsd
476 ;;
477 convex-c38)
478 basic_machine=c38-convex
479 os=-bsd
480 ;;
481 cray | j90)
482 basic_machine=j90-cray
483 os=-unicos
484 ;;
485 craynv)
486 basic_machine=craynv-cray
487 os=-unicosmp
488 ;;
489 cr16)
490 basic_machine=cr16-unknown
491 os=-elf
492 ;;
493 crds | unos)
494 basic_machine=m68k-crds
495 ;;
496 crisv32 | crisv32-* | etraxfs*)
497 basic_machine=crisv32-axis
498 ;;
499 cris | cris-* | etrax*)
500 basic_machine=cris-axis
501 ;;
502 crx)
503 basic_machine=crx-unknown
504 os=-elf
505 ;;
506 da30 | da30-*)
507 basic_machine=m68k-da30
508 ;;
509 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
510 basic_machine=mips-dec
511 ;;
512 decsystem10* | dec10*)
513 basic_machine=pdp10-dec
514 os=-tops10
515 ;;
516 decsystem20* | dec20*)
517 basic_machine=pdp10-dec
518 os=-tops20
519 ;;
520 delta | 3300 | motorola-3300 | motorola-delta \
521 | 3300-motorola | delta-motorola)
522 basic_machine=m68k-motorola
523 ;;
524 delta88)
525 basic_machine=m88k-motorola
526 os=-sysv3
527 ;;
528 djgpp)
529 basic_machine=i586-pc
530 os=-msdosdjgpp
531 ;;
532 dpx20 | dpx20-*)
533 basic_machine=rs6000-bull
534 os=-bosx
535 ;;
536 dpx2* | dpx2*-bull)
537 basic_machine=m68k-bull
538 os=-sysv3
539 ;;
540 ebmon29k)
541 basic_machine=a29k-amd
542 os=-ebmon
543 ;;
544 elxsi)
545 basic_machine=elxsi-elxsi
546 os=-bsd
547 ;;
548 encore | umax | mmax)
549 basic_machine=ns32k-encore
550 ;;
551 es1800 | OSE68k | ose68k | ose | OSE)
552 basic_machine=m68k-ericsson
553 os=-ose
554 ;;
555 fx2800)
556 basic_machine=i860-alliant
557 ;;
558 genix)
559 basic_machine=ns32k-ns
560 ;;
561 gmicro)
562 basic_machine=tron-gmicro
563 os=-sysv
564 ;;
565 go32)
566 basic_machine=i386-pc
567 os=-go32
568 ;;
569 h3050r* | hiux*)
570 basic_machine=hppa1.1-hitachi
571 os=-hiuxwe2
572 ;;
573 h8300hms)
574 basic_machine=h8300-hitachi
575 os=-hms
576 ;;
577 h8300xray)
578 basic_machine=h8300-hitachi
579 os=-xray
580 ;;
581 h8500hms)
582 basic_machine=h8500-hitachi
583 os=-hms
584 ;;
585 harris)
586 basic_machine=m88k-harris
587 os=-sysv3
588 ;;
589 hp300-*)
590 basic_machine=m68k-hp
591 ;;
592 hp300bsd)
593 basic_machine=m68k-hp
594 os=-bsd
595 ;;
596 hp300hpux)
597 basic_machine=m68k-hp
598 os=-hpux
599 ;;
600 hp3k9[0-9][0-9] | hp9[0-9][0-9])
601 basic_machine=hppa1.0-hp
602 ;;
603 hp9k2[0-9][0-9] | hp9k31[0-9])
604 basic_machine=m68000-hp
605 ;;
606 hp9k3[2-9][0-9])
607 basic_machine=m68k-hp
608 ;;
609 hp9k6[0-9][0-9] | hp6[0-9][0-9])
610 basic_machine=hppa1.0-hp
611 ;;
612 hp9k7[0-79][0-9] | hp7[0-79][0-9])
613 basic_machine=hppa1.1-hp
614 ;;
615 hp9k78[0-9] | hp78[0-9])
616 # FIXME: really hppa2.0-hp
617 basic_machine=hppa1.1-hp
618 ;;
619 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
620 # FIXME: really hppa2.0-hp
621 basic_machine=hppa1.1-hp
622 ;;
623 hp9k8[0-9][13679] | hp8[0-9][13679])
624 basic_machine=hppa1.1-hp
625 ;;
626 hp9k8[0-9][0-9] | hp8[0-9][0-9])
627 basic_machine=hppa1.0-hp
628 ;;
629 hppa-next)
630 os=-nextstep3
631 ;;
632 hppaosf)
633 basic_machine=hppa1.1-hp
634 os=-osf
635 ;;
636 hppro)
637 basic_machine=hppa1.1-hp
638 os=-proelf
639 ;;
640 i370-ibm* | ibm*)
641 basic_machine=i370-ibm
642 ;;
643 # I'm not sure what "Sysv32" means. Should this be sysv3.2?
644 i*86v32)
645 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
646 os=-sysv32
647 ;;
648 i*86v4*)
649 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
650 os=-sysv4
651 ;;
652 i*86v)
653 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
654 os=-sysv
655 ;;
656 i*86sol2)
657 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
658 os=-solaris2
659 ;;
660 i386mach)
661 basic_machine=i386-mach
662 os=-mach
663 ;;
664 i386-vsta | vsta)
665 basic_machine=i386-unknown
666 os=-vsta
667 ;;
668 iris | iris4d)
669 basic_machine=mips-sgi
670 case $os in
671 -irix*)
672 ;;
673 *)
674 os=-irix4
675 ;;
676 esac
677 ;;
678 isi68 | isi)
679 basic_machine=m68k-isi
680 os=-sysv
681 ;;
682 m68knommu)
683 basic_machine=m68k-unknown
684 os=-linux
685 ;;
686 m68knommu-*)
687 basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
688 os=-linux
689 ;;
690 m88k-omron*)
691 basic_machine=m88k-omron
692 ;;
693 magnum | m3230)
694 basic_machine=mips-mips
695 os=-sysv
696 ;;
697 merlin)
698 basic_machine=ns32k-utek
699 os=-sysv
700 ;;
701 mingw32)
702 basic_machine=i386-pc
703 os=-mingw32
704 ;;
705 mingw32ce)
706 basic_machine=arm-unknown
707 os=-mingw32ce
708 ;;
709 miniframe)
710 basic_machine=m68000-convergent
711 ;;
712 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
713 basic_machine=m68k-atari
714 os=-mint
715 ;;
716 mips3*-*)
717 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
718 ;;
719 mips3*)
720 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
721 ;;
722 monitor)
723 basic_machine=m68k-rom68k
724 os=-coff
725 ;;
726 morphos)
727 basic_machine=powerpc-unknown
728 os=-morphos
729 ;;
730 msdos)
731 basic_machine=i386-pc
732 os=-msdos
733 ;;
734 ms1-*)
735 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
736 ;;
737 mvs)
738 basic_machine=i370-ibm
739 os=-mvs
740 ;;
741 ncr3000)
742 basic_machine=i486-ncr
743 os=-sysv4
744 ;;
745 netbsd386)
746 basic_machine=i386-unknown
747 os=-netbsd
748 ;;
749 netwinder)
750 basic_machine=armv4l-rebel
751 os=-linux
752 ;;
753 news | news700 | news800 | news900)
754 basic_machine=m68k-sony
755 os=-newsos
756 ;;
757 news1000)
758 basic_machine=m68030-sony
759 os=-newsos
760 ;;
761 news-3600 | risc-news)
762 basic_machine=mips-sony
763 os=-newsos
764 ;;
765 necv70)
766 basic_machine=v70-nec
767 os=-sysv
768 ;;
769 next | m*-next )
770 basic_machine=m68k-next
771 case $os in
772 -nextstep* )
773 ;;
774 -ns2*)
775 os=-nextstep2
776 ;;
777 *)
778 os=-nextstep3
779 ;;
780 esac
781 ;;
782 nh3000)
783 basic_machine=m68k-harris
784 os=-cxux
785 ;;
786 nh[45]000)
787 basic_machine=m88k-harris
788 os=-cxux
789 ;;
790 nindy960)
791 basic_machine=i960-intel
792 os=-nindy
793 ;;
794 mon960)
795 basic_machine=i960-intel
796 os=-mon960
797 ;;
798 nonstopux)
799 basic_machine=mips-compaq
800 os=-nonstopux
801 ;;
802 np1)
803 basic_machine=np1-gould
804 ;;
805 nsr-tandem)
806 basic_machine=nsr-tandem
807 ;;
808 op50n-* | op60c-*)
809 basic_machine=hppa1.1-oki
810 os=-proelf
811 ;;
812 openrisc | openrisc-*)
813 basic_machine=or32-unknown
814 ;;
815 os400)
816 basic_machine=powerpc-ibm
817 os=-os400
818 ;;
819 OSE68000 | ose68000)
820 basic_machine=m68000-ericsson
821 os=-ose
822 ;;
823 os68k)
824 basic_machine=m68k-none
825 os=-os68k
826 ;;
827 pa-hitachi)
828 basic_machine=hppa1.1-hitachi
829 os=-hiuxwe2
830 ;;
831 paragon)
832 basic_machine=i860-intel
833 os=-osf
834 ;;
835 parisc)
836 basic_machine=hppa-unknown
837 os=-linux
838 ;;
839 parisc-*)
840 basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
841 os=-linux
842 ;;
843 pbd)
844 basic_machine=sparc-tti
845 ;;
846 pbb)
847 basic_machine=m68k-tti
848 ;;
849 pc532 | pc532-*)
850 basic_machine=ns32k-pc532
851 ;;
852 pc98)
853 basic_machine=i386-pc
854 ;;
855 pc98-*)
856 basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
857 ;;
858 pentium | p5 | k5 | k6 | nexgen | viac3)
859 basic_machine=i586-pc
860 ;;
861 pentiumpro | p6 | 6x86 | athlon | athlon_*)
862 basic_machine=i686-pc
863 ;;
864 pentiumii | pentium2 | pentiumiii | pentium3)
865 basic_machine=i686-pc
866 ;;
867 pentium4)
868 basic_machine=i786-pc
869 ;;
870 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
871 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
872 ;;
873 pentiumpro-* | p6-* | 6x86-* | athlon-*)
874 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
875 ;;
876 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
877 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
878 ;;
879 pentium4-*)
880 basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
881 ;;
882 pn)
883 basic_machine=pn-gould
884 ;;
885 power) basic_machine=power-ibm
886 ;;
887 ppc) basic_machine=powerpc-unknown
888 ;;
889 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
890 ;;
891 ppcle | powerpclittle | ppc-le | powerpc-little)
892 basic_machine=powerpcle-unknown
893 ;;
894 ppcle-* | powerpclittle-*)
895 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
896 ;;
897 ppc64) basic_machine=powerpc64-unknown
898 ;;
899 ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
900 ;;
901 ppc64le | powerpc64little | ppc64-le | powerpc64-little)
902 basic_machine=powerpc64le-unknown
903 ;;
904 ppc64le-* | powerpc64little-*)
905 basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
906 ;;
907 ps2)
908 basic_machine=i386-ibm
909 ;;
910 pw32)
911 basic_machine=i586-unknown
912 os=-pw32
913 ;;
914 rdos)
915 basic_machine=i386-pc
916 os=-rdos
917 ;;
918 rom68k)
919 basic_machine=m68k-rom68k
920 os=-coff
921 ;;
922 rm[46]00)
923 basic_machine=mips-siemens
924 ;;
925 rtpc | rtpc-*)
926 basic_machine=romp-ibm
927 ;;
928 s390 | s390-*)
929 basic_machine=s390-ibm
930 ;;
931 s390x | s390x-*)
932 basic_machine=s390x-ibm
933 ;;
934 sa29200)
935 basic_machine=a29k-amd
936 os=-udi
937 ;;
938 sb1)
939 basic_machine=mipsisa64sb1-unknown
940 ;;
941 sb1el)
942 basic_machine=mipsisa64sb1el-unknown
943 ;;
944 sde)
945 basic_machine=mipsisa32-sde
946 os=-elf
947 ;;
948 sei)
949 basic_machine=mips-sei
950 os=-seiux
951 ;;
952 sequent)
953 basic_machine=i386-sequent
954 ;;
955 sh)
956 basic_machine=sh-hitachi
957 os=-hms
958 ;;
959 sh5el)
960 basic_machine=sh5le-unknown
961 ;;
962 sh64)
963 basic_machine=sh64-unknown
964 ;;
965 sparclite-wrs | simso-wrs)
966 basic_machine=sparclite-wrs
967 os=-vxworks
968 ;;
969 sps7)
970 basic_machine=m68k-bull
971 os=-sysv2
972 ;;
973 spur)
974 basic_machine=spur-unknown
975 ;;
976 st2000)
977 basic_machine=m68k-tandem
978 ;;
979 stratus)
980 basic_machine=i860-stratus
981 os=-sysv4
982 ;;
983 sun2)
984 basic_machine=m68000-sun
985 ;;
986 sun2os3)
987 basic_machine=m68000-sun
988 os=-sunos3
989 ;;
990 sun2os4)
991 basic_machine=m68000-sun
992 os=-sunos4
993 ;;
994 sun3os3)
995 basic_machine=m68k-sun
996 os=-sunos3
997 ;;
998 sun3os4)
999 basic_machine=m68k-sun
1000 os=-sunos4
1001 ;;
1002 sun4os3)
1003 basic_machine=sparc-sun
1004 os=-sunos3
1005 ;;
1006 sun4os4)
1007 basic_machine=sparc-sun
1008 os=-sunos4
1009 ;;
1010 sun4sol2)
1011 basic_machine=sparc-sun
1012 os=-solaris2
1013 ;;
1014 sun3 | sun3-*)
1015 basic_machine=m68k-sun
1016 ;;
1017 sun4)
1018 basic_machine=sparc-sun
1019 ;;
1020 sun386 | sun386i | roadrunner)
1021 basic_machine=i386-sun
1022 ;;
1023 sv1)
1024 basic_machine=sv1-cray
1025 os=-unicos
1026 ;;
1027 symmetry)
1028 basic_machine=i386-sequent
1029 os=-dynix
1030 ;;
1031 t3e)
1032 basic_machine=alphaev5-cray
1033 os=-unicos
1034 ;;
1035 t90)
1036 basic_machine=t90-cray
1037 os=-unicos
1038 ;;
1039 tic54x | c54x*)
1040 basic_machine=tic54x-unknown
1041 os=-coff
1042 ;;
1043 tic55x | c55x*)
1044 basic_machine=tic55x-unknown
1045 os=-coff
1046 ;;
1047 tic6x | c6x*)
1048 basic_machine=tic6x-unknown
1049 os=-coff
1050 ;;
1051 tile*)
1052 basic_machine=tile-unknown
1053 os=-linux-gnu
1054 ;;
1055 tx39)
1056 basic_machine=mipstx39-unknown
1057 ;;
1058 tx39el)
1059 basic_machine=mipstx39el-unknown
1060 ;;
1061 toad1)
1062 basic_machine=pdp10-xkl
1063 os=-tops20
1064 ;;
1065 tower | tower-32)
1066 basic_machine=m68k-ncr
1067 ;;
1068 tpf)
1069 basic_machine=s390x-ibm
1070 os=-tpf
1071 ;;
1072 udi29k)
1073 basic_machine=a29k-amd
1074 os=-udi
1075 ;;
1076 ultra3)
1077 basic_machine=a29k-nyu
1078 os=-sym1
1079 ;;
1080 v810 | necv810)
1081 basic_machine=v810-nec
1082 os=-none
1083 ;;
1084 vaxv)
1085 basic_machine=vax-dec
1086 os=-sysv
1087 ;;
1088 vms)
1089 basic_machine=vax-dec
1090 os=-vms
1091 ;;
1092 vpp*|vx|vx-*)
1093 basic_machine=f301-fujitsu
1094 ;;
1095 vxworks960)
1096 basic_machine=i960-wrs
1097 os=-vxworks
1098 ;;
1099 vxworks68)
1100 basic_machine=m68k-wrs
1101 os=-vxworks
1102 ;;
1103 vxworks29k)
1104 basic_machine=a29k-wrs
1105 os=-vxworks
1106 ;;
1107 w65*)
1108 basic_machine=w65-wdc
1109 os=-none
1110 ;;
1111 w89k-*)
1112 basic_machine=hppa1.1-winbond
1113 os=-proelf
1114 ;;
1115 xbox)
1116 basic_machine=i686-pc
1117 os=-mingw32
1118 ;;
1119 xps | xps100)
1120 basic_machine=xps100-honeywell
1121 ;;
1122 ymp)
1123 basic_machine=ymp-cray
1124 os=-unicos
1125 ;;
1126 z8k-*-coff)
1127 basic_machine=z8k-unknown
1128 os=-sim
1129 ;;
1130 none)
1131 basic_machine=none-none
1132 os=-none
1133 ;;
1134
1135 # Here we handle the default manufacturer of certain CPU types. It is in
1136 # some cases the only manufacturer, in others, it is the most popular.
1137 w89k)
1138 basic_machine=hppa1.1-winbond
1139 ;;
1140 op50n)
1141 basic_machine=hppa1.1-oki
1142 ;;
1143 op60c)
1144 basic_machine=hppa1.1-oki
1145 ;;
1146 romp)
1147 basic_machine=romp-ibm
1148 ;;
1149 mmix)
1150 basic_machine=mmix-knuth
1151 ;;
1152 rs6000)
1153 basic_machine=rs6000-ibm
1154 ;;
1155 vax)
1156 basic_machine=vax-dec
1157 ;;
1158 pdp10)
1159 # there are many clones, so DEC is not a safe bet
1160 basic_machine=pdp10-unknown
1161 ;;
1162 pdp11)
1163 basic_machine=pdp11-dec
1164 ;;
1165 we32k)
1166 basic_machine=we32k-att
1167 ;;
1168 sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
1169 basic_machine=sh-unknown
1170 ;;
1171 sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1172 basic_machine=sparc-sun
1173 ;;
1174 cydra)
1175 basic_machine=cydra-cydrome
1176 ;;
1177 orion)
1178 basic_machine=orion-highlevel
1179 ;;
1180 orion105)
1181 basic_machine=clipper-highlevel
1182 ;;
1183 mac | mpw | mac-mpw)
1184 basic_machine=m68k-apple
1185 ;;
1186 pmac | pmac-mpw)
1187 basic_machine=powerpc-apple
1188 ;;
1189 *-unknown)
1190 # Make sure to match an already-canonicalized machine name.
1191 ;;
1192 *)
1193 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
1194 exit 1
1195 ;;
1196 esac
1197
1198 # Here we canonicalize certain aliases for manufacturers.
1199 case $basic_machine in
1200 *-digital*)
1201 basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
1202 ;;
1203 *-commodore*)
1204 basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
1205 ;;
1206 *)
1207 ;;
1208 esac
1209
1210 # Decode manufacturer-specific aliases for certain operating systems.
1211
1212 if [ x"$os" != x"" ]
1213 then
1214 case $os in
1215 # First match some system type aliases
1216 # that might get confused with valid system types.
1217 # -solaris* is a basic system type, with this one exception.
1218 -solaris1 | -solaris1.*)
1219 os=`echo $os | sed -e 's|solaris1|sunos4|'`
1220 ;;
1221 -solaris)
1222 os=-solaris2
1223 ;;
1224 -svr4*)
1225 os=-sysv4
1226 ;;
1227 -unixware*)
1228 os=-sysv4.2uw
1229 ;;
1230 -gnu/linux*)
1231 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
1232 ;;
1233 # First accept the basic system types.
1234 # The portable systems comes first.
1235 # Each alternative MUST END IN A *, to match a version number.
1236 # -sysv* is not here because it comes later, after sysvr4.
1237 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1238 | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
1239 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
1240 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1241 | -aos* \
1242 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1243 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1244 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1245 | -openbsd* | -solidbsd* \
1246 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1247 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1248 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1249 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1250 | -chorusos* | -chorusrdb* \
1251 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1252 | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
1253 | -uxpv* | -beos* | -mpeix* | -udk* \
1254 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1255 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1256 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1257 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1258 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1259 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1260 | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
1261 # Remember, each alternative MUST END IN *, to match a version number.
1262 ;;
1263 -qnx*)
1264 case $basic_machine in
1265 x86-* | i*86-*)
1266 ;;
1267 *)
1268 os=-nto$os
1269 ;;
1270 esac
1271 ;;
1272 -nto-qnx*)
1273 ;;
1274 -nto*)
1275 os=`echo $os | sed -e 's|nto|nto-qnx|'`
1276 ;;
1277 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1278 | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
1279 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1280 ;;
1281 -mac*)
1282 os=`echo $os | sed -e 's|mac|macos|'`
1283 ;;
1284 -linux-dietlibc)
1285 os=-linux-dietlibc
1286 ;;
1287 -linux*)
1288 os=`echo $os | sed -e 's|linux|linux-gnu|'`
1289 ;;
1290 -sunos5*)
1291 os=`echo $os | sed -e 's|sunos5|solaris2|'`
1292 ;;
1293 -sunos6*)
1294 os=`echo $os | sed -e 's|sunos6|solaris3|'`
1295 ;;
1296 -opened*)
1297 os=-openedition
1298 ;;
1299 -os400*)
1300 os=-os400
1301 ;;
1302 -wince*)
1303 os=-wince
1304 ;;
1305 -osfrose*)
1306 os=-osfrose
1307 ;;
1308 -osf*)
1309 os=-osf
1310 ;;
1311 -utek*)
1312 os=-bsd
1313 ;;
1314 -dynix*)
1315 os=-bsd
1316 ;;
1317 -acis*)
1318 os=-aos
1319 ;;
1320 -atheos*)
1321 os=-atheos
1322 ;;
1323 -syllable*)
1324 os=-syllable
1325 ;;
1326 -386bsd)
1327 os=-bsd
1328 ;;
1329 -ctix* | -uts*)
1330 os=-sysv
1331 ;;
1332 -nova*)
1333 os=-rtmk-nova
1334 ;;
1335 -ns2 )
1336 os=-nextstep2
1337 ;;
1338 -nsk*)
1339 os=-nsk
1340 ;;
1341 # Preserve the version number of sinix5.
1342 -sinix5.*)
1343 os=`echo $os | sed -e 's|sinix|sysv|'`
1344 ;;
1345 -sinix*)
1346 os=-sysv4
1347 ;;
1348 -tpf*)
1349 os=-tpf
1350 ;;
1351 -triton*)
1352 os=-sysv3
1353 ;;
1354 -oss*)
1355 os=-sysv3
1356 ;;
1357 -svr4)
1358 os=-sysv4
1359 ;;
1360 -svr3)
1361 os=-sysv3
1362 ;;
1363 -sysvr4)
1364 os=-sysv4
1365 ;;
1366 # This must come after -sysvr4.
1367 -sysv*)
1368 ;;
1369 -ose*)
1370 os=-ose
1371 ;;
1372 -es1800*)
1373 os=-ose
1374 ;;
1375 -xenix)
1376 os=-xenix
1377 ;;
1378 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1379 os=-mint
1380 ;;
1381 -aros*)
1382 os=-aros
1383 ;;
1384 -kaos*)
1385 os=-kaos
1386 ;;
1387 -zvmoe)
1388 os=-zvmoe
1389 ;;
1390 -none)
1391 ;;
1392 *)
1393 # Get rid of the `-' at the beginning of $os.
1394 os=`echo $os | sed 's/[^-]*-//'`
1395 echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
1396 exit 1
1397 ;;
1398 esac
1399 else
1400
1401 # Here we handle the default operating systems that come with various machines.
1402 # The value should be what the vendor currently ships out the door with their
1403 # machine or put another way, the most popular os provided with the machine.
1404
1405 # Note that if you're going to try to match "-MANUFACTURER" here (say,
1406 # "-sun"), then you have to tell the case statement up towards the top
1407 # that MANUFACTURER isn't an operating system. Otherwise, code above
1408 # will signal an error saying that MANUFACTURER isn't an operating
1409 # system, and we'll never get to this point.
1410
1411 case $basic_machine in
1412 score-*)
1413 os=-elf
1414 ;;
1415 spu-*)
1416 os=-elf
1417 ;;
1418 *-acorn)
1419 os=-riscix1.2
1420 ;;
1421 arm*-rebel)
1422 os=-linux
1423 ;;
1424 arm*-semi)
1425 os=-aout
1426 ;;
1427 c4x-* | tic4x-*)
1428 os=-coff
1429 ;;
1430 # This must come before the *-dec entry.
1431 pdp10-*)
1432 os=-tops20
1433 ;;
1434 pdp11-*)
1435 os=-none
1436 ;;
1437 *-dec | vax-*)
1438 os=-ultrix4.2
1439 ;;
1440 m68*-apollo)
1441 os=-domain
1442 ;;
1443 i386-sun)
1444 os=-sunos4.0.2
1445 ;;
1446 m68000-sun)
1447 os=-sunos3
1448 # This also exists in the configure program, but was not the
1449 # default.
1450 # os=-sunos4
1451 ;;
1452 m68*-cisco)
1453 os=-aout
1454 ;;
1455 mep-*)
1456 os=-elf
1457 ;;
1458 mips*-cisco)
1459 os=-elf
1460 ;;
1461 mips*-*)
1462 os=-elf
1463 ;;
1464 or32-*)
1465 os=-coff
1466 ;;
1467 *-tti) # must be before sparc entry or we get the wrong os.
1468 os=-sysv3
1469 ;;
1470 sparc-* | *-sun)
1471 os=-sunos4.1.1
1472 ;;
1473 *-be)
1474 os=-beos
1475 ;;
1476 *-haiku)
1477 os=-haiku
1478 ;;
1479 *-ibm)
1480 os=-aix
1481 ;;
1482 *-knuth)
1483 os=-mmixware
1484 ;;
1485 *-wec)
1486 os=-proelf
1487 ;;
1488 *-winbond)
1489 os=-proelf
1490 ;;
1491 *-oki)
1492 os=-proelf
1493 ;;
1494 *-hp)
1495 os=-hpux
1496 ;;
1497 *-hitachi)
1498 os=-hiux
1499 ;;
1500 i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
1501 os=-sysv
1502 ;;
1503 *-cbm)
1504 os=-amigaos
1505 ;;
1506 *-dg)
1507 os=-dgux
1508 ;;
1509 *-dolphin)
1510 os=-sysv3
1511 ;;
1512 m68k-ccur)
1513 os=-rtu
1514 ;;
1515 m88k-omron*)
1516 os=-luna
1517 ;;
1518 *-next )
1519 os=-nextstep
1520 ;;
1521 *-sequent)
1522 os=-ptx
1523 ;;
1524 *-crds)
1525 os=-unos
1526 ;;
1527 *-ns)
1528 os=-genix
1529 ;;
1530 i370-*)
1531 os=-mvs
1532 ;;
1533 *-next)
1534 os=-nextstep3
1535 ;;
1536 *-gould)
1537 os=-sysv
1538 ;;
1539 *-highlevel)
1540 os=-bsd
1541 ;;
1542 *-encore)
1543 os=-bsd
1544 ;;
1545 *-sgi)
1546 os=-irix
1547 ;;
1548 *-siemens)
1549 os=-sysv4
1550 ;;
1551 *-masscomp)
1552 os=-rtu
1553 ;;
1554 f30[01]-fujitsu | f700-fujitsu)
1555 os=-uxpv
1556 ;;
1557 *-rom68k)
1558 os=-coff
1559 ;;
1560 *-*bug)
1561 os=-coff
1562 ;;
1563 *-apple)
1564 os=-macos
1565 ;;
1566 *-atari*)
1567 os=-mint
1568 ;;
1569 *)
1570 os=-none
1571 ;;
1572 esac
1573 fi
1574
1575 # Here we handle the case where we know the os, and the CPU type, but not the
1576 # manufacturer. We pick the logical manufacturer.
1577 vendor=unknown
1578 case $basic_machine in
1579 *-unknown)
1580 case $os in
1581 -riscix*)
1582 vendor=acorn
1583 ;;
1584 -sunos*)
1585 vendor=sun
1586 ;;
1587 -aix*)
1588 vendor=ibm
1589 ;;
1590 -beos*)
1591 vendor=be
1592 ;;
1593 -hpux*)
1594 vendor=hp
1595 ;;
1596 -mpeix*)
1597 vendor=hp
1598 ;;
1599 -hiux*)
1600 vendor=hitachi
1601 ;;
1602 -unos*)
1603 vendor=crds
1604 ;;
1605 -dgux*)
1606 vendor=dg
1607 ;;
1608 -luna*)
1609 vendor=omron
1610 ;;
1611 -genix*)
1612 vendor=ns
1613 ;;
1614 -mvs* | -opened*)
1615 vendor=ibm
1616 ;;
1617 -os400*)
1618 vendor=ibm
1619 ;;
1620 -ptx*)
1621 vendor=sequent
1622 ;;
1623 -tpf*)
1624 vendor=ibm
1625 ;;
1626 -vxsim* | -vxworks* | -windiss*)
1627 vendor=wrs
1628 ;;
1629 -aux*)
1630 vendor=apple
1631 ;;
1632 -hms*)
1633 vendor=hitachi
1634 ;;
1635 -mpw* | -macos*)
1636 vendor=apple
1637 ;;
1638 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1639 vendor=atari
1640 ;;
1641 -vos*)
1642 vendor=stratus
1643 ;;
1644 esac
1645 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
1646 ;;
1647 esac
1648
1649 echo $basic_machine$os
1650 exit
1651
1652 # Local variables:
1653 # eval: (add-hook 'write-file-hooks 'time-stamp)
1654 # time-stamp-start: "timestamp='"
1655 # time-stamp-format: "%:y-%02m-%02d"
1656 # time-stamp-end: "'"
1657 # End:
+2653
-4767
configure less more
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.63 for gnomad2 2.9.4.
2 # Generated by GNU Autoconf 2.68 for gnomad2 2.9.5.
33 #
4 # Report bugs to <http://sourceforge.net/tracker/?func=add&group_id=65573&atid=511470>.
4 # Report bugs to <triad@df.lth.se>.
5 #
56 #
67 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
9 # Foundation, Inc.
10 #
11 #
812 # This configure script is free software; the Free Software Foundation
913 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
1317
1418 # Be more Bourne compatible
1519 DUALCASE=1; export DUALCASE # for MKS sh
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1721 emulate sh
1822 NULLCMD=:
1923 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2125 alias -g '${1+"$@"}'='"$@"'
2226 setopt NO_GLOB_SUBST
2327 else
24 case `(set -o) 2>/dev/null` in
25 *posix*) set -o posix ;;
28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
32 ;;
2633 esac
27
28 fi
29
30
31
32
33 # PATH needs CR
34 # Avoid depending upon Character Ranges.
35 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38 as_cr_digits='0123456789'
39 as_cr_alnum=$as_cr_Letters$as_cr_digits
34 fi
35
4036
4137 as_nl='
4238 '
4541 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4642 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4743 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
48 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
44 # Prefer a ksh shell builtin over an external printf program on Solaris,
45 # but without wasting forks for bash or zsh.
46 if test -z "$BASH_VERSION$ZSH_VERSION" \
47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='print -r --'
49 as_echo_n='print -rn --'
50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4951 as_echo='printf %s\n'
5052 as_echo_n='printf %s'
5153 else
5658 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5759 as_echo_n_body='eval
5860 arg=$1;
59 case $arg in
61 case $arg in #(
6062 *"$as_nl"*)
6163 expr "X$arg" : "X\\(.*\\)$as_nl";
6264 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7981 }
8082 fi
8183
82 # Support unset when possible.
83 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
84 as_unset=unset
85 else
86 as_unset=false
87 fi
88
8984
9085 # IFS
9186 # We need space, tab and new line, in precisely that order. Quoting is
9590 IFS=" "" $as_nl"
9691
9792 # Find who we are. Look in the path if we contain no directory separator.
98 case $0 in
93 as_myself=
94 case $0 in #((
9995 *[\\/]* ) as_myself=$0 ;;
10096 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10197 for as_dir in $PATH
10298 do
10399 IFS=$as_save_IFS
104100 test -z "$as_dir" && as_dir=.
105 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 done
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
107103 IFS=$as_save_IFS
108104
109105 ;;
115111 fi
116112 if test ! -f "$as_myself"; then
117113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 { (exit 1); exit 1; }
119 fi
120
121 # Work around bugs in pre-3.0 UWIN ksh.
122 for as_var in ENV MAIL MAILPATH
123 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114 exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124124 done
125125 PS1='$ '
126126 PS2='> '
132132 LANGUAGE=C
133133 export LANGUAGE
134134
135 # Required to use basename.
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146 else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
151 ;;
152 esac
153 fi
154 "
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169 exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179 else
180 as_have_required=no
181 fi
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184 else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 do
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in #(
193 /*)
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
202 fi
203 fi
204 done;;
205 esac
206 as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
213
214
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 # Preserve -v and -x to the replacement shell.
220 BASH_ENV=/dev/null
221 ENV=/dev/null
222 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223 export CONFIG_SHELL
224 case $- in # ((((
225 *v*x* | *x*v* ) as_opts=-vx ;;
226 *v* ) as_opts=-v ;;
227 *x* ) as_opts=-x ;;
228 * ) as_opts= ;;
229 esac
230 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
231 fi
232
233 if test x$as_have_required = xno; then :
234 $as_echo "$0: This script requires a shell more modern than all"
235 $as_echo "$0: the shells that I found on your system."
236 if test x${ZSH_VERSION+set} = xset ; then
237 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
238 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
239 else
240 $as_echo "$0: Please tell bug-autoconf@gnu.org and triad@df.lth.se
241 $0: about your system, including any error possibly output
242 $0: before this message. Then install a modern shell, or
243 $0: manually run the script under such a shell if you do
244 $0: have one."
245 fi
246 exit 1
247 fi
248 fi
249 fi
250 SHELL=${CONFIG_SHELL-/bin/sh}
251 export SHELL
252 # Unset more variables known to interfere with behavior of common tools.
253 CLICOLOR_FORCE= GREP_OPTIONS=
254 unset CLICOLOR_FORCE GREP_OPTIONS
255
256 ## --------------------- ##
257 ## M4sh Shell Functions. ##
258 ## --------------------- ##
259 # as_fn_unset VAR
260 # ---------------
261 # Portably unset VAR.
262 as_fn_unset ()
263 {
264 { eval $1=; unset $1;}
265 }
266 as_unset=as_fn_unset
267
268 # as_fn_set_status STATUS
269 # -----------------------
270 # Set $? to STATUS, without forking.
271 as_fn_set_status ()
272 {
273 return $1
274 } # as_fn_set_status
275
276 # as_fn_exit STATUS
277 # -----------------
278 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
279 as_fn_exit ()
280 {
281 set +e
282 as_fn_set_status $1
283 exit $1
284 } # as_fn_exit
285
286 # as_fn_mkdir_p
287 # -------------
288 # Create "$as_dir" as a directory, including parents if necessary.
289 as_fn_mkdir_p ()
290 {
291
292 case $as_dir in #(
293 -*) as_dir=./$as_dir;;
294 esac
295 test -d "$as_dir" || eval $as_mkdir_p || {
296 as_dirs=
297 while :; do
298 case $as_dir in #(
299 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
300 *) as_qdir=$as_dir;;
301 esac
302 as_dirs="'$as_qdir' $as_dirs"
303 as_dir=`$as_dirname -- "$as_dir" ||
304 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
305 X"$as_dir" : 'X\(//\)[^/]' \| \
306 X"$as_dir" : 'X\(//\)$' \| \
307 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
308 $as_echo X"$as_dir" |
309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)[^/].*/{
314 s//\1/
315 q
316 }
317 /^X\(\/\/\)$/{
318 s//\1/
319 q
320 }
321 /^X\(\/\).*/{
322 s//\1/
323 q
324 }
325 s/.*/./; q'`
326 test -d "$as_dir" && break
327 done
328 test -z "$as_dirs" || eval "mkdir $as_dirs"
329 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
330
331
332 } # as_fn_mkdir_p
333 # as_fn_append VAR VALUE
334 # ----------------------
335 # Append the text in VALUE to the end of the definition contained in VAR. Take
336 # advantage of any shell optimizations that allow amortized linear growth over
337 # repeated appends, instead of the typical quadratic growth present in naive
338 # implementations.
339 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
340 eval 'as_fn_append ()
341 {
342 eval $1+=\$2
343 }'
344 else
345 as_fn_append ()
346 {
347 eval $1=\$$1\$2
348 }
349 fi # as_fn_append
350
351 # as_fn_arith ARG...
352 # ------------------
353 # Perform arithmetic evaluation on the ARGs, and store the result in the
354 # global $as_val. Take advantage of shells that can avoid forks. The arguments
355 # must be portable across $(()) and expr.
356 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
357 eval 'as_fn_arith ()
358 {
359 as_val=$(( $* ))
360 }'
361 else
362 as_fn_arith ()
363 {
364 as_val=`expr "$@" || test $? -eq 1`
365 }
366 fi # as_fn_arith
367
368
369 # as_fn_error STATUS ERROR [LINENO LOG_FD]
370 # ----------------------------------------
371 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
372 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
373 # script with STATUS, using 1 if that was 0.
374 as_fn_error ()
375 {
376 as_status=$1; test $as_status -eq 0 && as_status=1
377 if test "$4"; then
378 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
379 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
380 fi
381 $as_echo "$as_me: error: $2" >&2
382 as_fn_exit $as_status
383 } # as_fn_error
384
136385 if expr a : '\(a\)' >/dev/null 2>&1 &&
137386 test "X`expr 00001 : '.*\(...\)'`" = X001; then
138387 as_expr=expr
146395 as_basename=false
147396 fi
148397
149
150 # Name of the executable.
398 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
399 as_dirname=dirname
400 else
401 as_dirname=false
402 fi
403
151404 as_me=`$as_basename -- "$0" ||
152405 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
153406 X"$0" : 'X\(//\)$' \| \
167420 }
168421 s/.*/./; q'`
169422
170 # CDPATH.
171 $as_unset CDPATH
172
173
174 if test "x$CONFIG_SHELL" = x; then
175 if (eval ":") 2>/dev/null; then
176 as_have_required=yes
177 else
178 as_have_required=no
179 fi
180
181 if test $as_have_required = yes && (eval ":
182 (as_func_return () {
183 (exit \$1)
184 }
185 as_func_success () {
186 as_func_return 0
187 }
188 as_func_failure () {
189 as_func_return 1
190 }
191 as_func_ret_success () {
192 return 0
193 }
194 as_func_ret_failure () {
195 return 1
196 }
197
198 exitcode=0
199 if as_func_success; then
200 :
201 else
202 exitcode=1
203 echo as_func_success failed.
204 fi
205
206 if as_func_failure; then
207 exitcode=1
208 echo as_func_failure succeeded.
209 fi
210
211 if as_func_ret_success; then
212 :
213 else
214 exitcode=1
215 echo as_func_ret_success failed.
216 fi
217
218 if as_func_ret_failure; then
219 exitcode=1
220 echo as_func_ret_failure succeeded.
221 fi
222
223 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
224 :
225 else
226 exitcode=1
227 echo positional parameters were not saved.
228 fi
229
230 test \$exitcode = 0) || { (exit 1); exit 1; }
231
232 (
233 as_lineno_1=\$LINENO
234 as_lineno_2=\$LINENO
235 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
236 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
237 ") 2> /dev/null; then
238 :
239 else
240 as_candidate_shells=
241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
242 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
243 do
244 IFS=$as_save_IFS
245 test -z "$as_dir" && as_dir=.
246 case $as_dir in
247 /*)
248 for as_base in sh bash ksh sh5; do
249 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
250 done;;
251 esac
252 done
253 IFS=$as_save_IFS
254
255
256 for as_shell in $as_candidate_shells $SHELL; do
257 # Try only shells that exist, to save several forks.
258 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
259 { ("$as_shell") 2> /dev/null <<\_ASEOF
260 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
261 emulate sh
262 NULLCMD=:
263 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
264 # is contrary to our usage. Disable this feature.
265 alias -g '${1+"$@"}'='"$@"'
266 setopt NO_GLOB_SUBST
267 else
268 case `(set -o) 2>/dev/null` in
269 *posix*) set -o posix ;;
270 esac
271
272 fi
273
274
275 :
276 _ASEOF
277 }; then
278 CONFIG_SHELL=$as_shell
279 as_have_required=yes
280 if { "$as_shell" 2> /dev/null <<\_ASEOF
281 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
282 emulate sh
283 NULLCMD=:
284 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
285 # is contrary to our usage. Disable this feature.
286 alias -g '${1+"$@"}'='"$@"'
287 setopt NO_GLOB_SUBST
288 else
289 case `(set -o) 2>/dev/null` in
290 *posix*) set -o posix ;;
291 esac
292
293 fi
294
295
296 :
297 (as_func_return () {
298 (exit $1)
299 }
300 as_func_success () {
301 as_func_return 0
302 }
303 as_func_failure () {
304 as_func_return 1
305 }
306 as_func_ret_success () {
307 return 0
308 }
309 as_func_ret_failure () {
310 return 1
311 }
312
313 exitcode=0
314 if as_func_success; then
315 :
316 else
317 exitcode=1
318 echo as_func_success failed.
319 fi
320
321 if as_func_failure; then
322 exitcode=1
323 echo as_func_failure succeeded.
324 fi
325
326 if as_func_ret_success; then
327 :
328 else
329 exitcode=1
330 echo as_func_ret_success failed.
331 fi
332
333 if as_func_ret_failure; then
334 exitcode=1
335 echo as_func_ret_failure succeeded.
336 fi
337
338 if ( set x; as_func_ret_success y && test x = "$1" ); then
339 :
340 else
341 exitcode=1
342 echo positional parameters were not saved.
343 fi
344
345 test $exitcode = 0) || { (exit 1); exit 1; }
346
347 (
348 as_lineno_1=$LINENO
349 as_lineno_2=$LINENO
350 test "x$as_lineno_1" != "x$as_lineno_2" &&
351 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
352
353 _ASEOF
354 }; then
355 break
356 fi
357
358 fi
359
360 done
361
362 if test "x$CONFIG_SHELL" != x; then
363 for as_var in BASH_ENV ENV
364 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
365 done
366 export CONFIG_SHELL
367 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
368 fi
369
370
371 if test $as_have_required = no; then
372 echo This script requires a shell more modern than all the
373 echo shells that I found on your system. Please install a
374 echo modern shell, or manually run the script under such a
375 echo shell if you do have one.
376 { (exit 1); exit 1; }
377 fi
378
379
380 fi
381
382 fi
383
384
385
386 (eval "as_func_return () {
387 (exit \$1)
388 }
389 as_func_success () {
390 as_func_return 0
391 }
392 as_func_failure () {
393 as_func_return 1
394 }
395 as_func_ret_success () {
396 return 0
397 }
398 as_func_ret_failure () {
399 return 1
400 }
401
402 exitcode=0
403 if as_func_success; then
404 :
405 else
406 exitcode=1
407 echo as_func_success failed.
408 fi
409
410 if as_func_failure; then
411 exitcode=1
412 echo as_func_failure succeeded.
413 fi
414
415 if as_func_ret_success; then
416 :
417 else
418 exitcode=1
419 echo as_func_ret_success failed.
420 fi
421
422 if as_func_ret_failure; then
423 exitcode=1
424 echo as_func_ret_failure succeeded.
425 fi
426
427 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
428 :
429 else
430 exitcode=1
431 echo positional parameters were not saved.
432 fi
433
434 test \$exitcode = 0") || {
435 echo No shell found that supports shell functions.
436 echo Please tell bug-autoconf@gnu.org about your system,
437 echo including any error possibly output before this message.
438 echo This can help us improve future autoconf versions.
439 echo Configuration will now proceed without shell functions.
440 }
441
442
443
444 as_lineno_1=$LINENO
445 as_lineno_2=$LINENO
446 test "x$as_lineno_1" != "x$as_lineno_2" &&
447 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448
449 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
450 # uniformly replaced by the line number. The first 'sed' inserts a
451 # line-number line after each line using $LINENO; the second 'sed'
452 # does the real work. The second script uses 'N' to pair each
453 # line-number line with the line containing $LINENO, and appends
454 # trailing '-' during substitution so that $LINENO is not a special
455 # case at line end.
456 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
457 # scripts with optimization help from Paolo Bonzini. Blame Lee
458 # E. McMahon (1931-1989) for sed's syntax. :-)
423 # Avoid depending upon Character Ranges.
424 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
425 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
426 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
427 as_cr_digits='0123456789'
428 as_cr_alnum=$as_cr_Letters$as_cr_digits
429
430
431 as_lineno_1=$LINENO as_lineno_1a=$LINENO
432 as_lineno_2=$LINENO as_lineno_2a=$LINENO
433 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
434 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
435 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
459436 sed -n '
460437 p
461438 /[$]LINENO/=
472449 s/-\n.*//
473450 ' >$as_me.lineno &&
474451 chmod +x "$as_me.lineno" ||
475 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
476 { (exit 1); exit 1; }; }
452 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
477453
478454 # Don't try to exec as it changes $[0], causing all sort of problems
479455 # (the dirname of $[0] is not the place where we might find the
483459 exit
484460 }
485461
486
487 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
488 as_dirname=dirname
489 else
490 as_dirname=false
491 fi
492
493462 ECHO_C= ECHO_N= ECHO_T=
494 case `echo -n x` in
463 case `echo -n x` in #(((((
495464 -n*)
496 case `echo 'x\c'` in
465 case `echo 'xy\c'` in
497466 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
498 *) ECHO_C='\c';;
467 xy) ECHO_C='\c';;
468 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
469 ECHO_T=' ';;
499470 esac;;
500471 *)
501472 ECHO_N='-n';;
502473 esac
503 if expr a : '\(a\)' >/dev/null 2>&1 &&
504 test "X`expr 00001 : '.*\(...\)'`" = X001; then
505 as_expr=expr
506 else
507 as_expr=false
508 fi
509474
510475 rm -f conf$$ conf$$.exe conf$$.file
511476 if test -d conf$$.dir; then
535500 rmdir conf$$.dir 2>/dev/null
536501
537502 if mkdir -p . 2>/dev/null; then
538 as_mkdir_p=:
503 as_mkdir_p='mkdir -p "$as_dir"'
539504 else
540505 test -d ./-p && rmdir ./-p
541506 as_mkdir_p=false
554519 if test -d "$1"; then
555520 test -d "$1/.";
556521 else
557 case $1 in
522 case $1 in #(
558523 -*)set "./$1";;
559524 esac;
560 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
525 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
561526 ???[sx]*):;;*)false;;esac;fi
562527 '\'' sh
563528 '
571536 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
572537
573538
574
575 exec 7<&0 </dev/null 6>&1
539 test -n "$DJDIR" || exec 7<&0 </dev/null
540 exec 6>&1
576541
577542 # Name of the host.
578 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
579544 # so uname gets run too.
580545 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581546
590555 subdirs=
591556 MFLAGS=
592557 MAKEFLAGS=
593 SHELL=${CONFIG_SHELL-/bin/sh}
594558
595559 # Identity of this package.
596560 PACKAGE_NAME='gnomad2'
597561 PACKAGE_TARNAME='gnomad2'
598 PACKAGE_VERSION='2.9.4'
599 PACKAGE_STRING='gnomad2 2.9.4'
600 PACKAGE_BUGREPORT='http://sourceforge.net/tracker/?func=add&group_id=65573&atid=511470'
562 PACKAGE_VERSION='2.9.5'
563 PACKAGE_STRING='gnomad2 2.9.5'
564 PACKAGE_BUGREPORT='triad@df.lth.se'
565 PACKAGE_URL=''
601566
602567 ac_unique_file="src/gnomad2.c"
603568 # Factoring default headers for most tests.
636601 # include <unistd.h>
637602 #endif"
638603
639 ac_subst_vars='LTLIBOBJS
604 ac_subst_vars='am__EXEEXT_FALSE
605 am__EXEEXT_TRUE
606 LTLIBOBJS
640607 LIBOBJS
641608 ac_aux_dir
642609 MKINSTALLDIRS
681648 INTLTOOL_MERGE
682649 INTLTOOL_UPDATE
683650 USE_NLS
684 HAL_LIBS
685 HAL_CFLAGS
686 DBUSGLIB_LIBS
687 DBUSGLIB_CFLAGS
651 GUDEV_LIBS
652 GUDEV_CFLAGS
688653 MTP_LIBS
689654 MTP_CFLAGS
690655 TAGLIB_COMPILE_FALSE
713678 TAG_LIBS
714679 TAG_CFLAGS
715680 OSFLAGS
716 GNOMEUI_LIBS
717 GNOMEUI_CFLAGS
718681 GN_LIBS
719682 GN_CFLAGS
683 PKG_CONFIG_LIBDIR
684 PKG_CONFIG_PATH
720685 PKG_CONFIG
721686 am__untar
722687 am__tar
771736 program_transform_name
772737 prefix
773738 exec_prefix
739 PACKAGE_URL
774740 PACKAGE_BUGREPORT
775741 PACKAGE_STRING
776742 PACKAGE_VERSION
792758 host_alias
793759 target_alias
794760 PKG_CONFIG
761 PKG_CONFIG_PATH
762 PKG_CONFIG_LIBDIR
795763 GN_CFLAGS
796764 GN_LIBS
797 GNOMEUI_CFLAGS
798 GNOMEUI_LIBS
799765 TAG_CFLAGS
800766 TAG_LIBS
801767 CC
808774 TAGLIB_LIBS
809775 MTP_CFLAGS
810776 MTP_LIBS
811 DBUSGLIB_CFLAGS
812 DBUSGLIB_LIBS
813 HAL_CFLAGS
814 HAL_LIBS'
777 GUDEV_CFLAGS
778 GUDEV_LIBS'
815779
816780
817781 # Initialize some variables set by options.
874838 fi
875839
876840 case $ac_option in
877 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
878 *) ac_optarg=yes ;;
841 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
842 *=) ac_optarg= ;;
843 *) ac_optarg=yes ;;
879844 esac
880845
881846 # Accept the important Cygnus configure options, so we can diagnose typos.
920885 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
921886 # Reject names that are not valid shell variable names.
922887 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
923 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
924 { (exit 1); exit 1; }; }
888 as_fn_error $? "invalid feature name: $ac_useropt"
925889 ac_useropt_orig=$ac_useropt
926890 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
927891 case $ac_user_opts in
947911 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
948912 # Reject names that are not valid shell variable names.
949913 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
950 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
951 { (exit 1); exit 1; }; }
914 as_fn_error $? "invalid feature name: $ac_useropt"
952915 ac_useropt_orig=$ac_useropt
953916 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
954917 case $ac_user_opts in
11521115 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
11531116 # Reject names that are not valid shell variable names.
11541117 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1155 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1156 { (exit 1); exit 1; }; }
1118 as_fn_error $? "invalid package name: $ac_useropt"
11571119 ac_useropt_orig=$ac_useropt
11581120 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
11591121 case $ac_user_opts in
11691131 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
11701132 # Reject names that are not valid shell variable names.
11711133 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1172 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1173 { (exit 1); exit 1; }; }
1134 as_fn_error $? "invalid package name: $ac_useropt"
11741135 ac_useropt_orig=$ac_useropt
11751136 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
11761137 case $ac_user_opts in
12001161 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
12011162 x_libraries=$ac_optarg ;;
12021163
1203 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1204 Try \`$0 --help' for more information." >&2
1205 { (exit 1); exit 1; }; }
1164 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1165 Try \`$0 --help' for more information"
12061166 ;;
12071167
12081168 *=*)
12091169 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
12101170 # Reject names that are not valid shell variable names.
1211 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1212 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1213 { (exit 1); exit 1; }; }
1171 case $ac_envvar in #(
1172 '' | [0-9]* | *[!_$as_cr_alnum]* )
1173 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1174 esac
12141175 eval $ac_envvar=\$ac_optarg
12151176 export $ac_envvar ;;
12161177
12191180 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
12201181 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
12211182 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1222 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1183 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
12231184 ;;
12241185
12251186 esac
12271188
12281189 if test -n "$ac_prev"; then
12291190 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1230 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1231 { (exit 1); exit 1; }; }
1191 as_fn_error $? "missing argument to $ac_option"
12321192 fi
12331193
12341194 if test -n "$ac_unrecognized_opts"; then
12351195 case $enable_option_checking in
12361196 no) ;;
1237 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1238 { (exit 1); exit 1; }; } ;;
1197 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
12391198 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
12401199 esac
12411200 fi
12581217 [\\/$]* | ?:[\\/]* ) continue;;
12591218 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
12601219 esac
1261 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1262 { (exit 1); exit 1; }; }
1220 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
12631221 done
12641222
12651223 # There might be people who depend on the old broken behavior: `$host'
12731231 if test "x$host_alias" != x; then
12741232 if test "x$build_alias" = x; then
12751233 cross_compiling=maybe
1276 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1277 If a cross compiler is detected then cross compile mode will be used." >&2
1234 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1235 If a cross compiler is detected then cross compile mode will be used" >&2
12781236 elif test "x$build_alias" != "x$host_alias"; then
12791237 cross_compiling=yes
12801238 fi
12891247 ac_pwd=`pwd` && test -n "$ac_pwd" &&
12901248 ac_ls_di=`ls -di .` &&
12911249 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1292 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1293 { (exit 1); exit 1; }; }
1250 as_fn_error $? "working directory cannot be determined"
12941251 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1295 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1296 { (exit 1); exit 1; }; }
1252 as_fn_error $? "pwd does not report name of working directory"
12971253
12981254
12991255 # Find the source files, if location was not specified.
13321288 fi
13331289 if test ! -r "$srcdir/$ac_unique_file"; then
13341290 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1335 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1336 { (exit 1); exit 1; }; }
1291 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
13371292 fi
13381293 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
13391294 ac_abs_confdir=`(
1340 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1341 { (exit 1); exit 1; }; }
1295 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
13421296 pwd)`
13431297 # When building in place, set srcdir=.
13441298 if test "$ac_abs_confdir" = "$ac_pwd"; then
13641318 # Omit some internal or obsolete options to make the list less imposing.
13651319 # This message is too long to be a string in the A/UX 3.1 sh.
13661320 cat <<_ACEOF
1367 \`configure' configures gnomad2 2.9.4 to adapt to many kinds of systems.
1321 \`configure' configures gnomad2 2.9.5 to adapt to many kinds of systems.
13681322
13691323 Usage: $0 [OPTION]... [VAR=VALUE]...
13701324
13781332 --help=short display options specific to this package
13791333 --help=recursive display the short help of all the included packages
13801334 -V, --version display version information and exit
1381 -q, --quiet, --silent do not print \`checking...' messages
1335 -q, --quiet, --silent do not print \`checking ...' messages
13821336 --cache-file=FILE cache test results in FILE [disabled]
13831337 -C, --config-cache alias for \`--cache-file=config.cache'
13841338 -n, --no-create do not create output files
14301384
14311385 if test -n "$ac_init_help"; then
14321386 case $ac_init_help in
1433 short | recursive ) echo "Configuration of gnomad2 2.9.4:";;
1387 short | recursive ) echo "Configuration of gnomad2 2.9.5:";;
14341388 esac
14351389 cat <<\_ACEOF
14361390
14521406
14531407 Some influential environment variables:
14541408 PKG_CONFIG path to pkg-config utility
1409 PKG_CONFIG_PATH
1410 directories to add to pkg-config's search path
1411 PKG_CONFIG_LIBDIR
1412 path overriding pkg-config's built-in search path
14551413 GN_CFLAGS C compiler flags for GN, overriding pkg-config
14561414 GN_LIBS linker flags for GN, overriding pkg-config
1457 GNOMEUI_CFLAGS
1458 C compiler flags for GNOMEUI, overriding pkg-config
1459 GNOMEUI_LIBS
1460 linker flags for GNOMEUI, overriding pkg-config
14611415 TAG_CFLAGS C compiler flags for TAG, overriding pkg-config
14621416 TAG_LIBS linker flags for TAG, overriding pkg-config
14631417 CC C compiler command
14651419 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
14661420 nonstandard directory <lib dir>
14671421 LIBS libraries to pass to the linker, e.g. -l<library>
1468 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1422 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
14691423 you have headers in a nonstandard directory <include dir>
14701424 CPP C preprocessor
14711425 TAGLIB_CFLAGS
14731427 TAGLIB_LIBS linker flags for TAGLIB, overriding pkg-config
14741428 MTP_CFLAGS C compiler flags for MTP, overriding pkg-config
14751429 MTP_LIBS linker flags for MTP, overriding pkg-config
1476 DBUSGLIB_CFLAGS
1477 C compiler flags for DBUSGLIB, overriding pkg-config
1478 DBUSGLIB_LIBS
1479 linker flags for DBUSGLIB, overriding pkg-config
1480 HAL_CFLAGS C compiler flags for HAL, overriding pkg-config
1481 HAL_LIBS linker flags for HAL, overriding pkg-config
1430 GUDEV_CFLAGS
1431 C compiler flags for GUDEV, overriding pkg-config
1432 GUDEV_LIBS linker flags for GUDEV, overriding pkg-config
14821433
14831434 Use these variables to override the choices made by `configure' or to help
14841435 it to find libraries and programs with nonstandard names/locations.
14851436
1486 Report bugs to <http://sourceforge.net/tracker/?func=add&group_id=65573&atid=511470>.
1437 Report bugs to <triad@df.lth.se>.
14871438 _ACEOF
14881439 ac_status=$?
14891440 fi
15461497 test -n "$ac_init_help" && exit $ac_status
15471498 if $ac_init_version; then
15481499 cat <<\_ACEOF
1549 gnomad2 configure 2.9.4
1550 generated by GNU Autoconf 2.63
1551
1552 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1553 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1500 gnomad2 configure 2.9.5
1501 generated by GNU Autoconf 2.68
1502
1503 Copyright (C) 2010 Free Software Foundation, Inc.
15541504 This configure script is free software; the Free Software Foundation
15551505 gives unlimited permission to copy, distribute and modify it.
15561506 _ACEOF
15571507 exit
15581508 fi
1509
1510 ## ------------------------ ##
1511 ## Autoconf initialization. ##
1512 ## ------------------------ ##
1513
1514 # ac_fn_c_try_compile LINENO
1515 # --------------------------
1516 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1517 ac_fn_c_try_compile ()
1518 {
1519 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1520 rm -f conftest.$ac_objext
1521 if { { ac_try="$ac_compile"
1522 case "(($ac_try" in
1523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1524 *) ac_try_echo=$ac_try;;
1525 esac
1526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1527 $as_echo "$ac_try_echo"; } >&5
1528 (eval "$ac_compile") 2>conftest.err
1529 ac_status=$?
1530 if test -s conftest.err; then
1531 grep -v '^ *+' conftest.err >conftest.er1
1532 cat conftest.er1 >&5
1533 mv -f conftest.er1 conftest.err
1534 fi
1535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1536 test $ac_status = 0; } && {
1537 test -z "$ac_c_werror_flag" ||
1538 test ! -s conftest.err
1539 } && test -s conftest.$ac_objext; then :
1540 ac_retval=0
1541 else
1542 $as_echo "$as_me: failed program was:" >&5
1543 sed 's/^/| /' conftest.$ac_ext >&5
1544
1545 ac_retval=1
1546 fi
1547 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1548 as_fn_set_status $ac_retval
1549
1550 } # ac_fn_c_try_compile
1551
1552 # ac_fn_c_try_cpp LINENO
1553 # ----------------------
1554 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1555 ac_fn_c_try_cpp ()
1556 {
1557 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1558 if { { ac_try="$ac_cpp conftest.$ac_ext"
1559 case "(($ac_try" in
1560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1561 *) ac_try_echo=$ac_try;;
1562 esac
1563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1564 $as_echo "$ac_try_echo"; } >&5
1565 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1566 ac_status=$?
1567 if test -s conftest.err; then
1568 grep -v '^ *+' conftest.err >conftest.er1
1569 cat conftest.er1 >&5
1570 mv -f conftest.er1 conftest.err
1571 fi
1572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1573 test $ac_status = 0; } > conftest.i && {
1574 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1575 test ! -s conftest.err
1576 }; then :
1577 ac_retval=0
1578 else
1579 $as_echo "$as_me: failed program was:" >&5
1580 sed 's/^/| /' conftest.$ac_ext >&5
1581
1582 ac_retval=1
1583 fi
1584 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1585 as_fn_set_status $ac_retval
1586
1587 } # ac_fn_c_try_cpp
1588
1589 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1590 # -------------------------------------------------------
1591 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1592 # the include files in INCLUDES and setting the cache variable VAR
1593 # accordingly.
1594 ac_fn_c_check_header_mongrel ()
1595 {
1596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597 if eval \${$3+:} false; then :
1598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1599 $as_echo_n "checking for $2... " >&6; }
1600 if eval \${$3+:} false; then :
1601 $as_echo_n "(cached) " >&6
1602 fi
1603 eval ac_res=\$$3
1604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1605 $as_echo "$ac_res" >&6; }
1606 else
1607 # Is the header compilable?
1608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1609 $as_echo_n "checking $2 usability... " >&6; }
1610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1611 /* end confdefs.h. */
1612 $4
1613 #include <$2>
1614 _ACEOF
1615 if ac_fn_c_try_compile "$LINENO"; then :
1616 ac_header_compiler=yes
1617 else
1618 ac_header_compiler=no
1619 fi
1620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1622 $as_echo "$ac_header_compiler" >&6; }
1623
1624 # Is the header present?
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1626 $as_echo_n "checking $2 presence... " >&6; }
1627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1628 /* end confdefs.h. */
1629 #include <$2>
1630 _ACEOF
1631 if ac_fn_c_try_cpp "$LINENO"; then :
1632 ac_header_preproc=yes
1633 else
1634 ac_header_preproc=no
1635 fi
1636 rm -f conftest.err conftest.i conftest.$ac_ext
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1638 $as_echo "$ac_header_preproc" >&6; }
1639
1640 # So? What about this header?
1641 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1642 yes:no: )
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1644 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1646 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1647 ;;
1648 no:yes:* )
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1650 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1652 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1654 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1656 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1658 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1659 ( $as_echo "## ------------------------------ ##
1660 ## Report this to triad@df.lth.se ##
1661 ## ------------------------------ ##"
1662 ) | sed "s/^/$as_me: WARNING: /" >&2
1663 ;;
1664 esac
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1666 $as_echo_n "checking for $2... " >&6; }
1667 if eval \${$3+:} false; then :
1668 $as_echo_n "(cached) " >&6
1669 else
1670 eval "$3=\$ac_header_compiler"
1671 fi
1672 eval ac_res=\$$3
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1674 $as_echo "$ac_res" >&6; }
1675 fi
1676 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1677
1678 } # ac_fn_c_check_header_mongrel
1679
1680 # ac_fn_c_try_run LINENO
1681 # ----------------------
1682 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1683 # that executables *can* be run.
1684 ac_fn_c_try_run ()
1685 {
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 if { { ac_try="$ac_link"
1688 case "(($ac_try" in
1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690 *) ac_try_echo=$ac_try;;
1691 esac
1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693 $as_echo "$ac_try_echo"; } >&5
1694 (eval "$ac_link") 2>&5
1695 ac_status=$?
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1698 { { case "(($ac_try" in
1699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700 *) ac_try_echo=$ac_try;;
1701 esac
1702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703 $as_echo "$ac_try_echo"; } >&5
1704 (eval "$ac_try") 2>&5
1705 ac_status=$?
1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; }; }; then :
1708 ac_retval=0
1709 else
1710 $as_echo "$as_me: program exited with status $ac_status" >&5
1711 $as_echo "$as_me: failed program was:" >&5
1712 sed 's/^/| /' conftest.$ac_ext >&5
1713
1714 ac_retval=$ac_status
1715 fi
1716 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1718 as_fn_set_status $ac_retval
1719
1720 } # ac_fn_c_try_run
1721
1722 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1723 # -------------------------------------------------------
1724 # Tests whether HEADER exists and can be compiled using the include files in
1725 # INCLUDES, setting the cache variable VAR accordingly.
1726 ac_fn_c_check_header_compile ()
1727 {
1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1730 $as_echo_n "checking for $2... " >&6; }
1731 if eval \${$3+:} false; then :
1732 $as_echo_n "(cached) " >&6
1733 else
1734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1735 /* end confdefs.h. */
1736 $4
1737 #include <$2>
1738 _ACEOF
1739 if ac_fn_c_try_compile "$LINENO"; then :
1740 eval "$3=yes"
1741 else
1742 eval "$3=no"
1743 fi
1744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1745 fi
1746 eval ac_res=\$$3
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1748 $as_echo "$ac_res" >&6; }
1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750
1751 } # ac_fn_c_check_header_compile
1752
1753 # ac_fn_c_try_link LINENO
1754 # -----------------------
1755 # Try to link conftest.$ac_ext, and return whether this succeeded.
1756 ac_fn_c_try_link ()
1757 {
1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759 rm -f conftest.$ac_objext conftest$ac_exeext
1760 if { { ac_try="$ac_link"
1761 case "(($ac_try" in
1762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1763 *) ac_try_echo=$ac_try;;
1764 esac
1765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1766 $as_echo "$ac_try_echo"; } >&5
1767 (eval "$ac_link") 2>conftest.err
1768 ac_status=$?
1769 if test -s conftest.err; then
1770 grep -v '^ *+' conftest.err >conftest.er1
1771 cat conftest.er1 >&5
1772 mv -f conftest.er1 conftest.err
1773 fi
1774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1775 test $ac_status = 0; } && {
1776 test -z "$ac_c_werror_flag" ||
1777 test ! -s conftest.err
1778 } && test -s conftest$ac_exeext && {
1779 test "$cross_compiling" = yes ||
1780 $as_test_x conftest$ac_exeext
1781 }; then :
1782 ac_retval=0
1783 else
1784 $as_echo "$as_me: failed program was:" >&5
1785 sed 's/^/| /' conftest.$ac_ext >&5
1786
1787 ac_retval=1
1788 fi
1789 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1790 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1791 # interfere with the next link command; also delete a directory that is
1792 # left behind by Apple's compiler. We do this before executing the actions.
1793 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1794 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795 as_fn_set_status $ac_retval
1796
1797 } # ac_fn_c_try_link
1798
1799 # ac_fn_c_check_func LINENO FUNC VAR
1800 # ----------------------------------
1801 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1802 ac_fn_c_check_func ()
1803 {
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1806 $as_echo_n "checking for $2... " >&6; }
1807 if eval \${$3+:} false; then :
1808 $as_echo_n "(cached) " >&6
1809 else
1810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811 /* end confdefs.h. */
1812 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1814 #define $2 innocuous_$2
1815
1816 /* System header to define __stub macros and hopefully few prototypes,
1817 which can conflict with char $2 (); below.
1818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1819 <limits.h> exists even on freestanding compilers. */
1820
1821 #ifdef __STDC__
1822 # include <limits.h>
1823 #else
1824 # include <assert.h>
1825 #endif
1826
1827 #undef $2
1828
1829 /* Override any GCC internal prototype to avoid an error.
1830 Use char because int might match the return type of a GCC
1831 builtin and then its argument prototype would still apply. */
1832 #ifdef __cplusplus
1833 extern "C"
1834 #endif
1835 char $2 ();
1836 /* The GNU C library defines this for functions which it implements
1837 to always fail with ENOSYS. Some functions are actually named
1838 something starting with __ and the normal name is an alias. */
1839 #if defined __stub_$2 || defined __stub___$2
1840 choke me
1841 #endif
1842
1843 int
1844 main ()
1845 {
1846 return $2 ();
1847 ;
1848 return 0;
1849 }
1850 _ACEOF
1851 if ac_fn_c_try_link "$LINENO"; then :
1852 eval "$3=yes"
1853 else
1854 eval "$3=no"
1855 fi
1856 rm -f core conftest.err conftest.$ac_objext \
1857 conftest$ac_exeext conftest.$ac_ext
1858 fi
1859 eval ac_res=\$$3
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1861 $as_echo "$ac_res" >&6; }
1862 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1863
1864 } # ac_fn_c_check_func
15591865 cat >config.log <<_ACEOF
15601866 This file contains any messages produced by compilers while
15611867 running configure, to aid debugging if configure makes a mistake.
15621868
1563 It was created by gnomad2 $as_me 2.9.4, which was
1564 generated by GNU Autoconf 2.63. Invocation command line was
1869 It was created by gnomad2 $as_me 2.9.5, which was
1870 generated by GNU Autoconf 2.68. Invocation command line was
15651871
15661872 $ $0 $@
15671873
15971903 do
15981904 IFS=$as_save_IFS
15991905 test -z "$as_dir" && as_dir=.
1600 $as_echo "PATH: $as_dir"
1601 done
1906 $as_echo "PATH: $as_dir"
1907 done
16021908 IFS=$as_save_IFS
16031909
16041910 } >&5
16351941 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16361942 esac
16371943 case $ac_pass in
1638 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1944 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
16391945 2)
1640 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1946 as_fn_append ac_configure_args1 " '$ac_arg'"
16411947 if test $ac_must_keep_next = true; then
16421948 ac_must_keep_next=false # Got value, back to normal.
16431949 else
16531959 -* ) ac_must_keep_next=true ;;
16541960 esac
16551961 fi
1656 ac_configure_args="$ac_configure_args '$ac_arg'"
1962 as_fn_append ac_configure_args " '$ac_arg'"
16571963 ;;
16581964 esac
16591965 done
16601966 done
1661 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1662 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1967 { ac_configure_args0=; unset ac_configure_args0;}
1968 { ac_configure_args1=; unset ac_configure_args1;}
16631969
16641970 # When interrupted or exit'd, cleanup temporary files, and complete
16651971 # config.log. We remove comments because anyway the quotes in there
16711977 {
16721978 echo
16731979
1674 cat <<\_ASBOX
1675 ## ---------------- ##
1980 $as_echo "## ---------------- ##
16761981 ## Cache variables. ##
1677 ## ---------------- ##
1678 _ASBOX
1982 ## ---------------- ##"
16791983 echo
16801984 # The following way of writing the cache mishandles newlines in values,
16811985 (
16841988 case $ac_val in #(
16851989 *${as_nl}*)
16861990 case $ac_var in #(
1687 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1991 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16881992 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16891993 esac
16901994 case $ac_var in #(
16911995 _ | IFS | as_nl) ;; #(
16921996 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1693 *) $as_unset $ac_var ;;
1997 *) { eval $ac_var=; unset $ac_var;} ;;
16941998 esac ;;
16951999 esac
16962000 done
17092013 )
17102014 echo
17112015
1712 cat <<\_ASBOX
1713 ## ----------------- ##
2016 $as_echo "## ----------------- ##
17142017 ## Output variables. ##
1715 ## ----------------- ##
1716 _ASBOX
2018 ## ----------------- ##"
17172019 echo
17182020 for ac_var in $ac_subst_vars
17192021 do
17262028 echo
17272029
17282030 if test -n "$ac_subst_files"; then
1729 cat <<\_ASBOX
1730 ## ------------------- ##
2031 $as_echo "## ------------------- ##
17312032 ## File substitutions. ##
1732 ## ------------------- ##
1733 _ASBOX
2033 ## ------------------- ##"
17342034 echo
17352035 for ac_var in $ac_subst_files
17362036 do
17442044 fi
17452045
17462046 if test -s confdefs.h; then
1747 cat <<\_ASBOX
1748 ## ----------- ##
2047 $as_echo "## ----------- ##
17492048 ## confdefs.h. ##
1750 ## ----------- ##
1751 _ASBOX
2049 ## ----------- ##"
17522050 echo
17532051 cat confdefs.h
17542052 echo
17622060 exit $exit_status
17632061 ' 0
17642062 for ac_signal in 1 2 13 15; do
1765 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2063 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
17662064 done
17672065 ac_signal=0
17682066
17692067 # confdefs.h avoids OS command line length limits that DEFS can exceed.
17702068 rm -f -r conftest* confdefs.h
17712069
2070 $as_echo "/* confdefs.h */" > confdefs.h
2071
17722072 # Predefined preprocessor variables.
17732073
17742074 cat >>confdefs.h <<_ACEOF
17752075 #define PACKAGE_NAME "$PACKAGE_NAME"
17762076 _ACEOF
17772077
1778
17792078 cat >>confdefs.h <<_ACEOF
17802079 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
17812080 _ACEOF
17822081
1783
17842082 cat >>confdefs.h <<_ACEOF
17852083 #define PACKAGE_VERSION "$PACKAGE_VERSION"
17862084 _ACEOF
17872085
1788
17892086 cat >>confdefs.h <<_ACEOF
17902087 #define PACKAGE_STRING "$PACKAGE_STRING"
17912088 _ACEOF
17922089
1793
17942090 cat >>confdefs.h <<_ACEOF
17952091 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2092 _ACEOF
2093
2094 cat >>confdefs.h <<_ACEOF
2095 #define PACKAGE_URL "$PACKAGE_URL"
17962096 _ACEOF
17972097
17982098
18012101 ac_site_file1=NONE
18022102 ac_site_file2=NONE
18032103 if test -n "$CONFIG_SITE"; then
1804 ac_site_file1=$CONFIG_SITE
2104 # We do not want a PATH search for config.site.
2105 case $CONFIG_SITE in #((
2106 -*) ac_site_file1=./$CONFIG_SITE;;
2107 */*) ac_site_file1=$CONFIG_SITE;;
2108 *) ac_site_file1=./$CONFIG_SITE;;
2109 esac
18052110 elif test "x$prefix" != xNONE; then
18062111 ac_site_file1=$prefix/share/config.site
18072112 ac_site_file2=$prefix/etc/config.site
18122117 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
18132118 do
18142119 test "x$ac_site_file" = xNONE && continue
1815 if test -r "$ac_site_file"; then
1816 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2120 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
18172122 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
18182123 sed 's/^/| /' "$ac_site_file" >&5
1819 . "$ac_site_file"
2124 . "$ac_site_file" \
2125 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2126 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2127 as_fn_error $? "failed to load site script $ac_site_file
2128 See \`config.log' for more details" "$LINENO" 5; }
18202129 fi
18212130 done
18222131
18232132 if test -r "$cache_file"; then
1824 # Some versions of bash will fail to source /dev/null (special
1825 # files actually), so we avoid doing that.
1826 if test -f "$cache_file"; then
1827 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2133 # Some versions of bash will fail to source /dev/null (special files
2134 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2135 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
18282137 $as_echo "$as_me: loading cache $cache_file" >&6;}
18292138 case $cache_file in
18302139 [\\/]* | ?:[\\/]* ) . "$cache_file";;
18322141 esac
18332142 fi
18342143 else
1835 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
18362145 $as_echo "$as_me: creating cache $cache_file" >&6;}
18372146 >$cache_file
18382147 fi
18472156 eval ac_new_val=\$ac_env_${ac_var}_value
18482157 case $ac_old_set,$ac_new_set in
18492158 set,)
1850 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
18512160 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
18522161 ac_cache_corrupted=: ;;
18532162 ,set)
1854 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
18552164 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
18562165 ac_cache_corrupted=: ;;
18572166 ,);;
18612170 ac_old_val_w=`echo x $ac_old_val`
18622171 ac_new_val_w=`echo x $ac_new_val`
18632172 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1864 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
18652174 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
18662175 ac_cache_corrupted=:
18672176 else
1868 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
18692178 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
18702179 eval $ac_var=\$ac_old_val
18712180 fi
1872 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
18732182 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1874 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
18752184 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
18762185 fi;;
18772186 esac
18832192 esac
18842193 case " $ac_configure_args " in
18852194 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1886 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2195 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
18872196 esac
18882197 fi
18892198 done
18902199 if $ac_cache_corrupted; then
1891 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18922201 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1893 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
18942203 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1895 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1896 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1897 { (exit 1); exit 1; }; }
1898 fi
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
2204 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2205 fi
2206 ## -------------------- ##
2207 ## Main body of script. ##
2208 ## -------------------- ##
19232209
19242210 ac_ext=c
19252211 ac_cpp='$CPP $CPPFLAGS'
19292215
19302216
19312217
1932 am__api_version='1.10'
2218 am__api_version='1.11'
19332219
19342220 ac_aux_dir=
19352221 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
19482234 fi
19492235 done
19502236 if test -z "$ac_aux_dir"; then
1951 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1952 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1953 { (exit 1); exit 1; }; }
2237 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
19542238 fi
19552239
19562240 # These three variables are undocumented and unsupported,
19762260 # OS/2's system install, which has a completely different semantic
19772261 # ./install, which can be erroneously created by make from ./install.sh.
19782262 # Reject install programs that cannot install multiple files.
1979 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
19802264 $as_echo_n "checking for a BSD-compatible install... " >&6; }
19812265 if test -z "$INSTALL"; then
1982 if test "${ac_cv_path_install+set}" = set; then
2266 if ${ac_cv_path_install+:} false; then :
19832267 $as_echo_n "(cached) " >&6
19842268 else
19852269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19872271 do
19882272 IFS=$as_save_IFS
19892273 test -z "$as_dir" && as_dir=.
1990 # Account for people who put trailing slashes in PATH elements.
1991 case $as_dir/ in
1992 ./ | .// | /cC/* | \
2274 # Account for people who put trailing slashes in PATH elements.
2275 case $as_dir/ in #((
2276 ./ | .// | /[cC]/* | \
19932277 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1994 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2278 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
19952279 /usr/ucb/* ) ;;
19962280 *)
19972281 # OSF1 and SCO ODT 3.0 have their own names for install.
20282312 ;;
20292313 esac
20302314
2031 done
2315 done
20322316 IFS=$as_save_IFS
20332317
20342318 rm -rf conftest.one conftest.two conftest.dir
20442328 INSTALL=$ac_install_sh
20452329 fi
20462330 fi
2047 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
20482332 $as_echo "$INSTALL" >&6; }
20492333
20502334 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
20552339
20562340 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
20572341
2058 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
20592343 $as_echo_n "checking whether build environment is sane... " >&6; }
20602344 # Just in case
20612345 sleep 1
20622346 echo timestamp > conftest.file
2347 # Reject unsafe characters in $srcdir or the absolute working directory
2348 # name. Accept space and tab only in the latter.
2349 am_lf='
2350 '
2351 case `pwd` in
2352 *[\\\"\#\$\&\'\`$am_lf]*)
2353 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2354 esac
2355 case $srcdir in
2356 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2357 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2358 esac
2359
20632360 # Do `set' in a subshell so we don't clobber the current shell's
20642361 # arguments. Must try -L first in case configure is actually a
20652362 # symlink; some systems play weird games with the mod time of symlinks
20662363 # (eg FreeBSD returns the mod time of the symlink's containing
20672364 # directory).
20682365 if (
2069 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2366 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
20702367 if test "$*" = "X"; then
20712368 # -L didn't work.
2072 set X `ls -t $srcdir/configure conftest.file`
2369 set X `ls -t "$srcdir/configure" conftest.file`
20732370 fi
20742371 rm -f conftest.file
20752372 if test "$*" != "X $srcdir/configure conftest.file" \
20792376 # if, for instance, CONFIG_SHELL is bash and it inherits a
20802377 # broken ls alias from the environment. This has actually
20812378 # happened. Such a system could not be considered "sane".
2082 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2083 alias in your environment" >&5
2084 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2085 alias in your environment" >&2;}
2086 { (exit 1); exit 1; }; }
2379 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2380 alias in your environment" "$LINENO" 5
20872381 fi
20882382
20892383 test "$2" = conftest.file
20922386 # Ok.
20932387 :
20942388 else
2095 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2096 Check your system clock" >&5
2097 $as_echo "$as_me: error: newly created file is older than distributed files!
2098 Check your system clock" >&2;}
2099 { (exit 1); exit 1; }; }
2100 fi
2101 { $as_echo "$as_me:$LINENO: result: yes" >&5
2389 as_fn_error $? "newly created file is older than distributed files!
2390 Check your system clock" "$LINENO" 5
2391 fi
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21022393 $as_echo "yes" >&6; }
21032394 test "$program_prefix" != NONE &&
21042395 program_transform_name="s&^&$program_prefix&;$program_transform_name"
21132404 # expand $ac_aux_dir to an absolute path
21142405 am_aux_dir=`cd $ac_aux_dir && pwd`
21152406
2116 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2407 if test x"${MISSING+set}" != xset; then
2408 case $am_aux_dir in
2409 *\ * | *\ *)
2410 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2411 *)
2412 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2413 esac
2414 fi
21172415 # Use eval to expand $SHELL
21182416 if eval "$MISSING --run true"; then
21192417 am_missing_run="$MISSING --run "
21202418 else
21212419 am_missing_run=
2122 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
21232421 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
21242422 fi
21252423
2126 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2424 if test x"${install_sh}" != xset; then
2425 case $am_aux_dir in
2426 *\ * | *\ *)
2427 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2428 *)
2429 install_sh="\${SHELL} $am_aux_dir/install-sh"
2430 esac
2431 fi
2432
2433 # Installed binaries are usually stripped using `strip' when the user
2434 # run `make install-strip'. However `strip' might not be the right
2435 # tool to use in cross-compilation environments, therefore Automake
2436 # will honor the `STRIP' environment variable to overrule this program.
2437 if test "$cross_compiling" != no; then
2438 if test -n "$ac_tool_prefix"; then
2439 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2440 set dummy ${ac_tool_prefix}strip; ac_word=$2
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2442 $as_echo_n "checking for $ac_word... " >&6; }
2443 if ${ac_cv_prog_STRIP+:} false; then :
2444 $as_echo_n "(cached) " >&6
2445 else
2446 if test -n "$STRIP"; then
2447 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2448 else
2449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450 for as_dir in $PATH
2451 do
2452 IFS=$as_save_IFS
2453 test -z "$as_dir" && as_dir=.
2454 for ac_exec_ext in '' $ac_executable_extensions; do
2455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2456 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2458 break 2
2459 fi
2460 done
2461 done
2462 IFS=$as_save_IFS
2463
2464 fi
2465 fi
2466 STRIP=$ac_cv_prog_STRIP
2467 if test -n "$STRIP"; then
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2469 $as_echo "$STRIP" >&6; }
2470 else
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2472 $as_echo "no" >&6; }
2473 fi
2474
2475
2476 fi
2477 if test -z "$ac_cv_prog_STRIP"; then
2478 ac_ct_STRIP=$STRIP
2479 # Extract the first word of "strip", so it can be a program name with args.
2480 set dummy strip; ac_word=$2
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2482 $as_echo_n "checking for $ac_word... " >&6; }
2483 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2484 $as_echo_n "(cached) " >&6
2485 else
2486 if test -n "$ac_ct_STRIP"; then
2487 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2488 else
2489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2490 for as_dir in $PATH
2491 do
2492 IFS=$as_save_IFS
2493 test -z "$as_dir" && as_dir=.
2494 for ac_exec_ext in '' $ac_executable_extensions; do
2495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2496 ac_cv_prog_ac_ct_STRIP="strip"
2497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2498 break 2
2499 fi
2500 done
2501 done
2502 IFS=$as_save_IFS
2503
2504 fi
2505 fi
2506 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2507 if test -n "$ac_ct_STRIP"; then
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2509 $as_echo "$ac_ct_STRIP" >&6; }
2510 else
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2512 $as_echo "no" >&6; }
2513 fi
2514
2515 if test "x$ac_ct_STRIP" = x; then
2516 STRIP=":"
2517 else
2518 case $cross_compiling:$ac_tool_warned in
2519 yes:)
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2522 ac_tool_warned=yes ;;
2523 esac
2524 STRIP=$ac_ct_STRIP
2525 fi
2526 else
2527 STRIP="$ac_cv_prog_STRIP"
2528 fi
2529
2530 fi
2531 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2532
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
21272534 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
21282535 if test -z "$MKDIR_P"; then
2129 if test "${ac_cv_path_mkdir+set}" = set; then
2536 if ${ac_cv_path_mkdir+:} false; then :
21302537 $as_echo_n "(cached) " >&6
21312538 else
21322539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21342541 do
21352542 IFS=$as_save_IFS
21362543 test -z "$as_dir" && as_dir=.
2137 for ac_prog in mkdir gmkdir; do
2544 for ac_prog in mkdir gmkdir; do
21382545 for ac_exec_ext in '' $ac_executable_extensions; do
21392546 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
21402547 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
21462553 esac
21472554 done
21482555 done
2149 done
2556 done
21502557 IFS=$as_save_IFS
21512558
21522559 fi
21532560
2561 test -d ./--version && rmdir ./--version
21542562 if test "${ac_cv_path_mkdir+set}" = set; then
21552563 MKDIR_P="$ac_cv_path_mkdir -p"
21562564 else
21582566 # value for MKDIR_P within a source directory, because that will
21592567 # break other packages using the cache if that directory is
21602568 # removed, or if the value is a relative name.
2161 test -d ./--version && rmdir ./--version
21622569 MKDIR_P="$ac_install_sh -d"
21632570 fi
21642571 fi
2165 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
21662573 $as_echo "$MKDIR_P" >&6; }
21672574
21682575 mkdir_p="$MKDIR_P"
21752582 do
21762583 # Extract the first word of "$ac_prog", so it can be a program name with args.
21772584 set dummy $ac_prog; ac_word=$2
2178 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21792586 $as_echo_n "checking for $ac_word... " >&6; }
2180 if test "${ac_cv_prog_AWK+set}" = set; then
2587 if ${ac_cv_prog_AWK+:} false; then :
21812588 $as_echo_n "(cached) " >&6
21822589 else
21832590 if test -n "$AWK"; then
21882595 do
21892596 IFS=$as_save_IFS
21902597 test -z "$as_dir" && as_dir=.
2191 for ac_exec_ext in '' $ac_executable_extensions; do
2598 for ac_exec_ext in '' $ac_executable_extensions; do
21922599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21932600 ac_cv_prog_AWK="$ac_prog"
2194 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21952602 break 2
21962603 fi
21972604 done
2198 done
2605 done
21992606 IFS=$as_save_IFS
22002607
22012608 fi
22022609 fi
22032610 AWK=$ac_cv_prog_AWK
22042611 if test -n "$AWK"; then
2205 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
22062613 $as_echo "$AWK" >&6; }
22072614 else
2208 { $as_echo "$as_me:$LINENO: result: no" >&5
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22092616 $as_echo "no" >&6; }
22102617 fi
22112618
22132620 test -n "$AWK" && break
22142621 done
22152622
2216 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
22172624 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
22182625 set x ${MAKE-make}
22192626 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2220 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2627 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
22212628 $as_echo_n "(cached) " >&6
22222629 else
22232630 cat >conftest.make <<\_ACEOF
22252632 all:
22262633 @echo '@@@%%%=$(MAKE)=@@@%%%'
22272634 _ACEOF
2228 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2635 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
22292636 case `${MAKE-make} -f conftest.make 2>/dev/null` in
22302637 *@@@%%%=?*=@@@%%%*)
22312638 eval ac_cv_prog_make_${ac_make}_set=yes;;
22352642 rm -f conftest.make
22362643 fi
22372644 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2238 { $as_echo "$as_me:$LINENO: result: yes" >&5
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22392646 $as_echo "yes" >&6; }
22402647 SET_MAKE=
22412648 else
2242 { $as_echo "$as_me:$LINENO: result: no" >&5
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22432650 $as_echo "no" >&6; }
22442651 SET_MAKE="MAKE=${MAKE-make}"
22452652 fi
22592666 am__isrc=' -I$(srcdir)'
22602667 # test to see if srcdir already configured
22612668 if test -f $srcdir/config.status; then
2262 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2263 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2264 { (exit 1); exit 1; }; }
2669 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
22652670 fi
22662671 fi
22672672
22772682
22782683 # Define the identity of the package.
22792684 PACKAGE=gnomad2
2280 VERSION=2.9.4
2685 VERSION=2.9.5
22812686
22822687
22832688 cat >>confdefs.h <<_ACEOF
23042709
23052710
23062711 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2307
2308 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2309
2310 # Installed binaries are usually stripped using `strip' when the user
2311 # run `make install-strip'. However `strip' might not be the right
2312 # tool to use in cross-compilation environments, therefore Automake
2313 # will honor the `STRIP' environment variable to overrule this program.
2314 if test "$cross_compiling" != no; then
2315 if test -n "$ac_tool_prefix"; then
2316 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2317 set dummy ${ac_tool_prefix}strip; ac_word=$2
2318 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2319 $as_echo_n "checking for $ac_word... " >&6; }
2320 if test "${ac_cv_prog_STRIP+set}" = set; then
2321 $as_echo_n "(cached) " >&6
2322 else
2323 if test -n "$STRIP"; then
2324 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2325 else
2326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2327 for as_dir in $PATH
2328 do
2329 IFS=$as_save_IFS
2330 test -z "$as_dir" && as_dir=.
2331 for ac_exec_ext in '' $ac_executable_extensions; do
2332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2333 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2334 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2335 break 2
2336 fi
2337 done
2338 done
2339 IFS=$as_save_IFS
2340
2341 fi
2342 fi
2343 STRIP=$ac_cv_prog_STRIP
2344 if test -n "$STRIP"; then
2345 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2346 $as_echo "$STRIP" >&6; }
2347 else
2348 { $as_echo "$as_me:$LINENO: result: no" >&5
2349 $as_echo "no" >&6; }
2350 fi
2351
2352
2353 fi
2354 if test -z "$ac_cv_prog_STRIP"; then
2355 ac_ct_STRIP=$STRIP
2356 # Extract the first word of "strip", so it can be a program name with args.
2357 set dummy strip; ac_word=$2
2358 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2359 $as_echo_n "checking for $ac_word... " >&6; }
2360 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2361 $as_echo_n "(cached) " >&6
2362 else
2363 if test -n "$ac_ct_STRIP"; then
2364 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2365 else
2366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2367 for as_dir in $PATH
2368 do
2369 IFS=$as_save_IFS
2370 test -z "$as_dir" && as_dir=.
2371 for ac_exec_ext in '' $ac_executable_extensions; do
2372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2373 ac_cv_prog_ac_ct_STRIP="strip"
2374 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2375 break 2
2376 fi
2377 done
2378 done
2379 IFS=$as_save_IFS
2380
2381 fi
2382 fi
2383 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2384 if test -n "$ac_ct_STRIP"; then
2385 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2386 $as_echo "$ac_ct_STRIP" >&6; }
2387 else
2388 { $as_echo "$as_me:$LINENO: result: no" >&5
2389 $as_echo "no" >&6; }
2390 fi
2391
2392 if test "x$ac_ct_STRIP" = x; then
2393 STRIP=":"
2394 else
2395 case $cross_compiling:$ac_tool_warned in
2396 yes:)
2397 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2398 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2399 ac_tool_warned=yes ;;
2400 esac
2401 STRIP=$ac_ct_STRIP
2402 fi
2403 else
2404 STRIP="$ac_cv_prog_STRIP"
2405 fi
2406
2407 fi
2408 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
24092712
24102713 # We need awk for the "check" target. The system "awk" is bad on
24112714 # some platforms.
24272730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24282731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24292732
2430 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
24312734 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
24322735 set x ${MAKE-make}
24332736 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2434 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2737 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
24352738 $as_echo_n "(cached) " >&6
24362739 else
24372740 cat >conftest.make <<\_ACEOF
24392742 all:
24402743 @echo '@@@%%%=$(MAKE)=@@@%%%'
24412744 _ACEOF
2442 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2745 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
24432746 case `${MAKE-make} -f conftest.make 2>/dev/null` in
24442747 *@@@%%%=?*=@@@%%%*)
24452748 eval ac_cv_prog_make_${ac_make}_set=yes;;
24492752 rm -f conftest.make
24502753 fi
24512754 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2452 { $as_echo "$as_me:$LINENO: result: yes" >&5
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24532756 $as_echo "yes" >&6; }
24542757 SET_MAKE=
24552758 else
2456 { $as_echo "$as_me:$LINENO: result: no" >&5
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24572760 $as_echo "no" >&6; }
24582761 SET_MAKE="MAKE=${MAKE-make}"
24592762 fi
24602763
2461 # Find a good install program. We prefer a C program (faster),
2462 # so one script is as good as another. But avoid the broken or
2463 # incompatible versions:
2464 # SysV /etc/install, /usr/sbin/install
2465 # SunOS /usr/etc/install
2466 # IRIX /sbin/install
2467 # AIX /bin/install
2468 # AmigaOS /C/install, which installs bootblocks on floppy discs
2469 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2470 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2471 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2472 # OS/2's system install, which has a completely different semantic
2473 # ./install, which can be erroneously created by make from ./install.sh.
2474 # Reject install programs that cannot install multiple files.
2475 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2476 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2477 if test -z "$INSTALL"; then
2478 if test "${ac_cv_path_install+set}" = set; then
2479 $as_echo_n "(cached) " >&6
2480 else
2481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482 for as_dir in $PATH
2483 do
2484 IFS=$as_save_IFS
2485 test -z "$as_dir" && as_dir=.
2486 # Account for people who put trailing slashes in PATH elements.
2487 case $as_dir/ in
2488 ./ | .// | /cC/* | \
2489 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2490 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2491 /usr/ucb/* ) ;;
2492 *)
2493 # OSF1 and SCO ODT 3.0 have their own names for install.
2494 # Don't use installbsd from OSF since it installs stuff as root
2495 # by default.
2496 for ac_prog in ginstall scoinst install; do
2497 for ac_exec_ext in '' $ac_executable_extensions; do
2498 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2499 if test $ac_prog = install &&
2500 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2501 # AIX install. It has an incompatible calling convention.
2502 :
2503 elif test $ac_prog = install &&
2504 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2505 # program-specific install script used by HP pwplus--don't use.
2506 :
2507 else
2508 rm -rf conftest.one conftest.two conftest.dir
2509 echo one > conftest.one
2510 echo two > conftest.two
2511 mkdir conftest.dir
2512 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2513 test -s conftest.one && test -s conftest.two &&
2514 test -s conftest.dir/conftest.one &&
2515 test -s conftest.dir/conftest.two
2516 then
2517 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2518 break 3
2519 fi
2520 fi
2521 fi
2522 done
2523 done
2524 ;;
2525 esac
2526
2527 done
2528 IFS=$as_save_IFS
2529
2530 rm -rf conftest.one conftest.two conftest.dir
2531
2532 fi
2533 if test "${ac_cv_path_install+set}" = set; then
2534 INSTALL=$ac_cv_path_install
2535 else
2536 # As a last resort, use the slow shell script. Don't cache a
2537 # value for INSTALL within a source directory, because that will
2538 # break other packages using the cache if that directory is
2539 # removed, or if the value is a relative name.
2540 INSTALL=$ac_install_sh
2541 fi
2542 fi
2543 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2544 $as_echo "$INSTALL" >&6; }
2545
2546 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2547 # It thinks the first close brace ends the variable substitution.
2548 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2549
2550 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2551
2552 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
25532764
25542765
25552766
25572768 if test -d /usr/local/lib/pkgconfig ; then
25582769 export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig
25592770 fi
2771
2772
2773
2774
25602775
25612776
25622777
25642779 if test -n "$ac_tool_prefix"; then
25652780 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25662781 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
2567 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25682783 $as_echo_n "checking for $ac_word... " >&6; }
2569 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
2784 if ${ac_cv_path_PKG_CONFIG+:} false; then :
25702785 $as_echo_n "(cached) " >&6
25712786 else
25722787 case $PKG_CONFIG in
25792794 do
25802795 IFS=$as_save_IFS
25812796 test -z "$as_dir" && as_dir=.
2582 for ac_exec_ext in '' $ac_executable_extensions; do
2797 for ac_exec_ext in '' $ac_executable_extensions; do
25832798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25842799 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2585 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25862801 break 2
25872802 fi
25882803 done
2589 done
2804 done
25902805 IFS=$as_save_IFS
25912806
25922807 ;;
25942809 fi
25952810 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25962811 if test -n "$PKG_CONFIG"; then
2597 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
25982813 $as_echo "$PKG_CONFIG" >&6; }
25992814 else
2600 { $as_echo "$as_me:$LINENO: result: no" >&5
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26012816 $as_echo "no" >&6; }
26022817 fi
26032818
26072822 ac_pt_PKG_CONFIG=$PKG_CONFIG
26082823 # Extract the first word of "pkg-config", so it can be a program name with args.
26092824 set dummy pkg-config; ac_word=$2
2610 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26112826 $as_echo_n "checking for $ac_word... " >&6; }
2612 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
2827 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
26132828 $as_echo_n "(cached) " >&6
26142829 else
26152830 case $ac_pt_PKG_CONFIG in
26222837 do
26232838 IFS=$as_save_IFS
26242839 test -z "$as_dir" && as_dir=.
2625 for ac_exec_ext in '' $ac_executable_extensions; do
2840 for ac_exec_ext in '' $ac_executable_extensions; do
26262841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26272842 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2628 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26292844 break 2
26302845 fi
26312846 done
2632 done
2847 done
26332848 IFS=$as_save_IFS
26342849
26352850 ;;
26372852 fi
26382853 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
26392854 if test -n "$ac_pt_PKG_CONFIG"; then
2640 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
26412856 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
26422857 else
2643 { $as_echo "$as_me:$LINENO: result: no" >&5
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26442859 $as_echo "no" >&6; }
26452860 fi
26462861
26492864 else
26502865 case $cross_compiling:$ac_tool_warned in
26512866 yes:)
2652 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26532868 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26542869 ac_tool_warned=yes ;;
26552870 esac
26622877 fi
26632878 if test -n "$PKG_CONFIG"; then
26642879 _pkg_min_version=0.9.0
2665 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
26662881 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
26672882 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
2668 { $as_echo "$as_me:$LINENO: result: yes" >&5
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26692884 $as_echo "yes" >&6; }
26702885 else
2671 { $as_echo "$as_me:$LINENO: result: no" >&5
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26722887 $as_echo "no" >&6; }
26732888 PKG_CONFIG=""
26742889 fi
2675
26762890 fi
26772891
26782892 pkg_failed=no
2679 { $as_echo "$as_me:$LINENO: checking for GN" >&5
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GN" >&5
26802894 $as_echo_n "checking for GN... " >&6; }
26812895
26822896 if test -n "$GN_CFLAGS"; then
26832897 pkg_cv_GN_CFLAGS="$GN_CFLAGS"
26842898 elif test -n "$PKG_CONFIG"; then
26852899 if test -n "$PKG_CONFIG" && \
2686 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\\
2900 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\\
26872901 glib-2.0 \\
26882902 gthread-2.0 \\
26892903 libnjb >= 2.2.4 \\
2690 gtk+-2.0 \\
2691 \"") >&5
2904 gtk+-2.0 >= 2.6.0 \\
2905 \""; } >&5
26922906 ($PKG_CONFIG --exists --print-errors "\
26932907 glib-2.0 \
26942908 gthread-2.0 \
26952909 libnjb >= 2.2.4 \
2696 gtk+-2.0 \
2910 gtk+-2.0 >= 2.6.0 \
26972911 ") 2>&5
26982912 ac_status=$?
2699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); }; then
2913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2914 test $ac_status = 0; }; then
27012915 pkg_cv_GN_CFLAGS=`$PKG_CONFIG --cflags "\
27022916 glib-2.0 \
27032917 gthread-2.0 \
27042918 libnjb >= 2.2.4 \
2705 gtk+-2.0 \
2919 gtk+-2.0 >= 2.6.0 \
27062920 " 2>/dev/null`
27072921 else
27082922 pkg_failed=yes
27142928 pkg_cv_GN_LIBS="$GN_LIBS"
27152929 elif test -n "$PKG_CONFIG"; then
27162930 if test -n "$PKG_CONFIG" && \
2717 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\\
2931 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\\
27182932 glib-2.0 \\
27192933 gthread-2.0 \\
27202934 libnjb >= 2.2.4 \\
2721 gtk+-2.0 \\
2722 \"") >&5
2935 gtk+-2.0 >= 2.6.0 \\
2936 \""; } >&5
27232937 ($PKG_CONFIG --exists --print-errors "\
27242938 glib-2.0 \
27252939 gthread-2.0 \
27262940 libnjb >= 2.2.4 \
2727 gtk+-2.0 \
2941 gtk+-2.0 >= 2.6.0 \
27282942 ") 2>&5
27292943 ac_status=$?
2730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }; then
2944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2945 test $ac_status = 0; }; then
27322946 pkg_cv_GN_LIBS=`$PKG_CONFIG --libs "\
27332947 glib-2.0 \
27342948 gthread-2.0 \
27352949 libnjb >= 2.2.4 \
2736 gtk+-2.0 \
2950 gtk+-2.0 >= 2.6.0 \
27372951 " 2>/dev/null`
27382952 else
27392953 pkg_failed=yes
27452959
27462960
27472961 if test $pkg_failed = yes; then
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2963 $as_echo "no" >&6; }
27482964
27492965 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27502966 _pkg_short_errors_supported=yes
27562972 glib-2.0 \
27572973 gthread-2.0 \
27582974 libnjb >= 2.2.4 \
2759 gtk+-2.0 \
2975 gtk+-2.0 >= 2.6.0 \
27602976 " 2>&1`
27612977 else
27622978 GN_PKG_ERRORS=`$PKG_CONFIG --print-errors "\
27632979 glib-2.0 \
27642980 gthread-2.0 \
27652981 libnjb >= 2.2.4 \
2766 gtk+-2.0 \
2982 gtk+-2.0 >= 2.6.0 \
27672983 " 2>&1`
27682984 fi
27692985 # Put the nasty error message in config.log where it belongs
27702986 echo "$GN_PKG_ERRORS" >&5
27712987
2772 { { $as_echo "$as_me:$LINENO: error: Package requirements (\
2988 as_fn_error $? "Package requirements (\
27732989 glib-2.0 \
27742990 gthread-2.0 \
27752991 libnjb >= 2.2.4 \
2776 gtk+-2.0 \
2992 gtk+-2.0 >= 2.6.0 \
27772993 ) were not met:
27782994
27792995 $GN_PKG_ERRORS
27802996
27812997 Consider adjusting the PKG_CONFIG_PATH environment variable if you
27822998 installed software in a non-standard prefix.
2999
3000 Alternatively, you may set the environment variables GN_CFLAGS
3001 and GN_LIBS to avoid the need to call pkg-config.
3002 See the pkg-config man page for more details." "$LINENO" 5
3003
3004 elif test $pkg_failed = untried; then
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3006 $as_echo "no" >&6; }
3007 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3008 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3009 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
3010 is in your PATH or set the PKG_CONFIG environment variable to the full
3011 path to pkg-config.
27833012
27843013 Alternatively, you may set the environment variables GN_CFLAGS
27853014 and GN_LIBS to avoid the need to call pkg-config.
27863015 See the pkg-config man page for more details.
2787 " >&5
2788 $as_echo "$as_me: error: Package requirements (\
2789 glib-2.0 \
2790 gthread-2.0 \
2791 libnjb >= 2.2.4 \
2792 gtk+-2.0 \
2793 ) were not met:
2794
2795 $GN_PKG_ERRORS
2796
2797 Consider adjusting the PKG_CONFIG_PATH environment variable if you
2798 installed software in a non-standard prefix.
2799
2800 Alternatively, you may set the environment variables GN_CFLAGS
2801 and GN_LIBS to avoid the need to call pkg-config.
2802 See the pkg-config man page for more details.
2803 " >&2;}
2804 { (exit 1); exit 1; }; }
2805 elif test $pkg_failed = untried; then
2806 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2807 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2808 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
2809 is in your PATH or set the PKG_CONFIG environment variable to the full
2810 path to pkg-config.
2811
2812 Alternatively, you may set the environment variables GN_CFLAGS
2813 and GN_LIBS to avoid the need to call pkg-config.
2814 See the pkg-config man page for more details.
28153016
28163017 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
2817 See \`config.log' for more details." >&5
2818 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
2819 is in your PATH or set the PKG_CONFIG environment variable to the full
2820 path to pkg-config.
2821
2822 Alternatively, you may set the environment variables GN_CFLAGS
2823 and GN_LIBS to avoid the need to call pkg-config.
2824 See the pkg-config man page for more details.
2825
2826 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
2827 See \`config.log' for more details." >&2;}
2828 { (exit 1); exit 1; }; }; }
3018 See \`config.log' for more details" "$LINENO" 5; }
3019
28293020 else
28303021 GN_CFLAGS=$pkg_cv_GN_CFLAGS
28313022 GN_LIBS=$pkg_cv_GN_LIBS
2832 { $as_echo "$as_me:$LINENO: result: yes" >&5
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28333024 $as_echo "yes" >&6; }
2834 :
2835 fi
2836
2837 GTK2_VER=`$PKG_CONFIG --modversion gtk+-2.0`
3025
3026 fi
3027
3028 GTK_VER=`$PKG_CONFIG --modversion gtk+-2.0`
28383029 LIBNJB_VER=`$PKG_CONFIG --modversion libnjb`
28393030
2840 { $as_echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.6.0" >&5
2841 $as_echo_n "checking for gtk+-2.0 >= 2.6.0... " >&6; }
2842 TEMP_GTK_VER=`$PKG_CONFIG --modversion gtk+-2.0`
2843 TEMP_GTK_MAJOR_MIN=2
2844 TEMP_GTK_MINOR_MIN=6
2845 TEMP_GTK_MICRO_MIN=0
2846 TEMP_GTK_MAJOR=`echo $TEMP_GTK_VER | sed -e 's/^\([^.]\{1,\}\)\..*$/\1/'`
2847 TEMP_GTK_MINOR=`echo $TEMP_GTK_VER | sed -e 's/^[^.]\{1,\}\.\([^.]\{1,\}\)\..*$/\1/'`
2848 TEMP_GTK_MICRO=`echo $TEMP_GTK_VER | sed -e 's/^[^.]\{1,\}\.[^.]\{1,\}\.\([^.]\{1,\}\).*$/\1/'`
2849 TEMP_GTK_VER_OK=false
2850 if test $TEMP_GTK_MAJOR -gt $TEMP_GTK_MAJOR_MIN ; then
2851 TEMP_GTK_VER_OK=true
2852 else
2853 if test $TEMP_GTK_MAJOR -eq $TEMP_GTK_MAJOR_MIN -a $TEMP_GTK_MINOR -gt $TEMP_GTK_MINOR_MIN ; then
2854 TEMP_GTK_VER_OK=true
2855 else
2856 if test $TEMP_GTK_MAJOR -eq $TEMP_GTK_MAJOR_MIN -a $TEMP_GTK_MINOR -eq $TEMP_GTK_MINOR_MIN -a $TEMP_GTK_MICRO -ge $TEMP_GTK_MICRO_MIN ; then
2857 TEMP_GTK_VER_OK=true
2858 fi
2859 fi
2860 fi
2861 if test "$TEMP_GTK_VER_OK" != "true" ; then
2862 { $as_echo "$as_me:$LINENO: result: no" >&5
2863 $as_echo "no" >&6; }
2864 { $as_echo "$as_me:$LINENO: checking if libgnomeui-2.0 is available on this machine" >&5
2865 $as_echo_n "checking if libgnomeui-2.0 is available on this machine... " >&6; }
2866 if $PKG_CONFIG --exists libgnomeui-2.0 ; then
2867 { $as_echo "$as_me:$LINENO: result: yes" >&5
2868 $as_echo "yes" >&6; }
2869 { $as_echo "$as_me:$LINENO: adding some more flags and libs for libgnomeui-2.0" >&5
2870 $as_echo "$as_me: adding some more flags and libs for libgnomeui-2.0" >&hold on;}
3031 OSFLAGS=""
3032
3033
3034
28713035
28723036 pkg_failed=no
2873 { $as_echo "$as_me:$LINENO: checking for GNOMEUI" >&5
2874 $as_echo_n "checking for GNOMEUI... " >&6; }
2875
2876 if test -n "$GNOMEUI_CFLAGS"; then
2877 pkg_cv_GNOMEUI_CFLAGS="$GNOMEUI_CFLAGS"
2878 elif test -n "$PKG_CONFIG"; then
2879 if test -n "$PKG_CONFIG" && \
2880 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeui-2.0\"") >&5
2881 ($PKG_CONFIG --exists --print-errors "libgnomeui-2.0") 2>&5
2882 ac_status=$?
2883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884 (exit $ac_status); }; then
2885 pkg_cv_GNOMEUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeui-2.0" 2>/dev/null`
2886 else
2887 pkg_failed=yes
2888 fi
2889 else
2890 pkg_failed=untried
2891 fi
2892 if test -n "$GNOMEUI_LIBS"; then
2893 pkg_cv_GNOMEUI_LIBS="$GNOMEUI_LIBS"
2894 elif test -n "$PKG_CONFIG"; then
2895 if test -n "$PKG_CONFIG" && \
2896 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeui-2.0\"") >&5
2897 ($PKG_CONFIG --exists --print-errors "libgnomeui-2.0") 2>&5
2898 ac_status=$?
2899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); }; then
2901 pkg_cv_GNOMEUI_LIBS=`$PKG_CONFIG --libs "libgnomeui-2.0" 2>/dev/null`
2902 else
2903 pkg_failed=yes
2904 fi
2905 else
2906 pkg_failed=untried
2907 fi
2908
2909
2910
2911 if test $pkg_failed = yes; then
2912
2913 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
2914 _pkg_short_errors_supported=yes
2915 else
2916 _pkg_short_errors_supported=no
2917 fi
2918 if test $_pkg_short_errors_supported = yes; then
2919 GNOMEUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgnomeui-2.0" 2>&1`
2920 else
2921 GNOMEUI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgnomeui-2.0" 2>&1`
2922 fi
2923 # Put the nasty error message in config.log where it belongs
2924 echo "$GNOMEUI_PKG_ERRORS" >&5
2925
2926 { { $as_echo "$as_me:$LINENO: error: Package requirements (libgnomeui-2.0) were not met:
2927
2928 $GNOMEUI_PKG_ERRORS
2929
2930 Consider adjusting the PKG_CONFIG_PATH environment variable if you
2931 installed software in a non-standard prefix.
2932
2933 Alternatively, you may set the environment variables GNOMEUI_CFLAGS
2934 and GNOMEUI_LIBS to avoid the need to call pkg-config.
2935 See the pkg-config man page for more details.
2936 " >&5
2937 $as_echo "$as_me: error: Package requirements (libgnomeui-2.0) were not met:
2938
2939 $GNOMEUI_PKG_ERRORS
2940
2941 Consider adjusting the PKG_CONFIG_PATH environment variable if you
2942 installed software in a non-standard prefix.
2943
2944 Alternatively, you may set the environment variables GNOMEUI_CFLAGS
2945 and GNOMEUI_LIBS to avoid the need to call pkg-config.
2946 See the pkg-config man page for more details.
2947 " >&2;}
2948 { (exit 1); exit 1; }; }
2949 elif test $pkg_failed = untried; then
2950 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2951 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2952 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
2953 is in your PATH or set the PKG_CONFIG environment variable to the full
2954 path to pkg-config.
2955
2956 Alternatively, you may set the environment variables GNOMEUI_CFLAGS
2957 and GNOMEUI_LIBS to avoid the need to call pkg-config.
2958 See the pkg-config man page for more details.
2959
2960 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
2961 See \`config.log' for more details." >&5
2962 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
2963 is in your PATH or set the PKG_CONFIG environment variable to the full
2964 path to pkg-config.
2965
2966 Alternatively, you may set the environment variables GNOMEUI_CFLAGS
2967 and GNOMEUI_LIBS to avoid the need to call pkg-config.
2968 See the pkg-config man page for more details.
2969
2970 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
2971 See \`config.log' for more details." >&2;}
2972 { (exit 1); exit 1; }; }; }
2973 else
2974 GNOMEUI_CFLAGS=$pkg_cv_GNOMEUI_CFLAGS
2975 GNOMEUI_LIBS=$pkg_cv_GNOMEUI_LIBS
2976 { $as_echo "$as_me:$LINENO: result: yes" >&5
2977 $as_echo "yes" >&6; }
2978 :
2979 fi
2980 GNOMEUI_VER=`$PKG_CONFIG --modversion libgnomeui-2.0`
2981 else
2982 { $as_echo "$as_me:$LINENO: result: no" >&5
2983 $as_echo "no" >&6; }
2984 { { $as_echo "$as_me:$LINENO: error:
2985 *** Neither gtk+-2.0 >= 2.6.0 nor libgnomeui-2.0 found!
2986 *** Either install them or fix PKG_CONFIG_PATH enviroment variable to
2987 *** point to their location, if they are installed already." >&5
2988 $as_echo "$as_me: error:
2989 *** Neither gtk+-2.0 >= 2.6.0 nor libgnomeui-2.0 found!
2990 *** Either install them or fix PKG_CONFIG_PATH enviroment variable to
2991 *** point to their location, if they are installed already." >&2;}
2992 { (exit 1); exit 1; }; }
2993 fi
2994 else
2995 GNOMEUI_CFLAGS=""
2996 GNOMEUI_LIBS=""
2997 GNOMEUI_VER="NOT USED"
2998
2999
3000 fi
3001
3002 OSFLAGS=""
3003
3004
3005
3006
3007 pkg_failed=no
3008 { $as_echo "$as_me:$LINENO: checking for TAG" >&5
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAG" >&5
30093038 $as_echo_n "checking for TAG... " >&6; }
30103039
30113040 if test -n "$TAG_CFLAGS"; then
30123041 pkg_cv_TAG_CFLAGS="$TAG_CFLAGS"
30133042 elif test -n "$PKG_CONFIG"; then
30143043 if test -n "$PKG_CONFIG" && \
3015 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"id3tag >= 0.15\"") >&5
3044 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"id3tag >= 0.15\""; } >&5
30163045 ($PKG_CONFIG --exists --print-errors "id3tag >= 0.15") 2>&5
30173046 ac_status=$?
3018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); }; then
3047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3048 test $ac_status = 0; }; then
30203049 pkg_cv_TAG_CFLAGS=`$PKG_CONFIG --cflags "id3tag >= 0.15" 2>/dev/null`
30213050 else
30223051 pkg_failed=yes
30283057 pkg_cv_TAG_LIBS="$TAG_LIBS"
30293058 elif test -n "$PKG_CONFIG"; then
30303059 if test -n "$PKG_CONFIG" && \
3031 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"id3tag >= 0.15\"") >&5
3060 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"id3tag >= 0.15\""; } >&5
30323061 ($PKG_CONFIG --exists --print-errors "id3tag >= 0.15") 2>&5
30333062 ac_status=$?
3034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); }; then
3063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3064 test $ac_status = 0; }; then
30363065 pkg_cv_TAG_LIBS=`$PKG_CONFIG --libs "id3tag >= 0.15" 2>/dev/null`
30373066 else
30383067 pkg_failed=yes
30443073
30453074
30463075 if test $pkg_failed = yes; then
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3077 $as_echo "no" >&6; }
30473078
30483079 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30493080 _pkg_short_errors_supported=yes
30583089 # Put the nasty error message in config.log where it belongs
30593090 echo "$TAG_PKG_ERRORS" >&5
30603091
3061 { $as_echo "$as_me:$LINENO: result: no" >&5
3092 found_id3tag_pkg=no
3093 elif test $pkg_failed = untried; then
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30623095 $as_echo "no" >&6; }
3063 found_id3tag_pkg=no
3064 elif test $pkg_failed = untried; then
30653096 found_id3tag_pkg=no
30663097 else
30673098 TAG_CFLAGS=$pkg_cv_TAG_CFLAGS
30683099 TAG_LIBS=$pkg_cv_TAG_LIBS
3069 { $as_echo "$as_me:$LINENO: result: yes" >&5
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30703101 $as_echo "yes" >&6; }
30713102 found_id3tag_pkg=yes
30723103 fi
30793110 am_make=${MAKE-make}
30803111 cat > confinc << 'END'
30813112 am__doit:
3082 @echo done
3113 @echo this is the am__doit target
30833114 .PHONY: am__doit
30843115 END
30853116 # If we don't find an include directive, just comment out the code.
3086 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
30873118 $as_echo_n "checking for style of include used by $am_make... " >&6; }
30883119 am__include="#"
30893120 am__quote=
30903121 _am_result=none
30913122 # First try GNU make style include.
30923123 echo "include confinc" > confmf
3093 # We grep out `Entering directory' and `Leaving directory'
3094 # messages which can occur if `w' ends up in MAKEFLAGS.
3095 # In particular we don't look at `^make:' because GNU make might
3096 # be invoked under some other name (usually "gmake"), in which
3097 # case it prints its new name instead of `make'.
3098 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3099 am__include=include
3100 am__quote=
3101 _am_result=GNU
3102 fi
3124 # Ignore all kinds of additional output from `make'.
3125 case `$am_make -s -f confmf 2> /dev/null` in #(
3126 *the\ am__doit\ target*)
3127 am__include=include
3128 am__quote=
3129 _am_result=GNU
3130 ;;
3131 esac
31033132 # Now try BSD make style include.
31043133 if test "$am__include" = "#"; then
31053134 echo '.include "confinc"' > confmf
3106 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3107 am__include=.include
3108 am__quote="\""
3109 _am_result=BSD
3110 fi
3111 fi
3112
3113
3114 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3135 case `$am_make -s -f confmf 2> /dev/null` in #(
3136 *the\ am__doit\ target*)
3137 am__include=.include
3138 am__quote="\""
3139 _am_result=BSD
3140 ;;
3141 esac
3142 fi
3143
3144
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
31153146 $as_echo "$_am_result" >&6; }
31163147 rm -f confinc confmf
31173148
31183149 # Check whether --enable-dependency-tracking was given.
3119 if test "${enable_dependency_tracking+set}" = set; then
3150 if test "${enable_dependency_tracking+set}" = set; then :
31203151 enableval=$enable_dependency_tracking;
31213152 fi
31223153
31413172 if test -n "$ac_tool_prefix"; then
31423173 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
31433174 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3144 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31453176 $as_echo_n "checking for $ac_word... " >&6; }
3146 if test "${ac_cv_prog_CC+set}" = set; then
3177 if ${ac_cv_prog_CC+:} false; then :
31473178 $as_echo_n "(cached) " >&6
31483179 else
31493180 if test -n "$CC"; then
31543185 do
31553186 IFS=$as_save_IFS
31563187 test -z "$as_dir" && as_dir=.
3157 for ac_exec_ext in '' $ac_executable_extensions; do
3188 for ac_exec_ext in '' $ac_executable_extensions; do
31583189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31593190 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3160 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31613192 break 2
31623193 fi
31633194 done
3164 done
3195 done
31653196 IFS=$as_save_IFS
31663197
31673198 fi
31683199 fi
31693200 CC=$ac_cv_prog_CC
31703201 if test -n "$CC"; then
3171 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
31723203 $as_echo "$CC" >&6; }
31733204 else
3174 { $as_echo "$as_me:$LINENO: result: no" >&5
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31753206 $as_echo "no" >&6; }
31763207 fi
31773208
31813212 ac_ct_CC=$CC
31823213 # Extract the first word of "gcc", so it can be a program name with args.
31833214 set dummy gcc; ac_word=$2
3184 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31853216 $as_echo_n "checking for $ac_word... " >&6; }
3186 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3217 if ${ac_cv_prog_ac_ct_CC+:} false; then :
31873218 $as_echo_n "(cached) " >&6
31883219 else
31893220 if test -n "$ac_ct_CC"; then
31943225 do
31953226 IFS=$as_save_IFS
31963227 test -z "$as_dir" && as_dir=.
3197 for ac_exec_ext in '' $ac_executable_extensions; do
3228 for ac_exec_ext in '' $ac_executable_extensions; do
31983229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31993230 ac_cv_prog_ac_ct_CC="gcc"
3200 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32013232 break 2
32023233 fi
32033234 done
3204 done
3235 done
32053236 IFS=$as_save_IFS
32063237
32073238 fi
32083239 fi
32093240 ac_ct_CC=$ac_cv_prog_ac_ct_CC
32103241 if test -n "$ac_ct_CC"; then
3211 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
32123243 $as_echo "$ac_ct_CC" >&6; }
32133244 else
3214 { $as_echo "$as_me:$LINENO: result: no" >&5
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32153246 $as_echo "no" >&6; }
32163247 fi
32173248
32203251 else
32213252 case $cross_compiling:$ac_tool_warned in
32223253 yes:)
3223 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32243255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32253256 ac_tool_warned=yes ;;
32263257 esac
32343265 if test -n "$ac_tool_prefix"; then
32353266 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
32363267 set dummy ${ac_tool_prefix}cc; ac_word=$2
3237 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32383269 $as_echo_n "checking for $ac_word... " >&6; }
3239 if test "${ac_cv_prog_CC+set}" = set; then
3270 if ${ac_cv_prog_CC+:} false; then :
32403271 $as_echo_n "(cached) " >&6
32413272 else
32423273 if test -n "$CC"; then
32473278 do
32483279 IFS=$as_save_IFS
32493280 test -z "$as_dir" && as_dir=.
3250 for ac_exec_ext in '' $ac_executable_extensions; do
3281 for ac_exec_ext in '' $ac_executable_extensions; do
32513282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32523283 ac_cv_prog_CC="${ac_tool_prefix}cc"
3253 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32543285 break 2
32553286 fi
32563287 done
3257 done
3288 done
32583289 IFS=$as_save_IFS
32593290
32603291 fi
32613292 fi
32623293 CC=$ac_cv_prog_CC
32633294 if test -n "$CC"; then
3264 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
32653296 $as_echo "$CC" >&6; }
32663297 else
3267 { $as_echo "$as_me:$LINENO: result: no" >&5
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32683299 $as_echo "no" >&6; }
32693300 fi
32703301
32743305 if test -z "$CC"; then
32753306 # Extract the first word of "cc", so it can be a program name with args.
32763307 set dummy cc; ac_word=$2
3277 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32783309 $as_echo_n "checking for $ac_word... " >&6; }
3279 if test "${ac_cv_prog_CC+set}" = set; then
3310 if ${ac_cv_prog_CC+:} false; then :
32803311 $as_echo_n "(cached) " >&6
32813312 else
32823313 if test -n "$CC"; then
32883319 do
32893320 IFS=$as_save_IFS
32903321 test -z "$as_dir" && as_dir=.
3291 for ac_exec_ext in '' $ac_executable_extensions; do
3322 for ac_exec_ext in '' $ac_executable_extensions; do
32923323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32933324 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
32943325 ac_prog_rejected=yes
32953326 continue
32963327 fi
32973328 ac_cv_prog_CC="cc"
3298 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32993330 break 2
33003331 fi
33013332 done
3302 done
3333 done
33033334 IFS=$as_save_IFS
33043335
33053336 if test $ac_prog_rejected = yes; then
33183349 fi
33193350 CC=$ac_cv_prog_CC
33203351 if test -n "$CC"; then
3321 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
33223353 $as_echo "$CC" >&6; }
33233354 else
3324 { $as_echo "$as_me:$LINENO: result: no" >&5
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33253356 $as_echo "no" >&6; }
33263357 fi
33273358
33333364 do
33343365 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
33353366 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3336 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33373368 $as_echo_n "checking for $ac_word... " >&6; }
3338 if test "${ac_cv_prog_CC+set}" = set; then
3369 if ${ac_cv_prog_CC+:} false; then :
33393370 $as_echo_n "(cached) " >&6
33403371 else
33413372 if test -n "$CC"; then
33463377 do
33473378 IFS=$as_save_IFS
33483379 test -z "$as_dir" && as_dir=.
3349 for ac_exec_ext in '' $ac_executable_extensions; do
3380 for ac_exec_ext in '' $ac_executable_extensions; do
33503381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33513382 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3352 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33533384 break 2
33543385 fi
33553386 done
3356 done
3387 done
33573388 IFS=$as_save_IFS
33583389
33593390 fi
33603391 fi
33613392 CC=$ac_cv_prog_CC
33623393 if test -n "$CC"; then
3363 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
33643395 $as_echo "$CC" >&6; }
33653396 else
3366 { $as_echo "$as_me:$LINENO: result: no" >&5
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33673398 $as_echo "no" >&6; }
33683399 fi
33693400
33773408 do
33783409 # Extract the first word of "$ac_prog", so it can be a program name with args.
33793410 set dummy $ac_prog; ac_word=$2
3380 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33813412 $as_echo_n "checking for $ac_word... " >&6; }
3382 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3413 if ${ac_cv_prog_ac_ct_CC+:} false; then :
33833414 $as_echo_n "(cached) " >&6
33843415 else
33853416 if test -n "$ac_ct_CC"; then
33903421 do
33913422 IFS=$as_save_IFS
33923423 test -z "$as_dir" && as_dir=.
3393 for ac_exec_ext in '' $ac_executable_extensions; do
3424 for ac_exec_ext in '' $ac_executable_extensions; do
33943425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33953426 ac_cv_prog_ac_ct_CC="$ac_prog"
3396 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33973428 break 2
33983429 fi
33993430 done
3400 done
3431 done
34013432 IFS=$as_save_IFS
34023433
34033434 fi
34043435 fi
34053436 ac_ct_CC=$ac_cv_prog_ac_ct_CC
34063437 if test -n "$ac_ct_CC"; then
3407 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
34083439 $as_echo "$ac_ct_CC" >&6; }
34093440 else
3410 { $as_echo "$as_me:$LINENO: result: no" >&5
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34113442 $as_echo "no" >&6; }
34123443 fi
34133444
34203451 else
34213452 case $cross_compiling:$ac_tool_warned in
34223453 yes:)
3423 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
34243455 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
34253456 ac_tool_warned=yes ;;
34263457 esac
34313462 fi
34323463
34333464
3434 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3465 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34353466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3436 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3437 See \`config.log' for more details." >&5
3438 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3439 See \`config.log' for more details." >&2;}
3440 { (exit 1); exit 1; }; }; }
3467 as_fn_error $? "no acceptable C compiler found in \$PATH
3468 See \`config.log' for more details" "$LINENO" 5; }
34413469
34423470 # Provide some information about the compiler.
3443 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3471 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
34443472 set X $ac_compile
34453473 ac_compiler=$2
3446 { (ac_try="$ac_compiler --version >&5"
3474 for ac_option in --version -v -V -qversion; do
3475 { { ac_try="$ac_compiler $ac_option >&5"
34473476 case "(($ac_try" in
34483477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34493478 *) ac_try_echo=$ac_try;;
34503479 esac
3451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3452 $as_echo "$ac_try_echo") >&5
3453 (eval "$ac_compiler --version >&5") 2>&5
3480 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3481 $as_echo "$ac_try_echo"; } >&5
3482 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
34543483 ac_status=$?
3455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); }
3457 { (ac_try="$ac_compiler -v >&5"
3458 case "(($ac_try" in
3459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3460 *) ac_try_echo=$ac_try;;
3461 esac
3462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3463 $as_echo "$ac_try_echo") >&5
3464 (eval "$ac_compiler -v >&5") 2>&5
3465 ac_status=$?
3466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467 (exit $ac_status); }
3468 { (ac_try="$ac_compiler -V >&5"
3469 case "(($ac_try" in
3470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3471 *) ac_try_echo=$ac_try;;
3472 esac
3473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3474 $as_echo "$ac_try_echo") >&5
3475 (eval "$ac_compiler -V >&5") 2>&5
3476 ac_status=$?
3477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); }
3479
3480 cat >conftest.$ac_ext <<_ACEOF
3481 /* confdefs.h. */
3482 _ACEOF
3483 cat confdefs.h >>conftest.$ac_ext
3484 cat >>conftest.$ac_ext <<_ACEOF
3484 if test -s conftest.err; then
3485 sed '10a\
3486 ... rest of stderr output deleted ...
3487 10q' conftest.err >conftest.er1
3488 cat conftest.er1 >&5
3489 fi
3490 rm -f conftest.er1 conftest.err
3491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3492 test $ac_status = 0; }
3493 done
3494
3495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34853496 /* end confdefs.h. */
34863497
34873498 int
34973508 # Try to create an executable without -o first, disregard a.out.
34983509 # It will help us diagnose broken compilers, and finding out an intuition
34993510 # of exeext.
3500 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3501 $as_echo_n "checking for C compiler default output file name... " >&6; }
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3512 $as_echo_n "checking whether the C compiler works... " >&6; }
35023513 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
35033514
35043515 # The possible output files:
35143525 done
35153526 rm -f $ac_rmfiles
35163527
3517 if { (ac_try="$ac_link_default"
3528 if { { ac_try="$ac_link_default"
35183529 case "(($ac_try" in
35193530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35203531 *) ac_try_echo=$ac_try;;
35213532 esac
3522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3523 $as_echo "$ac_try_echo") >&5
3533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3534 $as_echo "$ac_try_echo"; } >&5
35243535 (eval "$ac_link_default") 2>&5
35253536 ac_status=$?
3526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); }; then
3537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3538 test $ac_status = 0; }; then :
35283539 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
35293540 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
35303541 # in a Makefile. We should not override ac_cv_exeext if it was cached,
35413552 # certainly right.
35423553 break;;
35433554 *.* )
3544 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3555 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
35453556 then :; else
35463557 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
35473558 fi
35603571 else
35613572 ac_file=''
35623573 fi
3563
3564 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3574 if test -z "$ac_file"; then :
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3576 $as_echo "no" >&6; }
3577 $as_echo "$as_me: failed program was:" >&5
3578 sed 's/^/| /' conftest.$ac_ext >&5
3579
3580 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3581 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3582 as_fn_error 77 "C compiler cannot create executables
3583 See \`config.log' for more details" "$LINENO" 5; }
3584 else
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3586 $as_echo "yes" >&6; }
3587 fi
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3589 $as_echo_n "checking for C compiler default output file name... " >&6; }
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
35653591 $as_echo "$ac_file" >&6; }
3566 if test -z "$ac_file"; then
3567 $as_echo "$as_me: failed program was:" >&5
3568 sed 's/^/| /' conftest.$ac_ext >&5
3569
3570 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3571 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3572 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3573 See \`config.log' for more details." >&5
3574 $as_echo "$as_me: error: C compiler cannot create executables
3575 See \`config.log' for more details." >&2;}
3576 { (exit 77); exit 77; }; }; }
3577 fi
3578
35793592 ac_exeext=$ac_cv_exeext
3580
3581 # Check that the compiler produces executables we can run. If not, either
3582 # the compiler is broken, or we cross compile.
3583 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3584 $as_echo_n "checking whether the C compiler works... " >&6; }
3585 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3586 # If not cross compiling, check that we can run a simple program.
3587 if test "$cross_compiling" != yes; then
3588 if { ac_try='./$ac_file'
3589 { (case "(($ac_try" in
3590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3591 *) ac_try_echo=$ac_try;;
3592 esac
3593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3594 $as_echo "$ac_try_echo") >&5
3595 (eval "$ac_try") 2>&5
3596 ac_status=$?
3597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); }; }; then
3599 cross_compiling=no
3600 else
3601 if test "$cross_compiling" = maybe; then
3602 cross_compiling=yes
3603 else
3604 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3606 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3607 If you meant to cross compile, use \`--host'.
3608 See \`config.log' for more details." >&5
3609 $as_echo "$as_me: error: cannot run C compiled programs.
3610 If you meant to cross compile, use \`--host'.
3611 See \`config.log' for more details." >&2;}
3612 { (exit 1); exit 1; }; }; }
3613 fi
3614 fi
3615 fi
3616 { $as_echo "$as_me:$LINENO: result: yes" >&5
3617 $as_echo "yes" >&6; }
36183593
36193594 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
36203595 ac_clean_files=$ac_clean_files_save
3621 # Check that the compiler produces executables we can run. If not, either
3622 # the compiler is broken, or we cross compile.
3623 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3624 $as_echo_n "checking whether we are cross compiling... " >&6; }
3625 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3626 $as_echo "$cross_compiling" >&6; }
3627
3628 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
36293597 $as_echo_n "checking for suffix of executables... " >&6; }
3630 if { (ac_try="$ac_link"
3598 if { { ac_try="$ac_link"
36313599 case "(($ac_try" in
36323600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36333601 *) ac_try_echo=$ac_try;;
36343602 esac
3635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3636 $as_echo "$ac_try_echo") >&5
3603 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3604 $as_echo "$ac_try_echo"; } >&5
36373605 (eval "$ac_link") 2>&5
36383606 ac_status=$?
3639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640 (exit $ac_status); }; then
3607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3608 test $ac_status = 0; }; then :
36413609 # If both `conftest.exe' and `conftest' are `present' (well, observable)
36423610 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
36433611 # work properly (i.e., refer to `conftest.exe'), while it won't with
36523620 esac
36533621 done
36543622 else
3655 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3623 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36563624 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3657 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3658 See \`config.log' for more details." >&5
3659 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3660 See \`config.log' for more details." >&2;}
3661 { (exit 1); exit 1; }; }; }
3662 fi
3663
3664 rm -f conftest$ac_cv_exeext
3665 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3625 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3626 See \`config.log' for more details" "$LINENO" 5; }
3627 fi
3628 rm -f conftest conftest$ac_cv_exeext
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
36663630 $as_echo "$ac_cv_exeext" >&6; }
36673631
36683632 rm -f conftest.$ac_ext
36693633 EXEEXT=$ac_cv_exeext
36703634 ac_exeext=$EXEEXT
3671 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3672 $as_echo_n "checking for suffix of object files... " >&6; }
3673 if test "${ac_cv_objext+set}" = set; then
3674 $as_echo_n "(cached) " >&6
3675 else
3676 cat >conftest.$ac_ext <<_ACEOF
3677 /* confdefs.h. */
3678 _ACEOF
3679 cat confdefs.h >>conftest.$ac_ext
3680 cat >>conftest.$ac_ext <<_ACEOF
3635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36813636 /* end confdefs.h. */
3682
3637 #include <stdio.h>
36833638 int
36843639 main ()
36853640 {
3641 FILE *f = fopen ("conftest.out", "w");
3642 return ferror (f) || fclose (f) != 0;
36863643
36873644 ;
36883645 return 0;
36893646 }
36903647 _ACEOF
3691 rm -f conftest.o conftest.obj
3692 if { (ac_try="$ac_compile"
3648 ac_clean_files="$ac_clean_files conftest.out"
3649 # Check that the compiler produces executables we can run. If not, either
3650 # the compiler is broken, or we cross compile.
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3652 $as_echo_n "checking whether we are cross compiling... " >&6; }
3653 if test "$cross_compiling" != yes; then
3654 { { ac_try="$ac_link"
36933655 case "(($ac_try" in
36943656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36953657 *) ac_try_echo=$ac_try;;
36963658 esac
3697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3698 $as_echo "$ac_try_echo") >&5
3659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3660 $as_echo "$ac_try_echo"; } >&5
3661 (eval "$ac_link") 2>&5
3662 ac_status=$?
3663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3664 test $ac_status = 0; }
3665 if { ac_try='./conftest$ac_cv_exeext'
3666 { { case "(($ac_try" in
3667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668 *) ac_try_echo=$ac_try;;
3669 esac
3670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3671 $as_echo "$ac_try_echo"; } >&5
3672 (eval "$ac_try") 2>&5
3673 ac_status=$?
3674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3675 test $ac_status = 0; }; }; then
3676 cross_compiling=no
3677 else
3678 if test "$cross_compiling" = maybe; then
3679 cross_compiling=yes
3680 else
3681 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3682 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3683 as_fn_error $? "cannot run C compiled programs.
3684 If you meant to cross compile, use \`--host'.
3685 See \`config.log' for more details" "$LINENO" 5; }
3686 fi
3687 fi
3688 fi
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3690 $as_echo "$cross_compiling" >&6; }
3691
3692 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3693 ac_clean_files=$ac_clean_files_save
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3695 $as_echo_n "checking for suffix of object files... " >&6; }
3696 if ${ac_cv_objext+:} false; then :
3697 $as_echo_n "(cached) " >&6
3698 else
3699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3700 /* end confdefs.h. */
3701
3702 int
3703 main ()
3704 {
3705
3706 ;
3707 return 0;
3708 }
3709 _ACEOF
3710 rm -f conftest.o conftest.obj
3711 if { { ac_try="$ac_compile"
3712 case "(($ac_try" in
3713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3714 *) ac_try_echo=$ac_try;;
3715 esac
3716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3717 $as_echo "$ac_try_echo"; } >&5
36993718 (eval "$ac_compile") 2>&5
37003719 ac_status=$?
3701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); }; then
3720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3721 test $ac_status = 0; }; then :
37033722 for ac_file in conftest.o conftest.obj conftest.*; do
37043723 test -f "$ac_file" || continue;
37053724 case $ac_file in
37123731 $as_echo "$as_me: failed program was:" >&5
37133732 sed 's/^/| /' conftest.$ac_ext >&5
37143733
3715 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3734 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37163735 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3717 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3718 See \`config.log' for more details." >&5
3719 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3720 See \`config.log' for more details." >&2;}
3721 { (exit 1); exit 1; }; }; }
3722 fi
3723
3736 as_fn_error $? "cannot compute suffix of object files: cannot compile
3737 See \`config.log' for more details" "$LINENO" 5; }
3738 fi
37243739 rm -f conftest.$ac_cv_objext conftest.$ac_ext
37253740 fi
3726 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
37273742 $as_echo "$ac_cv_objext" >&6; }
37283743 OBJEXT=$ac_cv_objext
37293744 ac_objext=$OBJEXT
3730 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
37313746 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3732 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3747 if ${ac_cv_c_compiler_gnu+:} false; then :
37333748 $as_echo_n "(cached) " >&6
37343749 else
3735 cat >conftest.$ac_ext <<_ACEOF
3736 /* confdefs.h. */
3737 _ACEOF
3738 cat confdefs.h >>conftest.$ac_ext
3739 cat >>conftest.$ac_ext <<_ACEOF
3750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37403751 /* end confdefs.h. */
37413752
37423753 int
37503761 return 0;
37513762 }
37523763 _ACEOF
3753 rm -f conftest.$ac_objext
3754 if { (ac_try="$ac_compile"
3755 case "(($ac_try" in
3756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3757 *) ac_try_echo=$ac_try;;
3758 esac
3759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3760 $as_echo "$ac_try_echo") >&5
3761 (eval "$ac_compile") 2>conftest.er1
3762 ac_status=$?
3763 grep -v '^ *+' conftest.er1 >conftest.err
3764 rm -f conftest.er1
3765 cat conftest.err >&5
3766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3767 (exit $ac_status); } && {
3768 test -z "$ac_c_werror_flag" ||
3769 test ! -s conftest.err
3770 } && test -s conftest.$ac_objext; then
3764 if ac_fn_c_try_compile "$LINENO"; then :
37713765 ac_compiler_gnu=yes
37723766 else
3773 $as_echo "$as_me: failed program was:" >&5
3774 sed 's/^/| /' conftest.$ac_ext >&5
3775
3776 ac_compiler_gnu=no
3777 fi
3778
3767 ac_compiler_gnu=no
3768 fi
37793769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37803770 ac_cv_c_compiler_gnu=$ac_compiler_gnu
37813771
37823772 fi
3783 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
37843774 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
37853775 if test $ac_compiler_gnu = yes; then
37863776 GCC=yes
37893779 fi
37903780 ac_test_CFLAGS=${CFLAGS+set}
37913781 ac_save_CFLAGS=$CFLAGS
3792 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
37933783 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3794 if test "${ac_cv_prog_cc_g+set}" = set; then
3784 if ${ac_cv_prog_cc_g+:} false; then :
37953785 $as_echo_n "(cached) " >&6
37963786 else
37973787 ac_save_c_werror_flag=$ac_c_werror_flag
37983788 ac_c_werror_flag=yes
37993789 ac_cv_prog_cc_g=no
38003790 CFLAGS="-g"
3801 cat >conftest.$ac_ext <<_ACEOF
3802 /* confdefs.h. */
3803 _ACEOF
3804 cat confdefs.h >>conftest.$ac_ext
3805 cat >>conftest.$ac_ext <<_ACEOF
3791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38063792 /* end confdefs.h. */
38073793
38083794 int
38133799 return 0;
38143800 }
38153801 _ACEOF
3816 rm -f conftest.$ac_objext
3817 if { (ac_try="$ac_compile"
3818 case "(($ac_try" in
3819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3820 *) ac_try_echo=$ac_try;;
3821 esac
3822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3823 $as_echo "$ac_try_echo") >&5
3824 (eval "$ac_compile") 2>conftest.er1
3825 ac_status=$?
3826 grep -v '^ *+' conftest.er1 >conftest.err
3827 rm -f conftest.er1
3828 cat conftest.err >&5
3829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 (exit $ac_status); } && {
3831 test -z "$ac_c_werror_flag" ||
3832 test ! -s conftest.err
3833 } && test -s conftest.$ac_objext; then
3802 if ac_fn_c_try_compile "$LINENO"; then :
38343803 ac_cv_prog_cc_g=yes
38353804 else
3836 $as_echo "$as_me: failed program was:" >&5
3837 sed 's/^/| /' conftest.$ac_ext >&5
3838
3839 CFLAGS=""
3840 cat >conftest.$ac_ext <<_ACEOF
3841 /* confdefs.h. */
3842 _ACEOF
3843 cat confdefs.h >>conftest.$ac_ext
3844 cat >>conftest.$ac_ext <<_ACEOF
3805 CFLAGS=""
3806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38453807 /* end confdefs.h. */
38463808
38473809 int
38523814 return 0;
38533815 }
38543816 _ACEOF
3855 rm -f conftest.$ac_objext
3856 if { (ac_try="$ac_compile"
3857 case "(($ac_try" in
3858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859 *) ac_try_echo=$ac_try;;
3860 esac
3861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3862 $as_echo "$ac_try_echo") >&5
3863 (eval "$ac_compile") 2>conftest.er1
3864 ac_status=$?
3865 grep -v '^ *+' conftest.er1 >conftest.err
3866 rm -f conftest.er1
3867 cat conftest.err >&5
3868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); } && {
3870 test -z "$ac_c_werror_flag" ||
3871 test ! -s conftest.err
3872 } && test -s conftest.$ac_objext; then
3873 :
3874 else
3875 $as_echo "$as_me: failed program was:" >&5
3876 sed 's/^/| /' conftest.$ac_ext >&5
3877
3878 ac_c_werror_flag=$ac_save_c_werror_flag
3817 if ac_fn_c_try_compile "$LINENO"; then :
3818
3819 else
3820 ac_c_werror_flag=$ac_save_c_werror_flag
38793821 CFLAGS="-g"
3880 cat >conftest.$ac_ext <<_ACEOF
3881 /* confdefs.h. */
3882 _ACEOF
3883 cat confdefs.h >>conftest.$ac_ext
3884 cat >>conftest.$ac_ext <<_ACEOF
3822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38853823 /* end confdefs.h. */
38863824
38873825 int
38923830 return 0;
38933831 }
38943832 _ACEOF
3895 rm -f conftest.$ac_objext
3896 if { (ac_try="$ac_compile"
3897 case "(($ac_try" in
3898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3899 *) ac_try_echo=$ac_try;;
3900 esac
3901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3902 $as_echo "$ac_try_echo") >&5
3903 (eval "$ac_compile") 2>conftest.er1
3904 ac_status=$?
3905 grep -v '^ *+' conftest.er1 >conftest.err
3906 rm -f conftest.er1
3907 cat conftest.err >&5
3908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909 (exit $ac_status); } && {
3910 test -z "$ac_c_werror_flag" ||
3911 test ! -s conftest.err
3912 } && test -s conftest.$ac_objext; then
3833 if ac_fn_c_try_compile "$LINENO"; then :
39133834 ac_cv_prog_cc_g=yes
3914 else
3915 $as_echo "$as_me: failed program was:" >&5
3916 sed 's/^/| /' conftest.$ac_ext >&5
3917
3918
3919 fi
3920
3835 fi
39213836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39223837 fi
3923
39243838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39253839 fi
3926
39273840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39283841 ac_c_werror_flag=$ac_save_c_werror_flag
39293842 fi
3930 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
39313844 $as_echo "$ac_cv_prog_cc_g" >&6; }
39323845 if test "$ac_test_CFLAGS" = set; then
39333846 CFLAGS=$ac_save_CFLAGS
39443857 CFLAGS=
39453858 fi
39463859 fi
3947 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
39483861 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3949 if test "${ac_cv_prog_cc_c89+set}" = set; then
3862 if ${ac_cv_prog_cc_c89+:} false; then :
39503863 $as_echo_n "(cached) " >&6
39513864 else
39523865 ac_cv_prog_cc_c89=no
39533866 ac_save_CC=$CC
3954 cat >conftest.$ac_ext <<_ACEOF
3955 /* confdefs.h. */
3956 _ACEOF
3957 cat confdefs.h >>conftest.$ac_ext
3958 cat >>conftest.$ac_ext <<_ACEOF
3867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39593868 /* end confdefs.h. */
39603869 #include <stdarg.h>
39613870 #include <stdio.h>
40123921 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
40133922 do
40143923 CC="$ac_save_CC $ac_arg"
4015 rm -f conftest.$ac_objext
4016 if { (ac_try="$ac_compile"
4017 case "(($ac_try" in
4018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4019 *) ac_try_echo=$ac_try;;
4020 esac
4021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4022 $as_echo "$ac_try_echo") >&5
4023 (eval "$ac_compile") 2>conftest.er1
4024 ac_status=$?
4025 grep -v '^ *+' conftest.er1 >conftest.err
4026 rm -f conftest.er1
4027 cat conftest.err >&5
4028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); } && {
4030 test -z "$ac_c_werror_flag" ||
4031 test ! -s conftest.err
4032 } && test -s conftest.$ac_objext; then
3924 if ac_fn_c_try_compile "$LINENO"; then :
40333925 ac_cv_prog_cc_c89=$ac_arg
4034 else
4035 $as_echo "$as_me: failed program was:" >&5
4036 sed 's/^/| /' conftest.$ac_ext >&5
4037
4038
4039 fi
4040
3926 fi
40413927 rm -f core conftest.err conftest.$ac_objext
40423928 test "x$ac_cv_prog_cc_c89" != "xno" && break
40433929 done
40483934 # AC_CACHE_VAL
40493935 case "x$ac_cv_prog_cc_c89" in
40503936 x)
4051 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
40523938 $as_echo "none needed" >&6; } ;;
40533939 xno)
4054 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
40553941 $as_echo "unsupported" >&6; } ;;
40563942 *)
40573943 CC="$CC $ac_cv_prog_cc_c89"
4058 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
40593945 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
40603946 esac
4061
3947 if test "x$ac_cv_prog_cc_c89" != xno; then :
3948
3949 fi
40623950
40633951 ac_ext=c
40643952 ac_cpp='$CPP $CPPFLAGS'
40683956
40693957 depcc="$CC" am_compiler_list=
40703958
4071 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
40723960 $as_echo_n "checking dependency style of $depcc... " >&6; }
4073 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3961 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
40743962 $as_echo_n "(cached) " >&6
40753963 else
40763964 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
40963984 if test "$am_compiler_list" = ""; then
40973985 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
40983986 fi
3987 am__universal=false
3988 case " $depcc " in #(
3989 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3990 esac
3991
40993992 for depmode in $am_compiler_list; do
41003993 # Setup a source with many dependencies, because some compilers
41013994 # like to wrap large dependency lists on column 80 (with \), and
41134006 done
41144007 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
41154008
4009 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4010 # mode. It turns out that the SunPro C++ compiler does not properly
4011 # handle `-M -o', and we need to detect this. Also, some Intel
4012 # versions had trouble with output in subdirs
4013 am__obj=sub/conftest.${OBJEXT-o}
4014 am__minus_obj="-o $am__obj"
41164015 case $depmode in
4016 gcc)
4017 # This depmode causes a compiler race in universal mode.
4018 test "$am__universal" = false || continue
4019 ;;
41174020 nosideeffect)
41184021 # after this tag, mechanisms are not by side-effect, so they'll
41194022 # only be used when explicitly requested
41234026 break
41244027 fi
41254028 ;;
4029 msvisualcpp | msvcmsys)
4030 # This compiler won't grok `-c -o', but also, the minuso test has
4031 # not run yet. These depmodes are late enough in the game, and
4032 # so weak that their functioning should not be impacted.
4033 am__obj=conftest.${OBJEXT-o}
4034 am__minus_obj=
4035 ;;
41264036 none) break ;;
41274037 esac
4128 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4129 # mode. It turns out that the SunPro C++ compiler does not properly
4130 # handle `-M -o', and we need to detect this.
41314038 if depmode=$depmode \
4132 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4039 source=sub/conftest.c object=$am__obj \
41334040 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4134 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4041 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
41354042 >/dev/null 2>conftest.err &&
41364043 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
41374044 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4138 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4045 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
41394046 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
41404047 # icc doesn't choke on unknown options, it will just issue warnings
41414048 # or remarks (even with -Werror). So we grep stderr for any message
41594066 fi
41604067
41614068 fi
4162 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
41634070 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
41644071 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
41654072
41804087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41814088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41824089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4183 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
41844091 $as_echo_n "checking how to run the C preprocessor... " >&6; }
41854092 # On Suns, sometimes $CPP names a directory.
41864093 if test -n "$CPP" && test -d "$CPP"; then
41874094 CPP=
41884095 fi
41894096 if test -z "$CPP"; then
4190 if test "${ac_cv_prog_CPP+set}" = set; then
4097 if ${ac_cv_prog_CPP+:} false; then :
41914098 $as_echo_n "(cached) " >&6
41924099 else
41934100 # Double quotes because CPP needs to be expanded
42024109 # <limits.h> exists even on freestanding compilers.
42034110 # On the NeXT, cc -E runs the code through the compiler's parser,
42044111 # not just through cpp. "Syntax error" is here to catch this case.
4205 cat >conftest.$ac_ext <<_ACEOF
4206 /* confdefs.h. */
4207 _ACEOF
4208 cat confdefs.h >>conftest.$ac_ext
4209 cat >>conftest.$ac_ext <<_ACEOF
4112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42104113 /* end confdefs.h. */
42114114 #ifdef __STDC__
42124115 # include <limits.h>
42154118 #endif
42164119 Syntax error
42174120 _ACEOF
4218 if { (ac_try="$ac_cpp conftest.$ac_ext"
4219 case "(($ac_try" in
4220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4221 *) ac_try_echo=$ac_try;;
4222 esac
4223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4224 $as_echo "$ac_try_echo") >&5
4225 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4226 ac_status=$?
4227 grep -v '^ *+' conftest.er1 >conftest.err
4228 rm -f conftest.er1
4229 cat conftest.err >&5
4230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); } >/dev/null && {
4232 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4233 test ! -s conftest.err
4234 }; then
4235 :
4236 else
4237 $as_echo "$as_me: failed program was:" >&5
4238 sed 's/^/| /' conftest.$ac_ext >&5
4239
4121 if ac_fn_c_try_cpp "$LINENO"; then :
4122
4123 else
42404124 # Broken: fails on valid input.
42414125 continue
42424126 fi
4243
4244 rm -f conftest.err conftest.$ac_ext
4127 rm -f conftest.err conftest.i conftest.$ac_ext
42454128
42464129 # OK, works on sane cases. Now check whether nonexistent headers
42474130 # can be detected and how.
4248 cat >conftest.$ac_ext <<_ACEOF
4249 /* confdefs.h. */
4250 _ACEOF
4251 cat confdefs.h >>conftest.$ac_ext
4252 cat >>conftest.$ac_ext <<_ACEOF
4131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42534132 /* end confdefs.h. */
42544133 #include <ac_nonexistent.h>
42554134 _ACEOF
4256 if { (ac_try="$ac_cpp conftest.$ac_ext"
4257 case "(($ac_try" in
4258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4259 *) ac_try_echo=$ac_try;;
4260 esac
4261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4262 $as_echo "$ac_try_echo") >&5
4263 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4264 ac_status=$?
4265 grep -v '^ *+' conftest.er1 >conftest.err
4266 rm -f conftest.er1
4267 cat conftest.err >&5
4268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); } >/dev/null && {
4270 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4271 test ! -s conftest.err
4272 }; then
4135 if ac_fn_c_try_cpp "$LINENO"; then :
42734136 # Broken: success on invalid input.
42744137 continue
42754138 else
4276 $as_echo "$as_me: failed program was:" >&5
4277 sed 's/^/| /' conftest.$ac_ext >&5
4278
42794139 # Passes both tests.
42804140 ac_preproc_ok=:
42814141 break
42824142 fi
4283
4284 rm -f conftest.err conftest.$ac_ext
4143 rm -f conftest.err conftest.i conftest.$ac_ext
42854144
42864145 done
42874146 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4288 rm -f conftest.err conftest.$ac_ext
4289 if $ac_preproc_ok; then
4147 rm -f conftest.i conftest.err conftest.$ac_ext
4148 if $ac_preproc_ok; then :
42904149 break
42914150 fi
42924151
42984157 else
42994158 ac_cv_prog_CPP=$CPP
43004159 fi
4301 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
43024161 $as_echo "$CPP" >&6; }
43034162 ac_preproc_ok=false
43044163 for ac_c_preproc_warn_flag in '' yes
43094168 # <limits.h> exists even on freestanding compilers.
43104169 # On the NeXT, cc -E runs the code through the compiler's parser,
43114170 # not just through cpp. "Syntax error" is here to catch this case.
4312 cat >conftest.$ac_ext <<_ACEOF
4313 /* confdefs.h. */
4314 _ACEOF
4315 cat confdefs.h >>conftest.$ac_ext
4316 cat >>conftest.$ac_ext <<_ACEOF
4171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43174172 /* end confdefs.h. */
43184173 #ifdef __STDC__
43194174 # include <limits.h>
43224177 #endif
43234178 Syntax error
43244179 _ACEOF
4325 if { (ac_try="$ac_cpp conftest.$ac_ext"
4326 case "(($ac_try" in
4327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4328 *) ac_try_echo=$ac_try;;
4329 esac
4330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4331 $as_echo "$ac_try_echo") >&5
4332 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4333 ac_status=$?
4334 grep -v '^ *+' conftest.er1 >conftest.err
4335 rm -f conftest.er1
4336 cat conftest.err >&5
4337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); } >/dev/null && {
4339 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4340 test ! -s conftest.err
4341 }; then
4342 :
4343 else
4344 $as_echo "$as_me: failed program was:" >&5
4345 sed 's/^/| /' conftest.$ac_ext >&5
4346
4180 if ac_fn_c_try_cpp "$LINENO"; then :
4181
4182 else
43474183 # Broken: fails on valid input.
43484184 continue
43494185 fi
4350
4351 rm -f conftest.err conftest.$ac_ext
4186 rm -f conftest.err conftest.i conftest.$ac_ext
43524187
43534188 # OK, works on sane cases. Now check whether nonexistent headers
43544189 # can be detected and how.
4355 cat >conftest.$ac_ext <<_ACEOF
4356 /* confdefs.h. */
4357 _ACEOF
4358 cat confdefs.h >>conftest.$ac_ext
4359 cat >>conftest.$ac_ext <<_ACEOF
4190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43604191 /* end confdefs.h. */
43614192 #include <ac_nonexistent.h>
43624193 _ACEOF
4363 if { (ac_try="$ac_cpp conftest.$ac_ext"
4364 case "(($ac_try" in
4365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4366 *) ac_try_echo=$ac_try;;
4367 esac
4368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4369 $as_echo "$ac_try_echo") >&5
4370 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4371 ac_status=$?
4372 grep -v '^ *+' conftest.er1 >conftest.err
4373 rm -f conftest.er1
4374 cat conftest.err >&5
4375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); } >/dev/null && {
4377 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4378 test ! -s conftest.err
4379 }; then
4194 if ac_fn_c_try_cpp "$LINENO"; then :
43804195 # Broken: success on invalid input.
43814196 continue
43824197 else
4383 $as_echo "$as_me: failed program was:" >&5
4384 sed 's/^/| /' conftest.$ac_ext >&5
4385
43864198 # Passes both tests.
43874199 ac_preproc_ok=:
43884200 break
43894201 fi
4390
4391 rm -f conftest.err conftest.$ac_ext
4202 rm -f conftest.err conftest.i conftest.$ac_ext
43924203
43934204 done
43944205 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4395 rm -f conftest.err conftest.$ac_ext
4396 if $ac_preproc_ok; then
4397 :
4398 else
4399 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4206 rm -f conftest.i conftest.err conftest.$ac_ext
4207 if $ac_preproc_ok; then :
4208
4209 else
4210 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
44004211 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4401 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4402 See \`config.log' for more details." >&5
4403 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4404 See \`config.log' for more details." >&2;}
4405 { (exit 1); exit 1; }; }; }
4212 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4213 See \`config.log' for more details" "$LINENO" 5; }
44064214 fi
44074215
44084216 ac_ext=c
44124220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44134221
44144222
4415 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
44164224 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4417 if test "${ac_cv_path_GREP+set}" = set; then
4225 if ${ac_cv_path_GREP+:} false; then :
44184226 $as_echo_n "(cached) " >&6
44194227 else
44204228 if test -z "$GREP"; then
44254233 do
44264234 IFS=$as_save_IFS
44274235 test -z "$as_dir" && as_dir=.
4428 for ac_prog in grep ggrep; do
4236 for ac_prog in grep ggrep; do
44294237 for ac_exec_ext in '' $ac_executable_extensions; do
44304238 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
44314239 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
44454253 $as_echo 'GREP' >> "conftest.nl"
44464254 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
44474255 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4448 ac_count=`expr $ac_count + 1`
4256 as_fn_arith $ac_count + 1 && ac_count=$as_val
44494257 if test $ac_count -gt ${ac_path_GREP_max-0}; then
44504258 # Best one so far, save it but keep looking for a better one
44514259 ac_cv_path_GREP="$ac_path_GREP"
44604268 $ac_path_GREP_found && break 3
44614269 done
44624270 done
4463 done
4271 done
44644272 IFS=$as_save_IFS
44654273 if test -z "$ac_cv_path_GREP"; then
4466 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4467 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4468 { (exit 1); exit 1; }; }
4274 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
44694275 fi
44704276 else
44714277 ac_cv_path_GREP=$GREP
44724278 fi
44734279
44744280 fi
4475 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
44764282 $as_echo "$ac_cv_path_GREP" >&6; }
44774283 GREP="$ac_cv_path_GREP"
44784284
44794285
4480 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
44814287 $as_echo_n "checking for egrep... " >&6; }
4482 if test "${ac_cv_path_EGREP+set}" = set; then
4288 if ${ac_cv_path_EGREP+:} false; then :
44834289 $as_echo_n "(cached) " >&6
44844290 else
44854291 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
44934299 do
44944300 IFS=$as_save_IFS
44954301 test -z "$as_dir" && as_dir=.
4496 for ac_prog in egrep; do
4302 for ac_prog in egrep; do
44974303 for ac_exec_ext in '' $ac_executable_extensions; do
44984304 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
44994305 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
45134319 $as_echo 'EGREP' >> "conftest.nl"
45144320 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
45154321 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4516 ac_count=`expr $ac_count + 1`
4322 as_fn_arith $ac_count + 1 && ac_count=$as_val
45174323 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
45184324 # Best one so far, save it but keep looking for a better one
45194325 ac_cv_path_EGREP="$ac_path_EGREP"
45284334 $ac_path_EGREP_found && break 3
45294335 done
45304336 done
4531 done
4337 done
45324338 IFS=$as_save_IFS
45334339 if test -z "$ac_cv_path_EGREP"; then
4534 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4535 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4536 { (exit 1); exit 1; }; }
4340 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
45374341 fi
45384342 else
45394343 ac_cv_path_EGREP=$EGREP
45414345
45424346 fi
45434347 fi
4544 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
45454349 $as_echo "$ac_cv_path_EGREP" >&6; }
45464350 EGREP="$ac_cv_path_EGREP"
45474351
45484352
4549 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
45504354 $as_echo_n "checking for ANSI C header files... " >&6; }
4551 if test "${ac_cv_header_stdc+set}" = set; then
4355 if ${ac_cv_header_stdc+:} false; then :
45524356 $as_echo_n "(cached) " >&6
45534357 else
4554 cat >conftest.$ac_ext <<_ACEOF
4555 /* confdefs.h. */
4556 _ACEOF
4557 cat confdefs.h >>conftest.$ac_ext
4558 cat >>conftest.$ac_ext <<_ACEOF
4358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45594359 /* end confdefs.h. */
45604360 #include <stdlib.h>
45614361 #include <stdarg.h>
45704370 return 0;
45714371 }
45724372 _ACEOF
4573 rm -f conftest.$ac_objext
4574 if { (ac_try="$ac_compile"
4575 case "(($ac_try" in
4576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4577 *) ac_try_echo=$ac_try;;
4578 esac
4579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4580 $as_echo "$ac_try_echo") >&5
4581 (eval "$ac_compile") 2>conftest.er1
4582 ac_status=$?
4583 grep -v '^ *+' conftest.er1 >conftest.err
4584 rm -f conftest.er1
4585 cat conftest.err >&5
4586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587 (exit $ac_status); } && {
4588 test -z "$ac_c_werror_flag" ||
4589 test ! -s conftest.err
4590 } && test -s conftest.$ac_objext; then
4373 if ac_fn_c_try_compile "$LINENO"; then :
45914374 ac_cv_header_stdc=yes
45924375 else
4593 $as_echo "$as_me: failed program was:" >&5
4594 sed 's/^/| /' conftest.$ac_ext >&5
4595
4596 ac_cv_header_stdc=no
4597 fi
4598
4376 ac_cv_header_stdc=no
4377 fi
45994378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46004379
46014380 if test $ac_cv_header_stdc = yes; then
46024381 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4603 cat >conftest.$ac_ext <<_ACEOF
4604 /* confdefs.h. */
4605 _ACEOF
4606 cat confdefs.h >>conftest.$ac_ext
4607 cat >>conftest.$ac_ext <<_ACEOF
4382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46084383 /* end confdefs.h. */
46094384 #include <string.h>
46104385
46114386 _ACEOF
46124387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4613 $EGREP "memchr" >/dev/null 2>&1; then
4614 :
4388 $EGREP "memchr" >/dev/null 2>&1; then :
4389
46154390 else
46164391 ac_cv_header_stdc=no
46174392 fi
46214396
46224397 if test $ac_cv_header_stdc = yes; then
46234398 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4624 cat >conftest.$ac_ext <<_ACEOF
4625 /* confdefs.h. */
4626 _ACEOF
4627 cat confdefs.h >>conftest.$ac_ext
4628 cat >>conftest.$ac_ext <<_ACEOF
4399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46294400 /* end confdefs.h. */
46304401 #include <stdlib.h>
46314402
46324403 _ACEOF
46334404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4634 $EGREP "free" >/dev/null 2>&1; then
4635 :
4405 $EGREP "free" >/dev/null 2>&1; then :
4406
46364407 else
46374408 ac_cv_header_stdc=no
46384409 fi
46424413
46434414 if test $ac_cv_header_stdc = yes; then
46444415 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4645 if test "$cross_compiling" = yes; then
4416 if test "$cross_compiling" = yes; then :
46464417 :
46474418 else
4648 cat >conftest.$ac_ext <<_ACEOF
4649 /* confdefs.h. */
4650 _ACEOF
4651 cat confdefs.h >>conftest.$ac_ext
4652 cat >>conftest.$ac_ext <<_ACEOF
4419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46534420 /* end confdefs.h. */
46544421 #include <ctype.h>
46554422 #include <stdlib.h>
46764443 return 0;
46774444 }
46784445 _ACEOF
4679 rm -f conftest$ac_exeext
4680 if { (ac_try="$ac_link"
4681 case "(($ac_try" in
4682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4683 *) ac_try_echo=$ac_try;;
4684 esac
4685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4686 $as_echo "$ac_try_echo") >&5
4687 (eval "$ac_link") 2>&5
4688 ac_status=$?
4689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4691 { (case "(($ac_try" in
4692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4693 *) ac_try_echo=$ac_try;;
4694 esac
4695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4696 $as_echo "$ac_try_echo") >&5
4697 (eval "$ac_try") 2>&5
4698 ac_status=$?
4699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700 (exit $ac_status); }; }; then
4701 :
4702 else
4703 $as_echo "$as_me: program exited with status $ac_status" >&5
4704 $as_echo "$as_me: failed program was:" >&5
4705 sed 's/^/| /' conftest.$ac_ext >&5
4706
4707 ( exit $ac_status )
4708 ac_cv_header_stdc=no
4709 fi
4710 rm -rf conftest.dSYM
4711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4712 fi
4713
4714
4715 fi
4716 fi
4717 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4446 if ac_fn_c_try_run "$LINENO"; then :
4447
4448 else
4449 ac_cv_header_stdc=no
4450 fi
4451 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4452 conftest.$ac_objext conftest.beam conftest.$ac_ext
4453 fi
4454
4455 fi
4456 fi
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
47184458 $as_echo "$ac_cv_header_stdc" >&6; }
47194459 if test $ac_cv_header_stdc = yes; then
47204460
4721 cat >>confdefs.h <<\_ACEOF
4722 #define STDC_HEADERS 1
4723 _ACEOF
4461 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
47244462
47254463 fi
47264464
47274465 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4728
4729
4730
4731
4732
4733
4734
4735
4736
47374466 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
47384467 inttypes.h stdint.h unistd.h
4739 do
4740 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4741 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4742 $as_echo_n "checking for $ac_header... " >&6; }
4743 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4744 $as_echo_n "(cached) " >&6
4745 else
4746 cat >conftest.$ac_ext <<_ACEOF
4747 /* confdefs.h. */
4748 _ACEOF
4749 cat confdefs.h >>conftest.$ac_ext
4750 cat >>conftest.$ac_ext <<_ACEOF
4751 /* end confdefs.h. */
4752 $ac_includes_default
4753
4754 #include <$ac_header>
4755 _ACEOF
4756 rm -f conftest.$ac_objext
4757 if { (ac_try="$ac_compile"
4758 case "(($ac_try" in
4759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4760 *) ac_try_echo=$ac_try;;
4761 esac
4762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4763 $as_echo "$ac_try_echo") >&5
4764 (eval "$ac_compile") 2>conftest.er1
4765 ac_status=$?
4766 grep -v '^ *+' conftest.er1 >conftest.err
4767 rm -f conftest.er1
4768 cat conftest.err >&5
4769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770 (exit $ac_status); } && {
4771 test -z "$ac_c_werror_flag" ||
4772 test ! -s conftest.err
4773 } && test -s conftest.$ac_objext; then
4774 eval "$as_ac_Header=yes"
4775 else
4776 $as_echo "$as_me: failed program was:" >&5
4777 sed 's/^/| /' conftest.$ac_ext >&5
4778
4779 eval "$as_ac_Header=no"
4780 fi
4781
4782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4783 fi
4784 ac_res=`eval 'as_val=${'$as_ac_Header'}
4785 $as_echo "$as_val"'`
4786 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4787 $as_echo "$ac_res" >&6; }
4788 as_val=`eval 'as_val=${'$as_ac_Header'}
4789 $as_echo "$as_val"'`
4790 if test "x$as_val" = x""yes; then
4468 do :
4469 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4470 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4471 "
4472 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
47914473 cat >>confdefs.h <<_ACEOF
47924474 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
47934475 _ACEOF
47974479 done
47984480
47994481
4800 if test "${ac_cv_header_id3tag_h+set}" = set; then
4801 { $as_echo "$as_me:$LINENO: checking for id3tag.h" >&5
4802 $as_echo_n "checking for id3tag.h... " >&6; }
4803 if test "${ac_cv_header_id3tag_h+set}" = set; then
4804 $as_echo_n "(cached) " >&6
4805 fi
4806 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_id3tag_h" >&5
4807 $as_echo "$ac_cv_header_id3tag_h" >&6; }
4808 else
4809 # Is the header compilable?
4810 { $as_echo "$as_me:$LINENO: checking id3tag.h usability" >&5
4811 $as_echo_n "checking id3tag.h usability... " >&6; }
4812 cat >conftest.$ac_ext <<_ACEOF
4813 /* confdefs.h. */
4814 _ACEOF
4815 cat confdefs.h >>conftest.$ac_ext
4816 cat >>conftest.$ac_ext <<_ACEOF
4817 /* end confdefs.h. */
4818 $ac_includes_default
4819 #include <id3tag.h>
4820 _ACEOF
4821 rm -f conftest.$ac_objext
4822 if { (ac_try="$ac_compile"
4823 case "(($ac_try" in
4824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4825 *) ac_try_echo=$ac_try;;
4826 esac
4827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4828 $as_echo "$ac_try_echo") >&5
4829 (eval "$ac_compile") 2>conftest.er1
4830 ac_status=$?
4831 grep -v '^ *+' conftest.er1 >conftest.err
4832 rm -f conftest.er1
4833 cat conftest.err >&5
4834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); } && {
4836 test -z "$ac_c_werror_flag" ||
4837 test ! -s conftest.err
4838 } && test -s conftest.$ac_objext; then
4839 ac_header_compiler=yes
4840 else
4841 $as_echo "$as_me: failed program was:" >&5
4842 sed 's/^/| /' conftest.$ac_ext >&5
4843
4844 ac_header_compiler=no
4845 fi
4846
4847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4848 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4849 $as_echo "$ac_header_compiler" >&6; }
4850
4851 # Is the header present?
4852 { $as_echo "$as_me:$LINENO: checking id3tag.h presence" >&5
4853 $as_echo_n "checking id3tag.h presence... " >&6; }
4854 cat >conftest.$ac_ext <<_ACEOF
4855 /* confdefs.h. */
4856 _ACEOF
4857 cat confdefs.h >>conftest.$ac_ext
4858 cat >>conftest.$ac_ext <<_ACEOF
4859 /* end confdefs.h. */
4860 #include <id3tag.h>
4861 _ACEOF
4862 if { (ac_try="$ac_cpp conftest.$ac_ext"
4863 case "(($ac_try" in
4864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4865 *) ac_try_echo=$ac_try;;
4866 esac
4867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4868 $as_echo "$ac_try_echo") >&5
4869 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4870 ac_status=$?
4871 grep -v '^ *+' conftest.er1 >conftest.err
4872 rm -f conftest.er1
4873 cat conftest.err >&5
4874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); } >/dev/null && {
4876 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4877 test ! -s conftest.err
4878 }; then
4879 ac_header_preproc=yes
4880 else
4881 $as_echo "$as_me: failed program was:" >&5
4882 sed 's/^/| /' conftest.$ac_ext >&5
4883
4884 ac_header_preproc=no
4885 fi
4886
4887 rm -f conftest.err conftest.$ac_ext
4888 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4889 $as_echo "$ac_header_preproc" >&6; }
4890
4891 # So? What about this header?
4892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4893 yes:no: )
4894 { $as_echo "$as_me:$LINENO: WARNING: id3tag.h: accepted by the compiler, rejected by the preprocessor!" >&5
4895 $as_echo "$as_me: WARNING: id3tag.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4896 { $as_echo "$as_me:$LINENO: WARNING: id3tag.h: proceeding with the compiler's result" >&5
4897 $as_echo "$as_me: WARNING: id3tag.h: proceeding with the compiler's result" >&2;}
4898 ac_header_preproc=yes
4899 ;;
4900 no:yes:* )
4901 { $as_echo "$as_me:$LINENO: WARNING: id3tag.h: present but cannot be compiled" >&5
4902 $as_echo "$as_me: WARNING: id3tag.h: present but cannot be compiled" >&2;}
4903 { $as_echo "$as_me:$LINENO: WARNING: id3tag.h: check for missing prerequisite headers?" >&5
4904 $as_echo "$as_me: WARNING: id3tag.h: check for missing prerequisite headers?" >&2;}
4905 { $as_echo "$as_me:$LINENO: WARNING: id3tag.h: see the Autoconf documentation" >&5
4906 $as_echo "$as_me: WARNING: id3tag.h: see the Autoconf documentation" >&2;}
4907 { $as_echo "$as_me:$LINENO: WARNING: id3tag.h: section \"Present But Cannot Be Compiled\"" >&5
4908 $as_echo "$as_me: WARNING: id3tag.h: section \"Present But Cannot Be Compiled\"" >&2;}
4909 { $as_echo "$as_me:$LINENO: WARNING: id3tag.h: proceeding with the preprocessor's result" >&5
4910 $as_echo "$as_me: WARNING: id3tag.h: proceeding with the preprocessor's result" >&2;}
4911 { $as_echo "$as_me:$LINENO: WARNING: id3tag.h: in the future, the compiler will take precedence" >&5
4912 $as_echo "$as_me: WARNING: id3tag.h: in the future, the compiler will take precedence" >&2;}
4913 ( cat <<\_ASBOX
4914 ## ---------------------------------------------------------------------------------- ##
4915 ## Report this to http://sourceforge.net/tracker/?func=add&group_id=65573&atid=511470 ##
4916 ## ---------------------------------------------------------------------------------- ##
4917 _ASBOX
4918 ) | sed "s/^/$as_me: WARNING: /" >&2
4919 ;;
4920 esac
4921 { $as_echo "$as_me:$LINENO: checking for id3tag.h" >&5
4922 $as_echo_n "checking for id3tag.h... " >&6; }
4923 if test "${ac_cv_header_id3tag_h+set}" = set; then
4924 $as_echo_n "(cached) " >&6
4925 else
4926 ac_cv_header_id3tag_h=$ac_header_preproc
4927 fi
4928 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_id3tag_h" >&5
4929 $as_echo "$ac_cv_header_id3tag_h" >&6; }
4930
4931 fi
4932 if test "x$ac_cv_header_id3tag_h" = x""yes; then
4482 ac_fn_c_check_header_mongrel "$LINENO" "id3tag.h" "ac_cv_header_id3tag_h" "$ac_includes_default"
4483 if test "x$ac_cv_header_id3tag_h" = xyes; then :
49334484 found_id3tag_header=yes
49344485 else
49354486 found_id3tag_header=no
49394490
49404491
49414492 # Check whether --with-id3tag-prefix was given.
4942 if test "${with_id3tag_prefix+set}" = set; then
4493 if test "${with_id3tag_prefix+set}" = set; then :
49434494 withval=$with_id3tag_prefix; id3tag_prefix="$withval"
49444495 else
49454496 id3tag_prefix=""
49524503 else
49534504 if test x"$found_id3tag_pkg" = "xno" ; then
49544505 if test x"$found_id3tag_header" = xno ; then
4955 { { $as_echo "$as_me:$LINENO: error: *** id3tag.h C header is needed (missing -dev package?) ***\n*** You might have erroneously installed id3lib instead of libid3tag ****\nThis distinction is very delicate, so PLEASE pay attention! ***" >&5
4956 $as_echo "$as_me: error: *** id3tag.h C header is needed (missing -dev package?) ***\n*** You might have erroneously installed id3lib instead of libid3tag ****\nThis distinction is very delicate, so PLEASE pay attention! ***" >&2;}
4957 { (exit 1); exit 1; }; }
4506 as_fn_error $? "*** id3tag.h C header is needed (missing -dev package?) ***\n*** You might have erroneously installed id3lib instead of libid3tag ****\nThis distinction is very delicate, so PLEASE pay attention! ***" "$LINENO" 5
49584507 fi
49594508 ID3TAG_VER=unknown
49604509 TAG_CFLAGS=""
49674516
49684517
49694518 pkg_failed=no
4970 { $as_echo "$as_me:$LINENO: checking for TAGLIB" >&5
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAGLIB" >&5
49714520 $as_echo_n "checking for TAGLIB... " >&6; }
49724521
49734522 if test -n "$TAGLIB_CFLAGS"; then
49744523 pkg_cv_TAGLIB_CFLAGS="$TAGLIB_CFLAGS"
49754524 elif test -n "$PKG_CONFIG"; then
49764525 if test -n "$PKG_CONFIG" && \
4977 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"taglib >= 1.4\"") >&5
4526 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"taglib >= 1.4\""; } >&5
49784527 ($PKG_CONFIG --exists --print-errors "taglib >= 1.4") 2>&5
49794528 ac_status=$?
4980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981 (exit $ac_status); }; then
4529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4530 test $ac_status = 0; }; then
49824531 pkg_cv_TAGLIB_CFLAGS=`$PKG_CONFIG --cflags "taglib >= 1.4" 2>/dev/null`
49834532 else
49844533 pkg_failed=yes
49904539 pkg_cv_TAGLIB_LIBS="$TAGLIB_LIBS"
49914540 elif test -n "$PKG_CONFIG"; then
49924541 if test -n "$PKG_CONFIG" && \
4993 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"taglib >= 1.4\"") >&5
4542 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"taglib >= 1.4\""; } >&5
49944543 ($PKG_CONFIG --exists --print-errors "taglib >= 1.4") 2>&5
49954544 ac_status=$?
4996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); }; then
4545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4546 test $ac_status = 0; }; then
49984547 pkg_cv_TAGLIB_LIBS=`$PKG_CONFIG --libs "taglib >= 1.4" 2>/dev/null`
49994548 else
50004549 pkg_failed=yes
50064555
50074556
50084557 if test $pkg_failed = yes; then
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4559 $as_echo "no" >&6; }
50094560
50104561 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
50114562 _pkg_short_errors_supported=yes
50204571 # Put the nasty error message in config.log where it belongs
50214572 echo "$TAGLIB_PKG_ERRORS" >&5
50224573
5023 { $as_echo "$as_me:$LINENO: result: no" >&5
4574 found_taglib_pkg=no
4575 elif test $pkg_failed = untried; then
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50244577 $as_echo "no" >&6; }
5025 found_taglib_pkg=no
5026 elif test $pkg_failed = untried; then
50274578 found_taglib_pkg=no
50284579 else
50294580 TAGLIB_CFLAGS=$pkg_cv_TAGLIB_CFLAGS
50304581 TAGLIB_LIBS=$pkg_cv_TAGLIB_LIBS
5031 { $as_echo "$as_me:$LINENO: result: yes" >&5
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
50324583 $as_echo "yes" >&6; }
50334584 found_taglib_pkg=yes
50344585 fi
50354586 TAGLIB_VER=`pkg-config --modversion taglib`
5036 if test "${ac_cv_header_taglib_tag_c_h+set}" = set; then
5037 { $as_echo "$as_me:$LINENO: checking for taglib/tag_c.h" >&5
5038 $as_echo_n "checking for taglib/tag_c.h... " >&6; }
5039 if test "${ac_cv_header_taglib_tag_c_h+set}" = set; then
5040 $as_echo_n "(cached) " >&6
5041 fi
5042 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_taglib_tag_c_h" >&5
5043 $as_echo "$ac_cv_header_taglib_tag_c_h" >&6; }
5044 else
5045 # Is the header compilable?
5046 { $as_echo "$as_me:$LINENO: checking taglib/tag_c.h usability" >&5
5047 $as_echo_n "checking taglib/tag_c.h usability... " >&6; }
5048 cat >conftest.$ac_ext <<_ACEOF
5049 /* confdefs.h. */
5050 _ACEOF
5051 cat confdefs.h >>conftest.$ac_ext
5052 cat >>conftest.$ac_ext <<_ACEOF
5053 /* end confdefs.h. */
5054 $ac_includes_default
5055 #include <taglib/tag_c.h>
5056 _ACEOF
5057 rm -f conftest.$ac_objext
5058 if { (ac_try="$ac_compile"
5059 case "(($ac_try" in
5060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5061 *) ac_try_echo=$ac_try;;
5062 esac
5063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5064 $as_echo "$ac_try_echo") >&5
5065 (eval "$ac_compile") 2>conftest.er1
5066 ac_status=$?
5067 grep -v '^ *+' conftest.er1 >conftest.err
5068 rm -f conftest.er1
5069 cat conftest.err >&5
5070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); } && {
5072 test -z "$ac_c_werror_flag" ||
5073 test ! -s conftest.err
5074 } && test -s conftest.$ac_objext; then
5075 ac_header_compiler=yes
5076 else
5077 $as_echo "$as_me: failed program was:" >&5
5078 sed 's/^/| /' conftest.$ac_ext >&5
5079
5080 ac_header_compiler=no
5081 fi
5082
5083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5084 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5085 $as_echo "$ac_header_compiler" >&6; }
5086
5087 # Is the header present?
5088 { $as_echo "$as_me:$LINENO: checking taglib/tag_c.h presence" >&5
5089 $as_echo_n "checking taglib/tag_c.h presence... " >&6; }
5090 cat >conftest.$ac_ext <<_ACEOF
5091 /* confdefs.h. */
5092 _ACEOF
5093 cat confdefs.h >>conftest.$ac_ext
5094 cat >>conftest.$ac_ext <<_ACEOF
5095 /* end confdefs.h. */
5096 #include <taglib/tag_c.h>
5097 _ACEOF
5098 if { (ac_try="$ac_cpp conftest.$ac_ext"
5099 case "(($ac_try" in
5100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5101 *) ac_try_echo=$ac_try;;
5102 esac
5103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5104 $as_echo "$ac_try_echo") >&5
5105 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5106 ac_status=$?
5107 grep -v '^ *+' conftest.er1 >conftest.err
5108 rm -f conftest.er1
5109 cat conftest.err >&5
5110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111 (exit $ac_status); } >/dev/null && {
5112 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5113 test ! -s conftest.err
5114 }; then
5115 ac_header_preproc=yes
5116 else
5117 $as_echo "$as_me: failed program was:" >&5
5118 sed 's/^/| /' conftest.$ac_ext >&5
5119
5120 ac_header_preproc=no
5121 fi
5122
5123 rm -f conftest.err conftest.$ac_ext
5124 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5125 $as_echo "$ac_header_preproc" >&6; }
5126
5127 # So? What about this header?
5128 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5129 yes:no: )
5130 { $as_echo "$as_me:$LINENO: WARNING: taglib/tag_c.h: accepted by the compiler, rejected by the preprocessor!" >&5
5131 $as_echo "$as_me: WARNING: taglib/tag_c.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5132 { $as_echo "$as_me:$LINENO: WARNING: taglib/tag_c.h: proceeding with the compiler's result" >&5
5133 $as_echo "$as_me: WARNING: taglib/tag_c.h: proceeding with the compiler's result" >&2;}
5134 ac_header_preproc=yes
5135 ;;
5136 no:yes:* )
5137 { $as_echo "$as_me:$LINENO: WARNING: taglib/tag_c.h: present but cannot be compiled" >&5
5138 $as_echo "$as_me: WARNING: taglib/tag_c.h: present but cannot be compiled" >&2;}
5139 { $as_echo "$as_me:$LINENO: WARNING: taglib/tag_c.h: check for missing prerequisite headers?" >&5
5140 $as_echo "$as_me: WARNING: taglib/tag_c.h: check for missing prerequisite headers?" >&2;}
5141 { $as_echo "$as_me:$LINENO: WARNING: taglib/tag_c.h: see the Autoconf documentation" >&5
5142 $as_echo "$as_me: WARNING: taglib/tag_c.h: see the Autoconf documentation" >&2;}
5143 { $as_echo "$as_me:$LINENO: WARNING: taglib/tag_c.h: section \"Present But Cannot Be Compiled\"" >&5
5144 $as_echo "$as_me: WARNING: taglib/tag_c.h: section \"Present But Cannot Be Compiled\"" >&2;}
5145 { $as_echo "$as_me:$LINENO: WARNING: taglib/tag_c.h: proceeding with the preprocessor's result" >&5
5146 $as_echo "$as_me: WARNING: taglib/tag_c.h: proceeding with the preprocessor's result" >&2;}
5147 { $as_echo "$as_me:$LINENO: WARNING: taglib/tag_c.h: in the future, the compiler will take precedence" >&5
5148 $as_echo "$as_me: WARNING: taglib/tag_c.h: in the future, the compiler will take precedence" >&2;}
5149 ( cat <<\_ASBOX
5150 ## ---------------------------------------------------------------------------------- ##
5151 ## Report this to http://sourceforge.net/tracker/?func=add&group_id=65573&atid=511470 ##
5152 ## ---------------------------------------------------------------------------------- ##
5153 _ASBOX
5154 ) | sed "s/^/$as_me: WARNING: /" >&2
5155 ;;
5156 esac
5157 { $as_echo "$as_me:$LINENO: checking for taglib/tag_c.h" >&5
5158 $as_echo_n "checking for taglib/tag_c.h... " >&6; }
5159 if test "${ac_cv_header_taglib_tag_c_h+set}" = set; then
5160 $as_echo_n "(cached) " >&6
5161 else
5162 ac_cv_header_taglib_tag_c_h=$ac_header_preproc
5163 fi
5164 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_taglib_tag_c_h" >&5
5165 $as_echo "$ac_cv_header_taglib_tag_c_h" >&6; }
5166
5167 fi
5168 if test "x$ac_cv_header_taglib_tag_c_h" = x""yes; then
4587 ac_fn_c_check_header_mongrel "$LINENO" "taglib/tag_c.h" "ac_cv_header_taglib_tag_c_h" "$ac_includes_default"
4588 if test "x$ac_cv_header_taglib_tag_c_h" = xyes; then :
51694589 found_taglib_header=yes
51704590 else
51714591 found_taglib_header=no
51754595
51764596
51774597 # Check whether --with-taglib-prefix was given.
5178 if test "${with_taglib_prefix+set}" = set; then
4598 if test "${with_taglib_prefix+set}" = set; then :
51794599 withval=$with_taglib_prefix; taglib_prefix="$withval"
51804600 else
51814601 taglib_prefix=""
51864606 TAGLIB_LIBS="-L$taglib_prefix/lib -ltag_c"
51874607 TAGLIB_CFLAGS="-I$taglib_prefix/include"
51884608 have_taglib="yes"
5189 cat >>confdefs.h <<\_ACEOF
5190 #define HAVE_TAGLIB 1
5191 _ACEOF
4609 $as_echo "#define HAVE_TAGLIB 1" >>confdefs.h
51924610
51934611 else
51944612 if test x"$found_taglib_pkg" = "xno" ; then
51954613 if test x"$found_taglib_header" = "xno" ; then
5196 { $as_echo "$as_me:$LINENO: *** taglib was not found on your system. Deactivating Ogg/FLAC support! ***" >&5
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: *** taglib was not found on your system. Deactivating Ogg/FLAC support! ***" >&5
51974615 $as_echo "$as_me: *** taglib was not found on your system. Deactivating Ogg/FLAC support! ***" >&6;}
51984616 TAGLIB_VER="NOT USED"
51994617 else
52014619 TAGLIB_CFLAGS=""
52024620 TAGLIB_LIBS="-ltag_c"
52034621 have_taglib="yes"
5204 cat >>confdefs.h <<\_ACEOF
5205 #define HAVE_TAGLIB 1
5206 _ACEOF
4622 $as_echo "#define HAVE_TAGLIB 1" >>confdefs.h
52074623
52084624 fi
52094625 else
52104626 have_taglib="yes"
52114627 TAGLIB_LIBS="-ltag_c"
5212 cat >>confdefs.h <<\_ACEOF
5213 #define HAVE_TAGLIB 1
5214 _ACEOF
4628 $as_echo "#define HAVE_TAGLIB 1" >>confdefs.h
52154629
52164630 fi
52174631 fi
52284642
52294643
52304644 # Check whether --with-taglib-only was given.
5231 if test "${with_taglib_only+set}" = set; then
4645 if test "${with_taglib_only+set}" = set; then :
52324646 withval=$with_taglib_only; taglib_only="yes"
52334647 else
52344648 taglib_only="no"
52354649 fi
52364650
52374651 if test x"$taglib_only" = "xyes" ; then
5238 cat >>confdefs.h <<\_ACEOF
5239 #define TAGLIB_ONLY 1
5240 _ACEOF
5241
5242 { $as_echo "$as_me:$LINENO: *** use taglib and taglib only! ***" >&5
4652 $as_echo "#define TAGLIB_ONLY 1" >>confdefs.h
4653
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: *** use taglib and taglib only! ***" >&5
52434655 $as_echo "$as_me: *** use taglib and taglib only! ***" >&6;}
52444656 fi
52454657
52464658
52474659
52484660 pkg_failed=no
5249 { $as_echo "$as_me:$LINENO: checking for MTP" >&5
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MTP" >&5
52504662 $as_echo_n "checking for MTP... " >&6; }
52514663
52524664 if test -n "$MTP_CFLAGS"; then
52534665 pkg_cv_MTP_CFLAGS="$MTP_CFLAGS"
52544666 elif test -n "$PKG_CONFIG"; then
52554667 if test -n "$PKG_CONFIG" && \
5256 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libmtp >= 0.3.0\"") >&5
4668 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmtp >= 0.3.0\""; } >&5
52574669 ($PKG_CONFIG --exists --print-errors "libmtp >= 0.3.0") 2>&5
52584670 ac_status=$?
5259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); }; then
4671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4672 test $ac_status = 0; }; then
52614673 pkg_cv_MTP_CFLAGS=`$PKG_CONFIG --cflags "libmtp >= 0.3.0" 2>/dev/null`
52624674 else
52634675 pkg_failed=yes
52694681 pkg_cv_MTP_LIBS="$MTP_LIBS"
52704682 elif test -n "$PKG_CONFIG"; then
52714683 if test -n "$PKG_CONFIG" && \
5272 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libmtp >= 0.3.0\"") >&5
4684 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmtp >= 0.3.0\""; } >&5
52734685 ($PKG_CONFIG --exists --print-errors "libmtp >= 0.3.0") 2>&5
52744686 ac_status=$?
5275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); }; then
4687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4688 test $ac_status = 0; }; then
52774689 pkg_cv_MTP_LIBS=`$PKG_CONFIG --libs "libmtp >= 0.3.0" 2>/dev/null`
52784690 else
52794691 pkg_failed=yes
52854697
52864698
52874699 if test $pkg_failed = yes; then
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4701 $as_echo "no" >&6; }
52884702
52894703 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
52904704 _pkg_short_errors_supported=yes
52994713 # Put the nasty error message in config.log where it belongs
53004714 echo "$MTP_PKG_ERRORS" >&5
53014715
5302 { $as_echo "$as_me:$LINENO: result: no" >&5
4716 found_libmtp_pkg=no
4717 elif test $pkg_failed = untried; then
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
53034719 $as_echo "no" >&6; }
5304 found_libmtp_pkg=no
5305 elif test $pkg_failed = untried; then
53064720 found_libmtp_pkg=no
53074721 else
53084722 MTP_CFLAGS=$pkg_cv_MTP_CFLAGS
53094723 MTP_LIBS=$pkg_cv_MTP_LIBS
5310 { $as_echo "$as_me:$LINENO: result: yes" >&5
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
53114725 $as_echo "yes" >&6; }
53124726 found_libmtp_pkg=yes
53134727 fi
53144728 MTP_VER=`pkg-config --modversion libmtp`
5315 if test "${ac_cv_header_libmtp_h+set}" = set; then
5316 { $as_echo "$as_me:$LINENO: checking for libmtp.h" >&5
5317 $as_echo_n "checking for libmtp.h... " >&6; }
5318 if test "${ac_cv_header_libmtp_h+set}" = set; then
5319 $as_echo_n "(cached) " >&6
5320 fi
5321 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libmtp_h" >&5
5322 $as_echo "$ac_cv_header_libmtp_h" >&6; }
5323 else
5324 # Is the header compilable?
5325 { $as_echo "$as_me:$LINENO: checking libmtp.h usability" >&5
5326 $as_echo_n "checking libmtp.h usability... " >&6; }
5327 cat >conftest.$ac_ext <<_ACEOF
5328 /* confdefs.h. */
5329 _ACEOF
5330 cat confdefs.h >>conftest.$ac_ext
5331 cat >>conftest.$ac_ext <<_ACEOF
5332 /* end confdefs.h. */
5333 $ac_includes_default
5334 #include <libmtp.h>
5335 _ACEOF
5336 rm -f conftest.$ac_objext
5337 if { (ac_try="$ac_compile"
5338 case "(($ac_try" in
5339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5340 *) ac_try_echo=$ac_try;;
5341 esac
5342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5343 $as_echo "$ac_try_echo") >&5
5344 (eval "$ac_compile") 2>conftest.er1
5345 ac_status=$?
5346 grep -v '^ *+' conftest.er1 >conftest.err
5347 rm -f conftest.er1
5348 cat conftest.err >&5
5349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350 (exit $ac_status); } && {
5351 test -z "$ac_c_werror_flag" ||
5352 test ! -s conftest.err
5353 } && test -s conftest.$ac_objext; then
5354 ac_header_compiler=yes
5355 else
5356 $as_echo "$as_me: failed program was:" >&5
5357 sed 's/^/| /' conftest.$ac_ext >&5
5358
5359 ac_header_compiler=no
5360 fi
5361
5362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5363 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5364 $as_echo "$ac_header_compiler" >&6; }
5365
5366 # Is the header present?
5367 { $as_echo "$as_me:$LINENO: checking libmtp.h presence" >&5
5368 $as_echo_n "checking libmtp.h presence... " >&6; }
5369 cat >conftest.$ac_ext <<_ACEOF
5370 /* confdefs.h. */
5371 _ACEOF
5372 cat confdefs.h >>conftest.$ac_ext
5373 cat >>conftest.$ac_ext <<_ACEOF
5374 /* end confdefs.h. */
5375 #include <libmtp.h>
5376 _ACEOF
5377 if { (ac_try="$ac_cpp conftest.$ac_ext"
5378 case "(($ac_try" in
5379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5380 *) ac_try_echo=$ac_try;;
5381 esac
5382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5383 $as_echo "$ac_try_echo") >&5
5384 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5385 ac_status=$?
5386 grep -v '^ *+' conftest.er1 >conftest.err
5387 rm -f conftest.er1
5388 cat conftest.err >&5
5389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); } >/dev/null && {
5391 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5392 test ! -s conftest.err
5393 }; then
5394 ac_header_preproc=yes
5395 else
5396 $as_echo "$as_me: failed program was:" >&5
5397 sed 's/^/| /' conftest.$ac_ext >&5
5398
5399 ac_header_preproc=no
5400 fi
5401
5402 rm -f conftest.err conftest.$ac_ext
5403 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5404 $as_echo "$ac_header_preproc" >&6; }
5405
5406 # So? What about this header?
5407 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5408 yes:no: )
5409 { $as_echo "$as_me:$LINENO: WARNING: libmtp.h: accepted by the compiler, rejected by the preprocessor!" >&5
5410 $as_echo "$as_me: WARNING: libmtp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5411 { $as_echo "$as_me:$LINENO: WARNING: libmtp.h: proceeding with the compiler's result" >&5
5412 $as_echo "$as_me: WARNING: libmtp.h: proceeding with the compiler's result" >&2;}
5413 ac_header_preproc=yes
5414 ;;
5415 no:yes:* )
5416 { $as_echo "$as_me:$LINENO: WARNING: libmtp.h: present but cannot be compiled" >&5
5417 $as_echo "$as_me: WARNING: libmtp.h: present but cannot be compiled" >&2;}
5418 { $as_echo "$as_me:$LINENO: WARNING: libmtp.h: check for missing prerequisite headers?" >&5
5419 $as_echo "$as_me: WARNING: libmtp.h: check for missing prerequisite headers?" >&2;}
5420 { $as_echo "$as_me:$LINENO: WARNING: libmtp.h: see the Autoconf documentation" >&5
5421 $as_echo "$as_me: WARNING: libmtp.h: see the Autoconf documentation" >&2;}
5422 { $as_echo "$as_me:$LINENO: WARNING: libmtp.h: section \"Present But Cannot Be Compiled\"" >&5
5423 $as_echo "$as_me: WARNING: libmtp.h: section \"Present But Cannot Be Compiled\"" >&2;}
5424 { $as_echo "$as_me:$LINENO: WARNING: libmtp.h: proceeding with the preprocessor's result" >&5
5425 $as_echo "$as_me: WARNING: libmtp.h: proceeding with the preprocessor's result" >&2;}
5426 { $as_echo "$as_me:$LINENO: WARNING: libmtp.h: in the future, the compiler will take precedence" >&5
5427 $as_echo "$as_me: WARNING: libmtp.h: in the future, the compiler will take precedence" >&2;}
5428 ( cat <<\_ASBOX
5429 ## ---------------------------------------------------------------------------------- ##
5430 ## Report this to http://sourceforge.net/tracker/?func=add&group_id=65573&atid=511470 ##
5431 ## ---------------------------------------------------------------------------------- ##
5432 _ASBOX
5433 ) | sed "s/^/$as_me: WARNING: /" >&2
5434 ;;
5435 esac
5436 { $as_echo "$as_me:$LINENO: checking for libmtp.h" >&5
5437 $as_echo_n "checking for libmtp.h... " >&6; }
5438 if test "${ac_cv_header_libmtp_h+set}" = set; then
5439 $as_echo_n "(cached) " >&6
5440 else
5441 ac_cv_header_libmtp_h=$ac_header_preproc
5442 fi
5443 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libmtp_h" >&5
5444 $as_echo "$ac_cv_header_libmtp_h" >&6; }
5445
5446 fi
5447 if test "x$ac_cv_header_libmtp_h" = x""yes; then
4729 ac_fn_c_check_header_mongrel "$LINENO" "libmtp.h" "ac_cv_header_libmtp_h" "$ac_includes_default"
4730 if test "x$ac_cv_header_libmtp_h" = xyes; then :
54484731 found_libmtp_header=yes
54494732 else
54504733 found_libmtp_header=no
54544737
54554738
54564739 # Check whether --with-libmtp-prefix was given.
5457 if test "${with_libmtp_prefix+set}" = set; then
4740 if test "${with_libmtp_prefix+set}" = set; then :
54584741 withval=$with_libmtp_prefix; libmtp_prefix="$withval"
54594742 else
54604743 libmtp_prefix=""
54654748 MTP_LIBS="-L$libmtp_prefix/lib -lmtp"
54664749 MTP_CFLAGS="-I$libmtp_prefix/include"
54674750 MTP_VER=unknown
5468 cat >>confdefs.h <<\_ACEOF
5469 #define HAVE_LIBMTP 1
5470 _ACEOF
4751 $as_echo "#define HAVE_LIBMTP 1" >>confdefs.h
54714752
54724753 else
54734754 if test x"$found_libmtp_pkg" = "xno" ; then
54744755 if test x"$found_libmtp_header" = xno ; then
5475 { $as_echo "$as_me:$LINENO: *** libmtp was not found on your system. Deactivating MTP support! ***" >&5
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: *** libmtp was not found on your system. Deactivating MTP support! ***" >&5
54764757 $as_echo "$as_me: *** libmtp was not found on your system. Deactivating MTP support! ***" >&6;}
54774758 MTP_VER="NOT USED"
54784759 else
54794760 LIBMTP_VER=unknown
54804761 MTP_CFLAGS=""
54814762 MTP_LIBS="-lmtp"
5482 cat >>confdefs.h <<\_ACEOF
5483 #define HAVE_LIBMTP 1
5484 _ACEOF
4763 $as_echo "#define HAVE_LIBMTP 1" >>confdefs.h
54854764
54864765 fi
54874766 else
5488 cat >>confdefs.h <<\_ACEOF
5489 #define HAVE_LIBMTP 1
5490 _ACEOF
4767 $as_echo "#define HAVE_LIBMTP 1" >>confdefs.h
54914768
54924769 if test -n "$PKG_CONFIG" && \
5493 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libmtp >= 0.3.0\"") >&5
4770 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmtp >= 0.3.0\""; } >&5
54944771 ($PKG_CONFIG --exists --print-errors "libmtp >= 0.3.0") 2>&5
54954772 ac_status=$?
5496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); }; then
4773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4774 test $ac_status = 0; }; then
54984775 found_libmtp_030_pkg=yes
54994776 else
55004777 found_libmtp_030_pkg=no
55014778 fi
55024779 if test x"$found_libmtp_030_pkg" = "xyes" ; then
55034780
5504 cat >>confdefs.h <<\_ACEOF
5505 #define HAVE_LIBMTP_030 1
5506 _ACEOF
4781 $as_echo "#define HAVE_LIBMTP_030 1" >>confdefs.h
55074782
55084783 fi
55094784 fi
55144789
55154790
55164791 pkg_failed=no
5517 { $as_echo "$as_me:$LINENO: checking for DBUSGLIB" >&5
5518 $as_echo_n "checking for DBUSGLIB... " >&6; }
5519
5520 if test -n "$DBUSGLIB_CFLAGS"; then
5521 pkg_cv_DBUSGLIB_CFLAGS="$DBUSGLIB_CFLAGS"
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUDEV" >&5
4793 $as_echo_n "checking for GUDEV... " >&6; }
4794
4795 if test -n "$GUDEV_CFLAGS"; then
4796 pkg_cv_GUDEV_CFLAGS="$GUDEV_CFLAGS"
55224797 elif test -n "$PKG_CONFIG"; then
55234798 if test -n "$PKG_CONFIG" && \
5524 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-glib-1\"") >&5
5525 ($PKG_CONFIG --exists --print-errors "dbus-glib-1") 2>&5
4799 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gudev-1.0 >= 143\""; } >&5
4800 ($PKG_CONFIG --exists --print-errors "gudev-1.0 >= 143") 2>&5
55264801 ac_status=$?
5527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528 (exit $ac_status); }; then
5529 pkg_cv_DBUSGLIB_CFLAGS=`$PKG_CONFIG --cflags "dbus-glib-1" 2>/dev/null`
4802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4803 test $ac_status = 0; }; then
4804 pkg_cv_GUDEV_CFLAGS=`$PKG_CONFIG --cflags "gudev-1.0 >= 143" 2>/dev/null`
55304805 else
55314806 pkg_failed=yes
55324807 fi
55334808 else
55344809 pkg_failed=untried
55354810 fi
5536 if test -n "$DBUSGLIB_LIBS"; then
5537 pkg_cv_DBUSGLIB_LIBS="$DBUSGLIB_LIBS"
4811 if test -n "$GUDEV_LIBS"; then
4812 pkg_cv_GUDEV_LIBS="$GUDEV_LIBS"
55384813 elif test -n "$PKG_CONFIG"; then
55394814 if test -n "$PKG_CONFIG" && \
5540 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-glib-1\"") >&5
5541 ($PKG_CONFIG --exists --print-errors "dbus-glib-1") 2>&5
4815 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gudev-1.0 >= 143\""; } >&5
4816 ($PKG_CONFIG --exists --print-errors "gudev-1.0 >= 143") 2>&5
55424817 ac_status=$?
5543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); }; then
5545 pkg_cv_DBUSGLIB_LIBS=`$PKG_CONFIG --libs "dbus-glib-1" 2>/dev/null`
4818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4819 test $ac_status = 0; }; then
4820 pkg_cv_GUDEV_LIBS=`$PKG_CONFIG --libs "gudev-1.0 >= 143" 2>/dev/null`
55464821 else
55474822 pkg_failed=yes
55484823 fi
55534828
55544829
55554830 if test $pkg_failed = yes; then
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4832 $as_echo "no" >&6; }
55564833
55574834 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
55584835 _pkg_short_errors_supported=yes
55604837 _pkg_short_errors_supported=no
55614838 fi
55624839 if test $_pkg_short_errors_supported = yes; then
5563 DBUSGLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "dbus-glib-1" 2>&1`
4840 GUDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gudev-1.0 >= 143" 2>&1`
55644841 else
5565 DBUSGLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "dbus-glib-1" 2>&1`
4842 GUDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors "gudev-1.0 >= 143" 2>&1`
55664843 fi
55674844 # Put the nasty error message in config.log where it belongs
5568 echo "$DBUSGLIB_PKG_ERRORS" >&5
5569
5570 { $as_echo "$as_me:$LINENO: result: no" >&5
4845 echo "$GUDEV_PKG_ERRORS" >&5
4846
4847 found_gudev_pkg=no
4848 elif test $pkg_failed = untried; then
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55714850 $as_echo "no" >&6; }
5572 found_dbus_pkg=no
5573 elif test $pkg_failed = untried; then
5574 found_dbus_pkg=no
5575 else
5576 DBUSGLIB_CFLAGS=$pkg_cv_DBUSGLIB_CFLAGS
5577 DBUSGLIB_LIBS=$pkg_cv_DBUSGLIB_LIBS
5578 { $as_echo "$as_me:$LINENO: result: yes" >&5
4851 found_gudev_pkg=no
4852 else
4853 GUDEV_CFLAGS=$pkg_cv_GUDEV_CFLAGS
4854 GUDEV_LIBS=$pkg_cv_GUDEV_LIBS
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
55794856 $as_echo "yes" >&6; }
5580 found_dbus_pkg=yes
5581 fi
5582 DBUSGLIB_VER=`pkg-config --modversion dbus-glib-1`
5583
5584 if test x"$found_dbus_pkg" = "xno" ; then
5585 DBUSGLIB_VER="NOT USED"
5586 else
5587 cat >>confdefs.h <<\_ACEOF
5588 #define HAVE_DBUSGLIB 1
5589 _ACEOF
5590
5591 fi
5592
5593
5594
5595
5596
5597 pkg_failed=no
5598 { $as_echo "$as_me:$LINENO: checking for HAL" >&5
5599 $as_echo_n "checking for HAL... " >&6; }
5600
5601 if test -n "$HAL_CFLAGS"; then
5602 pkg_cv_HAL_CFLAGS="$HAL_CFLAGS"
5603 elif test -n "$PKG_CONFIG"; then
5604 if test -n "$PKG_CONFIG" && \
5605 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hal\"") >&5
5606 ($PKG_CONFIG --exists --print-errors "hal") 2>&5
5607 ac_status=$?
5608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); }; then
5610 pkg_cv_HAL_CFLAGS=`$PKG_CONFIG --cflags "hal" 2>/dev/null`
5611 else
5612 pkg_failed=yes
5613 fi
5614 else
5615 pkg_failed=untried
5616 fi
5617 if test -n "$HAL_LIBS"; then
5618 pkg_cv_HAL_LIBS="$HAL_LIBS"
5619 elif test -n "$PKG_CONFIG"; then
5620 if test -n "$PKG_CONFIG" && \
5621 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hal\"") >&5
5622 ($PKG_CONFIG --exists --print-errors "hal") 2>&5
5623 ac_status=$?
5624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625 (exit $ac_status); }; then
5626 pkg_cv_HAL_LIBS=`$PKG_CONFIG --libs "hal" 2>/dev/null`
5627 else
5628 pkg_failed=yes
5629 fi
5630 else
5631 pkg_failed=untried
5632 fi
5633
5634
5635
5636 if test $pkg_failed = yes; then
5637
5638 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5639 _pkg_short_errors_supported=yes
5640 else
5641 _pkg_short_errors_supported=no
5642 fi
5643 if test $_pkg_short_errors_supported = yes; then
5644 HAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "hal" 2>&1`
5645 else
5646 HAL_PKG_ERRORS=`$PKG_CONFIG --print-errors "hal" 2>&1`
5647 fi
5648 # Put the nasty error message in config.log where it belongs
5649 echo "$HAL_PKG_ERRORS" >&5
5650
5651 { $as_echo "$as_me:$LINENO: result: no" >&5
5652 $as_echo "no" >&6; }
5653 found_hal_pkg=no
5654 elif test $pkg_failed = untried; then
5655 found_hal_pkg=no
5656 else
5657 HAL_CFLAGS=$pkg_cv_HAL_CFLAGS
5658 HAL_LIBS=$pkg_cv_HAL_LIBS
5659 { $as_echo "$as_me:$LINENO: result: yes" >&5
5660 $as_echo "yes" >&6; }
5661 found_hal_pkg=yes
5662 fi
5663 HAL_VER=`pkg-config --modversion hal`
5664
5665 if test x"$found_hal_pkg" = "xno" ; then
5666 HAL_VER="NOT USED"
5667 else
5668 cat >>confdefs.h <<\_ACEOF
5669 #define HAVE_HAL 1
5670 _ACEOF
5671
5672 fi
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4857 found_gudev_pkg=yes
4858 fi
4859 if test x"$found_gudev_pkg" = "xno" ; then
4860 GUDEV_VER="NOT USED"
4861 else
4862 GUDEV_VER=`pkg-config --modversion gudev-1.0`
4863 $as_echo "#define HAVE_GUDEV 1" >>confdefs.h
4864
4865 fi
4866
4867
4868
4869
4870 CFLAGS="$CFLAGS -DGTK_DISABLE_SINGLE_INCLUDES"
4871 CFLAGS="$CFLAGS -DG_DISABLE_SINGLE_INCLUDES"
4872
4873
4874
4875
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
56834877 $as_echo_n "checking whether NLS is requested... " >&6; }
56844878 # Check whether --enable-nls was given.
5685 if test "${enable_nls+set}" = set; then
4879 if test "${enable_nls+set}" = set; then :
56864880 enableval=$enable_nls; USE_NLS=$enableval
56874881 else
56884882 USE_NLS=yes
56894883 fi
56904884
5691 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
56924886 $as_echo "$USE_NLS" >&6; }
56934887
56944888
56964890
56974891 case "$am__api_version" in
56984892 1.01234)
5699 { { $as_echo "$as_me:$LINENO: error: Automake 1.5 or newer is required to use intltool" >&5
5700 $as_echo "$as_me: error: Automake 1.5 or newer is required to use intltool" >&2;}
5701 { (exit 1); exit 1; }; }
4893 as_fn_error $? "Automake 1.5 or newer is required to use intltool" "$LINENO" 5
57024894 ;;
57034895 *)
57044896 ;;
57054897 esac
57064898
57074899 if test -n "0.35.0"; then
5708 { $as_echo "$as_me:$LINENO: checking for intltool >= 0.35.0" >&5
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= 0.35.0" >&5
57094901 $as_echo_n "checking for intltool >= 0.35.0... " >&6; }
57104902
57114903 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.35.0 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
57124904 INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
57134905 INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
57144906
5715 { $as_echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5
57164908 $as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }
57174909 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
5718 { { $as_echo "$as_me:$LINENO: error: Your intltool is too old. You need intltool 0.35.0 or later." >&5
5719 $as_echo "$as_me: error: Your intltool is too old. You need intltool 0.35.0 or later." >&2;}
5720 { (exit 1); exit 1; }; }
4910 as_fn_error $? "Your intltool is too old. You need intltool 0.35.0 or later." "$LINENO" 5
57214911 fi
57224912
57234913 # Extract the first word of "intltool-update", so it can be a program name with args.
57244914 set dummy intltool-update; ac_word=$2
5725 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
57264916 $as_echo_n "checking for $ac_word... " >&6; }
5727 if test "${ac_cv_path_INTLTOOL_UPDATE+set}" = set; then
4917 if ${ac_cv_path_INTLTOOL_UPDATE+:} false; then :
57284918 $as_echo_n "(cached) " >&6
57294919 else
57304920 case $INTLTOOL_UPDATE in
57374927 do
57384928 IFS=$as_save_IFS
57394929 test -z "$as_dir" && as_dir=.
5740 for ac_exec_ext in '' $ac_executable_extensions; do
4930 for ac_exec_ext in '' $ac_executable_extensions; do
57414931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
57424932 ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
5743 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
57444934 break 2
57454935 fi
57464936 done
5747 done
4937 done
57484938 IFS=$as_save_IFS
57494939
57504940 ;;
57524942 fi
57534943 INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
57544944 if test -n "$INTLTOOL_UPDATE"; then
5755 { $as_echo "$as_me:$LINENO: result: $INTLTOOL_UPDATE" >&5
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_UPDATE" >&5
57564946 $as_echo "$INTLTOOL_UPDATE" >&6; }
57574947 else
5758 { $as_echo "$as_me:$LINENO: result: no" >&5
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57594949 $as_echo "no" >&6; }
57604950 fi
57614951
57624952
57634953 # Extract the first word of "intltool-merge", so it can be a program name with args.
57644954 set dummy intltool-merge; ac_word=$2
5765 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
57664956 $as_echo_n "checking for $ac_word... " >&6; }
5767 if test "${ac_cv_path_INTLTOOL_MERGE+set}" = set; then
4957 if ${ac_cv_path_INTLTOOL_MERGE+:} false; then :
57684958 $as_echo_n "(cached) " >&6
57694959 else
57704960 case $INTLTOOL_MERGE in
57774967 do
57784968 IFS=$as_save_IFS
57794969 test -z "$as_dir" && as_dir=.
5780 for ac_exec_ext in '' $ac_executable_extensions; do
4970 for ac_exec_ext in '' $ac_executable_extensions; do
57814971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
57824972 ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
5783 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
57844974 break 2
57854975 fi
57864976 done
5787 done
4977 done
57884978 IFS=$as_save_IFS
57894979
57904980 ;;
57924982 fi
57934983 INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
57944984 if test -n "$INTLTOOL_MERGE"; then
5795 { $as_echo "$as_me:$LINENO: result: $INTLTOOL_MERGE" >&5
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_MERGE" >&5
57964986 $as_echo "$INTLTOOL_MERGE" >&6; }
57974987 else
5798 { $as_echo "$as_me:$LINENO: result: no" >&5
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57994989 $as_echo "no" >&6; }
58004990 fi
58014991
58024992
58034993 # Extract the first word of "intltool-extract", so it can be a program name with args.
58044994 set dummy intltool-extract; ac_word=$2
5805 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
58064996 $as_echo_n "checking for $ac_word... " >&6; }
5807 if test "${ac_cv_path_INTLTOOL_EXTRACT+set}" = set; then
4997 if ${ac_cv_path_INTLTOOL_EXTRACT+:} false; then :
58084998 $as_echo_n "(cached) " >&6
58094999 else
58105000 case $INTLTOOL_EXTRACT in
58175007 do
58185008 IFS=$as_save_IFS
58195009 test -z "$as_dir" && as_dir=.
5820 for ac_exec_ext in '' $ac_executable_extensions; do
5010 for ac_exec_ext in '' $ac_executable_extensions; do
58215011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
58225012 ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
5823 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
58245014 break 2
58255015 fi
58265016 done
5827 done
5017 done
58285018 IFS=$as_save_IFS
58295019
58305020 ;;
58325022 fi
58335023 INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
58345024 if test -n "$INTLTOOL_EXTRACT"; then
5835 { $as_echo "$as_me:$LINENO: result: $INTLTOOL_EXTRACT" >&5
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_EXTRACT" >&5
58365026 $as_echo "$INTLTOOL_EXTRACT" >&6; }
58375027 else
5838 { $as_echo "$as_me:$LINENO: result: no" >&5
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
58395029 $as_echo "no" >&6; }
58405030 fi
58415031
58425032
58435033 if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
5844 { { $as_echo "$as_me:$LINENO: error: The intltool scripts were not found. Please install intltool." >&5
5845 $as_echo "$as_me: error: The intltool scripts were not found. Please install intltool." >&2;}
5846 { (exit 1); exit 1; }; }
5034 as_fn_error $? "The intltool scripts were not found. Please install intltool." "$LINENO" 5
58475035 fi
58485036
58495037 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 $< $@'
58865074
58875075
58885076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
58895153 # Check the gettext tools to make sure they are GNU
58905154 # Extract the first word of "xgettext", so it can be a program name with args.
58915155 set dummy xgettext; ac_word=$2
5892 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
58935157 $as_echo_n "checking for $ac_word... " >&6; }
5894 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5158 if ${ac_cv_path_XGETTEXT+:} false; then :
58955159 $as_echo_n "(cached) " >&6
58965160 else
58975161 case $XGETTEXT in
59045168 do
59055169 IFS=$as_save_IFS
59065170 test -z "$as_dir" && as_dir=.
5907 for ac_exec_ext in '' $ac_executable_extensions; do
5171 for ac_exec_ext in '' $ac_executable_extensions; do
59085172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
59095173 ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
5910 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
59115175 break 2
59125176 fi
59135177 done
5914 done
5178 done
59155179 IFS=$as_save_IFS
59165180
59175181 ;;
59195183 fi
59205184 XGETTEXT=$ac_cv_path_XGETTEXT
59215185 if test -n "$XGETTEXT"; then
5922 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
59235187 $as_echo "$XGETTEXT" >&6; }
59245188 else
5925 { $as_echo "$as_me:$LINENO: result: no" >&5
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
59265190 $as_echo "no" >&6; }
59275191 fi
59285192
59295193
59305194 # Extract the first word of "msgmerge", so it can be a program name with args.
59315195 set dummy msgmerge; ac_word=$2
5932 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
59335197 $as_echo_n "checking for $ac_word... " >&6; }
5934 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5198 if ${ac_cv_path_MSGMERGE+:} false; then :
59355199 $as_echo_n "(cached) " >&6
59365200 else
59375201 case $MSGMERGE in
59445208 do
59455209 IFS=$as_save_IFS
59465210 test -z "$as_dir" && as_dir=.
5947 for ac_exec_ext in '' $ac_executable_extensions; do
5211 for ac_exec_ext in '' $ac_executable_extensions; do
59485212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
59495213 ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
5950 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
59515215 break 2
59525216 fi
59535217 done
5954 done
5218 done
59555219 IFS=$as_save_IFS
59565220
59575221 ;;
59595223 fi
59605224 MSGMERGE=$ac_cv_path_MSGMERGE
59615225 if test -n "$MSGMERGE"; then
5962 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
59635227 $as_echo "$MSGMERGE" >&6; }
59645228 else
5965 { $as_echo "$as_me:$LINENO: result: no" >&5
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
59665230 $as_echo "no" >&6; }
59675231 fi
59685232
59695233
59705234 # Extract the first word of "msgfmt", so it can be a program name with args.
59715235 set dummy msgfmt; ac_word=$2
5972 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
59735237 $as_echo_n "checking for $ac_word... " >&6; }
5974 if test "${ac_cv_path_MSGFMT+set}" = set; then
5238 if ${ac_cv_path_MSGFMT+:} false; then :
59755239 $as_echo_n "(cached) " >&6
59765240 else
59775241 case $MSGFMT in
59845248 do
59855249 IFS=$as_save_IFS
59865250 test -z "$as_dir" && as_dir=.
5987 for ac_exec_ext in '' $ac_executable_extensions; do
5251 for ac_exec_ext in '' $ac_executable_extensions; do
59885252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
59895253 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
5990 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
59915255 break 2
59925256 fi
59935257 done
5994 done
5258 done
59955259 IFS=$as_save_IFS
59965260
59975261 ;;
59995263 fi
60005264 MSGFMT=$ac_cv_path_MSGFMT
60015265 if test -n "$MSGFMT"; then
6002 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
60035267 $as_echo "$MSGFMT" >&6; }
60045268 else
6005 { $as_echo "$as_me:$LINENO: result: no" >&5
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
60065270 $as_echo "no" >&6; }
60075271 fi
60085272
60095273
60105274 # Extract the first word of "gmsgfmt", so it can be a program name with args.
60115275 set dummy gmsgfmt; ac_word=$2
6012 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
60135277 $as_echo_n "checking for $ac_word... " >&6; }
6014 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5278 if ${ac_cv_path_GMSGFMT+:} false; then :
60155279 $as_echo_n "(cached) " >&6
60165280 else
60175281 case $GMSGFMT in
60245288 do
60255289 IFS=$as_save_IFS
60265290 test -z "$as_dir" && as_dir=.
6027 for ac_exec_ext in '' $ac_executable_extensions; do
5291 for ac_exec_ext in '' $ac_executable_extensions; do
60285292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
60295293 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6030 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
60315295 break 2
60325296 fi
60335297 done
6034 done
5298 done
60355299 IFS=$as_save_IFS
60365300
60375301 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
60405304 fi
60415305 GMSGFMT=$ac_cv_path_GMSGFMT
60425306 if test -n "$GMSGFMT"; then
6043 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
60445308 $as_echo "$GMSGFMT" >&6; }
60455309 else
6046 { $as_echo "$as_me:$LINENO: result: no" >&5
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
60475311 $as_echo "no" >&6; }
60485312 fi
60495313
60505314
60515315 if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
6052 { { $as_echo "$as_me:$LINENO: error: GNU gettext tools not found; required for intltool" >&5
6053 $as_echo "$as_me: error: GNU gettext tools not found; required for intltool" >&2;}
6054 { (exit 1); exit 1; }; }
5316 as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
60555317 fi
60565318 xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
60575319 mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
60585320 mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
60595321 if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
6060 { { $as_echo "$as_me:$LINENO: error: GNU gettext tools not found; required for intltool" >&5
6061 $as_echo "$as_me: error: GNU gettext tools not found; required for intltool" >&2;}
6062 { (exit 1); exit 1; }; }
5322 as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
60635323 fi
60645324
60655325 # Extract the first word of "perl", so it can be a program name with args.
60665326 set dummy perl; ac_word=$2
6067 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
60685328 $as_echo_n "checking for $ac_word... " >&6; }
6069 if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
5329 if ${ac_cv_path_INTLTOOL_PERL+:} false; then :
60705330 $as_echo_n "(cached) " >&6
60715331 else
60725332 case $INTLTOOL_PERL in
60795339 do
60805340 IFS=$as_save_IFS
60815341 test -z "$as_dir" && as_dir=.
6082 for ac_exec_ext in '' $ac_executable_extensions; do
5342 for ac_exec_ext in '' $ac_executable_extensions; do
60835343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
60845344 ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
6085 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
60865346 break 2
60875347 fi
60885348 done
6089 done
5349 done
60905350 IFS=$as_save_IFS
60915351
60925352 ;;
60945354 fi
60955355 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
60965356 if test -n "$INTLTOOL_PERL"; then
6097 { $as_echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_PERL" >&5
60985358 $as_echo "$INTLTOOL_PERL" >&6; }
60995359 else
6100 { $as_echo "$as_me:$LINENO: result: no" >&5
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
61015361 $as_echo "no" >&6; }
61025362 fi
61035363
61045364
61055365 if test -z "$INTLTOOL_PERL"; then
6106 { { $as_echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5
6107 $as_echo "$as_me: error: perl not found; required for intltool" >&2;}
6108 { (exit 1); exit 1; }; }
6109 fi
6110 if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
6111 { { $as_echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5
6112 $as_echo "$as_me: error: perl 5.x required for intltool" >&2;}
6113 { (exit 1); exit 1; }; }
5366 as_fn_error $? "perl not found" "$LINENO" 5
5367 fi
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl >= 5.8.1" >&5
5369 $as_echo_n "checking for perl >= 5.8.1... " >&6; }
5370 $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
5371 if test $? -ne 0; then
5372 as_fn_error $? "perl 5.8.1 is required for intltool" "$LINENO" 5
5373 else
5374 IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IT_PERL_VERSION" >&5
5376 $as_echo "$IT_PERL_VERSION" >&6; }
61145377 fi
61155378 if test "x" != "xno-xml"; then
6116 { $as_echo "$as_me:$LINENO: checking for XML::Parser" >&5
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML::Parser" >&5
61175380 $as_echo_n "checking for XML::Parser... " >&6; }
61185381 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
6119 { $as_echo "$as_me:$LINENO: result: ok" >&5
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
61205383 $as_echo "ok" >&6; }
61215384 else
6122 { { $as_echo "$as_me:$LINENO: error: XML::Parser perl module is required for intltool" >&5
6123 $as_echo "$as_me: error: XML::Parser perl module is required for intltool" >&2;}
6124 { (exit 1); exit 1; }; }
5385 as_fn_error $? "XML::Parser perl module is required for intltool" "$LINENO" 5
61255386 fi
61265387 fi
61275388
61315392 # Set DATADIRNAME correctly if it is not set yet
61325393 # (copied from glib-gettext.m4)
61335394 if test -z "$DATADIRNAME"; then
6134 cat >conftest.$ac_ext <<_ACEOF
6135 /* confdefs.h. */
6136 _ACEOF
6137 cat confdefs.h >>conftest.$ac_ext
6138 cat >>conftest.$ac_ext <<_ACEOF
5395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61395396 /* end confdefs.h. */
61405397
61415398 int
61475404 return 0;
61485405 }
61495406 _ACEOF
6150 rm -f conftest.$ac_objext conftest$ac_exeext
6151 if { (ac_try="$ac_link"
6152 case "(($ac_try" in
6153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6154 *) ac_try_echo=$ac_try;;
6155 esac
6156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6157 $as_echo "$ac_try_echo") >&5
6158 (eval "$ac_link") 2>conftest.er1
6159 ac_status=$?
6160 grep -v '^ *+' conftest.er1 >conftest.err
6161 rm -f conftest.er1
6162 cat conftest.err >&5
6163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164 (exit $ac_status); } && {
6165 test -z "$ac_c_werror_flag" ||
6166 test ! -s conftest.err
6167 } && test -s conftest$ac_exeext && {
6168 test "$cross_compiling" = yes ||
6169 $as_test_x conftest$ac_exeext
6170 }; then
5407 if ac_fn_c_try_link "$LINENO"; then :
61715408 DATADIRNAME=share
61725409 else
6173 $as_echo "$as_me: failed program was:" >&5
6174 sed 's/^/| /' conftest.$ac_ext >&5
6175
6176 case $host in
5410 case $host in
61775411 *-*-solaris*)
6178 { $as_echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
6179 $as_echo_n "checking for bind_textdomain_codeset... " >&6; }
6180 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
6181 $as_echo_n "(cached) " >&6
6182 else
6183 cat >conftest.$ac_ext <<_ACEOF
6184 /* confdefs.h. */
6185 _ACEOF
6186 cat confdefs.h >>conftest.$ac_ext
6187 cat >>conftest.$ac_ext <<_ACEOF
6188 /* end confdefs.h. */
6189 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
6190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6191 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
6192
6193 /* System header to define __stub macros and hopefully few prototypes,
6194 which can conflict with char bind_textdomain_codeset (); below.
6195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6196 <limits.h> exists even on freestanding compilers. */
6197
6198 #ifdef __STDC__
6199 # include <limits.h>
6200 #else
6201 # include <assert.h>
6202 #endif
6203
6204 #undef bind_textdomain_codeset
6205
6206 /* Override any GCC internal prototype to avoid an error.
6207 Use char because int might match the return type of a GCC
6208 builtin and then its argument prototype would still apply. */
6209 #ifdef __cplusplus
6210 extern "C"
6211 #endif
6212 char bind_textdomain_codeset ();
6213 /* The GNU C library defines this for functions which it implements
6214 to always fail with ENOSYS. Some functions are actually named
6215 something starting with __ and the normal name is an alias. */
6216 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
6217 choke me
6218 #endif
6219
6220 int
6221 main ()
6222 {
6223 return bind_textdomain_codeset ();
6224 ;
6225 return 0;
6226 }
6227 _ACEOF
6228 rm -f conftest.$ac_objext conftest$ac_exeext
6229 if { (ac_try="$ac_link"
6230 case "(($ac_try" in
6231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6232 *) ac_try_echo=$ac_try;;
6233 esac
6234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6235 $as_echo "$ac_try_echo") >&5
6236 (eval "$ac_link") 2>conftest.er1
6237 ac_status=$?
6238 grep -v '^ *+' conftest.er1 >conftest.err
6239 rm -f conftest.er1
6240 cat conftest.err >&5
6241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); } && {
6243 test -z "$ac_c_werror_flag" ||
6244 test ! -s conftest.err
6245 } && test -s conftest$ac_exeext && {
6246 test "$cross_compiling" = yes ||
6247 $as_test_x conftest$ac_exeext
6248 }; then
6249 ac_cv_func_bind_textdomain_codeset=yes
6250 else
6251 $as_echo "$as_me: failed program was:" >&5
6252 sed 's/^/| /' conftest.$ac_ext >&5
6253
6254 ac_cv_func_bind_textdomain_codeset=no
6255 fi
6256
6257 rm -rf conftest.dSYM
6258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6259 conftest$ac_exeext conftest.$ac_ext
6260 fi
6261 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
6262 $as_echo "$ac_cv_func_bind_textdomain_codeset" >&6; }
6263 if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then
5412 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
5413 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
62645414 DATADIRNAME=share
62655415 else
62665416 DATADIRNAME=lib
62725422 ;;
62735423 esac
62745424 fi
6275
6276 rm -rf conftest.dSYM
6277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6278 conftest$ac_exeext conftest.$ac_ext
5425 rm -f core conftest.err conftest.$ac_objext \
5426 conftest$ac_exeext conftest.$ac_ext
62795427 fi
62805428
62815429
62925440
62935441
62945442
6295
6296 for ac_header in locale.h
6297 do
6298 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6300 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6301 $as_echo_n "checking for $ac_header... " >&6; }
6302 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5443 for ac_header in locale.h
5444 do :
5445 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
5446 if test "x$ac_cv_header_locale_h" = xyes; then :
5447 cat >>confdefs.h <<_ACEOF
5448 #define HAVE_LOCALE_H 1
5449 _ACEOF
5450
5451 fi
5452
5453 done
5454
5455 if test $ac_cv_header_locale_h = yes; then
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
5457 $as_echo_n "checking for LC_MESSAGES... " >&6; }
5458 if ${am_cv_val_LC_MESSAGES+:} false; then :
63035459 $as_echo_n "(cached) " >&6
6304 fi
6305 ac_res=`eval 'as_val=${'$as_ac_Header'}
6306 $as_echo "$as_val"'`
6307 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6308 $as_echo "$ac_res" >&6; }
6309 else
6310 # Is the header compilable?
6311 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6312 $as_echo_n "checking $ac_header usability... " >&6; }
6313 cat >conftest.$ac_ext <<_ACEOF
6314 /* confdefs.h. */
6315 _ACEOF
6316 cat confdefs.h >>conftest.$ac_ext
6317 cat >>conftest.$ac_ext <<_ACEOF
6318 /* end confdefs.h. */
6319 $ac_includes_default
6320 #include <$ac_header>
6321 _ACEOF
6322 rm -f conftest.$ac_objext
6323 if { (ac_try="$ac_compile"
6324 case "(($ac_try" in
6325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6326 *) ac_try_echo=$ac_try;;
6327 esac
6328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6329 $as_echo "$ac_try_echo") >&5
6330 (eval "$ac_compile") 2>conftest.er1
6331 ac_status=$?
6332 grep -v '^ *+' conftest.er1 >conftest.err
6333 rm -f conftest.er1
6334 cat conftest.err >&5
6335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336 (exit $ac_status); } && {
6337 test -z "$ac_c_werror_flag" ||
6338 test ! -s conftest.err
6339 } && test -s conftest.$ac_objext; then
6340 ac_header_compiler=yes
6341 else
6342 $as_echo "$as_me: failed program was:" >&5
6343 sed 's/^/| /' conftest.$ac_ext >&5
6344
6345 ac_header_compiler=no
6346 fi
6347
6348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6349 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6350 $as_echo "$ac_header_compiler" >&6; }
6351
6352 # Is the header present?
6353 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6354 $as_echo_n "checking $ac_header presence... " >&6; }
6355 cat >conftest.$ac_ext <<_ACEOF
6356 /* confdefs.h. */
6357 _ACEOF
6358 cat confdefs.h >>conftest.$ac_ext
6359 cat >>conftest.$ac_ext <<_ACEOF
6360 /* end confdefs.h. */
6361 #include <$ac_header>
6362 _ACEOF
6363 if { (ac_try="$ac_cpp conftest.$ac_ext"
6364 case "(($ac_try" in
6365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6366 *) ac_try_echo=$ac_try;;
6367 esac
6368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6369 $as_echo "$ac_try_echo") >&5
6370 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6371 ac_status=$?
6372 grep -v '^ *+' conftest.er1 >conftest.err
6373 rm -f conftest.er1
6374 cat conftest.err >&5
6375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376 (exit $ac_status); } >/dev/null && {
6377 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6378 test ! -s conftest.err
6379 }; then
6380 ac_header_preproc=yes
6381 else
6382 $as_echo "$as_me: failed program was:" >&5
6383 sed 's/^/| /' conftest.$ac_ext >&5
6384
6385 ac_header_preproc=no
6386 fi
6387
6388 rm -f conftest.err conftest.$ac_ext
6389 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6390 $as_echo "$ac_header_preproc" >&6; }
6391
6392 # So? What about this header?
6393 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6394 yes:no: )
6395 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6396 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6397 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6398 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6399 ac_header_preproc=yes
6400 ;;
6401 no:yes:* )
6402 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6403 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6404 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6405 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6406 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6407 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6408 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6409 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6410 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6411 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6412 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6413 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6414 ( cat <<\_ASBOX
6415 ## ---------------------------------------------------------------------------------- ##
6416 ## Report this to http://sourceforge.net/tracker/?func=add&group_id=65573&atid=511470 ##
6417 ## ---------------------------------------------------------------------------------- ##
6418 _ASBOX
6419 ) | sed "s/^/$as_me: WARNING: /" >&2
6420 ;;
6421 esac
6422 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6423 $as_echo_n "checking for $ac_header... " >&6; }
6424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6425 $as_echo_n "(cached) " >&6
6426 else
6427 eval "$as_ac_Header=\$ac_header_preproc"
6428 fi
6429 ac_res=`eval 'as_val=${'$as_ac_Header'}
6430 $as_echo "$as_val"'`
6431 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6432 $as_echo "$ac_res" >&6; }
6433
6434 fi
6435 as_val=`eval 'as_val=${'$as_ac_Header'}
6436 $as_echo "$as_val"'`
6437 if test "x$as_val" = x""yes; then
6438 cat >>confdefs.h <<_ACEOF
6439 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6440 _ACEOF
6441
6442 fi
6443
6444 done
6445
6446 if test $ac_cv_header_locale_h = yes; then
6447 { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
6448 $as_echo_n "checking for LC_MESSAGES... " >&6; }
6449 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
6450 $as_echo_n "(cached) " >&6
6451 else
6452 cat >conftest.$ac_ext <<_ACEOF
6453 /* confdefs.h. */
6454 _ACEOF
6455 cat confdefs.h >>conftest.$ac_ext
6456 cat >>conftest.$ac_ext <<_ACEOF
5460 else
5461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
64575462 /* end confdefs.h. */
64585463 #include <locale.h>
64595464 int
64645469 return 0;
64655470 }
64665471 _ACEOF
6467 rm -f conftest.$ac_objext conftest$ac_exeext
6468 if { (ac_try="$ac_link"
6469 case "(($ac_try" in
6470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6471 *) ac_try_echo=$ac_try;;
6472 esac
6473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6474 $as_echo "$ac_try_echo") >&5
6475 (eval "$ac_link") 2>conftest.er1
6476 ac_status=$?
6477 grep -v '^ *+' conftest.er1 >conftest.err
6478 rm -f conftest.er1
6479 cat conftest.err >&5
6480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); } && {
6482 test -z "$ac_c_werror_flag" ||
6483 test ! -s conftest.err
6484 } && test -s conftest$ac_exeext && {
6485 test "$cross_compiling" = yes ||
6486 $as_test_x conftest$ac_exeext
6487 }; then
5472 if ac_fn_c_try_link "$LINENO"; then :
64885473 am_cv_val_LC_MESSAGES=yes
64895474 else
6490 $as_echo "$as_me: failed program was:" >&5
6491 sed 's/^/| /' conftest.$ac_ext >&5
6492
6493 am_cv_val_LC_MESSAGES=no
6494 fi
6495
6496 rm -rf conftest.dSYM
6497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6498 conftest$ac_exeext conftest.$ac_ext
6499 fi
6500 { $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
5475 am_cv_val_LC_MESSAGES=no
5476 fi
5477 rm -f core conftest.err conftest.$ac_objext \
5478 conftest$ac_exeext conftest.$ac_ext
5479 fi
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
65015481 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
65025482 if test $am_cv_val_LC_MESSAGES = yes; then
65035483
6504 cat >>confdefs.h <<\_ACEOF
6505 #define HAVE_LC_MESSAGES 1
6506 _ACEOF
5484 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
65075485
65085486 fi
65095487 fi
65165494 XGETTEXT=:
65175495 INTLLIBS=
65185496
6519 if test "${ac_cv_header_libintl_h+set}" = set; then
6520 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
6521 $as_echo_n "checking for libintl.h... " >&6; }
6522 if test "${ac_cv_header_libintl_h+set}" = set; then
6523 $as_echo_n "(cached) " >&6
6524 fi
6525 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
6526 $as_echo "$ac_cv_header_libintl_h" >&6; }
6527 else
6528 # Is the header compilable?
6529 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
6530 $as_echo_n "checking libintl.h usability... " >&6; }
6531 cat >conftest.$ac_ext <<_ACEOF
6532 /* confdefs.h. */
6533 _ACEOF
6534 cat confdefs.h >>conftest.$ac_ext
6535 cat >>conftest.$ac_ext <<_ACEOF
6536 /* end confdefs.h. */
6537 $ac_includes_default
6538 #include <libintl.h>
6539 _ACEOF
6540 rm -f conftest.$ac_objext
6541 if { (ac_try="$ac_compile"
6542 case "(($ac_try" in
6543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6544 *) ac_try_echo=$ac_try;;
6545 esac
6546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6547 $as_echo "$ac_try_echo") >&5
6548 (eval "$ac_compile") 2>conftest.er1
6549 ac_status=$?
6550 grep -v '^ *+' conftest.er1 >conftest.err
6551 rm -f conftest.er1
6552 cat conftest.err >&5
6553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554 (exit $ac_status); } && {
6555 test -z "$ac_c_werror_flag" ||
6556 test ! -s conftest.err
6557 } && test -s conftest.$ac_objext; then
6558 ac_header_compiler=yes
6559 else
6560 $as_echo "$as_me: failed program was:" >&5
6561 sed 's/^/| /' conftest.$ac_ext >&5
6562
6563 ac_header_compiler=no
6564 fi
6565
6566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6567 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6568 $as_echo "$ac_header_compiler" >&6; }
6569
6570 # Is the header present?
6571 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
6572 $as_echo_n "checking libintl.h presence... " >&6; }
6573 cat >conftest.$ac_ext <<_ACEOF
6574 /* confdefs.h. */
6575 _ACEOF
6576 cat confdefs.h >>conftest.$ac_ext
6577 cat >>conftest.$ac_ext <<_ACEOF
6578 /* end confdefs.h. */
6579 #include <libintl.h>
6580 _ACEOF
6581 if { (ac_try="$ac_cpp conftest.$ac_ext"
6582 case "(($ac_try" in
6583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6584 *) ac_try_echo=$ac_try;;
6585 esac
6586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6587 $as_echo "$ac_try_echo") >&5
6588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6589 ac_status=$?
6590 grep -v '^ *+' conftest.er1 >conftest.err
6591 rm -f conftest.er1
6592 cat conftest.err >&5
6593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 (exit $ac_status); } >/dev/null && {
6595 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6596 test ! -s conftest.err
6597 }; then
6598 ac_header_preproc=yes
6599 else
6600 $as_echo "$as_me: failed program was:" >&5
6601 sed 's/^/| /' conftest.$ac_ext >&5
6602
6603 ac_header_preproc=no
6604 fi
6605
6606 rm -f conftest.err conftest.$ac_ext
6607 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6608 $as_echo "$ac_header_preproc" >&6; }
6609
6610 # So? What about this header?
6611 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6612 yes:no: )
6613 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
6614 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6615 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
6616 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
6617 ac_header_preproc=yes
6618 ;;
6619 no:yes:* )
6620 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
6621 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
6622 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
6623 $as_echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
6624 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
6625 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
6626 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
6627 $as_echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
6628 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
6629 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
6630 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
6631 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
6632 ( cat <<\_ASBOX
6633 ## ---------------------------------------------------------------------------------- ##
6634 ## Report this to http://sourceforge.net/tracker/?func=add&group_id=65573&atid=511470 ##
6635 ## ---------------------------------------------------------------------------------- ##
6636 _ASBOX
6637 ) | sed "s/^/$as_me: WARNING: /" >&2
6638 ;;
6639 esac
6640 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
6641 $as_echo_n "checking for libintl.h... " >&6; }
6642 if test "${ac_cv_header_libintl_h+set}" = set; then
6643 $as_echo_n "(cached) " >&6
6644 else
6645 ac_cv_header_libintl_h=$ac_header_preproc
6646 fi
6647 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
6648 $as_echo "$ac_cv_header_libintl_h" >&6; }
6649
6650 fi
6651 if test "x$ac_cv_header_libintl_h" = x""yes; then
5497 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
5498 if test "x$ac_cv_header_libintl_h" = xyes; then :
66525499 gt_cv_func_dgettext_libintl="no"
66535500 libintl_extra_libs=""
66545501
66555502 #
66565503 # First check in libc
66575504 #
6658 { $as_echo "$as_me:$LINENO: checking for ngettext in libc" >&5
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5
66595506 $as_echo_n "checking for ngettext in libc... " >&6; }
6660 if test "${gt_cv_func_ngettext_libc+set}" = set; then
5507 if ${gt_cv_func_ngettext_libc+:} false; then :
66615508 $as_echo_n "(cached) " >&6
66625509 else
6663 cat >conftest.$ac_ext <<_ACEOF
6664 /* confdefs.h. */
6665 _ACEOF
6666 cat confdefs.h >>conftest.$ac_ext
6667 cat >>conftest.$ac_ext <<_ACEOF
5510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
66685511 /* end confdefs.h. */
66695512
66705513 #include <libintl.h>
66775520 return 0;
66785521 }
66795522 _ACEOF
6680 rm -f conftest.$ac_objext conftest$ac_exeext
6681 if { (ac_try="$ac_link"
6682 case "(($ac_try" in
6683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6684 *) ac_try_echo=$ac_try;;
6685 esac
6686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6687 $as_echo "$ac_try_echo") >&5
6688 (eval "$ac_link") 2>conftest.er1
6689 ac_status=$?
6690 grep -v '^ *+' conftest.er1 >conftest.err
6691 rm -f conftest.er1
6692 cat conftest.err >&5
6693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694 (exit $ac_status); } && {
6695 test -z "$ac_c_werror_flag" ||
6696 test ! -s conftest.err
6697 } && test -s conftest$ac_exeext && {
6698 test "$cross_compiling" = yes ||
6699 $as_test_x conftest$ac_exeext
6700 }; then
5523 if ac_fn_c_try_link "$LINENO"; then :
67015524 gt_cv_func_ngettext_libc=yes
67025525 else
6703 $as_echo "$as_me: failed program was:" >&5
6704 sed 's/^/| /' conftest.$ac_ext >&5
6705
6706 gt_cv_func_ngettext_libc=no
6707 fi
6708
6709 rm -rf conftest.dSYM
6710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6711 conftest$ac_exeext conftest.$ac_ext
6712
6713 fi
6714 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
5526 gt_cv_func_ngettext_libc=no
5527 fi
5528 rm -f core conftest.err conftest.$ac_objext \
5529 conftest$ac_exeext conftest.$ac_ext
5530
5531 fi
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_ngettext_libc" >&5
67155533 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
67165534
67175535 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
6718 { $as_echo "$as_me:$LINENO: checking for dgettext in libc" >&5
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5
67195537 $as_echo_n "checking for dgettext in libc... " >&6; }
6720 if test "${gt_cv_func_dgettext_libc+set}" = set; then
5538 if ${gt_cv_func_dgettext_libc+:} false; then :
67215539 $as_echo_n "(cached) " >&6
67225540 else
6723 cat >conftest.$ac_ext <<_ACEOF
6724 /* confdefs.h. */
6725 _ACEOF
6726 cat confdefs.h >>conftest.$ac_ext
6727 cat >>conftest.$ac_ext <<_ACEOF
5541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
67285542 /* end confdefs.h. */
67295543
67305544 #include <libintl.h>
67375551 return 0;
67385552 }
67395553 _ACEOF
6740 rm -f conftest.$ac_objext conftest$ac_exeext
6741 if { (ac_try="$ac_link"
6742 case "(($ac_try" in
6743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6744 *) ac_try_echo=$ac_try;;
6745 esac
6746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6747 $as_echo "$ac_try_echo") >&5
6748 (eval "$ac_link") 2>conftest.er1
6749 ac_status=$?
6750 grep -v '^ *+' conftest.er1 >conftest.err
6751 rm -f conftest.er1
6752 cat conftest.err >&5
6753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754 (exit $ac_status); } && {
6755 test -z "$ac_c_werror_flag" ||
6756 test ! -s conftest.err
6757 } && test -s conftest$ac_exeext && {
6758 test "$cross_compiling" = yes ||
6759 $as_test_x conftest$ac_exeext
6760 }; then
5554 if ac_fn_c_try_link "$LINENO"; then :
67615555 gt_cv_func_dgettext_libc=yes
67625556 else
6763 $as_echo "$as_me: failed program was:" >&5
6764 sed 's/^/| /' conftest.$ac_ext >&5
6765
6766 gt_cv_func_dgettext_libc=no
6767 fi
6768
6769 rm -rf conftest.dSYM
6770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6771 conftest$ac_exeext conftest.$ac_ext
6772
6773 fi
6774 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
5557 gt_cv_func_dgettext_libc=no
5558 fi
5559 rm -f core conftest.err conftest.$ac_objext \
5560 conftest$ac_exeext conftest.$ac_ext
5561
5562 fi
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5
67755564 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
67765565 fi
67775566
67785567 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
6779
6780 for ac_func in bind_textdomain_codeset
6781 do
6782 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6783 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6784 $as_echo_n "checking for $ac_func... " >&6; }
6785 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6786 $as_echo_n "(cached) " >&6
6787 else
6788 cat >conftest.$ac_ext <<_ACEOF
6789 /* confdefs.h. */
6790 _ACEOF
6791 cat confdefs.h >>conftest.$ac_ext
6792 cat >>conftest.$ac_ext <<_ACEOF
6793 /* end confdefs.h. */
6794 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6796 #define $ac_func innocuous_$ac_func
6797
6798 /* System header to define __stub macros and hopefully few prototypes,
6799 which can conflict with char $ac_func (); below.
6800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6801 <limits.h> exists even on freestanding compilers. */
6802
6803 #ifdef __STDC__
6804 # include <limits.h>
6805 #else
6806 # include <assert.h>
6807 #endif
6808
6809 #undef $ac_func
6810
6811 /* Override any GCC internal prototype to avoid an error.
6812 Use char because int might match the return type of a GCC
6813 builtin and then its argument prototype would still apply. */
6814 #ifdef __cplusplus
6815 extern "C"
6816 #endif
6817 char $ac_func ();
6818 /* The GNU C library defines this for functions which it implements
6819 to always fail with ENOSYS. Some functions are actually named
6820 something starting with __ and the normal name is an alias. */
6821 #if defined __stub_$ac_func || defined __stub___$ac_func
6822 choke me
6823 #endif
6824
6825 int
6826 main ()
6827 {
6828 return $ac_func ();
6829 ;
6830 return 0;
6831 }
6832 _ACEOF
6833 rm -f conftest.$ac_objext conftest$ac_exeext
6834 if { (ac_try="$ac_link"
6835 case "(($ac_try" in
6836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6837 *) ac_try_echo=$ac_try;;
6838 esac
6839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6840 $as_echo "$ac_try_echo") >&5
6841 (eval "$ac_link") 2>conftest.er1
6842 ac_status=$?
6843 grep -v '^ *+' conftest.er1 >conftest.err
6844 rm -f conftest.er1
6845 cat conftest.err >&5
6846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847 (exit $ac_status); } && {
6848 test -z "$ac_c_werror_flag" ||
6849 test ! -s conftest.err
6850 } && test -s conftest$ac_exeext && {
6851 test "$cross_compiling" = yes ||
6852 $as_test_x conftest$ac_exeext
6853 }; then
6854 eval "$as_ac_var=yes"
6855 else
6856 $as_echo "$as_me: failed program was:" >&5
6857 sed 's/^/| /' conftest.$ac_ext >&5
6858
6859 eval "$as_ac_var=no"
6860 fi
6861
6862 rm -rf conftest.dSYM
6863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6864 conftest$ac_exeext conftest.$ac_ext
6865 fi
6866 ac_res=`eval 'as_val=${'$as_ac_var'}
6867 $as_echo "$as_val"'`
6868 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6869 $as_echo "$ac_res" >&6; }
6870 as_val=`eval 'as_val=${'$as_ac_var'}
6871 $as_echo "$as_val"'`
6872 if test "x$as_val" = x""yes; then
5568 for ac_func in bind_textdomain_codeset
5569 do :
5570 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
5571 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
68735572 cat >>confdefs.h <<_ACEOF
6874 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5573 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
68755574 _ACEOF
68765575
68775576 fi
68865585 || test "$gt_cv_func_ngettext_libc" != "yes" \
68875586 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
68885587
6889 { $as_echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
68905589 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
6891 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
5590 if ${ac_cv_lib_intl_bindtextdomain+:} false; then :
68925591 $as_echo_n "(cached) " >&6
68935592 else
68945593 ac_check_lib_save_LIBS=$LIBS
68955594 LIBS="-lintl $LIBS"
6896 cat >conftest.$ac_ext <<_ACEOF
6897 /* confdefs.h. */
6898 _ACEOF
6899 cat confdefs.h >>conftest.$ac_ext
6900 cat >>conftest.$ac_ext <<_ACEOF
5595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69015596 /* end confdefs.h. */
69025597
69035598 /* Override any GCC internal prototype to avoid an error.
69155610 return 0;
69165611 }
69175612 _ACEOF
6918 rm -f conftest.$ac_objext conftest$ac_exeext
6919 if { (ac_try="$ac_link"
6920 case "(($ac_try" in
6921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6922 *) ac_try_echo=$ac_try;;
6923 esac
6924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6925 $as_echo "$ac_try_echo") >&5
6926 (eval "$ac_link") 2>conftest.er1
6927 ac_status=$?
6928 grep -v '^ *+' conftest.er1 >conftest.err
6929 rm -f conftest.er1
6930 cat conftest.err >&5
6931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932 (exit $ac_status); } && {
6933 test -z "$ac_c_werror_flag" ||
6934 test ! -s conftest.err
6935 } && test -s conftest$ac_exeext && {
6936 test "$cross_compiling" = yes ||
6937 $as_test_x conftest$ac_exeext
6938 }; then
5613 if ac_fn_c_try_link "$LINENO"; then :
69395614 ac_cv_lib_intl_bindtextdomain=yes
69405615 else
6941 $as_echo "$as_me: failed program was:" >&5
6942 sed 's/^/| /' conftest.$ac_ext >&5
6943
6944 ac_cv_lib_intl_bindtextdomain=no
6945 fi
6946
6947 rm -rf conftest.dSYM
6948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6949 conftest$ac_exeext conftest.$ac_ext
5616 ac_cv_lib_intl_bindtextdomain=no
5617 fi
5618 rm -f core conftest.err conftest.$ac_objext \
5619 conftest$ac_exeext conftest.$ac_ext
69505620 LIBS=$ac_check_lib_save_LIBS
69515621 fi
6952 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5
69535623 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
6954 if test "x$ac_cv_lib_intl_bindtextdomain" = x""yes; then
6955 { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
5624 if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then :
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
69565626 $as_echo_n "checking for ngettext in -lintl... " >&6; }
6957 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
5627 if ${ac_cv_lib_intl_ngettext+:} false; then :
69585628 $as_echo_n "(cached) " >&6
69595629 else
69605630 ac_check_lib_save_LIBS=$LIBS
69615631 LIBS="-lintl $LIBS"
6962 cat >conftest.$ac_ext <<_ACEOF
6963 /* confdefs.h. */
6964 _ACEOF
6965 cat confdefs.h >>conftest.$ac_ext
6966 cat >>conftest.$ac_ext <<_ACEOF
5632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69675633 /* end confdefs.h. */
69685634
69695635 /* Override any GCC internal prototype to avoid an error.
69815647 return 0;
69825648 }
69835649 _ACEOF
6984 rm -f conftest.$ac_objext conftest$ac_exeext
6985 if { (ac_try="$ac_link"
6986 case "(($ac_try" in
6987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6988 *) ac_try_echo=$ac_try;;
6989 esac
6990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6991 $as_echo "$ac_try_echo") >&5
6992 (eval "$ac_link") 2>conftest.er1
6993 ac_status=$?
6994 grep -v '^ *+' conftest.er1 >conftest.err
6995 rm -f conftest.er1
6996 cat conftest.err >&5
6997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998 (exit $ac_status); } && {
6999 test -z "$ac_c_werror_flag" ||
7000 test ! -s conftest.err
7001 } && test -s conftest$ac_exeext && {
7002 test "$cross_compiling" = yes ||
7003 $as_test_x conftest$ac_exeext
7004 }; then
5650 if ac_fn_c_try_link "$LINENO"; then :
70055651 ac_cv_lib_intl_ngettext=yes
70065652 else
7007 $as_echo "$as_me: failed program was:" >&5
7008 sed 's/^/| /' conftest.$ac_ext >&5
7009
7010 ac_cv_lib_intl_ngettext=no
7011 fi
7012
7013 rm -rf conftest.dSYM
7014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7015 conftest$ac_exeext conftest.$ac_ext
5653 ac_cv_lib_intl_ngettext=no
5654 fi
5655 rm -f core conftest.err conftest.$ac_objext \
5656 conftest$ac_exeext conftest.$ac_ext
70165657 LIBS=$ac_check_lib_save_LIBS
70175658 fi
7018 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
70195660 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
7020 if test "x$ac_cv_lib_intl_ngettext" = x""yes; then
7021 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
5661 if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
70225663 $as_echo_n "checking for dgettext in -lintl... " >&6; }
7023 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
5664 if ${ac_cv_lib_intl_dgettext+:} false; then :
70245665 $as_echo_n "(cached) " >&6
70255666 else
70265667 ac_check_lib_save_LIBS=$LIBS
70275668 LIBS="-lintl $LIBS"
7028 cat >conftest.$ac_ext <<_ACEOF
7029 /* confdefs.h. */
7030 _ACEOF
7031 cat confdefs.h >>conftest.$ac_ext
7032 cat >>conftest.$ac_ext <<_ACEOF
5669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
70335670 /* end confdefs.h. */
70345671
70355672 /* Override any GCC internal prototype to avoid an error.
70475684 return 0;
70485685 }
70495686 _ACEOF
7050 rm -f conftest.$ac_objext conftest$ac_exeext
7051 if { (ac_try="$ac_link"
7052 case "(($ac_try" in
7053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7054 *) ac_try_echo=$ac_try;;
7055 esac
7056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7057 $as_echo "$ac_try_echo") >&5
7058 (eval "$ac_link") 2>conftest.er1
7059 ac_status=$?
7060 grep -v '^ *+' conftest.er1 >conftest.err
7061 rm -f conftest.er1
7062 cat conftest.err >&5
7063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064 (exit $ac_status); } && {
7065 test -z "$ac_c_werror_flag" ||
7066 test ! -s conftest.err
7067 } && test -s conftest$ac_exeext && {
7068 test "$cross_compiling" = yes ||
7069 $as_test_x conftest$ac_exeext
7070 }; then
5687 if ac_fn_c_try_link "$LINENO"; then :
70715688 ac_cv_lib_intl_dgettext=yes
70725689 else
7073 $as_echo "$as_me: failed program was:" >&5
7074 sed 's/^/| /' conftest.$ac_ext >&5
7075
7076 ac_cv_lib_intl_dgettext=no
7077 fi
7078
7079 rm -rf conftest.dSYM
7080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7081 conftest$ac_exeext conftest.$ac_ext
5690 ac_cv_lib_intl_dgettext=no
5691 fi
5692 rm -f core conftest.err conftest.$ac_objext \
5693 conftest$ac_exeext conftest.$ac_ext
70825694 LIBS=$ac_check_lib_save_LIBS
70835695 fi
7084 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
70855697 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
7086 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then
5698 if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
70875699 gt_cv_func_dgettext_libintl=yes
70885700 fi
70895701
70935705
70945706
70955707 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
7096 { $as_echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -liconv is needed to use gettext" >&5
70975709 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
7098 { $as_echo "$as_me:$LINENO: result: " >&5
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
70995711 $as_echo "" >&6; }
7100 { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
71015713 $as_echo_n "checking for ngettext in -lintl... " >&6; }
7102 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
5714 if ${ac_cv_lib_intl_ngettext+:} false; then :
71035715 $as_echo_n "(cached) " >&6
71045716 else
71055717 ac_check_lib_save_LIBS=$LIBS
71065718 LIBS="-lintl -liconv $LIBS"
7107 cat >conftest.$ac_ext <<_ACEOF
7108 /* confdefs.h. */
7109 _ACEOF
7110 cat confdefs.h >>conftest.$ac_ext
7111 cat >>conftest.$ac_ext <<_ACEOF
5719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71125720 /* end confdefs.h. */
71135721
71145722 /* Override any GCC internal prototype to avoid an error.
71265734 return 0;
71275735 }
71285736 _ACEOF
7129 rm -f conftest.$ac_objext conftest$ac_exeext
7130 if { (ac_try="$ac_link"
7131 case "(($ac_try" in
7132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7133 *) ac_try_echo=$ac_try;;
7134 esac
7135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7136 $as_echo "$ac_try_echo") >&5
7137 (eval "$ac_link") 2>conftest.er1
7138 ac_status=$?
7139 grep -v '^ *+' conftest.er1 >conftest.err
7140 rm -f conftest.er1
7141 cat conftest.err >&5
7142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143 (exit $ac_status); } && {
7144 test -z "$ac_c_werror_flag" ||
7145 test ! -s conftest.err
7146 } && test -s conftest$ac_exeext && {
7147 test "$cross_compiling" = yes ||
7148 $as_test_x conftest$ac_exeext
7149 }; then
5737 if ac_fn_c_try_link "$LINENO"; then :
71505738 ac_cv_lib_intl_ngettext=yes
71515739 else
7152 $as_echo "$as_me: failed program was:" >&5
7153 sed 's/^/| /' conftest.$ac_ext >&5
7154
7155 ac_cv_lib_intl_ngettext=no
7156 fi
7157
7158 rm -rf conftest.dSYM
7159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7160 conftest$ac_exeext conftest.$ac_ext
5740 ac_cv_lib_intl_ngettext=no
5741 fi
5742 rm -f core conftest.err conftest.$ac_objext \
5743 conftest$ac_exeext conftest.$ac_ext
71615744 LIBS=$ac_check_lib_save_LIBS
71625745 fi
7163 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
71645747 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
7165 if test "x$ac_cv_lib_intl_ngettext" = x""yes; then
7166 { $as_echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
5748 if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5
71675750 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
7168 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
5751 if ${ac_cv_lib_intl_dcgettext+:} false; then :
71695752 $as_echo_n "(cached) " >&6
71705753 else
71715754 ac_check_lib_save_LIBS=$LIBS
71725755 LIBS="-lintl -liconv $LIBS"
7173 cat >conftest.$ac_ext <<_ACEOF
7174 /* confdefs.h. */
7175 _ACEOF
7176 cat confdefs.h >>conftest.$ac_ext
7177 cat >>conftest.$ac_ext <<_ACEOF
5756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71785757 /* end confdefs.h. */
71795758
71805759 /* Override any GCC internal prototype to avoid an error.
71925771 return 0;
71935772 }
71945773 _ACEOF
7195 rm -f conftest.$ac_objext conftest$ac_exeext
7196 if { (ac_try="$ac_link"
7197 case "(($ac_try" in
7198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7199 *) ac_try_echo=$ac_try;;
7200 esac
7201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7202 $as_echo "$ac_try_echo") >&5
7203 (eval "$ac_link") 2>conftest.er1
7204 ac_status=$?
7205 grep -v '^ *+' conftest.er1 >conftest.err
7206 rm -f conftest.er1
7207 cat conftest.err >&5
7208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209 (exit $ac_status); } && {
7210 test -z "$ac_c_werror_flag" ||
7211 test ! -s conftest.err
7212 } && test -s conftest$ac_exeext && {
7213 test "$cross_compiling" = yes ||
7214 $as_test_x conftest$ac_exeext
7215 }; then
5774 if ac_fn_c_try_link "$LINENO"; then :
72165775 ac_cv_lib_intl_dcgettext=yes
72175776 else
7218 $as_echo "$as_me: failed program was:" >&5
7219 sed 's/^/| /' conftest.$ac_ext >&5
7220
7221 ac_cv_lib_intl_dcgettext=no
7222 fi
7223
7224 rm -rf conftest.dSYM
7225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7226 conftest$ac_exeext conftest.$ac_ext
5777 ac_cv_lib_intl_dcgettext=no
5778 fi
5779 rm -f core conftest.err conftest.$ac_objext \
5780 conftest$ac_exeext conftest.$ac_ext
72275781 LIBS=$ac_check_lib_save_LIBS
72285782 fi
7229 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5
72305784 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
7231 if test "x$ac_cv_lib_intl_dcgettext" = x""yes; then
5785 if test "x$ac_cv_lib_intl_dcgettext" = xyes; then :
72325786 gt_cv_func_dgettext_libintl=yes
72335787 libintl_extra_libs=-liconv
72345788 else
72505804 glib_save_LIBS="$LIBS"
72515805 LIBS="$LIBS -lintl $libintl_extra_libs"
72525806 unset ac_cv_func_bind_textdomain_codeset
7253
7254 for ac_func in bind_textdomain_codeset
7255 do
7256 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7257 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7258 $as_echo_n "checking for $ac_func... " >&6; }
7259 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7260 $as_echo_n "(cached) " >&6
7261 else
7262 cat >conftest.$ac_ext <<_ACEOF
7263 /* confdefs.h. */
7264 _ACEOF
7265 cat confdefs.h >>conftest.$ac_ext
7266 cat >>conftest.$ac_ext <<_ACEOF
7267 /* end confdefs.h. */
7268 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7269 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7270 #define $ac_func innocuous_$ac_func
7271
7272 /* System header to define __stub macros and hopefully few prototypes,
7273 which can conflict with char $ac_func (); below.
7274 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7275 <limits.h> exists even on freestanding compilers. */
7276
7277 #ifdef __STDC__
7278 # include <limits.h>
7279 #else
7280 # include <assert.h>
7281 #endif
7282
7283 #undef $ac_func
7284
7285 /* Override any GCC internal prototype to avoid an error.
7286 Use char because int might match the return type of a GCC
7287 builtin and then its argument prototype would still apply. */
7288 #ifdef __cplusplus
7289 extern "C"
7290 #endif
7291 char $ac_func ();
7292 /* The GNU C library defines this for functions which it implements
7293 to always fail with ENOSYS. Some functions are actually named
7294 something starting with __ and the normal name is an alias. */
7295 #if defined __stub_$ac_func || defined __stub___$ac_func
7296 choke me
7297 #endif
7298
7299 int
7300 main ()
7301 {
7302 return $ac_func ();
7303 ;
7304 return 0;
7305 }
7306 _ACEOF
7307 rm -f conftest.$ac_objext conftest$ac_exeext
7308 if { (ac_try="$ac_link"
7309 case "(($ac_try" in
7310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7311 *) ac_try_echo=$ac_try;;
7312 esac
7313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7314 $as_echo "$ac_try_echo") >&5
7315 (eval "$ac_link") 2>conftest.er1
7316 ac_status=$?
7317 grep -v '^ *+' conftest.er1 >conftest.err
7318 rm -f conftest.er1
7319 cat conftest.err >&5
7320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321 (exit $ac_status); } && {
7322 test -z "$ac_c_werror_flag" ||
7323 test ! -s conftest.err
7324 } && test -s conftest$ac_exeext && {
7325 test "$cross_compiling" = yes ||
7326 $as_test_x conftest$ac_exeext
7327 }; then
7328 eval "$as_ac_var=yes"
7329 else
7330 $as_echo "$as_me: failed program was:" >&5
7331 sed 's/^/| /' conftest.$ac_ext >&5
7332
7333 eval "$as_ac_var=no"
7334 fi
7335
7336 rm -rf conftest.dSYM
7337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7338 conftest$ac_exeext conftest.$ac_ext
7339 fi
7340 ac_res=`eval 'as_val=${'$as_ac_var'}
7341 $as_echo "$as_val"'`
7342 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7343 $as_echo "$ac_res" >&6; }
7344 as_val=`eval 'as_val=${'$as_ac_var'}
7345 $as_echo "$as_val"'`
7346 if test "x$as_val" = x""yes; then
5807 for ac_func in bind_textdomain_codeset
5808 do :
5809 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
5810 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
73475811 cat >>confdefs.h <<_ACEOF
7348 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5812 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
73495813 _ACEOF
73505814
73515815 fi
73755839
73765840 if test "$gt_cv_have_gettext" = "yes"; then
73775841
7378 cat >>confdefs.h <<\_ACEOF
7379 #define HAVE_GETTEXT 1
7380 _ACEOF
5842 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
73815843
73825844 # Extract the first word of "msgfmt", so it can be a program name with args.
73835845 set dummy msgfmt; ac_word=$2
7384 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
73855847 $as_echo_n "checking for $ac_word... " >&6; }
7386 if test "${ac_cv_path_MSGFMT+set}" = set; then
5848 if ${ac_cv_path_MSGFMT+:} false; then :
73875849 $as_echo_n "(cached) " >&6
73885850 else
73895851 case "$MSGFMT" in
74085870 fi
74095871 MSGFMT="$ac_cv_path_MSGFMT"
74105872 if test "$MSGFMT" != "no"; then
7411 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
74125874 $as_echo "$MSGFMT" >&6; }
74135875 else
7414 { $as_echo "$as_me:$LINENO: result: no" >&5
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
74155877 $as_echo "no" >&6; }
74165878 fi
74175879 if test "$MSGFMT" != "no"; then
74185880 glib_save_LIBS="$LIBS"
74195881 LIBS="$LIBS $INTLLIBS"
7420
7421 for ac_func in dcgettext
7422 do
7423 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7424 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7425 $as_echo_n "checking for $ac_func... " >&6; }
7426 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7427 $as_echo_n "(cached) " >&6
7428 else
7429 cat >conftest.$ac_ext <<_ACEOF
7430 /* confdefs.h. */
7431 _ACEOF
7432 cat confdefs.h >>conftest.$ac_ext
7433 cat >>conftest.$ac_ext <<_ACEOF
7434 /* end confdefs.h. */
7435 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7436 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7437 #define $ac_func innocuous_$ac_func
7438
7439 /* System header to define __stub macros and hopefully few prototypes,
7440 which can conflict with char $ac_func (); below.
7441 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7442 <limits.h> exists even on freestanding compilers. */
7443
7444 #ifdef __STDC__
7445 # include <limits.h>
7446 #else
7447 # include <assert.h>
7448 #endif
7449
7450 #undef $ac_func
7451
7452 /* Override any GCC internal prototype to avoid an error.
7453 Use char because int might match the return type of a GCC
7454 builtin and then its argument prototype would still apply. */
7455 #ifdef __cplusplus
7456 extern "C"
7457 #endif
7458 char $ac_func ();
7459 /* The GNU C library defines this for functions which it implements
7460 to always fail with ENOSYS. Some functions are actually named
7461 something starting with __ and the normal name is an alias. */
7462 #if defined __stub_$ac_func || defined __stub___$ac_func
7463 choke me
7464 #endif
7465
7466 int
7467 main ()
7468 {
7469 return $ac_func ();
7470 ;
7471 return 0;
7472 }
7473 _ACEOF
7474 rm -f conftest.$ac_objext conftest$ac_exeext
7475 if { (ac_try="$ac_link"
7476 case "(($ac_try" in
7477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7478 *) ac_try_echo=$ac_try;;
7479 esac
7480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7481 $as_echo "$ac_try_echo") >&5
7482 (eval "$ac_link") 2>conftest.er1
7483 ac_status=$?
7484 grep -v '^ *+' conftest.er1 >conftest.err
7485 rm -f conftest.er1
7486 cat conftest.err >&5
7487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488 (exit $ac_status); } && {
7489 test -z "$ac_c_werror_flag" ||
7490 test ! -s conftest.err
7491 } && test -s conftest$ac_exeext && {
7492 test "$cross_compiling" = yes ||
7493 $as_test_x conftest$ac_exeext
7494 }; then
7495 eval "$as_ac_var=yes"
7496 else
7497 $as_echo "$as_me: failed program was:" >&5
7498 sed 's/^/| /' conftest.$ac_ext >&5
7499
7500 eval "$as_ac_var=no"
7501 fi
7502
7503 rm -rf conftest.dSYM
7504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7505 conftest$ac_exeext conftest.$ac_ext
7506 fi
7507 ac_res=`eval 'as_val=${'$as_ac_var'}
7508 $as_echo "$as_val"'`
7509 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7510 $as_echo "$ac_res" >&6; }
7511 as_val=`eval 'as_val=${'$as_ac_var'}
7512 $as_echo "$as_val"'`
7513 if test "x$as_val" = x""yes; then
5882 for ac_func in dcgettext
5883 do :
5884 ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext"
5885 if test "x$ac_cv_func_dcgettext" = xyes; then :
75145886 cat >>confdefs.h <<_ACEOF
7515 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5887 #define HAVE_DCGETTEXT 1
75165888 _ACEOF
75175889
75185890 fi
75195891 done
75205892
75215893 MSGFMT_OPTS=
7522 { $as_echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt accepts -c" >&5
75235895 $as_echo_n "checking if msgfmt accepts -c... " >&6; }
75245896 cat >conftest.foo <<_ACEOF
75255897
75345906 "Content-Transfer-Encoding: 8bit\n"
75355907
75365908 _ACEOF
7537 if { ($as_echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
5909 if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$MSGFMT -c -o /dev/null conftest.foo"; } >&5
75385910 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
75395911 ac_status=$?
7540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541 (exit $ac_status); }; then
7542 MSGFMT_OPTS=-c; { $as_echo "$as_me:$LINENO: result: yes" >&5
5912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5913 test $ac_status = 0; }; then
5914 MSGFMT_OPTS=-c; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
75435915 $as_echo "yes" >&6; }
7544 else { $as_echo "$as_me:$LINENO: result: no" >&5
5916 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
75455917 $as_echo "no" >&6; }
75465918 echo "$as_me: failed input was:" >&5
75475919 sed 's/^/| /' conftest.foo >&5
75495921
75505922 # Extract the first word of "gmsgfmt", so it can be a program name with args.
75515923 set dummy gmsgfmt; ac_word=$2
7552 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
75535925 $as_echo_n "checking for $ac_word... " >&6; }
7554 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5926 if ${ac_cv_path_GMSGFMT+:} false; then :
75555927 $as_echo_n "(cached) " >&6
75565928 else
75575929 case $GMSGFMT in
75645936 do
75655937 IFS=$as_save_IFS
75665938 test -z "$as_dir" && as_dir=.
7567 for ac_exec_ext in '' $ac_executable_extensions; do
5939 for ac_exec_ext in '' $ac_executable_extensions; do
75685940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
75695941 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7570 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
75715943 break 2
75725944 fi
75735945 done
7574 done
5946 done
75755947 IFS=$as_save_IFS
75765948
75775949 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
75805952 fi
75815953 GMSGFMT=$ac_cv_path_GMSGFMT
75825954 if test -n "$GMSGFMT"; then
7583 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
75845956 $as_echo "$GMSGFMT" >&6; }
75855957 else
7586 { $as_echo "$as_me:$LINENO: result: no" >&5
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
75875959 $as_echo "no" >&6; }
75885960 fi
75895961
75905962
75915963 # Extract the first word of "xgettext", so it can be a program name with args.
75925964 set dummy xgettext; ac_word=$2
7593 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
75945966 $as_echo_n "checking for $ac_word... " >&6; }
7595 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5967 if ${ac_cv_path_XGETTEXT+:} false; then :
75965968 $as_echo_n "(cached) " >&6
75975969 else
75985970 case "$XGETTEXT" in
76175989 fi
76185990 XGETTEXT="$ac_cv_path_XGETTEXT"
76195991 if test "$XGETTEXT" != ":"; then
7620 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
76215993 $as_echo "$XGETTEXT" >&6; }
76225994 else
7623 { $as_echo "$as_me:$LINENO: result: no" >&5
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
76245996 $as_echo "no" >&6; }
76255997 fi
76265998
7627 cat >conftest.$ac_ext <<_ACEOF
7628 /* confdefs.h. */
7629 _ACEOF
7630 cat confdefs.h >>conftest.$ac_ext
7631 cat >>conftest.$ac_ext <<_ACEOF
5999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
76326000 /* end confdefs.h. */
76336001
76346002 int
76406008 return 0;
76416009 }
76426010 _ACEOF
7643 rm -f conftest.$ac_objext conftest$ac_exeext
7644 if { (ac_try="$ac_link"
7645 case "(($ac_try" in
7646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7647 *) ac_try_echo=$ac_try;;
7648 esac
7649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7650 $as_echo "$ac_try_echo") >&5
7651 (eval "$ac_link") 2>conftest.er1
7652 ac_status=$?
7653 grep -v '^ *+' conftest.er1 >conftest.err
7654 rm -f conftest.er1
7655 cat conftest.err >&5
7656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657 (exit $ac_status); } && {
7658 test -z "$ac_c_werror_flag" ||
7659 test ! -s conftest.err
7660 } && test -s conftest$ac_exeext && {
7661 test "$cross_compiling" = yes ||
7662 $as_test_x conftest$ac_exeext
7663 }; then
6011 if ac_fn_c_try_link "$LINENO"; then :
76646012 CATOBJEXT=.gmo
76656013 DATADIRNAME=share
76666014 else
7667 $as_echo "$as_me: failed program was:" >&5
7668 sed 's/^/| /' conftest.$ac_ext >&5
7669
7670 case $host in
6015 case $host in
76716016 *-*-solaris*)
7672 { $as_echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
7673 $as_echo_n "checking for bind_textdomain_codeset... " >&6; }
7674 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
7675 $as_echo_n "(cached) " >&6
7676 else
7677 cat >conftest.$ac_ext <<_ACEOF
7678 /* confdefs.h. */
7679 _ACEOF
7680 cat confdefs.h >>conftest.$ac_ext
7681 cat >>conftest.$ac_ext <<_ACEOF
7682 /* end confdefs.h. */
7683 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
7684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7685 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
7686
7687 /* System header to define __stub macros and hopefully few prototypes,
7688 which can conflict with char bind_textdomain_codeset (); below.
7689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7690 <limits.h> exists even on freestanding compilers. */
7691
7692 #ifdef __STDC__
7693 # include <limits.h>
7694 #else
7695 # include <assert.h>
7696 #endif
7697
7698 #undef bind_textdomain_codeset
7699
7700 /* Override any GCC internal prototype to avoid an error.
7701 Use char because int might match the return type of a GCC
7702 builtin and then its argument prototype would still apply. */
7703 #ifdef __cplusplus
7704 extern "C"
7705 #endif
7706 char bind_textdomain_codeset ();
7707 /* The GNU C library defines this for functions which it implements
7708 to always fail with ENOSYS. Some functions are actually named
7709 something starting with __ and the normal name is an alias. */
7710 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
7711 choke me
7712 #endif
7713
7714 int
7715 main ()
7716 {
7717 return bind_textdomain_codeset ();
7718 ;
7719 return 0;
7720 }
7721 _ACEOF
7722 rm -f conftest.$ac_objext conftest$ac_exeext
7723 if { (ac_try="$ac_link"
7724 case "(($ac_try" in
7725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7726 *) ac_try_echo=$ac_try;;
7727 esac
7728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7729 $as_echo "$ac_try_echo") >&5
7730 (eval "$ac_link") 2>conftest.er1
7731 ac_status=$?
7732 grep -v '^ *+' conftest.er1 >conftest.err
7733 rm -f conftest.er1
7734 cat conftest.err >&5
7735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736 (exit $ac_status); } && {
7737 test -z "$ac_c_werror_flag" ||
7738 test ! -s conftest.err
7739 } && test -s conftest$ac_exeext && {
7740 test "$cross_compiling" = yes ||
7741 $as_test_x conftest$ac_exeext
7742 }; then
7743 ac_cv_func_bind_textdomain_codeset=yes
7744 else
7745 $as_echo "$as_me: failed program was:" >&5
7746 sed 's/^/| /' conftest.$ac_ext >&5
7747
7748 ac_cv_func_bind_textdomain_codeset=no
7749 fi
7750
7751 rm -rf conftest.dSYM
7752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7753 conftest$ac_exeext conftest.$ac_ext
7754 fi
7755 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
7756 $as_echo "$ac_cv_func_bind_textdomain_codeset" >&6; }
7757 if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then
6017 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
6018 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
77586019 CATOBJEXT=.gmo
77596020 DATADIRNAME=share
77606021 else
77696030 ;;
77706031 esac
77716032 fi
7772
7773 rm -rf conftest.dSYM
7774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7775 conftest$ac_exeext conftest.$ac_ext
6033 rm -f core conftest.err conftest.$ac_objext \
6034 conftest$ac_exeext conftest.$ac_ext
77766035 LIBS="$glib_save_LIBS"
77776036 INSTOBJEXT=.mo
77786037 else
77866045
77876046 if test "$gt_cv_have_gettext" = "yes" ; then
77886047
7789 cat >>confdefs.h <<\_ACEOF
7790 #define ENABLE_NLS 1
7791 _ACEOF
6048 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
77926049
77936050 fi
77946051
77966053 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
77976054 : ;
77986055 else
7799 { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
78006057 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
78016058 XGETTEXT=":"
78026059 fi
78296086 if test "x$ALL_LINGUAS" = "x"; then
78306087 LINGUAS=
78316088 else
7832 { $as_echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
78336090 $as_echo_n "checking for catalogs to be installed... " >&6; }
78346091 NEW_LINGUAS=
78356092 for presentlang in $ALL_LINGUAS; do
78546111 fi
78556112 done
78566113 LINGUAS=$NEW_LINGUAS
7857 { $as_echo "$as_me:$LINENO: result: $LINGUAS" >&5
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
78586115 $as_echo "$LINGUAS" >&6; }
78596116 fi
78606117
79026159 fi
79036160
79046161
7905
7906
7907
7908
7909
79106162 ac_header_dirent=no
79116163 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
79126164 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7913 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
79146166 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
7915 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6167 if eval \${$as_ac_Header+:} false; then :
79166168 $as_echo_n "(cached) " >&6
79176169 else
7918 cat >conftest.$ac_ext <<_ACEOF
7919 /* confdefs.h. */
7920 _ACEOF
7921 cat confdefs.h >>conftest.$ac_ext
7922 cat >>conftest.$ac_ext <<_ACEOF
6170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79236171 /* end confdefs.h. */
79246172 #include <sys/types.h>
79256173 #include <$ac_hdr>
79336181 return 0;
79346182 }
79356183 _ACEOF
7936 rm -f conftest.$ac_objext
7937 if { (ac_try="$ac_compile"
7938 case "(($ac_try" in
7939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7940 *) ac_try_echo=$ac_try;;
7941 esac
7942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7943 $as_echo "$ac_try_echo") >&5
7944 (eval "$ac_compile") 2>conftest.er1
7945 ac_status=$?
7946 grep -v '^ *+' conftest.er1 >conftest.err
7947 rm -f conftest.er1
7948 cat conftest.err >&5
7949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950 (exit $ac_status); } && {
7951 test -z "$ac_c_werror_flag" ||
7952 test ! -s conftest.err
7953 } && test -s conftest.$ac_objext; then
6184 if ac_fn_c_try_compile "$LINENO"; then :
79546185 eval "$as_ac_Header=yes"
79556186 else
7956 $as_echo "$as_me: failed program was:" >&5
7957 sed 's/^/| /' conftest.$ac_ext >&5
7958
7959 eval "$as_ac_Header=no"
7960 fi
7961
6187 eval "$as_ac_Header=no"
6188 fi
79626189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
79636190 fi
7964 ac_res=`eval 'as_val=${'$as_ac_Header'}
7965 $as_echo "$as_val"'`
7966 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6191 eval ac_res=\$$as_ac_Header
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
79676193 $as_echo "$ac_res" >&6; }
7968 as_val=`eval 'as_val=${'$as_ac_Header'}
7969 $as_echo "$as_val"'`
7970 if test "x$as_val" = x""yes; then
6194 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
79716195 cat >>confdefs.h <<_ACEOF
79726196 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
79736197 _ACEOF
79786202 done
79796203 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
79806204 if test $ac_header_dirent = dirent.h; then
7981 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
79826206 $as_echo_n "checking for library containing opendir... " >&6; }
7983 if test "${ac_cv_search_opendir+set}" = set; then
6207 if ${ac_cv_search_opendir+:} false; then :
79846208 $as_echo_n "(cached) " >&6
79856209 else
79866210 ac_func_search_save_LIBS=$LIBS
7987 cat >conftest.$ac_ext <<_ACEOF
7988 /* confdefs.h. */
7989 _ACEOF
7990 cat confdefs.h >>conftest.$ac_ext
7991 cat >>conftest.$ac_ext <<_ACEOF
6211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79926212 /* end confdefs.h. */
79936213
79946214 /* Override any GCC internal prototype to avoid an error.
80136233 ac_res=-l$ac_lib
80146234 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
80156235 fi
8016 rm -f conftest.$ac_objext conftest$ac_exeext
8017 if { (ac_try="$ac_link"
8018 case "(($ac_try" in
8019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8020 *) ac_try_echo=$ac_try;;
8021 esac
8022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8023 $as_echo "$ac_try_echo") >&5
8024 (eval "$ac_link") 2>conftest.er1
8025 ac_status=$?
8026 grep -v '^ *+' conftest.er1 >conftest.err
8027 rm -f conftest.er1
8028 cat conftest.err >&5
8029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030 (exit $ac_status); } && {
8031 test -z "$ac_c_werror_flag" ||
8032 test ! -s conftest.err
8033 } && test -s conftest$ac_exeext && {
8034 test "$cross_compiling" = yes ||
8035 $as_test_x conftest$ac_exeext
8036 }; then
6236 if ac_fn_c_try_link "$LINENO"; then :
80376237 ac_cv_search_opendir=$ac_res
8038 else
8039 $as_echo "$as_me: failed program was:" >&5
8040 sed 's/^/| /' conftest.$ac_ext >&5
8041
8042
8043 fi
8044
8045 rm -rf conftest.dSYM
8046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8047 conftest$ac_exeext
8048 if test "${ac_cv_search_opendir+set}" = set; then
6238 fi
6239 rm -f core conftest.err conftest.$ac_objext \
6240 conftest$ac_exeext
6241 if ${ac_cv_search_opendir+:} false; then :
80496242 break
80506243 fi
80516244 done
8052 if test "${ac_cv_search_opendir+set}" = set; then
8053 :
6245 if ${ac_cv_search_opendir+:} false; then :
6246
80546247 else
80556248 ac_cv_search_opendir=no
80566249 fi
80576250 rm conftest.$ac_ext
80586251 LIBS=$ac_func_search_save_LIBS
80596252 fi
8060 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
80616254 $as_echo "$ac_cv_search_opendir" >&6; }
80626255 ac_res=$ac_cv_search_opendir
8063 if test "$ac_res" != no; then
6256 if test "$ac_res" != no; then :
80646257 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
80656258
80666259 fi
80676260
80686261 else
8069 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
80706263 $as_echo_n "checking for library containing opendir... " >&6; }
8071 if test "${ac_cv_search_opendir+set}" = set; then
6264 if ${ac_cv_search_opendir+:} false; then :
80726265 $as_echo_n "(cached) " >&6
80736266 else
80746267 ac_func_search_save_LIBS=$LIBS
8075 cat >conftest.$ac_ext <<_ACEOF
8076 /* confdefs.h. */
8077 _ACEOF
8078 cat confdefs.h >>conftest.$ac_ext
8079 cat >>conftest.$ac_ext <<_ACEOF
6268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
80806269 /* end confdefs.h. */
80816270
80826271 /* Override any GCC internal prototype to avoid an error.
81016290 ac_res=-l$ac_lib
81026291 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81036292 fi
8104 rm -f conftest.$ac_objext conftest$ac_exeext
8105 if { (ac_try="$ac_link"
8106 case "(($ac_try" in
8107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8108 *) ac_try_echo=$ac_try;;
8109 esac
8110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8111 $as_echo "$ac_try_echo") >&5
8112 (eval "$ac_link") 2>conftest.er1
8113 ac_status=$?
8114 grep -v '^ *+' conftest.er1 >conftest.err
8115 rm -f conftest.er1
8116 cat conftest.err >&5
8117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118 (exit $ac_status); } && {
8119 test -z "$ac_c_werror_flag" ||
8120 test ! -s conftest.err
8121 } && test -s conftest$ac_exeext && {
8122 test "$cross_compiling" = yes ||
8123 $as_test_x conftest$ac_exeext
8124 }; then
6293 if ac_fn_c_try_link "$LINENO"; then :
81256294 ac_cv_search_opendir=$ac_res
8126 else
8127 $as_echo "$as_me: failed program was:" >&5
8128 sed 's/^/| /' conftest.$ac_ext >&5
8129
8130
8131 fi
8132
8133 rm -rf conftest.dSYM
8134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8135 conftest$ac_exeext
8136 if test "${ac_cv_search_opendir+set}" = set; then
6295 fi
6296 rm -f core conftest.err conftest.$ac_objext \
6297 conftest$ac_exeext
6298 if ${ac_cv_search_opendir+:} false; then :
81376299 break
81386300 fi
81396301 done
8140 if test "${ac_cv_search_opendir+set}" = set; then
8141 :
6302 if ${ac_cv_search_opendir+:} false; then :
6303
81426304 else
81436305 ac_cv_search_opendir=no
81446306 fi
81456307 rm conftest.$ac_ext
81466308 LIBS=$ac_func_search_save_LIBS
81476309 fi
8148 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
81496311 $as_echo "$ac_cv_search_opendir" >&6; }
81506312 ac_res=$ac_cv_search_opendir
8151 if test "$ac_res" != no; then
6313 if test "$ac_res" != no; then :
81526314 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
81536315
81546316 fi
81556317
81566318 fi
81576319
8158 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
81596321 $as_echo_n "checking for ANSI C header files... " >&6; }
8160 if test "${ac_cv_header_stdc+set}" = set; then
6322 if ${ac_cv_header_stdc+:} false; then :
81616323 $as_echo_n "(cached) " >&6
81626324 else
8163 cat >conftest.$ac_ext <<_ACEOF
8164 /* confdefs.h. */
8165 _ACEOF
8166 cat confdefs.h >>conftest.$ac_ext
8167 cat >>conftest.$ac_ext <<_ACEOF
6325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81686326 /* end confdefs.h. */
81696327 #include <stdlib.h>
81706328 #include <stdarg.h>
81796337 return 0;
81806338 }
81816339 _ACEOF
8182 rm -f conftest.$ac_objext
8183 if { (ac_try="$ac_compile"
8184 case "(($ac_try" in
8185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8186 *) ac_try_echo=$ac_try;;
8187 esac
8188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8189 $as_echo "$ac_try_echo") >&5
8190 (eval "$ac_compile") 2>conftest.er1
8191 ac_status=$?
8192 grep -v '^ *+' conftest.er1 >conftest.err
8193 rm -f conftest.er1
8194 cat conftest.err >&5
8195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); } && {
8197 test -z "$ac_c_werror_flag" ||
8198 test ! -s conftest.err
8199 } && test -s conftest.$ac_objext; then
6340 if ac_fn_c_try_compile "$LINENO"; then :
82006341 ac_cv_header_stdc=yes
82016342 else
8202 $as_echo "$as_me: failed program was:" >&5
8203 sed 's/^/| /' conftest.$ac_ext >&5
8204
8205 ac_cv_header_stdc=no
8206 fi
8207
6343 ac_cv_header_stdc=no
6344 fi
82086345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
82096346
82106347 if test $ac_cv_header_stdc = yes; then
82116348 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8212 cat >conftest.$ac_ext <<_ACEOF
8213 /* confdefs.h. */
8214 _ACEOF
8215 cat confdefs.h >>conftest.$ac_ext
8216 cat >>conftest.$ac_ext <<_ACEOF
6349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
82176350 /* end confdefs.h. */
82186351 #include <string.h>
82196352
82206353 _ACEOF
82216354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8222 $EGREP "memchr" >/dev/null 2>&1; then
8223 :
6355 $EGREP "memchr" >/dev/null 2>&1; then :
6356
82246357 else
82256358 ac_cv_header_stdc=no
82266359 fi
82306363
82316364 if test $ac_cv_header_stdc = yes; then
82326365 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8233 cat >conftest.$ac_ext <<_ACEOF
8234 /* confdefs.h. */
8235 _ACEOF
8236 cat confdefs.h >>conftest.$ac_ext
8237 cat >>conftest.$ac_ext <<_ACEOF
6366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
82386367 /* end confdefs.h. */
82396368 #include <stdlib.h>
82406369
82416370 _ACEOF
82426371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8243 $EGREP "free" >/dev/null 2>&1; then
8244 :
6372 $EGREP "free" >/dev/null 2>&1; then :
6373
82456374 else
82466375 ac_cv_header_stdc=no
82476376 fi
82516380
82526381 if test $ac_cv_header_stdc = yes; then
82536382 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8254 if test "$cross_compiling" = yes; then
6383 if test "$cross_compiling" = yes; then :
82556384 :
82566385 else
8257 cat >conftest.$ac_ext <<_ACEOF
8258 /* confdefs.h. */
8259 _ACEOF
8260 cat confdefs.h >>conftest.$ac_ext
8261 cat >>conftest.$ac_ext <<_ACEOF
6386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
82626387 /* end confdefs.h. */
82636388 #include <ctype.h>
82646389 #include <stdlib.h>
82856410 return 0;
82866411 }
82876412 _ACEOF
8288 rm -f conftest$ac_exeext
8289 if { (ac_try="$ac_link"
8290 case "(($ac_try" in
8291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8292 *) ac_try_echo=$ac_try;;
8293 esac
8294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8295 $as_echo "$ac_try_echo") >&5
8296 (eval "$ac_link") 2>&5
8297 ac_status=$?
8298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8300 { (case "(($ac_try" in
8301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8302 *) ac_try_echo=$ac_try;;
8303 esac
8304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8305 $as_echo "$ac_try_echo") >&5
8306 (eval "$ac_try") 2>&5
8307 ac_status=$?
8308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309 (exit $ac_status); }; }; then
8310 :
8311 else
8312 $as_echo "$as_me: program exited with status $ac_status" >&5
8313 $as_echo "$as_me: failed program was:" >&5
8314 sed 's/^/| /' conftest.$ac_ext >&5
8315
8316 ( exit $ac_status )
8317 ac_cv_header_stdc=no
8318 fi
8319 rm -rf conftest.dSYM
8320 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8321 fi
8322
8323
8324 fi
8325 fi
8326 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6413 if ac_fn_c_try_run "$LINENO"; then :
6414
6415 else
6416 ac_cv_header_stdc=no
6417 fi
6418 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6419 conftest.$ac_objext conftest.beam conftest.$ac_ext
6420 fi
6421
6422 fi
6423 fi
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
83276425 $as_echo "$ac_cv_header_stdc" >&6; }
83286426 if test $ac_cv_header_stdc = yes; then
83296427
8330 cat >>confdefs.h <<\_ACEOF
8331 #define STDC_HEADERS 1
8332 _ACEOF
8333
8334 fi
8335
8336
8337
8338
8339
6428 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6429
6430 fi
83406431
83416432 for ac_header in malloc.h stdlib.h string.h fcntl.h inttypes.h
8342 do
8343 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8344 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8345 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8346 $as_echo_n "checking for $ac_header... " >&6; }
8347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8348 $as_echo_n "(cached) " >&6
8349 fi
8350 ac_res=`eval 'as_val=${'$as_ac_Header'}
8351 $as_echo "$as_val"'`
8352 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8353 $as_echo "$ac_res" >&6; }
8354 else
8355 # Is the header compilable?
8356 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8357 $as_echo_n "checking $ac_header usability... " >&6; }
8358 cat >conftest.$ac_ext <<_ACEOF
8359 /* confdefs.h. */
8360 _ACEOF
8361 cat confdefs.h >>conftest.$ac_ext
8362 cat >>conftest.$ac_ext <<_ACEOF
8363 /* end confdefs.h. */
8364 $ac_includes_default
8365 #include <$ac_header>
8366 _ACEOF
8367 rm -f conftest.$ac_objext
8368 if { (ac_try="$ac_compile"
8369 case "(($ac_try" in
8370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8371 *) ac_try_echo=$ac_try;;
8372 esac
8373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8374 $as_echo "$ac_try_echo") >&5
8375 (eval "$ac_compile") 2>conftest.er1
8376 ac_status=$?
8377 grep -v '^ *+' conftest.er1 >conftest.err
8378 rm -f conftest.er1
8379 cat conftest.err >&5
8380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); } && {
8382 test -z "$ac_c_werror_flag" ||
8383 test ! -s conftest.err
8384 } && test -s conftest.$ac_objext; then
8385 ac_header_compiler=yes
8386 else
8387 $as_echo "$as_me: failed program was:" >&5
8388 sed 's/^/| /' conftest.$ac_ext >&5
8389
8390 ac_header_compiler=no
8391 fi
8392
8393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8394 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8395 $as_echo "$ac_header_compiler" >&6; }
8396
8397 # Is the header present?
8398 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8399 $as_echo_n "checking $ac_header presence... " >&6; }
8400 cat >conftest.$ac_ext <<_ACEOF
8401 /* confdefs.h. */
8402 _ACEOF
8403 cat confdefs.h >>conftest.$ac_ext
8404 cat >>conftest.$ac_ext <<_ACEOF
8405 /* end confdefs.h. */
8406 #include <$ac_header>
8407 _ACEOF
8408 if { (ac_try="$ac_cpp conftest.$ac_ext"
8409 case "(($ac_try" in
8410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8411 *) ac_try_echo=$ac_try;;
8412 esac
8413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8414 $as_echo "$ac_try_echo") >&5
8415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8416 ac_status=$?
8417 grep -v '^ *+' conftest.er1 >conftest.err
8418 rm -f conftest.er1
8419 cat conftest.err >&5
8420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); } >/dev/null && {
8422 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8423 test ! -s conftest.err
8424 }; then
8425 ac_header_preproc=yes
8426 else
8427 $as_echo "$as_me: failed program was:" >&5
8428 sed 's/^/| /' conftest.$ac_ext >&5
8429
8430 ac_header_preproc=no
8431 fi
8432
8433 rm -f conftest.err conftest.$ac_ext
8434 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8435 $as_echo "$ac_header_preproc" >&6; }
8436
8437 # So? What about this header?
8438 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8439 yes:no: )
8440 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8441 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8442 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8443 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8444 ac_header_preproc=yes
8445 ;;
8446 no:yes:* )
8447 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8448 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8449 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8450 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8451 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8452 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8453 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8454 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8455 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8456 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8457 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8458 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8459 ( cat <<\_ASBOX
8460 ## ---------------------------------------------------------------------------------- ##
8461 ## Report this to http://sourceforge.net/tracker/?func=add&group_id=65573&atid=511470 ##
8462 ## ---------------------------------------------------------------------------------- ##
8463 _ASBOX
8464 ) | sed "s/^/$as_me: WARNING: /" >&2
8465 ;;
8466 esac
8467 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8468 $as_echo_n "checking for $ac_header... " >&6; }
8469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8470 $as_echo_n "(cached) " >&6
8471 else
8472 eval "$as_ac_Header=\$ac_header_preproc"
8473 fi
8474 ac_res=`eval 'as_val=${'$as_ac_Header'}
8475 $as_echo "$as_val"'`
8476 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8477 $as_echo "$ac_res" >&6; }
8478
8479 fi
8480 as_val=`eval 'as_val=${'$as_ac_Header'}
8481 $as_echo "$as_val"'`
8482 if test "x$as_val" = x""yes; then
6433 do :
6434 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6435 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6436 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
84836437 cat >>confdefs.h <<_ACEOF
84846438 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
84856439 _ACEOF
84886442
84896443 done
84906444
8491
84926445 for ac_func in chdir
8493 do
8494 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8495 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8496 $as_echo_n "checking for $ac_func... " >&6; }
8497 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8498 $as_echo_n "(cached) " >&6
8499 else
8500 cat >conftest.$ac_ext <<_ACEOF
8501 /* confdefs.h. */
8502 _ACEOF
8503 cat confdefs.h >>conftest.$ac_ext
8504 cat >>conftest.$ac_ext <<_ACEOF
8505 /* end confdefs.h. */
8506 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8508 #define $ac_func innocuous_$ac_func
8509
8510 /* System header to define __stub macros and hopefully few prototypes,
8511 which can conflict with char $ac_func (); below.
8512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8513 <limits.h> exists even on freestanding compilers. */
8514
8515 #ifdef __STDC__
8516 # include <limits.h>
8517 #else
8518 # include <assert.h>
8519 #endif
8520
8521 #undef $ac_func
8522
8523 /* Override any GCC internal prototype to avoid an error.
8524 Use char because int might match the return type of a GCC
8525 builtin and then its argument prototype would still apply. */
8526 #ifdef __cplusplus
8527 extern "C"
8528 #endif
8529 char $ac_func ();
8530 /* The GNU C library defines this for functions which it implements
8531 to always fail with ENOSYS. Some functions are actually named
8532 something starting with __ and the normal name is an alias. */
8533 #if defined __stub_$ac_func || defined __stub___$ac_func
8534 choke me
8535 #endif
8536
8537 int
8538 main ()
8539 {
8540 return $ac_func ();
8541 ;
8542 return 0;
8543 }
8544 _ACEOF
8545 rm -f conftest.$ac_objext conftest$ac_exeext
8546 if { (ac_try="$ac_link"
8547 case "(($ac_try" in
8548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8549 *) ac_try_echo=$ac_try;;
8550 esac
8551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8552 $as_echo "$ac_try_echo") >&5
8553 (eval "$ac_link") 2>conftest.er1
8554 ac_status=$?
8555 grep -v '^ *+' conftest.er1 >conftest.err
8556 rm -f conftest.er1
8557 cat conftest.err >&5
8558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); } && {
8560 test -z "$ac_c_werror_flag" ||
8561 test ! -s conftest.err
8562 } && test -s conftest$ac_exeext && {
8563 test "$cross_compiling" = yes ||
8564 $as_test_x conftest$ac_exeext
8565 }; then
8566 eval "$as_ac_var=yes"
8567 else
8568 $as_echo "$as_me: failed program was:" >&5
8569 sed 's/^/| /' conftest.$ac_ext >&5
8570
8571 eval "$as_ac_var=no"
8572 fi
8573
8574 rm -rf conftest.dSYM
8575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8576 conftest$ac_exeext conftest.$ac_ext
8577 fi
8578 ac_res=`eval 'as_val=${'$as_ac_var'}
8579 $as_echo "$as_val"'`
8580 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8581 $as_echo "$ac_res" >&6; }
8582 as_val=`eval 'as_val=${'$as_ac_var'}
8583 $as_echo "$as_val"'`
8584 if test "x$as_val" = x""yes; then
6446 do :
6447 ac_fn_c_check_func "$LINENO" "chdir" "ac_cv_func_chdir"
6448 if test "x$ac_cv_func_chdir" = xyes; then :
85856449 cat >>confdefs.h <<_ACEOF
8586 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6450 #define HAVE_CHDIR 1
85876451 _ACEOF
85886452
85896453 fi
86216485 case $ac_val in #(
86226486 *${as_nl}*)
86236487 case $ac_var in #(
8624 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
6488 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
86256489 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
86266490 esac
86276491 case $ac_var in #(
86286492 _ | IFS | as_nl) ;; #(
86296493 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8630 *) $as_unset $ac_var ;;
6494 *) { eval $ac_var=; unset $ac_var;} ;;
86316495 esac ;;
86326496 esac
86336497 done
86356499 (set) 2>&1 |
86366500 case $as_nl`(ac_space=' '; set) 2>&1` in #(
86376501 *${as_nl}ac_space=\ *)
8638 # `set' does not quote correctly, so add quotes (double-quote
8639 # substitution turns \\\\ into \\, and sed turns \\ into \).
6502 # `set' does not quote correctly, so add quotes: double-quote
6503 # substitution turns \\\\ into \\, and sed turns \\ into \.
86406504 sed -n \
86416505 "s/'/'\\\\''/g;
86426506 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
86586522 :end' >>confcache
86596523 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
86606524 if test -w "$cache_file"; then
8661 test "x$cache_file" != "x/dev/null" &&
8662 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
6525 if test "x$cache_file" != "x/dev/null"; then
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
86636527 $as_echo "$as_me: updating cache $cache_file" >&6;}
8664 cat confcache >$cache_file
6528 if test ! -f "$cache_file" || test -h "$cache_file"; then
6529 cat confcache >"$cache_file"
6530 else
6531 case $cache_file in #(
6532 */* | ?:*)
6533 mv -f confcache "$cache_file"$$ &&
6534 mv -f "$cache_file"$$ "$cache_file" ;; #(
6535 *)
6536 mv -f confcache "$cache_file" ;;
6537 esac
6538 fi
6539 fi
86656540 else
8666 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
86676542 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
86686543 fi
86696544 fi
87136588
87146589 ac_libobjs=
87156590 ac_ltlibobjs=
6591 U=
87166592 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
87176593 # 1. Remove the extension, and $U if already installed.
87186594 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
87196595 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
87206596 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
87216597 # will be set to the directory where LIBOBJS objects are built.
8722 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8723 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
6598 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6599 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
87246600 done
87256601 LIBOBJS=$ac_libobjs
87266602
87276603 LTLIBOBJS=$ac_ltlibobjs
87286604
87296605
6606 if test -n "$EXEEXT"; then
6607 am__EXEEXT_TRUE=
6608 am__EXEEXT_FALSE='#'
6609 else
6610 am__EXEEXT_TRUE='#'
6611 am__EXEEXT_FALSE=
6612 fi
6613
87306614 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8731 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
8732 Usually this means the macro was only invoked conditionally." >&5
8733 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
8734 Usually this means the macro was only invoked conditionally." >&2;}
8735 { (exit 1); exit 1; }; }
6615 as_fn_error $? "conditional \"AMDEP\" was never defined.
6616 Usually this means the macro was only invoked conditionally." "$LINENO" 5
87366617 fi
87376618 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8738 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
8739 Usually this means the macro was only invoked conditionally." >&5
8740 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
8741 Usually this means the macro was only invoked conditionally." >&2;}
8742 { (exit 1); exit 1; }; }
6619 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
6620 Usually this means the macro was only invoked conditionally." "$LINENO" 5
87436621 fi
87446622 if test -z "${TAGLIB_COMPILE_TRUE}" && test -z "${TAGLIB_COMPILE_FALSE}"; then
8745 { { $as_echo "$as_me:$LINENO: error: conditional \"TAGLIB_COMPILE\" was never defined.
8746 Usually this means the macro was only invoked conditionally." >&5
8747 $as_echo "$as_me: error: conditional \"TAGLIB_COMPILE\" was never defined.
8748 Usually this means the macro was only invoked conditionally." >&2;}
8749 { (exit 1); exit 1; }; }
6623 as_fn_error $? "conditional \"TAGLIB_COMPILE\" was never defined.
6624 Usually this means the macro was only invoked conditionally." "$LINENO" 5
87506625 fi
87516626
87526627 ac_config_commands="$ac_config_commands po/stamp-it"
87536628
87546629
87556630
8756 : ${CONFIG_STATUS=./config.status}
6631 : "${CONFIG_STATUS=./config.status}"
87576632 ac_write_fail=0
87586633 ac_clean_files_save=$ac_clean_files
87596634 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8760 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
87616636 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8762 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6637 as_write_fail=0
6638 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
87636639 #! $SHELL
87646640 # Generated by $as_me.
87656641 # Run this file to recreate the current configuration.
87696645 debug=false
87706646 ac_cs_recheck=false
87716647 ac_cs_silent=false
6648
87726649 SHELL=\${CONFIG_SHELL-$SHELL}
8773 _ACEOF
8774
8775 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8776 ## --------------------- ##
8777 ## M4sh Initialization. ##
8778 ## --------------------- ##
6650 export SHELL
6651 _ASEOF
6652 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6653 ## -------------------- ##
6654 ## M4sh Initialization. ##
6655 ## -------------------- ##
87796656
87806657 # Be more Bourne compatible
87816658 DUALCASE=1; export DUALCASE # for MKS sh
8782 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6659 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
87836660 emulate sh
87846661 NULLCMD=:
87856662 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
87876664 alias -g '${1+"$@"}'='"$@"'
87886665 setopt NO_GLOB_SUBST
87896666 else
8790 case `(set -o) 2>/dev/null` in
8791 *posix*) set -o posix ;;
6667 case `(set -o) 2>/dev/null` in #(
6668 *posix*) :
6669 set -o posix ;; #(
6670 *) :
6671 ;;
87926672 esac
8793
8794 fi
8795
8796
8797
8798
8799 # PATH needs CR
8800 # Avoid depending upon Character Ranges.
8801 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8802 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8803 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8804 as_cr_digits='0123456789'
8805 as_cr_alnum=$as_cr_Letters$as_cr_digits
6673 fi
6674
88066675
88076676 as_nl='
88086677 '
88116680 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
88126681 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
88136682 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8814 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6683 # Prefer a ksh shell builtin over an external printf program on Solaris,
6684 # but without wasting forks for bash or zsh.
6685 if test -z "$BASH_VERSION$ZSH_VERSION" \
6686 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6687 as_echo='print -r --'
6688 as_echo_n='print -rn --'
6689 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
88156690 as_echo='printf %s\n'
88166691 as_echo_n='printf %s'
88176692 else
88226697 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
88236698 as_echo_n_body='eval
88246699 arg=$1;
8825 case $arg in
6700 case $arg in #(
88266701 *"$as_nl"*)
88276702 expr "X$arg" : "X\\(.*\\)$as_nl";
88286703 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
88456720 }
88466721 fi
88476722
8848 # Support unset when possible.
8849 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8850 as_unset=unset
8851 else
8852 as_unset=false
8853 fi
8854
88556723
88566724 # IFS
88576725 # We need space, tab and new line, in precisely that order. Quoting is
88616729 IFS=" "" $as_nl"
88626730
88636731 # Find who we are. Look in the path if we contain no directory separator.
8864 case $0 in
6732 as_myself=
6733 case $0 in #((
88656734 *[\\/]* ) as_myself=$0 ;;
88666735 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
88676736 for as_dir in $PATH
88686737 do
88696738 IFS=$as_save_IFS
88706739 test -z "$as_dir" && as_dir=.
8871 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8872 done
6740 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6741 done
88736742 IFS=$as_save_IFS
88746743
88756744 ;;
88816750 fi
88826751 if test ! -f "$as_myself"; then
88836752 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8884 { (exit 1); exit 1; }
8885 fi
8886
8887 # Work around bugs in pre-3.0 UWIN ksh.
8888 for as_var in ENV MAIL MAILPATH
8889 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
6753 exit 1
6754 fi
6755
6756 # Unset variables that we do not need and which cause bugs (e.g. in
6757 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6758 # suppresses any "Segmentation fault" message there. '((' could
6759 # trigger a bug in pdksh 5.2.14.
6760 for as_var in BASH_ENV ENV MAIL MAILPATH
6761 do eval test x\${$as_var+set} = xset \
6762 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
88906763 done
88916764 PS1='$ '
88926765 PS2='> '
88986771 LANGUAGE=C
88996772 export LANGUAGE
89006773
8901 # Required to use basename.
6774 # CDPATH.
6775 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6776
6777
6778 # as_fn_error STATUS ERROR [LINENO LOG_FD]
6779 # ----------------------------------------
6780 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6781 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6782 # script with STATUS, using 1 if that was 0.
6783 as_fn_error ()
6784 {
6785 as_status=$1; test $as_status -eq 0 && as_status=1
6786 if test "$4"; then
6787 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6788 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6789 fi
6790 $as_echo "$as_me: error: $2" >&2
6791 as_fn_exit $as_status
6792 } # as_fn_error
6793
6794
6795 # as_fn_set_status STATUS
6796 # -----------------------
6797 # Set $? to STATUS, without forking.
6798 as_fn_set_status ()
6799 {
6800 return $1
6801 } # as_fn_set_status
6802
6803 # as_fn_exit STATUS
6804 # -----------------
6805 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6806 as_fn_exit ()
6807 {
6808 set +e
6809 as_fn_set_status $1
6810 exit $1
6811 } # as_fn_exit
6812
6813 # as_fn_unset VAR
6814 # ---------------
6815 # Portably unset VAR.
6816 as_fn_unset ()
6817 {
6818 { eval $1=; unset $1;}
6819 }
6820 as_unset=as_fn_unset
6821 # as_fn_append VAR VALUE
6822 # ----------------------
6823 # Append the text in VALUE to the end of the definition contained in VAR. Take
6824 # advantage of any shell optimizations that allow amortized linear growth over
6825 # repeated appends, instead of the typical quadratic growth present in naive
6826 # implementations.
6827 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6828 eval 'as_fn_append ()
6829 {
6830 eval $1+=\$2
6831 }'
6832 else
6833 as_fn_append ()
6834 {
6835 eval $1=\$$1\$2
6836 }
6837 fi # as_fn_append
6838
6839 # as_fn_arith ARG...
6840 # ------------------
6841 # Perform arithmetic evaluation on the ARGs, and store the result in the
6842 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6843 # must be portable across $(()) and expr.
6844 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6845 eval 'as_fn_arith ()
6846 {
6847 as_val=$(( $* ))
6848 }'
6849 else
6850 as_fn_arith ()
6851 {
6852 as_val=`expr "$@" || test $? -eq 1`
6853 }
6854 fi # as_fn_arith
6855
6856
89026857 if expr a : '\(a\)' >/dev/null 2>&1 &&
89036858 test "X`expr 00001 : '.*\(...\)'`" = X001; then
89046859 as_expr=expr
89126867 as_basename=false
89136868 fi
89146869
8915
8916 # Name of the executable.
6870 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6871 as_dirname=dirname
6872 else
6873 as_dirname=false
6874 fi
6875
89176876 as_me=`$as_basename -- "$0" ||
89186877 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
89196878 X"$0" : 'X\(//\)$' \| \
89336892 }
89346893 s/.*/./; q'`
89356894
8936 # CDPATH.
8937 $as_unset CDPATH
8938
8939
8940
8941 as_lineno_1=$LINENO
8942 as_lineno_2=$LINENO
8943 test "x$as_lineno_1" != "x$as_lineno_2" &&
8944 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
8945
8946 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8947 # uniformly replaced by the line number. The first 'sed' inserts a
8948 # line-number line after each line using $LINENO; the second 'sed'
8949 # does the real work. The second script uses 'N' to pair each
8950 # line-number line with the line containing $LINENO, and appends
8951 # trailing '-' during substitution so that $LINENO is not a special
8952 # case at line end.
8953 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8954 # scripts with optimization help from Paolo Bonzini. Blame Lee
8955 # E. McMahon (1931-1989) for sed's syntax. :-)
8956 sed -n '
8957 p
8958 /[$]LINENO/=
8959 ' <$as_myself |
8960 sed '
8961 s/[$]LINENO.*/&-/
8962 t lineno
8963 b
8964 :lineno
8965 N
8966 :loop
8967 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
8968 t loop
8969 s/-\n.*//
8970 ' >$as_me.lineno &&
8971 chmod +x "$as_me.lineno" ||
8972 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
8973 { (exit 1); exit 1; }; }
8974
8975 # Don't try to exec as it changes $[0], causing all sort of problems
8976 # (the dirname of $[0] is not the place where we might find the
8977 # original and so on. Autoconf is especially sensitive to this).
8978 . "./$as_me.lineno"
8979 # Exit status is that of the last command.
8980 exit
8981 }
8982
8983
8984 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8985 as_dirname=dirname
8986 else
8987 as_dirname=false
8988 fi
6895 # Avoid depending upon Character Ranges.
6896 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6897 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6898 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6899 as_cr_digits='0123456789'
6900 as_cr_alnum=$as_cr_Letters$as_cr_digits
89896901
89906902 ECHO_C= ECHO_N= ECHO_T=
8991 case `echo -n x` in
6903 case `echo -n x` in #(((((
89926904 -n*)
8993 case `echo 'x\c'` in
6905 case `echo 'xy\c'` in
89946906 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8995 *) ECHO_C='\c';;
6907 xy) ECHO_C='\c';;
6908 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6909 ECHO_T=' ';;
89966910 esac;;
89976911 *)
89986912 ECHO_N='-n';;
89996913 esac
9000 if expr a : '\(a\)' >/dev/null 2>&1 &&
9001 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9002 as_expr=expr
9003 else
9004 as_expr=false
9005 fi
90066914
90076915 rm -f conf$$ conf$$.exe conf$$.file
90086916 if test -d conf$$.dir; then
90316939 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
90326940 rmdir conf$$.dir 2>/dev/null
90336941
9034 if mkdir -p . 2>/dev/null; then
9035 as_mkdir_p=:
9036 else
9037 test -d ./-p && rmdir ./-p
9038 as_mkdir_p=false
9039 fi
9040
9041 if test -x / >/dev/null 2>&1; then
9042 as_test_x='test -x'
9043 else
9044 if ls -dL / >/dev/null 2>&1; then
9045 as_ls_L_option=L
9046 else
9047 as_ls_L_option=
9048 fi
9049 as_test_x='
9050 eval sh -c '\''
9051 if test -d "$1"; then
9052 test -d "$1/.";
9053 else
9054 case $1 in
9055 -*)set "./$1";;
9056 esac;
9057 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
9058 ???[sx]*):;;*)false;;esac;fi
9059 '\'' sh
9060 '
9061 fi
9062 as_executable_p=$as_test_x
9063
9064 # Sed expression to map a string onto a valid CPP name.
9065 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9066
9067 # Sed expression to map a string onto a valid variable name.
9068 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9069
9070
9071 exec 6>&1
9072
9073 # Save the log message, to keep $[0] and so on meaningful, and to
9074 # report actual input values of CONFIG_FILES etc. instead of their
9075 # values after options handling.
9076 ac_log="
9077 This file was extended by gnomad2 $as_me 2.9.4, which was
9078 generated by GNU Autoconf 2.63. Invocation command line was
9079
9080 CONFIG_FILES = $CONFIG_FILES
9081 CONFIG_HEADERS = $CONFIG_HEADERS
9082 CONFIG_LINKS = $CONFIG_LINKS
9083 CONFIG_COMMANDS = $CONFIG_COMMANDS
9084 $ $0 $@
9085
9086 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9087 "
9088
9089 _ACEOF
9090
9091 case $ac_config_files in *"
9092 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9093 esac
9094
9095
9096
9097 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9098 # Files that config.status was made for.
9099 config_files="$ac_config_files"
9100 config_commands="$ac_config_commands"
9101
9102 _ACEOF
9103
9104 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9105 ac_cs_usage="\
9106 \`$as_me' instantiates files from templates according to the
9107 current configuration.
9108
9109 Usage: $0 [OPTION]... [FILE]...
9110
9111 -h, --help print this help, then exit
9112 -V, --version print version number and configuration settings, then exit
9113 -q, --quiet, --silent
9114 do not print progress messages
9115 -d, --debug don't remove temporary files
9116 --recheck update $as_me by reconfiguring in the same conditions
9117 --file=FILE[:TEMPLATE]
9118 instantiate the configuration file FILE
9119
9120 Configuration files:
9121 $config_files
9122
9123 Configuration commands:
9124 $config_commands
9125
9126 Report bugs to <bug-autoconf@gnu.org>."
9127
9128 _ACEOF
9129 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9130 ac_cs_version="\\
9131 gnomad2 config.status 2.9.4
9132 configured by $0, generated by GNU Autoconf 2.63,
9133 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
9134
9135 Copyright (C) 2008 Free Software Foundation, Inc.
9136 This config.status script is free software; the Free Software Foundation
9137 gives unlimited permission to copy, distribute and modify it."
9138
9139 ac_pwd='$ac_pwd'
9140 srcdir='$srcdir'
9141 INSTALL='$INSTALL'
9142 MKDIR_P='$MKDIR_P'
9143 AWK='$AWK'
9144 test -n "\$AWK" || AWK=awk
9145 _ACEOF
9146
9147 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9148 # The default lists apply if the user does not specify any file.
9149 ac_need_defaults=:
9150 while test $# != 0
9151 do
9152 case $1 in
9153 --*=*)
9154 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9155 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9156 ac_shift=:
9157 ;;
9158 *)
9159 ac_option=$1
9160 ac_optarg=$2
9161 ac_shift=shift
9162 ;;
9163 esac
9164
9165 case $ac_option in
9166 # Handling of the options.
9167 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9168 ac_cs_recheck=: ;;
9169 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9170 $as_echo "$ac_cs_version"; exit ;;
9171 --debug | --debu | --deb | --de | --d | -d )
9172 debug=: ;;
9173 --file | --fil | --fi | --f )
9174 $ac_shift
9175 case $ac_optarg in
9176 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9177 esac
9178 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
9179 ac_need_defaults=false;;
9180 --he | --h | --help | --hel | -h )
9181 $as_echo "$ac_cs_usage"; exit ;;
9182 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9183 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9184 ac_cs_silent=: ;;
9185
9186 # This is an error.
9187 -*) { $as_echo "$as_me: error: unrecognized option: $1
9188 Try \`$0 --help' for more information." >&2
9189 { (exit 1); exit 1; }; } ;;
9190
9191 *) ac_config_targets="$ac_config_targets $1"
9192 ac_need_defaults=false ;;
9193
9194 esac
9195 shift
9196 done
9197
9198 ac_configure_extra_args=
9199
9200 if $ac_cs_silent; then
9201 exec 6>/dev/null
9202 ac_configure_extra_args="$ac_configure_extra_args --silent"
9203 fi
9204
9205 _ACEOF
9206 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9207 if \$ac_cs_recheck; then
9208 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9209 shift
9210 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9211 CONFIG_SHELL='$SHELL'
9212 export CONFIG_SHELL
9213 exec "\$@"
9214 fi
9215
9216 _ACEOF
9217 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9218 exec 5>>config.log
6942
6943 # as_fn_mkdir_p
6944 # -------------
6945 # Create "$as_dir" as a directory, including parents if necessary.
6946 as_fn_mkdir_p ()
92196947 {
9220 echo
9221 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9222 ## Running $as_me. ##
9223 _ASBOX
9224 $as_echo "$ac_log"
9225 } >&5
9226
9227 _ACEOF
9228 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9229 #
9230 # INIT-COMMANDS
9231 #
9232 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9233
9234
9235 _ACEOF
9236
9237 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9238
9239 # Handling of arguments.
9240 for ac_config_target in $ac_config_targets
9241 do
9242 case $ac_config_target in
9243 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9244 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
9245 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9246 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9247 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
9248 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
9249 "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
9250
9251 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9252 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9253 { (exit 1); exit 1; }; };;
9254 esac
9255 done
9256
9257
9258 # If the user did not use the arguments to specify the items to instantiate,
9259 # then the envvar interface is used. Set only those that are not.
9260 # We use the long form for the default assignment because of an extremely
9261 # bizarre bug on SunOS 4.1.3.
9262 if $ac_need_defaults; then
9263 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9264 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9265 fi
9266
9267 # Have a temporary directory for convenience. Make it in the build tree
9268 # simply because there is no reason against having it here, and in addition,
9269 # creating and moving files from /tmp can sometimes cause problems.
9270 # Hook for its removal unless debugging.
9271 # Note that there is a small window in which the directory will not be cleaned:
9272 # after its creation but before its name has been assigned to `$tmp'.
9273 $debug ||
9274 {
9275 tmp=
9276 trap 'exit_status=$?
9277 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9278 ' 0
9279 trap '{ (exit 1); exit 1; }' 1 2 13 15
9280 }
9281 # Create a (secure) tmp directory for tmp files.
9282
9283 {
9284 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9285 test -n "$tmp" && test -d "$tmp"
9286 } ||
9287 {
9288 tmp=./conf$$-$RANDOM
9289 (umask 077 && mkdir "$tmp")
9290 } ||
9291 {
9292 $as_echo "$as_me: cannot create a temporary directory in ." >&2
9293 { (exit 1); exit 1; }
9294 }
9295
9296 # Set up the scripts for CONFIG_FILES section.
9297 # No need to generate them if there are no CONFIG_FILES.
9298 # This happens for instance with `./config.status config.h'.
9299 if test -n "$CONFIG_FILES"; then
9300
9301
9302 ac_cr='
9303 '
9304 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9305 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9306 ac_cs_awk_cr='\\r'
9307 else
9308 ac_cs_awk_cr=$ac_cr
9309 fi
9310
9311 echo 'BEGIN {' >"$tmp/subs1.awk" &&
9312 _ACEOF
9313
9314
9315 {
9316 echo "cat >conf$$subs.awk <<_ACEOF" &&
9317 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9318 echo "_ACEOF"
9319 } >conf$$subs.sh ||
9320 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9321 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9322 { (exit 1); exit 1; }; }
9323 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
9324 ac_delim='%!_!# '
9325 for ac_last_try in false false false false false :; do
9326 . ./conf$$subs.sh ||
9327 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9328 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9329 { (exit 1); exit 1; }; }
9330
9331 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9332 if test $ac_delim_n = $ac_delim_num; then
9333 break
9334 elif $ac_last_try; then
9335 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9336 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9337 { (exit 1); exit 1; }; }
9338 else
9339 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9340 fi
9341 done
9342 rm -f conf$$subs.sh
9343
9344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9345 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
9346 _ACEOF
9347 sed -n '
9348 h
9349 s/^/S["/; s/!.*/"]=/
9350 p
9351 g
9352 s/^[^!]*!//
9353 :repl
9354 t repl
9355 s/'"$ac_delim"'$//
9356 t delim
9357 :nl
9358 h
9359 s/\(.\{148\}\).*/\1/
9360 t more1
9361 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9362 p
9363 n
9364 b repl
9365 :more1
9366 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9367 p
9368 g
9369 s/.\{148\}//
9370 t nl
9371 :delim
9372 h
9373 s/\(.\{148\}\).*/\1/
9374 t more2
9375 s/["\\]/\\&/g; s/^/"/; s/$/"/
9376 p
9377 b
9378 :more2
9379 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9380 p
9381 g
9382 s/.\{148\}//
9383 t delim
9384 ' <conf$$subs.awk | sed '
9385 /^[^""]/{
9386 N
9387 s/\n//
9388 }
9389 ' >>$CONFIG_STATUS || ac_write_fail=1
9390 rm -f conf$$subs.awk
9391 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9392 _ACAWK
9393 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
9394 for (key in S) S_is_set[key] = 1
9395 FS = ""
9396
9397 }
9398 {
9399 line = $ 0
9400 nfields = split(line, field, "@")
9401 substed = 0
9402 len = length(field[1])
9403 for (i = 2; i < nfields; i++) {
9404 key = field[i]
9405 keylen = length(key)
9406 if (S_is_set[key]) {
9407 value = S[key]
9408 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9409 len += length(value) + length(field[++i])
9410 substed = 1
9411 } else
9412 len += 1 + keylen
9413 }
9414
9415 print line
9416 }
9417
9418 _ACAWK
9419 _ACEOF
9420 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9421 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9422 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9423 else
9424 cat
9425 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
9426 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
9427 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
9428 { (exit 1); exit 1; }; }
9429 _ACEOF
9430
9431 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9432 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9433 # trailing colons and then remove the whole line if VPATH becomes empty
9434 # (actually we leave an empty line to preserve line numbers).
9435 if test "x$srcdir" = x.; then
9436 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9437 s/:*\$(srcdir):*/:/
9438 s/:*\${srcdir}:*/:/
9439 s/:*@srcdir@:*/:/
9440 s/^\([^=]*=[ ]*\):*/\1/
9441 s/:*$//
9442 s/^[^=]*=[ ]*$//
9443 }'
9444 fi
9445
9446 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9447 fi # test -n "$CONFIG_FILES"
9448
9449
9450 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
9451 shift
9452 for ac_tag
9453 do
9454 case $ac_tag in
9455 :[FHLC]) ac_mode=$ac_tag; continue;;
9456 esac
9457 case $ac_mode$ac_tag in
9458 :[FHL]*:*);;
9459 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
9460 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
9461 { (exit 1); exit 1; }; };;
9462 :[FH]-) ac_tag=-:-;;
9463 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9464 esac
9465 ac_save_IFS=$IFS
9466 IFS=:
9467 set x $ac_tag
9468 IFS=$ac_save_IFS
9469 shift
9470 ac_file=$1
9471 shift
9472
9473 case $ac_mode in
9474 :L) ac_source=$1;;
9475 :[FH])
9476 ac_file_inputs=
9477 for ac_f
9478 do
9479 case $ac_f in
9480 -) ac_f="$tmp/stdin";;
9481 *) # Look for the file first in the build tree, then in the source tree
9482 # (if the path is not absolute). The absolute path cannot be DOS-style,
9483 # because $ac_f cannot contain `:'.
9484 test -f "$ac_f" ||
9485 case $ac_f in
9486 [\\/$]*) false;;
9487 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9488 esac ||
9489 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
9490 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
9491 { (exit 1); exit 1; }; };;
9492 esac
9493 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9494 ac_file_inputs="$ac_file_inputs '$ac_f'"
9495 done
9496
9497 # Let's still pretend it is `configure' which instantiates (i.e., don't
9498 # use $as_me), people would be surprised to read:
9499 # /* config.h. Generated by config.status. */
9500 configure_input='Generated from '`
9501 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9502 `' by configure.'
9503 if test x"$ac_file" != x-; then
9504 configure_input="$ac_file. $configure_input"
9505 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
9506 $as_echo "$as_me: creating $ac_file" >&6;}
9507 fi
9508 # Neutralize special characters interpreted by sed in replacement strings.
9509 case $configure_input in #(
9510 *\&* | *\|* | *\\* )
9511 ac_sed_conf_input=`$as_echo "$configure_input" |
9512 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9513 *) ac_sed_conf_input=$configure_input;;
9514 esac
9515
9516 case $ac_tag in
9517 *:-:* | *:-) cat >"$tmp/stdin" \
9518 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
9519 $as_echo "$as_me: error: could not create $ac_file" >&2;}
9520 { (exit 1); exit 1; }; } ;;
9521 esac
9522 ;;
9523 esac
9524
9525 ac_dir=`$as_dirname -- "$ac_file" ||
9526 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9527 X"$ac_file" : 'X\(//\)[^/]' \| \
9528 X"$ac_file" : 'X\(//\)$' \| \
9529 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9530 $as_echo X"$ac_file" |
9531 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9532 s//\1/
9533 q
9534 }
9535 /^X\(\/\/\)[^/].*/{
9536 s//\1/
9537 q
9538 }
9539 /^X\(\/\/\)$/{
9540 s//\1/
9541 q
9542 }
9543 /^X\(\/\).*/{
9544 s//\1/
9545 q
9546 }
9547 s/.*/./; q'`
9548 { as_dir="$ac_dir"
6948
95496949 case $as_dir in #(
95506950 -*) as_dir=./$as_dir;;
95516951 esac
9552 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
6952 test -d "$as_dir" || eval $as_mkdir_p || {
95536953 as_dirs=
95546954 while :; do
95556955 case $as_dir in #(
95836983 test -d "$as_dir" && break
95846984 done
95856985 test -z "$as_dirs" || eval "mkdir $as_dirs"
9586 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9587 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
9588 { (exit 1); exit 1; }; }; }
6986 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6987
6988
6989 } # as_fn_mkdir_p
6990 if mkdir -p . 2>/dev/null; then
6991 as_mkdir_p='mkdir -p "$as_dir"'
6992 else
6993 test -d ./-p && rmdir ./-p
6994 as_mkdir_p=false
6995 fi
6996
6997 if test -x / >/dev/null 2>&1; then
6998 as_test_x='test -x'
6999 else
7000 if ls -dL / >/dev/null 2>&1; then
7001 as_ls_L_option=L
7002 else
7003 as_ls_L_option=
7004 fi
7005 as_test_x='
7006 eval sh -c '\''
7007 if test -d "$1"; then
7008 test -d "$1/.";
7009 else
7010 case $1 in #(
7011 -*)set "./$1";;
7012 esac;
7013 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
7014 ???[sx]*):;;*)false;;esac;fi
7015 '\'' sh
7016 '
7017 fi
7018 as_executable_p=$as_test_x
7019
7020 # Sed expression to map a string onto a valid CPP name.
7021 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7022
7023 # Sed expression to map a string onto a valid variable name.
7024 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7025
7026
7027 exec 6>&1
7028 ## ----------------------------------- ##
7029 ## Main body of $CONFIG_STATUS script. ##
7030 ## ----------------------------------- ##
7031 _ASEOF
7032 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7033
7034 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7035 # Save the log message, to keep $0 and so on meaningful, and to
7036 # report actual input values of CONFIG_FILES etc. instead of their
7037 # values after options handling.
7038 ac_log="
7039 This file was extended by gnomad2 $as_me 2.9.5, which was
7040 generated by GNU Autoconf 2.68. Invocation command line was
7041
7042 CONFIG_FILES = $CONFIG_FILES
7043 CONFIG_HEADERS = $CONFIG_HEADERS
7044 CONFIG_LINKS = $CONFIG_LINKS
7045 CONFIG_COMMANDS = $CONFIG_COMMANDS
7046 $ $0 $@
7047
7048 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7049 "
7050
7051 _ACEOF
7052
7053 case $ac_config_files in *"
7054 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7055 esac
7056
7057
7058
7059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7060 # Files that config.status was made for.
7061 config_files="$ac_config_files"
7062 config_commands="$ac_config_commands"
7063
7064 _ACEOF
7065
7066 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7067 ac_cs_usage="\
7068 \`$as_me' instantiates files and other configuration actions
7069 from templates according to the current configuration. Unless the files
7070 and actions are specified as TAGs, all are instantiated by default.
7071
7072 Usage: $0 [OPTION]... [TAG]...
7073
7074 -h, --help print this help, then exit
7075 -V, --version print version number and configuration settings, then exit
7076 --config print configuration, then exit
7077 -q, --quiet, --silent
7078 do not print progress messages
7079 -d, --debug don't remove temporary files
7080 --recheck update $as_me by reconfiguring in the same conditions
7081 --file=FILE[:TEMPLATE]
7082 instantiate the configuration file FILE
7083
7084 Configuration files:
7085 $config_files
7086
7087 Configuration commands:
7088 $config_commands
7089
7090 Report bugs to <triad@df.lth.se>."
7091
7092 _ACEOF
7093 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7094 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7095 ac_cs_version="\\
7096 gnomad2 config.status 2.9.5
7097 configured by $0, generated by GNU Autoconf 2.68,
7098 with options \\"\$ac_cs_config\\"
7099
7100 Copyright (C) 2010 Free Software Foundation, Inc.
7101 This config.status script is free software; the Free Software Foundation
7102 gives unlimited permission to copy, distribute and modify it."
7103
7104 ac_pwd='$ac_pwd'
7105 srcdir='$srcdir'
7106 INSTALL='$INSTALL'
7107 MKDIR_P='$MKDIR_P'
7108 AWK='$AWK'
7109 test -n "\$AWK" || AWK=awk
7110 _ACEOF
7111
7112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7113 # The default lists apply if the user does not specify any file.
7114 ac_need_defaults=:
7115 while test $# != 0
7116 do
7117 case $1 in
7118 --*=?*)
7119 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7120 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7121 ac_shift=:
7122 ;;
7123 --*=)
7124 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7125 ac_optarg=
7126 ac_shift=:
7127 ;;
7128 *)
7129 ac_option=$1
7130 ac_optarg=$2
7131 ac_shift=shift
7132 ;;
7133 esac
7134
7135 case $ac_option in
7136 # Handling of the options.
7137 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7138 ac_cs_recheck=: ;;
7139 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7140 $as_echo "$ac_cs_version"; exit ;;
7141 --config | --confi | --conf | --con | --co | --c )
7142 $as_echo "$ac_cs_config"; exit ;;
7143 --debug | --debu | --deb | --de | --d | -d )
7144 debug=: ;;
7145 --file | --fil | --fi | --f )
7146 $ac_shift
7147 case $ac_optarg in
7148 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7149 '') as_fn_error $? "missing file argument" ;;
7150 esac
7151 as_fn_append CONFIG_FILES " '$ac_optarg'"
7152 ac_need_defaults=false;;
7153 --he | --h | --help | --hel | -h )
7154 $as_echo "$ac_cs_usage"; exit ;;
7155 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7156 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7157 ac_cs_silent=: ;;
7158
7159 # This is an error.
7160 -*) as_fn_error $? "unrecognized option: \`$1'
7161 Try \`$0 --help' for more information." ;;
7162
7163 *) as_fn_append ac_config_targets " $1"
7164 ac_need_defaults=false ;;
7165
7166 esac
7167 shift
7168 done
7169
7170 ac_configure_extra_args=
7171
7172 if $ac_cs_silent; then
7173 exec 6>/dev/null
7174 ac_configure_extra_args="$ac_configure_extra_args --silent"
7175 fi
7176
7177 _ACEOF
7178 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7179 if \$ac_cs_recheck; then
7180 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7181 shift
7182 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7183 CONFIG_SHELL='$SHELL'
7184 export CONFIG_SHELL
7185 exec "\$@"
7186 fi
7187
7188 _ACEOF
7189 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7190 exec 5>>config.log
7191 {
7192 echo
7193 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7194 ## Running $as_me. ##
7195 _ASBOX
7196 $as_echo "$ac_log"
7197 } >&5
7198
7199 _ACEOF
7200 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7201 #
7202 # INIT-COMMANDS
7203 #
7204 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7205
7206
7207 _ACEOF
7208
7209 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7210
7211 # Handling of arguments.
7212 for ac_config_target in $ac_config_targets
7213 do
7214 case $ac_config_target in
7215 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7216 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
7217 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7218 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
7219 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
7220 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
7221 "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
7222
7223 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7224 esac
7225 done
7226
7227
7228 # If the user did not use the arguments to specify the items to instantiate,
7229 # then the envvar interface is used. Set only those that are not.
7230 # We use the long form for the default assignment because of an extremely
7231 # bizarre bug on SunOS 4.1.3.
7232 if $ac_need_defaults; then
7233 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7234 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7235 fi
7236
7237 # Have a temporary directory for convenience. Make it in the build tree
7238 # simply because there is no reason against having it here, and in addition,
7239 # creating and moving files from /tmp can sometimes cause problems.
7240 # Hook for its removal unless debugging.
7241 # Note that there is a small window in which the directory will not be cleaned:
7242 # after its creation but before its name has been assigned to `$tmp'.
7243 $debug ||
7244 {
7245 tmp= ac_tmp=
7246 trap 'exit_status=$?
7247 : "${ac_tmp:=$tmp}"
7248 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7249 ' 0
7250 trap 'as_fn_exit 1' 1 2 13 15
7251 }
7252 # Create a (secure) tmp directory for tmp files.
7253
7254 {
7255 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7256 test -d "$tmp"
7257 } ||
7258 {
7259 tmp=./conf$$-$RANDOM
7260 (umask 077 && mkdir "$tmp")
7261 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7262 ac_tmp=$tmp
7263
7264 # Set up the scripts for CONFIG_FILES section.
7265 # No need to generate them if there are no CONFIG_FILES.
7266 # This happens for instance with `./config.status config.h'.
7267 if test -n "$CONFIG_FILES"; then
7268
7269
7270 ac_cr=`echo X | tr X '\015'`
7271 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7272 # But we know of no other shell where ac_cr would be empty at this
7273 # point, so we can use a bashism as a fallback.
7274 if test "x$ac_cr" = x; then
7275 eval ac_cr=\$\'\\r\'
7276 fi
7277 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7278 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7279 ac_cs_awk_cr='\\r'
7280 else
7281 ac_cs_awk_cr=$ac_cr
7282 fi
7283
7284 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7285 _ACEOF
7286
7287
7288 {
7289 echo "cat >conf$$subs.awk <<_ACEOF" &&
7290 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7291 echo "_ACEOF"
7292 } >conf$$subs.sh ||
7293 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7294 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7295 ac_delim='%!_!# '
7296 for ac_last_try in false false false false false :; do
7297 . ./conf$$subs.sh ||
7298 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7299
7300 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7301 if test $ac_delim_n = $ac_delim_num; then
7302 break
7303 elif $ac_last_try; then
7304 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7305 else
7306 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7307 fi
7308 done
7309 rm -f conf$$subs.sh
7310
7311 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7312 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7313 _ACEOF
7314 sed -n '
7315 h
7316 s/^/S["/; s/!.*/"]=/
7317 p
7318 g
7319 s/^[^!]*!//
7320 :repl
7321 t repl
7322 s/'"$ac_delim"'$//
7323 t delim
7324 :nl
7325 h
7326 s/\(.\{148\}\)..*/\1/
7327 t more1
7328 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7329 p
7330 n
7331 b repl
7332 :more1
7333 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7334 p
7335 g
7336 s/.\{148\}//
7337 t nl
7338 :delim
7339 h
7340 s/\(.\{148\}\)..*/\1/
7341 t more2
7342 s/["\\]/\\&/g; s/^/"/; s/$/"/
7343 p
7344 b
7345 :more2
7346 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7347 p
7348 g
7349 s/.\{148\}//
7350 t delim
7351 ' <conf$$subs.awk | sed '
7352 /^[^""]/{
7353 N
7354 s/\n//
7355 }
7356 ' >>$CONFIG_STATUS || ac_write_fail=1
7357 rm -f conf$$subs.awk
7358 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7359 _ACAWK
7360 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7361 for (key in S) S_is_set[key] = 1
7362 FS = ""
7363
7364 }
7365 {
7366 line = $ 0
7367 nfields = split(line, field, "@")
7368 substed = 0
7369 len = length(field[1])
7370 for (i = 2; i < nfields; i++) {
7371 key = field[i]
7372 keylen = length(key)
7373 if (S_is_set[key]) {
7374 value = S[key]
7375 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7376 len += length(value) + length(field[++i])
7377 substed = 1
7378 } else
7379 len += 1 + keylen
7380 }
7381
7382 print line
7383 }
7384
7385 _ACAWK
7386 _ACEOF
7387 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7388 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7389 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7390 else
7391 cat
7392 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7393 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7394 _ACEOF
7395
7396 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7397 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7398 # trailing colons and then remove the whole line if VPATH becomes empty
7399 # (actually we leave an empty line to preserve line numbers).
7400 if test "x$srcdir" = x.; then
7401 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7402 h
7403 s///
7404 s/^/:/
7405 s/[ ]*$/:/
7406 s/:\$(srcdir):/:/g
7407 s/:\${srcdir}:/:/g
7408 s/:@srcdir@:/:/g
7409 s/^:*//
7410 s/:*$//
7411 x
7412 s/\(=[ ]*\).*/\1/
7413 G
7414 s/\n//
7415 s/^[^=]*=[ ]*$//
7416 }'
7417 fi
7418
7419 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7420 fi # test -n "$CONFIG_FILES"
7421
7422
7423 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
7424 shift
7425 for ac_tag
7426 do
7427 case $ac_tag in
7428 :[FHLC]) ac_mode=$ac_tag; continue;;
7429 esac
7430 case $ac_mode$ac_tag in
7431 :[FHL]*:*);;
7432 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7433 :[FH]-) ac_tag=-:-;;
7434 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7435 esac
7436 ac_save_IFS=$IFS
7437 IFS=:
7438 set x $ac_tag
7439 IFS=$ac_save_IFS
7440 shift
7441 ac_file=$1
7442 shift
7443
7444 case $ac_mode in
7445 :L) ac_source=$1;;
7446 :[FH])
7447 ac_file_inputs=
7448 for ac_f
7449 do
7450 case $ac_f in
7451 -) ac_f="$ac_tmp/stdin";;
7452 *) # Look for the file first in the build tree, then in the source tree
7453 # (if the path is not absolute). The absolute path cannot be DOS-style,
7454 # because $ac_f cannot contain `:'.
7455 test -f "$ac_f" ||
7456 case $ac_f in
7457 [\\/$]*) false;;
7458 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7459 esac ||
7460 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7461 esac
7462 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7463 as_fn_append ac_file_inputs " '$ac_f'"
7464 done
7465
7466 # Let's still pretend it is `configure' which instantiates (i.e., don't
7467 # use $as_me), people would be surprised to read:
7468 # /* config.h. Generated by config.status. */
7469 configure_input='Generated from '`
7470 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7471 `' by configure.'
7472 if test x"$ac_file" != x-; then
7473 configure_input="$ac_file. $configure_input"
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7475 $as_echo "$as_me: creating $ac_file" >&6;}
7476 fi
7477 # Neutralize special characters interpreted by sed in replacement strings.
7478 case $configure_input in #(
7479 *\&* | *\|* | *\\* )
7480 ac_sed_conf_input=`$as_echo "$configure_input" |
7481 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7482 *) ac_sed_conf_input=$configure_input;;
7483 esac
7484
7485 case $ac_tag in
7486 *:-:* | *:-) cat >"$ac_tmp/stdin" \
7487 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7488 esac
7489 ;;
7490 esac
7491
7492 ac_dir=`$as_dirname -- "$ac_file" ||
7493 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7494 X"$ac_file" : 'X\(//\)[^/]' \| \
7495 X"$ac_file" : 'X\(//\)$' \| \
7496 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7497 $as_echo X"$ac_file" |
7498 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7499 s//\1/
7500 q
7501 }
7502 /^X\(\/\/\)[^/].*/{
7503 s//\1/
7504 q
7505 }
7506 /^X\(\/\/\)$/{
7507 s//\1/
7508 q
7509 }
7510 /^X\(\/\).*/{
7511 s//\1/
7512 q
7513 }
7514 s/.*/./; q'`
7515 as_dir="$ac_dir"; as_fn_mkdir_p
95897516 ac_builddir=.
95907517
95917518 case "$ac_dir" in
96427569 # If the template does not know about datarootdir, expand it.
96437570 # FIXME: This hack should be removed a few years after 2.60.
96447571 ac_datarootdir_hack=; ac_datarootdir_seen=
9645
96467572 ac_sed_dataroot='
96477573 /datarootdir/ {
96487574 p
96527578 /@docdir@/p
96537579 /@infodir@/p
96547580 /@localedir@/p
9655 /@mandir@/p
9656 '
7581 /@mandir@/p'
96577582 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
96587583 *datarootdir*) ac_datarootdir_seen=yes;;
96597584 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9660 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
96617586 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
96627587 _ACEOF
96637588 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
96677592 s&@infodir@&$infodir&g
96687593 s&@localedir@&$localedir&g
96697594 s&@mandir@&$mandir&g
9670 s&\\\${datarootdir}&$datarootdir&g' ;;
7595 s&\\\${datarootdir}&$datarootdir&g' ;;
96717596 esac
96727597 _ACEOF
96737598
96957620 s&@MKDIR_P@&$ac_MKDIR_P&;t t
96967621 $ac_datarootdir_hack
96977622 "
9698 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
9699 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
9700 $as_echo "$as_me: error: could not create $ac_file" >&2;}
9701 { (exit 1); exit 1; }; }
7623 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7624 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
97027625
97037626 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9704 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9705 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9706 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9707 which seems to be undefined. Please make sure it is defined." >&5
7627 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7628 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7629 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7631 which seems to be undefined. Please make sure it is defined" >&5
97087632 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9709 which seems to be undefined. Please make sure it is defined." >&2;}
9710
9711 rm -f "$tmp/stdin"
7633 which seems to be undefined. Please make sure it is defined" >&2;}
7634
7635 rm -f "$ac_tmp/stdin"
97127636 case $ac_file in
9713 -) cat "$tmp/out" && rm -f "$tmp/out";;
9714 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7637 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7638 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
97157639 esac \
9716 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
9717 $as_echo "$as_me: error: could not create $ac_file" >&2;}
9718 { (exit 1); exit 1; }; }
7640 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
97197641 ;;
97207642
97217643
9722 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
7644 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
97237645 $as_echo "$as_me: executing $ac_file commands" >&6;}
97247646 ;;
97257647 esac
97267648
97277649
97287650 case $ac_file$ac_mode in
9729 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
9730 # Strip MF so we end up with the name of the file.
9731 mf=`echo "$mf" | sed -e 's/:.*$//'`
9732 # Check whether this is an Automake generated Makefile or not.
9733 # We used to match only the files named `Makefile.in', but
9734 # some people rename them; so instead we look at the file content.
9735 # Grep'ing the first line is not enough: some people post-process
9736 # each Makefile.in and add a new line on top of each file to say so.
9737 # Grep'ing the whole file is not good either: AIX grep has a line
9738 # limit of 2048, but all sed's we know have understand at least 4000.
9739 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9740 dirpart=`$as_dirname -- "$mf" ||
7651 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
7652 # Autoconf 2.62 quotes --file arguments for eval, but not when files
7653 # are listed without --file. Let's play safe and only enable the eval
7654 # if we detect the quoting.
7655 case $CONFIG_FILES in
7656 *\'*) eval set x "$CONFIG_FILES" ;;
7657 *) set x $CONFIG_FILES ;;
7658 esac
7659 shift
7660 for mf
7661 do
7662 # Strip MF so we end up with the name of the file.
7663 mf=`echo "$mf" | sed -e 's/:.*$//'`
7664 # Check whether this is an Automake generated Makefile or not.
7665 # We used to match only the files named `Makefile.in', but
7666 # some people rename them; so instead we look at the file content.
7667 # Grep'ing the first line is not enough: some people post-process
7668 # each Makefile.in and add a new line on top of each file to say so.
7669 # Grep'ing the whole file is not good either: AIX grep has a line
7670 # limit of 2048, but all sed's we know have understand at least 4000.
7671 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
7672 dirpart=`$as_dirname -- "$mf" ||
97417673 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
97427674 X"$mf" : 'X\(//\)[^/]' \| \
97437675 X"$mf" : 'X\(//\)$' \| \
97607692 q
97617693 }
97627694 s/.*/./; q'`
9763 else
9764 continue
9765 fi
9766 # Extract the definition of DEPDIR, am__include, and am__quote
9767 # from the Makefile without running `make'.
9768 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9769 test -z "$DEPDIR" && continue
9770 am__include=`sed -n 's/^am__include = //p' < "$mf"`
9771 test -z "am__include" && continue
9772 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9773 # When using ansi2knr, U may be empty or an underscore; expand it
9774 U=`sed -n 's/^U = //p' < "$mf"`
9775 # Find all dependency output files, they are included files with
9776 # $(DEPDIR) in their names. We invoke sed twice because it is the
9777 # simplest approach to changing $(DEPDIR) to its actual value in the
9778 # expansion.
9779 for file in `sed -n "
9780 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9781 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9782 # Make sure the directory exists.
9783 test -f "$dirpart/$file" && continue
9784 fdir=`$as_dirname -- "$file" ||
7695 else
7696 continue
7697 fi
7698 # Extract the definition of DEPDIR, am__include, and am__quote
7699 # from the Makefile without running `make'.
7700 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7701 test -z "$DEPDIR" && continue
7702 am__include=`sed -n 's/^am__include = //p' < "$mf"`
7703 test -z "am__include" && continue
7704 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7705 # When using ansi2knr, U may be empty or an underscore; expand it
7706 U=`sed -n 's/^U = //p' < "$mf"`
7707 # Find all dependency output files, they are included files with
7708 # $(DEPDIR) in their names. We invoke sed twice because it is the
7709 # simplest approach to changing $(DEPDIR) to its actual value in the
7710 # expansion.
7711 for file in `sed -n "
7712 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7713 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7714 # Make sure the directory exists.
7715 test -f "$dirpart/$file" && continue
7716 fdir=`$as_dirname -- "$file" ||
97857717 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
97867718 X"$file" : 'X\(//\)[^/]' \| \
97877719 X"$file" : 'X\(//\)$' \| \
98047736 q
98057737 }
98067738 s/.*/./; q'`
9807 { as_dir=$dirpart/$fdir
9808 case $as_dir in #(
9809 -*) as_dir=./$as_dir;;
9810 esac
9811 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
9812 as_dirs=
9813 while :; do
9814 case $as_dir in #(
9815 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9816 *) as_qdir=$as_dir;;
9817 esac
9818 as_dirs="'$as_qdir' $as_dirs"
9819 as_dir=`$as_dirname -- "$as_dir" ||
9820 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9821 X"$as_dir" : 'X\(//\)[^/]' \| \
9822 X"$as_dir" : 'X\(//\)$' \| \
9823 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9824 $as_echo X"$as_dir" |
9825 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9826 s//\1/
9827 q
9828 }
9829 /^X\(\/\/\)[^/].*/{
9830 s//\1/
9831 q
9832 }
9833 /^X\(\/\/\)$/{
9834 s//\1/
9835 q
9836 }
9837 /^X\(\/\).*/{
9838 s//\1/
9839 q
9840 }
9841 s/.*/./; q'`
9842 test -d "$as_dir" && break
7739 as_dir=$dirpart/$fdir; as_fn_mkdir_p
7740 # echo "creating $dirpart/$file"
7741 echo '# dummy' > "$dirpart/$file"
98437742 done
9844 test -z "$as_dirs" || eval "mkdir $as_dirs"
9845 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9846 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
9847 { (exit 1); exit 1; }; }; }
9848 # echo "creating $dirpart/$file"
9849 echo '# dummy' > "$dirpart/$file"
98507743 done
9851 done
7744 }
98527745 ;;
98537746 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
98547747 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
98557748 esac ;;
98567749 "po/stamp-it":C)
9857 if ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" ; then
9858 { { $as_echo "$as_me:$LINENO: error: po/Makefile.in.in was not created by intltoolize." >&5
9859 $as_echo "$as_me: error: po/Makefile.in.in was not created by intltoolize." >&2;}
9860 { (exit 1); exit 1; }; }
7750 if ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then
7751 as_fn_error $? "po/Makefile.in.in was not created by intltoolize." "$LINENO" 5
98617752 fi
98627753 rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
98637754 >"po/stamp-it.tmp"
98807771 done # for ac_tag
98817772
98827773
9883 { (exit 0); exit 0; }
9884 _ACEOF
9885 chmod +x $CONFIG_STATUS
7774 as_fn_exit 0
7775 _ACEOF
98867776 ac_clean_files=$ac_clean_files_save
98877777
98887778 test $ac_write_fail = 0 ||
9889 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
9890 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
9891 { (exit 1); exit 1; }; }
7779 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
98927780
98937781
98947782 # configure is writing to config.log, and then calls config.status.
99097797 exec 5>>config.log
99107798 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
99117799 # would make configure fail if this is the last instruction.
9912 $ac_cs_success || { (exit 1); exit 1; }
7800 $ac_cs_success || as_fn_exit 1
99137801 fi
99147802 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9915 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
99167804 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
99177805 fi
99187806
99267814 C Preprocessor .......: $CPP $CPPFLAGS
99277815 C Compiler ...........: $CC $CFLAGS
99287816 C Linker .............: $CC $LDFLAGS $LIBS
9929 GTK+ version .........: $GTK2_VER
9930 libgnomeui version....: $GNOMEUI_VER
7817 GTK+ version .........: $GTK_VER
99317818 libnjb version........: $LIBNJB_VER
99327819 libmtp version........: $MTP_VER
99337820 id3tag version........: $ID3TAG_VER
99347821 taglib version........: $TAGLIB_VER
9935 dbus-glib version.....: $DBUSGLIB_VER
9936 hal version...........: $HAL_VER
7822 gudev version.........: $GUDEV_VER
99377823 Install path .........: $prefix
99387824
99397825 Now type 'make' to build $PACKAGE $VERSION,
00 dnl Process this file with autoconf to produce a configure script.
11 AC_PREREQ(2.52)
2 AC_INIT(gnomad2, 2.9.4, http://sourceforge.net/tracker/?func=add&group_id=65573&atid=511470)
3 AC_CONFIG_SRCDIR(src/gnomad2.c)
2 AC_INIT([gnomad2], [2.9.5], [triad@df.lth.se])
3 AC_CONFIG_SRCDIR([src/gnomad2.c])
44 AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
55
66 dnl --------------------------------------------------------------------------
2525 export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig
2626 fi
2727
28 PKG_CHECK_MODULES(GN, \
28 PKG_CHECK_MODULES(GN, \
2929 glib-2.0 \
30 gthread-2.0 \
30 gthread-2.0 \
3131 libnjb >= 2.2.4 \
32 gtk+-2.0 \
32 gtk+-2.0 >= 2.6.0 \
3333 )
3434
35 GTK2_VER=`$PKG_CONFIG --modversion gtk+-2.0`
35 GTK_VER=`$PKG_CONFIG --modversion gtk+-2.0`
3636 LIBNJB_VER=`$PKG_CONFIG --modversion libnjb`
37
38 dnl Test libgnomeui/gtk+-2.6.0
39 AC_MSG_CHECKING(for gtk+-2.0 >= 2.6.0)
40 TEMP_GTK_VER=`$PKG_CONFIG --modversion gtk+-2.0`
41 TEMP_GTK_MAJOR_MIN=2
42 TEMP_GTK_MINOR_MIN=6
43 TEMP_GTK_MICRO_MIN=0
44 TEMP_GTK_MAJOR=`echo $TEMP_GTK_VER | sed -e ['s/^\([^.]\{1,\}\)\..*$/\1/']`
45 TEMP_GTK_MINOR=`echo $TEMP_GTK_VER | sed -e ['s/^[^.]\{1,\}\.\([^.]\{1,\}\)\..*$/\1/']`
46 TEMP_GTK_MICRO=`echo $TEMP_GTK_VER | sed -e ['s/^[^.]\{1,\}\.[^.]\{1,\}\.\([^.]\{1,\}\).*$/\1/']`
47 TEMP_GTK_VER_OK=false
48 if test $TEMP_GTK_MAJOR -gt $TEMP_GTK_MAJOR_MIN ; then
49 TEMP_GTK_VER_OK=true
50 else
51 if test $TEMP_GTK_MAJOR -eq $TEMP_GTK_MAJOR_MIN -a $TEMP_GTK_MINOR -gt $TEMP_GTK_MINOR_MIN ; then
52 TEMP_GTK_VER_OK=true
53 else
54 if test $TEMP_GTK_MAJOR -eq $TEMP_GTK_MAJOR_MIN -a $TEMP_GTK_MINOR -eq $TEMP_GTK_MINOR_MIN -a $TEMP_GTK_MICRO -ge $TEMP_GTK_MICRO_MIN ; then
55 TEMP_GTK_VER_OK=true
56 fi
57 fi
58 fi
59 if test "$TEMP_GTK_VER_OK" != "true" ; then
60 AC_MSG_RESULT(no)
61 AC_MSG_CHECKING(if libgnomeui-2.0 is available on this machine)
62 if $PKG_CONFIG --exists libgnomeui-2.0 ; then
63 AC_MSG_RESULT(yes)
64 AC_MSG_NOTICE(adding some more flags and libs for libgnomeui-2.0, hold on)
65 PKG_CHECK_MODULES(GNOMEUI, libgnomeui-2.0)
66 GNOMEUI_VER=`$PKG_CONFIG --modversion libgnomeui-2.0`
67 else
68 AC_MSG_RESULT(no)
69 AC_MSG_ERROR([
70 *** Neither gtk+-2.0 >= 2.6.0 nor libgnomeui-2.0 found!
71 *** Either install them or fix PKG_CONFIG_PATH enviroment variable to
72 *** point to their location, if they are installed already.])
73 fi
74 else
75 GNOMEUI_CFLAGS=""
76 GNOMEUI_LIBS=""
77 GNOMEUI_VER="NOT USED"
78 AC_SUBST(GNOMEUI_CFLAGS)
79 AC_SUBST(GNOMEUI_LIBS)
80 fi
8137
8238 dnl This is for some reason needed by the PKG_CHECK macro.
8339 OSFLAGS=""
195151 PKG_CHECK_EXISTS(libmtp >= 0.3.0, found_libmtp_030_pkg=yes, found_libmtp_030_pkg=no)
196152 if test x"$found_libmtp_030_pkg" = "xyes" ; then
197153 AC_DEFINE([HAVE_LIBMTP_030], 1, [indicates whether libmtp 0.3.0 is installed])
198 fi
154 fi
199155 fi
200156 fi
201157 AC_SUBST(MTP_CFLAGS)
202158 AC_SUBST(MTP_LIBS)
203159
204160 dnl --------------------------------------------------------------------------
205 dnl
206 dnl Check for the dbus message daemon, and activate functionality
207 dnl if we have it.
208 dnl
209 dnl --------------------------------------------------------------------------
210
211 PKG_CHECK_MODULES(DBUSGLIB, dbus-glib-1, found_dbus_pkg=yes, found_dbus_pkg=no)
212 DBUSGLIB_VER=`pkg-config --modversion dbus-glib-1`
213
214 if test x"$found_dbus_pkg" = "xno" ; then
215 DBUSGLIB_VER="NOT USED"
216 else
217 AC_DEFINE(HAVE_DBUSGLIB)
218 fi
219 AC_SUBST(DBUSGLIB_CFLAGS)
220 AC_SUBST(DBUSGLIB_LIBS)
221
222 dnl --------------------------------------------------------------------------
223 dnl
224 dnl Check for libhal, and activate functionality
225 dnl if we have it.
226 dnl
227 dnl --------------------------------------------------------------------------
228
229 PKG_CHECK_MODULES(HAL, hal, found_hal_pkg=yes, found_hal_pkg=no)
230 HAL_VER=`pkg-config --modversion hal`
231
232 if test x"$found_hal_pkg" = "xno" ; then
233 HAL_VER="NOT USED"
234 else
235 AC_DEFINE(HAVE_HAL)
236 fi
237 AC_SUBST(HAL_CFLAGS)
238 AC_SUBST(HAL_LIBS)
239
161 dnl Check gudev library separately
162 dnl --------------------------------------------------------------------------
163
164 PKG_CHECK_MODULES(GUDEV, gudev-1.0 >= 143, found_gudev_pkg=yes, found_gudev_pkg=no)
165 if test x"$found_gudev_pkg" = "xno" ; then
166 GUDEV_VER="NOT USED"
167 else
168 GUDEV_VER=`pkg-config --modversion gudev-1.0`
169 AC_DEFINE(HAVE_GUDEV)
170 fi
171 AC_SUBST(GUDEV_CFLAGS)
172 AC_SUBST(GUDEV_LIBS)
240173
241174 dnl --------------------------------------------------------------------------
242175 dnl
244177 dnl
245178 dnl --------------------------------------------------------------------------
246179
247 dnl CFLAGS="$CFLAGS -DGTK_DISABLE_SINGLE_INCLUDES=1"
248 dnl CFLAGS="$CFLAGS -DG_DISABLE_SINGLE_INCLUDES=1"
249 dnl CFLAGS="$CFLAGS -DGTK_DISABLE_DEPRECATED=1"
250 dnl CFLAGS="$CFLAGS -DG_DISABLE_DEPRECATED=1"
251 dnl CFLAGS="$CFLAGS -DGDK_DISABLE_DEPRECATED=1"
252 dnl CFLAGS="$CFLAGS -DGTK_MULTIHEAD_SAFE=1"
180 CFLAGS="$CFLAGS -DGTK_DISABLE_SINGLE_INCLUDES"
181 CFLAGS="$CFLAGS -DG_DISABLE_SINGLE_INCLUDES"
182 dnl CFLAGS="$CFLAGS -DGTK_DISABLE_DEPRECATED"
183 dnl CFLAGS="$CFLAGS -DG_DISABLE_DEPRECATED"
184 dnl CFLAGS="$CFLAGS -DGDK_DISABLE_DEPRECATED"
185 dnl CFLAGS="$CFLAGS -DGTK_MULTIHEAD_SAFE"
253186
254187 dnl This is for the thing to build on Windows.
255188 dnl CFLAGS="$CFLAGS -mms-bitfields"
284217 AC_CHECK_FUNCS(chdir)
285218
286219 dnl --------------------------------------------------------------------------
287 dnl
220 dnl
288221 dnl At last write the configured makefiles
289222 dnl
290223 dnl --------------------------------------------------------------------------
306239 C Preprocessor .......: $CPP $CPPFLAGS
307240 C Compiler ...........: $CC $CFLAGS
308241 C Linker .............: $CC $LDFLAGS $LIBS
309 GTK+ version .........: $GTK2_VER
310 libgnomeui version....: $GNOMEUI_VER
242 GTK+ version .........: $GTK_VER
311243 libnjb version........: $LIBNJB_VER
312244 libmtp version........: $MTP_VER
313245 id3tag version........: $ID3TAG_VER
314246 taglib version........: $TAGLIB_VER
315 dbus-glib version.....: $DBUSGLIB_VER
316 hal version...........: $HAL_VER
247 gudev version.........: $GUDEV_VER
317248 Install path .........: $prefix
318249
319250 Now type 'make' to build $PACKAGE $VERSION,
00 #! /bin/sh
11 # depcomp - compile a program generating dependencies as side-effects
22
3 scriptversion=2007-03-29.01
4
5 # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007 Free Software
6 # Foundation, Inc.
3 scriptversion=2009-04-28.21; # UTC
4
5 # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free
6 # Software Foundation, Inc.
77
88 # This program is free software; you can redistribute it and/or modify
99 # it under the terms of the GNU General Public License as published by
1616 # GNU General Public License for more details.
1717
1818 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21 # 02110-1301, USA.
19 # along with this program. If not, see <http://www.gnu.org/licenses/>.
2220
2321 # As a special exception to the GNU General Public License, if you
2422 # distribute this file as part of a program that contains a
8482 # This is just like dashmstdout with a different argument.
8583 dashmflag=-xM
8684 depmode=dashmstdout
85 fi
86
87 cygpath_u="cygpath -u -f -"
88 if test "$depmode" = msvcmsys; then
89 # This is just like msvisualcpp but w/o cygpath translation.
90 # Just convert the backslash-escaped backslashes to single forward
91 # slashes to satisfy depend.m4
92 cygpath_u="sed s,\\\\\\\\,/,g"
93 depmode=msvisualcpp
8794 fi
8895
8996 case "$depmode" in
191198 ' < "$tmpdepfile" \
192199 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
193200 tr '
194 ' ' ' >> $depfile
195 echo >> $depfile
201 ' ' ' >> "$depfile"
202 echo >> "$depfile"
196203
197204 # The second pass generates a dummy entry for each header file.
198205 tr ' ' '
199206 ' < "$tmpdepfile" \
200207 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
201 >> $depfile
208 >> "$depfile"
202209 else
203210 # The sourcefile does not contain any dependencies, so just
204211 # store a dummy comment line, to avoid errors with the Makefile
327334 if test -f "$tmpdepfile"; then
328335 sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
329336 # Add `dependent.h:' lines.
330 sed -ne '2,${; s/^ *//; s/ \\*$//; s/$/:/; p;}' "$tmpdepfile" >> "$depfile"
337 sed -ne '2,${
338 s/^ *//
339 s/ \\*$//
340 s/$/:/
341 p
342 }' "$tmpdepfile" >> "$depfile"
331343 else
332344 echo "#dummy" > "$depfile"
333345 fi
403415
404416 # Remove the call to Libtool.
405417 if test "$libtool" = yes; then
406 while test $1 != '--mode=compile'; do
418 while test "X$1" != 'X--mode=compile'; do
407419 shift
408420 done
409421 shift
454466 "$@" || exit $?
455467 # Remove any Libtool call
456468 if test "$libtool" = yes; then
457 while test $1 != '--mode=compile'; do
469 while test "X$1" != 'X--mode=compile'; do
458470 shift
459471 done
460472 shift
461473 fi
462474 # X makedepend
463475 shift
464 cleared=no
465 for arg in "$@"; do
476 cleared=no eat=no
477 for arg
478 do
466479 case $cleared in
467480 no)
468481 set ""; shift
469482 cleared=yes ;;
470483 esac
484 if test $eat = yes; then
485 eat=no
486 continue
487 fi
471488 case "$arg" in
472489 -D*|-I*)
473490 set fnord "$@" "$arg"; shift ;;
474491 # Strip any option that makedepend may not understand. Remove
475492 # the object too, otherwise makedepend will parse it as a source file.
493 -arch)
494 eat=yes ;;
476495 -*|$object)
477496 ;;
478497 *)
479498 set fnord "$@" "$arg"; shift ;;
480499 esac
481500 done
482 obj_suffix="`echo $object | sed 's/^.*\././'`"
501 obj_suffix=`echo "$object" | sed 's/^.*\././'`
483502 touch "$tmpdepfile"
484503 ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
485504 rm -f "$depfile"
499518
500519 # Remove the call to Libtool.
501520 if test "$libtool" = yes; then
502 while test $1 != '--mode=compile'; do
521 while test "X$1" != 'X--mode=compile'; do
503522 shift
504523 done
505524 shift
537556
538557 msvisualcpp)
539558 # Important note: in order to support this mode, a compiler *must*
540 # always write the preprocessed file to stdout, regardless of -o,
541 # because we must use -o when running libtool.
559 # always write the preprocessed file to stdout.
542560 "$@" || exit $?
561
562 # Remove the call to Libtool.
563 if test "$libtool" = yes; then
564 while test "X$1" != 'X--mode=compile'; do
565 shift
566 done
567 shift
568 fi
569
543570 IFS=" "
544571 for arg
545572 do
546573 case "$arg" in
574 -o)
575 shift
576 ;;
577 $object)
578 shift
579 ;;
547580 "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
548581 set fnord "$@"
549582 shift
556589 ;;
557590 esac
558591 done
559 "$@" -E |
560 sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
592 "$@" -E 2>/dev/null |
593 sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
561594 rm -f "$depfile"
562595 echo "$object : \\" > "$depfile"
563 . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
596 sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
564597 echo " " >> "$depfile"
565 . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile"
598 sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
566599 rm -f "$tmpdepfile"
600 ;;
601
602 msvcmsys)
603 # This case exists only to let depend.m4 do its work. It works by
604 # looking at the text of this script. This case will never be run,
605 # since it is checked for above.
606 exit 1
567607 ;;
568608
569609 none)
584624 # eval: (add-hook 'write-file-hooks 'time-stamp)
585625 # time-stamp-start: "scriptversion="
586626 # time-stamp-format: "%:y-%02m-%02d.%02H"
587 # time-stamp-end: "$"
627 # time-stamp-time-zone: "UTC"
628 # time-stamp-end: "; # UTC"
588629 # End:
0 # Makefile.in generated by automake 1.10.1 from Makefile.am.
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
11 # @configure_input@
22
33 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
56 # This Makefile.in is free software; the Free Software Foundation
67 # gives unlimited permission to copy and/or distribute it,
78 # with or without modifications, as long as this notice is preserved.
1617 # Makefile for pilotpdb documentation.
1718 VPATH = @srcdir@
1819 pkgdatadir = $(datadir)/@PACKAGE@
20 pkgincludedir = $(includedir)/@PACKAGE@
1921 pkglibdir = $(libdir)/@PACKAGE@
20 pkgincludedir = $(includedir)/@PACKAGE@
22 pkglibexecdir = $(libexecdir)/@PACKAGE@
2123 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
2224 install_sh_DATA = $(install_sh) -c -m 644
2325 install_sh_PROGRAM = $(install_sh) -c
3840 $(ACLOCAL_M4)
3941 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
4042 CONFIG_CLEAN_FILES =
43 CONFIG_CLEAN_VPATH_FILES =
4144 SOURCES =
4245 DIST_SOURCES =
4346 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
5760 CPPFLAGS = @CPPFLAGS@
5861 CYGPATH_W = @CYGPATH_W@
5962 DATADIRNAME = @DATADIRNAME@
60 DBUSGLIB_CFLAGS = @DBUSGLIB_CFLAGS@
61 DBUSGLIB_LIBS = @DBUSGLIB_LIBS@
6263 DEFS = @DEFS@
6364 DEPDIR = @DEPDIR@
6465 ECHO_C = @ECHO_C@
6970 GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
7071 GMOFILES = @GMOFILES@
7172 GMSGFMT = @GMSGFMT@
72 GNOMEUI_CFLAGS = @GNOMEUI_CFLAGS@
73 GNOMEUI_LIBS = @GNOMEUI_LIBS@
7473 GN_CFLAGS = @GN_CFLAGS@
7574 GN_LIBS = @GN_LIBS@
7675 GREP = @GREP@
77 HAL_CFLAGS = @HAL_CFLAGS@
78 HAL_LIBS = @HAL_LIBS@
76 GUDEV_CFLAGS = @GUDEV_CFLAGS@
77 GUDEV_LIBS = @GUDEV_LIBS@
7978 INSTALL = @INSTALL@
8079 INSTALL_DATA = @INSTALL_DATA@
8180 INSTALL_PROGRAM = @INSTALL_PROGRAM@
8382 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
8483 INSTOBJEXT = @INSTOBJEXT@
8584 INTLLIBS = @INTLLIBS@
86 INTLTOOL_CAVES_RULE = @INTLTOOL_CAVES_RULE@
87 INTLTOOL_DESKTOP_RULE = @INTLTOOL_DESKTOP_RULE@
88 INTLTOOL_DIRECTORY_RULE = @INTLTOOL_DIRECTORY_RULE@
8985 INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
90 INTLTOOL_KBD_RULE = @INTLTOOL_KBD_RULE@
91 INTLTOOL_KEYS_RULE = @INTLTOOL_KEYS_RULE@
9286 INTLTOOL_MERGE = @INTLTOOL_MERGE@
93 INTLTOOL_OAF_RULE = @INTLTOOL_OAF_RULE@
9487 INTLTOOL_PERL = @INTLTOOL_PERL@
95 INTLTOOL_POLICY_RULE = @INTLTOOL_POLICY_RULE@
96 INTLTOOL_PONG_RULE = @INTLTOOL_PONG_RULE@
97 INTLTOOL_PROP_RULE = @INTLTOOL_PROP_RULE@
98 INTLTOOL_SCHEMAS_RULE = @INTLTOOL_SCHEMAS_RULE@
99 INTLTOOL_SERVER_RULE = @INTLTOOL_SERVER_RULE@
100 INTLTOOL_SERVICE_RULE = @INTLTOOL_SERVICE_RULE@
101 INTLTOOL_SHEET_RULE = @INTLTOOL_SHEET_RULE@
102 INTLTOOL_SOUNDLIST_RULE = @INTLTOOL_SOUNDLIST_RULE@
103 INTLTOOL_THEME_RULE = @INTLTOOL_THEME_RULE@
104 INTLTOOL_UI_RULE = @INTLTOOL_UI_RULE@
10588 INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
106 INTLTOOL_XAM_RULE = @INTLTOOL_XAM_RULE@
107 INTLTOOL_XML_NOMERGE_RULE = @INTLTOOL_XML_NOMERGE_RULE@
108 INTLTOOL_XML_RULE = @INTLTOOL_XML_RULE@
10989 LDFLAGS = @LDFLAGS@
11090 LIBOBJS = @LIBOBJS@
11191 LIBS = @LIBS@
125105 PACKAGE_NAME = @PACKAGE_NAME@
126106 PACKAGE_STRING = @PACKAGE_STRING@
127107 PACKAGE_TARNAME = @PACKAGE_TARNAME@
108 PACKAGE_URL = @PACKAGE_URL@
128109 PACKAGE_VERSION = @PACKAGE_VERSION@
129110 PATH_SEPARATOR = @PATH_SEPARATOR@
130111 PKG_CONFIG = @PKG_CONFIG@
112 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
113 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
131114 POFILES = @POFILES@
132115 POSUB = @POSUB@
133116 PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@
192175 @for dep in $?; do \
193176 case '$(am__configure_deps)' in \
194177 *$$dep*) \
195 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
196 && exit 0; \
178 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
179 && { if test -f $@; then exit 0; else break; fi; }; \
197180 exit 1;; \
198181 esac; \
199182 done; \
200 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile'; \
201 cd $(top_srcdir) && \
202 $(AUTOMAKE) --gnu doc/Makefile
183 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile'; \
184 $(am__cd) $(top_srcdir) && \
185 $(AUTOMAKE) --gnu doc/Makefile
203186 .PRECIOUS: Makefile
204187 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
205188 @case '$?' in \
217200 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
218201 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
219202 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
203 $(am__aclocal_m4_deps):
220204 tags: TAGS
221205 TAGS:
222206
240224 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
241225 if test -d $$d/$$file; then \
242226 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
227 if test -d "$(distdir)/$$file"; then \
228 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
229 fi; \
243230 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
244 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
231 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
232 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
245233 fi; \
246 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
234 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
247235 else \
248 test -f $(distdir)/$$file \
249 || cp -p $$d/$$file $(distdir)/$$file \
236 test -f "$(distdir)/$$file" \
237 || cp -p $$d/$$file "$(distdir)/$$file" \
250238 || exit 1; \
251239 fi; \
252240 done
274262
275263 distclean-generic:
276264 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
265 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
277266
278267 maintainer-clean-generic:
279268 @echo "This command is intended for maintainers to use"
292281
293282 html: html-am
294283
284 html-am:
285
295286 info: info-am
296287
297288 info-am:
300291
301292 install-dvi: install-dvi-am
302293
294 install-dvi-am:
295
303296 install-exec-am:
304297
305298 install-html: install-html-am
306299
300 install-html-am:
301
307302 install-info: install-info-am
308303
304 install-info-am:
305
309306 install-man:
310307
311308 install-pdf: install-pdf-am
312309
310 install-pdf-am:
311
313312 install-ps: install-ps-am
313
314 install-ps-am:
314315
315316 installcheck-am:
316317
346347
347348
348349 # EXTRA_DIST = foo.txt
350
349351 # Tell versions [3.59,3.63) of GNU make to not export all variables.
350352 # Otherwise a system limit (for SysV at least) may be exceeded.
351353 .NOEXPORT:
66 Name[fi]=Gnomad 2
77 Name[fr]=Gnomad 2
88 Name[it]=Gnomad 2
9 Name[nb]=Gnomad 2
910 Name[nl]=Gnomad 2
10 Name[no]=Gnomad 2
1111 Name[pl]=Gnomad 2
1212 Name[sco]=Gnomad 2
1313 Name[sv]=Gnomad 2
00 #!/bin/sh
11 # install - install a program, script, or datafile
22
3 scriptversion=2006-12-25.00
3 scriptversion=2009-04-28.21; # UTC
44
55 # This originates from X11R5 (mit/util/scripts/install.sh), which was
66 # later released in X11R6 (xc/config/util/install.sh) with the
514514 # eval: (add-hook 'write-file-hooks 'time-stamp)
515515 # time-stamp-start: "scriptversion="
516516 # time-stamp-format: "%:y-%02m-%02d.%02H"
517 # time-stamp-end: "$"
517 # time-stamp-time-zone: "UTC"
518 # time-stamp-end: "; # UTC"
518519 # End:
00 #! /bin/sh
11 # Common stub for a few missing GNU programs while installing.
22
3 scriptversion=2006-05-10.23
4
5 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006
6 # Free Software Foundation, Inc.
3 scriptversion=2009-04-28.21; # UTC
4
5 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
6 # 2008, 2009 Free Software Foundation, Inc.
77 # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
88
99 # This program is free software; you can redistribute it and/or modify
1717 # GNU General Public License for more details.
1818
1919 # You should have received a copy of the GNU General Public License
20 # along with this program; if not, write to the Free Software
21 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
22 # 02110-1301, USA.
20 # along with this program. If not, see <http://www.gnu.org/licenses/>.
2321
2422 # As a special exception to the GNU General Public License, if you
2523 # distribute this file as part of a program that contains a
8886 tar try tar, gnutar, gtar, then tar without non-portable flags
8987 yacc create \`y.tab.[ch]', if possible, from existing .[ch]
9088
89 Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
90 \`g' are ignored when checking the name.
91
9192 Send bug reports to <bug-automake@gnu.org>."
9293 exit $?
9394 ;;
105106
106107 esac
107108
109 # normalize program name to check for.
110 program=`echo "$1" | sed '
111 s/^gnu-//; t
112 s/^gnu//; t
113 s/^g//; t'`
114
108115 # Now exit if we have it, but it failed. Also exit now if we
109116 # don't have it and --version was passed (most likely to detect
110 # the program).
117 # the program). This is about non-GNU programs, so use $1 not
118 # $program.
111119 case $1 in
112 lex|yacc)
120 lex*|yacc*)
113121 # Not GNU programs, they don't have --version.
114122 ;;
115123
116 tar)
124 tar*)
117125 if test -n "$run"; then
118126 echo 1>&2 "ERROR: \`tar' requires --run"
119127 exit 1
137145
138146 # If it does not exist, or fails to run (possibly an outdated version),
139147 # try to emulate it.
140 case $1 in
148 case $program in
141149 aclocal*)
142150 echo 1>&2 "\
143151 WARNING: \`$1' is $msg. You should only need it if
147155 touch aclocal.m4
148156 ;;
149157
150 autoconf)
158 autoconf*)
151159 echo 1>&2 "\
152160 WARNING: \`$1' is $msg. You should only need it if
153161 you modified \`${configure_ac}'. You might want to install the
156164 touch configure
157165 ;;
158166
159 autoheader)
167 autoheader*)
160168 echo 1>&2 "\
161169 WARNING: \`$1' is $msg. You should only need it if
162170 you modified \`acconfig.h' or \`${configure_ac}'. You might want
186194 while read f; do touch "$f"; done
187195 ;;
188196
189 autom4te)
197 autom4te*)
190198 echo 1>&2 "\
191199 WARNING: \`$1' is needed, but is $msg.
192200 You might have modified some files without having the
209217 fi
210218 ;;
211219
212 bison|yacc)
220 bison*|yacc*)
213221 echo 1>&2 "\
214222 WARNING: \`$1' $msg. You should only need it if
215223 you modified a \`.y' file. You may need the \`Bison' package
239247 fi
240248 ;;
241249
242 lex|flex)
250 lex*|flex*)
243251 echo 1>&2 "\
244252 WARNING: \`$1' is $msg. You should only need it if
245253 you modified a \`.l' file. You may need the \`Flex' package
262270 fi
263271 ;;
264272
265 help2man)
273 help2man*)
266274 echo 1>&2 "\
267275 WARNING: \`$1' is $msg. You should only need it if
268276 you modified a dependency of a manual page. You may need the
276284 else
277285 test -z "$file" || exec >$file
278286 echo ".ab help2man is required to generate this page"
279 exit 1
280 fi
281 ;;
282
283 makeinfo)
287 exit $?
288 fi
289 ;;
290
291 makeinfo*)
284292 echo 1>&2 "\
285293 WARNING: \`$1' is $msg. You should only need it if
286294 you modified a \`.texi' or \`.texinfo' file, or any other file
309317 touch $file
310318 ;;
311319
312 tar)
320 tar*)
313321 shift
314322
315323 # We have already tried tar in the generic part.
362370 # eval: (add-hook 'write-file-hooks 'time-stamp)
363371 # time-stamp-start: "scriptversion="
364372 # time-stamp-format: "%:y-%02m-%02d.%02H"
365 # time-stamp-end: "$"
373 # time-stamp-time-zone: "UTC"
374 # time-stamp-end: "; # UTC"
366375 # End:
2020 PACKAGE = @PACKAGE@
2121 VERSION = @VERSION@
2222
23 SHELL = /bin/sh
23 SHELL = @SHELL@
2424
2525 srcdir = @srcdir@
2626 top_srcdir = @top_srcdir@
5555
5656 PO_LINGUAS=$(shell if test -r $(srcdir)/LINGUAS; then grep -v "^\#" $(srcdir)/LINGUAS; else echo "$(ALL_LINGUAS)"; fi)
5757
58 USER_LINGUAS=$(shell if test -n "$(LINGUAS)"; then LLINGUAS="$(LINGUAS)"; ALINGUAS="$(ALL_LINGUAS)"; for lang in $$LLINGUAS; do if test -n "`grep ^$$lang$$ $(srcdir)/LINGUAS 2>/dev/null`" -o -n "`echo $$ALINGUAS|tr ' ' '\n'|grep ^$$lang$$`"; then printf "$$lang "; fi; done; fi)
58 USER_LINGUAS=$(shell if test -n "$(LINGUAS)"; then LLINGUAS="$(LINGUAS)"; ALINGUAS="$(ALL_LINGUAS)"; for lang in $$LLINGUAS; do if test -n "`grep \^$$lang$$ $(srcdir)/LINGUAS 2>/dev/null`" -o -n "`echo $$ALINGUAS|tr ' ' '\n'|grep \^$$lang$$`"; then printf "$$lang "; fi; done; fi)
5959
6060 USE_LINGUAS=$(shell if test -n "$(USER_LINGUAS)" -o -n "$(LINGUAS)"; then LLINGUAS="$(USER_LINGUAS)"; else if test -n "$(PO_LINGUAS)"; then LLINGUAS="$(PO_LINGUAS)"; else LLINGUAS="$(ALL_LINGUAS)"; fi; fi; for lang in $$LLINGUAS; do printf "$$lang "; done)
6161
128128 done
129129
130130 # Empty stubs to satisfy archaic automake needs
131 dvi info tags TAGS ID:
131 dvi info ctags tags CTAGS TAGS ID:
132132
133133 # Define this as empty until I found a useful application.
134134 install-exec installcheck:
11
22 INCLUDES = \
33 @GN_CFLAGS@ \
4 @GNOMEUI_CFLAGS@ \
54 @TAG_CFLAGS@ \
65 @MTP_CFLAGS@ \
7 @DBUSGLIB_CFLAGS@ \
8 @HAL_CFLAGS@ \
96 @TAGLIB_CFLAGS@ \
7 @GUDEV_CFLAGS@ \
108 -DPREFIX=\"$(prefix)\" \
119 -DSYSCONFDIR=\"$(sysconfdir)\" \
1210 -DDATADIR=\"$(datadir)\" \
1513
1614 LDADD = \
1715 @GN_LIBS@ \
18 @GNOMEUI_LIBS@ \
1916 @TAG_LIBS@ \
2017 @MTP_LIBS@ \
21 @DBUSGLIB_LIBS@ \
22 @HAL_LIBS@ \
23 @TAGLIB_LIBS@
18 @TAGLIB_LIBS@ \
19 @GUDEV_LIBS@
2420
2521 bin_PROGRAMS = gnomad2
2622
3430 data.c data.h player.c player.h common.h \
3531 metadata.c metadata.h \
3632 wmaread.c wmaread.h \
37 riffile.c riffile.h
33 riffile.c riffile.h
3834
3935 if TAGLIB_COMPILE
4036 gnomad2_SOURCES += tagfile.c tagfile.h
0 # Makefile.in generated by automake 1.10.1 from Makefile.am.
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
11 # @configure_input@
22
33 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
56 # This Makefile.in is free software; the Free Software Foundation
67 # gives unlimited permission to copy and/or distribute it,
78 # with or without modifications, as long as this notice is preserved.
1516
1617 VPATH = @srcdir@
1718 pkgdatadir = $(datadir)/@PACKAGE@
19 pkgincludedir = $(includedir)/@PACKAGE@
1820 pkglibdir = $(libdir)/@PACKAGE@
19 pkgincludedir = $(includedir)/@PACKAGE@
21 pkglibexecdir = $(libexecdir)/@PACKAGE@
2022 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
2123 install_sh_DATA = $(install_sh) -c -m 644
2224 install_sh_PROGRAM = $(install_sh) -c
3941 $(ACLOCAL_M4)
4042 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
4143 CONFIG_CLEAN_FILES =
44 CONFIG_CLEAN_VPATH_FILES =
4245 am__installdirs = "$(DESTDIR)$(bindir)"
43 binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
4446 PROGRAMS = $(bin_PROGRAMS)
4547 am__gnomad2_SOURCES_DIST = id3read.c id3read.h gnomad2.c prefs.c \
4648 prefs.h filenaming.c filenaming.h jukebox.c jukebox.h util.c \
6163 DEFAULT_INCLUDES = -I.@am__isrc@
6264 depcomp = $(SHELL) $(top_srcdir)/depcomp
6365 am__depfiles_maybe = depfiles
66 am__mv = mv -f
6467 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
6568 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
6669 CCLD = $(CC)
8689 CPPFLAGS = @CPPFLAGS@
8790 CYGPATH_W = @CYGPATH_W@
8891 DATADIRNAME = @DATADIRNAME@
89 DBUSGLIB_CFLAGS = @DBUSGLIB_CFLAGS@
90 DBUSGLIB_LIBS = @DBUSGLIB_LIBS@
9192 DEFS = @DEFS@
9293 DEPDIR = @DEPDIR@
9394 ECHO_C = @ECHO_C@
9899 GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
99100 GMOFILES = @GMOFILES@
100101 GMSGFMT = @GMSGFMT@
101 GNOMEUI_CFLAGS = @GNOMEUI_CFLAGS@
102 GNOMEUI_LIBS = @GNOMEUI_LIBS@
103102 GN_CFLAGS = @GN_CFLAGS@
104103 GN_LIBS = @GN_LIBS@
105104 GREP = @GREP@
106 HAL_CFLAGS = @HAL_CFLAGS@
107 HAL_LIBS = @HAL_LIBS@
105 GUDEV_CFLAGS = @GUDEV_CFLAGS@
106 GUDEV_LIBS = @GUDEV_LIBS@
108107 INSTALL = @INSTALL@
109108 INSTALL_DATA = @INSTALL_DATA@
110109 INSTALL_PROGRAM = @INSTALL_PROGRAM@
112111 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
113112 INSTOBJEXT = @INSTOBJEXT@
114113 INTLLIBS = @INTLLIBS@
115 INTLTOOL_CAVES_RULE = @INTLTOOL_CAVES_RULE@
116 INTLTOOL_DESKTOP_RULE = @INTLTOOL_DESKTOP_RULE@
117 INTLTOOL_DIRECTORY_RULE = @INTLTOOL_DIRECTORY_RULE@
118114 INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
119 INTLTOOL_KBD_RULE = @INTLTOOL_KBD_RULE@
120 INTLTOOL_KEYS_RULE = @INTLTOOL_KEYS_RULE@
121115 INTLTOOL_MERGE = @INTLTOOL_MERGE@
122 INTLTOOL_OAF_RULE = @INTLTOOL_OAF_RULE@
123116 INTLTOOL_PERL = @INTLTOOL_PERL@
124 INTLTOOL_POLICY_RULE = @INTLTOOL_POLICY_RULE@
125 INTLTOOL_PONG_RULE = @INTLTOOL_PONG_RULE@
126 INTLTOOL_PROP_RULE = @INTLTOOL_PROP_RULE@
127 INTLTOOL_SCHEMAS_RULE = @INTLTOOL_SCHEMAS_RULE@
128 INTLTOOL_SERVER_RULE = @INTLTOOL_SERVER_RULE@
129 INTLTOOL_SERVICE_RULE = @INTLTOOL_SERVICE_RULE@
130 INTLTOOL_SHEET_RULE = @INTLTOOL_SHEET_RULE@
131 INTLTOOL_SOUNDLIST_RULE = @INTLTOOL_SOUNDLIST_RULE@
132 INTLTOOL_THEME_RULE = @INTLTOOL_THEME_RULE@
133 INTLTOOL_UI_RULE = @INTLTOOL_UI_RULE@
134117 INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
135 INTLTOOL_XAM_RULE = @INTLTOOL_XAM_RULE@
136 INTLTOOL_XML_NOMERGE_RULE = @INTLTOOL_XML_NOMERGE_RULE@
137 INTLTOOL_XML_RULE = @INTLTOOL_XML_RULE@
138118 LDFLAGS = @LDFLAGS@
139119 LIBOBJS = @LIBOBJS@
140120 LIBS = @LIBS@
154134 PACKAGE_NAME = @PACKAGE_NAME@
155135 PACKAGE_STRING = @PACKAGE_STRING@
156136 PACKAGE_TARNAME = @PACKAGE_TARNAME@
137 PACKAGE_URL = @PACKAGE_URL@
157138 PACKAGE_VERSION = @PACKAGE_VERSION@
158139 PATH_SEPARATOR = @PATH_SEPARATOR@
159140 PKG_CONFIG = @PKG_CONFIG@
141 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
142 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
160143 POFILES = @POFILES@
161144 POSUB = @POSUB@
162145 PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@
217200 MAINTAINERCLEANFILES = Makefile.in
218201 INCLUDES = \
219202 @GN_CFLAGS@ \
220 @GNOMEUI_CFLAGS@ \
221203 @TAG_CFLAGS@ \
222204 @MTP_CFLAGS@ \
223 @DBUSGLIB_CFLAGS@ \
224 @HAL_CFLAGS@ \
225205 @TAGLIB_CFLAGS@ \
206 @GUDEV_CFLAGS@ \
226207 -DPREFIX=\"$(prefix)\" \
227208 -DSYSCONFDIR=\"$(sysconfdir)\" \
228209 -DDATADIR=\"$(datadir)\" \
231212
232213 LDADD = \
233214 @GN_LIBS@ \
234 @GNOMEUI_LIBS@ \
235215 @TAG_LIBS@ \
236216 @MTP_LIBS@ \
237 @DBUSGLIB_LIBS@ \
238 @HAL_LIBS@ \
239 @TAGLIB_LIBS@
217 @TAGLIB_LIBS@ \
218 @GUDEV_LIBS@
240219
241220 gnomad2_SOURCES = id3read.c id3read.h gnomad2.c prefs.c prefs.h \
242221 filenaming.c filenaming.h jukebox.c jukebox.h util.c util.h \
252231 @for dep in $?; do \
253232 case '$(am__configure_deps)' in \
254233 *$$dep*) \
255 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
256 && exit 0; \
234 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
235 && { if test -f $@; then exit 0; else break; fi; }; \
257236 exit 1;; \
258237 esac; \
259238 done; \
260 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \
261 cd $(top_srcdir) && \
262 $(AUTOMAKE) --gnu src/Makefile
239 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \
240 $(am__cd) $(top_srcdir) && \
241 $(AUTOMAKE) --gnu src/Makefile
263242 .PRECIOUS: Makefile
264243 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
265244 @case '$?' in \
277256 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
278257 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
279258 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
259 $(am__aclocal_m4_deps):
280260 install-binPROGRAMS: $(bin_PROGRAMS)
281261 @$(NORMAL_INSTALL)
282262 test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
283 @list='$(bin_PROGRAMS)'; for p in $$list; do \
284 p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
285 if test -f $$p \
286 ; then \
287 f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
288 echo " $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
289 $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
290 else :; fi; \
291 done
263 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
264 for p in $$list; do echo "$$p $$p"; done | \
265 sed 's/$(EXEEXT)$$//' | \
266 while read p p1; do if test -f $$p; \
267 then echo "$$p"; echo "$$p"; else :; fi; \
268 done | \
269 sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \
270 -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
271 sed 'N;N;N;s,\n, ,g' | \
272 $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
273 { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
274 if ($$2 == $$4) files[d] = files[d] " " $$1; \
275 else { print "f", $$3 "/" $$4, $$1; } } \
276 END { for (d in files) print "f", d, files[d] }' | \
277 while read type dir files; do \
278 if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
279 test -z "$$files" || { \
280 echo " $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
281 $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
282 } \
283 ; done
292284
293285 uninstall-binPROGRAMS:
294286 @$(NORMAL_UNINSTALL)
295 @list='$(bin_PROGRAMS)'; for p in $$list; do \
296 f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
297 echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
298 rm -f "$(DESTDIR)$(bindir)/$$f"; \
299 done
287 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
288 files=`for p in $$list; do echo "$$p"; done | \
289 sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
290 -e 's/$$/$(EXEEXT)/' `; \
291 test -n "$$list" || exit 0; \
292 echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
293 cd "$(DESTDIR)$(bindir)" && rm -f $$files
300294
301295 clean-binPROGRAMS:
302296 -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
330324
331325 .c.o:
332326 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
333 @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
327 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
334328 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
335329 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
336330 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
337331
338332 .c.obj:
339333 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
340 @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
334 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
341335 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
342336 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
343337 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
347341 unique=`for i in $$list; do \
348342 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
349343 done | \
350 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
344 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
351345 END { if (nonempty) { for (i in files) print i; }; }'`; \
352346 mkid -fID $$unique
353347 tags: TAGS
354348
355349 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
356350 $(TAGS_FILES) $(LISP)
357 tags=; \
351 set x; \
358352 here=`pwd`; \
359353 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
360354 unique=`for i in $$list; do \
362356 done | \
363357 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
364358 END { if (nonempty) { for (i in files) print i; }; }'`; \
365 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
359 shift; \
360 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
366361 test -n "$$unique" || unique=$$empty_fix; \
367 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
368 $$tags $$unique; \
362 if test $$# -gt 0; then \
363 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
364 "$$@" $$unique; \
365 else \
366 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
367 $$unique; \
368 fi; \
369369 fi
370370 ctags: CTAGS
371371 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
372372 $(TAGS_FILES) $(LISP)
373 tags=; \
374373 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
375374 unique=`for i in $$list; do \
376375 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
377376 done | \
378377 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
379378 END { if (nonempty) { for (i in files) print i; }; }'`; \
380 test -z "$(CTAGS_ARGS)$$tags$$unique" \
379 test -z "$(CTAGS_ARGS)$$unique" \
381380 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
382 $$tags $$unique
381 $$unique
383382
384383 GTAGS:
385384 here=`$(am__cd) $(top_builddir) && pwd` \
386 && cd $(top_srcdir) \
387 && gtags -i $(GTAGS_ARGS) $$here
385 && $(am__cd) $(top_srcdir) \
386 && gtags -i $(GTAGS_ARGS) "$$here"
388387
389388 distclean-tags:
390389 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
405404 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
406405 if test -d $$d/$$file; then \
407406 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
407 if test -d "$(distdir)/$$file"; then \
408 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
409 fi; \
408410 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
409 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
411 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
412 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
410413 fi; \
411 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
414 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
412415 else \
413 test -f $(distdir)/$$file \
414 || cp -p $$d/$$file $(distdir)/$$file \
416 test -f "$(distdir)/$$file" \
417 || cp -p $$d/$$file "$(distdir)/$$file" \
415418 || exit 1; \
416419 fi; \
417420 done
442445
443446 distclean-generic:
444447 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
448 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
445449
446450 maintainer-clean-generic:
447451 @echo "This command is intended for maintainers to use"
463467
464468 html: html-am
465469
470 html-am:
471
466472 info: info-am
467473
468474 info-am:
471477
472478 install-dvi: install-dvi-am
473479
480 install-dvi-am:
481
474482 install-exec-am: install-binPROGRAMS
475483
476484 install-html: install-html-am
477485
486 install-html-am:
487
478488 install-info: install-info-am
479489
490 install-info-am:
491
480492 install-man:
481493
482494 install-pdf: install-pdf-am
483495
496 install-pdf-am:
497
484498 install-ps: install-ps-am
499
500 install-ps-am:
485501
486502 installcheck-am:
487503
519535 mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \
520536 uninstall-am uninstall-binPROGRAMS
521537
538
522539 # Tell versions [3.59,3.63) of GNU make to not export all variables.
523540 # Otherwise a system limit (for SysV at least) may be exceeded.
524541 .NOEXPORT:
00 /* common.h
11 Shared header file for the GNOMAD package
2 Copyright (C) 2001-2007 Linus Walleij
2 Copyright (C) 2001-2011 Linus Walleij
33
44 This file is part of the GNOMAD package.
55
1111 You should have received a copy of the GNU General Public License
1212 along with Yelah xmltools; see the file COPYING. If not, write to
1313 the Free Software Foundation, 59 Temple Place - Suite 330,
14 Boston, MA 02111-1307, USA.
14 Boston, MA 02111-1307, USA.
1515
1616 */
1717
1818 #ifndef COMMON_INCLUDED
19 #define COMMON_INCLUDED 1
19 #define COMMON_INCLUDED
2020
21 // #include "config.h"
2221 #include <stdio.h>
2322 #if HAVE_STRING_H
2423 # include <string.h>
4342 #define gettext(String) (String)
4443 #define dgettext(Domain,String) (String)
4544 #define dcgettext(Domain,String,Type) (String)
46 #define bindtextdomain(Domain,Directory) (Domain)
47 #define bind_textdomain_codeset(Domain,Codeset) (Codeset)
45 #define bindtextdomain(Domain,Directory) (Domain)
46 #define bind_textdomain_codeset(Domain,Codeset) (Codeset)
4847 #endif /* ENABLE_NLS */
4948
5049 /* The GTK library */
5150 #include <gtk/gtk.h>
51 #include <gdk/gdk.h>
5252 #include <gdk/gdkkeysyms.h>
5353
5454 /* Macros lacking in GTK+ */
7878 #define GNOMAD_DIRECTORY_FOLDER_ENTRY_COLOR "blue"
7979 #define GNOMAD_DIRECTORY_FOLDER_ENTRY_WEIGHT "bold"
8080 #define GNOMAD_DIRECTORY_FOLDER_ENTRY_STYLE NULL
81 /*
81 /*
8282 * Example high contrast colors and style.
8383 * comment these in and comment out the lines above
8484 * to activate a high-visibility style.
9494
9595 /* Globally useful structures */
9696
97 typedef struct OptionMenuItem {
98 const gchar *name;
99 GtkSignalFunc func;
100 } OptionMenuItem;
101
102 typedef struct
97 typedef struct
10398 {
10499 GtkListStore *hdliststore;
105100 GtkListStore *jbliststore;
111106 GList *history;
112107 } transfer_widgets_t;
113108
114 typedef struct
109 typedef struct
115110 {
116111 GtkListStore *hdliststore;
117112 GtkListStore *jbliststore;
124119 GList *history;
125120 } data_widgets_t;
126121
127 typedef struct
122 typedef struct
128123 {
129124 GtkTreeStore *pltreestore;
130125 GtkWidget *pltreeview;
154149 /* Global debug level variable (standard = 7) */
155150 gint gnomad_debug;
156151
157 #if GTK_CHECK_VERSION(2,6,0)
158152 /* A proc for hiding dialog windows */
159153 GCallback dispose_of_dialog_window(GtkButton * button, gpointer data);
160 #endif
161154
162155 /* THIS PROBABLY BELONGS IN A DIFFERENT HEADER.
163156 * THIS IS THE ONLY EXTERNAL FUNCTION DEFINED IN gnomad2.c (other than main).
00 /* data.c
11 Data transferring window widgets and callbacks
2 Copyright (C) 2001 Linus Walleij
2 Copyright (C) 2001-2011 Linus Walleij
33
44 This file is part of the GNOMAD package.
55
1111 You should have received a copy of the GNU General Public License
1212 along with GNOMAD; see the file COPYING. If not, write to
1313 the Free Software Foundation, 59 Temple Place - Suite 330,
14 Boston, MA 02111-1307, USA.
14 Boston, MA 02111-1307, USA.
1515
1616 */
1717
2121 #include "data.h"
2222 #include "util.h"
2323
24 #if !GTK_CHECK_VERSION(2,6,0)
25 #include <libgnomeui/libgnomeui.h>
26 #endif
27
2824 static GtkWidget *new_folder_dialog;
2925 static GtkWidget *new_folder_entry;
3026
4642 if (metalist != NULL) {
4743 GtkWidget *label1, *label2, *dialog, *button, *separator;
4844
49 #if !GTK_CHECK_VERSION(2,6,0)
50 dialog = gnome_dialog_new(_("Transferring files from jukebox file storage"),
51 GNOME_STOCK_BUTTON_CANCEL,
52 NULL);
53 gnome_dialog_button_connect(GNOME_DIALOG(dialog),
54 0,
55 G_CALLBACK(cancel_jukebox_operation_click),
56 NULL);
57 #else
5845 dialog = gtk_dialog_new_with_buttons(_("Transferring files from jukebox file storage"),
5946 NULL,
6047 0,
6653 "clicked",
6754 G_CALLBACK(cancel_jukebox_operation_click),
6855 NULL);
69 #endif
7056 g_signal_connect_object(GTK_OBJECT(dialog),
7157 "delete_event",
7258 G_CALLBACK(gtk_widget_destroy),
7763 label2 = gtk_label_new("");
7864 progress_bar = gtk_progress_bar_new();
7965 separator = gtk_hseparator_new();
80 #if !GTK_CHECK_VERSION(2,6,0)
81 gtk_box_pack_start(GTK_BOX(GNOME_DIALOG(dialog)->vbox), label1, TRUE, TRUE, 0);
82 gtk_box_pack_start(GTK_BOX(GNOME_DIALOG(dialog)->vbox), label2, TRUE, TRUE, 0);
83 gtk_box_pack_start(GTK_BOX(GNOME_DIALOG(dialog)->vbox), separator, TRUE, TRUE, 0);
84 gtk_box_pack_start(GTK_BOX(GNOME_DIALOG(dialog)->vbox), progress_bar, TRUE, TRUE, 0);
85 #else
8666 gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), label1, TRUE, TRUE, 0);
8767 gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), label2, TRUE, TRUE, 0);
8868 gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), separator, TRUE, TRUE, 0);
8969 gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), progress_bar, TRUE, TRUE, 0);
90 #endif
9170 gtk_widget_show_all(dialog);
92
71
9372 jb2hd_data_thread_args->dialog = dialog;
9473 jb2hd_data_thread_args->label = label2;
9574 jb2hd_data_thread_args->metalist = metalist;
11493 destroy_metalist(metalist);
11594 return NULL;
11695 }
117
96
11897 if (metalist != NULL) {
11998 GtkWidget *label1, *label2, *dialog, *button, *separator;
120 #if !GTK_CHECK_VERSION(2,6,0)
121 dialog = gnome_dialog_new(_("Transferring files to jukebox file storage"),
122 GNOME_STOCK_BUTTON_CANCEL,
123 NULL);
124 gnome_dialog_button_connect(GNOME_DIALOG(dialog),
125 0,
126 G_CALLBACK(cancel_jukebox_operation_click),
127 NULL);
128 #else
12999 dialog=gtk_dialog_new_with_buttons(_("Transferring files to jukebox file storage"),
130100 NULL,
131101 0,
132102 NULL);
133
103
134104 button = gtk_dialog_add_button(GTK_DIALOG(dialog),
135105 GTK_STOCK_CANCEL,
136106 0);
138108 "clicked",
139109 G_CALLBACK(cancel_jukebox_operation_click),
140110 NULL);
141 #endif
142111 g_signal_connect_object(GTK_OBJECT(dialog),
143112 "delete_event",
144113 G_CALLBACK(gtk_widget_destroy),
149118 label2 = gtk_label_new("");
150119 progress_bar = gtk_progress_bar_new();
151120 separator = gtk_hseparator_new();
152 #if !GTK_CHECK_VERSION(2,6,0)
153 gtk_box_pack_start(GTK_BOX(GNOME_DIALOG(dialog)->vbox), label1, TRUE, TRUE, 0);
154 gtk_box_pack_start(GTK_BOX(GNOME_DIALOG(dialog)->vbox), label2, TRUE, TRUE, 0);
155 gtk_box_pack_start(GTK_BOX(GNOME_DIALOG(dialog)->vbox), separator, TRUE, TRUE, 0);
156 gtk_box_pack_start(GTK_BOX(GNOME_DIALOG(dialog)->vbox), progress_bar, TRUE, TRUE, 0);
157 #else
158121 gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), label1, TRUE, TRUE, 0);
159122 gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), label2, TRUE, TRUE, 0);
160123 gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), separator, TRUE, TRUE, 0);
161124 gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), progress_bar, TRUE, TRUE, 0);
162 #endif
163125 gtk_widget_show_all(dialog);
164
126
165127 hd2jb_data_thread_args->dialog = dialog;
166128 hd2jb_data_thread_args->label = label2;
167129 hd2jb_data_thread_args->metalist = metalist;
171133 }
172134 return NULL;
173135 }
136
137 #define MAX_HISTORY 10
174138
175139 static void add_to_history (gchar *string)
176140 {
186150 /* Else add it */
187151 data_widgets.history
188152 = g_list_prepend (data_widgets.history, string);
189 /* Do not remember more than 5 strings */
190 while (g_list_length(history) > 5)
153 /* Do not remember more than MAX_HISTORY strings */
154 while (g_list_length(history) > MAX_HISTORY)
191155 {
192156 GList *elem;
193157
197161 }
198162 }
199163
164 static void set_popup_history(GtkWidget *combo)
165 {
166 GList *history = data_widgets.history;
167
168 #if GTK_CHECK_VERSION(3,0,0)
169 // Use the new combobox abstractions in 3.0 and later
170 gtk_combo_box_text_remove_all(GTK_COMBO_BOX_TEXT(combo));
171 while (history) {
172 gtk_combo_box_text_append_text(GTK_COMBO_BOX_TEXT(combo), history->data);
173 history = g_list_next(history);
174 }
175 #else
176 // Dead ugly code for older GTK
177 static gboolean firstrun = TRUE;
178 int i;
179
180 // Blank out all 5 entries
181 if (!firstrun) {
182 for (i = 0; i < MAX_HISTORY; i++) {
183 gtk_combo_box_remove_text(GTK_COMBO_BOX(combo), 0);
184 }
185 } else {
186 firstrun = FALSE;
187 }
188
189 for (i = 0; i < MAX_HISTORY; i++) {
190 if (history) {
191 gtk_combo_box_append_text(GTK_COMBO_BOX(combo), history->data);
192 history = g_list_next(history);
193 } else {
194 gtk_combo_box_append_text(GTK_COMBO_BOX(combo), "");
195 }
196 i++;
197 }
198 #endif
199 }
200
200201
201202 /* Response to the "rescan" call from the harddisk popup menu */
202203 static GCallback hdmenu_rescan_response(gpointer data)
218219 {
219220 if (request_confirmation_dialog(_("Really delete selected files?"))) {
220221 GList *metalist = get_all_metadata_from_selection(HDDATA_LIST);
221
222
222223 delete_files(metalist);
223224 remove_selected(HDDATA_LIST);
224225 destroy_metalist(metalist);
238239 return;
239240 }
240241
241 /* Get the size column. If this is zero,
242 /*
243 * Get the size column. If this is zero,
242244 * we're dealing with a directory! Only
243245 * directories of size 0 are allowed, no
244246 * files of size 0.
249251 change_directory(meta->path);
250252 path = get_current_dir();
251253 // Set the text in the box, then switch directory view
252 gtk_combo_set_popdown_strings (GTK_COMBO (combo), data_widgets.history);
253 gtk_entry_set_text (GTK_ENTRY (GTK_COMBO (combo)->entry), path);
254 set_popup_history(combo);
255 gtk_entry_set_text(GTK_ENTRY(gtk_bin_get_child(GTK_BIN(combo))), path);
254256 fill_in_dir(HDDATA_LIST, path);
255257 }
256258 destroy_metadata_t(meta);
265267 return;
266268 }
267269
268 /* Get the size column. If this is zero,
270 /*
271 * Get the size column. If this is zero,
269272 * we're dealing with a directory! Only
270273 * directories of size 0 are allowed, no
271274 * files of size 0.
272275 */
273276 if (meta->size == 0) {
274277 GtkWidget *entry = data_widgets.jbentry;
275
278
276279 // g_print("Changing directory to %s\n", meta->folder);
277280 rebuild_datafile_list(meta->folder);
278281 // Set the text in the box
281284 destroy_metadata_t(meta);
282285 }
283286
284 /* If we come here, then the user has selected a row in the
285 * harddisk file listing */
287 /*
288 * If we come here, then the user has selected a row in the
289 * harddisk file listing
290 */
286291 static GCallback hdlist_mouseevent(GtkWidget *widget,
287292 GdkEventButton *event,
288293 gpointer data )
292297 return (gpointer) 1;
293298 } else if (event->type == GDK_BUTTON_PRESS && event->button == 3) {
294299 GdkEventButton *bevent = (GdkEventButton *) event;
295
296 gtk_menu_popup (GTK_MENU (data_widgets.harddiskpopupmenu),
300
301 gtk_menu_popup (GTK_MENU (data_widgets.harddiskpopupmenu),
297302 NULL, NULL, NULL, NULL, bevent->button, bevent->time);
298303 return (gpointer) 1;
299304 }
304309 GdkEventKey *event,
305310 gpointer data )
306311 {
307 if (event->type == GDK_KEY_PRESS &&
312 if (event->type == GDK_KEY_PRESS &&
308313 (event->keyval == GDK_Return || event->keyval == GDK_KP_Enter)) {
309314 go_down();
310315 return (gpointer) 1;
352357 {
353358 GtkWidget *label, *button;
354359
355 #if !GTK_CHECK_VERSION(2,6,0)
356 new_folder_dialog = gnome_dialog_new(_("Create a new folder"),
357 GNOME_STOCK_BUTTON_CANCEL,
358 GNOME_STOCK_BUTTON_OK,
359 NULL);
360 gnome_dialog_button_connect_object(GNOME_DIALOG(new_folder_dialog),
361 0,
362 GTK_SIGNAL_FUNC(gtk_widget_destroy),
363 GTK_OBJECT(new_folder_dialog));
364 gnome_dialog_button_connect(GNOME_DIALOG(new_folder_dialog),
365 1,
366 GTK_SIGNAL_FUNC(create_new_folder_ok_button),
367 NULL);
368 #else
369360 new_folder_dialog=gtk_dialog_new_with_buttons(_("Create a new folder"),
370361 NULL,
371362 0,
376367 0);
377368 g_signal_connect(button,
378369 "clicked",
379 GTK_SIGNAL_FUNC(dispose_of_dialog_window),
370 G_CALLBACK(dispose_of_dialog_window),
380371 GTK_OBJECT(new_folder_dialog));
381372
382373 button = gtk_dialog_add_button(GTK_DIALOG(new_folder_dialog),
384375 1);
385376 g_signal_connect(button,
386377 "clicked",
387 GTK_SIGNAL_FUNC(create_new_folder_ok_button),
388 NULL);
389 #endif
378 G_CALLBACK(create_new_folder_ok_button),
379 NULL);
390380 gtk_window_set_position (GTK_WINDOW(new_folder_dialog), GTK_WIN_POS_MOUSE);
391381
392382 label = gtk_label_new(_("Choose a name for the new folder:"));
393 #if !GTK_CHECK_VERSION(2,6,0)
394 gtk_box_pack_start(GTK_BOX(GNOME_DIALOG(new_folder_dialog)->vbox), label, TRUE, TRUE, 0);
395 #else
396383 gtk_box_pack_start(GTK_BOX(GTK_DIALOG(new_folder_dialog)->vbox), label, TRUE, TRUE, 0);
397 #endif
398384 gtk_widget_show(label);
399385 new_folder_entry = gtk_entry_new();
400 #if !GTK_CHECK_VERSION(2,6,0)
401 gtk_box_pack_start(GTK_BOX(GNOME_DIALOG(new_folder_dialog)->vbox), new_folder_entry, TRUE, TRUE, 0);
402 #else
403386 gtk_box_pack_start(GTK_BOX(GTK_DIALOG(new_folder_dialog)->vbox), new_folder_entry, TRUE, TRUE, 0);
404 #endif
405387 gtk_widget_show(new_folder_entry);
406388
407 g_signal_connect(G_OBJECT (new_folder_dialog),
389 g_signal_connect(G_OBJECT (new_folder_dialog),
408390 "delete_event",
409391 G_CALLBACK(gtk_widget_destroy),
410392 G_OBJECT (new_folder_dialog));
419401 {
420402 if (request_confirmation_dialog(_("Really delete selected files?"))) {
421403 GList *metalist = get_all_metadata_from_selection(JBDATA_LIST);
422
404
423405 jukebox_delete_files(metalist);
424406 remove_selected(JBDATA_LIST);
425407 destroy_metalist(metalist);
428410 }
429411
430412
431 /* If we come here, then the user has selected a row in the
432 * jukebox files listing */
413 /*
414 * If we come here, then the user has selected a row in the
415 * jukebox files listing
416 */
433417 static GCallback jblist_mouseevent(GtkWidget *clist,
434418 GdkEventButton *event,
435419 gpointer data )
439423 return (gpointer) 1;
440424 } else if (event->type == GDK_BUTTON_PRESS && event->button == 3) {
441425 GdkEventButton *bevent = (GdkEventButton *) event;
442
426
443427 gtk_menu_popup (GTK_MENU (data_widgets.jukeboxpopupmenu),
444428 NULL, NULL, NULL, NULL, bevent->button, bevent->time);
445429 return (gpointer) 1;
448432 }
449433
450434
451 static int chdir_edit (GtkWidget * widget, gpointer data)
435 static int chdir_edit(GtkWidget * widget, gpointer data)
452436 {
453437 gchar *text, *tempstr, *path;
454438
455 text = (gchar *) gtk_entry_get_text (GTK_ENTRY (GTK_COMBO (data_widgets.combo)->entry));
439 #if GTK_CHECK_VERSION(2,24,0)
440 text = (gchar *) gtk_combo_box_text_get_active_text(GTK_COMBO_BOX_TEXT(data_widgets.combo));
441 #else
442 text = (gchar *) gtk_combo_box_get_active_text(GTK_COMBO_BOX(data_widgets.combo));
443 #endif
456444 if ((tempstr = expand_path (text)) == NULL) {
457445 g_free (tempstr);
458446 } else
465453 change_directory(text);
466454 /* Set the text in the box, then switch directory view */
467455 path = get_current_dir();
468 gtk_combo_set_popdown_strings(GTK_COMBO(data_widgets.combo), data_widgets.history);
469 gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(data_widgets.combo)->entry), path);
456 set_popup_history(data_widgets.combo);
457 gtk_entry_set_text(GTK_ENTRY(gtk_bin_get_child(GTK_BIN(data_widgets.combo))), path);
470458 fill_in_dir(HDDATA_LIST, path);
471459 return (FALSE);
472460 }
480468 metadata_t *meta = get_data_metadata_from_model(model, iter);
481469 if (meta->size == 0) {
482470 g_object_set(G_OBJECT(cell),
483 "foreground", GNOMAD_DIRECTORY_FOLDER_ENTRY_COLOR,
471 "foreground", GNOMAD_DIRECTORY_FOLDER_ENTRY_COLOR,
484472 "weight", GNOMAD_DIRECTORY_FOLDER_ENTRY_WEIGHT,
485473 "style", GNOMAD_DIRECTORY_FOLDER_ENTRY_STYLE,
486474 "underline", PANGO_UNDERLINE_SINGLE,
487475 NULL);
488476 } else {
489477 g_object_set(G_OBJECT(cell),
490 "foreground", GNOMAD_DIRECTORY_FILE_ENTRY_COLOR,
478 "foreground", GNOMAD_DIRECTORY_FILE_ENTRY_COLOR,
491479 "weight", GNOMAD_DIRECTORY_FILE_ENTRY_WEIGHT,
492480 "style", GNOMAD_DIRECTORY_FILE_ENTRY_STYLE,
493481 "underline", FALSE,
506494
507495 listview = gtk_tree_view_new_with_model (GTK_TREE_MODEL(liststore));
508496 gtk_tree_view_set_rules_hint(GTK_TREE_VIEW(listview), TRUE);
509
497
510498 dirtextrenderer = gtk_cell_renderer_text_new ();
511499 textrenderer = gtk_cell_renderer_text_new ();
512500 g_object_set(G_OBJECT(textrenderer),
513 "foreground", GNOMAD_DIRECTORY_FILE_ENTRY_COLOR,
501 "foreground", GNOMAD_DIRECTORY_FILE_ENTRY_COLOR,
514502 "weight", GNOMAD_DIRECTORY_FILE_ENTRY_WEIGHT,
515503 "style", GNOMAD_DIRECTORY_FILE_ENTRY_STYLE,
516504 "underline", FALSE,
582570
583571 data_widgets.history = NULL;
584572 /* Just add something to the history... */
585 data_widgets.history =
573 data_widgets.history =
586574 g_list_append (data_widgets.history, (gpointer) get_current_dir());
587
575
588576 /* The popup menu for the harddisk files */
589577 popupmenu = gtk_menu_new ();
590578 popupmenu_item = gtk_menu_item_new_with_label (_("Rescan jukebox"));
648636 0);
649637 gtk_widget_show (popupmenu_item);
650638 data_widgets.jukeboxpopupmenu = popupmenu;
651
639
652640 /* Then the panel (handle in the middle) */
653 panel = gtk_hpaned_new ();
654 leftbox = gtk_hbox_new (FALSE, 0);
655 left_vbox=gtk_vbox_new(FALSE, 0);
656 combo = gtk_combo_new ();
641 panel = gtk_hpaned_new();
642 leftbox = gtk_hbox_new(FALSE, 0);
643 left_vbox = gtk_vbox_new(FALSE, 0);
644
645 #if GTK_CHECK_VERSION(2,24,0)
646 // Use the new combo box type in 2.24 and later
647 combo = gtk_combo_box_text_new_with_entry();
648 #else
649 combo = gtk_combo_box_entry_new_text();
650 #endif
651
657652 data_widgets.combo = combo;
658 gtk_combo_set_case_sensitive (GTK_COMBO (combo), 1);
659 gtk_combo_set_popdown_strings (GTK_COMBO (combo), data_widgets.history);
653 set_popup_history(combo);
660654 gtk_box_pack_start(GTK_BOX(left_vbox), combo, FALSE, FALSE, 0);
661 g_signal_connect_object(GTK_OBJECT(GTK_COMBO(combo)->entry),
655 // signal "changed" on the combo directly will not work
656 g_signal_connect_object(GTK_OBJECT(gtk_bin_get_child(GTK_BIN(combo))),
662657 "activate",
663658 G_CALLBACK(chdir_edit),
664659 NULL,
665660 0);
666 gtk_combo_disable_activate (GTK_COMBO (combo));
667 gtk_entry_set_text (GTK_ENTRY (GTK_COMBO (combo)->entry), get_current_dir());
668 gtk_widget_show (combo);
661 gtk_entry_set_text(GTK_ENTRY(gtk_bin_get_child(GTK_BIN(combo))), get_current_dir());
662 gtk_widget_show(combo);
669663
670664 /* Create the stores and their views */
671665 hdlistview = create_listview(data_widgets.hdliststore);
695689 0);
696690
697691 /* Fill in and sort directory */
698 fill_in_dir(HDDATA_LIST, (gchar *) gtk_entry_get_text(GTK_ENTRY (GTK_COMBO (combo)->entry)));
692 #if GTK_CHECK_VERSION(2,24,0)
693 fill_in_dir(HDDATA_LIST, (gchar *) gtk_combo_box_text_get_active_text(GTK_COMBO_BOX_TEXT(combo)));
694 #else
695 fill_in_dir(HDDATA_LIST, (gchar *) gtk_combo_box_get_active_text(GTK_COMBO_BOX(combo)));
696 #endif
699697 view_and_sort_list_store(HDDATA_LIST);
700698
701699 /* Create a scrolled window for the harddisk files */
702700 scrolled_window = gtk_scrolled_window_new (NULL, NULL);
703701 gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled_window),
704702 GTK_POLICY_AUTOMATIC, GTK_POLICY_ALWAYS);
705
703
706704 /* Add the CList widget to the vertical box and show it. */
707705 gtk_container_add(GTK_CONTAINER(scrolled_window), hdlistview);
708706 gtk_widget_show(hdlistview);
714712 /* A vertical box for the transfer buttons */
715713 transfer_button_vbox=gtk_vbox_new(FALSE, 0);
716714 gtk_container_set_border_width(GTK_CONTAINER(transfer_button_vbox), 5);
717
715
718716 /* Add buttons to this vertical box */
719717 button = gtk_button_new();
720718 arrow = gtk_arrow_new(GTK_ARROW_RIGHT, GTK_SHADOW_NONE);
738736 0);
739737 gtk_box_pack_start(GTK_BOX(transfer_button_vbox), button, TRUE, FALSE, 0);
740738 gtk_widget_show(button);
741
739
742740 gtk_box_pack_start(GTK_BOX(leftbox), transfer_button_vbox, FALSE, FALSE, 0);
743741 gtk_paned_pack1 (GTK_PANED(panel), leftbox, TRUE, TRUE);
744742 gtk_widget_show(leftbox);
750748 scrolled_window = gtk_scrolled_window_new (NULL, NULL);
751749 gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled_window),
752750 GTK_POLICY_AUTOMATIC, GTK_POLICY_ALWAYS);
753
751
754752 /* Add the ListView widget to the vertical box and show it. */
755753 gtk_container_add(GTK_CONTAINER(scrolled_window), jblistview);
756754 gtk_widget_show(jblistview);
00 /* editmeta.c
11 Edit metadata for an mp3- or similar file
2 Copyright (C) 2001 Linus Walleij
2 Copyright (C) 2001-2011 Linus Walleij
33
44 This file is part of the GNOMAD package.
55
1111 You should have received a copy of the GNU General Public License
1212 along with GNOMAD; see the file COPYING. If not, write to
1313 the Free Software Foundation, 59 Temple Place - Suite 330,
14 Boston, MA 02111-1307, USA.
14 Boston, MA 02111-1307, USA.
1515
1616 */
1717
1818 #include "common.h"
19 /* The GNOME library - cannot be put in common as it
20 * disturbs the id3.cpp file */
21 #if !GTK_CHECK_VERSION(2,6,0)
22 #include <libgnomeui/libgnomeui.h>
23 #endif
24
2519 #include "filesystem.h"
2620 #include "jukebox.h"
2721 #include "xfer.h"
4741 static gchar *origfname;
4842 static gchar *folder;
4943 static gchar *protect;
50
51 /* Response to DELETE event (window destruction) */
52 // Not actually used
53 //static gint delete(GtkWidget *widget,
54 // GtkWidget *event,
55 // gpointer data)
56 //{
57 // if (metalist != NULL) {
58 // destroy_metalist(metalist);
59 // }
60 // metalist = NULL;
61 // gtk_grab_remove(edit_dialog);
62 // return(FALSE);
63 //}
6444
6545 static gchar *ret_nonull(gchar *retval)
6646 {
222202 if (changed) {
223203 /* Write the new tag */
224204 gchar tmp[512];
225
205
226206 /* First is artist, second is title */
227207 sprintf(tmp, _("Updating metadata on %s - %s"), newmeta->artist, newmeta->title);
228208 gtk_label_set_text(GTK_LABEL(edit_dialog_msglabel), tmp);
306286 {
307287 GList *tmplist = metalist;
308288 gchar *firstval;
309
289
310290 if (g_list_length(metalist) < 2)
311291 return TRUE;
312292 firstval = metalist_get_column(metalist, column);
327307
328308 static void add_to_dialog(GtkWidget *dialog, GtkWidget *thing)
329309 {
330 #if !GTK_CHECK_VERSION(2,6,0)
331 gtk_box_pack_start (GTK_BOX (GNOME_DIALOG (dialog)->vbox), thing, TRUE,
332 TRUE, 0);
333 #else
334310 gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->vbox), thing, TRUE,
335311 TRUE, 0);
336 #endif
337312 }
338313 /* Editing the metadata... */
339314 static void edit_dialog_create(void)
340315 {
341316 GtkWidget *hbox, *label, *dialog, *tempwid, *entry;
342 #if !GTK_CHECK_VERSION(2,6,0)
343 if (target == JB_LIST) {
344 dialog = gnome_dialog_new(_("Edit jukebox file metadata"),
345 GNOME_STOCK_BUTTON_CANCEL,
346 GNOME_STOCK_BUTTON_OK,
347 NULL);
348 } else {
349 dialog = gnome_dialog_new(_("Edit track metadata"),
350 GNOME_STOCK_BUTTON_CANCEL,
351 GNOME_STOCK_BUTTON_OK,
352 NULL);
353 }
354 gnome_dialog_button_connect_object(GNOME_DIALOG(dialog),
355 0,
356 G_CALLBACK(edit_cancel_click),
357 NULL);
358 gnome_dialog_button_connect(GNOME_DIALOG(dialog),
359 1,
360 G_CALLBACK(edit_ok_click),
361 NULL);
362 #else
317
363318 if (target == JB_LIST) {
364319 dialog = gtk_dialog_new_with_buttons(_("Edit jukebox file metadata"),
365320 NULL, 0, NULL);
367322 dialog = gtk_dialog_new_with_buttons(_("Edit track metadata"),
368323 NULL, 0, NULL);
369324 }
370
325
371326 tempwid = gtk_dialog_add_button(GTK_DIALOG(dialog), GTK_STOCK_CANCEL, 0);
372327 g_signal_connect (tempwid, "clicked",
373328 G_CALLBACK (edit_cancel_click), NULL);
375330 tempwid = gtk_dialog_add_button(GTK_DIALOG(dialog), GTK_STOCK_OK, 1);
376331 g_signal_connect (tempwid, "clicked",
377332 G_CALLBACK (edit_ok_click), NULL);
378 #endif
379333 edit_dialog = dialog;
380334
381335 /* Add the metadata edit field for the dialog box */
414368 gtk_entry_set_text(GTK_ENTRY(entry), title);
415369 g_free(title);
416370 title = (gchar *) gtk_entry_get_text(GTK_ENTRY(entry));
417 g_signal_connect(GTK_OBJECT(entry),
371 g_signal_connect(GTK_OBJECT(entry),
418372 "changed",
419373 G_CALLBACK(entry_edit_callback),
420374 (gpointer) &title);
459413 g_free(year);
460414 }
461415 year = (gchar *) gtk_entry_get_text(GTK_ENTRY(entry));
462 g_signal_connect(GTK_OBJECT(entry),
416 g_signal_connect(GTK_OBJECT(entry),
463417 "changed",
464 GTK_SIGNAL_FUNC(entry_edit_callback),
418 G_CALLBACK(entry_edit_callback),
465419 (gpointer) &year);
466420 /* Alignment widget for left alignments */
467421 gtk_widget_show(entry);
672626 if (metadatas == NULL) {
673627 return NULL;
674628 }
675
629
676630 while (tmp) {
677631 metadata_t *meta = (metadata_t *) tmp->data;
678632 if (meta->size == 0) {
00 /* filesystem.c
11 Interface to the posix (well...) file system
2 Copyright (C) 2001-2007 Linus Walleij
2 Copyright (C) 2001-2011 Linus Walleij
33
44 This file is part of the GNOMAD package.
55
1111 You should have received a copy of the GNU General Public License
1212 along with GNOMAD; see the file COPYING. If not, write to
1313 the Free Software Foundation, 59 Temple Place - Suite 330,
14 Boston, MA 02111-1307, USA.
14 Boston, MA 02111-1307, USA.
1515
1616 */
1717
2929 #ifdef HAVE_TAGLIB
3030 #include "tagfile.h"
3131 #endif
32 #if !GTK_CHECK_VERSION(2,4,0)
33 #include <libgnomeui/libgnomeui.h>
34 #endif
35 #if GLIB_CHECK_VERSION(2,6,0)
3632 #include <glib.h>
3733 #include <glib/gstdio.h>
38 #endif
3934
4035 /* Extra includes used by this file only */
4136
5449 /* Local variables */
5550 static gint preffd;
5651
57 /*
52 /*
5853 * Types and function to send drawing down to idle thread
5954 */
6055
7570
7671 static gboolean draw_label(gpointer p) {
7772 draw_label_args_t *args = (draw_label_args_t *) p;
78
73
7974 if (args != NULL) {
8075 if (args->label != NULL && args->text != NULL) {
8176 gtk_label_set_text(GTK_LABEL(args->label), args->text);
8984
9085 static gboolean update_fraction(gpointer p) {
9186 fraction_set_args_t *args = (fraction_set_args_t *) p;
92
87
9388 if (args != NULL) {
9489 gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(args->progress), args->fraction);
9590 g_free(args);
106101 tmp = metarg->metalist;
107102 while (tmp) {
108103 metadata_t *meta;
109
104
110105 meta = (metadata_t *) tmp->data;
111106 // g_print("Adding metadata for \"%s\" to model\n", meta->path);
112107 add_metadata_to_model(meta, metarg->listtype);
126121 {
127122 gint f1, f2;
128123
129 #if !GLIB_CHECK_VERSION(2,6,0)
130 f1 = (gint) open(source, READONLY_FLAGS, 0);
131 #else
132124 f1 = (gint) g_open(source, READONLY_FLAGS, 0);
133 #endif
134125 if (f1 < 0)
135126 return FALSE;
136127
137 #if !GLIB_CHECK_VERSION(2,8,0)
128 #if !GLIB_CHECK_VERSION(2,8,0)
138129 f2 = (gint) creat(dest, (mode_t) CREATE_FILEMODE);
139130 #else
140131 f2 = (gint) g_creat(dest, (mode_t) CREATE_FILEMODE);
143134 guint bufsiz;
144135 gboolean retval = FALSE;
145136 gchar *buffer;
146
137
147138 for (bufsiz = 0x8000; bufsiz >= 128; bufsiz >>= 1) {
148139 buffer = (gchar *) g_malloc(bufsiz);
149140 }
154145
155146 while (1) {
156147 register gint n;
157
148
158149 n = read(f1,buffer,bufsiz);
159150 if (n == -1) {
160151 break;
188179 guint64 get_64bit_file_size(const gchar * const path)
189180 {
190181 struct stat sb;
191
182
192183 // Get the size that we actually have now...
193184 if ( stat(path, &sb) == -1 ) {
194185 g_print("Error getting file size for \"%s\"!!\n", path);
232223 {
233224 #ifndef G_OS_WIN32
234225 gchar *tmp;
235
226
236227 if (get_prefs_force_8859()) {
237228 /* FIXME utf8 conversion
238229 * when the system fails to convert the fname, ask the user
388379 return filelist;
389380 }
390381
391 static GList *get_metadata_for_dirlist(GList *inlist,
392 listtype_t listtype,
382 static GList *get_metadata_for_dirlist(GList *inlist,
383 listtype_t listtype,
393384 dirfill_thread_arg_t *args)
394385 {
395386 GList *metalist = NULL;
411402 }
412403 currentfile = 0;
413404 }
414
405
415406 filelist = inlist;
416407 while ((filelist != NULL) && !cancelled) {
417408 metadata_t *meta;
418409 gchar *path;
419410 gchar *tmp;
420411 gchar fileext[5];
421
412
422413 meta = new_metadata_t();
423414 /* Full path -> ID column */
424415 path = filelist->data;
467458 meta->codec = g_strdup(fileext);
468459 }
469460 if (listtype == HDDATA_LIST) {
470 /*
461 /*
471462 * For data files, provide basic data nothing additional is needed.
472463 * The file extension will be used to map the apropriate transfer
473464 * type later.
529520 if (!strcmp(meta->codec,"MP4")) {
530521 }
531522 #endif
532 /*
523 /*
533524 * Gather additional information from the path and file name
534 * if this preference is set.
525 * if this preference is set.
535526 */
536527 if (get_prefs_detect_metadata()) {
537528 info_from_path(meta, TRUE);
538529 } else {
539530 info_from_path(meta, FALSE);
540531 }
541
532
542533 /* At last pad any empty fields to be <unknown>
543534 * (the way playcenter does it) */
544
535
545536 if (meta->artist == NULL)
546537 meta->artist = g_strdup("<Unknown>");
547538 if (meta->title == NULL)
566557 /* For directories: copy dirname to Artist field */
567558 gchar **tmpv;
568559 gint i;
569
560
570561 tmpv = g_strsplit(meta->path, G_DIR_SEPARATOR_S, 0);
571562 /* Find last component */
572563 for (i = 0; tmpv[i] != NULL; i++) {};
596587
597588
598589 /**
599 * @param args if this and the following parameter is null the call is assumed to be
590 * @param args if this and the following parameter is null the call is assumed to be
600591 * non-threaded, else it is updated and handled as if called from a thread.
601592 * Else it is assumed to be called from a single-threaded context and will not
602593 * display update information.
603594 */
604 GList *get_metadata_dir(listtype_t listtype,
605 gchar *path,
595 GList *get_metadata_dir(listtype_t listtype,
596 gchar *path,
606597 dirfill_thread_arg_t *args)
607598 {
608599 GList *metalist;
632623 return metalist;
633624 }
634625
626 static gboolean dirfill_destroy_dialog(gpointer data)
627 {
628 GtkWidget *w = (GtkWidget *) data;
629
630 if (w != NULL)
631 gtk_widget_destroy(w);
632 }
633
635634 static gpointer dirfill_thread(gpointer thread_args)
636635 {
637636 dirfill_thread_arg_t *args = (dirfill_thread_arg_t *) thread_args;
645644 da = (draw_label_args_t *) g_malloc(sizeof(draw_label_args_t));
646645 da->label = args->label;
647646 da->text = g_strdup(_("Adding metadata to view"));
648 g_idle_add(draw_label, da);
647 g_idle_add(draw_label, da);
649648
650649 metarg = (metadata_set_args_t *) g_malloc(sizeof(metadata_set_args_t));
651650 metarg->listtype = args->listtype;
652651 metarg->metalist = metalist;
653652 g_idle_add(update_metadata,metarg);
654653
655 g_idle_add((GSourceFunc) gtk_widget_destroy, args->dialog);
654 g_idle_add(dirfill_destroy_dialog, args->dialog);
656655 g_free(args->path);
657656 g_free(args);
658657 return NULL;
662661 * This callback function will cancel the ongoing
663662 * fill-in of metadata for a certain thread.
664663 */
665 #if GTK_CHECK_VERSION(2,4,0)
666664 void swapped_cancel_fillin_callback(gpointer *data)
667665 {
668 dirfill_thread_arg_t *args = (dirfill_thread_arg_t *) data;
666 dirfill_thread_arg_t *args = (dirfill_thread_arg_t *) data;
669667
670668 g_print("Cancelled scan of %s!\n", args->path);
671669 args->cancelled = TRUE;
672670 }
673 #else
674 void cancel_fillin_callback(GtkWidget *widget, gpointer *data)
675 {
676 dirfill_thread_arg_t *args = (dirfill_thread_arg_t *) data;
677
678 g_print("Cancelled scan of %s!\n", args->path);
679 args->cancelled = TRUE;
680 }
681 #endif
682671
683672 /**
684673 * This will fire up a separate thread which retrieves
697686 dirfill_thread_args = (dirfill_thread_arg_t *) g_malloc(sizeof(dirfill_thread_arg_t));
698687
699688 // Create a dialog...
700 #if GTK_CHECK_VERSION(2,4,0)
701689 dialog = gtk_message_dialog_new (GTK_WINDOW(main_window),
702690 GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
703691 GTK_MESSAGE_INFO,
704692 GTK_BUTTONS_CLOSE,
705693 (listtype == HDDATA_LIST) ? _("Getting file metadata") : _("Getting track metadata"));
706 gtk_window_set_title (GTK_WINDOW (dialog), (listtype == HDDATA_LIST) ? _("Getting file metadata") : _("Getting track metadata"));
707 gtk_box_set_spacing (GTK_BOX (GTK_DIALOG (dialog)->vbox), 5);
708 gtk_box_set_homogeneous (GTK_BOX (GTK_DIALOG (dialog)->action_area), TRUE);
694 gtk_window_set_title (GTK_WINDOW(dialog), (listtype == HDDATA_LIST) ? _("Getting file metadata") : _("Getting track metadata"));
695 gtk_box_set_spacing(GTK_BOX(GTK_DIALOG(dialog)->vbox), 5);
696 gtk_box_set_homogeneous(GTK_BOX(GTK_DIALOG(dialog)->action_area), TRUE);
709697 //gtk_window_set_position (GTK_WINDOW (dialog), GTK_WIN_POS_MOUSE);
710698 g_signal_connect_swapped(GTK_OBJECT(dialog),
711699 "delete_event",
712700 G_CALLBACK(swapped_cancel_fillin_callback),
713701 (gpointer) dirfill_thread_args);
714 g_signal_connect_swapped(GTK_OBJECT(dialog),
702 g_signal_connect_swapped(GTK_OBJECT(dialog),
715703 "response",
716 G_CALLBACK(swapped_cancel_fillin_callback),
704 G_CALLBACK(swapped_cancel_fillin_callback),
717705 (gpointer) dirfill_thread_args);
718706 label1 = gtk_label_new(path);
719707 scanlabel = gtk_label_new("");
725713 gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), metadata_progress_bar, TRUE, TRUE, 0);
726714 gtk_progress_bar_update(GTK_PROGRESS_BAR(metadata_progress_bar), (gfloat) 0);
727715 gtk_widget_show_all(dialog);
728 #else
729 dialog = gnome_dialog_new((listtype == HDDATA_LIST) ? _("Getting file metadata") : _("Getting track metadata"),
730 GNOME_STOCK_BUTTON_CANCEL,
731 NULL);
732 gnome_dialog_button_connect(GNOME_DIALOG(dialog),
733 0,
734 G_CALLBACK(cancel_fillin_callback),
735 (gpointer) dirfill_thread_args);
736 g_signal_connect(GTK_OBJECT(dialog),
737 "delete_event",
738 G_CALLBACK(cancel_fillin_callback),
739 (gpointer) dirfill_thread_args);
740 label1 = gtk_label_new((listtype == HDDATA_LIST) ? _("Getting file metadata") : _("Getting track metadata"));
741 gtk_box_pack_start(GTK_BOX(GNOME_DIALOG(dialog)->vbox), label1, TRUE, TRUE, 0);
742 label1 = gtk_label_new(path);
743 gtk_box_pack_start(GTK_BOX(GNOME_DIALOG(dialog)->vbox), label1, TRUE, TRUE, 0);
744 scanlabel = gtk_label_new("");
745 gtk_box_pack_start(GTK_BOX(GNOME_DIALOG(dialog)->vbox), scanlabel, TRUE, TRUE, 0);
746 separator = gtk_hseparator_new ();
747 gtk_box_pack_start(GTK_BOX(GNOME_DIALOG(dialog)->vbox), separator, TRUE, TRUE, 0);
748 metadata_progress_bar = gtk_progress_bar_new();
749 gtk_box_pack_start(GTK_BOX(GNOME_DIALOG(dialog)->vbox), metadata_progress_bar, TRUE, TRUE, 0);
750 gtk_progress_bar_update(GTK_PROGRESS_BAR(metadata_progress_bar), (gfloat) 0);
751 gtk_widget_show_all(dialog);
752 #endif
753
716
754717 dirfill_thread_args->dialog = dialog;
755718 dirfill_thread_args->label = scanlabel;
756719 dirfill_thread_args->progress = metadata_progress_bar;
802765 {
803766 c += remove_dir_contents(current_file);
804767 }
805
806 #if !GLIB_CHECK_VERSION(2,6,0)
807 c += remove(current_file);
808 #else
768
809769 c += g_remove(current_file);
810 #endif
811770 g_free(current_file);
812771 }
813772
840799 tmplist = tmplist->next;
841800 continue;
842801 }
843
802
844803 if (g_file_test(tmp, G_FILE_TEST_IS_DIR)) {
845804 remove_dir_contents(tmp);
846805 }
847806
848 #if !GLIB_CHECK_VERSION(2,6,0)
849 c += remove(tmp);
850 #else
851807 c += g_remove(tmp);
852 #endif
853808
854809 g_free(tmp);
855810 tmplist = tmplist->next;
858813 }
859814
860815 /* Copy a file and remove the tag */
861 gboolean clone_and_strip_tag(const gchar * const source,
862 const gchar * const dest,
816 gboolean clone_and_strip_tag(const gchar * const source,
817 const gchar * const dest,
863818 const gchar * const codec)
864819 {
865820 gchar *tmpsource, *tmpdest;
905860 path = stringcat(path, tmp);
906861 g_free(tmp);
907862 }
863
908864 if (write) {
909 #if !GLIB_CHECK_VERSION(2,6,0)
910 preffd = (gint) open(path, WRITEONLY_FLAGS, (mode_t) CREATE_FILEMODE);
911 #else
912865 preffd = (gint) g_open(path, WRITEONLY_FLAGS, (mode_t) CREATE_FILEMODE);
913 #endif
914866 if (preffd < 0)
915867 #if !GLIB_CHECK_VERSION(2,8,0)
916868 preffd = (gint) creat(path, (mode_t) CREATE_FILEMODE);
917869 #else
918870 preffd = (gint) g_creat(path, (mode_t) CREATE_FILEMODE);
919871 #endif
920 }
921 else
922 #if !GLIB_CHECK_VERSION(2,6,0)
923 preffd = (gint) open(path, READONLY_FLAGS, 0);
924 #else
872 } else {
925873 preffd = (gint) g_open(path, READONLY_FLAGS, 0);
926 #endif
927 if (preffd < 0 &&
928 write)
874 }
875
876 if (preffd < 0 && write) {
929877 create_error_dialog(_("Could not write preference file"));
878 }
930879 return preffd;
931880 }
932881
10531002 FILE *file;
10541003
10551004 /* Test to know if we can write into the file */
1056 #if !GLIB_CHECK_VERSION(2,6,0)
1057 file = fopen(path,READPLUS_FOPEN_STRING);
1058 #else
10591005 file = (FILE *) g_fopen(path,READPLUS_FOPEN_STRING);
1060 #endif
10611006 if (file == NULL) {
10621007 return FALSE;
10631008 }
10671012
10681013 gboolean create_directory(gchar *path)
10691014 {
1070 #if !GLIB_CHECK_VERSION(2,6,0)
1071 if (mkdir(path, CREATE_DIRMODE) == -1) {
1072 #else
10731015 if (g_mkdir(path, CREATE_DIRMODE) == -1) {
1074 #endif
10751016 return FALSE;
10761017 } else {
10771018 return TRUE;
10881029 for (dirs=0; tmpv[dirs]; ++dirs);
10891030 if (--dirs < 1)
10901031 goto out;
1091
1032
10921033 path = g_strdup(tmpv[0]);
10931034 for (i=0;;) {
10941035 gchar *tmp;
11171058 GList *tmp;
11181059 guint i;
11191060
1120 #if !GLIB_CHECK_VERSION(2,6,0)
1121 fd = (gint) open(tmpname, WRITEONLY_FLAGS, (mode_t) CREATE_FILEMODE);
1122 #else
11231061 fd = (gint) g_open(tmpname, WRITEONLY_FLAGS, (mode_t) CREATE_FILEMODE);
1124 #endif
11251062 if (fd < 0)
11261063 #if !GLIB_CHECK_VERSION(2,8,0)
11271064 fd = (gint) creat(tmpname, (mode_t) CREATE_FILEMODE);
11671104 g_free(row);
11681105 i++;
11691106 }
1170
1107
11711108 if (plsfile) {
11721109 gchar *footer = g_strdup_printf("NumberOfEntries=%u\nVersion=2\n", i-1);
11731110 write(fd, footer, strlen(footer));
00 /* filesystem.h
11 Interface to the posix (well...) file system
22 header definitions
3 Copyright (C) 2001 Linus Walleij
3 Copyright (C) 2001-2011 Linus Walleij
44
55 This file is part of the GNOMAD package.
66
1212 You should have received a copy of the GNU General Public License
1313 along with GNOMAD; see the file COPYING. If not, write to
1414 the Free Software Foundation, 59 Temple Place - Suite 330,
15 Boston, MA 02111-1307, USA.
15 Boston, MA 02111-1307, USA.
1616
1717 */
1818
4040 #endif
4141
4242 /* Local type for the metadata read thread */
43 typedef struct
43 typedef struct
4444 {
4545 GtkWidget *dialog;
4646 GtkWidget *label;
5454 guint64 get_64bit_file_size(const gchar * const path);
5555 gchar *filename_toutf8(const gchar * const instr);
5656 gchar *filename_fromutf8(const gchar * const instr);
57 GList *get_metadata_dir(listtype_t listtype,
58 gchar *path,
57 GList *get_metadata_dir(listtype_t listtype,
58 gchar *path,
5959 dirfill_thread_arg_t *args);
6060 void fill_in_dir(listtype_t listtype, gchar *path);
6161
6464 void change_directory(gchar *dir);
6565 gint delete_dir_contents(gchar *dir);
6666 gint delete_files(GList *filelist);
67 gboolean clone_and_strip_tag(const gchar *const source,
68 const gchar * const dest,
67 gboolean clone_and_strip_tag(const gchar *const source,
68 const gchar * const dest,
6969 const gchar * const codec);
7070 gint get_prefsfile_fd(gboolean write);
7171 void close_prefsfile(void);
0 /* gnomad2.c
0 /*
1 gnomad2.c
12 Main loop and GTK+ GUI setup file and callback functions
2 Copyright (C) 2001-2008 Linus Walleij
3 Copyright (C) 2001-2011 Linus Walleij
34
45 This file is part of the GNOMAD package.
56
1112 You should have received a copy of the GNU General Public License
1213 along with GNOMAD; see the file COPYING. If not, write to
1314 the Free Software Foundation, 59 Temple Place - Suite 330,
14 Boston, MA 02111-1307, USA.
15 Boston, MA 02111-1307, USA.
1516
1617 */
1718
2223 #include "playlists.h"
2324 #include "prefs.h"
2425 #include "util.h"
25 #if !GTK_CHECK_VERSION(2,6,0)
26 #include <libgnomeui/libgnomeui.h>
27 #endif
28 #ifdef HAVE_DBUSGLIB
29 #define DBUS_API_SUBJECT_TO_CHANGE
30 #include <dbus/dbus-glib.h>
31 #include <dbus/dbus.h>
32 #include <dbus/dbus-glib-lowlevel.h>
33 #endif
34 #ifdef HAVE_HAL
35 #include <hal/libhal.h>
26 #ifdef HAVE_GUDEV
27 #define G_UDEV_API_IS_SUBJECT_TO_CHANGE
28 #include <gudev/gudev.h>
29 const char * const gudev_subsystems[] = { "usb", NULL };
30 GUdevClient *gudev_client;
31 guint uevent_id;
32 guint uevent_bus_hooked = 0;
33 guint uevent_device_hooked = 0;
3634 #endif
3735
3836 /* This one should be global really */
3937 GtkWidget *main_window;
4038
4139 /* Local variables */
42 #if GTK_CHECK_VERSION(2,6,0)
4340 static GdkPixbuf *icon_pixbuf;
44 #endif
45 #if !GTK_CHECK_VERSION(2,4,0)
46 static GtkWidget *jukeboxowner_dialog;
47 static GtkWidget *jukeboxowner_entry;
48 static GtkWidget *select_jukebox_dialog;
49 static GtkWidget *jukebox_menu;
50 #endif
5141 // The expose() event will be treated JUST ONCE at the first window creation
5242 static gboolean justonce = TRUE;
53 #ifdef HAVE_DBUSGLIB
54 DBusConnection *dbus_session_conn;
55 DBusConnection *dbus_system_conn;
56 DBusError dbus_error;
57 #endif
58 #ifdef HAVE_HAL
59 LibHalContext *hal_context;
60 char *global_udistr = NULL;
61 #endif
62
6343
6444 /* Expect these functions */
6545 void scan_jukebox(gpointer data);
8262
8363 static GtkWidget *create_jukebox_menu(gchar **jukeboxes)
8464 {
85 GtkWidget *option_menu;
65 GtkWidget *combo;
66 GtkWidget *menu;
8667 GSList *group = NULL;
87 GtkWidget *menu;
8868 GtkWidget *menu_item;
8969 gint i;
9070
9171 /* Create the option menu */
92 // FAILS WITH GTK+ 2.3.x/2.4
93 option_menu = gtk_option_menu_new();
94 menu = gtk_menu_new();
72 #if GTK_CHECK_VERSION(2,24,0)
73 // Use the new combo box type in 2.24 and later
74 combo = gtk_combo_box_text_new();
75 #else
76 combo = gtk_combo_box_new_text();
77 #endif
78
9579 /* Add a row to the menu */
9680 for (i = 0; i < vectorlength(jukeboxes); i++) {
97 menu_item = gtk_radio_menu_item_new_with_label(group, jukeboxes[i]);
98 group = gtk_radio_menu_item_get_group(GTK_RADIO_MENU_ITEM (menu_item));
99 gtk_menu_shell_append(GTK_MENU_SHELL(menu), menu_item);
100 /* Check the first item */
101 if (i == 0) {
102 gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(menu_item), TRUE);
103 }
104 gtk_widget_show(menu_item);
105 }
106 gtk_option_menu_set_menu (GTK_OPTION_MENU (option_menu), menu);
107 gtk_option_menu_set_history (GTK_OPTION_MENU (option_menu), 0);
108
109 return option_menu;
110 }
111
112 #if !GTK_CHECK_VERSION(2,4,0)
113 static GCallback jukebox_ok_signal(GtkButton *button,
114 gpointer data)
115 {
116 guint selection = gtk_option_menu_get_history(GTK_OPTION_MENU(jukebox_menu));
117 // Select the first jukebox
118 gtk_widget_destroy(select_jukebox_dialog);
119 if (jukebox_select(selection)) {
120 // Initially scan the jukebox
121 scan_jukebox(NULL);
122 #ifdef HAVE_DBUSGLIB
123 // Transmit jukebox connection message on D-BUS
81 #if GTK_CHECK_VERSION(2,24,0)
82 gtk_combo_box_text_append_text(GTK_COMBO_BOX_TEXT(combo), jukeboxes[i]);
83 #else
84 gtk_combo_box_append_text(GTK_COMBO_BOX(combo), jukeboxes[i]);
12485 #endif
12586 }
126 }
127 #endif
87
88 gtk_combo_box_set_active(GTK_COMBO_BOX(combo), 0);
89
90 return combo;
91 }
12892
12993 static void create_select_jukebox_dialog(void)
13094 {
13296 jukeboxes = jukebox_discover();
13397 if (jukeboxes != NULL) {
13498 if (vectorlength(jukeboxes) > 1) {
135 int i;
99 gint i;
136100 GtkWidget *label;
137101 // Build a selection menu
138 #if GTK_CHECK_VERSION(2,4,0)
139102 GtkWidget *select_jukebox_dialog;
140103 GtkWidget *jukebox_menu;
141
142 select_jukebox_dialog = gtk_message_dialog_new (GTK_WINDOW(main_window),
143 GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
144 GTK_MESSAGE_QUESTION,
145 GTK_BUTTONS_OK_CANCEL,
146 _("Select jukebox"));
104 GtkWidget *content_area;
105
106 select_jukebox_dialog = gtk_message_dialog_new(GTK_WINDOW(main_window),
107 GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
108 GTK_MESSAGE_QUESTION,
109 GTK_BUTTONS_OK_CANCEL,
110 _("Select jukebox"));
111
112
113
147114 jukebox_menu = create_jukebox_menu(jukeboxes);
148115 gtk_window_set_position (GTK_WINDOW(select_jukebox_dialog), GTK_WIN_POS_MOUSE);
149116 gtk_box_set_spacing (GTK_BOX(GTK_DIALOG(select_jukebox_dialog)->vbox), 5);
150117
151118 label = gtk_label_new(_("Select jukebox to operate:"));
152 gtk_box_pack_start(GTK_BOX(GTK_DIALOG(select_jukebox_dialog)->vbox),
119
120 #if GTK_CHECK_VERSION(2,14,0)
121 content_area = gtk_dialog_get_content_area(GTK_DIALOG(select_jukebox_dialog));
122 gtk_container_add(GTK_CONTAINER(content_area), label);
123 gtk_widget_show(label);
124 gtk_container_add(GTK_CONTAINER(content_area), jukebox_menu);
125 gtk_widget_show(jukebox_menu);
126 #else
127 gtk_box_pack_start(GTK_BOX(GTK_DIALOG(select_jukebox_dialog)->vbox),
153128 label, TRUE, TRUE, 0);
154129 gtk_widget_show(label);
155 gtk_box_pack_start(GTK_BOX(GTK_DIALOG(select_jukebox_dialog)->vbox),
130 gtk_box_pack_start(GTK_BOX(GTK_DIALOG(select_jukebox_dialog)->vbox),
156131 jukebox_menu, TRUE, TRUE, 0);
157132 gtk_widget_show(jukebox_menu);
133 #endif
134
158135 gtk_widget_show_all(select_jukebox_dialog);
136
159137 i = gtk_dialog_run(GTK_DIALOG(select_jukebox_dialog));
160138 if (i == GTK_RESPONSE_OK) {
161 guint selection = gtk_option_menu_get_history(GTK_OPTION_MENU(jukebox_menu));
139 guint selection;
140
141 selection = gtk_combo_box_get_active(GTK_COMBO_BOX(jukebox_menu));
142
162143 gtk_widget_destroy(select_jukebox_dialog);
163144 // Select the first jukebox
164145 if (jukebox_select(selection)) {
168149 } else {
169150 gtk_widget_destroy(select_jukebox_dialog);
170151 }
171 #else
172 select_jukebox_dialog = gnome_dialog_new(_("Select jukebox"),
173 GNOME_STOCK_BUTTON_CANCEL,
174 GNOME_STOCK_BUTTON_OK,
175 NULL);
176 gnome_dialog_button_connect_object(GNOME_DIALOG(select_jukebox_dialog),
177 0,
178 G_CALLBACK(gtk_widget_destroy),
179 GTK_OBJECT(select_jukebox_dialog));
180 gnome_dialog_button_connect(GNOME_DIALOG(select_jukebox_dialog),
181 1,
182 G_CALLBACK(jukebox_ok_signal),
183 NULL);
184 jukebox_menu = create_jukebox_menu(jukeboxes);
185 gtk_window_set_position (GTK_WINDOW(select_jukebox_dialog), GTK_WIN_POS_MOUSE);
186 g_signal_connect_object(GTK_OBJECT (select_jukebox_dialog),
187 "delete_event",
188 G_CALLBACK(gtk_widget_destroy),
189 GTK_OBJECT(select_jukebox_dialog),
190 0);
191 label = gtk_label_new(_("Select jukebox to operate:"));
192 gtk_box_pack_start(GTK_BOX(GNOME_DIALOG(select_jukebox_dialog)->vbox),
193 label, TRUE, TRUE, 0);
194 gtk_widget_show(label);
195 gtk_box_pack_start(GTK_BOX(GNOME_DIALOG(select_jukebox_dialog)->vbox),
196 jukebox_menu, TRUE, TRUE, 0);
197 gtk_widget_show(jukebox_menu);
198 gtk_widget_show(select_jukebox_dialog);
199 g_strfreev(jukeboxes);
200 #endif
201152 } else {
202153 // Select the first jukebox
203154 if (jukebox_select(0)) {
204155 // Initially scan the jukebox
205156 scan_jukebox(NULL);
206 #ifdef HAVE_DBUSGLIB
207 // Transmit jukebox connection message on D-BUS
208 #endif
209157 }
210158 }
211159 }
212160 }
213161
214 /* Response to EXPOSE event (window creation) */
215 static gint expose(GtkWidget *widget,
216 GtkWidget *event,
217 gpointer data)
218 {
162 /* Run at startup from the idle thread */
163 static gboolean startup_actions(gpointer p) {
219164 if (justonce) {
220165 justonce = FALSE;
221166 if (get_prefs_autoscan()) {
228173 }
229174 }
230175 }
231 return(FALSE);
176 return FALSE;
232177 }
233178
234179 /* The about box */
235180 static void about_box(gpointer data)
236181 {
237 const gchar *authors[] = {"Linus Walleij - main code, parts of libnjb and libmtp",
182 const gchar *authors[] = {"Linus Walleij - main code, parts of libnjb and libmtp",
238183 "John Mechalas (Seagull) - libnjb",
239 "César Talón - Jukebox 3 examinations",
184 "César Talón - Jukebox 3 examinations",
240185 "Richard A. Low - initial MTP work and libmtp",
241186 NULL};
242 const gchar *copystring = "Copyright (C) 2006 Linus Walleij";
187 const gchar *copystring = "Copyright (C) 2011 Linus Walleij";
243188 gchar *aboutstring = _("A program to communicate with\nCreative Jukeboxes\nand MTP devices");
244189 gchar *translator_credits = _("translator_credits");
245190
246191 GtkWidget *about;
247 /*
248 * For a modern GTK+ we remove the use of libgnomeui stuff.
249 */
250 #if GTK_CHECK_VERSION(2,6,0)
192
251193 about = gtk_about_dialog_new();
252194 gtk_about_dialog_set_name(GTK_ABOUT_DIALOG(about), PACKAGE);
253195 gtk_about_dialog_set_version(GTK_ABOUT_DIALOG(about), VERSION);
260202 if (strcmp(translator_credits, "translator_credits")) {
261203 gtk_about_dialog_set_translator_credits(GTK_ABOUT_DIALOG(about), translator_credits);
262204 }
263 #else
264 const gchar *thanks[] = {"ALL YOUR BASE ARE", "BELONG TO US", NULL};
265
266 about = gnome_about_new(PACKAGE,
267 VERSION,
268 copystring,
269 aboutstring,
270 authors,
271 thanks,
272 strcmp(translator_credits, "translator_credits") != 0 ? translator_credits : NULL,
273 NULL);
274 #endif
275205 gtk_dialog_run(GTK_DIALOG(about));
276206 gtk_widget_destroy(about);
277207 }
296226 jukebox_locked = TRUE;
297227 cancel_jukebox_operation = FALSE;
298228
299 #if GTK_CHECK_VERSION(2,4,0)
300229 dialog = gtk_message_dialog_new (GTK_WINDOW(main_window),
301230 GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
302231 GTK_MESSAGE_INFO,
308237 G_CALLBACK(cancel_jukebox_operation_click),
309238 NULL,
310239 0);
311 g_signal_connect_object(GTK_OBJECT(dialog),
240 g_signal_connect_object(GTK_OBJECT(dialog),
312241 "response",
313 G_CALLBACK(cancel_jukebox_operation_click),
242 G_CALLBACK(cancel_jukebox_operation_click),
314243 NULL,
315244 0);
316245 /* A blank label for progress messages */
317246 label = gtk_label_new("");
318247 gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), label, TRUE, TRUE, 0);
319248 gtk_widget_show_all(dialog);
320 #else
321 label = gtk_label_new(_("Retrieveing metadata from jukebox"));
322 dialog = gnome_dialog_new(_("Scanning jukebox library"),
323 GNOME_STOCK_BUTTON_CANCEL,
324 NULL);
325 gnome_dialog_button_connect(GNOME_DIALOG(dialog),
326 0,
327 G_CALLBACK(cancel_jukebox_operation_click),
328 NULL);
329 gtk_box_pack_start (GTK_BOX (GNOME_DIALOG (dialog)->vbox), label, TRUE,
330 TRUE, 0);
331 /* A blank label for progress messages */
332 label = gtk_label_new("");
333 gtk_box_pack_start (GTK_BOX (GNOME_DIALOG (dialog)->vbox), label, TRUE,
334 TRUE, 0);
335 gtk_widget_show_all(dialog);
336 #endif
337249
338250 /* A bunch of arguments needed by the scanning thread */
339251 scan_thread_args.dialog = dialog;
344256 return;
345257 }
346258
347 #if !GTK_CHECK_VERSION(2,4,0)
348 static void set_owner_ok_button (GtkButton *button,
349 gpointer data)
350 {
351 gchar *owner;
352
353 if (jukebox_locked) {
354 create_error_dialog(_("Jukebox busy - change discarded"));
355 return;
356 }
357 owner = g_strdup(gtk_entry_get_text(GTK_ENTRY(jukeboxowner_entry)));
358 jukebox_set_ownerstring(owner);
359 g_free(owner);
360 gtk_widget_destroy(jukeboxowner_dialog);
361 }
362 #endif
363
364259 /* A dialog to select the owner */
365260 static void set_jukeboxowner_dialog(gpointer data)
366261 {
367262 GtkWidget *label;
368263 gchar *ownerstring;
369
370 #if GTK_CHECK_VERSION(2,4,0)
371264 GtkWidget *jukeboxowner_dialog;
372265 GtkWidget *jukeboxowner_entry;
373266 gint i;
383276 GTK_BUTTONS_OK_CANCEL,
384277 _("Set owner string"));
385278 gtk_box_set_spacing (GTK_BOX(GTK_DIALOG(jukeboxowner_dialog)->vbox), 5);
386
279
387280 label = gtk_label_new(_("Edit the owner of this jukebox:"));
388 gtk_box_pack_start(GTK_BOX(GTK_DIALOG(jukeboxowner_dialog)->vbox),
281 gtk_box_pack_start(GTK_BOX(GTK_DIALOG(jukeboxowner_dialog)->vbox),
389282 label, TRUE, TRUE, 0);
390283 gtk_widget_show(label);
391284 jukeboxowner_entry = gtk_entry_new();
404297 owner = g_strdup(gtk_entry_get_text(GTK_ENTRY(jukeboxowner_entry)));
405298 jukebox_set_ownerstring(owner);
406299 g_free(owner);
407 gtk_widget_destroy(jukeboxowner_dialog);
300 gtk_widget_destroy(jukeboxowner_dialog);
408301 } else {
409302 gtk_widget_destroy(jukeboxowner_dialog);
410303 }
411 #else
412 if (!jukebox_selected()) {
413 create_select_jukebox_dialog();
414 return;
415 }
416 jukeboxowner_dialog = gnome_dialog_new(_("Set owner string"),
417 GNOME_STOCK_BUTTON_CANCEL,
418 GNOME_STOCK_BUTTON_OK,
419 NULL);
420 gnome_dialog_button_connect_object(GNOME_DIALOG(jukeboxowner_dialog),
421 0,
422 GTK_SIGNAL_FUNC(gtk_widget_destroy),
423 GTK_OBJECT(jukeboxowner_dialog));
424 gnome_dialog_button_connect(GNOME_DIALOG(jukeboxowner_dialog),
425 1,
426 GTK_SIGNAL_FUNC(set_owner_ok_button),
427 NULL);
428 gtk_window_set_position (GTK_WINDOW (jukeboxowner_dialog), GTK_WIN_POS_MOUSE);
429 label = gtk_label_new(_("Edit the owner of this jukebox:"));
430 gtk_box_pack_start (GTK_BOX(GNOME_DIALOG(jukeboxowner_dialog)->vbox), label, TRUE, TRUE, 0);
431 gtk_widget_show(label);
432 jukeboxowner_entry = gtk_entry_new();
433 ownerstring = jukebox_get_ownerstring();
434 if (ownerstring != NULL)
435 gtk_entry_set_text(GTK_ENTRY(jukeboxowner_entry), ownerstring);
436 gtk_box_pack_start(GTK_BOX(GNOME_DIALOG(jukeboxowner_dialog)->vbox), jukeboxowner_entry, TRUE, TRUE, 0);
437 gtk_widget_show(jukeboxowner_entry);
438 gtk_widget_show(jukeboxowner_dialog);
439 #endif
440304 }
441305
442306
451315
452316 dialog = jukebox_get_deviceinfo_dialog();
453317 if (dialog != NULL) {
454 gtk_widget_show(dialog);
318 gtk_widget_show(dialog);
455319 } else {
456320 create_error_dialog(_("Cannot retrieve jukebox information!"));
457321 }
458322 }
459323
460 #if defined(HAVE_DBUSGLIB) && defined(HAVE_HAL)
461 static void
462 hal_device_added (LibHalContext *context, const char *udi)
463 {
464 int vendor_id;
465 int product_id;
466 char *protocol;
467
468 vendor_id = libhal_device_get_property_int (context, udi, "usb.vendor_id", NULL);
469 product_id = libhal_device_get_property_int (context, udi, "usb.product_id", NULL);
470 protocol = libhal_device_get_property_string (context, udi, "portable_audio_player.type", NULL);
471 if (protocol == NULL) {
472 protocol = libhal_device_get_property_string (context, udi, "portable_audio_player.libnjb.protocol", NULL);
473 }
474
475 if (protocol != NULL) {
476 g_print("Detected connected device VID=0x%04x/PID=0x%04x, protocol: %s\n", vendor_id, product_id, protocol);
477 g_print("UDI: %s\n", udi);
478 if (!strcmp(protocol, "mtp") || !strcmp(protocol, "pde") || !strcmp(protocol, "oasis")) {
324 #ifdef HAVE_GUDEV
325 static guint
326 get_property_as_int(GUdevDevice *device, const char *property, int base)
327 {
328 const char *strvalue;
329
330 strvalue = g_udev_device_get_property(device, property);
331 if (strvalue == NULL) {
332 return 0;
333 }
334 return strtol(strvalue, NULL, base);
335 }
336
337 static void uevent_cb(GUdevClient *client, const char *action, GUdevDevice *device, void *data)
338 {
339 guint64 devicenum;
340 guint vendor;
341 guint model;
342 guint busnum;
343 guint devnum;
344 guint mtpdevice;
345 guint njbdevice;
346
347 devicenum = (guint64) g_udev_device_get_device_number(device);
348 g_print("%s event for %s (%"G_GINT64_MODIFIER"x)", action,
349 g_udev_device_get_sysfs_path (device), devicenum);
350
351 /* get device info */
352 vendor = get_property_as_int(device, "ID_VENDOR_ID", 16);
353 model = get_property_as_int(device, "ID_MODEL_ID", 16);
354 busnum = get_property_as_int(device, "BUSNUM", 10);
355 devnum = get_property_as_int(device, "DEVNUM", 10);
356 mtpdevice = get_property_as_int(device, "ID_MTP_DEVICE", 10);
357 njbdevice = get_property_as_int(device, "ID_LIBNJB_DEVICE", 10);
358
359 if (vendor == 0 || model == 0) {
360 g_print("couldn't get vendor or model ID for device at (%x:%x)\n",
361 busnum, devnum);
362 return;
363 } else {
364 g_print("vendor = %x, model = %x, bus = %x, device = %x\n",
365 vendor, model, busnum, devnum);
366 }
367
368 if (mtpdevice || njbdevice) {
369 g_print("device is MTP or libnjb compliant\n");
370
371 if (g_str_equal(action, "add")) {
479372 // If we haven't yet selected a jukebox, take this one!
480373 if (!jukebox_selected()) {
481 global_udistr = strdup(udi);
374 g_print("Unhooked, hook this device!\n");
375 uevent_bus_hooked = busnum;
376 uevent_device_hooked = devnum;
482377 scan_jukebox(NULL);
483378 }
379 } else if (g_str_equal (action, "remove")) {
380 if (uevent_bus_hooked == busnum &&
381 uevent_device_hooked == devnum) {
382 g_print("Found hooked device, unhook this device!\n");
383 jukebox_release();
384 uevent_bus_hooked = 0;
385 uevent_device_hooked = 0;
386 }
484387 }
485388 }
486
487 libhal_free_string(protocol);
488 }
489
490 static void
491 hal_device_removed (LibHalContext *context, const char *udi)
492 {
493 int vendor_id;
494 int product_id;
495
496 vendor_id = libhal_device_get_property_int (context, udi, "usb.vendor_id", NULL);
497 product_id = libhal_device_get_property_int (context, udi, "usb.product_id", NULL);
498
499 if (global_udistr != NULL && !strcmp(udi, global_udistr)) {
500 g_print("Device VID=0x%04x/PID=0x%04x detached.\n", vendor_id, product_id);
501 g_print("UDI: %s\n", udi);
502 jukebox_release();
503 free(global_udistr);
504 global_udistr = NULL;
505 }
506389 }
507390 #endif
508391
509 /***********************************************************************************/
510 /* And this is where everything starts, everything graphic is initialized etc */
511 /***********************************************************************************/
392 /*
393 * And this is where everything starts, everything graphic is initialized etc
394 */
512395 int main(int argc,
513396 char *argv[])
514397 {
515398 const gchar cProgramName[]= PACKAGE " " VERSION;
516 #if !GTK_CHECK_VERSION(2,6,0)
517 GnomeProgram *gnomad;
518 #endif
519399 /* For the menus */
520400 GtkWidget *menu;
521401 GtkWidget *menu_bar;
540420
541421 g_thread_init(NULL);
542422
543 #if GTK_CHECK_VERSION(2,6,0)
544423 gtk_init(&argc, &argv);
545 #else
546 gnomad = gnome_program_init(PACKAGE, VERSION, LIBGNOMEUI_MODULE, argc, argv,
547 GNOME_PARAM_POPT_TABLE, NULL,
548 GNOME_PROGRAM_STANDARD_PROPERTIES, NULL);
549 #endif
550424 /* Parse extra arguments */
551425 gnomad_debug = 0;
552426 while ((opt = getopt(argc, argv, "D:")) != -1 ) {
558432 break;
559433 }
560434 }
561
562 #if GTK_CHECK_VERSION(2,6,0)
435
563436 main_window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
564437 gtk_window_set_title (GTK_WINDOW (main_window), cProgramName);
565438 icon_pixbuf = gdk_pixbuf_new_from_file(PIXMAPSDIR "/gnomad2-logo.png", &icon_load_error);
566439 if (icon_pixbuf != NULL) {
567440 gtk_window_set_default_icon(icon_pixbuf);
568441 }
569 #else
570 main_window = gnome_app_new(PACKAGE, cProgramName);
571 #endif
572442 gtk_window_set_wmclass(GTK_WINDOW(main_window), PACKAGE, "main");
573443 gtk_widget_set_usize(GTK_WIDGET(main_window), 640, 480);
574
575 g_signal_connect(GTK_OBJECT(main_window),
444
445 g_signal_connect(GTK_OBJECT(main_window),
576446 "delete_event",
577447 G_CALLBACK(delete),
578448 NULL);
579449
580 g_signal_connect(GTK_OBJECT(main_window),
581 "expose_event",
582 G_CALLBACK(expose),
583 NULL);
584
585450 gtk_container_set_border_width (GTK_CONTAINER (main_window), 0);
586451
587452 /* Create metadata list stores */
594459 /* Stuff everything into a vertical box */
595460 vbox = gtk_vbox_new(FALSE, 5);
596461 gtk_container_set_border_width(GTK_CONTAINER(vbox), 0);
597 #if GTK_CHECK_VERSION(2,6,0)
598462 gtk_container_add(GTK_CONTAINER(main_window), vbox);
599 #else
600 gnome_app_set_contents(GNOME_APP(main_window), vbox);
601 #endif
602463 gtk_widget_show(vbox);
603464
604465 /* Create the menu bar */
612473 gtk_menu_shell_append (GTK_MENU_SHELL(menu), menu_item);
613474 gtk_widget_add_accelerator (menu_item, "activate", accel_group,
614475 GDK_q, GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE);
615 g_signal_connect(GTK_OBJECT(menu_item),
476 g_signal_connect(GTK_OBJECT(menu_item),
616477 "activate",
617478 G_CALLBACK(delete),
618479 NULL);
628489 gtk_box_pack_start(GTK_BOX(vbox), notebook, TRUE, TRUE, 0);
629490 gtk_widget_show(notebook);
630491
631 /***********************************************************************************/
632 /* Prefs tab */
633 /***********************************************************************************/
634
492 /*
493 * Prefs tab
494 */
635495 prefshbox = gtk_hbox_new(FALSE, 0);
636496 gtk_widget_show (prefshbox);
637497 /* Put preferences in the hbox */
638498 create_prefs_widgets(prefshbox);
639499 // gtk_box_pack_start(GTK_BOX(hbox), transfer_widgets.playlistmenu, TRUE, TRUE, 0);
640
641 /***********************************************************************************/
642 /* Music transfer tab */
643 /***********************************************************************************/
644
500
501 /*
502 * Music transfer tab
503 */
645504 music_panel = create_xfer_widgets();
646505 label = gtk_label_new (_("Music transfer"));
647506 gtk_notebook_append_page (GTK_NOTEBOOK(notebook), music_panel, label);
648507
649 /***********************************************************************************/
650 /* Playlists tab */
651 /***********************************************************************************/
652
653 /* This is an option menu wih playlist that is filled in
654 * by the scanning function */
655
508 /*
509 * Playlists tab
510 * This is an option menu wih playlist that is filled in
511 * by the scanning function
512 */
656513 vbox=gtk_vbox_new(FALSE, 0);
657514 create_playlist_widgets(vbox);
658515 gtk_widget_show(vbox);
659516 label = gtk_label_new (_("Playlists"));
660517 gtk_notebook_append_page (GTK_NOTEBOOK(notebook), vbox, label);
661518
662 /***********************************************************************************/
663 /* Data file transfer tab */
664 /***********************************************************************************/
665
519 /*
520 * Data file transfer tab
521 */
666522 data_panel = create_data_widgets();
667523 label = gtk_label_new (_("Data transfer"));
668524 gtk_notebook_append_page (GTK_NOTEBOOK(notebook), data_panel, label);
669
525
670526 /* Add prefs tab */
671
672527 label = gtk_label_new (_("Preferences"));
673528 gtk_notebook_append_page (GTK_NOTEBOOK (notebook), prefshbox, label);
674
529
675530 /* Set what page to start at (page 4) */
676531 gtk_notebook_set_current_page(GTK_NOTEBOOK(notebook), 0);
677532
696551 gtk_menu_shell_append(GTK_MENU_SHELL(menu), menu_item);
697552 gtk_widget_add_accelerator (menu_item, "activate", accel_group,
698553 GDK_i, GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE);
699 g_signal_connect(GTK_OBJECT(menu_item),
554 g_signal_connect(GTK_OBJECT(menu_item),
700555 "activate",
701556 G_CALLBACK(information_dialog),
702557 NULL);
709564 menu = gtk_menu_new(); // Shall not be shown!
710565 menu_item = gtk_menu_item_new_with_label (_("About"));
711566 gtk_menu_shell_append(GTK_MENU_SHELL(menu), menu_item);
712 g_signal_connect(GTK_OBJECT (menu_item),
567 g_signal_connect(GTK_OBJECT (menu_item),
713568 "activate",
714569 G_CALLBACK(about_box),
715570 NULL);
720575 gtk_menu_item_set_submenu(GTK_MENU_ITEM(root_menu), menu);
721576 gtk_menu_shell_append(GTK_MENU_SHELL(menu_bar), root_menu);
722577
723 #ifdef HAVE_DBUSGLIB
724 // Connect to the SESSION bus to broadcast events and stuff.
725 dbus_error_init(&dbus_error);
726 dbus_session_conn = dbus_bus_get(DBUS_BUS_SESSION, &dbus_error);
727 if (dbus_session_conn == NULL) {
728 g_printerr ("Failed to open connection to D-BUS SESSION bus\n");
729 } else {
730 DBusMessage *message;
731
732 dbus_connection_setup_with_g_main(dbus_session_conn, NULL);
733 message = dbus_message_new_signal ("/net/sourceforge/gnomad2",
734 "net.sourceforge.gnomad2",
735 "DeviceStatus");
736 // Append the string "Online" to the signal
737 //dbus_message_append_args(message,DBUS_TYPE_STRING,"Online",DBUS_TYPE_INVALID);
738 dbus_connection_send(dbus_session_conn, message, NULL);
739 dbus_message_unref(message);
740 }
741 dbus_error_free(&dbus_error);
742
578 #ifdef HAVE_GUDEV
579 /*
580 * Monitor udev device events - we're only really interested in events
581 * for USB devices.
582 */
583 gudev_client = g_udev_client_new(gudev_subsystems);
584 uevent_id = g_signal_connect_object(gudev_client,
585 "uevent",
586 G_CALLBACK(uevent_cb),
587 NULL, 0);
743588 #endif
744589
745 #if defined(HAVE_DBUSGLIB) && defined(HAVE_HAL)
746 // Connect to the SYSTEM bus to detect devices and stuff.
747 dbus_error_init(&dbus_error);
748 dbus_system_conn = dbus_bus_get(DBUS_BUS_SYSTEM, &dbus_error);
749 if (dbus_system_conn == NULL) {
750 g_printerr ("Failed to open connection to D-BUS SYSTEM bus\n");
751 } else {
752 dbus_connection_setup_with_g_main(dbus_system_conn, NULL);
753 // dbus_system_proxy = dbus_g_proxy_new_for_name (dbus_system_conn,
754 // "org.freedesktop.Hal",
755 // "/",
756 // "org.freedesktop.Hal.Device");
757 // g_object_unref (dbus_system_proxy);
758 hal_context = libhal_ctx_new ();
759 if (hal_context == NULL) {
760 g_print("Couldn't create HAL context!\n");
761 } else {
762 //libhal_ctx_set_user_data (hal_context, (void *) NULL);
763 libhal_ctx_set_dbus_connection (hal_context, dbus_system_conn);
764 libhal_ctx_set_device_added (hal_context, hal_device_added);
765 libhal_ctx_set_device_removed (hal_context, hal_device_removed);
766 libhal_device_property_watch_all (hal_context, &dbus_error);
767 if (!libhal_ctx_init (hal_context, &dbus_error)) {
768 g_print("error: libhal_ctx_init: %s: %s\n", dbus_error.name, dbus_error.message);
769 }
770 }
771 }
772 dbus_error_free(&dbus_error);
773 #endif
774
775590 gtk_widget_show(main_window);
776
591 g_idle_add(startup_actions, NULL);
777592 gtk_main();
778593 return 0;
779594 }
00 /* id3read.c
11 interface for the id3tag library
2 Copyright (C) 2001 Linus Walleij
2 Copyright (C) 2001-2011 Linus Walleij
33
44 This file is part of the GNOMAD package.
55
1111 You should have received a copy of the GNU General Public License
1212 along with GNOMAD; see the file COPYING. If not, write to
1313 the Free Software Foundation, 59 Temple Place - Suite 330,
14 Boston, MA 02111-1307, USA.
14 Boston, MA 02111-1307, USA.
1515
1616 */
1717
2727 #include <sys/types.h>
2828 #include <sys/stat.h>
2929 #include <fcntl.h>
30 #if GLIB_CHECK_VERSION(2,6,0) /* perhaps only needed in this case?? */
31 # include <glib.h>
32 # include <glib/gstdio.h>
33 #endif
30 #include <glib.h>
31 #include <glib/gstdio.h>
3432
3533 /* Eventually make charset selectable */
3634
3735 static id3_utf8_t *charset_to_utf8(const id3_latin1_t *str)
3836 {
3937 id3_utf8_t *tmp;
40
38
4139 tmp = (id3_utf8_t *) g_convert((gchar *) str,-1,"UTF-8","ISO-8859-1",NULL,NULL,NULL);
4240 return (id3_utf8_t *) tmp;
4341 }
5149 }
5250
5351 /*
54 * This function checks if a RIFF header exists at the beginning of
52 * This function checks if a RIFF header exists at the beginning of
5553 * the *data buffer. In that case its size is returned. The size
5654 * of the *data buffer must be supplied.
5755 */
58 static guint riff_header_size(gchar *data, guint bufsize)
56 static guint riff_header_size(gchar *data, guint bufsize)
5957 {
6058 guint retsize = 0;
6159
584582 return;
585583 }
586584
587 #if GLIB_CHECK_VERSION(2,6,0)
588585 f1 = (gint) g_open(tmppath, READONLY_FLAGS, 0);
589 #else
590 f1 = (gint) open(tmppath, READONLY_FLAGS, 0);
591 #endif
592
593586 if (f1 < 0) {
594587 g_print("Could not open file f1 in remove_or_add_tag()\n");
595588 g_free(tmppath);
776769 if (gnomad_debug != 0) {
777770 g_print("Copying the file back...\n");
778771 }
779 #if GLIB_CHECK_VERSION(2,8,0)
772 #if GLIB_CHECK_VERSION(2,8,0)
780773 f3 = (gint) g_creat(tmppath, (mode_t) CREATE_FILEMODE);
781774 #else
782775 f3 = (gint) creat(tmppath, (mode_t) CREATE_FILEMODE);
785778 // g_print("Creat() on original file succeeded...\n");
786779 while (1) {
787780 register gint n;
788
781
789782 n = read(f2,buffer,bufsiz);
790783 if (n == -1) {
791784 g_print("Error reading source file during final copying in remove_or_add_tag()\n");
805798 }
806799 close(f2);
807800 // g_print("Deleting %s\n", template);
808 #if GLIB_CHECK_VERSION(2,6,0)
809801 g_unlink(template);
810 #else
811 unlink(template);
812 #endif
813802 } else {
814803 // In case we couldn't open f2
815804 close(f1);
11 * \file jukebox.c
22 * Functions related to the communication with jukebox hardware
33 * using the libnjb library.
4 * Copyright (C) 2001-2007 Linus Walleij
4 * Copyright (C) 2001-2011 Linus Walleij
55 *
66 * This file is part of the GNOMAD package.
77 *
1313 * You should have received a copy of the GNU General Public License
1414 * along with GNOMAD; see the file COPYING. If not, write to
1515 * the Free Software Foundation, 59 Temple Place - Suite 330,
16 * Boston, MA 02111-1307, USA.
16 * Boston, MA 02111-1307, USA.
1717 *
1818 */
1919
2626 #include "filenaming.h"
2727 #include "util.h"
2828 #include "id3read.h"
29 #if !GTK_CHECK_VERSION(2,4,0)
30 #include <libgnomeui/libgnomeui.h>
31 #endif
3229 #include <glib.h>
3330 #include <glib/gprintf.h>
3431
4340 static gboolean device_connected = FALSE;
4441 #ifdef HAVE_LIBMTP
4542 static LIBMTP_mtpdevice_t *mtpdevice;
46 static LIBMTP_folder_t * mtp_folders=NULL;
47 static uint32_t mtp_current_filter_id=0;
43 static LIBMTP_folder_t * mtp_folders=NULL;
44 static uint32_t mtp_current_filter_id=0;
4845 static uint32_t mtp_last_folder_id=0;
4946 static gchar * mtp_last_fullpath=NULL;
5047 #endif
7168 * all the songs arranged by song ID */
7269 static GHashTable *songhash = NULL;
7370 /* This is used temporarily for storing a list of
74 * playlist entries (gnomadplaylist_entry_t), which
71 * playlist entries (gnomadplaylist_entry_t), which
7572 * in turn stores the playlists as GSLists with track
76 * IDs.
77 *
73 * IDs.
74 *
7875 * playlistlist -> list-> list -> list -> ... -> NULL
7976 * | | |
8077 * entry entry entry
8683 * +-> track -> track -> ... -> NULL
8784 */
8885 static GSList *playlistlist = NULL;
89 /*
86 /*
9087 * This is a file list with folder information, filtered
9188 * to present a folder view
9289 */
119116 { LIBMTP_FILETYPE_TIFF, "TIF" },
120117 { LIBMTP_FILETYPE_TIFF, "TIFF" },
121118 { LIBMTP_FILETYPE_BMP, "BMP" },
122 { LIBMTP_FILETYPE_GIF, "GIF" },
119 { LIBMTP_FILETYPE_GIF, "GIF" },
123120 { LIBMTP_FILETYPE_PICT, "PIC" },
124121 { LIBMTP_FILETYPE_PICT, "PICT" },
125122 { LIBMTP_FILETYPE_PNG, "PNG" },
178175 return current;
179176 ++current;
180177 }
181 return current; /* I.E. type == LIBMTP_FILETYPE_UNKNOWN */
178 return current; /* I.E. type == LIBMTP_FILETYPE_UNKNOWN */
182179 }
183180 #endif
184181
185182 /* Return disk usage */
186 static void jukebox_getusage(guint64 *total, guint64 *free, guint64 *used,
183 static void jukebox_getusage(guint64 *total, guint64 *free, guint64 *used,
187184 guint32 *songs, guint32 *playlists, guint32 *datafiles)
188185 {
189186 *total = jukebox_totalbytes;
194191 *datafiles = jukebox_datafiles;
195192 }
196193
197 /***********************************************************************************/
198 /* Public and private functions */
199 /***********************************************************************************/
200
201 static void display_njberror(njb_t *njb, gchar *template)
194 /*
195 * Public and private functions
196 */
197
198 static void display_njberror(njb_t *njb, gchar *template)
202199 {
203200 gboolean found_njb_error = FALSE;
204201 const gchar *sp;
205202 GString *error_string = g_string_new(template);
206203
207 if (njb != NULL) {
204 if (njb != NULL) {
208205 NJB_Error_Reset_Geterror(njb);
209206 while ((sp = NJB_Error_Geterror(njb)) != NULL) {
210207 found_njb_error = TRUE;
214211 found_njb_error = TRUE;
215212 g_string_append_printf(error_string, _("Could not open the device on the USB bus"));
216213 }
217
214
218215 if (!found_njb_error)
219216 g_string_append_printf(error_string, _("(unknown cause)"));
220217
241238 } else {
242239 if (pdedevice != NULL) {
243240 u_int8_t sdmiid[16];
244
241
245242 if (NJB_Get_SDMI_ID(pdedevice, (u_int8_t *) &sdmiid) == 0) {
246243 return g_strdup_printf("%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X",
247 sdmiid[0], sdmiid[1], sdmiid[2], sdmiid[3], sdmiid[4],
248 sdmiid[5], sdmiid[6], sdmiid[7], sdmiid[8], sdmiid[9],
249 sdmiid[10], sdmiid[11], sdmiid[12], sdmiid[13], sdmiid[14],
244 sdmiid[0], sdmiid[1], sdmiid[2], sdmiid[3], sdmiid[4],
245 sdmiid[5], sdmiid[6], sdmiid[7], sdmiid[8], sdmiid[9],
246 sdmiid[10], sdmiid[11], sdmiid[12], sdmiid[13], sdmiid[14],
250247 sdmiid[15]);
251248 } else {
252249 return NULL;
270267 if (pdedevice != NULL) {
271268 if (jukebox_firmware == NULL) {
272269 u_int8_t major, minor, release;
273
270
274271 if (NJB_Get_Firmware_Revision(pdedevice, &major, &minor, &release) == -1) {
275272 return NULL;
276273 }
300297 if (pdedevice != NULL) {
301298 if (jukebox_hardware == NULL) {
302299 u_int8_t major, minor, release;
303
300
304301 if (NJB_Get_Hardware_Revision(pdedevice, &major, &minor, &release) == -1) {
305302 return NULL;
306303 }
378375 #ifdef HAVE_LIBMTP
379376 uint8_t max, current;
380377 gint ret;
381
378
382379 ret = LIBMTP_Get_Batterylevel(mtpdevice, &max, &current);
383380 if (ret == 0) {
384381 // Adjust to a scale between 0 and 100, linear interpolation
401398
402399 static void add_to_dialog(GtkWidget *dialog, GtkWidget *thing)
403400 {
404 #if GTK_CHECK_VERSION(2,4,0)
405401 gtk_box_pack_start (GTK_BOX(GTK_DIALOG(dialog)->vbox), thing, TRUE, TRUE, 0);
406 #else
407 gtk_box_pack_start (GTK_BOX(GNOME_DIALOG(dialog)->vbox), thing, TRUE, TRUE, 0);
408 #endif
409402 }
410403
411404 /* This creates a device information dialog and returns it. */
429422 return NULL;
430423 }
431424 }
432
425
433426 // Make sure our information is up-to-date
434427 refresh_id();
435428
436 #if GTK_CHECK_VERSION(2,4,0)
437429 dialog = gtk_message_dialog_new (GTK_WINDOW(main_window),
438430 GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
439431 GTK_MESSAGE_INFO,
449441 G_CALLBACK(gtk_widget_destroy),
450442 NULL,
451443 0);
452 g_signal_connect_object(GTK_OBJECT(dialog),
444 g_signal_connect_object(GTK_OBJECT(dialog),
453445 "response",
454 G_CALLBACK(gtk_widget_destroy),
446 G_CALLBACK(gtk_widget_destroy),
455447 NULL,
456448 0);
457 #else
458 dialog = gnome_dialog_new(_("Jukebox information"),
459 GNOME_STOCK_BUTTON_OK,
460 NULL);
461 gnome_dialog_button_connect_object(GNOME_DIALOG(dialog),
462 0,
463 GTK_SIGNAL_FUNC(gtk_widget_destroy),
464 GTK_OBJECT(dialog));
465 #endif
466449 hbox = gtk_hbox_new(FALSE, 0);
467450 label = gtk_label_new (_("Unique device ID:"));
468451 gtk_box_pack_start (GTK_BOX(hbox), label, FALSE, FALSE, 0);
530513 gtk_widget_show(label);
531514 add_to_dialog(dialog, hbox);
532515 gtk_widget_show (hbox);
533
534 // The pdedevice struct will not be dereferenced unless
516
517 // The pdedevice struct will not be dereferenced unless
535518 // PDE is used.
536519 if (use_mtp || (pdedevice != NULL && pdedevice->device_type != NJB_DEVICE_NJB1)) {
537520 hbox = gtk_hbox_new(FALSE, 0);
577560 gtk_box_pack_start (GTK_BOX(hbox), label, FALSE, FALSE, 0);
578561 gtk_widget_show (label);
579562 add_empty_hbox (hbox);
580 sprintf(tmp, "%" PRIguint64 " (%" PRIguint64 " MB)",
563 sprintf(tmp, "%" PRIguint64 " (%" PRIguint64 " MB)",
581564 total, (guint64) total/G_GINT64_CONSTANT(1048576));
582565 label = gtk_label_new(tmp);
583566 gtk_box_pack_start (GTK_BOX(hbox), label, FALSE, FALSE, 0);
590573 gtk_box_pack_start (GTK_BOX(hbox), label, FALSE, FALSE, 0);
591574 gtk_widget_show (label);
592575 add_empty_hbox (hbox);
593 sprintf(tmp, "%" PRIguint64 " (%" PRIguint64 " MB)",
576 sprintf(tmp, "%" PRIguint64 " (%" PRIguint64 " MB)",
594577 free, (guint64) free/G_GINT64_CONSTANT(1048576));
595578 label = gtk_label_new(tmp);
596579 gtk_box_pack_start (GTK_BOX(hbox), label, FALSE, FALSE, 0);
603586 gtk_box_pack_start (GTK_BOX(hbox), label, FALSE, FALSE, 0);
604587 gtk_widget_show (label);
605588 add_empty_hbox (hbox);
606 sprintf(tmp, "%" PRIguint64 " (%" PRIguint64 " MB)",
589 sprintf(tmp, "%" PRIguint64 " (%" PRIguint64 " MB)",
607590 used, (guint64) used/G_GINT64_CONSTANT(1048576));
608591 label = gtk_label_new(tmp);
609592 gtk_box_pack_start (GTK_BOX(hbox), label, FALSE, FALSE, 0);
664647 g_free(jukebox_timestring);
665648 jukebox_timestring = NULL;
666649 }
667 jukebox_timestring = g_strdup_printf("%u-%.2u-%.2u %.2u:%.2u:%.2u",
650 jukebox_timestring = g_strdup_printf("%u-%.2u-%.2u %.2u:%.2u:%.2u",
668651 time->year, time->month, time->day,
669 time->hours, time->minutes,
652 time->hours, time->minutes,
670653 time->seconds);
671654 free(time);
672655 }
744727
745728
746729 /*
747 * Discover devices on the USB bus and return an array of
730 * Discover devices on the USB bus and return an array of
748731 * descriptions that may be used to select the jukebox with
749732 * index from 0 upwards.
750733 */
755738 /*
756739 * Intercept USB communications - invoke gnomad2
757740 * with gnomad2 -D7 to activate a lot of USB debugging
758 * information
741 * information
759742 */
760743 if (gnomad_debug != 0) {
761744 NJB_Set_Debug(gnomad_debug);
779762 #endif
780763
781764 device_count = PDE_device_count + MTP_device_count;
782
765
783766 if ( device_count == 0 ) {
784767 create_error_dialog(_("No jukeboxes found on USB bus"));
785768 return NULL;
825808 if (i < PDE_device_count) {
826809 g_print("This is a PDE device\n");
827810 pdedevice = &pde_devices[i];
828
811
829812 if (NJB_Open(pdedevice) == -1) {
830813 display_njberror(pdedevice, _("Could not open jukebox:\n"));
831814 return FALSE;
840823 return FALSE;
841824 }
842825 */
843
826
844827 if (NJB_Capture(pdedevice) == -1) {
845828 display_njberror(pdedevice, _("Could not capture jukebox:\n"));
846829 NJB_Close(pdedevice);
847830 return FALSE;
848831 }
849
832
850833 /* Set turbo mode according to preferences */
851834 if (get_prefs_turbo_mode()) {
852835 NJB_Set_Turbo_Mode(pdedevice, NJB_TURBO_ON);
880863 return FALSE;
881864 }
882865
883 device_connected = TRUE;
866 device_connected = TRUE;
884867 return TRUE;
885868 }
886869
902885 return FALSE;
903886 }
904887 }
905
888
906889 if (!device_connected) {
907890 g_print("Device was not connected.\n");
908891 return FALSE;
956939 * drop down is then built from */
957940 static void build_playlist_list(void)
958941 {
942 g_print("Called build playlist list...\n");
959943 // Make sure we destroyed the old playlist list
960944 if (playlistlist != NULL) {
961945 g_print("Playlistlist was not NULL!\n");
962946 }
963947
964 // Destroy the playlist list used for choosing
948 // Destroy the playlist list used for choosing
965949 // during transfer.
966950 if (jukebox_playlist != NULL) {
967951 GList *tmplist = jukebox_playlist;
968
952
953 g_print("Destroy jukebox_playlist...\n");
969954 while(tmplist) {
970955 if (tmplist->data != NULL)
971956 g_free(tmplist->data);
979964 if (use_mtp) {
980965 #ifdef HAVE_LIBMTP
981966 LIBMTP_playlist_t *playlists;
982
967
983968 // Get playlist listing.
984969 playlists = LIBMTP_Get_Playlist_List(mtpdevice);
985970 if (playlists != NULL) {
986971 LIBMTP_playlist_t *pl, *tmpl;
987
972
988973 pl = playlists;
989974 while (pl != NULL) {
990975 gnomadplaylist_entry_t *entry;
10211006 #endif
10221007 } else {
10231008 njb_playlist_t *playlist;
1024
1009
1010 // NJB_Set_Debug(DD_SUBTRACE);
1011 return;
1012
10251013 NJB_Reset_Get_Playlist(pdedevice);
10261014 while ((playlist = NJB_Get_Playlist(pdedevice)) != NULL) {
10271015 gnomadplaylist_entry_t *entry;
10401028 entry->name = g_strdup(playlist->name);
10411029 tmp = g_strdup_printf("%" PRIguint32, (guint32) playlist->plid);
10421030 entry->plid = tmp;
1043
1031
10441032 // Then build the tree structure immediately
10451033 NJB_Playlist_Reset_Gettrack(playlist);
10461034 while ((track = NJB_Playlist_Gettrack(playlist)) != NULL) {
10471035 entry->tracklist = g_slist_append(entry->tracklist,
10481036 GUINT32_TO_GPOINTER((guint32) track->trackid));
1049
1037
10501038 }
10511039 playlistlist = g_slist_append(playlistlist, (gpointer) entry);
10521040 if (cancel_jukebox_operation)
10691057 gnomadplaylist_entry_t *entry;
10701058 GSList *tmplist2;
10711059 GtkTreeIter treeiter;
1072
1060
10731061 entry = (gnomadplaylist_entry_t *) tmplist->data;
10741062 // g_print("Playlist: %s, ID %lu\n", entry->name, entry->plid);
10751063 gtk_tree_store_append (GTK_TREE_STORE(playlist_widgets.pltreestore), &treeiter, NULL);
10871075 // g_print("Track: %" PRIguint32 "\n", GPOINTER_TO_GUINT32(tmplist2->data));
10881076 meta = (metadata_t *) g_hash_table_lookup(songhash, tmplist2->data);
10891077 /*
1090 * This might have caused lots of trouble to people with bad tracks
1078 * This might have caused lots of trouble to people with bad tracks
10911079 * in their playlists... Fixed 2004-03-09 Linus Walleij
10921080 */
10931081 if (meta != NULL) {
1094 // g_print("Adding song with ID %" PRIguint32 " to playlist %" PRIguint32 "\n",
1082 // g_print("Adding song with ID %" PRIguint32 " to playlist %" PRIguint32 "\n",
10951083 // GPOINTER_TO_GUINT32(tmplist2->data), entry->plid);
10961084 // dump_metadata_t(meta);
10971085 gtk_tree_store_append (GTK_TREE_STORE(playlist_widgets.pltreestore), &treeiter2, &treeiter);
11191107 tmplist = playlistlist;
11201108 while (tmplist != NULL) {
11211109 gnomadplaylist_entry_t *entry;
1122
1110
11231111 entry = (gnomadplaylist_entry_t *) tmplist->data;
11241112 g_free(entry->name);
11251113 g_free(entry->plid);
11541142 {
11551143 GtkTreeStore *pltreestore = (GtkTreeStore *) data;
11561144
1145 g_print("Called call_build_playlist_tree\n");
11571146 build_playlist_tree();
1147 g_print("returned...\n");
1148 return FALSE;
1149 }
1150
1151 /*
1152 * Simple helper to destroy a dialog from the main loop.
1153 */
1154 static gboolean call_widget_destroy(gpointer data)
1155 {
1156 GtkWidget *dialog = (GtkWidget *) data;
1157
1158 gtk_widget_destroy(GTK_WIDGET(dialog));
11581159 return FALSE;
11591160 }
11601161
11631164 {
11641165 u_int64_t totalbytes = 0;
11651166 u_int64_t freebytes = 0;
1166
1167
11671168 if (use_mtp) {
11681169 #ifdef HAVE_LIBMTP
11691170 gint ret;
12941295 g_strfreev(tmp);
12951296 return (fprev->folder_id);
12961297 };
1297
1298
12981299 static LIBMTP_folder_t * mtp_find_first_subfolder(uint32_t ID){
12991300 if (ID==0) {
13001301 return mtp_folders;
13011302 } else {
1302 LIBMTP_folder_t * f =
1303 LIBMTP_folder_t * f =
13031304 LIBMTP_Find_Folder(mtp_folders, ID);
13041305 return f->child;
13051306 };
13301331 metadata_t *meta;
13311332 gchar **tmp;
13321333 int veclen;
1333
1334
13341335 if (filter == NULL) {
13351336 return NULL;
13361337 }
13531354 meta->folder = g_strdup(filter);
13541355 }
13551356 g_strfreev(tmp);
1356
1357
13571358 filterlist = g_slist_append(filterlist, meta);
13581359 #ifdef HAVE_LIBMTP
13591360 if (use_mtp) {
1360 filterlist = mtp_add_subfolders(filter,filterlist);
1361 }
1362 #endif
1361 filterlist = mtp_add_subfolders(filter,filterlist);
1362 }
1363 #endif
13631364 /* Then filter the list */
13641365 while (tmplist != NULL) {
13651366 meta = (metadata_t *) tmplist->data;
14161417 if (filtered != NULL) {
14171418 GSList *tmplist = filtered;
14181419 metadata_t *meta;
1419
1420
14201421 while (tmplist != NULL) {
14211422 meta = (metadata_t *) tmplist->data;
14221423 add_metadata_to_model(meta, JBDATA_LIST);
14451446
14461447 static gboolean draw_label(gpointer p) {
14471448 draw_label_args_t *args = (draw_label_args_t *) p;
1448
1449
14491450 if (args != NULL) {
14501451 if (args->label != NULL && args->text != NULL) {
14511452 gtk_label_set_text(GTK_LABEL(args->label), args->text);
14591460
14601461 static gboolean draw_progress(gpointer p) {
14611462 draw_progress_args_t *args = (draw_progress_args_t *) p;
1462
1463
14631464 if (args != NULL) {
14641465 if (args->progress != NULL) {
14651466 gtk_progress_bar_update(GTK_PROGRESS_BAR(args->progress), args->fraction);
15311532 jukebox_ownerstring = g_strdup(NJB_Get_Owner_String (pdedevice));
15321533 }
15331534 flush_usage();
1534
1535
15351536 songhash = g_hash_table_new(NULL, NULL);
15361537 if (!use_mtp) {
15371538 // Activate extended metadata mode if desired
15621563 last_item = TRUE;
15631564 }
15641565 }
1565 /*
1566 * FIXME/IMPROVEMENT: If jukebox_songs != 0 start displaying progress bar?
1566 /*
1567 * FIXME/IMPROVEMENT: If jukebox_songs != 0 start displaying progress bar?
15671568 * series 3 devices can actually report the number of songs. However it
15681569 * is so fast anyway, so who'd want it? Most time is spent updating the
15691570 * widget, not communicating with the device.
15701571 */
1571
1572
15721573 while (!last_item) {
15731574 metadata_t *meta;
15741575
15781579 da->label = args->label;
15791580 da->text = g_strdup_printf(_("%" PRIguint32 " songs scanned"), jukebox_songs);
15801581 g_idle_add(draw_label, da);
1581
1582
15821583 // Create a structure to hold the data in the columns
15831584 meta = new_metadata_t();
15841585
16161617 // These two are not supported yet.
16171618 meta->folder = NULL;
16181619 meta->protect = FALSE;
1619
1620
16201621 tmp = mtptrack;
16211622 mtptrack = mtptrack->next;
16221623 LIBMTP_destroy_track_t(tmp);
16311632
16321633 NJB_Songid_Reset_Getframe(songtag);
16331634 meta->path = g_strdup_printf("%" PRIguint32, (guint32) songtag->trid);
1634
1635
16351636 /* Loop through the song tags */
16361637 while((frame = NJB_Songid_Getframe(songtag)) != NULL){
16371638 // FIXME: add progress bar for scanning?
1638
1639
16391640 if (!strcmp(frame->label, FR_ARTIST)) {
16401641 meta->artist = g_strdup(frame->data.strval);
16411642 } else if (!strcmp(frame->label, FR_TITLE)) {
17011702 da->label = args->label;
17021703 da->text = g_strdup(_("Scanning datafiles..."));
17031704 g_idle_add(draw_label, da);
1704
1705
17051706 /* Next retrieve the datafile listing */
17061707 last_item = FALSE;
17071708 if (use_mtp) {
17291730 while (!last_item) {
17301731 metadata_t *meta;
17311732 u_int64_t filesize;
1732
1733
17331734 jukebox_datafiles++;
17341735
17351736 da = (draw_label_args_t *) g_malloc(sizeof(draw_label_args_t));
17501751 // These two are not supported yet.
17511752 meta->folder = g_strdup(mtp_find_fullpath(mtpfile->parent_id));
17521753 meta->protect = FALSE;
1753
1754
17541755 tmp = mtpfile;
17551756 mtpfile = mtpfile->next;
17561757 LIBMTP_destroy_file_t(tmp);
17891790 last_item = TRUE;
17901791 }
17911792 }
1792
1793
17931794 datafilelist = g_slist_append(datafilelist, (gpointer) meta);
17941795 if (cancel_jukebox_operation)
17951796 break;
17961797 }
1797
1798
17981799 /* Then refill and sort everything */
17991800 da = (draw_label_args_t *) g_malloc(sizeof(draw_label_args_t));
18001801 da->label = args->label;
18011802 da->text = g_strdup(_("Scanning playlists..."));
18021803 g_idle_add(draw_label, da);
18031804
1804 /* Tell main loop to rebuild datafile list */
1805 /*
1806 * Tell main loop to rebuild datafile list and playlist tree, then
1807 * close the dialog.
1808 */
18051809 g_idle_add(call_rebuild_datafile_list, NULL);
1806
1807 // Then refresh the playlist tree
1808 if (gnomad_debug != 0) {
1809 g_print("Building playlist tree...\n");
1810 }
18111810 g_idle_add(call_build_playlist_tree, (gpointer) args->pltreestore);
1812 g_idle_add((GSourceFunc) gtk_widget_destroy, args->dialog);
1813
1811 g_idle_add(call_widget_destroy, (gpointer) args->dialog);
1812
18141813 jukebox_locked = FALSE;
18151814 return NULL;
18161815 }
18181817 static void set_progress_fraction(guint64 const sent, guint64 const total)
18191818 {
18201819 draw_progress_args_t *dp;
1821
1820
18221821 dp = (draw_progress_args_t *) g_malloc(sizeof(draw_progress_args_t));
18231822 dp->progress = progress_bar;
18241823 dp->fraction = ((gdouble) sent / (gdouble) total);
19021901 draw_label_args_t *da;
19031902 draw_progress_args_t *dp;
19041903 metadata_add_args_t *metaddarg;
1905
1904
19061905 /* Get title from filelist */
19071906 jbmeta = (metadata_t *) tmplist->data;
19081907 filename = compose_filename(jbmeta);
22792278 }
22802279 destroy_metalist(new_metalist);
22812280 flush_usage();
2282
2281
22832282 hd2jb_cleanup:
22842283
22852284 // Remove temporary directory for tag-stripped files.
22862285 if (tmpdirname != NULL) {
22872286 rmdir(tmpdirname);
22882287 }
2289
2288
22902289 g_idle_add((GSourceFunc) gtk_widget_destroy, args->dialog);
22912290 if (args->playlists != NULL) {
22922291 g_idle_add(call_build_playlist_tree, (gpointer) args->pltreestore);
2293 }
2292 }
22942293 jukebox_locked = FALSE;
22952294 g_list_free(args->playlists);
22962295 destroy_metalist(args->metalist);
23232322 draw_label_args_t *da;
23242323 draw_progress_args_t *dp;
23252324 metadata_add_args_t *metaddarg;
2326
2325
23272326 hdmeta = (metadata_t *) metalist->data;
23282327 // FIXME: is this getting operation really thread safe???
23292328 folder = (gchar *) gtk_entry_get_text(GTK_ENTRY(data_widgets.jbentry));
29582957 while(tmplist) {
29592958 metadata_t *meta;
29602959 u_int32_t id;
2961
2960
29622961 meta = (metadata_t *) tmplist->data;
29632962 id = string_to_guint32(meta->path);
29642963 /* g_print("Adding track %lu to playlist %lu\n", id, playlistid); */
29872986 cancel_jukebox_operation = FALSE;
29882987 while (templist != NULL) {
29892988 guint32 plid = GPOINTER_TO_GUINT32(templist->data);
2989 // g_printf("Adding track to playlist 0x%08x\n", plid);
29902990 add_tracks_to_single_playlist(plid, metalist);
29912991 templist = g_list_next(templist);
29922992 }
29982998 {
29992999 guint new_plid = plist;
30003000
3001
30023001 if (use_mtp) {
30033002 // FIXME: implement for MTP, not yet done.
30043003 return plist;
00 /* metadata.c
11 Metadata list stores and handler functions
2 Copyright (C) 2001 Linus Walleij
2 Copyright (C) 2001-2011 Linus Walleij
33
44 This file is part of the GNOMAD package.
55
1111 You should have received a copy of the GNU General Public License
1212 along with GNOMAD; see the file COPYING. If not, write to
1313 the Free Software Foundation, 59 Temple Place - Suite 330,
14 Boston, MA 02111-1307, USA.
14 Boston, MA 02111-1307, USA.
1515
1616 */
1717
353353 GtkTreeSelection *get_metadata_selection(listtype_t listtype)
354354 {
355355 GtkTreeSelection *select = NULL;
356
356
357357 select = gtk_tree_view_get_selection(get_view(listtype));
358358 return select;
359359 }
360360
361 #if ! GTK_CHECK_VERSION(2,2,0)
362 // this function sucks, but it's needed to be compatible with gtk2.0
363 void multipleSelectionHelper(GtkTreeModel *model,
364 GtkTreePath *path,
365 GtkTreeIter *iter,
366 gpointer data)
367 {
368 GList **list;
369 list = (GList**)data;
370 *list = g_list_append(*list, gtk_tree_path_copy(path));
371 }
372 #endif
373
374361 /* Returns the paths for all selected rows so they may be processed */
375362 static GList *get_metadata_selection_paths(listtype_t listtype)
376363 {
377364 GtkTreeSelection *select = get_metadata_selection(listtype);
378365 GtkTreeModel *model = GTK_TREE_MODEL(get_store(listtype));
379 #if GTK_CHECK_VERSION(2,2,0)
380366 GList *selectlist = gtk_tree_selection_get_selected_rows(select, &model);
381 #else
382 GList *selectlist = NULL;
383 gtk_tree_selection_selected_foreach(select, multipleSelectionHelper,
384 &selectlist);
385 #endif
386367
387368 return selectlist;
388369 }
391372 {
392373 GtkTreeSelection *select;
393374 GList *metadatas = NULL;
394
375
395376 select = get_metadata_selection(listtype);
396377 if (select == NULL)
397378 return NULL;
906887 /* All should be found now */
907888 gtk_tree_view_set_model (GTK_TREE_VIEW (get_view(listtype)),
908889 GTK_TREE_MODEL (get_store(listtype)));
909
890
910891 if (listtype == HD_LIST) {
911892 for (i = TRACKLIST_ARTIST_COLUMN; i < TRACKLIST_ARTIST_COLUMN + TRACKLIST_N_COLUMNS; i++) {
912893 gtk_tree_sortable_set_sort_func(GTK_TREE_SORTABLE(transfer_widgets.hdliststore),
00 /* mp3file.c
11 Accessing the metadata of a raw MPEG stream
2 Copyright (C) 2001 Linus Walleij
2 Copyright (C) 2001-2011 Linus Walleij
33
44 This file is part of the GNOMAD package.
55
1111 You should have received a copy of the GNU General Public License
1212 along with GNOMAD; see the file COPYING. If not, write to
1313 the Free Software Foundation, 59 Temple Place - Suite 330,
14 Boston, MA 02111-1307, USA.
14 Boston, MA 02111-1307, USA.
1515
1616 */
1717
1919 #include "common.h"
2020 #include "util.h"
2121 #include "filesystem.h"
22 #if GTK_CHECK_VERSION(2,6,0)
23 # include <glib.h>
24 # include <glib/gstdio.h>
25 #endif
22 #include <glib.h>
23 #include <glib/gstdio.h>
2624
2725 /*
2826 * The following code is extracted from gtkpod, which in turn
395393 if (gnomad_debug != 0) {
396394 g_print("entered mp3file_get_info()\n");
397395 }
398
399 #if !GTK_CHECK_VERSION(2,6,0)
400 if ( !( fp = fopen(filename,READONLY_FOPEN_STRING) ) ) {
401 #else
402396 if ( !( fp = g_fopen(filename,READONLY_FOPEN_STRING) ) ) {
403 #endif
404397 g_print(("Error opening MP3 file '%s'\n"),filename);
405398 } else {
406399 mp3 = g_malloc0 (sizeof (mp3info));
940933 static guint get_track_time (gchar *path)
941934 {
942935 guint result = 0;
943
936
944937 if (path) {
945 #if !GTK_CHECK_VERSION(2,6,0)
946 FILE *file = fopen (path, READONLY_FOPEN_STRING);
947 #else
948938 FILE *file = g_fopen (path, READONLY_FOPEN_STRING);
949 #endif
950939 result = get_track_time_file (file);
951940 if (file) fclose (file);
952941 }
00 /* player.c
11 Player window for jukebox file playing
2 Copyright (C) 2001 Linus Walleij
2 Copyright (C) 2001-2011 Linus Walleij
33
44 This file is part of the GNOMAD package.
55
1111 You should have received a copy of the GNU General Public License
1212 along with GNOMAD; see the file COPYING. If not, write to
1313 the Free Software Foundation, 59 Temple Place - Suite 330,
14 Boston, MA 02111-1307, USA.
14 Boston, MA 02111-1307, USA.
1515
1616 */
1717
3838 GSList *tmplist;
3939 gboolean was_exclusive = FALSE;
4040 guint effect = GPOINTER_TO_UINT(data);
41 #if ! GTK_CHECK_VERSION(2,4,0)
42 guint patch = gtk_option_menu_get_history(GTK_OPTION_MENU(combo));
43 #else
4441 guint patch = gtk_combo_box_get_active(GTK_COMBO_BOX(combo));
45 #endif
42
4643 // See if it is exclusive
4744 tmplist = exclusive_patches;
4845 while (tmplist != NULL) {
5855 while (tmplist != NULL) {
5956 if (combo != tmplist->data) {
6057 // Reset it
61 #if ! GTK_CHECK_VERSION(2,4,0)
62 gtk_option_menu_set_history(GTK_OPTION_MENU(tmplist->data), 0);
63 #else
6458 gtk_combo_box_set_active(GTK_COMBO_BOX(tmplist->data), 0);
65 #endif
6659 }
6760 tmplist = g_slist_next(tmplist);
6861 }
6962 // Then make sure it is set
70 #if ! GTK_CHECK_VERSION(2,4,0)
71 gtk_option_menu_set_history(GTK_OPTION_MENU(combo), patch);
72 #else
7363 gtk_combo_box_set_active(GTK_COMBO_BOX(combo), patch);
74 #endif
75 }
76
64 }
65
7766 if (playing) {
7867 // Wire scalevalue to 0
7968 // g_print("Selecting patch %d for effect %04X\n", patch, effect);
8473
8574 /* options = name -> value -> name -> value -> ... */
8675 /* This code for GTK+ 2.3 / 2.4 and up */
87 #if GTK_CHECK_VERSION(2,4,0)
8876 static GtkWidget *create_patch_menu(guint16 effect,
8977 GSList *patches,
9078 GCallback callback_function,
118106 g_slist_free(patches);
119107 return combo_box;
120108 }
121 #else
122 /* options = name -> value -> name -> value -> ... */
123 static GtkWidget *create_patch_menu(guint16 effect,
124 GSList *patches,
125 GCallback callback_function,
126 guint default_patch)
127 {
128 GtkWidget *option_menu;
129 GtkWidget *menu;
130 GtkWidget *menu_item;
131 GSList *group = NULL;
132 GSList *tmplist = patches;
133 guint i;
134 guint mr_effect = (guint) effect;
135
136 // Create an option menu
137 option_menu = gtk_option_menu_new();
138 menu = gtk_menu_new();
139 // Add rows to the menu
140 i = 0;
141 while (tmplist) {
142 menu_item = gtk_radio_menu_item_new_with_label(group, tmplist->data);
143 if (i == default_patch) {
144 gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(menu_item), TRUE);
145 }
146 group = gtk_radio_menu_item_get_group(GTK_RADIO_MENU_ITEM(menu_item));
147 gtk_menu_shell_append(GTK_MENU_SHELL(menu), menu_item);
148 gtk_widget_show(menu_item);
149 tmplist = tmplist->next;
150 i++;
151 }
152 g_signal_connect(GTK_OBJECT(option_menu),
153 "changed",
154 G_CALLBACK(callback_function),
155 GUINT_TO_POINTER(mr_effect));
156 gtk_option_menu_set_menu (GTK_OPTION_MENU (option_menu), menu);
157 gtk_option_menu_set_history (GTK_OPTION_MENU (option_menu), default_patch);
158 gtk_widget_show(option_menu);
159 // Free memory used by list
160 tmplist = patches;
161 while (tmplist != NULL) {
162 g_free(tmplist->data);
163 tmplist = tmplist->next;
164 }
165 g_slist_free(patches);
166 return option_menu;
167 }
168 #endif
169109
170110 void prevbutton_click ( GtkButton *button,
171111 gpointer data )
198138 gint16 scalevalue = (gint16) adj->value;
199139
200140 if (playing) {
201 //g_print("Setting scalevalue for effect %04X to %d\n",
141 //g_print("Setting scalevalue for effect %04X to %d\n",
202142 // adjprops->effect, scalevalue);
203143 jukebox_adjust_eax(adjprops->effect, 0, scalevalue);
204144 }
222162 GtkWidget *vscale;
223163 eax_adjust_props_t *adjprops;
224164
225 adjprops = (eax_adjust_props_t *) g_malloc(sizeof(eax_adjust_props_t));
165 adjprops = (eax_adjust_props_t *) g_malloc(sizeof(eax_adjust_props_t));
226166 adjprops->effect = effect;
227167 adjprops->min = min;
228168 adjprops->max = max;
262202 gboolean togglestatus;
263203 guint16 onoff;
264204 guint effect = GPOINTER_TO_UINT(data);
265
205
266206 togglestatus = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(toggle));
267207 if (togglestatus)
268208 onoff = 1;
271211 if (playing) {
272212 // Wire scalevalue to 0
273213 jukebox_adjust_eax(effect, onoff, 0);
274 }
214 }
275215 }
276216
277217
298238 hbox = gtk_hbox_new(FALSE, 5);
299239
300240 jukebox_reset_get_eax();
301
241
302242 while ((eax = jukebox_get_eax()) != NULL) {
303243 // FIXME: reset all exclusive effects when an exclusive is selected.
304244 // Eax group has its own box
346286 guint i;
347287 GSList *names = NULL;
348288 GtkWidget *patches;
349
289
350290 for(i = 0; i < eax->max_value - eax->min_value + 1; i++) {
351291 names = g_slist_append(names, g_strdup(eax->option_names[i]));
352292 }
353293 patches = create_patch_menu(eax->number,
354294 names,
355 GTK_SIGNAL_FUNC(patch_changed),
295 G_CALLBACK(patch_changed),
356296 eax->current_value);
357297 gtk_box_pack_start(GTK_BOX(vbox), patches, TRUE, TRUE, 0);
358298 if (eax->exclusive) {
363303 // Scale value slider
364304 if (eax->type == NJB_EAX_SLIDER_CONTROL) {
365305 GtkWidget *slider;
366
306
367307 // g_print("Scalevalue %s, min %d, max %d, current %d\n",
368308 // eax->name, eax->min_scalevalue, eax->max_scalevalue,
369309 // eax->current_scalevalue);
384324 // Pack the last group box
385325 gtk_box_pack_start(GTK_BOX(hbox), group_box, TRUE, TRUE, 0);
386326 gtk_widget_show(group_box);
387
327
388328 return hbox;
389329 }
390330
397337 // Calculate the byte position offset
398338 guint delta = 0;
399339 guint skipto = 0;
400
340
401341 // If we just passed a track boundary there is no delta,
402342 // else we find out how much the position has changed.
403343 if ((prevpos == 100 || prevpos == 99) && (pos == 0 || pos == 1)) {
434374 GtkWidget *label1, *label2, *label3, *dialog, *button, *separator;
435375 GtkWidget *hscale, *eax_controls;
436376 GtkWidget *hbox, *hbox2, *vbox;
437 #if !GTK_CHECK_VERSION(2,6,0)
438 GtkWidget *label, *arrow;
439 GtkWidget *hbox3;
440 #endif
441377 GtkAdjustment *adj;
442378
443379 // Playback on MTP devices not supported. (Yet.)
475411 gtk_scale_set_value_pos (GTK_SCALE(hscale), GTK_POS_TOP);
476412 gtk_scale_set_draw_value (GTK_SCALE(hscale), FALSE);
477413 gtk_widget_show (hscale);
478 #if GTK_CHECK_VERSION(2,6,0)
479414 button = gtk_button_new_from_stock(GTK_STOCK_MEDIA_STOP);
480 #else
481 button = gtk_button_new_with_label(_("STOP"));
482 #endif
483 GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
484 gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->action_area), button,
485 FALSE, FALSE, 0);
415 gtk_widget_set_can_default(button, TRUE);
416 gtk_box_pack_start(GTK_BOX (GTK_DIALOG (dialog)->action_area), button,
417 FALSE, FALSE, 0);
486418 g_signal_connect_object(GTK_OBJECT(button),
487419 "clicked",
488420 G_CALLBACK(stop_playing),
505437 /* Manouver panel */
506438 hbox2 = gtk_hbox_new(FALSE, 0);
507439
508 #if GTK_CHECK_VERSION(2,6,0)
509440 button = gtk_button_new_from_stock(GTK_STOCK_MEDIA_PREVIOUS);
510 #else
511 button = gtk_button_new();
512 hbox3 = gtk_hbox_new(FALSE, 0);
513 arrow = gtk_arrow_new(GTK_ARROW_LEFT, GTK_SHADOW_NONE);
514 gtk_box_pack_start(GTK_BOX(hbox3), arrow, TRUE, TRUE, 0);
515 label = gtk_label_new(_("PREV"));
516 gtk_box_pack_start(GTK_BOX(hbox3), label, TRUE, TRUE, 0);
517 gtk_widget_show(arrow);
518 gtk_container_add(GTK_CONTAINER(button), hbox3);
519 #endif
520441 g_signal_connect_object(GTK_OBJECT(button),
521442 "clicked",
522443 G_CALLBACK(prevbutton_click),
523444 NULL,
524445 0);
525446 gtk_box_pack_start(GTK_BOX(hbox2), button, FALSE, TRUE, 0);
526 GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
447 gtk_widget_set_can_default(button, TRUE);
527448 label3 = gtk_label_new("00:00:00");
528449 gtk_box_pack_start(GTK_BOX(hbox2), label3, TRUE, TRUE, 0);
529 #if GTK_CHECK_VERSION(2,6,0)
530450 button = gtk_button_new_from_stock(GTK_STOCK_MEDIA_NEXT);
531 #else
532 button = gtk_button_new();
533 hbox3 = gtk_hbox_new(FALSE, 0);
534 label = gtk_label_new(_("NEXT"));
535 gtk_box_pack_start(GTK_BOX(hbox3), label, TRUE, TRUE, 0);
536 arrow = gtk_arrow_new(GTK_ARROW_RIGHT, GTK_SHADOW_NONE);
537 gtk_box_pack_start(GTK_BOX(hbox3), arrow, TRUE, TRUE, 0);
538 gtk_widget_show(arrow);
539 gtk_container_add(GTK_CONTAINER(button), hbox3);
540 #endif
541451 g_signal_connect_object(GTK_OBJECT(button),
542452 "clicked",
543453 G_CALLBACK(nextbutton_click),
544454 NULL,
545455 0);
546456 gtk_box_pack_start(GTK_BOX(hbox2), button, FALSE, TRUE, 0);
547 GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
457 gtk_widget_set_can_default(button, TRUE);
548458 gtk_box_pack_start(GTK_BOX(vbox), hbox2, FALSE, TRUE, 0);
549459
550460 separator = gtk_hseparator_new ();
560470 play_thread_args.timelabel = label3;
561471 play_thread_args.adj = adj;
562472 play_thread_args.dialog = dialog;
563
473
564474 cancel_jukebox_operation = FALSE;
565475 g_thread_create(play_thread,(gpointer) &play_thread_args, FALSE, NULL);
566476 playing = TRUE;
00 /* playlists.c
11 Playlist GUI and call handling
2 Copyright (C) 2001-2003 Linus Walleij
2 Copyright (C) 2001-2011 Linus Walleij
33
44 This file is part of the GNOMAD package.
55
1111 You should have received a copy of the GNU General Public License
1212 along with GNOMAD; see the file COPYING. If not, write to
1313 the Free Software Foundation, 59 Temple Place - Suite 330,
14 Boston, MA 02111-1307, USA.
14 Boston, MA 02111-1307, USA.
1515
1616 */
1717
2222 #include "util.h"
2323 #include "prefs.h"
2424 #include "filesystem.h"
25
26 #if !GTK_CHECK_VERSION(2,6,0)
27 #include <libgnomeui/libgnomeui.h>
28 #else
29 #define GNOME_DIALOG GTK_DIALOG
30 #endif
3125
3226 /* Local variables */
3327 static GtkWidget *new_pl_dialog;
9084 {
9185 GtkTreeSelection *selection;
9286 GtkTreeIter iter;
93
87
9488 selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(playlist_widgets.pltreeview));
9589 if (gtk_tree_selection_get_selected (selection, (GtkTreeModel **) &playlist_widgets.pltreestore, &iter)) {
9690 gtk_tree_store_remove(playlist_widgets.pltreestore, &iter);
10498 {
10599 gchar *text;
106100 gchar **swap = (gchar **) data;
107
101
108102 gtk_tree_model_get(model, iter, PLIST_PLID_COLUMN, &text, -1);
109103 /* g_print("Found playlist %s\n", text); */
110104 if (!strcmp(text, swap[0])) {
135129 * CALLBACK FUNCTIONS FOR GUI
136130 ***************************************************************************************/
137131
138 #if GTK_CHECK_VERSION(2,6,0)
139132 /* Deletes the dialog windows, passed as data */
140133 GCallback dispose_of_dialog_window(GtkButton * button, gpointer data)
141134 {
143136 gtk_widget_destroy(tmpwid);
144137 return NULL;
145138 }
146 #endif
147139
148140 static GCallback create_new_playlist_ok_button (GtkButton *button,
149141 gpointer data)
163155 static GCallback playlist_new_response(gpointer data)
164156 {
165157 GtkWidget *label, *button;
166 #if !GTK_CHECK_VERSION(2,6,0)
167 new_pl_dialog = gnome_dialog_new(_("Create a new playlist"),
168 GNOME_STOCK_BUTTON_CANCEL,
169 GNOME_STOCK_BUTTON_OK,
170 NULL);
171 gnome_dialog_button_connect_object(GNOME_DIALOG(new_pl_dialog),
172 0,
173 GTK_SIGNAL_FUNC(gtk_widget_destroy),
174 GTK_OBJECT(new_pl_dialog));
175 gnome_dialog_button_connect(GNOME_DIALOG(new_pl_dialog),
176 1,
177 GTK_SIGNAL_FUNC(create_new_playlist_ok_button),
178 NULL);
179 #else
158
180159 new_pl_dialog=gtk_dialog_new_with_buttons(_("Create a new playlist"),
181 NULL,
182 0,
160 NULL,
161 0,
183162 NULL);
184163
185 button = gtk_dialog_add_button(GTK_DIALOG(new_pl_dialog),
186 GTK_STOCK_CANCEL,
164 button = gtk_dialog_add_button(GTK_DIALOG(new_pl_dialog),
165 GTK_STOCK_CANCEL,
187166 0);
188 g_signal_connect(button,
189 "clicked",
190 GTK_SIGNAL_FUNC(dispose_of_dialog_window),
167 g_signal_connect(button,
168 "clicked",
169 G_CALLBACK(dispose_of_dialog_window),
191170 GTK_OBJECT(new_pl_dialog));
192171
193 button = gtk_dialog_add_button(GTK_DIALOG(new_pl_dialog),
194 GTK_STOCK_OK,
172 button = gtk_dialog_add_button(GTK_DIALOG(new_pl_dialog),
173 GTK_STOCK_OK,
195174 1);
196 g_signal_connect(button,
197 "clicked",
198 GTK_SIGNAL_FUNC(create_new_playlist_ok_button),
175 g_signal_connect(button,
176 "clicked",
177 G_CALLBACK(create_new_playlist_ok_button),
199178 NULL);
200 #endif
201
202
179
203180 gtk_window_set_position (GTK_WINDOW(new_pl_dialog), GTK_WIN_POS_MOUSE);
204181
205182 label = gtk_label_new(_("Choose a name for the new playlist:"));
206 gtk_box_pack_start(GTK_BOX(GNOME_DIALOG(new_pl_dialog)->vbox), label, TRUE, TRUE, 0);
183 gtk_box_pack_start(GTK_BOX(GTK_DIALOG(new_pl_dialog)->vbox), label, TRUE, TRUE, 0);
207184 gtk_widget_show(label);
208185 new_pl_entry = gtk_entry_new();
209 gtk_box_pack_start(GTK_BOX(GNOME_DIALOG(new_pl_dialog)->vbox), new_pl_entry, TRUE, TRUE, 0);
186 gtk_box_pack_start(GTK_BOX(GTK_DIALOG(new_pl_dialog)->vbox), new_pl_entry, TRUE, TRUE, 0);
210187 gtk_widget_show(new_pl_entry);
211188
212 g_signal_connect(G_OBJECT (new_pl_dialog),
189 g_signal_connect(G_OBJECT (new_pl_dialog),
213190 "delete_event",
214191 G_CALLBACK(gtk_widget_destroy),
215192 G_OBJECT (new_pl_dialog));
222199 static GCallback playlist_play_response(gpointer data)
223200 {
224201 guint32 plid;
225
202
226203 if (jukebox_locked) {
227204 create_error_dialog(_("Jukebox busy"));
228205 return NULL;
260237 GtkWidget *label, *button;
261238 gchar *text;
262239
263 #if !GTK_CHECK_VERSION(2,6,0)
264 edit_pl_dialog = gnome_dialog_new(_("Edit playlist"),
265 GNOME_STOCK_BUTTON_CANCEL,
266 GNOME_STOCK_BUTTON_OK,
267 NULL);
268 gnome_dialog_button_connect_object(GNOME_DIALOG(edit_pl_dialog),
269 0,
270 GTK_SIGNAL_FUNC(gtk_widget_destroy),
271 GTK_OBJECT(edit_pl_dialog));
272 gnome_dialog_button_connect(GNOME_DIALOG(edit_pl_dialog),
273 1,
274 GTK_SIGNAL_FUNC(edit_playlist_ok_button),
275 NULL);
276 #else
277240 edit_pl_dialog=gtk_dialog_new_with_buttons(_("Edit playlist"),
278 NULL,
279 0,
241 NULL,
242 0,
280243 NULL);
281244
282 button = gtk_dialog_add_button(GTK_DIALOG(edit_pl_dialog),
283 GTK_STOCK_CANCEL,
245 button = gtk_dialog_add_button(GTK_DIALOG(edit_pl_dialog),
246 GTK_STOCK_CANCEL,
284247 0);
285 g_signal_connect(button,
286 "clicked",
287 GTK_SIGNAL_FUNC(dispose_of_dialog_window),
248 g_signal_connect(button,
249 "clicked",
250 G_CALLBACK(dispose_of_dialog_window),
288251 GTK_OBJECT(edit_pl_dialog));
289252
290 button = gtk_dialog_add_button(GTK_DIALOG(edit_pl_dialog),
291 GTK_STOCK_OK,
253 button = gtk_dialog_add_button(GTK_DIALOG(edit_pl_dialog),
254 GTK_STOCK_OK,
292255 1);
293 g_signal_connect(button,
294 "clicked",
295 GTK_SIGNAL_FUNC(edit_playlist_ok_button),
256 g_signal_connect(button,
257 "clicked",
258 G_CALLBACK(edit_playlist_ok_button),
296259 NULL);
297 #endif
298 gtk_window_set_position (GTK_WINDOW(edit_pl_dialog), GTK_WIN_POS_MOUSE);
260 gtk_window_set_position (GTK_WINDOW(edit_pl_dialog), GTK_WIN_POS_MOUSE);
299261
300262 label = gtk_label_new(_("Edit the name for this playlist:"));
301 gtk_box_pack_start(GTK_BOX(GNOME_DIALOG(edit_pl_dialog)->vbox), label, TRUE, TRUE, 0);
263 gtk_box_pack_start(GTK_BOX(GTK_DIALOG(edit_pl_dialog)->vbox), label, TRUE, TRUE, 0);
302264 gtk_widget_show(label);
303265 edit_pl_entry = gtk_entry_new();
304266 // Get the old name of the playlist
305267 text = get_text_from_selection_column(PLIST_PLAYLISTNAME_COLUMN);
306268 if (text != NULL) {
307 gtk_entry_set_text(GTK_ENTRY(edit_pl_entry),
269 gtk_entry_set_text(GTK_ENTRY(edit_pl_entry),
308270 text);
309271 g_free(text);
310272 }
311 gtk_box_pack_start(GTK_BOX(GNOME_DIALOG(edit_pl_dialog)->vbox), edit_pl_entry, TRUE, TRUE, 0);
273 gtk_box_pack_start(GTK_BOX(GTK_DIALOG(edit_pl_dialog)->vbox), edit_pl_entry, TRUE, TRUE, 0);
312274 gtk_widget_show(edit_pl_entry);
313275 g_signal_connect_object(GTK_OBJECT (edit_pl_dialog),
314276 "delete_event",
447409 static GCallback playlist_export_response(gpointer data)
448410 {
449411 guint plid;
450
412
451413 if (jukebox_locked) {
452414 create_error_dialog(_("Jukebox busy"));
453415 return NULL;
460422 gchar *text;
461423
462424 if (playlist != NULL) {
463 #if !GTK_CHECK_VERSION(2,6,0)
464 export_pl_dialog = gnome_dialog_new(_("Export playlist"),
465 GNOME_STOCK_BUTTON_CANCEL,
466 GNOME_STOCK_BUTTON_OK,
467 NULL);
468 gnome_dialog_button_connect_object(GNOME_DIALOG(export_pl_dialog),
469 0,
470 GTK_SIGNAL_FUNC(gtk_widget_destroy),
471 GTK_OBJECT(export_pl_dialog));
472 gnome_dialog_button_connect(GNOME_DIALOG(export_pl_dialog),
473 1,
474 GTK_SIGNAL_FUNC(export_playlist_ok_button),
475 playlist);
476 #else
477425 GtkWidget * button;
478426 export_pl_dialog=gtk_dialog_new_with_buttons(_("Export playlist"),
479 NULL,
480 0,
427 NULL,
428 0,
481429 NULL);
482430
483 button = gtk_dialog_add_button(GTK_DIALOG(export_pl_dialog),
484 GTK_STOCK_CANCEL,
431 button = gtk_dialog_add_button(GTK_DIALOG(export_pl_dialog),
432 GTK_STOCK_CANCEL,
485433 0);
486 g_signal_connect(button,
487 "clicked",
488 GTK_SIGNAL_FUNC(dispose_of_dialog_window),
434 g_signal_connect(button,
435 "clicked",
436 G_CALLBACK(dispose_of_dialog_window),
489437 GTK_OBJECT(export_pl_dialog));
490438
491 button = gtk_dialog_add_button(GTK_DIALOG(export_pl_dialog),
492 GTK_STOCK_OK,
439 button = gtk_dialog_add_button(GTK_DIALOG(export_pl_dialog),
440 GTK_STOCK_OK,
493441 1);
494 g_signal_connect(button,
495 "clicked",
496 GTK_SIGNAL_FUNC(export_playlist_ok_button),
442 g_signal_connect(button,
443 "clicked",
444 G_CALLBACK(export_playlist_ok_button),
497445 playlist);
498 #endif
499446 gtk_window_set_position (GTK_WINDOW(export_pl_dialog), GTK_WIN_POS_MOUSE);
500
447
501448 label = gtk_label_new(_("Export playlist to this file:"));
502 gtk_box_pack_start(GTK_BOX(GNOME_DIALOG(export_pl_dialog)->vbox), label, TRUE, TRUE, 0);
449 gtk_box_pack_start(GTK_BOX(GTK_DIALOG(export_pl_dialog)->vbox), label, TRUE, TRUE, 0);
503450 gtk_widget_show(label);
504451 export_pl_entry = gtk_entry_new();
505452 // Get the old name of the playlist
506453 text = get_text_from_selection_column(PLIST_PLAYLISTNAME_COLUMN);
507454 if (text != NULL) {
508455 text = stringcat(text, ".txt");
509 gtk_entry_set_text(GTK_ENTRY(export_pl_entry),
456 gtk_entry_set_text(GTK_ENTRY(export_pl_entry),
510457 text);
511458 g_free(text);
512459 } else {
513 gtk_entry_set_text(GTK_ENTRY(export_pl_entry),
460 gtk_entry_set_text(GTK_ENTRY(export_pl_entry),
514461 _("Unnamed playlist.txt"));
515462 }
516 gtk_box_pack_start(GTK_BOX(GNOME_DIALOG(export_pl_dialog)->vbox), export_pl_entry, TRUE, TRUE, 0);
463 gtk_box_pack_start(GTK_BOX(GTK_DIALOG(export_pl_dialog)->vbox), export_pl_entry, TRUE, TRUE, 0);
517464 gtk_widget_show(export_pl_entry);
518465
519466 label = gtk_label_new(_("Format the playlist according to this string:"));
520 gtk_box_pack_start(GTK_BOX(GNOME_DIALOG(export_pl_dialog)->vbox), label, TRUE, TRUE, 0);
467 gtk_box_pack_start(GTK_BOX(GTK_DIALOG(export_pl_dialog)->vbox), label, TRUE, TRUE, 0);
521468 gtk_widget_show(label);
522469
523470 export_pl_format_entry = gtk_entry_new();
524471 text = get_prefs_filenameformat();
525472 gtk_entry_set_text(GTK_ENTRY(export_pl_format_entry), text);
526473 g_free(text);
527 gtk_box_pack_start(GTK_BOX(GNOME_DIALOG(export_pl_dialog)->vbox), export_pl_format_entry, TRUE, TRUE, 0);
474 gtk_box_pack_start(GTK_BOX(GTK_DIALOG(export_pl_dialog)->vbox), export_pl_format_entry, TRUE, TRUE, 0);
528475 gtk_widget_show(export_pl_format_entry);
529476
530477 /* Don't translate the magic %-things! */
531478 label = gtk_label_new(_("%a = Artist, %t = Title, %b = Album, %g = Genre, %n = Track number, %y = Year"));
532 gtk_box_pack_start(GTK_BOX(GNOME_DIALOG(export_pl_dialog)->vbox), label, TRUE, TRUE, 0);
479 gtk_box_pack_start(GTK_BOX(GTK_DIALOG(export_pl_dialog)->vbox), label, TRUE, TRUE, 0);
533480 gtk_widget_show(label);
534481
535482 m3ulist = gtk_check_button_new_with_label(_("Create an M3U playlist (assuming the format filter sets " \
539486 G_CALLBACK(toggle_m3ulist),
540487 NULL,
541488 0);
542 gtk_box_pack_start(GTK_BOX(GNOME_DIALOG(export_pl_dialog)->vbox), m3ulist, TRUE, TRUE, 0);
489 gtk_box_pack_start(GTK_BOX(GTK_DIALOG(export_pl_dialog)->vbox), m3ulist, TRUE, TRUE, 0);
543490 gtk_widget_show(m3ulist);
544491
545492 plslist = gtk_check_button_new_with_label(_("Create an PLS playlist (assuming the format filter sets " \
549496 G_CALLBACK(toggle_plslist),
550497 NULL,
551498 0);
552 gtk_box_pack_start(GTK_BOX(GNOME_DIALOG(export_pl_dialog)->vbox), plslist, TRUE, TRUE, 0);
499 gtk_box_pack_start(GTK_BOX(GTK_DIALOG(export_pl_dialog)->vbox), plslist, TRUE, TRUE, 0);
553500 gtk_widget_show(plslist);
554501
555502 g_signal_connect_object(GTK_OBJECT (export_pl_dialog),
651598
652599 static GtkWidget *create_option_menu(void)
653600 {
654 GtkWidget *option_menu;
655 GSList *group = NULL;
656 GtkWidget *menu;
657 GtkWidget *menu_item;
601 GtkWidget *combo;
658602 GList *tmplist = g_list_first(jukebox_playlist);
659603
660604 /* Create the option menu */
661 option_menu = gtk_option_menu_new();
662 menu = gtk_menu_new();
663 menu_item = gtk_radio_menu_item_new_with_label(group, "(None)");
664 group = gtk_radio_menu_item_get_group(GTK_RADIO_MENU_ITEM(menu_item));
665 gtk_menu_shell_append(GTK_MENU_SHELL(menu), menu_item);
666 /* Check the first item */
667 gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(menu_item), TRUE);
668 gtk_widget_show(menu_item);
605 #if GTK_CHECK_VERSION(2,24,0)
606 // Use the new combo box type in 2.24 and later
607 combo = gtk_combo_box_text_new();
608 gtk_combo_box_text_append_text(GTK_COMBO_BOX_TEXT(combo), "(None)");
609 #else
610 combo = gtk_combo_box_new_text();
611 gtk_combo_box_append_text(GTK_COMBO_BOX(combo), "(None)");
612 #endif
669613
670614 /* Add a row to the menu */
671615 while (tmplist) {
672 menu_item = gtk_radio_menu_item_new_with_label(group, tmplist->data);
616 #if GTK_CHECK_VERSION(2,24,0)
617 gtk_combo_box_text_append_text(GTK_COMBO_BOX_TEXT(combo), tmplist->data);
618 #else
619 gtk_combo_box_append_text(GTK_COMBO_BOX(combo), tmplist->data);
620 #endif
673621 tmplist = tmplist->next;
674 group = gtk_radio_menu_item_get_group(GTK_RADIO_MENU_ITEM (menu_item));
675 gtk_menu_shell_append(GTK_MENU_SHELL(menu), menu_item);
676 gtk_widget_show(menu_item);
677622 tmplist = tmplist->next;
678623 }
679 gtk_option_menu_set_menu (GTK_OPTION_MENU (option_menu), menu);
680 gtk_option_menu_set_history (GTK_OPTION_MENU (option_menu), 0);
681
682 return option_menu;
624
625 gtk_combo_box_set_active(GTK_COMBO_BOX(combo), 0);
626
627 return combo;
683628 }
684629
685630 /* Pre-declare this function */
694639 gtk_toggle_button_set_active(tbutton, TRUE);
695640 gtk_widget_set_sensitive(GTK_WIDGET(tbutton), FALSE);
696641 /* If this was not previously selected, it's time to create a new one */
697 add_pl_selection(GTK_BOX(GNOME_DIALOG(select_playlist_dialog)->vbox), next);
642 add_pl_selection(GTK_BOX(GTK_DIALOG(select_playlist_dialog)->vbox), next);
698643 return NULL;
699644 }
700645
714659 gtk_widget_show(option_menu);
715660 /* and .. */
716661 and = gtk_check_button_new_with_label(_("and"));
717 g_signal_connect(GTK_OBJECT(and),
662 g_signal_connect(GTK_OBJECT(and),
718663 "clicked",
719664 G_CALLBACK(toggle_and),
720665 GUINT_TO_POINTER(number));
724669 gtk_widget_show(hbox);
725670 }
726671
727 static void playlist_selection_dialog(gchar *title, gchar *prompt, GtkSignalFunc ok_signal)
672 static void playlist_selection_dialog(gchar *title, gchar *prompt, GCallback ok_signal)
728673 {
729674 GtkWidget *label, *button;
730675
733678 g_list_free(selected_target_playlists);
734679 selected_target_playlists = NULL;
735680 }
736 #if !GTK_CHECK_VERSION(2,6,0)
737 select_playlist_dialog = gnome_dialog_new(title,
738 GNOME_STOCK_BUTTON_CANCEL,
739 GNOME_STOCK_BUTTON_OK,
740 NULL);
741 gnome_dialog_button_connect_object(GNOME_DIALOG(select_playlist_dialog),
742 0,
743 G_CALLBACK(gtk_widget_destroy),
744 GTK_OBJECT(select_playlist_dialog));
745 gnome_dialog_button_connect(GNOME_DIALOG(select_playlist_dialog),
746 1,
747 G_CALLBACK(ok_signal),
748 NULL);
749 #else
750681 select_playlist_dialog=gtk_dialog_new_with_buttons(title,
751 NULL,
752 0,
682 NULL,
683 0,
753684 NULL);
754685
755 button = gtk_dialog_add_button(GTK_DIALOG(select_playlist_dialog),
756 GTK_STOCK_CANCEL,
686 button = gtk_dialog_add_button(GTK_DIALOG(select_playlist_dialog),
687 GTK_STOCK_CANCEL,
757688 0);
758 g_signal_connect(button,
759 "clicked",
760 GTK_SIGNAL_FUNC(dispose_of_dialog_window),
689 g_signal_connect(button,
690 "clicked",
691 G_CALLBACK(dispose_of_dialog_window),
761692 GTK_OBJECT(select_playlist_dialog));
762693
763 button = gtk_dialog_add_button(GTK_DIALOG(select_playlist_dialog),
764 GTK_STOCK_OK,
694 button = gtk_dialog_add_button(GTK_DIALOG(select_playlist_dialog),
695 GTK_STOCK_OK,
765696 1);
766 g_signal_connect(button,
767 "clicked",
768 GTK_SIGNAL_FUNC(ok_signal),
697 g_signal_connect(button,
698 "clicked",
699 G_CALLBACK(ok_signal),
769700 NULL);
770 #endif
771701 gtk_window_set_position (GTK_WINDOW(select_playlist_dialog), GTK_WIN_POS_MOUSE);
772702 g_signal_connect_object(GTK_OBJECT (select_playlist_dialog),
773703 "delete_event",
777707 /* Add a label and the option menu */
778708 label = gtk_label_new(prompt);
779709 gtk_widget_show(label);
780 gtk_box_pack_start(GTK_BOX(GNOME_DIALOG(select_playlist_dialog)->vbox), label, TRUE, TRUE, 0);
710 gtk_box_pack_start(GTK_BOX(GTK_DIALOG(select_playlist_dialog)->vbox), label, TRUE, TRUE, 0);
781711 /* Initially add one selector */
782 add_pl_selection(GTK_BOX(GNOME_DIALOG(select_playlist_dialog)->vbox), 0);
712 add_pl_selection(GTK_BOX(GTK_DIALOG(select_playlist_dialog)->vbox), 0);
783713 gtk_widget_show(select_playlist_dialog);
784714 }
785715
791721
792722 templist = g_list_first(selected_target_playlists);
793723 while (templist != NULL) {
794 guint selection = gtk_option_menu_get_history(GTK_OPTION_MENU(templist->data));
724 guint selection;
725
726 selection = gtk_combo_box_get_active(GTK_COMBO_BOX(templist->data));
795727 if (selection != 0) {
796728 /* Find out playlist ID of this entry */
797729 GList *tmp = g_list_nth(jukebox_playlist, (selection-1)*2+1);
859791 transfer_from_hd_to_jukebox(NULL);
860792 return;
861793 }
862 playlist_selection_dialog(_("Transfer to jukebox library"),
863 _("Add tracks to playlist(s):"),
864 GTK_SIGNAL_FUNC(transfer_from_hd_ok_button));
794 playlist_selection_dialog(_("Transfer to jukebox library"),
795 _("Add tracks to playlist(s):"),
796 G_CALLBACK(transfer_from_hd_ok_button));
865797 }
866798
867799 void jbmenu_add_playlist_response(gpointer data)
868800 {
869 playlist_selection_dialog(_("Add to playlist"),
870 _("Add tracks to playlist(s):"),
871 GTK_SIGNAL_FUNC(add_to_playlist_ok_button));
801 playlist_selection_dialog(_("Add to playlist"),
802 _("Add tracks to playlist(s):"),
803 G_CALLBACK(add_to_playlist_ok_button));
872804 }
873805
874806 static GtkWidget *create_treeview(GtkTreeStore *treestore)
880812
881813 treeview = gtk_tree_view_new_with_model(GTK_TREE_MODEL(treestore));
882814 gtk_tree_view_set_rules_hint(GTK_TREE_VIEW(treeview), TRUE);
883
815
884816 textrenderer = gtk_cell_renderer_text_new ();
885817
886818 view = gtk_tree_view_column_new_with_attributes (_("Playlist"),
973905 {
974906 GtkWidget *scrolled_window, *pltreeview, *playlistpopupmenu,
975907 *blankpopupmenu, *nodepopupmenu, *popupmenu_item;
976
908
977909 selected_target_playlists = NULL;
978910
979911 /* The popup menu for the playlists */
980912 blankpopupmenu = gtk_menu_new();
981913 popupmenu_item = gtk_menu_item_new_with_label(_("New playlist"));
982914 gtk_menu_shell_append (GTK_MENU_SHELL(blankpopupmenu), popupmenu_item);
983 g_signal_connect_object(GTK_OBJECT (popupmenu_item),
915 g_signal_connect_object(GTK_OBJECT (popupmenu_item),
984916 "activate",
985 G_CALLBACK(playlist_new_response),
917 G_CALLBACK(playlist_new_response),
986918 NULL,
987919 0);
988920 gtk_widget_show (popupmenu_item);
990922 playlistpopupmenu = gtk_menu_new();
991923 popupmenu_item = gtk_menu_item_new_with_label(_("New playlist"));
992924 gtk_menu_shell_append(GTK_MENU_SHELL(playlistpopupmenu), popupmenu_item);
993 g_signal_connect_object(GTK_OBJECT (popupmenu_item),
925 g_signal_connect_object(GTK_OBJECT (popupmenu_item),
994926 "activate",
995 G_CALLBACK(playlist_new_response),
927 G_CALLBACK(playlist_new_response),
996928 NULL,
997929 0);
998930 gtk_widget_show (popupmenu_item);
999931 popupmenu_item = gtk_menu_item_new_with_label(_("Shuffle playlist"));
1000932 gtk_menu_shell_append(GTK_MENU_SHELL(playlistpopupmenu), popupmenu_item);
1001 g_signal_connect_object(GTK_OBJECT (popupmenu_item),
933 g_signal_connect_object(GTK_OBJECT (popupmenu_item),
1002934 "activate",
1003 G_CALLBACK(playlist_shuffle_response),
935 G_CALLBACK(playlist_shuffle_response),
1004936 NULL,
1005937 0);
1006938 gtk_widget_show (popupmenu_item);
1007939 popupmenu_item = gtk_menu_item_new_with_label(_("Play playlist"));
1008940 gtk_menu_shell_append(GTK_MENU_SHELL(playlistpopupmenu), popupmenu_item);
1009 g_signal_connect_object(GTK_OBJECT (popupmenu_item),
941 g_signal_connect_object(GTK_OBJECT (popupmenu_item),
1010942 "activate",
1011 G_CALLBACK(playlist_play_response),
943 G_CALLBACK(playlist_play_response),
1012944 NULL,
1013945 0);
1014946 gtk_widget_show (popupmenu_item);
1015947 popupmenu_item = gtk_menu_item_new_with_label(_("Edit playlist"));
1016948 gtk_menu_shell_append(GTK_MENU_SHELL(playlistpopupmenu), popupmenu_item);
1017 g_signal_connect_object(GTK_OBJECT (popupmenu_item),
949 g_signal_connect_object(GTK_OBJECT (popupmenu_item),
1018950 "activate",
1019 G_CALLBACK(playlist_edit_response),
951 G_CALLBACK(playlist_edit_response),
1020952 NULL,
1021953 0);
1022954 gtk_widget_show (popupmenu_item);
1023955 popupmenu_item = gtk_menu_item_new_with_label(_("Export playlist"));
1024956 gtk_menu_shell_append(GTK_MENU_SHELL(playlistpopupmenu), popupmenu_item);
1025 g_signal_connect_object(GTK_OBJECT (popupmenu_item),
957 g_signal_connect_object(GTK_OBJECT (popupmenu_item),
1026958 "activate",
1027 G_CALLBACK(playlist_export_response),
959 G_CALLBACK(playlist_export_response),
1028960 NULL,
1029961 0);
1030962 gtk_widget_show (popupmenu_item);
1031963 popupmenu_item = gtk_menu_item_new_with_label(_("Delete playlist"));
1032964 gtk_menu_shell_append(GTK_MENU_SHELL(playlistpopupmenu), popupmenu_item);
1033 g_signal_connect_object(GTK_OBJECT (popupmenu_item),
965 g_signal_connect_object(GTK_OBJECT (popupmenu_item),
1034966 "activate",
1035 G_CALLBACK(playlist_delete_response),
967 G_CALLBACK(playlist_delete_response),
1036968 NULL,
1037969 0);
1038970 gtk_widget_show (popupmenu_item);
1040972 nodepopupmenu = gtk_menu_new ();
1041973 popupmenu_item = gtk_menu_item_new_with_label(_("New playlist"));
1042974 gtk_menu_shell_append(GTK_MENU_SHELL(nodepopupmenu), popupmenu_item);
1043 g_signal_connect_object(GTK_OBJECT(popupmenu_item),
975 g_signal_connect_object(GTK_OBJECT(popupmenu_item),
1044976 "activate",
1045 G_CALLBACK(playlist_new_response),
977 G_CALLBACK(playlist_new_response),
1046978 NULL,
1047979 0);
1048980 gtk_widget_show (popupmenu_item);
1049981 popupmenu_item = gtk_menu_item_new_with_label(_("Delete track from playlist"));
1050982 gtk_menu_shell_append(GTK_MENU_SHELL(nodepopupmenu), popupmenu_item);
1051 g_signal_connect_object(GTK_OBJECT (popupmenu_item),
983 g_signal_connect_object(GTK_OBJECT (popupmenu_item),
1052984 "activate",
1053 G_CALLBACK(node_delete_response),
985 G_CALLBACK(node_delete_response),
1054986 NULL,
1055987 0);
1056988 gtk_widget_show (popupmenu_item);
00 /* riffile.c
11 WAV and AVI interface
2 Copyright (C) 2004-2008 Linus Walleij
2 Copyright (C) 2004-2011 Linus Walleij
33 Copyright (C) 2008 Kees van Veen
44
55 This file is part of the GNOMAD package.
1212 You should have received a copy of the GNU General Public License
1313 along with GNOMAD; see the file COPYING. If not, write to
1414 the Free Software Foundation, 59 Temple Place - Suite 330,
15 Boston, MA 02111-1307, USA.
15 Boston, MA 02111-1307, USA.
1616
1717 Much of the code in this file was derived from the getid3() code,
1818 written in PHP. The C implementation here is however made from
2828 #include <sys/types.h>
2929 #include <sys/stat.h>
3030 #include <fcntl.h>
31 #if GLIB_CHECK_VERSION(2,6,0)
32 # include <glib.h>
33 # include <glib/gstdio.h>
34 #endif
31 #include <glib.h>
32 #include <glib/gstdio.h>
3533
3634 #define b2len(b) ( ((b)[0])+((b)[1]<<8)+((b)[2]<<16)+((b)[3]<<24) )
3735
5351 gint n;
5452
5553 // g_print("Getting WAV tag info for %s...\n", meta->path);
56 #if !GLIB_CHECK_VERSION(2,6,0)
57 fd = (gint) open(tmppath, READONLY_FLAGS, 0);
58 #else
5954 fd = (gint) g_open(tmppath, READONLY_FLAGS, 0);
60 #endif
6155 if (fd < 0) {
6256 g_free(tmppath);
6357 return;
121115 int length = -1;
122116
123117 // g_print("Getting WAV tag info for %s...\n", meta->path);
124 #if !GLIB_CHECK_VERSION(2,6,0)
125 fd = (gint) open(tmppath, READONLY_FLAGS, 0);
126 #else
127118 fd = (gint) g_open(tmppath, READONLY_FLAGS, 0);
128 #endif
129119 if (fd < 0) {
130120 g_free(tmppath);
131121 return;
6161 g_free(tmppath);
6262
6363 tag = taglib_file_tag(file);
64 if (tag == NULL) {
65 g_print("tag was NULL in file %s", tmppath);
66 return;
67 }
6468 properties = taglib_file_audioproperties(file);
6569
6670 gchar* artist = taglib_tag_artist(tag);
104108 // If taglib >= 1.5
105109 // taglib_id3v2_set_default_text_encoding(TagLib_ID3v2_UTF16);
106110
107 tag = taglib_file_tag(file);
111 tag = taglib_file_tag(file);
112 if (tag == NULL) {
113 g_print("tag was NULL in file %s", tmppath);
114 return;
115 }
108116
109117 if (meta->artist != NULL &&
110118 strcmp(meta->artist, "<Unknown>")) {
00 /* util.c
11 General utility functions, eg for string formatting
2 Copyright (C) 2001 Linus Walleij
2 Copyright (C) 2001-2011 Linus Walleij
33
44 This file is part of the GNOMAD package.
55
1111 You should have received a copy of the GNU General Public License
1212 along with GNOMAD; see the file COPYING. If not, write to
1313 the Free Software Foundation, 59 Temple Place - Suite 330,
14 Boston, MA 02111-1307, USA.
14 Boston, MA 02111-1307, USA.
1515
1616 */
1717
1818 #include "common.h"
19 #if !GTK_CHECK_VERSION(2,4,0)
20 #include <libgnomeui/libgnomeui.h>
21 #endif
2219
2320 extern GtkWidget *main_window;
2421
3027
3128 if (!tmp)
3229 return 0;
33
30
3431 while (*tmp)
3532 {
3633 size ++;
4239 /* Concatenate two dynamic strings */
4340 gchar *stringcat(gchar *org, gchar *add)
4441 {
45 /* This can be improved under GTK+ 2.0
42 /* This can be improved under GTK+ 2.0
4643 * new GLib functions -> 2.0 */
4744 gchar *tmpstring;
4845
8683
8784 if (!string || !find || !replace)
8885 return string;
89
86
9087 tmp2 = g_strsplit(string, find, 0);
9188
9289 /* This is the case when the replacement is in the
128125
129126 if (!string)
130127 return 0;
131
128
132129 return (guint32) strtoul(string, &dummy, 10);
133130 }
134131
178175 gboolean is_a_number(gchar *string)
179176 {
180177 gchar *tmp;
181
178
182179 if (string == NULL)
183180 return FALSE;
184181 tmp = string;
185182 while (*tmp)
186183 {
187184 /* See if it is not a number, skip spaces */
188 if ((*tmp < '0' ||
189 *tmp > '9') &&
185 if ((*tmp < '0' ||
186 *tmp > '9') &&
190187 *tmp != ' ' &&
191188 *tmp != '.')
192189 return FALSE;
208205 {
209206 GtkWidget *dialog;
210207
211 #if GTK_CHECK_VERSION(2,4,0)
212208 dialog = gtk_message_dialog_new (GTK_WINDOW(main_window),
213209 GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
214210 GTK_MESSAGE_ERROR,
219215 G_CALLBACK(gtk_widget_destroy),
220216 NULL,
221217 0);
222 g_signal_connect_object(GTK_OBJECT(dialog),
218 g_signal_connect_object(GTK_OBJECT(dialog),
223219 "response",
224 G_CALLBACK(gtk_widget_destroy),
220 G_CALLBACK(gtk_widget_destroy),
225221 NULL,
226222 0);
227223 gtk_widget_show(dialog);
228 #else
229 dialog = gnome_message_box_new (errorstring,
230 GNOME_MESSAGE_BOX_ERROR,
231 GNOME_STOCK_BUTTON_OK,
232 NULL);
233 gtk_widget_show(dialog);
234 #endif
235224 }
236225
237226 gboolean request_confirmation_dialog(gchar *confirmstring)
240229 gint i;
241230 gboolean retval = FALSE;
242231
243 #if GTK_CHECK_VERSION(2,4,0)
244232 dialog = gtk_message_dialog_new (GTK_WINDOW(main_window),
245233 GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
246234 GTK_MESSAGE_QUESTION,
251239 if (i == GTK_RESPONSE_YES) {
252240 retval = TRUE;
253241 }
254 #else
255 /*
256 I can't seem to get GNOMEUI to do this properly, so I'm leaving it
257 out for clients that do not have a sufficiently new GTK.
258
259 g_print("Awaiting confirmation (GNOMEUI): %s...\n", confirmstring);
260 dialog = gnome_message_box_new (confirmstring,
261 GNOME_MESSAGE_BOX_QUESTION,
262 GNOME_STOCK_BUTTON_YES,
263 GNOME_STOCK_BUTTON_CANCEL,
264 NULL);
265 gtk_widget_show(dialog);
266 i = gnome_dialog_run_and_close(GNOME_DIALOG(dialog));
267
268 if (i == 0) {
269 retval = TRUE;
270 }
271 */
272 retval = TRUE;
273 #endif
242
274243 return retval;
275244 }
276245
281250 for (i=0; i<len; i++) {
282251 if (i % 16 == 0 && i != 0) {
283252 g_print(" ");
284
253
285254 for (j = i-16; j < i; j++) {
286255 gchar ch = data[j];
287256 g_print("%c", ( ch >= 0x20 && ch <= 0x7e ) ? ch : '.');
00 /* wmaread.c
11 WMA interface
2 Copyright (C) 2004 Linus Walleij
2 Copyright (C) 2004-2011 Linus Walleij
33
44 This file is part of the GNOMAD package.
55
1111 You should have received a copy of the GNU General Public License
1212 along with GNOMAD; see the file COPYING. If not, write to
1313 the Free Software Foundation, 59 Temple Place - Suite 330,
14 Boston, MA 02111-1307, USA.
14 Boston, MA 02111-1307, USA.
1515
1616 Much of the code in this file was derived from the getid3() code,
1717 written in PHP. The C implementation here is however made from
2727 #include <sys/types.h>
2828 #include <sys/stat.h>
2929 #include <fcntl.h>
30 #if GLIB_CHECK_VERSION(2,6,0)
31 # include <glib.h>
32 # include <glib/gstdio.h>
33 #endif
30 #include <glib.h>
31 #include <glib/gstdio.h>
3432
3533 static gboolean
3634 guid_compare(guchar *guid1, guchar *guid2)
278276 gint n;
279277
280278 // g_print("Getting WMA tag info for %s...\n", meta->path);
281 #if !GLIB_CHECK_VERSION(2,6,0)
282 fd = (gint) open(tmppath, READONLY_FLAGS, 0);
283 #else
284279 fd = (gint) g_open(tmppath, READONLY_FLAGS, 0);
285 #endif
286280 if (fd < 0) {
287281 g_free(tmppath);
288282 return;
380374 //meta->album = getAlbum(tag);
381375 //meta->genre = getGenre(tag);
382376 //meta->year = string_to_guint32(getYear(tag));
383
377
384378 /* If there is a songlength tag it will take
385379 * precedence over any length calculated from
386380 * the bitrate and filesize */
00 /* xfer.c
11 Transfer window widgets and callbacks
2 Copyright (C) 2001 Linus Walleij
2 Copyright (C) 2001-2011 Linus Walleij
33
44 This file is part of the GNOMAD package.
55
1111 You should have received a copy of the GNU General Public License
1212 along with GNOMAD; see the file COPYING. If not, write to
1313 the Free Software Foundation, 59 Temple Place - Suite 330,
14 Boston, MA 02111-1307, USA.
14 Boston, MA 02111-1307, USA.
1515
1616 */
1717
2727 #include "player.h"
2828 #include "xfer.h"
2929
30 #if !GTK_CHECK_VERSION(2,6,0)
31 #include <libgnomeui/libgnomeui.h>
32 #else
33 #define GNOME_DIALOG GTK_DIALOG
34 #endif
35
3630 /* Local variables */
3731 static GtkWidget *new_folder_dialog;
3832 static GtkWidget *new_folder_entry;
5953 if (metalist != NULL) {
6054 GtkWidget *label1, *label2, *dialog, *button, *separator;
6155
62 #if !GTK_CHECK_VERSION(2,6,0)
63 dialog = gnome_dialog_new(_("Transferring tracks from jukebox library"),
64 GNOME_STOCK_BUTTON_CANCEL,
65 NULL);
66 gnome_dialog_button_connect(GNOME_DIALOG(dialog),
67 0,
68 G_CALLBACK(cancel_jukebox_operation_click),
69 NULL);
70 #else
7156 dialog=gtk_dialog_new_with_buttons(_("Transferring tracks from jukebox library"),
7257 NULL,
7358 0,
7863 g_signal_connect(button,
7964 "clicked",
8065 G_CALLBACK(cancel_jukebox_operation_click),
81 NULL);
82 #endif
83
66 NULL);
8467 g_signal_connect_object(GTK_OBJECT(dialog),
8568 "delete_event",
8669 G_CALLBACK(gtk_widget_destroy),
9174 label2 = gtk_label_new("");
9275 progress_bar = gtk_progress_bar_new();
9376 separator = gtk_hseparator_new ();
94 gtk_box_pack_start(GTK_BOX(GNOME_DIALOG(dialog)->vbox), label1, TRUE, TRUE, 0);
95 gtk_box_pack_start(GTK_BOX(GNOME_DIALOG(dialog)->vbox), label2, TRUE, TRUE, 0);
96 gtk_box_pack_start(GTK_BOX(GNOME_DIALOG(dialog)->vbox), separator, TRUE, TRUE, 0);
97 gtk_box_pack_start(GTK_BOX(GNOME_DIALOG(dialog)->vbox), progress_bar, TRUE, TRUE, 0);
77 gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), label1, TRUE, TRUE, 0);
78 gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), label2, TRUE, TRUE, 0);
79 gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), separator, TRUE, TRUE, 0);
80 gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), progress_bar, TRUE, TRUE, 0);
9881 gtk_widget_show_all(dialog);
9982
10083 jb2hd_thread_args->dialog = dialog;
11295 GList *templist = g_list_first(metalist);
11396
11497 while (templist != NULL) {
115
98
11699 metadata_t *meta = (metadata_t *) templist->data;
117100 gchar *file = filename_fromutf8(meta->path);
118
101
119102 if(is_directory(file)) {
120103 /* Do not recurse into . and .. */
121104 if(get_prefs_recurse_dir()
122 && strcmp(meta->artist,"..")
105 && strcmp(meta->artist,"..")
123106 && strcmp(meta->artist,".") ) {
124107 GList *inner_metalist;
125108
158141 GtkWidget *label1, *label2, *dialog, *button, *separator;
159142
160143 hd2jb_thread_args = (hd2jb_thread_arg_t *) malloc(sizeof (hd2jb_thread_arg_t));
161 #if !GTK_CHECK_VERSION(2,6,0)
162 dialog = gnome_dialog_new(_("Transferring tracks to jukebox library"),
163 GNOME_STOCK_BUTTON_CANCEL,
164 NULL);
165 gnome_dialog_button_connect(GNOME_DIALOG(dialog),
166 0,
167 G_CALLBACK(cancel_jukebox_operation_click),
168 NULL);
169 #else
170144 dialog=gtk_dialog_new_with_buttons(_("Transferring tracks to jukebox library"),
171145 NULL,
172146 0,
177151 g_signal_connect(button,
178152 "clicked",
179153 G_CALLBACK(cancel_jukebox_operation_click),
180 NULL);
181 #endif
154 NULL);
182155 g_signal_connect_object(GTK_OBJECT(dialog),
183156 "delete_event",
184157 G_CALLBACK(gtk_widget_destroy),
190163 label2 = gtk_label_new(""); /* FIXME: Instead add a list to the dialog so progress may be seen better */
191164 progress_bar = gtk_progress_bar_new();
192165 separator = gtk_hseparator_new ();
193 gtk_box_pack_start(GTK_BOX(GNOME_DIALOG(dialog)->vbox), label1, TRUE, TRUE, 0);
194 gtk_box_pack_start(GTK_BOX(GNOME_DIALOG(dialog)->vbox), label2, TRUE, TRUE, 0);
195 gtk_box_pack_start(GTK_BOX(GNOME_DIALOG(dialog)->vbox), separator, TRUE, TRUE, 0);
196 gtk_box_pack_start(GTK_BOX(GNOME_DIALOG(dialog)->vbox), progress_bar, TRUE, TRUE, 0);
166 gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), label1, TRUE, TRUE, 0);
167 gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), label2, TRUE, TRUE, 0);
168 gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), separator, TRUE, TRUE, 0);
169 gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), progress_bar, TRUE, TRUE, 0);
197170 gtk_widget_show_all(dialog);
198
171
199172 hd2jb_thread_args->dialog = dialog;
200173 hd2jb_thread_args->label = label2;
201174 xferlist = get_files_to_xfer(metalist, NULL);
202 destroy_metalist(metalist);
203
175 destroy_metalist(metalist);
176
204177 hd2jb_thread_args->metalist = xferlist;
205178 hd2jb_thread_args->pltreestore = playlist_widgets.pltreestore;
206179 hd2jb_thread_args->playlists = playlists;
230203 * Other tool functions for popup choices etc.
231204 *****************************************************************************/
232205
233 static void add_to_history (gchar *string)
206 #define MAX_HISTORY 10
207
208 static void add_to_history(gchar *string)
234209 {
235210 /* See if the string is already in the history */
236211 GList *history = transfer_widgets.history;
237 while (history)
238 {
239 if (!strcmp(history->data, string))
240 return;
241 history = g_list_next(history);
242 }
212 while (history) {
213 if (!strcmp(history->data, string))
214 return;
215 history = g_list_next(history);
216 }
243217 history = transfer_widgets.history;
244218 /* Else add it */
245219 transfer_widgets.history
246220 = g_list_prepend (transfer_widgets.history, string);
247 /* Do not remember more than 5 strings */
248 while (g_list_length(history) > 5)
249 {
221 /* Do not remember more than MAX_HISTORY strings */
222 while (g_list_length(history) > MAX_HISTORY) {
250223 GList *elem;
251224
252225 elem = g_list_last(history);
253226 transfer_widgets.history
254227 = g_list_remove(history, elem->data);
228 }
229 }
230
231 static void set_popup_history(GtkWidget *combo)
232 {
233 GList *history = transfer_widgets.history;
234
235 #if GTK_CHECK_VERSION(3,0,0)
236 // Use the new combobox abstractions in 3.0 and later
237 gtk_combo_box_text_remove_all(GTK_COMBO_BOX_TEXT(combo));
238 while (history) {
239 gtk_combo_box_text_append_text(GTK_COMBO_BOX_TEXT(combo), history->data);
240 history = g_list_next(history);
241 }
242 #else
243 // Dead ugly code for older GTK
244 static gboolean firstrun = TRUE;
245 int i;
246
247 // Blank out all 5 entries
248 if (!firstrun) {
249 for (i = 0; i < MAX_HISTORY; i++) {
250 gtk_combo_box_remove_text(GTK_COMBO_BOX(combo), 0);
255251 }
252 } else {
253 firstrun = FALSE;
254 }
255
256 for (i = 0; i < MAX_HISTORY; i++) {
257 if (history) {
258 gtk_combo_box_append_text(GTK_COMBO_BOX(combo), history->data);
259 history = g_list_next(history);
260 } else {
261 gtk_combo_box_append_text(GTK_COMBO_BOX(combo), "");
262 }
263 i++;
264 }
265 #endif
256266 }
257267
258268
321331 static GCallback hdmenu_new_folder_response(gpointer data)
322332 {
323333 GtkWidget *label, *button;
324 #if !GTK_CHECK_VERSION(2,6,0)
325 // Here we use libgnomeui instead.
326 new_folder_dialog = gnome_dialog_new(_("New folder"),
327 GNOME_STOCK_BUTTON_CANCEL,
328 GNOME_STOCK_BUTTON_OK,
329 NULL);
330 gnome_dialog_button_connect_object(GNOME_DIALOG(new_folder_dialog),
331 0,
332 GTK_SIGNAL_FUNC(gtk_widget_destroy),
333 GTK_OBJECT(new_folder_dialog));
334 gnome_dialog_button_connect(GNOME_DIALOG(new_folder_dialog),
335 1,
336 GTK_SIGNAL_FUNC(create_new_folder_ok_button),
337 NULL);
338 #else
334
339335 new_folder_dialog=gtk_dialog_new_with_buttons(_("New folder"),
340 NULL,
341 0,
336 NULL,
337 0,
342338 NULL);
343339
344 button = gtk_dialog_add_button(GTK_DIALOG(new_folder_dialog),
345 GTK_STOCK_CANCEL,
340 button = gtk_dialog_add_button(GTK_DIALOG(new_folder_dialog),
341 GTK_STOCK_CANCEL,
346342 0);
347 g_signal_connect(button,
348 "clicked",
349 GTK_SIGNAL_FUNC(dispose_of_dialog_window),
343 g_signal_connect(button,
344 "clicked",
345 G_CALLBACK(dispose_of_dialog_window),
350346 GTK_OBJECT(new_folder_dialog));
351347
352 button = gtk_dialog_add_button(GTK_DIALOG(new_folder_dialog),
353 GTK_STOCK_OK,
348 button = gtk_dialog_add_button(GTK_DIALOG(new_folder_dialog),
349 GTK_STOCK_OK,
354350 1);
355 g_signal_connect(button,
356 "clicked",
357 GTK_SIGNAL_FUNC(create_new_folder_ok_button),
351 g_signal_connect(button,
352 "clicked",
353 G_CALLBACK(create_new_folder_ok_button),
358354 NULL);
359 #endif
360
361
355
362356 gtk_window_set_position (GTK_WINDOW(new_folder_dialog), GTK_WIN_POS_MOUSE);
363357
364358 label = gtk_label_new(_("Enter a name for the folder:"));
365 gtk_box_pack_start(GTK_BOX(GNOME_DIALOG(new_folder_dialog)->vbox), label, TRUE, TRUE, 0);
359 gtk_box_pack_start(GTK_BOX(GTK_DIALOG(new_folder_dialog)->vbox), label, TRUE, TRUE, 0);
366360 gtk_widget_show(label);
367361 new_folder_entry = gtk_entry_new();
368 gtk_box_pack_start(GTK_BOX(GNOME_DIALOG(new_folder_dialog)->vbox), new_folder_entry, TRUE, TRUE, 0);
362 gtk_box_pack_start(GTK_BOX(GTK_DIALOG(new_folder_dialog)->vbox), new_folder_entry, TRUE, TRUE, 0);
369363 gtk_widget_show(new_folder_entry);
370364
371 g_signal_connect(G_OBJECT (new_folder_dialog),
365 g_signal_connect(G_OBJECT (new_folder_dialog),
372366 "delete_event",
373367 G_CALLBACK(gtk_widget_destroy),
374368 G_OBJECT (new_folder_dialog));
388382 return;
389383 }
390384
391 /* Get the size column. If this is zero,
385 /*
386 * Get the size column. If this is zero,
392387 * we're dealing with a directory! Only
393388 * directories of size 0 are allowed, no
394389 * files of size 0.
399394 change_directory(meta->path);
400395 path = get_current_dir();
401396 // Set the text in the box, then switch directory view
402 gtk_combo_set_popdown_strings (GTK_COMBO (combo), transfer_widgets.history);
403 gtk_entry_set_text (GTK_ENTRY (GTK_COMBO (combo)->entry), path);
397 set_popup_history(combo);
398 gtk_entry_set_text(GTK_ENTRY(gtk_bin_get_child(GTK_BIN(combo))), path);
404399 fill_in_dir(HD_LIST, path);
405400 }
406401 destroy_metadata_t(meta);
407402 }
408403
409 /* If we come here, then the user has selected a row in the
404 /* If we come here, then the user has selected a row in the
410405 * harddisk file listing */
411406 static GCallback hdlist_mouseevent (GtkWidget *widget,
412407 GdkEventButton *event,
418413 return (gpointer) 1;
419414 } else if (event->type == GDK_BUTTON_PRESS && event->button == 3) {
420415 GdkEventButton *bevent = (GdkEventButton *) event;
421 gtk_menu_popup (GTK_MENU (transfer_widgets.harddiskpopupmenu),
416 gtk_menu_popup (GTK_MENU (transfer_widgets.harddiskpopupmenu),
422417 NULL, NULL, NULL, NULL, bevent->button, bevent->time);
423418 return (gpointer) 1;
424419 }
429424 GdkEventKey *event,
430425 gpointer data )
431426 {
432 if (event->type == GDK_KEY_PRESS &&
427 if (event->type == GDK_KEY_PRESS &&
433428 (event->keyval == GDK_Return || event->keyval == GDK_KP_Enter)) {
434429 go_down();
435430 return (gpointer) 1;
500495 return data;
501496 }
502497
503 static int chdir_edit (GtkWidget * widget, gpointer data)
498 static int chdir_edit(GtkWidget * widget, gpointer data)
504499 {
505500 gchar *text, *tempstr, *path;
506501
507 text = (gchar *) gtk_entry_get_text (GTK_ENTRY (GTK_COMBO (transfer_widgets.combo)->entry));
502 #if GTK_CHECK_VERSION(2,24,0)
503 text = (gchar *) gtk_combo_box_text_get_active_text(GTK_COMBO_BOX_TEXT(transfer_widgets.combo));
504 #else
505 text = (gchar *) gtk_combo_box_get_active_text(GTK_COMBO_BOX(transfer_widgets.combo));
506 #endif
507
508508 if ((tempstr = expand_path (text)) == NULL) {
509509 g_free (tempstr);
510510 } else
517517 change_directory(text);
518518 /* Set the text in the box, then switch directory view */
519519 path = get_current_dir();
520 gtk_combo_set_popdown_strings(GTK_COMBO(transfer_widgets.combo), transfer_widgets.history);
521 gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(transfer_widgets.combo)->entry), path);
520 set_popup_history(transfer_widgets.combo);
521 gtk_entry_set_text(GTK_ENTRY(gtk_bin_get_child(GTK_BIN(transfer_widgets.combo))), path);
522522 fill_in_dir(HD_LIST, path);
523523 return (FALSE);
524524 }
533533 metadata_t *meta = get_metadata_from_model(model, iter);
534534 if (meta->size == 0) {
535535 g_object_set(G_OBJECT(cell),
536 "foreground", GNOMAD_DIRECTORY_FOLDER_ENTRY_COLOR,
536 "foreground", GNOMAD_DIRECTORY_FOLDER_ENTRY_COLOR,
537537 "weight", GNOMAD_DIRECTORY_FOLDER_ENTRY_WEIGHT,
538538 "style", GNOMAD_DIRECTORY_FOLDER_ENTRY_STYLE,
539539 "underline", PANGO_UNDERLINE_SINGLE,
540540 NULL);
541541 } else {
542542 g_object_set(G_OBJECT(cell),
543 "foreground", GNOMAD_DIRECTORY_FILE_ENTRY_COLOR,
543 "foreground", GNOMAD_DIRECTORY_FILE_ENTRY_COLOR,
544544 "weight", GNOMAD_DIRECTORY_FILE_ENTRY_WEIGHT,
545545 "style", GNOMAD_DIRECTORY_FILE_ENTRY_STYLE,
546546 "underline", FALSE,
579579 */
580580 listview = gtk_tree_view_new_with_model (GTK_TREE_MODEL(liststore));
581581 gtk_tree_view_set_rules_hint(GTK_TREE_VIEW(listview), TRUE);
582
582
583583 dirtextrenderer = gtk_cell_renderer_text_new();
584584 textrenderer = gtk_cell_renderer_text_new();
585585 /* This renderer render time measures */
586586 timerenderer = gtk_cell_renderer_text_new();
587587
588588 g_object_set(G_OBJECT(textrenderer),
589 "foreground", GNOMAD_DIRECTORY_FILE_ENTRY_COLOR,
589 "foreground", GNOMAD_DIRECTORY_FILE_ENTRY_COLOR,
590590 "weight", GNOMAD_DIRECTORY_FILE_ENTRY_WEIGHT,
591591 "style", GNOMAD_DIRECTORY_FILE_ENTRY_STYLE,
592592 "underline", FALSE,
593593 NULL);
594594 g_object_set(G_OBJECT(timerenderer),
595 "foreground", GNOMAD_DIRECTORY_FILE_ENTRY_COLOR,
595 "foreground", GNOMAD_DIRECTORY_FILE_ENTRY_COLOR,
596596 "weight", GNOMAD_DIRECTORY_FILE_ENTRY_WEIGHT,
597597 "style", GNOMAD_DIRECTORY_FILE_ENTRY_STYLE,
598598 "underline", FALSE,
768768
769769 transfer_widgets.history = NULL;
770770 /* Just add something to the history... */
771 transfer_widgets.history =
771 transfer_widgets.history =
772772 g_list_append (transfer_widgets.history, (gpointer) get_current_dir());
773
773
774774 /* The popup menu for the harddisk files */
775775 popupmenu = gtk_menu_new ();
776776 popupmenu_item = gtk_menu_item_new_with_label (_("Rescan directory metadata"));
866866 0);
867867 gtk_widget_show (popupmenu_item);
868868 transfer_widgets.jukeboxpopupmenu = popupmenu;
869
869
870870 /* Then the panel (handle in the middle) */
871 music_panel = gtk_hpaned_new ();
872 leftbox = gtk_hbox_new (FALSE, 0);
873 left_vbox=gtk_vbox_new(FALSE, 0);
874 combo = gtk_combo_new ();
871 music_panel = gtk_hpaned_new();
872 leftbox = gtk_hbox_new(FALSE, 0);
873 left_vbox = gtk_vbox_new(FALSE, 0);
874
875 #if GTK_CHECK_VERSION(2,24,0)
876 // Use the new combo box type in 2.24 and later
877 combo = gtk_combo_box_text_new_with_entry();
878 #else
879 combo = gtk_combo_box_entry_new_text();
880 #endif
881
875882 transfer_widgets.combo = combo;
876 gtk_combo_set_case_sensitive (GTK_COMBO (combo), 1);
877 gtk_combo_set_popdown_strings (GTK_COMBO (combo), transfer_widgets.history);
883 set_popup_history(combo);
878884 gtk_box_pack_start(GTK_BOX(left_vbox), combo, FALSE, FALSE, 0);
879 g_signal_connect_object(GTK_OBJECT(GTK_COMBO(combo)->entry),
885 // signal "changed" on the combo directly will not work
886 g_signal_connect_object(GTK_OBJECT(gtk_bin_get_child(GTK_BIN(combo))),
880887 "activate",
881888 G_CALLBACK(chdir_edit),
882889 NULL,
883890 0);
884 gtk_combo_disable_activate (GTK_COMBO (combo));
885 gtk_entry_set_text (GTK_ENTRY (GTK_COMBO (combo)->entry), get_current_dir());
886 gtk_widget_show (combo);
891 gtk_entry_set_text(GTK_ENTRY(gtk_bin_get_child(GTK_BIN(combo))), get_current_dir());
892 gtk_widget_show(combo);
887893
888894 /* Create the stores and their views */
889895 hdlistview = create_listview(transfer_widgets.hdliststore);
913919 0);
914920
915921 /* Fill in and sort directory */
916 fill_in_dir(HD_LIST, (gchar *) gtk_entry_get_text(GTK_ENTRY (GTK_COMBO (combo)->entry)));
922 #if GTK_CHECK_VERSION(2,24,0)
923 fill_in_dir(HD_LIST, (gchar *) gtk_combo_box_text_get_active_text(GTK_COMBO_BOX_TEXT(combo)));
924 #else
925 fill_in_dir(HD_LIST, (gchar *) gtk_combo_box_get_active_text(GTK_COMBO_BOX(combo)));
926 #endif
917927 view_and_sort_list_store(HD_LIST);
918928
919929 /* Create a scrolled window for the harddisk files */
920930 scrolled_window = gtk_scrolled_window_new (NULL, NULL);
921931 gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled_window),
922932 GTK_POLICY_AUTOMATIC, GTK_POLICY_ALWAYS);
923
933
924934 gtk_container_add(GTK_CONTAINER(scrolled_window), hdlistview);
925935 gtk_widget_show(hdlistview);
926936 gtk_box_pack_start(GTK_BOX(left_vbox), scrolled_window, TRUE, TRUE, 0);
927937 gtk_widget_show (scrolled_window);
928938 gtk_widget_show(left_vbox);
929939 gtk_box_pack_start(GTK_BOX(leftbox), left_vbox, TRUE, TRUE, 0);
930
940
931941 /* A vertical box for the transfer buttons */
932942 transfer_button_vbox=gtk_vbox_new(FALSE, 0);
933943 gtk_container_set_border_width(GTK_CONTAINER(transfer_button_vbox), 5);
934
944
935945 /* Add buttons to this vertical box */
936946 button = gtk_button_new();
937947 arrow = gtk_arrow_new(GTK_ARROW_RIGHT, GTK_SHADOW_NONE);
955965 0);
956966 gtk_box_pack_start(GTK_BOX(transfer_button_vbox), button, TRUE, FALSE, 0);
957967 gtk_widget_show(button);
958
968
959969 gtk_box_pack_start(GTK_BOX(leftbox), transfer_button_vbox, FALSE, FALSE, 0);
960970 gtk_paned_pack1 (GTK_PANED(music_panel), leftbox, TRUE, TRUE);
961971 gtk_widget_show(leftbox);
962972 gtk_widget_show(transfer_button_vbox);
963
973
964974
965975 /* A vertical box for jukebox scroll and label */
966976 right_vbox=gtk_vbox_new(FALSE, 0);
968978 scrolled_window = gtk_scrolled_window_new (NULL, NULL);
969979 gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled_window),
970980 GTK_POLICY_AUTOMATIC, GTK_POLICY_ALWAYS);
971
981
972982 /* Add the CList widget to the vertical box and show it. */
973983 gtk_container_add(GTK_CONTAINER(scrolled_window), jblistview);
974984 gtk_widget_show(jblistview);