mirror of OpenBSD xenocara tree github.com/openbsd/xenocara
openbsd
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Update to -current xmore from X.org git.

This version mainly removes Xprint support.

matthieu 1a66cb98 a88f24fd

+6547 -5344
+412 -24
app/xmore/ChangeLog
··· 1 - 2005-12-20 Kevin E. Martin <kem-at-freedesktop-dot-org> 1 + commit e7545d949090a3b7b75e3dd562cc367b152dcbb6 2 + Author: Matthieu Herrb <matthieu.herrb@laas.fr> 3 + Date: Wed Apr 21 21:59:37 2010 +0200 4 + 5 + BSD Makefile 6 + 7 + commit 4a4187b8ce272e96b760e1e59da980644e99aa0b 8 + Author: Gaetan Nadon <memsize@videotron.ca> 9 + Date: Thu Feb 11 10:08:07 2010 -0500 10 + 11 + config: move CWARNFLAGS from configure.ac to Makefile.am 12 + 13 + Compiler warning flags should be explicitly set in the makefile 14 + rather than being merged with other packages compiler flags. 15 + 16 + Signed-off-by: Gaetan Nadon <memsize@videotron.ca> 17 + 18 + commit 47a2b341aeb6182dc3288850c7a27f36fb436863 19 + Author: Gaetan Nadon <memsize@videotron.ca> 20 + Date: Sat Dec 19 20:48:48 2009 -0500 21 + 22 + configure.ac: use backticks rather than $() for cmd subs 23 + 24 + Use "$PKG_CONFIG" rather than hard coded "pkg-config" 25 + 26 + Signed-off-by: Gaetan Nadon <memsize@videotron.ca> 27 + 28 + commit 7cf288c20a86151592d62e037cb196b190bf50be 29 + Author: Gaetan Nadon <memsize@videotron.ca> 30 + Date: Thu Nov 26 09:19:54 2009 -0500 2 31 3 - * configure.ac: 4 - Update package version for X11R7 release. 32 + Makefile.am: add ChangeLog and INSTALL on MAINTAINERCLEANFILES 33 + 34 + Now that the INSTALL file is generated. 35 + Allows running make maintainer-clean. 36 + 37 + commit 561a214d1399ba661fc873e310a1ec8cfdf0fd95 38 + Author: Gaetan Nadon <memsize@videotron.ca> 39 + Date: Wed Oct 28 14:09:08 2009 -0400 40 + 41 + INSTALL, NEWS, README or AUTHORS files are missing/incorrect #24206 42 + 43 + Add missing INSTALL file. Use standard GNU file on building tarball 44 + README may have been updated 45 + Remove AUTHORS file as it is empty and no content available yet. 46 + Remove NEWS file as it is empty and no content available yet. 5 47 6 - 2005-12-14 Kevin E. Martin <kem-at-freedesktop-dot-org> 48 + commit 1c5982f33817afbc8d004e97ca803f995f9f9473 49 + Author: Gaetan Nadon <memsize@videotron.ca> 50 + Date: Tue Oct 27 15:07:25 2009 -0400 7 51 8 - * configure.ac: 9 - Update package version number for final X11R7 release candidate. 52 + Deploy the new XORG_DEFAULT_OPTIONS #24242 53 + 54 + This macro aggregate a number of existing macros that sets commmon 55 + X.Org components configuration options. It shields the configuration file from 56 + future changes. 10 57 11 - 2005-12-07 Kevin E. Martin <kem-at-freedesktop-dot-org> 58 + commit 3d5641c03c3d7fe2eeb5980f8a13bdb450be947e 59 + Author: Gaetan Nadon <memsize@videotron.ca> 60 + Date: Mon Oct 26 22:08:39 2009 -0400 12 61 13 - * Makefile.am: 14 - * configure.ac: 15 - Change to use the app-defaults default dir configured in libXt. 62 + Makefile.am: ChangeLog not required: EXTRA_DIST or *CLEANFILES #24432 63 + 64 + ChangeLog filename is known to Automake and requires no further 65 + coding in the makefile. 16 66 17 - 2005-12-06 Kevin E. Martin <kem-at-freedesktop-dot-org> 67 + commit b80c24ac28999a1d760eee75e2173ff7e8f8e885 68 + Author: Gaetan Nadon <memsize@videotron.ca> 69 + Date: Thu Oct 22 12:34:16 2009 -0400 18 70 19 - * Makefile.am: 20 - Change *man_SOURCES ==> *man_PRE to fix autotools warnings. 71 + .gitignore: use common defaults with custom section # 24239 72 + 73 + Using common defaults will reduce errors and maintenance. 74 + Only the very small or inexistent custom section need periodic maintenance 75 + when the structure of the component changes. Do not edit defaults. 21 76 22 - 2005-12-03 Kevin E. Martin <kem-at-freedesktop-dot-org> 77 + commit 1ed0b44715c812c7d067841d68e2057944341d5f 78 + Author: Alan Coopersmith <alan.coopersmith@sun.com> 79 + Date: Thu Oct 1 14:54:28 2009 -0700 23 80 24 - * configure.ac: 25 - Update package version number for X11R7 RC3 release. 81 + Add README with pointers to mailing lists, bugzilla, & git 82 + 83 + Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com> 26 84 27 - 2005-11-19 Alan Coopersmith <alan.coopersmith@sun.com> 85 + commit ab8110b8978cb965d49e0c2e9c1cb7e7608c185e 86 + Author: Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> 87 + Date: Thu Jan 22 16:49:25 2009 -0200 28 88 29 - * configure.ac: 30 - Add dependency on xp module when building with Xprint support. 89 + Correct make distcheck and sparse warnings. 31 90 32 - 2005-10-18 Kevin E. Martin <kem-at-freedesktop-dot-org> 91 + commit 747f76737a8e7a7f50bd06fd111e5ada8305884d 92 + Author: Julien Cristau <jcristau@debian.org> 93 + Date: Sun Nov 16 21:49:56 2008 +0100 33 94 34 - * configure.ac: 35 - Update package version number for RC1 release. 95 + More xprint pruning 36 96 37 - 2005-10-05 Kevin E. Martin <kem-at-freedesktop-dot-org> 97 + commit d9b5448a77ff3ee06f6128faa69f43066cd16fe1 98 + Author: Julien Cristau <jcristau@debian.org> 99 + Date: Thu Aug 21 00:46:51 2008 +0200 38 100 39 - * Makefile.am: Add xmore.sgml to EXTRA_DIST 101 + Fix build outside of source dir 102 + 103 + commit 7739b19df6a7eba2c35fc34688c40d64a65b79f5 104 + Author: Julien Cristau <jcristau@debian.org> 105 + Date: Thu Aug 21 00:42:51 2008 +0200 106 + 107 + Build fix: remove xprint remnants 108 + 109 + commit 56ff9e213249bbdc0ecd3b5e7e4cffee60f46ef4 110 + Author: James Cloos <cloos@jhcloos.com> 111 + Date: Wed Aug 20 10:32:52 2008 -0400 112 + 113 + xaw8 is gone, use xaw7 114 + 115 + commit a85334f153e05119f237ff412a2ff15dce95878d 116 + Author: Jeremy Huddleston <jeremyhu@freedesktop.org> 117 + Date: Thu Mar 27 20:29:51 2008 -0700 118 + 119 + Added missing AM_PROG_CC_C_O 120 + 121 + commit 8bd714835159aa32a64343a8dc41684d7c36ab43 122 + Author: Jeremy Huddleston <jeremyhu@freedesktop.org> 123 + Date: Thu Mar 27 20:07:52 2008 -0700 124 + 125 + Build fix for file systems that are not case sensitive 126 + 127 + commit 851f5e3eaedeb6a5bcc4d1f1b669e4b11dbf3687 128 + Author: James Cloos <cloos@jhcloos.com> 129 + Date: Thu Dec 6 16:37:25 2007 -0500 130 + 131 + Replace static ChangeLog with dist-hook to generate from git log 132 + 133 + commit 8c718d9c360963defae4d056555394fc4d53c81a 134 + Author: James Cloos <cloos@jhcloos.com> 135 + Date: Mon Sep 3 05:51:38 2007 -0400 136 + 137 + Add *~ to .gitignore to skip patch/emacs droppings 138 + 139 + commit 4a01239ff7c89c56f5dfd5ec5c963422b6dd7184 140 + Author: James Cloos <cloos@jhcloos.com> 141 + Date: Thu Aug 23 19:25:02 2007 -0400 142 + 143 + Rename .cvsignore to .gitignore 144 + 145 + commit b9d4d0d8877d3c1c69752e0ff4215cdb3d0742d5 146 + Author: Kevin E Martin <kem@kem.org> 147 + Date: Wed Dec 21 02:29:52 2005 +0000 148 + 149 + Update package version for X11R7 release. 150 + 151 + commit bdc49004296438983d568e0e1bfc3e70e6cadac4 152 + Author: Adam Jackson <ajax@nwnk.net> 153 + Date: Mon Dec 19 16:22:46 2005 +0000 154 + 155 + Stub COPYING files 156 + 157 + commit 5adf875ac8a1b27b512a796a85f0ed65119385ee 158 + Author: Kevin E Martin <kem@kem.org> 159 + Date: Thu Dec 15 00:24:09 2005 +0000 160 + 161 + Update package version number for final X11R7 release candidate. 162 + 163 + commit 94c9195eb246474480643c62dd4c5e9e3d610a39 164 + Author: Kevin E Martin <kem@kem.org> 165 + Date: Wed Dec 7 16:18:01 2005 +0000 166 + 167 + Change to use the app-defaults default dir configured in libXt. 168 + 169 + commit f427001cd1f3efdafa06c381c38fd5a4449b76f2 170 + Author: Kevin E Martin <kem@kem.org> 171 + Date: Tue Dec 6 22:48:24 2005 +0000 172 + 173 + Change *man_SOURCES ==> *man_PRE to fix autotools warnings. 174 + 175 + commit 5c4880cca850794b05539c21a3a6dfe1531b801b 176 + Author: Kevin E Martin <kem@kem.org> 177 + Date: Sat Dec 3 05:49:26 2005 +0000 178 + 179 + Update package version number for X11R7 RC3 release. 180 + 181 + commit 6805b1f303fad5c194fd76b9208a981c80b7c7fc 182 + Author: Alan Coopersmith <Alan.Coopersmith@sun.com> 183 + Date: Mon Nov 28 22:01:45 2005 +0000 184 + 185 + Change *mandir targets to use new *_MAN_DIR variables set by xorg-macros.m4 186 + update to fix bug #5167 (Linux prefers *.1x man pages in man1 subdir) 187 + 188 + commit adbc0b1f5584ecbce974446419deb9f76fd486d2 189 + Author: Eric Anholt <anholt@freebsd.org> 190 + Date: Mon Nov 21 10:35:05 2005 +0000 191 + 192 + Another pass at .cvsignores for apps. 193 + 194 + commit 320a3eb6449b73b2963c3e63ef1a8078b194c992 195 + Author: Eric Anholt <anholt@freebsd.org> 196 + Date: Sun Nov 20 22:08:54 2005 +0000 197 + 198 + Add/improve .cvsignore files for apps. 199 + 200 + commit 508f26ba0ba5de6936cf9aec782c2f36114be43b 201 + Author: Alan Coopersmith <Alan.Coopersmith@sun.com> 202 + Date: Sun Nov 20 04:13:45 2005 +0000 203 + 204 + Add dependency on xp module when building with Xprint support. 205 + 206 + commit 5789d54ef03c4dc59faff86084ba7b0eaf79cda5 207 + Author: Kevin E Martin <kem@kem.org> 208 + Date: Wed Oct 19 02:47:56 2005 +0000 209 + 210 + Update package version number for RC1 release. 211 + 212 + commit b6bc1985f3241a1e8bf4896ddc0ba62cc8d52bbb 213 + Author: Alan Coopersmith <Alan.Coopersmith@sun.com> 214 + Date: Tue Oct 18 00:32:55 2005 +0000 215 + 216 + Change default install dir for app-default files from 217 + $(sysconfdir)/X11/app-defaults to $(libdir)/X11/app-defaults to match 218 + the monolith & allow localization 219 + 220 + commit 8a0d8f1a09e3f9f81cd3a254bf129dfb194631c0 221 + Author: Alan Coopersmith <Alan.Coopersmith@sun.com> 222 + Date: Mon Oct 17 23:56:24 2005 +0000 223 + 224 + Use @APP_MAN_SUFFIX@ instead of $(APP_MAN_SUFFIX) in macro substitutions to 225 + work better with BSD make 226 + 227 + commit 339f76a32a41635dda213807baaf163e80305a49 228 + Author: Alan Coopersmith <Alan.Coopersmith@sun.com> 229 + Date: Fri Oct 14 00:25:47 2005 +0000 230 + 231 + Use sed to fill in variables in man page 232 + 233 + commit 6b9309358a8f2901e30cf4dab5d91d405ee44ff4 234 + Author: Kevin E Martin <kem@kem.org> 235 + Date: Wed Oct 5 00:01:35 2005 +0000 236 + 237 + Add xmore.sgml to EXTRA_DIST 238 + 239 + commit 634f48bc62e069913e64ded9e068a9fab03f9cb9 240 + Author: Alan Coopersmith <Alan.Coopersmith@sun.com> 241 + Date: Mon Aug 1 20:25:31 2005 +0000 242 + 243 + Install man pages to section 1 instead of section m (Patch from Donnie 244 + Berkholz) 245 + 246 + commit 9c8de9a0c760ce9d06b8593182e0fab89890d229 247 + Author: Kevin E Martin <kem@kem.org> 248 + Date: Fri Jul 29 21:22:36 2005 +0000 249 + 250 + Various changes preparing packages for RC0: 251 + - Verify and update package version numbers as needed 252 + - Implement versioning scheme 253 + - Change bug address to point to bugzilla bug entry form 254 + - Disable loadable i18n in libX11 by default (use --enable-loadable-i18n to 255 + reenable it) 256 + - Fix makedepend to use pkgconfig and pass distcheck 257 + - Update build script to build macros first 258 + - Update modular Xorg version 259 + 260 + commit 3aa8309ba62e1a445663c458c0132d0b70c66d66 261 + Author: Alan Coopersmith <Alan.Coopersmith@sun.com> 262 + Date: Tue Jul 26 15:44:03 2005 +0000 263 + 264 + Replace more GNU make-ism's with more portable macros 265 + 266 + commit eaae9a052fc7eec785e6fc8cf2011ea963030a5b 267 + Author: Matthieu Herrb <matthieu.herrb@laas.fr> 268 + Date: Sat Jul 23 16:56:33 2005 +0000 269 + 270 + fix GNU-make only app-defaults rule 271 + 272 + commit f63f6eb288ab5b518525e31407f1be1514cf72e7 273 + Author: Matthieu Herrb <matthieu.herrb@laas.fr> 274 + Date: Sat Jul 23 16:56:07 2005 +0000 275 + 276 + fix remaining DEP_{CFLAGS,LIBS} refenences 277 + 278 + commit f9a60649a815c42cd5ebd9e24dbbb12d62fd90de 279 + Author: Adam Jackson <ajax@nwnk.net> 280 + Date: Wed Jul 20 19:32:03 2005 +0000 281 + 282 + Use a unique token for PKG_CHECK_MODULES. Otherwise, if you use a global 283 + configure cache, you cache it, and the cached value is probably wrong. 284 + 285 + commit bf280e7bc5d6e2c65ea0235fde208274a714d13b 286 + Author: Søren Sandmann Pedersen <sandmann@daimi.au.dk> 287 + Date: Tue Jul 5 22:51:11 2005 +0000 288 + 289 + Add build systems for xlogo, xlsatoms, xlsclients, xmag, xman, xmessage, 290 + xmh, xmore. lib/Xaw/xaw.m4: Add an AM_CONDITIONAL and a shell variable 291 + xaw_use_xprint symlink.sh: add some extra files for xgc, xinit, 292 + xkbcomp, xlogo, xmb, and xmodmap xc/programs/xmore/xmore.c: 293 + Conditionalize use of xprint 294 + 295 + commit 8b721c45d8f8681e59ca145d1ed3839d1b312a99 296 + Author: Roland Mainz <roland.mainz@nrubsig.org> 297 + Date: Mon Apr 11 01:06:15 2005 +0000 298 + 299 + xc/programs/Xserver/Xprint/attributes.c 300 + xc/programs/glxgears/glxgears.c 301 + xc/programs/xdbedizzy/xdbedizzy.c 302 + xc/programs/xedit/Imakefile 303 + xc/programs/xedit/Xedit-xprint.ad 304 + xc/programs/xedit/util.c 305 + xc/programs/xedit/xedit.h 306 + xc/programs/xlogo/print.c 307 + xc/programs/xlogo/xlogo.c 308 + xc/programs/xlogo/xlogo.h 309 + xc/programs/xman/Imakefile 310 + xc/programs/xman/print.h 311 + xc/programs/xmore/Imakefile 312 + xc/programs/xmore/print.c 313 + xc/programs/xmore/print.h 314 + xc/programs/xmore/printdialog.c 315 + xc/programs/xphelloworld/xpawhelloworld/xpawhelloworld.c 316 + xc/programs/xphelloworld/xphelloworld/xphelloworld.c 317 + xc/programs/xphelloworld/xpsimplehelloworld/xpsimplehelloworld.c 318 + xc/programs/xphelloworld/xpxmhelloworld/xpxmhelloworld.c 319 + //bugs.freedesktop.org/show_bug.cgi?id=790) attachment #2379 320 + (https://bugs.freedesktop.org/attachment.cgi?id=2379) Implement support 321 + client+Xserver support for passing output (stdout+stderr) of the 322 + spooler command started by the Xprint server back to the application 323 + using the "xp-spooler-command-results" XPJobAttr attribute 324 + (applications can fetch the attribute value after the XPEndJobNotify 325 + event was received; more details can be found in 326 + http://xprint.mozdev.org/docs/dtprint_fspec.ps). 327 + 328 + commit 3d9fdcb47537e924e7426d64d838c00414ec58ff 329 + Author: Roland Mainz <roland.mainz@nrubsig.org> 330 + Date: Tue Feb 1 23:00:50 2005 +0000 331 + 332 + xc/programs/xmore/xmore.man 333 + //bugs.freedesktop.org/show_bug.cgi?id=2410) attachment #1786 334 + (https://bugs.freedesktop.org/attachment.cgi?id=1786): Fix formatting 335 + problem in the xmore(1x) manual page. Patch by Matthieu Herrb 336 + <matthieu.herrb@laas.fr> and Roland Mainz <roland.mainz@nrubsig.org>. 337 + Approved in the 2005-01-31 Xorg release-wranglers phone call (the 338 + xmore.man diff is an automatic update from the DocBook--->man 339 + conversion). 340 + 341 + commit 550802b584f89279d8af35ee8a9221dc24ea1f27 342 + Author: Roland Mainz <roland.mainz@nrubsig.org> 343 + Date: Mon Jan 3 01:06:36 2005 +0000 344 + 345 + xc/lib/XprintAppUtil/xpapputil.c 346 + xc/lib/XprintAppUtil/xpapputil.h 347 + xc/lib/XprintUtil/xprintutil.c 348 + xc/lib/XprintUtil/xprintutil.h 349 + xc/programs/glxgears/glxgears.c 350 + xc/programs/xdbedizzy/xdbedizzy.c 351 + xc/programs/xedit/Xedit-xprint.ad 352 + xc/programs/xedit/commands.c 353 + xc/programs/xlogo/print.c 354 + xc/programs/xlsfonts/xlsfonts.c 355 + xc/programs/xlsfonts/xlsfonts.man 356 + xc/programs/xlsfonts/xlsfonts.sgml 357 + xc/programs/xman/Xman-xprint.ad 358 + xc/programs/xman/handler.c 359 + xc/programs/xman/print.c 360 + xc/programs/xman/print.h 361 + xc/programs/xmore/XMore.ad 362 + xc/programs/xmore/print.c 363 + xc/programs/xmore/print.h 364 + xc/programs/xmore/printdialog.c 365 + xc/programs/xmore/printdialog.h 366 + xc/programs/xmore/printdialogprivates.h 367 + xc/programs/xmore/xmore.c 368 + xc/programs/xphelloworld/xpawhelloworld/xpawhelloworld.c 369 + xc/programs/xphelloworld/xphelloworld/xphelloworld.c 370 + xc/programs/xphelloworld/xpsimplehelloworld/xpsimplehelloworld.c 371 + xc/programs/xphelloworld/xpxmhelloworld/xpxmhelloworld.c 372 + xc/programs/xphelloworld/xpxthelloworld/xpxthelloworld.c 373 + xc/programs/xplsprinters/xplsprinters.c 374 + //bugs.freedesktop.org/show_bug.cgi?id=1706) attachment #1615 375 + (https://bugs.freedesktop.org/attachment.cgi?id=1615): XprintUtils 376 + 2004/Q3 update. This adds various new features to the XprintUtils 377 + library including support for page resolutions where 378 + X_resolution!=Y_resolution, listfonts-mode control and initial 379 + framework for the COLORSPACE extension. Patch by Roland Mainz 380 + <roland.mainz@nrubsig.org> and Julien Lafon <julien.lafon@gmail.com>. 381 + 382 + commit 11d508e4bfec3ecd749123e043768ea3fb21ce12 383 + Author: Roland Mainz <roland.mainz@nrubsig.org> 384 + Date: Tue Oct 12 22:46:40 2004 +0000 385 + 386 + Fix for https://freedesktop.org/bugzilla/show_bug.cgi?id=1601 - Fix 387 + problems with wrong page counts in xedit&co. when a global "*geometry" 388 + resource was overriding the internal geometry management used by 389 + XawPrintShell(=usually adjust to current page size, the resource was 390 + turning this into a static value). (Original patch by Felix Schulte 391 + <felix.schulte@gmail.com>) 392 + 393 + commit 71eb560c323df9e78e1381eff41002f1df9cb44b 394 + Author: Roland Mainz <roland.mainz@nrubsig.org> 395 + Date: Thu Jul 29 00:40:35 2004 +0000 396 + 397 + Fix for https://freedesktop.org/bugzilla/show_bug.cgi?id=938 - Update 398 + XawPrintShell per feedback and review comments. 399 + 400 + commit a5c5bd828d0a89ab979ad122c40073e8985e5e6e 401 + Author: Roland Mainz <roland.mainz@nrubsig.org> 402 + Date: Tue Jun 8 02:44:35 2004 +0000 403 + 404 + Fix for http://freedesktop.org/bugzilla/show_bug.cgi?id=668 - Add print 405 + support to xman 406 + 407 + commit b041343bcf05fdf5ce4234655c869251b3f8fafa 408 + Author: Roland Mainz <roland.mainz@nrubsig.org> 409 + Date: Sun May 30 22:44:01 2004 +0000 410 + 411 + Fix for http://freedesktop.org/bugzilla/show_bug.cgi?id=695 - Add print 412 + support to Xedit 413 + 414 + commit 7b5bbd9057eba74e53ec0ed9a306e78a15bd96a8 415 + Author: Roland Mainz <roland.mainz@nrubsig.org> 416 + Date: Sun May 30 00:52:30 2004 +0000 417 + 418 + Fix for http://freedesktop.org/bugzilla/show_bug.cgi?id=693 - XMore and 419 + XawPrintDialog work-in-progress, fixing various problems and adding 420 + framework for i18n. 421 + 422 + commit 62ad6298a589dd16820c7d0bbfcd2b5381a2589e 423 + Author: Roland Mainz <roland.mainz@nrubsig.org> 424 + Date: Mon May 24 03:17:44 2004 +0000 425 + 426 + Fix for http://pdx.freedesktop.org/cgi-bin/bugzilla/show_bug.cgi?id=611 - 427 + Adding simple text viewer (xmore)
+291
app/xmore/INSTALL
··· 1 + Installation Instructions 2 + ************************* 3 + 4 + Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005, 5 + 2006, 2007, 2008 Free Software Foundation, Inc. 6 + 7 + This file is free documentation; the Free Software Foundation gives 8 + unlimited permission to copy, distribute and modify it. 9 + 10 + Basic Installation 11 + ================== 12 + 13 + Briefly, the shell commands `./configure; make; make install' should 14 + configure, build, and install this package. The following 15 + more-detailed instructions are generic; see the `README' file for 16 + instructions specific to this package. 17 + 18 + The `configure' shell script attempts to guess correct values for 19 + various system-dependent variables used during compilation. It uses 20 + those values to create a `Makefile' in each directory of the package. 21 + It may also create one or more `.h' files containing system-dependent 22 + definitions. Finally, it creates a shell script `config.status' that 23 + you can run in the future to recreate the current configuration, and a 24 + file `config.log' containing compiler output (useful mainly for 25 + debugging `configure'). 26 + 27 + It can also use an optional file (typically called `config.cache' 28 + and enabled with `--cache-file=config.cache' or simply `-C') that saves 29 + the results of its tests to speed up reconfiguring. Caching is 30 + disabled by default to prevent problems with accidental use of stale 31 + cache files. 32 + 33 + If you need to do unusual things to compile the package, please try 34 + to figure out how `configure' could check whether to do them, and mail 35 + diffs or instructions to the address given in the `README' so they can 36 + be considered for the next release. If you are using the cache, and at 37 + some point `config.cache' contains results you don't want to keep, you 38 + may remove or edit it. 39 + 40 + The file `configure.ac' (or `configure.in') is used to create 41 + `configure' by a program called `autoconf'. You need `configure.ac' if 42 + you want to change it or regenerate `configure' using a newer version 43 + of `autoconf'. 44 + 45 + The simplest way to compile this package is: 46 + 47 + 1. `cd' to the directory containing the package's source code and type 48 + `./configure' to configure the package for your system. 49 + 50 + Running `configure' might take a while. While running, it prints 51 + some messages telling which features it is checking for. 52 + 53 + 2. Type `make' to compile the package. 54 + 55 + 3. Optionally, type `make check' to run any self-tests that come with 56 + the package. 57 + 58 + 4. Type `make install' to install the programs and any data files and 59 + documentation. 60 + 61 + 5. You can remove the program binaries and object files from the 62 + source code directory by typing `make clean'. To also remove the 63 + files that `configure' created (so you can compile the package for 64 + a different kind of computer), type `make distclean'. There is 65 + also a `make maintainer-clean' target, but that is intended mainly 66 + for the package's developers. If you use it, you may have to get 67 + all sorts of other programs in order to regenerate files that came 68 + with the distribution. 69 + 70 + 6. Often, you can also type `make uninstall' to remove the installed 71 + files again. 72 + 73 + Compilers and Options 74 + ===================== 75 + 76 + Some systems require unusual options for compilation or linking that 77 + the `configure' script does not know about. Run `./configure --help' 78 + for details on some of the pertinent environment variables. 79 + 80 + You can give `configure' initial values for configuration parameters 81 + by setting variables in the command line or in the environment. Here 82 + is an example: 83 + 84 + ./configure CC=c99 CFLAGS=-g LIBS=-lposix 85 + 86 + *Note Defining Variables::, for more details. 87 + 88 + Compiling For Multiple Architectures 89 + ==================================== 90 + 91 + You can compile the package for more than one kind of computer at the 92 + same time, by placing the object files for each architecture in their 93 + own directory. To do this, you can use GNU `make'. `cd' to the 94 + directory where you want the object files and executables to go and run 95 + the `configure' script. `configure' automatically checks for the 96 + source code in the directory that `configure' is in and in `..'. 97 + 98 + With a non-GNU `make', it is safer to compile the package for one 99 + architecture at a time in the source code directory. After you have 100 + installed the package for one architecture, use `make distclean' before 101 + reconfiguring for another architecture. 102 + 103 + On MacOS X 10.5 and later systems, you can create libraries and 104 + executables that work on multiple system types--known as "fat" or 105 + "universal" binaries--by specifying multiple `-arch' options to the 106 + compiler but only a single `-arch' option to the preprocessor. Like 107 + this: 108 + 109 + ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ 110 + CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ 111 + CPP="gcc -E" CXXCPP="g++ -E" 112 + 113 + This is not guaranteed to produce working output in all cases, you 114 + may have to build one architecture at a time and combine the results 115 + using the `lipo' tool if you have problems. 116 + 117 + Installation Names 118 + ================== 119 + 120 + By default, `make install' installs the package's commands under 121 + `/usr/local/bin', include files under `/usr/local/include', etc. You 122 + can specify an installation prefix other than `/usr/local' by giving 123 + `configure' the option `--prefix=PREFIX'. 124 + 125 + You can specify separate installation prefixes for 126 + architecture-specific files and architecture-independent files. If you 127 + pass the option `--exec-prefix=PREFIX' to `configure', the package uses 128 + PREFIX as the prefix for installing programs and libraries. 129 + Documentation and other data files still use the regular prefix. 130 + 131 + In addition, if you use an unusual directory layout you can give 132 + options like `--bindir=DIR' to specify different values for particular 133 + kinds of files. Run `configure --help' for a list of the directories 134 + you can set and what kinds of files go in them. 135 + 136 + If the package supports it, you can cause programs to be installed 137 + with an extra prefix or suffix on their names by giving `configure' the 138 + option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. 139 + 140 + Optional Features 141 + ================= 142 + 143 + Some packages pay attention to `--enable-FEATURE' options to 144 + `configure', where FEATURE indicates an optional part of the package. 145 + They may also pay attention to `--with-PACKAGE' options, where PACKAGE 146 + is something like `gnu-as' or `x' (for the X Window System). The 147 + `README' should mention any `--enable-' and `--with-' options that the 148 + package recognizes. 149 + 150 + For packages that use the X Window System, `configure' can usually 151 + find the X include and library files automatically, but if it doesn't, 152 + you can use the `configure' options `--x-includes=DIR' and 153 + `--x-libraries=DIR' to specify their locations. 154 + 155 + Particular systems 156 + ================== 157 + 158 + On HP-UX, the default C compiler is not ANSI C compatible. If GNU 159 + CC is not installed, it is recommended to use the following options in 160 + order to use an ANSI C compiler: 161 + 162 + ./configure CC="cc -Ae" 163 + 164 + and if that doesn't work, install pre-built binaries of GCC for HP-UX. 165 + 166 + On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot 167 + parse its `<wchar.h>' header file. The option `-nodtk' can be used as 168 + a workaround. If GNU CC is not installed, it is therefore recommended 169 + to try 170 + 171 + ./configure CC="cc" 172 + 173 + and if that doesn't work, try 174 + 175 + ./configure CC="cc -nodtk" 176 + 177 + Specifying the System Type 178 + ========================== 179 + 180 + There may be some features `configure' cannot figure out 181 + automatically, but needs to determine by the type of machine the package 182 + will run on. Usually, assuming the package is built to be run on the 183 + _same_ architectures, `configure' can figure that out, but if it prints 184 + a message saying it cannot guess the machine type, give it the 185 + `--build=TYPE' option. TYPE can either be a short name for the system 186 + type, such as `sun4', or a canonical name which has the form: 187 + 188 + CPU-COMPANY-SYSTEM 189 + 190 + where SYSTEM can have one of these forms: 191 + 192 + OS KERNEL-OS 193 + 194 + See the file `config.sub' for the possible values of each field. If 195 + `config.sub' isn't included in this package, then this package doesn't 196 + need to know the machine type. 197 + 198 + If you are _building_ compiler tools for cross-compiling, you should 199 + use the option `--target=TYPE' to select the type of system they will 200 + produce code for. 201 + 202 + If you want to _use_ a cross compiler, that generates code for a 203 + platform different from the build platform, you should specify the 204 + "host" platform (i.e., that on which the generated programs will 205 + eventually be run) with `--host=TYPE'. 206 + 207 + Sharing Defaults 208 + ================ 209 + 210 + If you want to set default values for `configure' scripts to share, 211 + you can create a site shell script called `config.site' that gives 212 + default values for variables like `CC', `cache_file', and `prefix'. 213 + `configure' looks for `PREFIX/share/config.site' if it exists, then 214 + `PREFIX/etc/config.site' if it exists. Or, you can set the 215 + `CONFIG_SITE' environment variable to the location of the site script. 216 + A warning: not all `configure' scripts look for a site script. 217 + 218 + Defining Variables 219 + ================== 220 + 221 + Variables not defined in a site shell script can be set in the 222 + environment passed to `configure'. However, some packages may run 223 + configure again during the build, and the customized values of these 224 + variables may be lost. In order to avoid this problem, you should set 225 + them in the `configure' command line, using `VAR=value'. For example: 226 + 227 + ./configure CC=/usr/local2/bin/gcc 228 + 229 + causes the specified `gcc' to be used as the C compiler (unless it is 230 + overridden in the site shell script). 231 + 232 + Unfortunately, this technique does not work for `CONFIG_SHELL' due to 233 + an Autoconf bug. Until the bug is fixed you can use this workaround: 234 + 235 + CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash 236 + 237 + `configure' Invocation 238 + ====================== 239 + 240 + `configure' recognizes the following options to control how it 241 + operates. 242 + 243 + `--help' 244 + `-h' 245 + Print a summary of all of the options to `configure', and exit. 246 + 247 + `--help=short' 248 + `--help=recursive' 249 + Print a summary of the options unique to this package's 250 + `configure', and exit. The `short' variant lists options used 251 + only in the top level, while the `recursive' variant lists options 252 + also present in any nested packages. 253 + 254 + `--version' 255 + `-V' 256 + Print the version of Autoconf used to generate the `configure' 257 + script, and exit. 258 + 259 + `--cache-file=FILE' 260 + Enable the cache: use and save the results of the tests in FILE, 261 + traditionally `config.cache'. FILE defaults to `/dev/null' to 262 + disable caching. 263 + 264 + `--config-cache' 265 + `-C' 266 + Alias for `--cache-file=config.cache'. 267 + 268 + `--quiet' 269 + `--silent' 270 + `-q' 271 + Do not print messages saying which checks are being made. To 272 + suppress all normal output, redirect it to `/dev/null' (any error 273 + messages will still be shown). 274 + 275 + `--srcdir=DIR' 276 + Look for the package's source code in directory DIR. Usually 277 + `configure' can determine that directory automatically. 278 + 279 + `--prefix=DIR' 280 + Use DIR as the installation prefix. *Note Installation Names:: 281 + for more details, including other options available for fine-tuning 282 + the installation locations. 283 + 284 + `--no-create' 285 + `-n' 286 + Run the configure checks, but stop before creating any output 287 + files. 288 + 289 + `configure' also accepts some other, not widely useful, options. Run 290 + `configure --help' for more details. 291 + 1 292 Installation Instructions 2 293 ************************* 3 294
+20 -30
app/xmore/Makefile.am
··· 21 21 22 22 bin_PROGRAMS = xmore 23 23 24 - xmore_CFLAGS = $(XMORE_CFLAGS) -DXMORE 24 + AM_CFLAGS = $(XMORE_CFLAGS) -DXMORE $(CWARNFLAGS) 25 25 xmore_LDADD = $(XMORE_LIBS) 26 26 27 27 xmore_SOURCES = \ 28 28 xmore.c \ 29 29 xmore.h 30 - 31 - if XAW_USE_XPRINT 32 - xmore_CFLAGS += -DUSE_XPRINT 33 - 34 - xmore_SOURCES += \ 35 - print.c \ 36 - printdialog.c \ 37 - printdialog.h \ 38 - printdialogprivates.h \ 39 - print.h 40 - endif 41 30 42 31 appman_PRE = \ 43 32 xmore.man 44 33 45 - # App default files (*.ad) 34 + # App default files 35 + DISTCHECK_CONFIGURE_FLAGS = --with-appdefaultdir=\$${datadir}/X11/app-defaults 46 36 47 37 appdefaultdir = @appdefaultdir@ 48 38 49 - 50 - APPDEFAULTFILES = \ 51 - XMore 52 - 53 - SUFFIXES = .ad 54 - 55 - .ad: 56 - cp $< $@ 57 - 58 - appdefault_DATA = $(APPDEFAULTFILES) 59 - 60 - EXTRA_DIST = $(APPDEFAULTFILES:%=%.ad) 61 - 62 - CLEANFILES = $(APPDEFAULTFILES) 39 + dist_appdefault_DATA = \ 40 + app-defaults/XMore 63 41 64 - EXTRA_DIST += xmore.sgml 42 + EXTRA_DIST = xmore.sgml 65 43 66 44 appmandir = $(APP_MAN_DIR) 67 45 68 46 appman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@) 69 47 70 48 EXTRA_DIST += $(appman_PRE) 71 - CLEANFILES += $(appman_DATA) 49 + MAINTAINERCLEANFILES = ChangeLog INSTALL 50 + CLEANFILES = $(appman_DATA) 72 51 73 52 SED = sed 74 53 ··· 89 68 -e 's|__miscmansuffix__|$(MISC_MAN_SUFFIX)|g' \ 90 69 -e 's|__filemansuffix__|$(FILE_MAN_SUFFIX)|g' 91 70 92 - SUFFIXES += .$(APP_MAN_SUFFIX) .man 71 + SUFFIXES = .$(APP_MAN_SUFFIX) .man 93 72 94 73 .man.$(APP_MAN_SUFFIX): 95 74 sed $(MAN_SUBSTS) < $< > $@ 75 + 76 + 77 + .PHONY: ChangeLog INSTALL 78 + 79 + INSTALL: 80 + $(INSTALL_CMD) 81 + 82 + ChangeLog: 83 + $(CHANGELOG_CMD) 84 + 85 + dist-hook: ChangeLog INSTALL
+93 -126
app/xmore/Makefile.in
··· 59 59 build_triplet = @build@ 60 60 host_triplet = @host@ 61 61 bin_PROGRAMS = xmore$(EXEEXT) 62 - @XAW_USE_XPRINT_TRUE@am__append_1 = -DUSE_XPRINT 63 - @XAW_USE_XPRINT_TRUE@am__append_2 = \ 64 - @XAW_USE_XPRINT_TRUE@ print.c \ 65 - @XAW_USE_XPRINT_TRUE@ printdialog.c \ 66 - @XAW_USE_XPRINT_TRUE@ printdialog.h \ 67 - @XAW_USE_XPRINT_TRUE@ printdialogprivates.h \ 68 - @XAW_USE_XPRINT_TRUE@ print.h 69 - 70 - DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ 71 - $(srcdir)/Makefile.in $(srcdir)/config.h.in \ 72 - $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \ 73 - compile config.guess config.sub depcomp install-sh missing \ 74 - mkinstalldirs 62 + DIST_COMMON = README $(am__configure_deps) $(dist_appdefault_DATA) \ 63 + $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ 64 + $(srcdir)/config.h.in $(top_srcdir)/configure AUTHORS COPYING \ 65 + ChangeLog INSTALL NEWS config.guess config.sub depcomp \ 66 + install-sh missing 75 67 subdir = . 76 68 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 77 69 am__aclocal_m4_deps = $(top_srcdir)/configure.ac ··· 79 71 $(ACLOCAL_M4) 80 72 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ 81 73 configure.lineno configure.status.lineno 82 - mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs 74 + mkinstalldirs = $(SHELL) $(install_sh) -d 83 75 CONFIG_HEADER = config.h 84 76 CONFIG_CLEAN_FILES = 85 - am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(appdefaultdir)" \ 86 - "$(DESTDIR)$(appmandir)" 77 + am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(appmandir)" \ 78 + "$(DESTDIR)$(appdefaultdir)" 87 79 binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) 88 80 PROGRAMS = $(bin_PROGRAMS) 89 - am__xmore_SOURCES_DIST = xmore.c xmore.h print.c printdialog.c \ 90 - printdialog.h printdialogprivates.h print.h 91 - @XAW_USE_XPRINT_TRUE@am__objects_1 = xmore-print.$(OBJEXT) \ 92 - @XAW_USE_XPRINT_TRUE@ xmore-printdialog.$(OBJEXT) 93 - am_xmore_OBJECTS = xmore-xmore.$(OBJEXT) $(am__objects_1) 81 + am_xmore_OBJECTS = xmore.$(OBJEXT) 94 82 xmore_OBJECTS = $(am_xmore_OBJECTS) 95 83 am__DEPENDENCIES_1 = 96 84 xmore_DEPENDENCIES = $(am__DEPENDENCIES_1) ··· 102 90 CCLD = $(CC) 103 91 LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ 104 92 SOURCES = $(xmore_SOURCES) 105 - DIST_SOURCES = $(am__xmore_SOURCES_DIST) 93 + DIST_SOURCES = $(xmore_SOURCES) 106 94 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; 107 95 am__vpath_adj = case $$p in \ 108 96 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ 109 97 *) f=$$p;; \ 110 98 esac; 111 99 am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; 112 - appdefaultDATA_INSTALL = $(INSTALL_DATA) 113 100 appmanDATA_INSTALL = $(INSTALL_DATA) 114 - DATA = $(appdefault_DATA) $(appman_DATA) 101 + dist_appdefaultDATA_INSTALL = $(INSTALL_DATA) 102 + DATA = $(appman_DATA) $(dist_appdefault_DATA) 115 103 ETAGS = etags 116 104 CTAGS = ctags 117 105 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ··· 131 119 AMDEP_FALSE = @AMDEP_FALSE@ 132 120 AMDEP_TRUE = @AMDEP_TRUE@ 133 121 AMTAR = @AMTAR@ 122 + AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ 134 123 APPDEFS_CFLAGS = @APPDEFS_CFLAGS@ 135 124 APPDEFS_LIBS = @APPDEFS_LIBS@ 136 125 APP_MAN_DIR = @APP_MAN_DIR@ ··· 142 131 CC = @CC@ 143 132 CCDEPMODE = @CCDEPMODE@ 144 133 CFLAGS = @CFLAGS@ 134 + CHANGELOG_CMD = @CHANGELOG_CMD@ 135 + CPP = @CPP@ 145 136 CPPFLAGS = @CPPFLAGS@ 137 + CWARNFLAGS = @CWARNFLAGS@ 146 138 CYGPATH_W = @CYGPATH_W@ 147 139 DEFS = @DEFS@ 148 140 DEPDIR = @DEPDIR@ ··· 151 143 ECHO_C = @ECHO_C@ 152 144 ECHO_N = @ECHO_N@ 153 145 ECHO_T = @ECHO_T@ 146 + EGREP = @EGREP@ 154 147 EXEEXT = @EXEEXT@ 155 148 FILE_MAN_DIR = @FILE_MAN_DIR@ 156 149 FILE_MAN_SUFFIX = @FILE_MAN_SUFFIX@ 150 + GREP = @GREP@ 151 + INSTALL_CMD = @INSTALL_CMD@ 157 152 INSTALL_DATA = @INSTALL_DATA@ 158 153 INSTALL_PROGRAM = @INSTALL_PROGRAM@ 159 154 INSTALL_SCRIPT = @INSTALL_SCRIPT@ ··· 182 177 SET_MAKE = @SET_MAKE@ 183 178 SHELL = @SHELL@ 184 179 STRIP = @STRIP@ 185 - TMP_XAW_CFLAGS = @TMP_XAW_CFLAGS@ 186 - TMP_XAW_LIBS = @TMP_XAW_LIBS@ 187 180 VERSION = @VERSION@ 188 - XAW_USE_XPRINT_FALSE = @XAW_USE_XPRINT_FALSE@ 189 - XAW_USE_XPRINT_TRUE = @XAW_USE_XPRINT_TRUE@ 190 181 XMORE_CFLAGS = @XMORE_CFLAGS@ 191 182 XMORE_LIBS = @XMORE_LIBS@ 192 - XPRINT_UTIL_CFLAGS = @XPRINT_UTIL_CFLAGS@ 193 - XPRINT_UTIL_LIBS = @XPRINT_UTIL_LIBS@ 194 183 ac_ct_CC = @ac_ct_CC@ 195 - ac_ct_STRIP = @ac_ct_STRIP@ 196 - ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@ 197 184 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ 198 185 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ 199 186 am__include = @am__include@ ··· 201 188 am__quote = @am__quote@ 202 189 am__tar = @am__tar@ 203 190 am__untar = @am__untar@ 204 - 205 - # App default files (*.ad) 206 191 appdefaultdir = @appdefaultdir@ 207 192 bindir = @bindir@ 208 193 build = @build@ ··· 211 196 build_os = @build_os@ 212 197 build_vendor = @build_vendor@ 213 198 datadir = @datadir@ 199 + datarootdir = @datarootdir@ 200 + docdir = @docdir@ 201 + dvidir = @dvidir@ 214 202 exec_prefix = @exec_prefix@ 215 203 host = @host@ 216 204 host_alias = @host_alias@ 217 205 host_cpu = @host_cpu@ 218 206 host_os = @host_os@ 219 207 host_vendor = @host_vendor@ 208 + htmldir = @htmldir@ 220 209 includedir = @includedir@ 221 210 infodir = @infodir@ 222 211 install_sh = @install_sh@ 223 212 libdir = @libdir@ 224 213 libexecdir = @libexecdir@ 214 + localedir = @localedir@ 225 215 localstatedir = @localstatedir@ 226 216 mandir = @mandir@ 227 217 mkdir_p = @mkdir_p@ 228 218 oldincludedir = @oldincludedir@ 219 + pdfdir = @pdfdir@ 229 220 prefix = @prefix@ 230 221 program_transform_name = @program_transform_name@ 222 + psdir = @psdir@ 231 223 sbindir = @sbindir@ 232 224 sharedstatedir = @sharedstatedir@ 233 225 sysconfdir = @sysconfdir@ 234 226 target_alias = @target_alias@ 235 - xmore_CFLAGS = $(XMORE_CFLAGS) -DXMORE $(am__append_1) 227 + AM_CFLAGS = $(XMORE_CFLAGS) -DXMORE $(CWARNFLAGS) 236 228 xmore_LDADD = $(XMORE_LIBS) 237 - xmore_SOURCES = xmore.c xmore.h $(am__append_2) 229 + xmore_SOURCES = \ 230 + xmore.c \ 231 + xmore.h 232 + 238 233 appman_PRE = \ 239 234 xmore.man 240 235 241 - APPDEFAULTFILES = \ 242 - XMore 243 236 244 - SUFFIXES = .ad .$(APP_MAN_SUFFIX) .man 245 - appdefault_DATA = $(APPDEFAULTFILES) 246 - EXTRA_DIST = $(APPDEFAULTFILES:%=%.ad) xmore.sgml $(appman_PRE) 247 - CLEANFILES = $(APPDEFAULTFILES) $(appman_DATA) 237 + # App default files 238 + DISTCHECK_CONFIGURE_FLAGS = --with-appdefaultdir=\$${datadir}/X11/app-defaults 239 + dist_appdefault_DATA = \ 240 + app-defaults/XMore 241 + 242 + EXTRA_DIST = xmore.sgml $(appman_PRE) 248 243 appmandir = $(APP_MAN_DIR) 249 244 appman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@) 245 + MAINTAINERCLEANFILES = ChangeLog INSTALL 246 + CLEANFILES = $(appman_DATA) 250 247 SED = sed 251 248 252 249 # Strings to replace in man pages ··· 265 262 -e 's|__miscmansuffix__|$(MISC_MAN_SUFFIX)|g' \ 266 263 -e 's|__filemansuffix__|$(FILE_MAN_SUFFIX)|g' 267 264 265 + SUFFIXES = .$(APP_MAN_SUFFIX) .man 268 266 all: config.h 269 267 $(MAKE) $(AM_MAKEFLAGS) all-am 270 268 271 269 .SUFFIXES: 272 - .SUFFIXES: .ad .$(APP_MAN_SUFFIX) .man .c .o .obj 270 + .SUFFIXES: .$(APP_MAN_SUFFIX) .man .c .o .obj 273 271 am--refresh: 274 272 @: 275 273 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) 276 274 @for dep in $?; do \ 277 275 case '$(am__configure_deps)' in \ 278 276 *$$dep*) \ 279 - echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \ 280 - cd $(srcdir) && $(AUTOMAKE) --gnu \ 277 + echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \ 278 + cd $(srcdir) && $(AUTOMAKE) --foreign \ 281 279 && exit 0; \ 282 280 exit 1;; \ 283 281 esac; \ 284 282 done; \ 285 - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ 283 + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ 286 284 cd $(top_srcdir) && \ 287 - $(AUTOMAKE) --gnu Makefile 285 + $(AUTOMAKE) --foreign Makefile 288 286 .PRECIOUS: Makefile 289 287 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 290 288 @case '$?' in \ ··· 353 351 distclean-compile: 354 352 -rm -f *.tab.c 355 353 356 - @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmore-print.Po@am__quote@ 357 - @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmore-printdialog.Po@am__quote@ 358 - @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmore-xmore.Po@am__quote@ 354 + @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmore.Po@am__quote@ 359 355 360 356 .c.o: 361 357 @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ ··· 370 366 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ 371 367 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 372 368 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` 373 - 374 - xmore-xmore.o: xmore.c 375 - @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xmore_CFLAGS) $(CFLAGS) -MT xmore-xmore.o -MD -MP -MF "$(DEPDIR)/xmore-xmore.Tpo" -c -o xmore-xmore.o `test -f 'xmore.c' || echo '$(srcdir)/'`xmore.c; \ 376 - @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/xmore-xmore.Tpo" "$(DEPDIR)/xmore-xmore.Po"; else rm -f "$(DEPDIR)/xmore-xmore.Tpo"; exit 1; fi 377 - @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='xmore.c' object='xmore-xmore.o' libtool=no @AMDEPBACKSLASH@ 378 - @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 379 - @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xmore_CFLAGS) $(CFLAGS) -c -o xmore-xmore.o `test -f 'xmore.c' || echo '$(srcdir)/'`xmore.c 380 - 381 - xmore-xmore.obj: xmore.c 382 - @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xmore_CFLAGS) $(CFLAGS) -MT xmore-xmore.obj -MD -MP -MF "$(DEPDIR)/xmore-xmore.Tpo" -c -o xmore-xmore.obj `if test -f 'xmore.c'; then $(CYGPATH_W) 'xmore.c'; else $(CYGPATH_W) '$(srcdir)/xmore.c'; fi`; \ 383 - @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/xmore-xmore.Tpo" "$(DEPDIR)/xmore-xmore.Po"; else rm -f "$(DEPDIR)/xmore-xmore.Tpo"; exit 1; fi 384 - @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='xmore.c' object='xmore-xmore.obj' libtool=no @AMDEPBACKSLASH@ 385 - @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 386 - @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xmore_CFLAGS) $(CFLAGS) -c -o xmore-xmore.obj `if test -f 'xmore.c'; then $(CYGPATH_W) 'xmore.c'; else $(CYGPATH_W) '$(srcdir)/xmore.c'; fi` 387 - 388 - xmore-print.o: print.c 389 - @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xmore_CFLAGS) $(CFLAGS) -MT xmore-print.o -MD -MP -MF "$(DEPDIR)/xmore-print.Tpo" -c -o xmore-print.o `test -f 'print.c' || echo '$(srcdir)/'`print.c; \ 390 - @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/xmore-print.Tpo" "$(DEPDIR)/xmore-print.Po"; else rm -f "$(DEPDIR)/xmore-print.Tpo"; exit 1; fi 391 - @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='print.c' object='xmore-print.o' libtool=no @AMDEPBACKSLASH@ 392 - @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 393 - @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xmore_CFLAGS) $(CFLAGS) -c -o xmore-print.o `test -f 'print.c' || echo '$(srcdir)/'`print.c 394 - 395 - xmore-print.obj: print.c 396 - @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xmore_CFLAGS) $(CFLAGS) -MT xmore-print.obj -MD -MP -MF "$(DEPDIR)/xmore-print.Tpo" -c -o xmore-print.obj `if test -f 'print.c'; then $(CYGPATH_W) 'print.c'; else $(CYGPATH_W) '$(srcdir)/print.c'; fi`; \ 397 - @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/xmore-print.Tpo" "$(DEPDIR)/xmore-print.Po"; else rm -f "$(DEPDIR)/xmore-print.Tpo"; exit 1; fi 398 - @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='print.c' object='xmore-print.obj' libtool=no @AMDEPBACKSLASH@ 399 - @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 400 - @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xmore_CFLAGS) $(CFLAGS) -c -o xmore-print.obj `if test -f 'print.c'; then $(CYGPATH_W) 'print.c'; else $(CYGPATH_W) '$(srcdir)/print.c'; fi` 401 - 402 - xmore-printdialog.o: printdialog.c 403 - @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xmore_CFLAGS) $(CFLAGS) -MT xmore-printdialog.o -MD -MP -MF "$(DEPDIR)/xmore-printdialog.Tpo" -c -o xmore-printdialog.o `test -f 'printdialog.c' || echo '$(srcdir)/'`printdialog.c; \ 404 - @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/xmore-printdialog.Tpo" "$(DEPDIR)/xmore-printdialog.Po"; else rm -f "$(DEPDIR)/xmore-printdialog.Tpo"; exit 1; fi 405 - @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='printdialog.c' object='xmore-printdialog.o' libtool=no @AMDEPBACKSLASH@ 406 - @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 407 - @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xmore_CFLAGS) $(CFLAGS) -c -o xmore-printdialog.o `test -f 'printdialog.c' || echo '$(srcdir)/'`printdialog.c 408 - 409 - xmore-printdialog.obj: printdialog.c 410 - @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xmore_CFLAGS) $(CFLAGS) -MT xmore-printdialog.obj -MD -MP -MF "$(DEPDIR)/xmore-printdialog.Tpo" -c -o xmore-printdialog.obj `if test -f 'printdialog.c'; then $(CYGPATH_W) 'printdialog.c'; else $(CYGPATH_W) '$(srcdir)/printdialog.c'; fi`; \ 411 - @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/xmore-printdialog.Tpo" "$(DEPDIR)/xmore-printdialog.Po"; else rm -f "$(DEPDIR)/xmore-printdialog.Tpo"; exit 1; fi 412 - @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='printdialog.c' object='xmore-printdialog.obj' libtool=no @AMDEPBACKSLASH@ 413 - @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 414 - @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xmore_CFLAGS) $(CFLAGS) -c -o xmore-printdialog.obj `if test -f 'printdialog.c'; then $(CYGPATH_W) 'printdialog.c'; else $(CYGPATH_W) '$(srcdir)/printdialog.c'; fi` 415 369 uninstall-info-am: 416 - install-appdefaultDATA: $(appdefault_DATA) 417 - @$(NORMAL_INSTALL) 418 - test -z "$(appdefaultdir)" || $(mkdir_p) "$(DESTDIR)$(appdefaultdir)" 419 - @list='$(appdefault_DATA)'; for p in $$list; do \ 420 - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ 421 - f=$(am__strip_dir) \ 422 - echo " $(appdefaultDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(appdefaultdir)/$$f'"; \ 423 - $(appdefaultDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(appdefaultdir)/$$f"; \ 424 - done 425 - 426 - uninstall-appdefaultDATA: 427 - @$(NORMAL_UNINSTALL) 428 - @list='$(appdefault_DATA)'; for p in $$list; do \ 429 - f=$(am__strip_dir) \ 430 - echo " rm -f '$(DESTDIR)$(appdefaultdir)/$$f'"; \ 431 - rm -f "$(DESTDIR)$(appdefaultdir)/$$f"; \ 432 - done 433 370 install-appmanDATA: $(appman_DATA) 434 371 @$(NORMAL_INSTALL) 435 372 test -z "$(appmandir)" || $(mkdir_p) "$(DESTDIR)$(appmandir)" ··· 447 384 echo " rm -f '$(DESTDIR)$(appmandir)/$$f'"; \ 448 385 rm -f "$(DESTDIR)$(appmandir)/$$f"; \ 449 386 done 387 + install-dist_appdefaultDATA: $(dist_appdefault_DATA) 388 + @$(NORMAL_INSTALL) 389 + test -z "$(appdefaultdir)" || $(mkdir_p) "$(DESTDIR)$(appdefaultdir)" 390 + @list='$(dist_appdefault_DATA)'; for p in $$list; do \ 391 + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ 392 + f=$(am__strip_dir) \ 393 + echo " $(dist_appdefaultDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(appdefaultdir)/$$f'"; \ 394 + $(dist_appdefaultDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(appdefaultdir)/$$f"; \ 395 + done 396 + 397 + uninstall-dist_appdefaultDATA: 398 + @$(NORMAL_UNINSTALL) 399 + @list='$(dist_appdefault_DATA)'; for p in $$list; do \ 400 + f=$(am__strip_dir) \ 401 + echo " rm -f '$(DESTDIR)$(appdefaultdir)/$$f'"; \ 402 + rm -f "$(DESTDIR)$(appdefaultdir)/$$f"; \ 403 + done 450 404 451 405 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) 452 406 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ ··· 499 453 distdir: $(DISTFILES) 500 454 $(am__remove_distdir) 501 455 mkdir $(distdir) 456 + $(mkdir_p) $(distdir)/app-defaults 502 457 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ 503 458 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ 504 459 list='$(DISTFILES)'; for file in $$list; do \ ··· 525 480 || exit 1; \ 526 481 fi; \ 527 482 done 483 + $(MAKE) $(AM_MAKEFLAGS) \ 484 + top_distdir="$(top_distdir)" distdir="$(distdir)" \ 485 + dist-hook 528 486 -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ 529 487 ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ 530 488 ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ··· 626 584 check: check-am 627 585 all-am: Makefile $(PROGRAMS) $(DATA) config.h 628 586 installdirs: 629 - for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(appdefaultdir)" "$(DESTDIR)$(appmandir)"; do \ 587 + for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(appmandir)" "$(DESTDIR)$(appdefaultdir)"; do \ 630 588 test -z "$$dir" || $(mkdir_p) "$$dir"; \ 631 589 done 632 590 install: install-am ··· 654 612 maintainer-clean-generic: 655 613 @echo "This command is intended for maintainers to use" 656 614 @echo "it deletes files that may require special tools to rebuild." 615 + -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) 657 616 clean: clean-am 658 617 659 618 clean-am: clean-binPROGRAMS clean-generic mostlyclean-am ··· 675 634 676 635 info-am: 677 636 678 - install-data-am: install-appdefaultDATA install-appmanDATA 637 + install-data-am: install-appmanDATA install-dist_appdefaultDATA 679 638 680 639 install-exec-am: install-binPROGRAMS 681 640 ··· 704 663 705 664 ps-am: 706 665 707 - uninstall-am: uninstall-appdefaultDATA uninstall-appmanDATA \ 708 - uninstall-binPROGRAMS uninstall-info-am 666 + uninstall-am: uninstall-appmanDATA uninstall-binPROGRAMS \ 667 + uninstall-dist_appdefaultDATA uninstall-info-am 709 668 710 669 .PHONY: CTAGS GTAGS all all-am am--refresh check check-am clean \ 711 670 clean-binPROGRAMS clean-generic ctags dist dist-all dist-bzip2 \ 712 - dist-gzip dist-shar dist-tarZ dist-zip distcheck distclean \ 713 - distclean-compile distclean-generic distclean-hdr \ 671 + dist-gzip dist-hook dist-shar dist-tarZ dist-zip distcheck \ 672 + distclean distclean-compile distclean-generic distclean-hdr \ 714 673 distclean-tags distcleancheck distdir distuninstallcheck dvi \ 715 674 dvi-am html html-am info info-am install install-am \ 716 - install-appdefaultDATA install-appmanDATA install-binPROGRAMS \ 717 - install-data install-data-am install-exec install-exec-am \ 718 - install-info install-info-am install-man install-strip \ 719 - installcheck installcheck-am installdirs maintainer-clean \ 720 - maintainer-clean-generic mostlyclean mostlyclean-compile \ 721 - mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \ 722 - uninstall-am uninstall-appdefaultDATA uninstall-appmanDATA \ 723 - uninstall-binPROGRAMS uninstall-info-am 675 + install-appmanDATA install-binPROGRAMS install-data \ 676 + install-data-am install-dist_appdefaultDATA install-exec \ 677 + install-exec-am install-info install-info-am install-man \ 678 + install-strip installcheck installcheck-am installdirs \ 679 + maintainer-clean maintainer-clean-generic mostlyclean \ 680 + mostlyclean-compile mostlyclean-generic pdf pdf-am ps ps-am \ 681 + tags uninstall uninstall-am uninstall-appmanDATA \ 682 + uninstall-binPROGRAMS uninstall-dist_appdefaultDATA \ 683 + uninstall-info-am 724 684 725 685 726 - .ad: 727 - cp $< $@ 728 - 729 686 .man.$(APP_MAN_SUFFIX): 730 687 sed $(MAN_SUBSTS) < $< > $@ 688 + 689 + .PHONY: ChangeLog INSTALL 690 + 691 + INSTALL: 692 + $(INSTALL_CMD) 693 + 694 + ChangeLog: 695 + $(CHANGELOG_CMD) 696 + 697 + dist-hook: ChangeLog INSTALL 731 698 # Tell versions [3.59,3.63) of GNU make to not export all variables. 732 699 # Otherwise a system limit (for SysV at least) may be exceeded. 733 700 .NOEXPORT:
+25
app/xmore/README
··· 1 + xmore - plain text display program for the X Window System 2 + 3 + All questions regarding this software should be directed at the 4 + Xorg mailing list: 5 + 6 + http://lists.freedesktop.org/mailman/listinfo/xorg 7 + 8 + Please submit bug reports to the Xorg bugzilla: 9 + 10 + https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 11 + 12 + The master development code repository can be found at: 13 + 14 + git://anongit.freedesktop.org/git/xorg/app/xmore 15 + 16 + http://cgit.freedesktop.org/xorg/app/xmore 17 + 18 + For patch submission instructions, see: 19 + 20 + http://www.x.org/wiki/Development/Documentation/SubmittingPatches 21 + 22 + For more information on the git code manager, see: 23 + 24 + http://wiki.x.org/wiki/GitPage 25 +
-130
app/xmore/XMore.ad
··· 1 - ! XMore.ad 2 - 3 - ! keyboard translations 4 - *text.Translations: #override\n\ 5 - Ctrl<Key>S: no-op(RingBell)\n\ 6 - Ctrl<Key>R: no-op(RingBell)\n\ 7 - <Key>space: next-page()\n\ 8 - <Key>F: next-page()\n\ 9 - Ctrl<Key>B: previous-page()\n\ 10 - <Key>B: previous-page()\n\ 11 - <Key>K: scroll-one-line-down()\n\ 12 - <Key>Y: scroll-one-line-down()\n\ 13 - <Key>Return: scroll-one-line-up()\n\ 14 - <Key>J: scroll-one-line-up()\n\ 15 - <Key>E: scroll-one-line-up()\n\ 16 - <Key>p: print()\n\ 17 - <Key>q: quit()\n 18 - *text.baseTranslations: #override\n\ 19 - <Key>space: next-page()\n\ 20 - <Key>F: next-page()\n\ 21 - Ctrl<Key>B: previous-page()\n\ 22 - <Key>K: scroll-one-line-down()\n\ 23 - <Key>Y: scroll-one-line-down()\n\ 24 - <Key>Return: scroll-one-line-up()\n\ 25 - <Key>J: scroll-one-line-up()\n\ 26 - <Key>E: scroll-one-line-up()\n\ 27 - <Key>p: print()\n\ 28 - <Key>q: quit()\n 29 - 30 - ! tip messages 31 - *quit.tip: Quit application 32 - *print.tip: Print file 33 - 34 - ! Use "white" as background for printing 35 - *printshell*background: white 36 - 37 - ! Print dialog 38 - *printdialogshell*geometry: 600x120 39 - *printdialogshell*title: Print 40 - *printdialogshell*main*ok.fromVert: innerform 41 - *printdialogshell*main*ok.label: Print 42 - *printdialogshell*main*ok.tip: Print 43 - *printdialogshell*main*setup.fromHoriz: ok 44 - *printdialogshell*main*setup.fromVert: innerform 45 - *printdialogshell*main*setup.label: Setup... 46 - *printdialogshell*main*setup.tip: Configure print job options (page size, orientation, etc.) 47 - *printdialogshell*main*cancel.fromHoriz: setup 48 - *printdialogshell*main*cancel.fromVert: innerform 49 - *printdialogshell*main*cancel.label: Cancel 50 - *printdialogshell*main*cancel.tip: Cancel printing 51 - *printdialogshell*main*desclabel.label: Printer Description: 52 - *printdialogshell*main*desclabel.tip: Short description of printer 53 - *printdialogshell*main*desc.fromHoriz: desclabel 54 - *printdialogshell*main*desc.tip: Short description of printer 55 - *printdialogshell*main*info.fromHoriz: desc 56 - *printdialogshell*main*info.label: Printer info... 57 - *printdialogshell*main*info.tip: Display additional information about this printer 58 - *printdialogshell*main*namelabel.fromVert: desclabel 59 - *printdialogshell*main*namelabel.label: Printer Name: 60 - *printdialogshell*main*namelabel.tip: Name of selected printer 61 - *printdialogshell*main*name.fromHoriz: namelabel 62 - *printdialogshell*main*name.fromVert: desclabel 63 - *printdialogshell*main*name.tip: Name of selected printer 64 - *printdialogshell*main*selectprinter.fromHoriz: name 65 - *printdialogshell*main*selectprinter.fromVert: desclabel 66 - *printdialogshell*main*selectprinter.label: Select Printer... 67 - *printdialogshell*main*selectprinter.label: Select Printer... 68 - *printdialogshell*main*selectprinter.tip: Select a different printer 69 - *printdialogshell*main*filenamelabel.fromVert: namelabel 70 - *printdialogshell*main*filenamelabel.label: File Name: 71 - *printdialogshell*main*filenamelabel.tip: File where the output should be stored 72 - *printdialogshell*main*filename.fromHoriz: filenamelabel 73 - *printdialogshell*main*filename.fromVert: namelabel 74 - *printdialogshell*main*filename.tip: File where the output should be stored 75 - *printdialogshell*main*selectfile.fromHoriz: filename 76 - *printdialogshell*main*selectfile.fromVert: namelabel 77 - *printdialogshell*main*selectfile.label: Select File... 78 - *printdialogshell*main*selectfile.tip: Select file where the output should be stored 79 - *printdialogshell*main*printtoprinter.fromVert: filenamelabel 80 - *printdialogshell*main*printtoprinter.label: Print to Printer 81 - *printdialogshell*main*printtoprinter.tip: Send print job to printer 82 - *printdialogshell*main*printtofile.fromVert: filenamelabel 83 - *printdialogshell*main*printtofile.fromHoriz: printtoprinter 84 - *printdialogshell*main*printtofile.label: Print to File 85 - *printdialogshell*main*printtofile.tip: Save print job in a file 86 - 87 - ! Print job options dialog 88 - *printdialogshell*setup*geometry: 600x400 89 - *printdialogshell*setup*title: Print: Print job options 90 - *printdialogshell*setup*ok.fromVert: list 91 - *printdialogshell*setup*ok.label: OK 92 - *printdialogshell*setup*ok.tip: Commit changes 93 - *printdialogshell*setup*cancel.fromHoriz: ok 94 - *printdialogshell*setup*cancel.fromVert: list 95 - *printdialogshell*setup*cancel.label: Cancel 96 - *printdialogshell*setup*cancel.tip: Cancel and reset to defaults 97 - *printdialogshell*setup*paperlist.tip: Select paper size 98 - *printdialogshell*setup*resolutionlist.fromHoriz: paperlist 99 - *printdialogshell*setup*resolutionlist.tip: Select page resolution 100 - *printdialogshell*setup*orientationlist.fromHoriz: resolutionlist 101 - *printdialogshell*setup*orientationlist.tip: Select page orientation 102 - *printdialogshell*setup*plexlist.fromHoriz: orientationlist 103 - *printdialogshell*setup*plexlist.tip: Select page plex mode (simplex, duplex, etc.) 104 - *printdialogshell*setup*colorspacelist.fromHoriz: plexlist 105 - *printdialogshell*setup*colorspacelist.tip: Select color space (color, grayscale, CYMK, etc.) 106 - *printdialogshell*setup*jobcopieslabel.fromVert: paperlist 107 - *printdialogshell*setup*jobcopieslabel.tip: Set number of job copies 108 - *printdialogshell*setup*jobcopieslabel.label: Job Copies: 109 - *printdialogshell*setup*jobcopies.fromHoriz: jobcopieslabel 110 - *printdialogshell*setup*jobcopies.fromVert: paperlist 111 - *printdialogshell*setup*jobcopies.tip: Set number of job copies 112 - 113 - ! Printer selection 114 - *printdialogshell*printerselection*geometry: 400x150 115 - *printdialogshell*printerselection*title: Print: Select printer 116 - *printdialogshell*printerselection*ok.fromVert: list 117 - *printdialogshell*printerselection*ok.label: OK 118 - *printdialogshell*printerselection*ok.tip: Switch printer 119 - *printdialogshell*printerselection*cancel.fromHoriz: ok 120 - *printdialogshell*printerselection*cancel.fromVert: list 121 - *printdialogshell*printerselection*cancel.label: Cancel 122 - *printdialogshell*printerselection*cancel.tip: Cancel printer selection 123 - *printdialogshell*printerselection*list.tip: Select printer name from list 124 - 125 - ! Select job file 126 - *printdialogshell*selectfile*geometry: 400x80 127 - *printdialogshell*selectfile*title: Print: Select job file 128 - *printdialogshell*selectfile*dialog.label: Select Filename: 129 - 130 - ! EOF.
+675 -120
app/xmore/aclocal.m4
··· 740 740 rm -f confinc confmf 741 741 ]) 742 742 743 + # Copyright (C) 1999, 2000, 2001, 2003, 2005 Free Software Foundation, Inc. 744 + # 745 + # This file is free software; the Free Software Foundation 746 + # gives unlimited permission to copy and/or distribute it, 747 + # with or without modifications, as long as this notice is preserved. 748 + 749 + # serial 3 750 + 751 + # AM_PROG_CC_C_O 752 + # -------------- 753 + # Like AC_PROG_CC_C_O, but changed for automake. 754 + AC_DEFUN([AM_PROG_CC_C_O], 755 + [AC_REQUIRE([AC_PROG_CC_C_O])dnl 756 + AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 757 + # FIXME: we rely on the cache variable name because 758 + # there is no other way. 759 + set dummy $CC 760 + ac_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']` 761 + if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then 762 + # Losing compiler, so override with the script. 763 + # FIXME: It is wrong to rewrite CC. 764 + # But if we don't then we get into trouble of one sort or another. 765 + # A longer-term fix would be to have automake use am__CC in this case, 766 + # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 767 + CC="$am_aux_dir/compile $CC" 768 + fi 769 + ]) 770 + 743 771 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 744 772 745 773 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005 ··· 995 1023 AC_SUBST([am__untar]) 996 1024 ]) # _AM_PROG_TAR 997 1025 998 - dnl Copyright 2005 Red Hat, Inc 999 - dnl 1000 - dnl Permission to use, copy, modify, distribute, and sell this software and its 1001 - dnl documentation for any purpose is hereby granted without fee, provided that 1002 - dnl the above copyright notice appear in all copies and that both that 1003 - dnl copyright notice and this permission notice appear in supporting 1004 - dnl documentation. 1005 - dnl 1006 - dnl The above copyright notice and this permission notice shall be included 1007 - dnl in all copies or substantial portions of the Software. 1008 - dnl 1009 - dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 1010 - dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 1011 - dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 1012 - dnl IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR 1013 - dnl OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 1014 - dnl ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 1015 - dnl OTHER DEALINGS IN THE SOFTWARE. 1016 - dnl 1017 - dnl Except as contained in this notice, the name of the copyright holders shall 1018 - dnl not be used in advertising or otherwise to promote the sale, use or 1019 - dnl other dealings in this Software without prior written authorization 1020 - dnl from the copyright holders. 1021 - dnl 1022 - 1023 - # XAW_CHECK_XPRINT_SUPPORT() 1024 - # -------------------------- 1025 - # Adds --enable/disable-xprint and selects the appropriate version of the Xaw 1026 - # library. If neither --enable-xprint nor --disable-xprint are given, 1027 - # the presence of an Xaw with Xprint support will be auto detected 1028 - 1029 - AC_DEFUN([XAW_CHECK_XPRINT_SUPPORT],[ 1030 - AC_ARG_ENABLE(xprint, AC_HELP_STRING([--enable-xprint], [Enable XPrint support]), 1031 - [use_xprint=$enableval],[use_xprint=auto]) 1032 - if test "x$use_xprint" = "xyes"; then 1033 - TMP_CHECK1=xaw8 1034 - TMP_CHECK2= 1035 - xaw_use_xprint=yes 1036 - elif test "x$use_xprint" = "xno"; then 1037 - TMP_CHECK1=xaw7 1038 - TMP_CHECK2= 1039 - xaw_use_xprint=no 1040 - else 1041 - TMP_CHECK1=xaw8 1042 - TMP_CHECK2=xaw7 1043 - xaw_use_xprint=yes 1044 - fi 1045 - 1046 - PKG_CHECK_MODULES(TMP_XAW, $TMP_CHECK1, success=yes, success=no) 1047 - if [[ ! -z $TMP_CHECK2 ]] ; then 1048 - if test $success = no ; then 1049 - PKG_CHECK_MODULES(TMP_XAW, $TMP_CHECK2, success=yes, success=no) 1050 - xaw_use_xprint=no 1051 - fi 1052 - fi 1053 - 1054 - if test "x$success" = "xyes"; then 1055 - $1_CFLAGS=$TMP_XAW_CFLAGS 1056 - $1_LIBS=$TMP_XAW_LIBS 1057 - 1058 - AM_CONDITIONAL([XAW_USE_XPRINT], [test "x$xaw_use_xprint" = "xyes"]) 1059 - else 1060 - AC_MSG_ERROR([No suitable version of Xaw found]) 1061 - fi 1062 - ]) 1063 - 1026 + dnl xorg-macros.m4. Generated from xorg-macros.m4.in xorgversion.m4 by configure. 1064 1027 dnl 1065 1028 dnl Copyright 2005-2006 Sun Microsystems, Inc. All rights reserved. 1066 1029 dnl 1067 1030 dnl Permission is hereby granted, free of charge, to any person obtaining a 1068 - dnl copy of this software and associated documentation files (the 1069 - dnl "Software"), to deal in the Software without restriction, including 1070 - dnl without limitation the rights to use, copy, modify, merge, publish, 1071 - dnl distribute, and/or sell copies of the Software, and to permit persons 1072 - dnl to whom the Software is furnished to do so, provided that the above 1073 - dnl copyright notice(s) and this permission notice appear in all copies of 1074 - dnl the Software and that both the above copyright notice(s) and this 1075 - dnl permission notice appear in supporting documentation. 1031 + dnl copy of this software and associated documentation files (the "Software"), 1032 + dnl to deal in the Software without restriction, including without limitation 1033 + dnl the rights to use, copy, modify, merge, publish, distribute, sublicense, 1034 + dnl and/or sell copies of the Software, and to permit persons to whom the 1035 + dnl Software is furnished to do so, subject to the following conditions: 1076 1036 dnl 1077 - dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 1078 - dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 1079 - dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT 1080 - dnl OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 1081 - dnl HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL 1082 - dnl INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING 1083 - dnl FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, 1084 - dnl NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION 1085 - dnl WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 1037 + dnl The above copyright notice and this permission notice (including the next 1038 + dnl paragraph) shall be included in all copies or substantial portions of the 1039 + dnl Software. 1086 1040 dnl 1087 - dnl Except as contained in this notice, the name of a copyright holder 1088 - dnl shall not be used in advertising or otherwise to promote the sale, use 1089 - dnl or other dealings in this Software without prior written authorization 1090 - dnl of the copyright holder. 1041 + dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 1042 + dnl IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 1043 + dnl FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 1044 + dnl THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 1045 + dnl LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 1046 + dnl FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 1047 + dnl DEALINGS IN THE SOFTWARE. 1091 1048 1092 1049 # XORG_MACROS_VERSION(required-version) 1093 1050 # ------------------------------------- ··· 1097 1054 # your configure.ac with the minimum required version, such as: 1098 1055 # XORG_MACROS_VERSION(1.1) 1099 1056 # 1100 - # To force at least a version with this macro defined, also add: 1101 - # m4_ifndef([XORG_MACROS_VERSION], [AC_FATAL([must install xorg-macros 1.1 or later before running autoconf/autogen])]) 1057 + # To ensure that this macro is defined, also add: 1058 + # m4_ifndef([XORG_MACROS_VERSION], 1059 + # [m4_fatal([must install xorg-macros 1.1 or later before running autoconf/autogen])]) 1102 1060 # 1103 1061 # 1104 1062 # See the "minimum version" comment for each macro you use to see what 1105 1063 # version you require. 1106 - AC_DEFUN([XORG_MACROS_VERSION],[ 1107 - [XORG_MACROS_needed_version=$1 1108 - XORG_MACROS_needed_major=`echo $XORG_MACROS_needed_version | sed 's/\..*$//'` 1109 - XORG_MACROS_needed_minor=`echo $XORG_MACROS_needed_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`] 1110 - AC_MSG_CHECKING([if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}]) 1111 - [XORG_MACROS_version=1.1.5 1112 - XORG_MACROS_major=`echo $XORG_MACROS_version | sed 's/\..*$//'` 1113 - XORG_MACROS_minor=`echo $XORG_MACROS_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`] 1114 - if test $XORG_MACROS_major -ne $XORG_MACROS_needed_major ; then 1115 - AC_MSG_ERROR([configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x]) 1116 - fi 1117 - if test $XORG_MACROS_minor -lt $XORG_MACROS_needed_minor ; then 1118 - AC_MSG_ERROR([configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.${XORG_MACROS_minor}.0 or newer]) 1119 - fi 1120 - AC_MSG_RESULT([yes, $XORG_MACROS_version]) 1064 + m4_defun([XORG_MACROS_VERSION],[ 1065 + m4_define([vers_have], [1.6.1]) 1066 + m4_define([maj_have], m4_substr(vers_have, 0, m4_index(vers_have, [.]))) 1067 + m4_define([maj_needed], m4_substr([$1], 0, m4_index([$1], [.]))) 1068 + m4_if(m4_cmp(maj_have, maj_needed), 0,, 1069 + [m4_fatal([xorg-macros major version ]maj_needed[ is required but ]vers_have[ found])]) 1070 + m4_if(m4_version_compare(vers_have, [$1]), -1, 1071 + [m4_fatal([xorg-macros version $1 or higher is required but ]vers_have[ found])]) 1072 + m4_undefine([vers_have]) 1073 + m4_undefine([maj_have]) 1074 + m4_undefine([maj_needed]) 1121 1075 ]) # XORG_MACROS_VERSION 1122 1076 1123 1077 # XORG_PROG_RAWCPP() ··· 1142 1096 if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 1143 1097 RAWCPPFLAGS=-undef 1144 1098 AC_MSG_RESULT([yes]) 1099 + # under Cygwin unix is still defined even with -undef 1100 + elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 1101 + RAWCPPFLAGS="-undef -ansi" 1102 + AC_MSG_RESULT([yes, with -ansi]) 1145 1103 else 1146 1104 AC_MSG_ERROR([${RAWCPP} defines unix with or without -undef. I don't know what to do.]) 1147 1105 fi ··· 1254 1212 # Whether or not the necessary tools and files are found can be checked 1255 1213 # with the AM_CONDITIONAL "BUILD_LINUXDOC" 1256 1214 AC_DEFUN([XORG_CHECK_LINUXDOC],[ 1257 - XORG_SGML_PATH=$prefix/share/sgml 1215 + if test x$XORG_SGML_PATH = x ; then 1216 + XORG_SGML_PATH=$prefix/share/sgml 1217 + fi 1258 1218 HAVE_DEFS_ENT= 1259 1219 1260 - AC_CHECK_FILE([$XORG_SGML_PATH/X11/defs.ent], [HAVE_DEFS_ENT=yes]) 1220 + if test x"$cross_compiling" = x"yes" ; then 1221 + HAVE_DEFS_ENT=no 1222 + else 1223 + AC_CHECK_FILE([$XORG_SGML_PATH/X11/defs.ent], [HAVE_DEFS_ENT=yes]) 1224 + fi 1261 1225 1262 1226 AC_PATH_PROG(LINUXDOC, linuxdoc) 1263 1227 AC_PATH_PROG(PS2PDF, ps2pdf) 1264 1228 1265 - AC_MSG_CHECKING([Whether to build documentation]) 1229 + AC_MSG_CHECKING([whether to build documentation]) 1266 1230 1267 1231 if test x$HAVE_DEFS_ENT != x && test x$LINUXDOC != x ; then 1268 1232 BUILDDOC=yes ··· 1274 1238 1275 1239 AC_MSG_RESULT([$BUILDDOC]) 1276 1240 1277 - AC_MSG_CHECKING([Whether to build pdf documentation]) 1241 + AC_MSG_CHECKING([whether to build pdf documentation]) 1278 1242 1279 1243 if test x$PS2PDF != x && test x$BUILD_PDFDOC != xno; then 1280 1244 BUILDPDFDOC=yes ··· 1306 1270 # indicates whether the necessary tools and files are found and, if set, 1307 1271 # $(MAKE_XXX) blah.sgml will produce blah.xxx. 1308 1272 AC_DEFUN([XORG_CHECK_DOCBOOK],[ 1309 - XORG_SGML_PATH=$prefix/share/sgml 1273 + if test x$XORG_SGML_PATH = x ; then 1274 + XORG_SGML_PATH=$prefix/share/sgml 1275 + fi 1310 1276 HAVE_DEFS_ENT= 1311 1277 BUILDTXTDOC=no 1312 1278 BUILDPDFDOC=no ··· 1320 1286 AC_PATH_PROG(DOCBOOKHTML, docbook2html) 1321 1287 AC_PATH_PROG(DOCBOOKTXT, docbook2txt) 1322 1288 1323 - AC_MSG_CHECKING([Whether to build text documentation]) 1289 + AC_MSG_CHECKING([whether to build text documentation]) 1324 1290 if test x$HAVE_DEFS_ENT != x && test x$DOCBOOKTXT != x && 1325 1291 test x$BUILD_TXTDOC != xno; then 1326 1292 BUILDTXTDOC=yes ··· 1328 1294 AM_CONDITIONAL(BUILD_TXTDOC, [test x$BUILDTXTDOC = xyes]) 1329 1295 AC_MSG_RESULT([$BUILDTXTDOC]) 1330 1296 1331 - AC_MSG_CHECKING([Whether to build PDF documentation]) 1297 + AC_MSG_CHECKING([whether to build PDF documentation]) 1332 1298 if test x$HAVE_DEFS_ENT != x && test x$DOCBOOKPDF != x && 1333 1299 test x$BUILD_PDFDOC != xno; then 1334 1300 BUILDPDFDOC=yes ··· 1336 1302 AM_CONDITIONAL(BUILD_PDFDOC, [test x$BUILDPDFDOC = xyes]) 1337 1303 AC_MSG_RESULT([$BUILDPDFDOC]) 1338 1304 1339 - AC_MSG_CHECKING([Whether to build PostScript documentation]) 1305 + AC_MSG_CHECKING([whether to build PostScript documentation]) 1340 1306 if test x$HAVE_DEFS_ENT != x && test x$DOCBOOKPS != x && 1341 1307 test x$BUILD_PSDOC != xno; then 1342 1308 BUILDPSDOC=yes ··· 1344 1310 AM_CONDITIONAL(BUILD_PSDOC, [test x$BUILDPSDOC = xyes]) 1345 1311 AC_MSG_RESULT([$BUILDPSDOC]) 1346 1312 1347 - AC_MSG_CHECKING([Whether to build HTML documentation]) 1313 + AC_MSG_CHECKING([whether to build HTML documentation]) 1348 1314 if test x$HAVE_DEFS_ENT != x && test x$DOCBOOKHTML != x && 1349 1315 test x$BUILD_HTMLDOC != xno; then 1350 1316 BUILDHTMLDOC=yes ··· 1363 1329 AC_SUBST(MAKE_HTML) 1364 1330 ]) # XORG_CHECK_DOCBOOK 1365 1331 1332 + # XORG_WITH_XMLTO([MIN-VERSION]) 1333 + # ---------------- 1334 + # Minimum version: 1.5.0 1335 + # 1336 + # Documentation tools are not always available on all platforms and sometimes 1337 + # not at the appropriate level. This macro enables a module to test for the 1338 + # presence of the tool and obtain it's path in separate variables. Coupled with 1339 + # the --with-xmlto option, it allows maximum flexibilty in making decisions 1340 + # as whether or not to use the xmlto package. 1341 + # 1342 + # Interface to module: 1343 + # HAVE_XMLTO: used in makefiles to conditionally generate documentation 1344 + # XMLTO: returns the path of the xmlto program found 1345 + # returns the path set by the user in the environment 1346 + # --with-xmlto: 'yes' user instructs the module to use xmlto 1347 + # 'no' user instructs the module not to use xmlto 1348 + # 1349 + # If the user sets the value of XMLTO, AC_PATH_PROG skips testing the path. 1350 + # 1351 + AC_DEFUN([XORG_WITH_XMLTO],[ 1352 + AC_ARG_VAR([XMLTO], [Path to xmlto command]) 1353 + AC_ARG_WITH(xmlto, 1354 + AS_HELP_STRING([--with-xmlto], 1355 + [Use xmlto to regenerate documentation (default: yes, if installed)]), 1356 + [use_xmlto=$withval], [use_xmlto=auto]) 1357 + 1358 + if test "x$use_xmlto" = x"auto"; then 1359 + AC_PATH_PROG([XMLTO], [xmlto]) 1360 + if test "x$XMLTO" = "x"; then 1361 + AC_MSG_WARN([xmlto not found - documentation targets will be skipped]) 1362 + have_xmlto=no 1363 + else 1364 + have_xmlto=yes 1365 + fi 1366 + elif test "x$use_xmlto" = x"yes" ; then 1367 + AC_PATH_PROG([XMLTO], [xmlto]) 1368 + if test "x$XMLTO" = "x"; then 1369 + AC_MSG_ERROR([--with-xmlto=yes specified but xmlto not found in PATH]) 1370 + fi 1371 + have_xmlto=yes 1372 + elif test "x$use_xmlto" = x"no" ; then 1373 + if test "x$XMLTO" != "x"; then 1374 + AC_MSG_WARN([ignoring XMLTO environment variable since --with-xmlto=no was specified]) 1375 + fi 1376 + have_xmlto=no 1377 + else 1378 + AC_MSG_ERROR([--with-xmlto expects 'yes' or 'no']) 1379 + fi 1380 + m4_ifval([$1], 1381 + [if test "$have_xmlto" = yes; then 1382 + # scrape the xmlto version 1383 + AC_MSG_CHECKING([the xmlto version]) 1384 + xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 1385 + AC_MSG_RESULT([$xmlto_version]) 1386 + AS_VERSION_COMPARE([$xmlto_version], [$1], 1387 + [if test "x$use_xmlto" = xauto; then 1388 + AC_MSG_WARN([xmlto version $xmlto_version found, but $1 needed]) 1389 + have_xmlto=no 1390 + else 1391 + AC_MSG_ERROR([xmlto version $xmlto_version found, but $1 needed]) 1392 + fi]) 1393 + fi]) 1394 + AM_CONDITIONAL([HAVE_XMLTO], [test "$have_xmlto" = yes]) 1395 + ]) # XORG_WITH_XMLTO 1396 + 1397 + # XORG_WITH_ASCIIDOC([MIN-VERSION]) 1398 + # ---------------- 1399 + # Minimum version: 1.5.0 1400 + # 1401 + # Documentation tools are not always available on all platforms and sometimes 1402 + # not at the appropriate level. This macro enables a module to test for the 1403 + # presence of the tool and obtain it's path in separate variables. Coupled with 1404 + # the --with-asciidoc option, it allows maximum flexibilty in making decisions 1405 + # as whether or not to use the asciidoc package. 1406 + # 1407 + # Interface to module: 1408 + # HAVE_ASCIIDOC: used in makefiles to conditionally generate documentation 1409 + # ASCIIDOC: returns the path of the asciidoc program found 1410 + # returns the path set by the user in the environment 1411 + # --with-asciidoc: 'yes' user instructs the module to use asciidoc 1412 + # 'no' user instructs the module not to use asciidoc 1413 + # 1414 + # If the user sets the value of ASCIIDOC, AC_PATH_PROG skips testing the path. 1415 + # 1416 + AC_DEFUN([XORG_WITH_ASCIIDOC],[ 1417 + AC_ARG_VAR([ASCIIDOC], [Path to asciidoc command]) 1418 + AC_ARG_WITH(asciidoc, 1419 + AS_HELP_STRING([--with-asciidoc], 1420 + [Use asciidoc to regenerate documentation (default: yes, if installed)]), 1421 + [use_asciidoc=$withval], [use_asciidoc=auto]) 1422 + 1423 + if test "x$use_asciidoc" = x"auto"; then 1424 + AC_PATH_PROG([ASCIIDOC], [asciidoc]) 1425 + if test "x$ASCIIDOC" = "x"; then 1426 + AC_MSG_WARN([asciidoc not found - documentation targets will be skipped]) 1427 + have_asciidoc=no 1428 + else 1429 + have_asciidoc=yes 1430 + fi 1431 + elif test "x$use_asciidoc" = x"yes" ; then 1432 + AC_PATH_PROG([ASCIIDOC], [asciidoc]) 1433 + if test "x$ASCIIDOC" = "x"; then 1434 + AC_MSG_ERROR([--with-asciidoc=yes specified but asciidoc not found in PATH]) 1435 + fi 1436 + have_asciidoc=yes 1437 + elif test "x$use_asciidoc" = x"no" ; then 1438 + if test "x$ASCIIDOC" != "x"; then 1439 + AC_MSG_WARN([ignoring ASCIIDOC environment variable since --with-asciidoc=no was specified]) 1440 + fi 1441 + have_asciidoc=no 1442 + else 1443 + AC_MSG_ERROR([--with-asciidoc expects 'yes' or 'no']) 1444 + fi 1445 + m4_ifval([$1], 1446 + [if test "$have_asciidoc" = yes; then 1447 + # scrape the asciidoc version 1448 + AC_MSG_CHECKING([the asciidoc version]) 1449 + asciidoc_version=`$ASCIIDOC --version 2>/dev/null | cut -d' ' -f2` 1450 + AC_MSG_RESULT([$asciidoc_version]) 1451 + AS_VERSION_COMPARE([$asciidoc_version], [$1], 1452 + [if test "x$use_asciidoc" = xauto; then 1453 + AC_MSG_WARN([asciidoc version $asciidoc_version found, but $1 needed]) 1454 + have_asciidoc=no 1455 + else 1456 + AC_MSG_ERROR([asciidoc version $asciidoc_version found, but $1 needed]) 1457 + fi]) 1458 + fi]) 1459 + AM_CONDITIONAL([HAVE_ASCIIDOC], [test "$have_asciidoc" = yes]) 1460 + ]) # XORG_WITH_ASCIIDOC 1461 + 1462 + # XORG_WITH_DOXYGEN([MIN-VERSION]) 1463 + # -------------------------------- 1464 + # Minimum version: 1.5.0 1465 + # 1466 + # Documentation tools are not always available on all platforms and sometimes 1467 + # not at the appropriate level. This macro enables a module to test for the 1468 + # presence of the tool and obtain it's path in separate variables. Coupled with 1469 + # the --with-doxygen option, it allows maximum flexibilty in making decisions 1470 + # as whether or not to use the doxygen package. 1471 + # 1472 + # Interface to module: 1473 + # HAVE_DOXYGEN: used in makefiles to conditionally generate documentation 1474 + # DOXYGEN: returns the path of the doxygen program found 1475 + # returns the path set by the user in the environment 1476 + # --with-doxygen: 'yes' user instructs the module to use doxygen 1477 + # 'no' user instructs the module not to use doxygen 1478 + # 1479 + # If the user sets the value of DOXYGEN, AC_PATH_PROG skips testing the path. 1480 + # 1481 + AC_DEFUN([XORG_WITH_DOXYGEN],[ 1482 + AC_ARG_VAR([DOXYGEN], [Path to doxygen command]) 1483 + AC_ARG_WITH(doxygen, 1484 + AS_HELP_STRING([--with-doxygen], 1485 + [Use doxygen to regenerate documentation (default: yes, if installed)]), 1486 + [use_doxygen=$withval], [use_doxygen=auto]) 1487 + 1488 + if test "x$use_doxygen" = x"auto"; then 1489 + AC_PATH_PROG([DOXYGEN], [doxygen]) 1490 + if test "x$DOXYGEN" = "x"; then 1491 + AC_MSG_WARN([doxygen not found - documentation targets will be skipped]) 1492 + have_doxygen=no 1493 + else 1494 + have_doxygen=yes 1495 + fi 1496 + elif test "x$use_doxygen" = x"yes" ; then 1497 + AC_PATH_PROG([DOXYGEN], [doxygen]) 1498 + if test "x$DOXYGEN" = "x"; then 1499 + AC_MSG_ERROR([--with-doxygen=yes specified but doxygen not found in PATH]) 1500 + fi 1501 + have_doxygen=yes 1502 + elif test "x$use_doxygen" = x"no" ; then 1503 + if test "x$DOXYGEN" != "x"; then 1504 + AC_MSG_WARN([ignoring DOXYGEN environment variable since --with-doxygen=no was specified]) 1505 + fi 1506 + have_doxygen=no 1507 + else 1508 + AC_MSG_ERROR([--with-doxygen expects 'yes' or 'no']) 1509 + fi 1510 + m4_ifval([$1], 1511 + [if test "$have_doxygen" = yes; then 1512 + # scrape the doxygen version 1513 + AC_MSG_CHECKING([the doxygen version]) 1514 + doxygen_version=`$DOXYGEN --version 2>/dev/null` 1515 + AC_MSG_RESULT([$doxygen_version]) 1516 + AS_VERSION_COMPARE([$doxygen_version], [$1], 1517 + [if test "x$use_doxygen" = xauto; then 1518 + AC_MSG_WARN([doxygen version $doxygen_version found, but $1 needed]) 1519 + have_doxygen=no 1520 + else 1521 + AC_MSG_ERROR([doxygen version $doxygen_version found, but $1 needed]) 1522 + fi]) 1523 + fi]) 1524 + AM_CONDITIONAL([HAVE_DOXYGEN], [test "$have_doxygen" = yes]) 1525 + ]) # XORG_WITH_DOXYGEN 1526 + 1527 + # XORG_WITH_GROFF 1528 + # ---------------- 1529 + # Minimum version: 1.6.0 1530 + # 1531 + # Documentation tools are not always available on all platforms and sometimes 1532 + # not at the appropriate level. This macro enables a module to test for the 1533 + # presence of the tool and obtain it's path in separate variables. Coupled with 1534 + # the --with-groff option, it allows maximum flexibilty in making decisions 1535 + # as whether or not to use the groff package. 1536 + # 1537 + # Interface to module: 1538 + # HAVE_GROFF: used in makefiles to conditionally generate documentation 1539 + # HAVE_GROFF_MM: the memorandum macros (-mm) package 1540 + # HAVE_GROFF_MS: the -ms macros package 1541 + # GROFF: returns the path of the groff program found 1542 + # returns the path set by the user in the environment 1543 + # --with-groff: 'yes' user instructs the module to use groff 1544 + # 'no' user instructs the module not to use groff 1545 + # 1546 + # If the user sets the value of GROFF, AC_PATH_PROG skips testing the path. 1547 + # 1548 + # OS and distros often splits groff in a basic and full package, the former 1549 + # having the groff program and the later having devices, fonts and macros 1550 + # Checking for the groff executable is not enough. 1551 + # 1552 + # If macros are missing, we cannot assume that groff is useless, so we don't 1553 + # unset HAVE_GROFF or GROFF env variables. 1554 + # HAVE_GROFF_?? can never be true while HAVE_GROFF is false. 1555 + # 1556 + AC_DEFUN([XORG_WITH_GROFF],[ 1557 + AC_ARG_VAR([GROFF], [Path to groff command]) 1558 + AC_ARG_WITH(groff, 1559 + AS_HELP_STRING([--with-groff], 1560 + [Use groff to regenerate documentation (default: yes, if installed)]), 1561 + [use_groff=$withval], [use_groff=auto]) 1562 + 1563 + if test "x$use_groff" = x"auto"; then 1564 + AC_PATH_PROG([GROFF], [groff]) 1565 + if test "x$GROFF" = "x"; then 1566 + AC_MSG_WARN([groff not found - documentation targets will be skipped]) 1567 + have_groff=no 1568 + else 1569 + have_groff=yes 1570 + fi 1571 + elif test "x$use_groff" = x"yes" ; then 1572 + AC_PATH_PROG([GROFF], [groff]) 1573 + if test "x$GROFF" = "x"; then 1574 + AC_MSG_ERROR([--with-groff=yes specified but groff not found in PATH]) 1575 + fi 1576 + have_groff=yes 1577 + elif test "x$use_groff" = x"no" ; then 1578 + if test "x$GROFF" != "x"; then 1579 + AC_MSG_WARN([ignoring GROFF environment variable since --with-groff=no was specified]) 1580 + fi 1581 + have_groff=no 1582 + else 1583 + AC_MSG_ERROR([--with-groff expects 'yes' or 'no']) 1584 + fi 1585 + # We have groff, test for the presence of the macro packages 1586 + if test "x$have_groff" = x"yes"; then 1587 + AC_MSG_CHECKING([for ${GROFF} -ms macros]) 1588 + if ${GROFF} -ms -I. /dev/null >/dev/null 2>&1 ; then 1589 + groff_ms_works=yes 1590 + else 1591 + groff_ms_works=no 1592 + fi 1593 + AC_MSG_RESULT([$groff_ms_works]) 1594 + AC_MSG_CHECKING([for ${GROFF} -mm macros]) 1595 + if ${GROFF} -mm -I. /dev/null >/dev/null 2>&1 ; then 1596 + groff_mm_works=yes 1597 + else 1598 + groff_mm_works=no 1599 + fi 1600 + AC_MSG_RESULT([$groff_mm_works]) 1601 + fi 1602 + AM_CONDITIONAL([HAVE_GROFF], [test "$have_groff" = yes]) 1603 + AM_CONDITIONAL([HAVE_GROFF_MS], [test "$groff_ms_works" = yes]) 1604 + AM_CONDITIONAL([HAVE_GROFF_MM], [test "$groff_mm_works" = yes]) 1605 + ]) # XORG_WITH_GROFF 1606 + 1607 + # XORG_WITH_FOP 1608 + # ---------------- 1609 + # Minimum version: 1.6.0 1610 + # 1611 + # Documentation tools are not always available on all platforms and sometimes 1612 + # not at the appropriate level. This macro enables a module to test for the 1613 + # presence of the tool and obtain it's path in separate variables. Coupled with 1614 + # the --with-fop option, it allows maximum flexibilty in making decisions 1615 + # as whether or not to use the fop package. 1616 + # 1617 + # Interface to module: 1618 + # HAVE_FOP: used in makefiles to conditionally generate documentation 1619 + # FOP: returns the path of the fop program found 1620 + # returns the path set by the user in the environment 1621 + # --with-fop: 'yes' user instructs the module to use fop 1622 + # 'no' user instructs the module not to use fop 1623 + # 1624 + # If the user sets the value of FOP, AC_PATH_PROG skips testing the path. 1625 + # 1626 + AC_DEFUN([XORG_WITH_FOP],[ 1627 + AC_ARG_VAR([FOP], [Path to fop command]) 1628 + AC_ARG_WITH(fop, 1629 + AS_HELP_STRING([--with-fop], 1630 + [Use fop to regenerate documentation (default: yes, if installed)]), 1631 + [use_fop=$withval], [use_fop=auto]) 1632 + 1633 + if test "x$use_fop" = x"auto"; then 1634 + AC_PATH_PROG([FOP], [fop]) 1635 + if test "x$FOP" = "x"; then 1636 + AC_MSG_WARN([fop not found - documentation targets will be skipped]) 1637 + have_fop=no 1638 + else 1639 + have_fop=yes 1640 + fi 1641 + elif test "x$use_fop" = x"yes" ; then 1642 + AC_PATH_PROG([FOP], [fop]) 1643 + if test "x$FOP" = "x"; then 1644 + AC_MSG_ERROR([--with-fop=yes specified but fop not found in PATH]) 1645 + fi 1646 + have_fop=yes 1647 + elif test "x$use_fop" = x"no" ; then 1648 + if test "x$FOP" != "x"; then 1649 + AC_MSG_WARN([ignoring FOP environment variable since --with-fop=no was specified]) 1650 + fi 1651 + have_fop=no 1652 + else 1653 + AC_MSG_ERROR([--with-fop expects 'yes' or 'no']) 1654 + fi 1655 + AM_CONDITIONAL([HAVE_FOP], [test "$have_fop" = yes]) 1656 + ]) # XORG_WITH_FOP 1657 + 1658 + # XORG_WITH_PS2PDF 1659 + # ---------------- 1660 + # Minimum version: 1.6.0 1661 + # 1662 + # Documentation tools are not always available on all platforms and sometimes 1663 + # not at the appropriate level. This macro enables a module to test for the 1664 + # presence of the tool and obtain it's path in separate variables. Coupled with 1665 + # the --with-ps2pdf option, it allows maximum flexibilty in making decisions 1666 + # as whether or not to use the ps2pdf package. 1667 + # 1668 + # Interface to module: 1669 + # HAVE_PS2PDF: used in makefiles to conditionally generate documentation 1670 + # PS2PDF: returns the path of the ps2pdf program found 1671 + # returns the path set by the user in the environment 1672 + # --with-ps2pdf: 'yes' user instructs the module to use ps2pdf 1673 + # 'no' user instructs the module not to use ps2pdf 1674 + # 1675 + # If the user sets the value of PS2PDF, AC_PATH_PROG skips testing the path. 1676 + # 1677 + AC_DEFUN([XORG_WITH_PS2PDF],[ 1678 + AC_ARG_VAR([PS2PDF], [Path to ps2pdf command]) 1679 + AC_ARG_WITH(ps2pdf, 1680 + AS_HELP_STRING([--with-ps2pdf], 1681 + [Use ps2pdf to regenerate documentation (default: yes, if installed)]), 1682 + [use_ps2pdf=$withval], [use_ps2pdf=auto]) 1683 + 1684 + if test "x$use_ps2pdf" = x"auto"; then 1685 + AC_PATH_PROG([PS2PDF], [ps2pdf]) 1686 + if test "x$PS2PDF" = "x"; then 1687 + AC_MSG_WARN([ps2pdf not found - documentation targets will be skipped]) 1688 + have_ps2pdf=no 1689 + else 1690 + have_ps2pdf=yes 1691 + fi 1692 + elif test "x$use_ps2pdf" = x"yes" ; then 1693 + AC_PATH_PROG([PS2PDF], [ps2pdf]) 1694 + if test "x$PS2PDF" = "x"; then 1695 + AC_MSG_ERROR([--with-ps2pdf=yes specified but ps2pdf not found in PATH]) 1696 + fi 1697 + have_ps2pdf=yes 1698 + elif test "x$use_ps2pdf" = x"no" ; then 1699 + if test "x$PS2PDF" != "x"; then 1700 + AC_MSG_WARN([ignoring PS2PDF environment variable since --with-ps2pdf=no was specified]) 1701 + fi 1702 + have_ps2pdf=no 1703 + else 1704 + AC_MSG_ERROR([--with-ps2pdf expects 'yes' or 'no']) 1705 + fi 1706 + AM_CONDITIONAL([HAVE_PS2PDF], [test "$have_ps2pdf" = yes]) 1707 + ]) # XORG_WITH_PS2PDF 1708 + 1709 + # XORG_ENABLE_DOCS (enable_docs=yes) 1710 + # ---------------- 1711 + # Minimum version: 1.6.0 1712 + # 1713 + # Documentation tools are not always available on all platforms and sometimes 1714 + # not at the appropriate level. This macro enables a builder to skip all 1715 + # documentation targets except traditional man pages. 1716 + # Combined with the specific tool checking macros XORG_WITH_*, it provides 1717 + # maximum flexibilty in controlling documentation building. 1718 + # Refer to: 1719 + # XORG_WITH_XMLTO --with-xmlto 1720 + # XORG_WITH_ASCIIDOC --with-asciidoc 1721 + # XORG_WITH_DOXYGEN --with-doxygen 1722 + # XORG_WITH_FOP --with-fop 1723 + # XORG_WITH_GROFF --with-groff 1724 + # XORG_WITH_PS2PDF --with-ps2pdf 1725 + # 1726 + # Interface to module: 1727 + # ENABLE_DOCS: used in makefiles to conditionally generate documentation 1728 + # --enable-docs: 'yes' user instructs the module to generate docs 1729 + # 'no' user instructs the module not to generate docs 1730 + # parm1: specify the default value, yes or no. 1731 + # 1732 + AC_DEFUN([XORG_ENABLE_DOCS],[ 1733 + default=$1 1734 + if test "x$default" = x ; then 1735 + default="yes" 1736 + fi 1737 + AC_ARG_ENABLE(docs, 1738 + AS_HELP_STRING([--enable-docs], 1739 + [Enable building the documentation (default: yes)]), 1740 + [build_docs=$enableval], [build_docs=$default]) 1741 + AM_CONDITIONAL(ENABLE_DOCS, [test x$build_docs = xyes]) 1742 + AC_MSG_CHECKING([whether to build documentation]) 1743 + AC_MSG_RESULT([$build_docs]) 1744 + ]) # XORG_ENABLE_DOCS 1745 + 1746 + # XORG_ENABLE_DEVEL_DOCS (enable_devel_docs=yes) 1747 + # ---------------- 1748 + # Minimum version: 1.6.0 1749 + # 1750 + # This macro enables a builder to skip all developer documentation. 1751 + # Combined with the specific tool checking macros XORG_WITH_*, it provides 1752 + # maximum flexibilty in controlling documentation building. 1753 + # Refer to: 1754 + # XORG_WITH_XMLTO --with-xmlto 1755 + # XORG_WITH_ASCIIDOC --with-asciidoc 1756 + # XORG_WITH_DOXYGEN --with-doxygen 1757 + # XORG_WITH_FOP --with-fop 1758 + # XORG_WITH_GROFF --with-groff 1759 + # XORG_WITH_PS2PDF --with-ps2pdf 1760 + # 1761 + # Interface to module: 1762 + # ENABLE_DEVEL_DOCS: used in makefiles to conditionally generate developer docs 1763 + # --enable-devel-docs: 'yes' user instructs the module to generate developer docs 1764 + # 'no' user instructs the module not to generate developer docs 1765 + # parm1: specify the default value, yes or no. 1766 + # 1767 + AC_DEFUN([XORG_ENABLE_DEVEL_DOCS],[ 1768 + devel_default=$1 1769 + if test "x$devel_default" = x ; then 1770 + devel_default="yes" 1771 + fi 1772 + AC_ARG_ENABLE(devel-docs, 1773 + AS_HELP_STRING([--enable-devel-docs], 1774 + [Enable building the developer documentation (default: yes)]), 1775 + [build_devel_docs=$enableval], [build_devel_docs=$devel_default]) 1776 + AM_CONDITIONAL(ENABLE_DEVEL_DOCS, [test x$build_devel_docs = xyes]) 1777 + AC_MSG_CHECKING([whether to build developer documentation]) 1778 + AC_MSG_RESULT([$build_devel_docs]) 1779 + ]) # XORG_ENABLE_DEVEL_DOCS 1780 + 1781 + # XORG_ENABLE_SPECS (enable_specs=yes) 1782 + # ---------------- 1783 + # Minimum version: 1.6.0 1784 + # 1785 + # This macro enables a builder to skip all functional specification targets. 1786 + # Combined with the specific tool checking macros XORG_WITH_*, it provides 1787 + # maximum flexibilty in controlling documentation building. 1788 + # Refer to: 1789 + # XORG_WITH_XMLTO --with-xmlto 1790 + # XORG_WITH_ASCIIDOC --with-asciidoc 1791 + # XORG_WITH_DOXYGEN --with-doxygen 1792 + # XORG_WITH_FOP --with-fop 1793 + # XORG_WITH_GROFF --with-groff 1794 + # XORG_WITH_PS2PDF --with-ps2pdf 1795 + # 1796 + # Interface to module: 1797 + # ENABLE_SPECS: used in makefiles to conditionally generate specs 1798 + # --enable-specs: 'yes' user instructs the module to generate specs 1799 + # 'no' user instructs the module not to generate specs 1800 + # parm1: specify the default value, yes or no. 1801 + # 1802 + AC_DEFUN([XORG_ENABLE_SPECS],[ 1803 + spec_default=$1 1804 + if test "x$spec_default" = x ; then 1805 + spec_default="yes" 1806 + fi 1807 + AC_ARG_ENABLE(specs, 1808 + AS_HELP_STRING([--enable-specs], 1809 + [Enable building the specs (default: yes)]), 1810 + [build_specs=$enableval], [build_specs=$spec_default]) 1811 + AM_CONDITIONAL(ENABLE_SPECS, [test x$build_specs = xyes]) 1812 + AC_MSG_CHECKING([whether to build functional specifications]) 1813 + AC_MSG_RESULT([$build_specs]) 1814 + ]) # XORG_ENABLE_SPECS 1815 + 1366 1816 # XORG_CHECK_MALLOC_ZERO 1367 1817 # ---------------------- 1368 1818 # Minimum version: 1.0.0 ··· 1372 1822 # their AM_CFLAGS (or other appropriate *_CFLAGS) to use them. 1373 1823 AC_DEFUN([XORG_CHECK_MALLOC_ZERO],[ 1374 1824 AC_ARG_ENABLE(malloc0returnsnull, 1375 - AC_HELP_STRING([--enable-malloc0returnsnull], 1825 + AS_HELP_STRING([--enable-malloc0returnsnull], 1376 1826 [malloc(0) returns NULL (default: auto)]), 1377 1827 [MALLOC_ZERO_RETURNS_NULL=$enableval], 1378 1828 [MALLOC_ZERO_RETURNS_NULL=auto]) ··· 1392 1842 exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1); 1393 1843 }], 1394 1844 [MALLOC_ZERO_RETURNS_NULL=yes], 1395 - [MALLOC_ZERO_RETURNS_NULL=no]) 1845 + [MALLOC_ZERO_RETURNS_NULL=no], 1846 + [MALLOC_ZERO_RETURNS_NULL=yes]) 1396 1847 fi 1397 1848 AC_MSG_RESULT([$MALLOC_ZERO_RETURNS_NULL]) 1398 1849 ··· 1424 1875 AC_DEFUN([XORG_WITH_LINT],[ 1425 1876 1426 1877 # Allow checking code with lint, sparse, etc. 1427 - AC_ARG_WITH(lint, [AC_HELP_STRING([--with-lint], 1878 + AC_ARG_WITH(lint, [AS_HELP_STRING([--with-lint], 1428 1879 [Use a lint-style source code checker (default: disabled)])], 1429 1880 [use_lint=$withval], [use_lint=no]) 1430 1881 if test "x$use_lint" = "xyes" ; then ··· 1465 1916 AC_DEFUN([XORG_LINT_LIBRARY],[ 1466 1917 AC_REQUIRE([XORG_WITH_LINT]) 1467 1918 # Build lint "library" for more indepth checks of programs calling this library 1468 - AC_ARG_ENABLE(lint-library, [AC_HELP_STRING([--enable-lint-library], 1919 + AC_ARG_ENABLE(lint-library, [AS_HELP_STRING([--enable-lint-library], 1469 1920 [Create lint library (default: disabled)])], 1470 1921 [make_lint_lib=$enableval], [make_lint_lib=no]) 1471 1922 if test "x$make_lint_lib" != "xno" ; then ··· 1483 1934 1484 1935 ]) # XORG_LINT_LIBRARY 1485 1936 1937 + # XORG_CWARNFLAGS 1938 + # --------------- 1939 + # Minimum version: 1.2.0 1940 + # 1941 + # Defines CWARNFLAGS to enable C compiler warnings. 1942 + # 1943 + AC_DEFUN([XORG_CWARNFLAGS], [ 1944 + AC_REQUIRE([AC_PROG_CC]) 1945 + if test "x$GCC" = xyes ; then 1946 + CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 1947 + -Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 1948 + -Wbad-function-cast -Wformat=2" 1949 + case `$CC -dumpversion` in 1950 + 3.4.* | 4.*) 1951 + CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 1952 + ;; 1953 + esac 1954 + else 1955 + AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"]) 1956 + if test "x$SUNCC" = "xyes"; then 1957 + CWARNFLAGS="-v" 1958 + fi 1959 + fi 1960 + AC_SUBST(CWARNFLAGS) 1961 + ]) # XORG_CWARNFLAGS 1962 + 1963 + # XORG_STRICT_OPTION 1964 + # ----------------------- 1965 + # Minimum version: 1.3.0 1966 + # 1967 + # Add configure option to enable strict compilation 1968 + AC_DEFUN([XORG_STRICT_OPTION], [ 1969 + AC_REQUIRE([AC_PROG_CC]) 1970 + AC_REQUIRE([AC_PROG_CC_C99]) 1971 + AC_REQUIRE([XORG_CWARNFLAGS]) 1972 + 1973 + AC_ARG_ENABLE(strict-compilation, 1974 + AS_HELP_STRING([--enable-strict-compilation], 1975 + [Enable all warnings from compiler and make them errors (default: disabled)]), 1976 + [STRICT_COMPILE=$enableval], [STRICT_COMPILE=no]) 1977 + if test "x$STRICT_COMPILE" = "xyes"; then 1978 + AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"]) 1979 + AC_CHECK_DECL([__INTEL_COMPILER], [INTELCC="yes"], [INTELCC="no"]) 1980 + if test "x$GCC" = xyes ; then 1981 + STRICT_CFLAGS="-pedantic -Werror" 1982 + elif test "x$SUNCC" = "xyes"; then 1983 + STRICT_CFLAGS="-errwarn" 1984 + elif test "x$INTELCC" = "xyes"; then 1985 + STRICT_CFLAGS="-Werror" 1986 + fi 1987 + fi 1988 + CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 1989 + AC_SUBST([CWARNFLAGS]) 1990 + ]) # XORG_STRICT_OPTION 1991 + 1992 + # XORG_DEFAULT_OPTIONS 1993 + # -------------------- 1994 + # Minimum version: 1.3.0 1995 + # 1996 + # Defines default options for X.Org modules. 1997 + # 1998 + AC_DEFUN([XORG_DEFAULT_OPTIONS], [ 1999 + XORG_CWARNFLAGS 2000 + XORG_STRICT_OPTION 2001 + XORG_RELEASE_VERSION 2002 + XORG_CHANGELOG 2003 + XORG_INSTALL 2004 + XORG_MANPAGE_SECTIONS 2005 + m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])], 2006 + [AC_SUBST([AM_DEFAULT_VERBOSITY], [1])]) 2007 + ]) # XORG_DEFAULT_OPTIONS 2008 + 2009 + # XORG_INSTALL() 2010 + # ---------------- 2011 + # Minimum version: 1.4.0 2012 + # 2013 + # Defines the variable INSTALL_CMD as the command to copy 2014 + # INSTALL from $prefix/share/util-macros. 2015 + # 2016 + AC_DEFUN([XORG_INSTALL], [ 2017 + AC_REQUIRE([PKG_PROG_PKG_CONFIG]) 2018 + macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 2019 + INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 2020 + mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 2021 + || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 2022 + echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 2023 + AC_SUBST([INSTALL_CMD]) 2024 + ]) # XORG_INSTALL 1486 2025 dnl Copyright 2005 Red Hat, Inc 1487 2026 dnl 1488 2027 dnl Permission to use, copy, modify, distribute, and sell this software and its ··· 1517 2056 1518 2057 AC_DEFUN([XORG_RELEASE_VERSION],[ 1519 2058 AC_ARG_WITH(release-version, 1520 - AC_HELP_STRING([--with-release-version=STRING], 2059 + AS_HELP_STRING([--with-release-version=STRING], 1521 2060 [Use release version string in package name]), 1522 2061 [RELEASE_VERSION="$withval"], 1523 2062 [RELEASE_VERSION=""]) ··· 1529 2068 AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MAJOR], 1530 2069 [`echo $PACKAGE_VERSION | cut -d . -f 1`], 1531 2070 [Major version of this package]) 1532 - PVM=`echo $PACKAGE_VERSION | cut -d . -f 2` 2071 + PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 1533 2072 if test "x$PVM" = "x"; then 1534 2073 PVM="0" 1535 2074 fi 1536 2075 AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MINOR], 1537 2076 [$PVM], 1538 2077 [Minor version of this package]) 1539 - PVP=`echo $PACKAGE_VERSION | cut -d . -f 3` 2078 + PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 1540 2079 if test "x$PVP" = "x"; then 1541 2080 PVP="0" 1542 2081 fi ··· 1545 2084 [Patch version of this package]) 1546 2085 ]) 1547 2086 2087 + # XORG_CHANGELOG() 2088 + # ---------------- 2089 + # Minimum version: 1.2.0 2090 + # 2091 + # Defines the variable CHANGELOG_CMD as the command to generate 2092 + # ChangeLog from git. 2093 + # 2094 + # 2095 + AC_DEFUN([XORG_CHANGELOG], [ 2096 + CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 2097 + mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 2098 + || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 2099 + echo 'git directory not found: installing possibly empty changelog.' >&2)" 2100 + AC_SUBST([CHANGELOG_CMD]) 2101 + ]) # XORG_CHANGELOG 2102 +
+33
app/xmore/app-defaults/XMore
··· 1 + ! XMore.ad 2 + 3 + ! keyboard translations 4 + *text.Translations: #override\n\ 5 + Ctrl<Key>S: no-op(RingBell)\n\ 6 + Ctrl<Key>R: no-op(RingBell)\n\ 7 + <Key>space: next-page()\n\ 8 + <Key>F: next-page()\n\ 9 + Ctrl<Key>B: previous-page()\n\ 10 + <Key>B: previous-page()\n\ 11 + <Key>K: scroll-one-line-down()\n\ 12 + <Key>Y: scroll-one-line-down()\n\ 13 + <Key>Return: scroll-one-line-up()\n\ 14 + <Key>J: scroll-one-line-up()\n\ 15 + <Key>E: scroll-one-line-up()\n\ 16 + <Key>q: quit()\n 17 + *text.baseTranslations: #override\n\ 18 + <Key>space: next-page()\n\ 19 + <Key>F: next-page()\n\ 20 + Ctrl<Key>B: previous-page()\n\ 21 + <Key>K: scroll-one-line-down()\n\ 22 + <Key>Y: scroll-one-line-down()\n\ 23 + <Key>Return: scroll-one-line-up()\n\ 24 + <Key>J: scroll-one-line-up()\n\ 25 + <Key>E: scroll-one-line-up()\n\ 26 + <Key>q: quit()\n 27 + 28 + ! tip messages 29 + *quit.tip: Quit application 30 + 31 + *international: True 32 + 33 + ! EOF.
-142
app/xmore/compile
··· 1 - #! /bin/sh 2 - # Wrapper for compilers which do not understand `-c -o'. 3 - 4 - scriptversion=2005-05-14.22 5 - 6 - # Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc. 7 - # Written by Tom Tromey <tromey@cygnus.com>. 8 - # 9 - # This program is free software; you can redistribute it and/or modify 10 - # it under the terms of the GNU General Public License as published by 11 - # the Free Software Foundation; either version 2, or (at your option) 12 - # any later version. 13 - # 14 - # This program is distributed in the hope that it will be useful, 15 - # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 - # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 - # GNU General Public License for more details. 18 - # 19 - # 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 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 - # This file is maintained in Automake, please report 29 - # bugs to <bug-automake@gnu.org> or send patches to 30 - # <automake-patches@gnu.org>. 31 - 32 - case $1 in 33 - '') 34 - echo "$0: No command. Try \`$0 --help' for more information." 1>&2 35 - exit 1; 36 - ;; 37 - -h | --h*) 38 - cat <<\EOF 39 - Usage: compile [--help] [--version] PROGRAM [ARGS] 40 - 41 - Wrapper for compilers which do not understand `-c -o'. 42 - Remove `-o dest.o' from ARGS, run PROGRAM with the remaining 43 - arguments, and rename the output as expected. 44 - 45 - If you are trying to build a whole package this is not the 46 - right script to run: please start by reading the file `INSTALL'. 47 - 48 - Report bugs to <bug-automake@gnu.org>. 49 - EOF 50 - exit $? 51 - ;; 52 - -v | --v*) 53 - echo "compile $scriptversion" 54 - exit $? 55 - ;; 56 - esac 57 - 58 - ofile= 59 - cfile= 60 - eat= 61 - 62 - for arg 63 - do 64 - if test -n "$eat"; then 65 - eat= 66 - else 67 - case $1 in 68 - -o) 69 - # configure might choose to run compile as `compile cc -o foo foo.c'. 70 - # So we strip `-o arg' only if arg is an object. 71 - eat=1 72 - case $2 in 73 - *.o | *.obj) 74 - ofile=$2 75 - ;; 76 - *) 77 - set x "$@" -o "$2" 78 - shift 79 - ;; 80 - esac 81 - ;; 82 - *.c) 83 - cfile=$1 84 - set x "$@" "$1" 85 - shift 86 - ;; 87 - *) 88 - set x "$@" "$1" 89 - shift 90 - ;; 91 - esac 92 - fi 93 - shift 94 - done 95 - 96 - if test -z "$ofile" || test -z "$cfile"; then 97 - # If no `-o' option was seen then we might have been invoked from a 98 - # pattern rule where we don't need one. That is ok -- this is a 99 - # normal compilation that the losing compiler can handle. If no 100 - # `.c' file was seen then we are probably linking. That is also 101 - # ok. 102 - exec "$@" 103 - fi 104 - 105 - # Name of file we expect compiler to create. 106 - cofile=`echo "$cfile" | sed -e 's|^.*/||' -e 's/\.c$/.o/'` 107 - 108 - # Create the lock directory. 109 - # Note: use `[/.-]' here to ensure that we don't use the same name 110 - # that we are using for the .o file. Also, base the name on the expected 111 - # object file name, since that is what matters with a parallel build. 112 - lockdir=`echo "$cofile" | sed -e 's|[/.-]|_|g'`.d 113 - while true; do 114 - if mkdir "$lockdir" >/dev/null 2>&1; then 115 - break 116 - fi 117 - sleep 1 118 - done 119 - # FIXME: race condition here if user kills between mkdir and trap. 120 - trap "rmdir '$lockdir'; exit 1" 1 2 15 121 - 122 - # Run the compile. 123 - "$@" 124 - ret=$? 125 - 126 - if test -f "$cofile"; then 127 - mv "$cofile" "$ofile" 128 - elif test -f "${cofile}bj"; then 129 - mv "${cofile}bj" "$ofile" 130 - fi 131 - 132 - rmdir "$lockdir" 133 - exit $ret 134 - 135 - # Local Variables: 136 - # mode: shell-script 137 - # sh-indentation: 2 138 - # eval: (add-hook 'write-file-hooks 'time-stamp) 139 - # time-stamp-start: "scriptversion=" 140 - # time-stamp-format: "%:y-%02m-%02d.%02H" 141 - # time-stamp-end: "$" 142 - # End:
+33
app/xmore/config.h.in
··· 1 1 /* config.h.in. Generated from configure.ac by autoheader. */ 2 2 3 + /* Define to 1 if you have the <inttypes.h> header file. */ 4 + #undef HAVE_INTTYPES_H 5 + 6 + /* Define to 1 if you have the <memory.h> header file. */ 7 + #undef HAVE_MEMORY_H 8 + 9 + /* Define to 1 if you have the <stdint.h> header file. */ 10 + #undef HAVE_STDINT_H 11 + 12 + /* Define to 1 if you have the <stdlib.h> header file. */ 13 + #undef HAVE_STDLIB_H 14 + 15 + /* Define to 1 if you have the <strings.h> header file. */ 16 + #undef HAVE_STRINGS_H 17 + 18 + /* Define to 1 if you have the <string.h> header file. */ 19 + #undef HAVE_STRING_H 20 + 21 + /* Define to 1 if you have the <sys/stat.h> header file. */ 22 + #undef HAVE_SYS_STAT_H 23 + 24 + /* Define to 1 if you have the <sys/types.h> header file. */ 25 + #undef HAVE_SYS_TYPES_H 26 + 27 + /* Define to 1 if you have the <unistd.h> header file. */ 28 + #undef HAVE_UNISTD_H 29 + 30 + /* Define to 1 if your C compiler doesn't accept -c and -o together. */ 31 + #undef NO_MINUS_C_MINUS_O 32 + 3 33 /* Name of package */ 4 34 #undef PACKAGE 5 35 ··· 26 56 27 57 /* Patch version of this package */ 28 58 #undef PACKAGE_VERSION_PATCHLEVEL 59 + 60 + /* Define to 1 if you have the ANSI C header files. */ 61 + #undef STDC_HEADERS 29 62 30 63 /* Version number of package */ 31 64 #undef VERSION
+4945 -2479
app/xmore/configure
··· 1 1 #! /bin/sh 2 2 # Guess values for system-dependent variables and create Makefiles. 3 - # Generated by GNU Autoconf 2.59 for xmore 1.0.1. 3 + # Generated by GNU Autoconf 2.62 for xmore 1.0.1. 4 4 # 5 5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6 6 # 7 - # Copyright (C) 2003 Free Software Foundation, Inc. 7 + # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8 + # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 8 9 # This configure script is free software; the Free Software Foundation 9 10 # gives unlimited permission to copy, distribute and modify it. 10 11 ## --------------------- ## 11 12 ## M4sh Initialization. ## 12 13 ## --------------------- ## 13 14 14 - # Be Bourne compatible 15 + # Be more Bourne compatible 16 + DUALCASE=1; export DUALCASE # for MKS sh 15 17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16 18 emulate sh 17 19 NULLCMD=: 18 - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 20 + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19 21 # is contrary to our usage. Disable this feature. 20 22 alias -g '${1+"$@"}'='"$@"' 21 - elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 22 - set -o posix 23 + setopt NO_GLOB_SUBST 24 + else 25 + case `(set -o) 2>/dev/null` in 26 + *posix*) set -o posix ;; 27 + esac 28 + 23 29 fi 24 - DUALCASE=1; export DUALCASE # for MKS sh 30 + 31 + 32 + 33 + 34 + # PATH needs CR 35 + # Avoid depending upon Character Ranges. 36 + as_cr_letters='abcdefghijklmnopqrstuvwxyz' 37 + as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 38 + as_cr_Letters=$as_cr_letters$as_cr_LETTERS 39 + as_cr_digits='0123456789' 40 + as_cr_alnum=$as_cr_Letters$as_cr_digits 41 + 42 + as_nl=' 43 + ' 44 + export as_nl 45 + # Printing a long string crashes Solaris 7 /usr/bin/printf. 46 + as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 47 + as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 48 + as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 49 + if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 + as_echo='printf %s\n' 51 + as_echo_n='printf %s' 52 + else 53 + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 + as_echo_n='/usr/ucb/echo -n' 56 + else 57 + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 + as_echo_n_body='eval 59 + arg=$1; 60 + case $arg in 61 + *"$as_nl"*) 62 + expr "X$arg" : "X\\(.*\\)$as_nl"; 63 + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 + esac; 65 + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 + ' 67 + export as_echo_n_body 68 + as_echo_n='sh -c $as_echo_n_body as_echo' 69 + fi 70 + export as_echo_body 71 + as_echo='sh -c $as_echo_body as_echo' 72 + fi 73 + 74 + # The user is always right. 75 + if test "${PATH_SEPARATOR+set}" != set; then 76 + PATH_SEPARATOR=: 77 + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 + PATH_SEPARATOR=';' 80 + } 81 + fi 25 82 26 83 # Support unset when possible. 27 84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then ··· 31 88 fi 32 89 33 90 91 + # IFS 92 + # We need space, tab and new line, in precisely that order. Quoting is 93 + # there to prevent editors from complaining about space-tab. 94 + # (If _AS_PATH_WALK were called with IFS unset, it would disable word 95 + # splitting by setting IFS to empty value.) 96 + IFS=" "" $as_nl" 97 + 98 + # Find who we are. Look in the path if we contain no directory separator. 99 + case $0 in 100 + *[\\/]* ) as_myself=$0 ;; 101 + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 102 + for as_dir in $PATH 103 + do 104 + IFS=$as_save_IFS 105 + test -z "$as_dir" && as_dir=. 106 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 107 + done 108 + IFS=$as_save_IFS 109 + 110 + ;; 111 + esac 112 + # We did not find ourselves, most probably we were run as `sh COMMAND' 113 + # in which case we are not to be found in the path. 114 + if test "x$as_myself" = x; then 115 + as_myself=$0 116 + fi 117 + if test ! -f "$as_myself"; then 118 + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 119 + { (exit 1); exit 1; } 120 + fi 121 + 34 122 # Work around bugs in pre-3.0 UWIN ksh. 35 - $as_unset ENV MAIL MAILPATH 123 + for as_var in ENV MAIL MAILPATH 124 + do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 125 + done 36 126 PS1='$ ' 37 127 PS2='> ' 38 128 PS4='+ ' 39 129 40 130 # NLS nuisances. 41 - for as_var in \ 42 - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 43 - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 44 - LC_TELEPHONE LC_TIME 45 - do 46 - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 47 - eval $as_var=C; export $as_var 48 - else 49 - $as_unset $as_var 50 - fi 51 - done 131 + LC_ALL=C 132 + export LC_ALL 133 + LANGUAGE=C 134 + export LANGUAGE 52 135 53 136 # Required to use basename. 54 - if expr a : '\(a\)' >/dev/null 2>&1; then 137 + if expr a : '\(a\)' >/dev/null 2>&1 && 138 + test "X`expr 00001 : '.*\(...\)'`" = X001; then 55 139 as_expr=expr 56 140 else 57 141 as_expr=false 58 142 fi 59 143 60 - if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 144 + if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 61 145 as_basename=basename 62 146 else 63 147 as_basename=false ··· 65 149 66 150 67 151 # Name of the executable. 68 - as_me=`$as_basename "$0" || 152 + as_me=`$as_basename -- "$0" || 69 153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 70 154 X"$0" : 'X\(//\)$' \| \ 71 - X"$0" : 'X\(/\)$' \| \ 72 - . : '\(.\)' 2>/dev/null || 73 - echo X/"$0" | 74 - sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 75 - /^X\/\(\/\/\)$/{ s//\1/; q; } 76 - /^X\/\(\/\).*/{ s//\1/; q; } 77 - s/.*/./; q'` 155 + X"$0" : 'X\(/\)' \| . 2>/dev/null || 156 + $as_echo X/"$0" | 157 + sed '/^.*\/\([^/][^/]*\)\/*$/{ 158 + s//\1/ 159 + q 160 + } 161 + /^X\/\(\/\/\)$/{ 162 + s//\1/ 163 + q 164 + } 165 + /^X\/\(\/\).*/{ 166 + s//\1/ 167 + q 168 + } 169 + s/.*/./; q'` 78 170 171 + # CDPATH. 172 + $as_unset CDPATH 79 173 80 - # PATH needs CR, and LINENO needs CR and PATH. 81 - # Avoid depending upon Character Ranges. 82 - as_cr_letters='abcdefghijklmnopqrstuvwxyz' 83 - as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 84 - as_cr_Letters=$as_cr_letters$as_cr_LETTERS 85 - as_cr_digits='0123456789' 86 - as_cr_alnum=$as_cr_Letters$as_cr_digits 87 174 88 - # The user is always right. 89 - if test "${PATH_SEPARATOR+set}" != set; then 90 - echo "#! /bin/sh" >conf$$.sh 91 - echo "exit 0" >>conf$$.sh 92 - chmod +x conf$$.sh 93 - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 94 - PATH_SEPARATOR=';' 95 - else 96 - PATH_SEPARATOR=: 97 - fi 98 - rm -f conf$$.sh 175 + if test "x$CONFIG_SHELL" = x; then 176 + if (eval ":") 2>/dev/null; then 177 + as_have_required=yes 178 + else 179 + as_have_required=no 99 180 fi 100 181 182 + if test $as_have_required = yes && (eval ": 183 + (as_func_return () { 184 + (exit \$1) 185 + } 186 + as_func_success () { 187 + as_func_return 0 188 + } 189 + as_func_failure () { 190 + as_func_return 1 191 + } 192 + as_func_ret_success () { 193 + return 0 194 + } 195 + as_func_ret_failure () { 196 + return 1 197 + } 101 198 102 - as_lineno_1=$LINENO 103 - as_lineno_2=$LINENO 104 - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 105 - test "x$as_lineno_1" != "x$as_lineno_2" && 106 - test "x$as_lineno_3" = "x$as_lineno_2" || { 107 - # Find who we are. Look in the path if we contain no path at all 108 - # relative or not. 109 - case $0 in 110 - *[\\/]* ) as_myself=$0 ;; 111 - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 112 - for as_dir in $PATH 113 - do 114 - IFS=$as_save_IFS 115 - test -z "$as_dir" && as_dir=. 116 - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 117 - done 199 + exitcode=0 200 + if as_func_success; then 201 + : 202 + else 203 + exitcode=1 204 + echo as_func_success failed. 205 + fi 206 + 207 + if as_func_failure; then 208 + exitcode=1 209 + echo as_func_failure succeeded. 210 + fi 118 211 119 - ;; 120 - esac 121 - # We did not find ourselves, most probably we were run as `sh COMMAND' 122 - # in which case we are not to be found in the path. 123 - if test "x$as_myself" = x; then 124 - as_myself=$0 125 - fi 126 - if test ! -f "$as_myself"; then 127 - { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 128 - { (exit 1); exit 1; }; } 129 - fi 130 - case $CONFIG_SHELL in 131 - '') 212 + if as_func_ret_success; then 213 + : 214 + else 215 + exitcode=1 216 + echo as_func_ret_success failed. 217 + fi 218 + 219 + if as_func_ret_failure; then 220 + exitcode=1 221 + echo as_func_ret_failure succeeded. 222 + fi 223 + 224 + if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 225 + : 226 + else 227 + exitcode=1 228 + echo positional parameters were not saved. 229 + fi 230 + 231 + test \$exitcode = 0) || { (exit 1); exit 1; } 232 + 233 + ( 234 + as_lineno_1=\$LINENO 235 + as_lineno_2=\$LINENO 236 + test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 237 + test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 238 + ") 2> /dev/null; then 239 + : 240 + else 241 + as_candidate_shells= 132 242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 133 243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 134 244 do 135 245 IFS=$as_save_IFS 136 246 test -z "$as_dir" && as_dir=. 137 - for as_base in sh bash ksh sh5; do 138 - case $as_dir in 247 + case $as_dir in 139 248 /*) 140 - if ("$as_dir/$as_base" -c ' 249 + for as_base in sh bash ksh sh5; do 250 + as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 251 + done;; 252 + esac 253 + done 254 + IFS=$as_save_IFS 255 + 256 + 257 + for as_shell in $as_candidate_shells $SHELL; do 258 + # Try only shells that exist, to save several forks. 259 + if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 260 + { ("$as_shell") 2> /dev/null <<\_ASEOF 261 + if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262 + emulate sh 263 + NULLCMD=: 264 + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 265 + # is contrary to our usage. Disable this feature. 266 + alias -g '${1+"$@"}'='"$@"' 267 + setopt NO_GLOB_SUBST 268 + else 269 + case `(set -o) 2>/dev/null` in 270 + *posix*) set -o posix ;; 271 + esac 272 + 273 + fi 274 + 275 + 276 + : 277 + _ASEOF 278 + }; then 279 + CONFIG_SHELL=$as_shell 280 + as_have_required=yes 281 + if { "$as_shell" 2> /dev/null <<\_ASEOF 282 + if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 283 + emulate sh 284 + NULLCMD=: 285 + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 286 + # is contrary to our usage. Disable this feature. 287 + alias -g '${1+"$@"}'='"$@"' 288 + setopt NO_GLOB_SUBST 289 + else 290 + case `(set -o) 2>/dev/null` in 291 + *posix*) set -o posix ;; 292 + esac 293 + 294 + fi 295 + 296 + 297 + : 298 + (as_func_return () { 299 + (exit $1) 300 + } 301 + as_func_success () { 302 + as_func_return 0 303 + } 304 + as_func_failure () { 305 + as_func_return 1 306 + } 307 + as_func_ret_success () { 308 + return 0 309 + } 310 + as_func_ret_failure () { 311 + return 1 312 + } 313 + 314 + exitcode=0 315 + if as_func_success; then 316 + : 317 + else 318 + exitcode=1 319 + echo as_func_success failed. 320 + fi 321 + 322 + if as_func_failure; then 323 + exitcode=1 324 + echo as_func_failure succeeded. 325 + fi 326 + 327 + if as_func_ret_success; then 328 + : 329 + else 330 + exitcode=1 331 + echo as_func_ret_success failed. 332 + fi 333 + 334 + if as_func_ret_failure; then 335 + exitcode=1 336 + echo as_func_ret_failure succeeded. 337 + fi 338 + 339 + if ( set x; as_func_ret_success y && test x = "$1" ); then 340 + : 341 + else 342 + exitcode=1 343 + echo positional parameters were not saved. 344 + fi 345 + 346 + test $exitcode = 0) || { (exit 1); exit 1; } 347 + 348 + ( 141 349 as_lineno_1=$LINENO 142 350 as_lineno_2=$LINENO 143 - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 144 351 test "x$as_lineno_1" != "x$as_lineno_2" && 145 - test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 146 - $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 147 - $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 148 - CONFIG_SHELL=$as_dir/$as_base 149 - export CONFIG_SHELL 150 - exec "$CONFIG_SHELL" "$0" ${1+"$@"} 151 - fi;; 152 - esac 153 - done 154 - done 155 - ;; 156 - esac 352 + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 353 + 354 + _ASEOF 355 + }; then 356 + break 357 + fi 358 + 359 + fi 360 + 361 + done 362 + 363 + if test "x$CONFIG_SHELL" != x; then 364 + for as_var in BASH_ENV ENV 365 + do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 366 + done 367 + export CONFIG_SHELL 368 + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 369 + fi 370 + 371 + 372 + if test $as_have_required = no; then 373 + echo This script requires a shell more modern than all the 374 + echo shells that I found on your system. Please install a 375 + echo modern shell, or manually run the script under such a 376 + echo shell if you do have one. 377 + { (exit 1); exit 1; } 378 + fi 379 + 380 + 381 + fi 382 + 383 + fi 384 + 385 + 386 + 387 + (eval "as_func_return () { 388 + (exit \$1) 389 + } 390 + as_func_success () { 391 + as_func_return 0 392 + } 393 + as_func_failure () { 394 + as_func_return 1 395 + } 396 + as_func_ret_success () { 397 + return 0 398 + } 399 + as_func_ret_failure () { 400 + return 1 401 + } 402 + 403 + exitcode=0 404 + if as_func_success; then 405 + : 406 + else 407 + exitcode=1 408 + echo as_func_success failed. 409 + fi 410 + 411 + if as_func_failure; then 412 + exitcode=1 413 + echo as_func_failure succeeded. 414 + fi 415 + 416 + if as_func_ret_success; then 417 + : 418 + else 419 + exitcode=1 420 + echo as_func_ret_success failed. 421 + fi 422 + 423 + if as_func_ret_failure; then 424 + exitcode=1 425 + echo as_func_ret_failure succeeded. 426 + fi 427 + 428 + if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 429 + : 430 + else 431 + exitcode=1 432 + echo positional parameters were not saved. 433 + fi 434 + 435 + test \$exitcode = 0") || { 436 + echo No shell found that supports shell functions. 437 + echo Please tell bug-autoconf@gnu.org about your system, 438 + echo including any error possibly output before this message. 439 + echo This can help us improve future autoconf versions. 440 + echo Configuration will now proceed without shell functions. 441 + } 442 + 443 + 444 + 445 + as_lineno_1=$LINENO 446 + as_lineno_2=$LINENO 447 + test "x$as_lineno_1" != "x$as_lineno_2" && 448 + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 157 449 158 450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 159 451 # uniformly replaced by the line number. The first 'sed' inserts a 160 - # line-number line before each line; the second 'sed' does the real 161 - # work. The second script uses 'N' to pair each line-number line 162 - # with the numbered line, and appends trailing '-' during 163 - # substitution so that $LINENO is not a special case at line end. 452 + # line-number line after each line using $LINENO; the second 'sed' 453 + # does the real work. The second script uses 'N' to pair each 454 + # line-number line with the line containing $LINENO, and appends 455 + # trailing '-' during substitution so that $LINENO is not a special 456 + # case at line end. 164 457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 165 - # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 166 - sed '=' <$as_myself | 458 + # scripts with optimization help from Paolo Bonzini. Blame Lee 459 + # E. McMahon (1931-1989) for sed's syntax. :-) 460 + sed -n ' 461 + p 462 + /[$]LINENO/= 463 + ' <$as_myself | 167 464 sed ' 465 + s/[$]LINENO.*/&-/ 466 + t lineno 467 + b 468 + :lineno 168 469 N 169 - s,$,-, 170 - : loop 171 - s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 470 + :loop 471 + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 172 472 t loop 173 - s,-$,, 174 - s,^['$as_cr_digits']*\n,, 473 + s/-\n.*// 175 474 ' >$as_me.lineno && 176 - chmod +x $as_me.lineno || 177 - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 475 + chmod +x "$as_me.lineno" || 476 + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 178 477 { (exit 1); exit 1; }; } 179 478 180 479 # Don't try to exec as it changes $[0], causing all sort of problems 181 480 # (the dirname of $[0] is not the place where we might find the 182 - # original and so on. Autoconf is especially sensible to this). 183 - . ./$as_me.lineno 481 + # original and so on. Autoconf is especially sensitive to this). 482 + . "./$as_me.lineno" 184 483 # Exit status is that of the last command. 185 484 exit 186 485 } 187 486 188 487 189 - case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 190 - *c*,-n*) ECHO_N= ECHO_C=' 191 - ' ECHO_T=' ' ;; 192 - *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 193 - *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 194 - esac 488 + if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 489 + as_dirname=dirname 490 + else 491 + as_dirname=false 492 + fi 195 493 196 - if expr a : '\(a\)' >/dev/null 2>&1; then 494 + ECHO_C= ECHO_N= ECHO_T= 495 + case `echo -n x` in 496 + -n*) 497 + case `echo 'x\c'` in 498 + *c*) ECHO_T=' ';; # ECHO_T is single tab character. 499 + *) ECHO_C='\c';; 500 + esac;; 501 + *) 502 + ECHO_N='-n';; 503 + esac 504 + if expr a : '\(a\)' >/dev/null 2>&1 && 505 + test "X`expr 00001 : '.*\(...\)'`" = X001; then 197 506 as_expr=expr 198 507 else 199 508 as_expr=false 200 509 fi 201 510 202 511 rm -f conf$$ conf$$.exe conf$$.file 203 - echo >conf$$.file 204 - if ln -s conf$$.file conf$$ 2>/dev/null; then 205 - # We could just check for DJGPP; but this test a) works b) is more generic 206 - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 207 - if test -f conf$$.exe; then 208 - # Don't use ln at all; we don't have any links 209 - as_ln_s='cp -p' 210 - else 512 + if test -d conf$$.dir; then 513 + rm -f conf$$.dir/conf$$.file 514 + else 515 + rm -f conf$$.dir 516 + mkdir conf$$.dir 2>/dev/null 517 + fi 518 + if (echo >conf$$.file) 2>/dev/null; then 519 + if ln -s conf$$.file conf$$ 2>/dev/null; then 211 520 as_ln_s='ln -s' 521 + # ... but there are two gotchas: 522 + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 523 + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 524 + # In both cases, we have to default to `cp -p'. 525 + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 526 + as_ln_s='cp -p' 527 + elif ln conf$$.file conf$$ 2>/dev/null; then 528 + as_ln_s=ln 529 + else 530 + as_ln_s='cp -p' 212 531 fi 213 - elif ln conf$$.file conf$$ 2>/dev/null; then 214 - as_ln_s=ln 215 532 else 216 533 as_ln_s='cp -p' 217 534 fi 218 - rm -f conf$$ conf$$.exe conf$$.file 535 + rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 536 + rmdir conf$$.dir 2>/dev/null 219 537 220 538 if mkdir -p . 2>/dev/null; then 221 539 as_mkdir_p=: ··· 224 542 as_mkdir_p=false 225 543 fi 226 544 227 - as_executable_p="test -f" 545 + if test -x / >/dev/null 2>&1; then 546 + as_test_x='test -x' 547 + else 548 + if ls -dL / >/dev/null 2>&1; then 549 + as_ls_L_option=L 550 + else 551 + as_ls_L_option= 552 + fi 553 + as_test_x=' 554 + eval sh -c '\'' 555 + if test -d "$1"; then 556 + test -d "$1/."; 557 + else 558 + case $1 in 559 + -*)set "./$1";; 560 + esac; 561 + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 562 + ???[sx]*):;;*)false;;esac;fi 563 + '\'' sh 564 + ' 565 + fi 566 + as_executable_p=$as_test_x 228 567 229 568 # Sed expression to map a string onto a valid CPP name. 230 569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" ··· 233 572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 234 573 235 574 236 - # IFS 237 - # We need space, tab and new line, in precisely that order. 238 - as_nl=' 239 - ' 240 - IFS=" $as_nl" 241 575 242 - # CDPATH. 243 - $as_unset CDPATH 244 - 576 + exec 7<&0 </dev/null 6>&1 245 577 246 578 # Name of the host. 247 579 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 248 580 # so uname gets run too. 249 581 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 250 - 251 - exec 6>&1 252 582 253 583 # 254 584 # Initializations. 255 585 # 256 586 ac_default_prefix=/usr/local 587 + ac_clean_files= 257 588 ac_config_libobj_dir=. 589 + LIBOBJS= 258 590 cross_compiling=no 259 591 subdirs= 260 592 MFLAGS= 261 593 MAKEFLAGS= 262 594 SHELL=${CONFIG_SHELL-/bin/sh} 263 - 264 - # Maximum number of lines to put in a shell here document. 265 - # This variable seems obsolete. It should probably be removed, and 266 - # only ac_max_sed_lines should be used. 267 - : ${ac_max_here_lines=38} 268 595 269 596 # Identity of this package. 270 597 PACKAGE_NAME='xmore' ··· 273 600 PACKAGE_STRING='xmore 1.0.1' 274 601 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 275 602 276 - ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE PKG_CONFIG ac_pt_PKG_CONFIG TMP_XAW_CFLAGS TMP_XAW_LIBS XAW_USE_XPRINT_TRUE XAW_USE_XPRINT_FALSE XPRINT_UTIL_CFLAGS XPRINT_UTIL_LIBS XMORE_CFLAGS XMORE_LIBS APPDEFS_CFLAGS APPDEFS_LIBS appdefaultdir build build_cpu build_vendor build_os host host_cpu host_vendor host_os APP_MAN_SUFFIX LIB_MAN_SUFFIX FILE_MAN_SUFFIX MISC_MAN_SUFFIX DRIVER_MAN_SUFFIX ADMIN_MAN_SUFFIX APP_MAN_DIR LIB_MAN_DIR FILE_MAN_DIR MISC_MAN_DIR DRIVER_MAN_DIR ADMIN_MAN_DIR LIBOBJS LTLIBOBJS' 603 + # Factoring default headers for most tests. 604 + ac_includes_default="\ 605 + #include <stdio.h> 606 + #ifdef HAVE_SYS_TYPES_H 607 + # include <sys/types.h> 608 + #endif 609 + #ifdef HAVE_SYS_STAT_H 610 + # include <sys/stat.h> 611 + #endif 612 + #ifdef STDC_HEADERS 613 + # include <stdlib.h> 614 + # include <stddef.h> 615 + #else 616 + # ifdef HAVE_STDLIB_H 617 + # include <stdlib.h> 618 + # endif 619 + #endif 620 + #ifdef HAVE_STRING_H 621 + # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 622 + # include <memory.h> 623 + # endif 624 + # include <string.h> 625 + #endif 626 + #ifdef HAVE_STRINGS_H 627 + # include <strings.h> 628 + #endif 629 + #ifdef HAVE_INTTYPES_H 630 + # include <inttypes.h> 631 + #endif 632 + #ifdef HAVE_STDINT_H 633 + # include <stdint.h> 634 + #endif 635 + #ifdef HAVE_UNISTD_H 636 + # include <unistd.h> 637 + #endif" 638 + 639 + ac_subst_vars='SHELL 640 + PATH_SEPARATOR 641 + PACKAGE_NAME 642 + PACKAGE_TARNAME 643 + PACKAGE_VERSION 644 + PACKAGE_STRING 645 + PACKAGE_BUGREPORT 646 + exec_prefix 647 + prefix 648 + program_transform_name 649 + bindir 650 + sbindir 651 + libexecdir 652 + datarootdir 653 + datadir 654 + sysconfdir 655 + sharedstatedir 656 + localstatedir 657 + includedir 658 + oldincludedir 659 + docdir 660 + infodir 661 + htmldir 662 + dvidir 663 + pdfdir 664 + psdir 665 + libdir 666 + localedir 667 + mandir 668 + DEFS 669 + ECHO_C 670 + ECHO_N 671 + ECHO_T 672 + LIBS 673 + build_alias 674 + host_alias 675 + target_alias 676 + INSTALL_PROGRAM 677 + INSTALL_SCRIPT 678 + INSTALL_DATA 679 + CYGPATH_W 680 + PACKAGE 681 + VERSION 682 + ACLOCAL 683 + AUTOCONF 684 + AUTOMAKE 685 + AUTOHEADER 686 + MAKEINFO 687 + install_sh 688 + STRIP 689 + INSTALL_STRIP_PROGRAM 690 + mkdir_p 691 + AWK 692 + SET_MAKE 693 + am__leading_dot 694 + AMTAR 695 + am__tar 696 + am__untar 697 + MAINTAINER_MODE_TRUE 698 + MAINTAINER_MODE_FALSE 699 + MAINT 700 + CC 701 + CFLAGS 702 + LDFLAGS 703 + CPPFLAGS 704 + ac_ct_CC 705 + EXEEXT 706 + OBJEXT 707 + DEPDIR 708 + am__include 709 + am__quote 710 + AMDEP_TRUE 711 + AMDEP_FALSE 712 + AMDEPBACKSLASH 713 + CCDEPMODE 714 + am__fastdepCC_TRUE 715 + am__fastdepCC_FALSE 716 + CPP 717 + GREP 718 + EGREP 719 + CWARNFLAGS 720 + CHANGELOG_CMD 721 + PKG_CONFIG 722 + INSTALL_CMD 723 + build 724 + build_cpu 725 + build_vendor 726 + build_os 727 + host 728 + host_cpu 729 + host_vendor 730 + host_os 731 + APP_MAN_SUFFIX 732 + LIB_MAN_SUFFIX 733 + FILE_MAN_SUFFIX 734 + MISC_MAN_SUFFIX 735 + DRIVER_MAN_SUFFIX 736 + ADMIN_MAN_SUFFIX 737 + APP_MAN_DIR 738 + LIB_MAN_DIR 739 + FILE_MAN_DIR 740 + MISC_MAN_DIR 741 + DRIVER_MAN_DIR 742 + ADMIN_MAN_DIR 743 + AM_DEFAULT_VERBOSITY 744 + XMORE_CFLAGS 745 + XMORE_LIBS 746 + APPDEFS_CFLAGS 747 + APPDEFS_LIBS 748 + appdefaultdir 749 + LIBOBJS 750 + LTLIBOBJS' 277 751 ac_subst_files='' 752 + ac_user_opts=' 753 + enable_option_checking 754 + enable_maintainer_mode 755 + enable_dependency_tracking 756 + enable_strict_compilation 757 + with_release_version 758 + with_appdefaultdir 759 + ' 760 + ac_precious_vars='build_alias 761 + host_alias 762 + target_alias 763 + CC 764 + CFLAGS 765 + LDFLAGS 766 + LIBS 767 + CPPFLAGS 768 + CPP 769 + PKG_CONFIG 770 + XMORE_CFLAGS 771 + XMORE_LIBS 772 + APPDEFS_CFLAGS 773 + APPDEFS_LIBS' 774 + 278 775 279 776 # Initialize some variables set by options. 280 777 ac_init_help= 281 778 ac_init_version=false 779 + ac_unrecognized_opts= 780 + ac_unrecognized_sep= 282 781 # The variables have the same names as the options, with 283 782 # dashes changed to underlines. 284 783 cache_file=/dev/null ··· 301 800 # and all the variables that are supposed to be based on exec_prefix 302 801 # by default will actually change. 303 802 # Use braces instead of parens because sh, perl, etc. also accept them. 803 + # (The list follows the same order as the GNU Coding Standards.) 304 804 bindir='${exec_prefix}/bin' 305 805 sbindir='${exec_prefix}/sbin' 306 806 libexecdir='${exec_prefix}/libexec' 307 - datadir='${prefix}/share' 807 + datarootdir='${prefix}/share' 808 + datadir='${datarootdir}' 308 809 sysconfdir='${prefix}/etc' 309 810 sharedstatedir='${prefix}/com' 310 811 localstatedir='${prefix}/var' 311 - libdir='${exec_prefix}/lib' 312 812 includedir='${prefix}/include' 313 813 oldincludedir='/usr/include' 314 - infodir='${prefix}/info' 315 - mandir='${prefix}/man' 814 + docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 815 + infodir='${datarootdir}/info' 816 + htmldir='${docdir}' 817 + dvidir='${docdir}' 818 + pdfdir='${docdir}' 819 + psdir='${docdir}' 820 + libdir='${exec_prefix}/lib' 821 + localedir='${datarootdir}/locale' 822 + mandir='${datarootdir}/man' 316 823 317 824 ac_prev= 825 + ac_dashdash= 318 826 for ac_option 319 827 do 320 828 # If the previous option needs an argument, assign it. 321 829 if test -n "$ac_prev"; then 322 - eval "$ac_prev=\$ac_option" 830 + eval $ac_prev=\$ac_option 323 831 ac_prev= 324 832 continue 325 833 fi 326 834 327 - ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 835 + case $ac_option in 836 + *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 837 + *) ac_optarg=yes ;; 838 + esac 328 839 329 840 # Accept the important Cygnus configure options, so we can diagnose typos. 330 841 331 - case $ac_option in 842 + case $ac_dashdash$ac_option in 843 + --) 844 + ac_dashdash=yes ;; 332 845 333 846 -bindir | --bindir | --bindi | --bind | --bin | --bi) 334 847 ac_prev=bindir ;; ··· 350 863 --config-cache | -C) 351 864 cache_file=config.cache ;; 352 865 353 - -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 866 + -datadir | --datadir | --datadi | --datad) 354 867 ac_prev=datadir ;; 355 - -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 356 - | --da=*) 868 + -datadir=* | --datadir=* | --datadi=* | --datad=*) 357 869 datadir=$ac_optarg ;; 358 870 871 + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 872 + | --dataroo | --dataro | --datar) 873 + ac_prev=datarootdir ;; 874 + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 875 + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 876 + datarootdir=$ac_optarg ;; 877 + 359 878 -disable-* | --disable-*) 360 - ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 879 + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 361 880 # Reject names that are not valid shell variable names. 362 - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 363 - { echo "$as_me: error: invalid feature name: $ac_feature" >&2 881 + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 882 + { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 364 883 { (exit 1); exit 1; }; } 365 - ac_feature=`echo $ac_feature | sed 's/-/_/g'` 366 - eval "enable_$ac_feature=no" ;; 884 + ac_useropt_orig=$ac_useropt 885 + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 886 + case $ac_user_opts in 887 + *" 888 + "enable_$ac_useropt" 889 + "*) ;; 890 + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 891 + ac_unrecognized_sep=', ';; 892 + esac 893 + eval enable_$ac_useropt=no ;; 894 + 895 + -docdir | --docdir | --docdi | --doc | --do) 896 + ac_prev=docdir ;; 897 + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 898 + docdir=$ac_optarg ;; 899 + 900 + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 901 + ac_prev=dvidir ;; 902 + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 903 + dvidir=$ac_optarg ;; 367 904 368 905 -enable-* | --enable-*) 369 - ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 906 + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 370 907 # Reject names that are not valid shell variable names. 371 - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 372 - { echo "$as_me: error: invalid feature name: $ac_feature" >&2 908 + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 909 + { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 373 910 { (exit 1); exit 1; }; } 374 - ac_feature=`echo $ac_feature | sed 's/-/_/g'` 375 - case $ac_option in 376 - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 377 - *) ac_optarg=yes ;; 911 + ac_useropt_orig=$ac_useropt 912 + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 913 + case $ac_user_opts in 914 + *" 915 + "enable_$ac_useropt" 916 + "*) ;; 917 + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 918 + ac_unrecognized_sep=', ';; 378 919 esac 379 - eval "enable_$ac_feature='$ac_optarg'" ;; 920 + eval enable_$ac_useropt=\$ac_optarg ;; 380 921 381 922 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 382 923 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ ··· 403 944 -host=* | --host=* | --hos=* | --ho=*) 404 945 host_alias=$ac_optarg ;; 405 946 947 + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 948 + ac_prev=htmldir ;; 949 + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 950 + | --ht=*) 951 + htmldir=$ac_optarg ;; 952 + 406 953 -includedir | --includedir | --includedi | --included | --include \ 407 954 | --includ | --inclu | --incl | --inc) 408 955 ac_prev=includedir ;; ··· 427 974 | --libexe=* | --libex=* | --libe=*) 428 975 libexecdir=$ac_optarg ;; 429 976 977 + -localedir | --localedir | --localedi | --localed | --locale) 978 + ac_prev=localedir ;; 979 + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 980 + localedir=$ac_optarg ;; 981 + 430 982 -localstatedir | --localstatedir | --localstatedi | --localstated \ 431 - | --localstate | --localstat | --localsta | --localst \ 432 - | --locals | --local | --loca | --loc | --lo) 983 + | --localstate | --localstat | --localsta | --localst | --locals) 433 984 ac_prev=localstatedir ;; 434 985 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 435 - | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 436 - | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 986 + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 437 987 localstatedir=$ac_optarg ;; 438 988 439 989 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ··· 498 1048 | --progr-tra=* | --program-tr=* | --program-t=*) 499 1049 program_transform_name=$ac_optarg ;; 500 1050 1051 + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1052 + ac_prev=pdfdir ;; 1053 + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1054 + pdfdir=$ac_optarg ;; 1055 + 1056 + -psdir | --psdir | --psdi | --psd | --ps) 1057 + ac_prev=psdir ;; 1058 + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1059 + psdir=$ac_optarg ;; 1060 + 501 1061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 502 1062 | -silent | --silent | --silen | --sile | --sil) 503 1063 silent=yes ;; ··· 548 1108 ac_init_version=: ;; 549 1109 550 1110 -with-* | --with-*) 551 - ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1111 + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 552 1112 # Reject names that are not valid shell variable names. 553 - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 554 - { echo "$as_me: error: invalid package name: $ac_package" >&2 1113 + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1114 + { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 555 1115 { (exit 1); exit 1; }; } 556 - ac_package=`echo $ac_package| sed 's/-/_/g'` 557 - case $ac_option in 558 - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 559 - *) ac_optarg=yes ;; 1116 + ac_useropt_orig=$ac_useropt 1117 + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1118 + case $ac_user_opts in 1119 + *" 1120 + "with_$ac_useropt" 1121 + "*) ;; 1122 + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1123 + ac_unrecognized_sep=', ';; 560 1124 esac 561 - eval "with_$ac_package='$ac_optarg'" ;; 1125 + eval with_$ac_useropt=\$ac_optarg ;; 562 1126 563 1127 -without-* | --without-*) 564 - ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1128 + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 565 1129 # Reject names that are not valid shell variable names. 566 - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 567 - { echo "$as_me: error: invalid package name: $ac_package" >&2 1130 + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1131 + { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 568 1132 { (exit 1); exit 1; }; } 569 - ac_package=`echo $ac_package | sed 's/-/_/g'` 570 - eval "with_$ac_package=no" ;; 1133 + ac_useropt_orig=$ac_useropt 1134 + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1135 + case $ac_user_opts in 1136 + *" 1137 + "with_$ac_useropt" 1138 + "*) ;; 1139 + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1140 + ac_unrecognized_sep=', ';; 1141 + esac 1142 + eval with_$ac_useropt=no ;; 571 1143 572 1144 --x) 573 1145 # Obsolete; use --with-x. ··· 587 1159 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 588 1160 x_libraries=$ac_optarg ;; 589 1161 590 - -*) { echo "$as_me: error: unrecognized option: $ac_option 1162 + -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 591 1163 Try \`$0 --help' for more information." >&2 592 1164 { (exit 1); exit 1; }; } 593 1165 ;; ··· 596 1168 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 597 1169 # Reject names that are not valid shell variable names. 598 1170 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 599 - { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1171 + { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 600 1172 { (exit 1); exit 1; }; } 601 - ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 602 - eval "$ac_envvar='$ac_optarg'" 1173 + eval $ac_envvar=\$ac_optarg 603 1174 export $ac_envvar ;; 604 1175 605 1176 *) 606 1177 # FIXME: should be removed in autoconf 3.0. 607 - echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1178 + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 608 1179 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 609 - echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1180 + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 610 1181 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 611 1182 ;; 612 1183 ··· 615 1186 616 1187 if test -n "$ac_prev"; then 617 1188 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 618 - { echo "$as_me: error: missing argument to $ac_option" >&2 1189 + { $as_echo "$as_me: error: missing argument to $ac_option" >&2 619 1190 { (exit 1); exit 1; }; } 620 1191 fi 621 1192 622 - # Be sure to have absolute paths. 623 - for ac_var in exec_prefix prefix 624 - do 625 - eval ac_val=$`echo $ac_var` 626 - case $ac_val in 627 - [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 628 - *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 629 - { (exit 1); exit 1; }; };; 1193 + if test -n "$ac_unrecognized_opts"; then 1194 + case $enable_option_checking in 1195 + no) ;; 1196 + fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2 1197 + { (exit 1); exit 1; }; } ;; 1198 + *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;; 630 1199 esac 631 - done 1200 + fi 632 1201 633 - # Be sure to have absolute paths. 634 - for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 635 - localstatedir libdir includedir oldincludedir infodir mandir 1202 + # Check all directory arguments for consistency. 1203 + for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1204 + datadir sysconfdir sharedstatedir localstatedir includedir \ 1205 + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1206 + libdir localedir mandir 636 1207 do 637 - eval ac_val=$`echo $ac_var` 1208 + eval ac_val=\$$ac_var 1209 + # Remove trailing slashes. 638 1210 case $ac_val in 639 - [\\/$]* | ?:[\\/]* ) ;; 640 - *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 641 - { (exit 1); exit 1; }; };; 1211 + */ ) 1212 + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1213 + eval $ac_var=\$ac_val;; 642 1214 esac 1215 + # Be sure to have absolute directory names. 1216 + case $ac_val in 1217 + [\\/$]* | ?:[\\/]* ) continue;; 1218 + NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1219 + esac 1220 + { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1221 + { (exit 1); exit 1; }; } 643 1222 done 644 1223 645 1224 # There might be people who depend on the old broken behavior: `$host' ··· 653 1232 if test "x$host_alias" != x; then 654 1233 if test "x$build_alias" = x; then 655 1234 cross_compiling=maybe 656 - echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1235 + $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 657 1236 If a cross compiler is detected then cross compile mode will be used." >&2 658 1237 elif test "x$build_alias" != "x$host_alias"; then 659 1238 cross_compiling=yes ··· 664 1243 test -n "$host_alias" && ac_tool_prefix=$host_alias- 665 1244 666 1245 test "$silent" = yes && exec 6>/dev/null 1246 + 1247 + 1248 + ac_pwd=`pwd` && test -n "$ac_pwd" && 1249 + ac_ls_di=`ls -di .` && 1250 + ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1251 + { $as_echo "$as_me: error: Working directory cannot be determined" >&2 1252 + { (exit 1); exit 1; }; } 1253 + test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1254 + { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1255 + { (exit 1); exit 1; }; } 667 1256 668 1257 669 1258 # Find the source files, if location was not specified. 670 1259 if test -z "$srcdir"; then 671 1260 ac_srcdir_defaulted=yes 672 - # Try the directory containing this script, then its parent. 673 - ac_confdir=`(dirname "$0") 2>/dev/null || 674 - $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 675 - X"$0" : 'X\(//\)[^/]' \| \ 676 - X"$0" : 'X\(//\)$' \| \ 677 - X"$0" : 'X\(/\)' \| \ 678 - . : '\(.\)' 2>/dev/null || 679 - echo X"$0" | 680 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 681 - /^X\(\/\/\)[^/].*/{ s//\1/; q; } 682 - /^X\(\/\/\)$/{ s//\1/; q; } 683 - /^X\(\/\).*/{ s//\1/; q; } 684 - s/.*/./; q'` 1261 + # Try the directory containing this script, then the parent directory. 1262 + ac_confdir=`$as_dirname -- "$as_myself" || 1263 + $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1264 + X"$as_myself" : 'X\(//\)[^/]' \| \ 1265 + X"$as_myself" : 'X\(//\)$' \| \ 1266 + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1267 + $as_echo X"$as_myself" | 1268 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1269 + s//\1/ 1270 + q 1271 + } 1272 + /^X\(\/\/\)[^/].*/{ 1273 + s//\1/ 1274 + q 1275 + } 1276 + /^X\(\/\/\)$/{ 1277 + s//\1/ 1278 + q 1279 + } 1280 + /^X\(\/\).*/{ 1281 + s//\1/ 1282 + q 1283 + } 1284 + s/.*/./; q'` 685 1285 srcdir=$ac_confdir 686 - if test ! -r $srcdir/$ac_unique_file; then 1286 + if test ! -r "$srcdir/$ac_unique_file"; then 687 1287 srcdir=.. 688 1288 fi 689 1289 else 690 1290 ac_srcdir_defaulted=no 691 1291 fi 692 - if test ! -r $srcdir/$ac_unique_file; then 693 - if test "$ac_srcdir_defaulted" = yes; then 694 - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 695 - { (exit 1); exit 1; }; } 696 - else 697 - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1292 + if test ! -r "$srcdir/$ac_unique_file"; then 1293 + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1294 + { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 698 1295 { (exit 1); exit 1; }; } 699 - fi 700 1296 fi 701 - (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 702 - { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 1297 + ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1298 + ac_abs_confdir=`( 1299 + cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 703 1300 { (exit 1); exit 1; }; } 704 - srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 705 - ac_env_build_alias_set=${build_alias+set} 706 - ac_env_build_alias_value=$build_alias 707 - ac_cv_env_build_alias_set=${build_alias+set} 708 - ac_cv_env_build_alias_value=$build_alias 709 - ac_env_host_alias_set=${host_alias+set} 710 - ac_env_host_alias_value=$host_alias 711 - ac_cv_env_host_alias_set=${host_alias+set} 712 - ac_cv_env_host_alias_value=$host_alias 713 - ac_env_target_alias_set=${target_alias+set} 714 - ac_env_target_alias_value=$target_alias 715 - ac_cv_env_target_alias_set=${target_alias+set} 716 - ac_cv_env_target_alias_value=$target_alias 717 - ac_env_CC_set=${CC+set} 718 - ac_env_CC_value=$CC 719 - ac_cv_env_CC_set=${CC+set} 720 - ac_cv_env_CC_value=$CC 721 - ac_env_CFLAGS_set=${CFLAGS+set} 722 - ac_env_CFLAGS_value=$CFLAGS 723 - ac_cv_env_CFLAGS_set=${CFLAGS+set} 724 - ac_cv_env_CFLAGS_value=$CFLAGS 725 - ac_env_LDFLAGS_set=${LDFLAGS+set} 726 - ac_env_LDFLAGS_value=$LDFLAGS 727 - ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 728 - ac_cv_env_LDFLAGS_value=$LDFLAGS 729 - ac_env_CPPFLAGS_set=${CPPFLAGS+set} 730 - ac_env_CPPFLAGS_value=$CPPFLAGS 731 - ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 732 - ac_cv_env_CPPFLAGS_value=$CPPFLAGS 733 - ac_env_PKG_CONFIG_set=${PKG_CONFIG+set} 734 - ac_env_PKG_CONFIG_value=$PKG_CONFIG 735 - ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set} 736 - ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG 737 - ac_env_TMP_XAW_CFLAGS_set=${TMP_XAW_CFLAGS+set} 738 - ac_env_TMP_XAW_CFLAGS_value=$TMP_XAW_CFLAGS 739 - ac_cv_env_TMP_XAW_CFLAGS_set=${TMP_XAW_CFLAGS+set} 740 - ac_cv_env_TMP_XAW_CFLAGS_value=$TMP_XAW_CFLAGS 741 - ac_env_TMP_XAW_LIBS_set=${TMP_XAW_LIBS+set} 742 - ac_env_TMP_XAW_LIBS_value=$TMP_XAW_LIBS 743 - ac_cv_env_TMP_XAW_LIBS_set=${TMP_XAW_LIBS+set} 744 - ac_cv_env_TMP_XAW_LIBS_value=$TMP_XAW_LIBS 745 - ac_env_XPRINT_UTIL_CFLAGS_set=${XPRINT_UTIL_CFLAGS+set} 746 - ac_env_XPRINT_UTIL_CFLAGS_value=$XPRINT_UTIL_CFLAGS 747 - ac_cv_env_XPRINT_UTIL_CFLAGS_set=${XPRINT_UTIL_CFLAGS+set} 748 - ac_cv_env_XPRINT_UTIL_CFLAGS_value=$XPRINT_UTIL_CFLAGS 749 - ac_env_XPRINT_UTIL_LIBS_set=${XPRINT_UTIL_LIBS+set} 750 - ac_env_XPRINT_UTIL_LIBS_value=$XPRINT_UTIL_LIBS 751 - ac_cv_env_XPRINT_UTIL_LIBS_set=${XPRINT_UTIL_LIBS+set} 752 - ac_cv_env_XPRINT_UTIL_LIBS_value=$XPRINT_UTIL_LIBS 753 - ac_env_APPDEFS_CFLAGS_set=${APPDEFS_CFLAGS+set} 754 - ac_env_APPDEFS_CFLAGS_value=$APPDEFS_CFLAGS 755 - ac_cv_env_APPDEFS_CFLAGS_set=${APPDEFS_CFLAGS+set} 756 - ac_cv_env_APPDEFS_CFLAGS_value=$APPDEFS_CFLAGS 757 - ac_env_APPDEFS_LIBS_set=${APPDEFS_LIBS+set} 758 - ac_env_APPDEFS_LIBS_value=$APPDEFS_LIBS 759 - ac_cv_env_APPDEFS_LIBS_set=${APPDEFS_LIBS+set} 760 - ac_cv_env_APPDEFS_LIBS_value=$APPDEFS_LIBS 1301 + pwd)` 1302 + # When building in place, set srcdir=. 1303 + if test "$ac_abs_confdir" = "$ac_pwd"; then 1304 + srcdir=. 1305 + fi 1306 + # Remove unnecessary trailing slashes from srcdir. 1307 + # Double slashes in file names in object file debugging info 1308 + # mess up M-x gdb in Emacs. 1309 + case $srcdir in 1310 + */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1311 + esac 1312 + for ac_var in $ac_precious_vars; do 1313 + eval ac_env_${ac_var}_set=\${${ac_var}+set} 1314 + eval ac_env_${ac_var}_value=\$${ac_var} 1315 + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1316 + eval ac_cv_env_${ac_var}_value=\$${ac_var} 1317 + done 761 1318 762 1319 # 763 1320 # Report the --help message. ··· 786 1343 -n, --no-create do not create output files 787 1344 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 788 1345 789 - _ACEOF 790 - 791 - cat <<_ACEOF 792 1346 Installation directories: 793 1347 --prefix=PREFIX install architecture-independent files in PREFIX 794 - [$ac_default_prefix] 1348 + [$ac_default_prefix] 795 1349 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 796 - [PREFIX] 1350 + [PREFIX] 797 1351 798 1352 By default, \`make install' will install all the files in 799 1353 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify ··· 803 1357 For better control, use the options below. 804 1358 805 1359 Fine tuning of the installation directories: 806 - --bindir=DIR user executables [EPREFIX/bin] 807 - --sbindir=DIR system admin executables [EPREFIX/sbin] 808 - --libexecdir=DIR program executables [EPREFIX/libexec] 809 - --datadir=DIR read-only architecture-independent data [PREFIX/share] 810 - --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 811 - --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 812 - --localstatedir=DIR modifiable single-machine data [PREFIX/var] 813 - --libdir=DIR object code libraries [EPREFIX/lib] 814 - --includedir=DIR C header files [PREFIX/include] 815 - --oldincludedir=DIR C header files for non-gcc [/usr/include] 816 - --infodir=DIR info documentation [PREFIX/info] 817 - --mandir=DIR man documentation [PREFIX/man] 1360 + --bindir=DIR user executables [EPREFIX/bin] 1361 + --sbindir=DIR system admin executables [EPREFIX/sbin] 1362 + --libexecdir=DIR program executables [EPREFIX/libexec] 1363 + --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1364 + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1365 + --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1366 + --libdir=DIR object code libraries [EPREFIX/lib] 1367 + --includedir=DIR C header files [PREFIX/include] 1368 + --oldincludedir=DIR C header files for non-gcc [/usr/include] 1369 + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1370 + --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1371 + --infodir=DIR info documentation [DATAROOTDIR/info] 1372 + --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1373 + --mandir=DIR man documentation [DATAROOTDIR/man] 1374 + --docdir=DIR documentation root [DATAROOTDIR/doc/xmore] 1375 + --htmldir=DIR html documentation [DOCDIR] 1376 + --dvidir=DIR dvi documentation [DOCDIR] 1377 + --pdfdir=DIR pdf documentation [DOCDIR] 1378 + --psdir=DIR ps documentation [DOCDIR] 818 1379 _ACEOF 819 1380 820 1381 cat <<\_ACEOF ··· 837 1398 cat <<\_ACEOF 838 1399 839 1400 Optional Features: 1401 + --disable-option-checking ignore unrecognized --enable/--with options 840 1402 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 841 1403 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 842 1404 --enable-maintainer-mode enable make rules and dependencies not useful 843 1405 (and sometimes confusing) to the casual installer 844 1406 --disable-dependency-tracking speeds up one-time build 845 1407 --enable-dependency-tracking do not reject slow dependency extractors 846 - --enable-xprint Enable XPrint support 1408 + --enable-strict-compilation 1409 + Enable all warnings from compiler and make them 1410 + errors (default: disabled) 847 1411 848 1412 Optional Packages: 849 1413 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 850 1414 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 851 1415 --with-release-version=STRING 852 1416 Use release version string in package name 1417 + --with-appdefaultdir=<pathname> 1418 + specify directory for app-defaults files (default is 1419 + autodetected) 853 1420 854 1421 Some influential environment variables: 855 1422 CC C compiler command 856 1423 CFLAGS C compiler flags 857 1424 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 858 1425 nonstandard directory <lib dir> 859 - CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 860 - headers in a nonstandard directory <include dir> 1426 + LIBS libraries to pass to the linker, e.g. -l<library> 1427 + CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1428 + you have headers in a nonstandard directory <include dir> 1429 + CPP C preprocessor 861 1430 PKG_CONFIG path to pkg-config utility 862 - TMP_XAW_CFLAGS 863 - C compiler flags for TMP_XAW, overriding pkg-config 864 - TMP_XAW_LIBS 865 - linker flags for TMP_XAW, overriding pkg-config 866 - XPRINT_UTIL_CFLAGS 867 - C compiler flags for XPRINT_UTIL, overriding pkg-config 868 - XPRINT_UTIL_LIBS 869 - linker flags for XPRINT_UTIL, overriding pkg-config 1431 + XMORE_CFLAGS 1432 + C compiler flags for XMORE, overriding pkg-config 1433 + XMORE_LIBS linker flags for XMORE, overriding pkg-config 870 1434 APPDEFS_CFLAGS 871 1435 C compiler flags for APPDEFS, overriding pkg-config 872 1436 APPDEFS_LIBS ··· 877 1441 878 1442 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 879 1443 _ACEOF 1444 + ac_status=$? 880 1445 fi 881 1446 882 1447 if test "$ac_init_help" = "recursive"; then 883 1448 # If there are subdirs, report their specific --help. 884 - ac_popdir=`pwd` 885 1449 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 886 - test -d $ac_dir || continue 1450 + test -d "$ac_dir" || 1451 + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1452 + continue 887 1453 ac_builddir=. 888 1454 889 - if test "$ac_dir" != .; then 890 - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 891 - # A "../" for each directory in $ac_dir_suffix. 892 - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 893 - else 894 - ac_dir_suffix= ac_top_builddir= 895 - fi 1455 + case "$ac_dir" in 1456 + .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1457 + *) 1458 + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1459 + # A ".." for each directory in $ac_dir_suffix. 1460 + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1461 + case $ac_top_builddir_sub in 1462 + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1463 + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1464 + esac ;; 1465 + esac 1466 + ac_abs_top_builddir=$ac_pwd 1467 + ac_abs_builddir=$ac_pwd$ac_dir_suffix 1468 + # for backward compatibility: 1469 + ac_top_builddir=$ac_top_build_prefix 896 1470 897 1471 case $srcdir in 898 - .) # No --srcdir option. We are building in place. 1472 + .) # We are building in place. 899 1473 ac_srcdir=. 900 - if test -z "$ac_top_builddir"; then 901 - ac_top_srcdir=. 902 - else 903 - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 904 - fi ;; 905 - [\\/]* | ?:[\\/]* ) # Absolute path. 1474 + ac_top_srcdir=$ac_top_builddir_sub 1475 + ac_abs_top_srcdir=$ac_pwd ;; 1476 + [\\/]* | ?:[\\/]* ) # Absolute name. 906 1477 ac_srcdir=$srcdir$ac_dir_suffix; 907 - ac_top_srcdir=$srcdir ;; 908 - *) # Relative path. 909 - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 910 - ac_top_srcdir=$ac_top_builddir$srcdir ;; 911 - esac 912 - 913 - # Do not use `cd foo && pwd` to compute absolute paths, because 914 - # the directories may not exist. 915 - case `pwd` in 916 - .) ac_abs_builddir="$ac_dir";; 917 - *) 918 - case "$ac_dir" in 919 - .) ac_abs_builddir=`pwd`;; 920 - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 921 - *) ac_abs_builddir=`pwd`/"$ac_dir";; 922 - esac;; 923 - esac 924 - case $ac_abs_builddir in 925 - .) ac_abs_top_builddir=${ac_top_builddir}.;; 926 - *) 927 - case ${ac_top_builddir}. in 928 - .) ac_abs_top_builddir=$ac_abs_builddir;; 929 - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 930 - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 931 - esac;; 932 - esac 933 - case $ac_abs_builddir in 934 - .) ac_abs_srcdir=$ac_srcdir;; 935 - *) 936 - case $ac_srcdir in 937 - .) ac_abs_srcdir=$ac_abs_builddir;; 938 - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 939 - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 940 - esac;; 941 - esac 942 - case $ac_abs_builddir in 943 - .) ac_abs_top_srcdir=$ac_top_srcdir;; 944 - *) 945 - case $ac_top_srcdir in 946 - .) ac_abs_top_srcdir=$ac_abs_builddir;; 947 - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 948 - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 949 - esac;; 1478 + ac_top_srcdir=$srcdir 1479 + ac_abs_top_srcdir=$srcdir ;; 1480 + *) # Relative name. 1481 + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1482 + ac_top_srcdir=$ac_top_build_prefix$srcdir 1483 + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 950 1484 esac 1485 + ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 951 1486 952 - cd $ac_dir 953 - # Check for guested configure; otherwise get Cygnus style configure. 954 - if test -f $ac_srcdir/configure.gnu; then 955 - echo 956 - $SHELL $ac_srcdir/configure.gnu --help=recursive 957 - elif test -f $ac_srcdir/configure; then 958 - echo 959 - $SHELL $ac_srcdir/configure --help=recursive 960 - elif test -f $ac_srcdir/configure.ac || 961 - test -f $ac_srcdir/configure.in; then 962 - echo 963 - $ac_configure --help 1487 + cd "$ac_dir" || { ac_status=$?; continue; } 1488 + # Check for guested configure. 1489 + if test -f "$ac_srcdir/configure.gnu"; then 1490 + echo && 1491 + $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1492 + elif test -f "$ac_srcdir/configure"; then 1493 + echo && 1494 + $SHELL "$ac_srcdir/configure" --help=recursive 964 1495 else 965 - echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 966 - fi 967 - cd $ac_popdir 1496 + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1497 + fi || ac_status=$? 1498 + cd "$ac_pwd" || { ac_status=$?; break; } 968 1499 done 969 1500 fi 970 1501 971 - test -n "$ac_init_help" && exit 0 1502 + test -n "$ac_init_help" && exit $ac_status 972 1503 if $ac_init_version; then 973 1504 cat <<\_ACEOF 974 1505 xmore configure 1.0.1 975 - generated by GNU Autoconf 2.59 1506 + generated by GNU Autoconf 2.62 976 1507 977 - Copyright (C) 2003 Free Software Foundation, Inc. 1508 + Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 1509 + 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 978 1510 This configure script is free software; the Free Software Foundation 979 1511 gives unlimited permission to copy, distribute and modify it. 980 1512 _ACEOF 981 - exit 0 1513 + exit 982 1514 fi 983 - exec 5>config.log 984 - cat >&5 <<_ACEOF 1515 + cat >config.log <<_ACEOF 985 1516 This file contains any messages produced by compilers while 986 1517 running configure, to aid debugging if configure makes a mistake. 987 1518 988 1519 It was created by xmore $as_me 1.0.1, which was 989 - generated by GNU Autoconf 2.59. Invocation command line was 1520 + generated by GNU Autoconf 2.62. Invocation command line was 990 1521 991 1522 $ $0 $@ 992 1523 993 1524 _ACEOF 1525 + exec 5>>config.log 994 1526 { 995 1527 cat <<_ASUNAME 996 1528 ## --------- ## ··· 1009 1541 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1010 1542 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1011 1543 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1012 - hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1544 + /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1013 1545 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1014 1546 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1015 1547 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` ··· 1021 1553 do 1022 1554 IFS=$as_save_IFS 1023 1555 test -z "$as_dir" && as_dir=. 1024 - echo "PATH: $as_dir" 1556 + $as_echo "PATH: $as_dir" 1025 1557 done 1558 + IFS=$as_save_IFS 1026 1559 1027 1560 } >&5 1028 1561 ··· 1044 1577 ac_configure_args= 1045 1578 ac_configure_args0= 1046 1579 ac_configure_args1= 1047 - ac_sep= 1048 1580 ac_must_keep_next=false 1049 1581 for ac_pass in 1 2 1050 1582 do ··· 1055 1587 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1056 1588 | -silent | --silent | --silen | --sile | --sil) 1057 1589 continue ;; 1058 - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1059 - ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1590 + *\'*) 1591 + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1060 1592 esac 1061 1593 case $ac_pass in 1062 1594 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; ··· 1077 1609 -* ) ac_must_keep_next=true ;; 1078 1610 esac 1079 1611 fi 1080 - ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1081 - # Get rid of the leading space. 1082 - ac_sep=" " 1612 + ac_configure_args="$ac_configure_args '$ac_arg'" 1083 1613 ;; 1084 1614 esac 1085 1615 done ··· 1090 1620 # When interrupted or exit'd, cleanup temporary files, and complete 1091 1621 # config.log. We remove comments because anyway the quotes in there 1092 1622 # would cause problems or look ugly. 1093 - # WARNING: Be sure not to use single quotes in there, as some shells, 1094 - # such as our DU 5.0 friend, will then `close' the trap. 1623 + # WARNING: Use '\'' to represent an apostrophe within the trap. 1624 + # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1095 1625 trap 'exit_status=$? 1096 1626 # Save into config.log some information that might help in debugging. 1097 1627 { ··· 1104 1634 _ASBOX 1105 1635 echo 1106 1636 # The following way of writing the cache mishandles newlines in values, 1107 - { 1637 + ( 1638 + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1639 + eval ac_val=\$$ac_var 1640 + case $ac_val in #( 1641 + *${as_nl}*) 1642 + case $ac_var in #( 1643 + *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1644 + $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1645 + esac 1646 + case $ac_var in #( 1647 + _ | IFS | as_nl) ;; #( 1648 + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1649 + *) $as_unset $ac_var ;; 1650 + esac ;; 1651 + esac 1652 + done 1108 1653 (set) 2>&1 | 1109 - case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1110 - *ac_space=\ *) 1654 + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1655 + *${as_nl}ac_space=\ *) 1111 1656 sed -n \ 1112 - "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1113 - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1114 - ;; 1657 + "s/'\''/'\''\\\\'\'''\''/g; 1658 + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1659 + ;; #( 1115 1660 *) 1116 - sed -n \ 1117 - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1661 + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1118 1662 ;; 1119 - esac; 1120 - } 1663 + esac | 1664 + sort 1665 + ) 1121 1666 echo 1122 1667 1123 1668 cat <<\_ASBOX ··· 1128 1673 echo 1129 1674 for ac_var in $ac_subst_vars 1130 1675 do 1131 - eval ac_val=$`echo $ac_var` 1132 - echo "$ac_var='"'"'$ac_val'"'"'" 1676 + eval ac_val=\$$ac_var 1677 + case $ac_val in 1678 + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1679 + esac 1680 + $as_echo "$ac_var='\''$ac_val'\''" 1133 1681 done | sort 1134 1682 echo 1135 1683 1136 1684 if test -n "$ac_subst_files"; then 1137 1685 cat <<\_ASBOX 1138 - ## ------------- ## 1139 - ## Output files. ## 1140 - ## ------------- ## 1686 + ## ------------------- ## 1687 + ## File substitutions. ## 1688 + ## ------------------- ## 1141 1689 _ASBOX 1142 1690 echo 1143 1691 for ac_var in $ac_subst_files 1144 1692 do 1145 - eval ac_val=$`echo $ac_var` 1146 - echo "$ac_var='"'"'$ac_val'"'"'" 1693 + eval ac_val=\$$ac_var 1694 + case $ac_val in 1695 + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1696 + esac 1697 + $as_echo "$ac_var='\''$ac_val'\''" 1147 1698 done | sort 1148 1699 echo 1149 1700 fi ··· 1155 1706 ## ----------- ## 1156 1707 _ASBOX 1157 1708 echo 1158 - sed "/^$/d" confdefs.h | sort 1709 + cat confdefs.h 1159 1710 echo 1160 1711 fi 1161 1712 test "$ac_signal" != 0 && 1162 - echo "$as_me: caught signal $ac_signal" 1163 - echo "$as_me: exit $exit_status" 1713 + $as_echo "$as_me: caught signal $ac_signal" 1714 + $as_echo "$as_me: exit $exit_status" 1164 1715 } >&5 1165 - rm -f core *.core && 1166 - rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1716 + rm -f core *.core core.conftest.* && 1717 + rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1167 1718 exit $exit_status 1168 - ' 0 1719 + ' 0 1169 1720 for ac_signal in 1 2 13 15; do 1170 1721 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1171 1722 done 1172 1723 ac_signal=0 1173 1724 1174 1725 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1175 - rm -rf conftest* confdefs.h 1176 - # AIX cpp loses on an empty file, so make sure it contains at least a newline. 1177 - echo >confdefs.h 1726 + rm -f -r conftest* confdefs.h 1178 1727 1179 1728 # Predefined preprocessor variables. 1180 1729 ··· 1204 1753 1205 1754 1206 1755 # Let the site file select an alternate cache file if it wants to. 1207 - # Prefer explicitly selected file to automatically selected ones. 1208 - if test -z "$CONFIG_SITE"; then 1209 - if test "x$prefix" != xNONE; then 1210 - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1211 - else 1212 - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1213 - fi 1756 + # Prefer an explicitly selected file to automatically selected ones. 1757 + ac_site_file1=NONE 1758 + ac_site_file2=NONE 1759 + if test -n "$CONFIG_SITE"; then 1760 + ac_site_file1=$CONFIG_SITE 1761 + elif test "x$prefix" != xNONE; then 1762 + ac_site_file1=$prefix/share/config.site 1763 + ac_site_file2=$prefix/etc/config.site 1764 + else 1765 + ac_site_file1=$ac_default_prefix/share/config.site 1766 + ac_site_file2=$ac_default_prefix/etc/config.site 1214 1767 fi 1215 - for ac_site_file in $CONFIG_SITE; do 1768 + for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1769 + do 1770 + test "x$ac_site_file" = xNONE && continue 1216 1771 if test -r "$ac_site_file"; then 1217 - { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1218 - echo "$as_me: loading site script $ac_site_file" >&6;} 1772 + { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1773 + $as_echo "$as_me: loading site script $ac_site_file" >&6;} 1219 1774 sed 's/^/| /' "$ac_site_file" >&5 1220 1775 . "$ac_site_file" 1221 1776 fi ··· 1225 1780 # Some versions of bash will fail to source /dev/null (special 1226 1781 # files actually), so we avoid doing that. 1227 1782 if test -f "$cache_file"; then 1228 - { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1229 - echo "$as_me: loading cache $cache_file" >&6;} 1783 + { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 1784 + $as_echo "$as_me: loading cache $cache_file" >&6;} 1230 1785 case $cache_file in 1231 - [\\/]* | ?:[\\/]* ) . $cache_file;; 1232 - *) . ./$cache_file;; 1786 + [\\/]* | ?:[\\/]* ) . "$cache_file";; 1787 + *) . "./$cache_file";; 1233 1788 esac 1234 1789 fi 1235 1790 else 1236 - { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1237 - echo "$as_me: creating cache $cache_file" >&6;} 1791 + { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 1792 + $as_echo "$as_me: creating cache $cache_file" >&6;} 1238 1793 >$cache_file 1239 1794 fi 1240 1795 1241 1796 # Check that the precious variables saved in the cache have kept the same 1242 1797 # value. 1243 1798 ac_cache_corrupted=false 1244 - for ac_var in `(set) 2>&1 | 1245 - sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1799 + for ac_var in $ac_precious_vars; do 1246 1800 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1247 1801 eval ac_new_set=\$ac_env_${ac_var}_set 1248 - eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1249 - eval ac_new_val="\$ac_env_${ac_var}_value" 1802 + eval ac_old_val=\$ac_cv_env_${ac_var}_value 1803 + eval ac_new_val=\$ac_env_${ac_var}_value 1250 1804 case $ac_old_set,$ac_new_set in 1251 1805 set,) 1252 - { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1253 - echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1806 + { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1807 + $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1254 1808 ac_cache_corrupted=: ;; 1255 1809 ,set) 1256 - { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1257 - echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1810 + { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1811 + $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1258 1812 ac_cache_corrupted=: ;; 1259 1813 ,);; 1260 1814 *) 1261 1815 if test "x$ac_old_val" != "x$ac_new_val"; then 1262 - { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1263 - echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1264 - { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1265 - echo "$as_me: former value: $ac_old_val" >&2;} 1266 - { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1267 - echo "$as_me: current value: $ac_new_val" >&2;} 1268 - ac_cache_corrupted=: 1816 + # differences in whitespace do not lead to failure. 1817 + ac_old_val_w=`echo x $ac_old_val` 1818 + ac_new_val_w=`echo x $ac_new_val` 1819 + if test "$ac_old_val_w" != "$ac_new_val_w"; then 1820 + { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1821 + $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1822 + ac_cache_corrupted=: 1823 + else 1824 + { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 1825 + $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 1826 + eval $ac_var=\$ac_old_val 1827 + fi 1828 + { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 1829 + $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 1830 + { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 1831 + $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 1269 1832 fi;; 1270 1833 esac 1271 1834 # Pass precious variables to config.status. 1272 1835 if test "$ac_new_set" = set; then 1273 1836 case $ac_new_val in 1274 - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1275 - ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1837 + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1276 1838 *) ac_arg=$ac_var=$ac_new_val ;; 1277 1839 esac 1278 1840 case " $ac_configure_args " in ··· 1282 1844 fi 1283 1845 done 1284 1846 if $ac_cache_corrupted; then 1285 - { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1286 - echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1287 - { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1288 - echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1847 + { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1848 + $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1849 + { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1850 + $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1289 1851 { (exit 1); exit 1; }; } 1290 1852 fi 1291 - 1292 - ac_ext=c 1293 - ac_cpp='$CPP $CPPFLAGS' 1294 - ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1295 - ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1296 - ac_compiler_gnu=$ac_cv_c_compiler_gnu 1297 1853 1298 1854 1299 1855 ··· 1319 1875 1320 1876 1321 1877 1878 + ac_ext=c 1879 + ac_cpp='$CPP $CPPFLAGS' 1880 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1881 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1882 + ac_compiler_gnu=$ac_cv_c_compiler_gnu 1322 1883 1323 1884 1324 1885 am__api_version="1.9" 1325 1886 ac_aux_dir= 1326 - for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1327 - if test -f $ac_dir/install-sh; then 1887 + for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 1888 + if test -f "$ac_dir/install-sh"; then 1328 1889 ac_aux_dir=$ac_dir 1329 1890 ac_install_sh="$ac_aux_dir/install-sh -c" 1330 1891 break 1331 - elif test -f $ac_dir/install.sh; then 1892 + elif test -f "$ac_dir/install.sh"; then 1332 1893 ac_aux_dir=$ac_dir 1333 1894 ac_install_sh="$ac_aux_dir/install.sh -c" 1334 1895 break 1335 - elif test -f $ac_dir/shtool; then 1896 + elif test -f "$ac_dir/shtool"; then 1336 1897 ac_aux_dir=$ac_dir 1337 1898 ac_install_sh="$ac_aux_dir/shtool install -c" 1338 1899 break 1339 1900 fi 1340 1901 done 1341 1902 if test -z "$ac_aux_dir"; then 1342 - { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1343 - echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1903 + { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 1904 + $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 1344 1905 { (exit 1); exit 1; }; } 1345 1906 fi 1346 - ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1347 - ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1348 - ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1907 + 1908 + # These three variables are undocumented and unsupported, 1909 + # and are intended to be withdrawn in a future Autoconf release. 1910 + # They can cause serious problems if a builder's source tree is in a directory 1911 + # whose full name contains unusual characters. 1912 + ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1913 + ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1914 + ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1915 + 1349 1916 1350 1917 # Find a good install program. We prefer a C program (faster), 1351 1918 # so one script is as good as another. But avoid the broken or ··· 1360 1927 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1361 1928 # OS/2's system install, which has a completely different semantic 1362 1929 # ./install, which can be erroneously created by make from ./install.sh. 1363 - echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1364 - echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1930 + # Reject install programs that cannot install multiple files. 1931 + { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1932 + $as_echo_n "checking for a BSD-compatible install... " >&6; } 1365 1933 if test -z "$INSTALL"; then 1366 1934 if test "${ac_cv_path_install+set}" = set; then 1367 - echo $ECHO_N "(cached) $ECHO_C" >&6 1935 + $as_echo_n "(cached) " >&6 1368 1936 else 1369 1937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1370 1938 for as_dir in $PATH ··· 1383 1951 # by default. 1384 1952 for ac_prog in ginstall scoinst install; do 1385 1953 for ac_exec_ext in '' $ac_executable_extensions; do 1386 - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1954 + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 1387 1955 if test $ac_prog = install && 1388 1956 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1389 1957 # AIX install. It has an incompatible calling convention. ··· 1393 1961 # program-specific install script used by HP pwplus--don't use. 1394 1962 : 1395 1963 else 1396 - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1397 - break 3 1964 + rm -rf conftest.one conftest.two conftest.dir 1965 + echo one > conftest.one 1966 + echo two > conftest.two 1967 + mkdir conftest.dir 1968 + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 1969 + test -s conftest.one && test -s conftest.two && 1970 + test -s conftest.dir/conftest.one && 1971 + test -s conftest.dir/conftest.two 1972 + then 1973 + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1974 + break 3 1975 + fi 1398 1976 fi 1399 1977 fi 1400 1978 done 1401 1979 done 1402 1980 ;; 1403 1981 esac 1982 + 1404 1983 done 1984 + IFS=$as_save_IFS 1405 1985 1986 + rm -rf conftest.one conftest.two conftest.dir 1406 1987 1407 1988 fi 1408 1989 if test "${ac_cv_path_install+set}" = set; then 1409 1990 INSTALL=$ac_cv_path_install 1410 1991 else 1411 - # As a last resort, use the slow shell script. We don't cache a 1412 - # path for INSTALL within a source directory, because that will 1992 + # As a last resort, use the slow shell script. Don't cache a 1993 + # value for INSTALL within a source directory, because that will 1413 1994 # break other packages using the cache if that directory is 1414 - # removed, or if the path is relative. 1995 + # removed, or if the value is a relative name. 1415 1996 INSTALL=$ac_install_sh 1416 1997 fi 1417 1998 fi 1418 - echo "$as_me:$LINENO: result: $INSTALL" >&5 1419 - echo "${ECHO_T}$INSTALL" >&6 1999 + { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 2000 + $as_echo "$INSTALL" >&6; } 1420 2001 1421 2002 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1422 2003 # It thinks the first close brace ends the variable substitution. ··· 1427 2008 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1428 2009 1429 2010 test "$program_prefix" != NONE && 1430 - program_transform_name="s,^,$program_prefix,;$program_transform_name" 2011 + program_transform_name="s&^&$program_prefix&;$program_transform_name" 1431 2012 # Use a double $ so make ignores it. 1432 2013 test "$program_suffix" != NONE && 1433 - program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1434 - # Double any \ or $. echo might interpret backslashes. 2014 + program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2015 + # Double any \ or $. 1435 2016 # By default was `s,x,x', remove it if useless. 1436 - cat <<\_ACEOF >conftest.sed 1437 - s/[\\$]/&&/g;s/;s,x,x,$// 1438 - _ACEOF 1439 - program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1440 - rm conftest.sed 2017 + ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2018 + program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 1441 2019 1442 2020 # expand $ac_aux_dir to an absolute path 1443 2021 am_aux_dir=`cd $ac_aux_dir && pwd` ··· 1448 2026 am_missing_run="$MISSING --run " 1449 2027 else 1450 2028 am_missing_run= 1451 - { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 1452 - echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2029 + { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2030 + $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 1453 2031 fi 1454 2032 1455 2033 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then ··· 1489 2067 do 1490 2068 # Extract the first word of "$ac_prog", so it can be a program name with args. 1491 2069 set dummy $ac_prog; ac_word=$2 1492 - echo "$as_me:$LINENO: checking for $ac_word" >&5 1493 - echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2070 + { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2071 + $as_echo_n "checking for $ac_word... " >&6; } 1494 2072 if test "${ac_cv_prog_AWK+set}" = set; then 1495 - echo $ECHO_N "(cached) $ECHO_C" >&6 2073 + $as_echo_n "(cached) " >&6 1496 2074 else 1497 2075 if test -n "$AWK"; then 1498 2076 ac_cv_prog_AWK="$AWK" # Let the user override the test. ··· 1503 2081 IFS=$as_save_IFS 1504 2082 test -z "$as_dir" && as_dir=. 1505 2083 for ac_exec_ext in '' $ac_executable_extensions; do 1506 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2084 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1507 2085 ac_cv_prog_AWK="$ac_prog" 1508 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2086 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1509 2087 break 2 1510 2088 fi 1511 2089 done 1512 2090 done 2091 + IFS=$as_save_IFS 1513 2092 1514 2093 fi 1515 2094 fi 1516 2095 AWK=$ac_cv_prog_AWK 1517 2096 if test -n "$AWK"; then 1518 - echo "$as_me:$LINENO: result: $AWK" >&5 1519 - echo "${ECHO_T}$AWK" >&6 2097 + { $as_echo "$as_me:$LINENO: result: $AWK" >&5 2098 + $as_echo "$AWK" >&6; } 1520 2099 else 1521 - echo "$as_me:$LINENO: result: no" >&5 1522 - echo "${ECHO_T}no" >&6 2100 + { $as_echo "$as_me:$LINENO: result: no" >&5 2101 + $as_echo "no" >&6; } 1523 2102 fi 2103 + 1524 2104 1525 2105 test -n "$AWK" && break 1526 2106 done 1527 2107 1528 - echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1529 - echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1530 - set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 1531 - if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1532 - echo $ECHO_N "(cached) $ECHO_C" >&6 2108 + { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2109 + $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2110 + set x ${MAKE-make} 2111 + ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2112 + if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2113 + $as_echo_n "(cached) " >&6 1533 2114 else 1534 2115 cat >conftest.make <<\_ACEOF 2116 + SHELL = /bin/sh 1535 2117 all: 1536 - @echo 'ac_maketemp="$(MAKE)"' 2118 + @echo '@@@%%%=$(MAKE)=@@@%%%' 1537 2119 _ACEOF 1538 2120 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1539 - eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1540 - if test -n "$ac_maketemp"; then 1541 - eval ac_cv_prog_make_${ac_make}_set=yes 1542 - else 1543 - eval ac_cv_prog_make_${ac_make}_set=no 1544 - fi 2121 + case `${MAKE-make} -f conftest.make 2>/dev/null` in 2122 + *@@@%%%=?*=@@@%%%*) 2123 + eval ac_cv_prog_make_${ac_make}_set=yes;; 2124 + *) 2125 + eval ac_cv_prog_make_${ac_make}_set=no;; 2126 + esac 1545 2127 rm -f conftest.make 1546 2128 fi 1547 - if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1548 - echo "$as_me:$LINENO: result: yes" >&5 1549 - echo "${ECHO_T}yes" >&6 2129 + if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2130 + { $as_echo "$as_me:$LINENO: result: yes" >&5 2131 + $as_echo "yes" >&6; } 1550 2132 SET_MAKE= 1551 2133 else 1552 - echo "$as_me:$LINENO: result: no" >&5 1553 - echo "${ECHO_T}no" >&6 2134 + { $as_echo "$as_me:$LINENO: result: no" >&5 2135 + $as_echo "no" >&6; } 1554 2136 SET_MAKE="MAKE=${MAKE-make}" 1555 2137 fi 1556 2138 ··· 1566 2148 # test to see if srcdir already configured 1567 2149 if test "`cd $srcdir && pwd`" != "`pwd`" && 1568 2150 test -f $srcdir/config.status; then 1569 - { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1570 - echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2151 + { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2152 + $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1571 2153 { (exit 1); exit 1; }; } 1572 2154 fi 1573 2155 ··· 1621 2203 if test -n "$ac_tool_prefix"; then 1622 2204 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 1623 2205 set dummy ${ac_tool_prefix}strip; ac_word=$2 1624 - echo "$as_me:$LINENO: checking for $ac_word" >&5 1625 - echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2206 + { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2207 + $as_echo_n "checking for $ac_word... " >&6; } 1626 2208 if test "${ac_cv_prog_STRIP+set}" = set; then 1627 - echo $ECHO_N "(cached) $ECHO_C" >&6 2209 + $as_echo_n "(cached) " >&6 1628 2210 else 1629 2211 if test -n "$STRIP"; then 1630 2212 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. ··· 1635 2217 IFS=$as_save_IFS 1636 2218 test -z "$as_dir" && as_dir=. 1637 2219 for ac_exec_ext in '' $ac_executable_extensions; do 1638 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2220 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1639 2221 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 1640 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2222 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1641 2223 break 2 1642 2224 fi 1643 2225 done 1644 2226 done 2227 + IFS=$as_save_IFS 1645 2228 1646 2229 fi 1647 2230 fi 1648 2231 STRIP=$ac_cv_prog_STRIP 1649 2232 if test -n "$STRIP"; then 1650 - echo "$as_me:$LINENO: result: $STRIP" >&5 1651 - echo "${ECHO_T}$STRIP" >&6 2233 + { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 2234 + $as_echo "$STRIP" >&6; } 1652 2235 else 1653 - echo "$as_me:$LINENO: result: no" >&5 1654 - echo "${ECHO_T}no" >&6 2236 + { $as_echo "$as_me:$LINENO: result: no" >&5 2237 + $as_echo "no" >&6; } 1655 2238 fi 2239 + 1656 2240 1657 2241 fi 1658 2242 if test -z "$ac_cv_prog_STRIP"; then 1659 2243 ac_ct_STRIP=$STRIP 1660 2244 # Extract the first word of "strip", so it can be a program name with args. 1661 2245 set dummy strip; ac_word=$2 1662 - echo "$as_me:$LINENO: checking for $ac_word" >&5 1663 - echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2246 + { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2247 + $as_echo_n "checking for $ac_word... " >&6; } 1664 2248 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 1665 - echo $ECHO_N "(cached) $ECHO_C" >&6 2249 + $as_echo_n "(cached) " >&6 1666 2250 else 1667 2251 if test -n "$ac_ct_STRIP"; then 1668 2252 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. ··· 1673 2257 IFS=$as_save_IFS 1674 2258 test -z "$as_dir" && as_dir=. 1675 2259 for ac_exec_ext in '' $ac_executable_extensions; do 1676 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2260 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1677 2261 ac_cv_prog_ac_ct_STRIP="strip" 1678 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2262 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1679 2263 break 2 1680 2264 fi 1681 2265 done 1682 2266 done 2267 + IFS=$as_save_IFS 1683 2268 1684 - test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 1685 2269 fi 1686 2270 fi 1687 2271 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 1688 2272 if test -n "$ac_ct_STRIP"; then 1689 - echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 1690 - echo "${ECHO_T}$ac_ct_STRIP" >&6 2273 + { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2274 + $as_echo "$ac_ct_STRIP" >&6; } 1691 2275 else 1692 - echo "$as_me:$LINENO: result: no" >&5 1693 - echo "${ECHO_T}no" >&6 2276 + { $as_echo "$as_me:$LINENO: result: no" >&5 2277 + $as_echo "no" >&6; } 1694 2278 fi 1695 2279 1696 - STRIP=$ac_ct_STRIP 2280 + if test "x$ac_ct_STRIP" = x; then 2281 + STRIP=":" 2282 + else 2283 + case $cross_compiling:$ac_tool_warned in 2284 + yes:) 2285 + { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2286 + whose name does not start with the host triplet. If you think this 2287 + configuration is useful to you, please write to autoconf@gnu.org." >&5 2288 + $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2289 + whose name does not start with the host triplet. If you think this 2290 + configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2291 + ac_tool_warned=yes ;; 2292 + esac 2293 + STRIP=$ac_ct_STRIP 2294 + fi 1697 2295 else 1698 2296 STRIP="$ac_cv_prog_STRIP" 1699 2297 fi ··· 1713 2311 1714 2312 1715 2313 1716 - echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 1717 - echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 1718 - # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 2314 + { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2315 + $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2316 + # Check whether --enable-maintainer-mode was given. 1719 2317 if test "${enable_maintainer_mode+set}" = set; then 1720 - enableval="$enable_maintainer_mode" 1721 - USE_MAINTAINER_MODE=$enableval 2318 + enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 1722 2319 else 1723 2320 USE_MAINTAINER_MODE=no 1724 - fi; 1725 - echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 1726 - echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 2321 + fi 2322 + 2323 + { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2324 + $as_echo "$USE_MAINTAINER_MODE" >&6; } 1727 2325 1728 2326 1729 2327 if test $USE_MAINTAINER_MODE = yes; then ··· 1738 2336 1739 2337 1740 2338 1741 - ac_config_headers="$ac_config_headers config.h" 2339 + # Require xorg-macros: XORG_DEFAULT_OPTIONS 2340 + 2341 + 2342 + 2343 + 2344 + 2345 + 2346 + 2347 + 2348 + 2349 + 2350 + 2351 + DEPDIR="${am__leading_dot}deps" 2352 + 2353 + ac_config_commands="$ac_config_commands depfiles" 2354 + 2355 + 2356 + am_make=${MAKE-make} 2357 + cat > confinc << 'END' 2358 + am__doit: 2359 + @echo done 2360 + .PHONY: am__doit 2361 + END 2362 + # If we don't find an include directive, just comment out the code. 2363 + { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2364 + $as_echo_n "checking for style of include used by $am_make... " >&6; } 2365 + am__include="#" 2366 + am__quote= 2367 + _am_result=none 2368 + # First try GNU make style include. 2369 + echo "include confinc" > confmf 2370 + # We grep out `Entering directory' and `Leaving directory' 2371 + # messages which can occur if `w' ends up in MAKEFLAGS. 2372 + # In particular we don't look at `^make:' because GNU make might 2373 + # be invoked under some other name (usually "gmake"), in which 2374 + # case it prints its new name instead of `make'. 2375 + if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2376 + am__include=include 2377 + am__quote= 2378 + _am_result=GNU 2379 + fi 2380 + # Now try BSD make style include. 2381 + if test "$am__include" = "#"; then 2382 + echo '.include "confinc"' > confmf 2383 + if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2384 + am__include=.include 2385 + am__quote="\"" 2386 + _am_result=BSD 2387 + fi 2388 + fi 2389 + 2390 + 2391 + { $as_echo "$as_me:$LINENO: result: $_am_result" >&5 2392 + $as_echo "$_am_result" >&6; } 2393 + rm -f confinc confmf 2394 + 2395 + # Check whether --enable-dependency-tracking was given. 2396 + if test "${enable_dependency_tracking+set}" = set; then 2397 + enableval=$enable_dependency_tracking; 2398 + fi 2399 + 2400 + if test "x$enable_dependency_tracking" != xno; then 2401 + am_depcomp="$ac_aux_dir/depcomp" 2402 + AMDEPBACKSLASH='\' 2403 + fi 2404 + 2405 + 2406 + if test "x$enable_dependency_tracking" != xno; then 2407 + AMDEP_TRUE= 2408 + AMDEP_FALSE='#' 2409 + else 2410 + AMDEP_TRUE='#' 2411 + AMDEP_FALSE= 2412 + fi 2413 + 1742 2414 1743 2415 1744 2416 ac_ext=c ··· 1749 2421 if test -n "$ac_tool_prefix"; then 1750 2422 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1751 2423 set dummy ${ac_tool_prefix}gcc; ac_word=$2 1752 - echo "$as_me:$LINENO: checking for $ac_word" >&5 1753 - echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2424 + { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2425 + $as_echo_n "checking for $ac_word... " >&6; } 1754 2426 if test "${ac_cv_prog_CC+set}" = set; then 1755 - echo $ECHO_N "(cached) $ECHO_C" >&6 2427 + $as_echo_n "(cached) " >&6 1756 2428 else 1757 2429 if test -n "$CC"; then 1758 2430 ac_cv_prog_CC="$CC" # Let the user override the test. ··· 1763 2435 IFS=$as_save_IFS 1764 2436 test -z "$as_dir" && as_dir=. 1765 2437 for ac_exec_ext in '' $ac_executable_extensions; do 1766 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2438 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1767 2439 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1768 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2440 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1769 2441 break 2 1770 2442 fi 1771 2443 done 1772 2444 done 2445 + IFS=$as_save_IFS 1773 2446 1774 2447 fi 1775 2448 fi 1776 2449 CC=$ac_cv_prog_CC 1777 2450 if test -n "$CC"; then 1778 - echo "$as_me:$LINENO: result: $CC" >&5 1779 - echo "${ECHO_T}$CC" >&6 2451 + { $as_echo "$as_me:$LINENO: result: $CC" >&5 2452 + $as_echo "$CC" >&6; } 1780 2453 else 1781 - echo "$as_me:$LINENO: result: no" >&5 1782 - echo "${ECHO_T}no" >&6 2454 + { $as_echo "$as_me:$LINENO: result: no" >&5 2455 + $as_echo "no" >&6; } 1783 2456 fi 1784 2457 2458 + 1785 2459 fi 1786 2460 if test -z "$ac_cv_prog_CC"; then 1787 2461 ac_ct_CC=$CC 1788 2462 # Extract the first word of "gcc", so it can be a program name with args. 1789 2463 set dummy gcc; ac_word=$2 1790 - echo "$as_me:$LINENO: checking for $ac_word" >&5 1791 - echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2464 + { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2465 + $as_echo_n "checking for $ac_word... " >&6; } 1792 2466 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1793 - echo $ECHO_N "(cached) $ECHO_C" >&6 2467 + $as_echo_n "(cached) " >&6 1794 2468 else 1795 2469 if test -n "$ac_ct_CC"; then 1796 2470 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. ··· 1801 2475 IFS=$as_save_IFS 1802 2476 test -z "$as_dir" && as_dir=. 1803 2477 for ac_exec_ext in '' $ac_executable_extensions; do 1804 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2478 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1805 2479 ac_cv_prog_ac_ct_CC="gcc" 1806 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2480 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1807 2481 break 2 1808 2482 fi 1809 2483 done 1810 2484 done 2485 + IFS=$as_save_IFS 1811 2486 1812 2487 fi 1813 2488 fi 1814 2489 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1815 2490 if test -n "$ac_ct_CC"; then 1816 - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1817 - echo "${ECHO_T}$ac_ct_CC" >&6 2491 + { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2492 + $as_echo "$ac_ct_CC" >&6; } 1818 2493 else 1819 - echo "$as_me:$LINENO: result: no" >&5 1820 - echo "${ECHO_T}no" >&6 2494 + { $as_echo "$as_me:$LINENO: result: no" >&5 2495 + $as_echo "no" >&6; } 1821 2496 fi 1822 2497 1823 - CC=$ac_ct_CC 2498 + if test "x$ac_ct_CC" = x; then 2499 + CC="" 2500 + else 2501 + case $cross_compiling:$ac_tool_warned in 2502 + yes:) 2503 + { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2504 + whose name does not start with the host triplet. If you think this 2505 + configuration is useful to you, please write to autoconf@gnu.org." >&5 2506 + $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2507 + whose name does not start with the host triplet. If you think this 2508 + configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2509 + ac_tool_warned=yes ;; 2510 + esac 2511 + CC=$ac_ct_CC 2512 + fi 1824 2513 else 1825 2514 CC="$ac_cv_prog_CC" 1826 2515 fi 1827 2516 1828 2517 if test -z "$CC"; then 1829 - if test -n "$ac_tool_prefix"; then 1830 - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2518 + if test -n "$ac_tool_prefix"; then 2519 + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1831 2520 set dummy ${ac_tool_prefix}cc; ac_word=$2 1832 - echo "$as_me:$LINENO: checking for $ac_word" >&5 1833 - echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2521 + { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2522 + $as_echo_n "checking for $ac_word... " >&6; } 1834 2523 if test "${ac_cv_prog_CC+set}" = set; then 1835 - echo $ECHO_N "(cached) $ECHO_C" >&6 2524 + $as_echo_n "(cached) " >&6 1836 2525 else 1837 2526 if test -n "$CC"; then 1838 2527 ac_cv_prog_CC="$CC" # Let the user override the test. ··· 1843 2532 IFS=$as_save_IFS 1844 2533 test -z "$as_dir" && as_dir=. 1845 2534 for ac_exec_ext in '' $ac_executable_extensions; do 1846 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2535 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1847 2536 ac_cv_prog_CC="${ac_tool_prefix}cc" 1848 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2537 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1849 2538 break 2 1850 2539 fi 1851 2540 done 1852 2541 done 2542 + IFS=$as_save_IFS 1853 2543 1854 2544 fi 1855 2545 fi 1856 2546 CC=$ac_cv_prog_CC 1857 2547 if test -n "$CC"; then 1858 - echo "$as_me:$LINENO: result: $CC" >&5 1859 - echo "${ECHO_T}$CC" >&6 1860 - else 1861 - echo "$as_me:$LINENO: result: no" >&5 1862 - echo "${ECHO_T}no" >&6 1863 - fi 1864 - 1865 - fi 1866 - if test -z "$ac_cv_prog_CC"; then 1867 - ac_ct_CC=$CC 1868 - # Extract the first word of "cc", so it can be a program name with args. 1869 - set dummy cc; ac_word=$2 1870 - echo "$as_me:$LINENO: checking for $ac_word" >&5 1871 - echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1872 - if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1873 - echo $ECHO_N "(cached) $ECHO_C" >&6 1874 - else 1875 - if test -n "$ac_ct_CC"; then 1876 - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1877 - else 1878 - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1879 - for as_dir in $PATH 1880 - do 1881 - IFS=$as_save_IFS 1882 - test -z "$as_dir" && as_dir=. 1883 - for ac_exec_ext in '' $ac_executable_extensions; do 1884 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1885 - ac_cv_prog_ac_ct_CC="cc" 1886 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1887 - break 2 1888 - fi 1889 - done 1890 - done 1891 - 1892 - fi 1893 - fi 1894 - ac_ct_CC=$ac_cv_prog_ac_ct_CC 1895 - if test -n "$ac_ct_CC"; then 1896 - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1897 - echo "${ECHO_T}$ac_ct_CC" >&6 2548 + { $as_echo "$as_me:$LINENO: result: $CC" >&5 2549 + $as_echo "$CC" >&6; } 1898 2550 else 1899 - echo "$as_me:$LINENO: result: no" >&5 1900 - echo "${ECHO_T}no" >&6 2551 + { $as_echo "$as_me:$LINENO: result: no" >&5 2552 + $as_echo "no" >&6; } 1901 2553 fi 1902 2554 1903 - CC=$ac_ct_CC 1904 - else 1905 - CC="$ac_cv_prog_CC" 1906 - fi 1907 2555 2556 + fi 1908 2557 fi 1909 2558 if test -z "$CC"; then 1910 2559 # Extract the first word of "cc", so it can be a program name with args. 1911 2560 set dummy cc; ac_word=$2 1912 - echo "$as_me:$LINENO: checking for $ac_word" >&5 1913 - echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2561 + { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2562 + $as_echo_n "checking for $ac_word... " >&6; } 1914 2563 if test "${ac_cv_prog_CC+set}" = set; then 1915 - echo $ECHO_N "(cached) $ECHO_C" >&6 2564 + $as_echo_n "(cached) " >&6 1916 2565 else 1917 2566 if test -n "$CC"; then 1918 2567 ac_cv_prog_CC="$CC" # Let the user override the test. ··· 1924 2573 IFS=$as_save_IFS 1925 2574 test -z "$as_dir" && as_dir=. 1926 2575 for ac_exec_ext in '' $ac_executable_extensions; do 1927 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2576 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1928 2577 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1929 2578 ac_prog_rejected=yes 1930 2579 continue 1931 2580 fi 1932 2581 ac_cv_prog_CC="cc" 1933 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2582 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1934 2583 break 2 1935 2584 fi 1936 2585 done 1937 2586 done 2587 + IFS=$as_save_IFS 1938 2588 1939 2589 if test $ac_prog_rejected = yes; then 1940 2590 # We found a bogon in the path, so make sure we never use it. ··· 1952 2602 fi 1953 2603 CC=$ac_cv_prog_CC 1954 2604 if test -n "$CC"; then 1955 - echo "$as_me:$LINENO: result: $CC" >&5 1956 - echo "${ECHO_T}$CC" >&6 2605 + { $as_echo "$as_me:$LINENO: result: $CC" >&5 2606 + $as_echo "$CC" >&6; } 1957 2607 else 1958 - echo "$as_me:$LINENO: result: no" >&5 1959 - echo "${ECHO_T}no" >&6 2608 + { $as_echo "$as_me:$LINENO: result: no" >&5 2609 + $as_echo "no" >&6; } 1960 2610 fi 2611 + 1961 2612 1962 2613 fi 1963 2614 if test -z "$CC"; then 1964 2615 if test -n "$ac_tool_prefix"; then 1965 - for ac_prog in cl 2616 + for ac_prog in cl.exe 1966 2617 do 1967 2618 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1968 2619 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1969 - echo "$as_me:$LINENO: checking for $ac_word" >&5 1970 - echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2620 + { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2621 + $as_echo_n "checking for $ac_word... " >&6; } 1971 2622 if test "${ac_cv_prog_CC+set}" = set; then 1972 - echo $ECHO_N "(cached) $ECHO_C" >&6 2623 + $as_echo_n "(cached) " >&6 1973 2624 else 1974 2625 if test -n "$CC"; then 1975 2626 ac_cv_prog_CC="$CC" # Let the user override the test. ··· 1980 2631 IFS=$as_save_IFS 1981 2632 test -z "$as_dir" && as_dir=. 1982 2633 for ac_exec_ext in '' $ac_executable_extensions; do 1983 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2634 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1984 2635 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1985 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2636 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1986 2637 break 2 1987 2638 fi 1988 2639 done 1989 2640 done 2641 + IFS=$as_save_IFS 1990 2642 1991 2643 fi 1992 2644 fi 1993 2645 CC=$ac_cv_prog_CC 1994 2646 if test -n "$CC"; then 1995 - echo "$as_me:$LINENO: result: $CC" >&5 1996 - echo "${ECHO_T}$CC" >&6 2647 + { $as_echo "$as_me:$LINENO: result: $CC" >&5 2648 + $as_echo "$CC" >&6; } 1997 2649 else 1998 - echo "$as_me:$LINENO: result: no" >&5 1999 - echo "${ECHO_T}no" >&6 2650 + { $as_echo "$as_me:$LINENO: result: no" >&5 2651 + $as_echo "no" >&6; } 2000 2652 fi 2653 + 2001 2654 2002 2655 test -n "$CC" && break 2003 2656 done 2004 2657 fi 2005 2658 if test -z "$CC"; then 2006 2659 ac_ct_CC=$CC 2007 - for ac_prog in cl 2660 + for ac_prog in cl.exe 2008 2661 do 2009 2662 # Extract the first word of "$ac_prog", so it can be a program name with args. 2010 2663 set dummy $ac_prog; ac_word=$2 2011 - echo "$as_me:$LINENO: checking for $ac_word" >&5 2012 - echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2664 + { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2665 + $as_echo_n "checking for $ac_word... " >&6; } 2013 2666 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2014 - echo $ECHO_N "(cached) $ECHO_C" >&6 2667 + $as_echo_n "(cached) " >&6 2015 2668 else 2016 2669 if test -n "$ac_ct_CC"; then 2017 2670 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. ··· 2022 2675 IFS=$as_save_IFS 2023 2676 test -z "$as_dir" && as_dir=. 2024 2677 for ac_exec_ext in '' $ac_executable_extensions; do 2025 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2678 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2026 2679 ac_cv_prog_ac_ct_CC="$ac_prog" 2027 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2680 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2028 2681 break 2 2029 2682 fi 2030 2683 done 2031 2684 done 2685 + IFS=$as_save_IFS 2032 2686 2033 2687 fi 2034 2688 fi 2035 2689 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2036 2690 if test -n "$ac_ct_CC"; then 2037 - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2038 - echo "${ECHO_T}$ac_ct_CC" >&6 2691 + { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2692 + $as_echo "$ac_ct_CC" >&6; } 2039 2693 else 2040 - echo "$as_me:$LINENO: result: no" >&5 2041 - echo "${ECHO_T}no" >&6 2694 + { $as_echo "$as_me:$LINENO: result: no" >&5 2695 + $as_echo "no" >&6; } 2042 2696 fi 2043 2697 2698 + 2044 2699 test -n "$ac_ct_CC" && break 2045 2700 done 2046 2701 2047 - CC=$ac_ct_CC 2702 + if test "x$ac_ct_CC" = x; then 2703 + CC="" 2704 + else 2705 + case $cross_compiling:$ac_tool_warned in 2706 + yes:) 2707 + { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2708 + whose name does not start with the host triplet. If you think this 2709 + configuration is useful to you, please write to autoconf@gnu.org." >&5 2710 + $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2711 + whose name does not start with the host triplet. If you think this 2712 + configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2713 + ac_tool_warned=yes ;; 2714 + esac 2715 + CC=$ac_ct_CC 2716 + fi 2048 2717 fi 2049 2718 2050 2719 fi 2051 2720 2052 2721 2053 - test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2722 + test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2054 2723 See \`config.log' for more details." >&5 2055 - echo "$as_me: error: no acceptable C compiler found in \$PATH 2724 + $as_echo "$as_me: error: no acceptable C compiler found in \$PATH 2056 2725 See \`config.log' for more details." >&2;} 2057 2726 { (exit 1); exit 1; }; } 2058 2727 2059 2728 # Provide some information about the compiler. 2060 - echo "$as_me:$LINENO:" \ 2061 - "checking for C compiler version" >&5 2062 - ac_compiler=`set X $ac_compile; echo $2` 2063 - { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2064 - (eval $ac_compiler --version </dev/null >&5) 2>&5 2729 + $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 2730 + set X $ac_compile 2731 + ac_compiler=$2 2732 + { (ac_try="$ac_compiler --version >&5" 2733 + case "(($ac_try" in 2734 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2735 + *) ac_try_echo=$ac_try;; 2736 + esac 2737 + eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2738 + $as_echo "$ac_try_echo") >&5 2739 + (eval "$ac_compiler --version >&5") 2>&5 2065 2740 ac_status=$? 2066 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 2741 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2067 2742 (exit $ac_status); } 2068 - { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2069 - (eval $ac_compiler -v </dev/null >&5) 2>&5 2743 + { (ac_try="$ac_compiler -v >&5" 2744 + case "(($ac_try" in 2745 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2746 + *) ac_try_echo=$ac_try;; 2747 + esac 2748 + eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2749 + $as_echo "$ac_try_echo") >&5 2750 + (eval "$ac_compiler -v >&5") 2>&5 2070 2751 ac_status=$? 2071 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 2752 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2072 2753 (exit $ac_status); } 2073 - { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2074 - (eval $ac_compiler -V </dev/null >&5) 2>&5 2754 + { (ac_try="$ac_compiler -V >&5" 2755 + case "(($ac_try" in 2756 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2757 + *) ac_try_echo=$ac_try;; 2758 + esac 2759 + eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2760 + $as_echo "$ac_try_echo") >&5 2761 + (eval "$ac_compiler -V >&5") 2>&5 2075 2762 ac_status=$? 2076 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 2763 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2077 2764 (exit $ac_status); } 2078 2765 2079 2766 cat >conftest.$ac_ext <<_ACEOF ··· 2092 2779 } 2093 2780 _ACEOF 2094 2781 ac_clean_files_save=$ac_clean_files 2095 - ac_clean_files="$ac_clean_files a.out a.exe b.out" 2782 + ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2096 2783 # Try to create an executable without -o first, disregard a.out. 2097 2784 # It will help us diagnose broken compilers, and finding out an intuition 2098 2785 # of exeext. 2099 - echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2100 - echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2101 - ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2102 - if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2103 - (eval $ac_link_default) 2>&5 2786 + { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2787 + $as_echo_n "checking for C compiler default output file name... " >&6; } 2788 + ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2789 + 2790 + # The possible output files: 2791 + ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2792 + 2793 + ac_rmfiles= 2794 + for ac_file in $ac_files 2795 + do 2796 + case $ac_file in 2797 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2798 + * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2799 + esac 2800 + done 2801 + rm -f $ac_rmfiles 2802 + 2803 + if { (ac_try="$ac_link_default" 2804 + case "(($ac_try" in 2805 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2806 + *) ac_try_echo=$ac_try;; 2807 + esac 2808 + eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2809 + $as_echo "$ac_try_echo") >&5 2810 + (eval "$ac_link_default") 2>&5 2104 2811 ac_status=$? 2105 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 2812 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2106 2813 (exit $ac_status); }; then 2107 - # Find the output, starting from the most likely. This scheme is 2108 - # not robust to junk in `.', hence go to wildcards (a.*) only as a last 2109 - # resort. 2110 - 2111 - # Be careful to initialize this variable, since it used to be cached. 2112 - # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2113 - ac_cv_exeext= 2114 - # b.out is created by i960 compilers. 2115 - for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2814 + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2815 + # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2816 + # in a Makefile. We should not override ac_cv_exeext if it was cached, 2817 + # so that the user can short-circuit this test for compilers unknown to 2818 + # Autoconf. 2819 + for ac_file in $ac_files '' 2116 2820 do 2117 2821 test -f "$ac_file" || continue 2118 2822 case $ac_file in 2119 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2120 - ;; 2121 - conftest.$ac_ext ) 2122 - # This is the source file. 2823 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2123 2824 ;; 2124 2825 [ab].out ) 2125 2826 # We found the default executable, but exeext='' is most 2126 2827 # certainly right. 2127 2828 break;; 2128 2829 *.* ) 2129 - ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2130 - # FIXME: I believe we export ac_cv_exeext for Libtool, 2131 - # but it would be cool to find out if it's true. Does anybody 2132 - # maintain Libtool? --akim. 2133 - export ac_cv_exeext 2830 + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2831 + then :; else 2832 + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2833 + fi 2834 + # We set ac_cv_exeext here because the later test for it is not 2835 + # safe: cross compilers may not add the suffix if given an `-o' 2836 + # argument, so we may need to know it at that point already. 2837 + # Even if this section looks crufty: it has the advantage of 2838 + # actually working. 2134 2839 break;; 2135 2840 * ) 2136 2841 break;; 2137 2842 esac 2138 2843 done 2844 + test "$ac_cv_exeext" = no && ac_cv_exeext= 2845 + 2139 2846 else 2140 - echo "$as_me: failed program was:" >&5 2847 + ac_file='' 2848 + fi 2849 + 2850 + { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 2851 + $as_echo "$ac_file" >&6; } 2852 + if test -z "$ac_file"; then 2853 + $as_echo "$as_me: failed program was:" >&5 2141 2854 sed 's/^/| /' conftest.$ac_ext >&5 2142 2855 2143 - { { echo "$as_me:$LINENO: error: C compiler cannot create executables 2856 + { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 2144 2857 See \`config.log' for more details." >&5 2145 - echo "$as_me: error: C compiler cannot create executables 2858 + $as_echo "$as_me: error: C compiler cannot create executables 2146 2859 See \`config.log' for more details." >&2;} 2147 2860 { (exit 77); exit 77; }; } 2148 2861 fi 2149 2862 2150 2863 ac_exeext=$ac_cv_exeext 2151 - echo "$as_me:$LINENO: result: $ac_file" >&5 2152 - echo "${ECHO_T}$ac_file" >&6 2153 2864 2154 - # Check the compiler produces executables we can run. If not, either 2865 + # Check that the compiler produces executables we can run. If not, either 2155 2866 # the compiler is broken, or we cross compile. 2156 - echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2157 - echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2867 + { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2868 + $as_echo_n "checking whether the C compiler works... " >&6; } 2158 2869 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2159 2870 # If not cross compiling, check that we can run a simple program. 2160 2871 if test "$cross_compiling" != yes; then 2161 2872 if { ac_try='./$ac_file' 2162 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2163 - (eval $ac_try) 2>&5 2873 + { (case "(($ac_try" in 2874 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2875 + *) ac_try_echo=$ac_try;; 2876 + esac 2877 + eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2878 + $as_echo "$ac_try_echo") >&5 2879 + (eval "$ac_try") 2>&5 2164 2880 ac_status=$? 2165 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 2881 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2166 2882 (exit $ac_status); }; }; then 2167 2883 cross_compiling=no 2168 2884 else 2169 2885 if test "$cross_compiling" = maybe; then 2170 2886 cross_compiling=yes 2171 2887 else 2172 - { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2888 + { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 2173 2889 If you meant to cross compile, use \`--host'. 2174 2890 See \`config.log' for more details." >&5 2175 - echo "$as_me: error: cannot run C compiled programs. 2891 + $as_echo "$as_me: error: cannot run C compiled programs. 2176 2892 If you meant to cross compile, use \`--host'. 2177 2893 See \`config.log' for more details." >&2;} 2178 2894 { (exit 1); exit 1; }; } 2179 2895 fi 2180 2896 fi 2181 2897 fi 2182 - echo "$as_me:$LINENO: result: yes" >&5 2183 - echo "${ECHO_T}yes" >&6 2898 + { $as_echo "$as_me:$LINENO: result: yes" >&5 2899 + $as_echo "yes" >&6; } 2184 2900 2185 - rm -f a.out a.exe conftest$ac_cv_exeext b.out 2901 + rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2186 2902 ac_clean_files=$ac_clean_files_save 2187 - # Check the compiler produces executables we can run. If not, either 2903 + # Check that the compiler produces executables we can run. If not, either 2188 2904 # the compiler is broken, or we cross compile. 2189 - echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2190 - echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2191 - echo "$as_me:$LINENO: result: $cross_compiling" >&5 2192 - echo "${ECHO_T}$cross_compiling" >&6 2905 + { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2906 + $as_echo_n "checking whether we are cross compiling... " >&6; } 2907 + { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 2908 + $as_echo "$cross_compiling" >&6; } 2193 2909 2194 - echo "$as_me:$LINENO: checking for suffix of executables" >&5 2195 - echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2196 - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2197 - (eval $ac_link) 2>&5 2910 + { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 2911 + $as_echo_n "checking for suffix of executables... " >&6; } 2912 + if { (ac_try="$ac_link" 2913 + case "(($ac_try" in 2914 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2915 + *) ac_try_echo=$ac_try;; 2916 + esac 2917 + eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2918 + $as_echo "$ac_try_echo") >&5 2919 + (eval "$ac_link") 2>&5 2198 2920 ac_status=$? 2199 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 2921 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2200 2922 (exit $ac_status); }; then 2201 2923 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2202 2924 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will ··· 2205 2927 for ac_file in conftest.exe conftest conftest.*; do 2206 2928 test -f "$ac_file" || continue 2207 2929 case $ac_file in 2208 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2930 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2209 2931 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2210 - export ac_cv_exeext 2211 2932 break;; 2212 2933 * ) break;; 2213 2934 esac 2214 2935 done 2215 2936 else 2216 - { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2937 + { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2217 2938 See \`config.log' for more details." >&5 2218 - echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2939 + $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2219 2940 See \`config.log' for more details." >&2;} 2220 2941 { (exit 1); exit 1; }; } 2221 2942 fi 2222 2943 2223 2944 rm -f conftest$ac_cv_exeext 2224 - echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2225 - echo "${ECHO_T}$ac_cv_exeext" >&6 2945 + { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2946 + $as_echo "$ac_cv_exeext" >&6; } 2226 2947 2227 2948 rm -f conftest.$ac_ext 2228 2949 EXEEXT=$ac_cv_exeext 2229 2950 ac_exeext=$EXEEXT 2230 - echo "$as_me:$LINENO: checking for suffix of object files" >&5 2231 - echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2951 + { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 2952 + $as_echo_n "checking for suffix of object files... " >&6; } 2232 2953 if test "${ac_cv_objext+set}" = set; then 2233 - echo $ECHO_N "(cached) $ECHO_C" >&6 2954 + $as_echo_n "(cached) " >&6 2234 2955 else 2235 2956 cat >conftest.$ac_ext <<_ACEOF 2236 2957 /* confdefs.h. */ ··· 2248 2969 } 2249 2970 _ACEOF 2250 2971 rm -f conftest.o conftest.obj 2251 - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2252 - (eval $ac_compile) 2>&5 2972 + if { (ac_try="$ac_compile" 2973 + case "(($ac_try" in 2974 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2975 + *) ac_try_echo=$ac_try;; 2976 + esac 2977 + eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2978 + $as_echo "$ac_try_echo") >&5 2979 + (eval "$ac_compile") 2>&5 2253 2980 ac_status=$? 2254 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 2981 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2255 2982 (exit $ac_status); }; then 2256 - for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2983 + for ac_file in conftest.o conftest.obj conftest.*; do 2984 + test -f "$ac_file" || continue; 2257 2985 case $ac_file in 2258 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2986 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2259 2987 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2260 2988 break;; 2261 2989 esac 2262 2990 done 2263 2991 else 2264 - echo "$as_me: failed program was:" >&5 2992 + $as_echo "$as_me: failed program was:" >&5 2265 2993 sed 's/^/| /' conftest.$ac_ext >&5 2266 2994 2267 - { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2995 + { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2268 2996 See \`config.log' for more details." >&5 2269 - echo "$as_me: error: cannot compute suffix of object files: cannot compile 2997 + $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 2270 2998 See \`config.log' for more details." >&2;} 2271 2999 { (exit 1); exit 1; }; } 2272 3000 fi 2273 3001 2274 3002 rm -f conftest.$ac_cv_objext conftest.$ac_ext 2275 3003 fi 2276 - echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2277 - echo "${ECHO_T}$ac_cv_objext" >&6 3004 + { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3005 + $as_echo "$ac_cv_objext" >&6; } 2278 3006 OBJEXT=$ac_cv_objext 2279 3007 ac_objext=$OBJEXT 2280 - echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2281 - echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 3008 + { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3009 + $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2282 3010 if test "${ac_cv_c_compiler_gnu+set}" = set; then 2283 - echo $ECHO_N "(cached) $ECHO_C" >&6 3011 + $as_echo_n "(cached) " >&6 2284 3012 else 2285 3013 cat >conftest.$ac_ext <<_ACEOF 2286 3014 /* confdefs.h. */ ··· 2301 3029 } 2302 3030 _ACEOF 2303 3031 rm -f conftest.$ac_objext 2304 - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2305 - (eval $ac_compile) 2>conftest.er1 3032 + if { (ac_try="$ac_compile" 3033 + case "(($ac_try" in 3034 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3035 + *) ac_try_echo=$ac_try;; 3036 + esac 3037 + eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3038 + $as_echo "$ac_try_echo") >&5 3039 + (eval "$ac_compile") 2>conftest.er1 2306 3040 ac_status=$? 2307 3041 grep -v '^ *+' conftest.er1 >conftest.err 2308 3042 rm -f conftest.er1 2309 3043 cat conftest.err >&5 2310 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 2311 - (exit $ac_status); } && 2312 - { ac_try='test -z "$ac_c_werror_flag" 2313 - || test ! -s conftest.err' 2314 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2315 - (eval $ac_try) 2>&5 2316 - ac_status=$? 2317 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 2318 - (exit $ac_status); }; } && 2319 - { ac_try='test -s conftest.$ac_objext' 2320 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2321 - (eval $ac_try) 2>&5 2322 - ac_status=$? 2323 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 2324 - (exit $ac_status); }; }; then 3044 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3045 + (exit $ac_status); } && { 3046 + test -z "$ac_c_werror_flag" || 3047 + test ! -s conftest.err 3048 + } && test -s conftest.$ac_objext; then 2325 3049 ac_compiler_gnu=yes 2326 3050 else 2327 - echo "$as_me: failed program was:" >&5 3051 + $as_echo "$as_me: failed program was:" >&5 2328 3052 sed 's/^/| /' conftest.$ac_ext >&5 2329 3053 2330 - ac_compiler_gnu=no 3054 + ac_compiler_gnu=no 2331 3055 fi 2332 - rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3056 + 3057 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2333 3058 ac_cv_c_compiler_gnu=$ac_compiler_gnu 2334 3059 2335 3060 fi 2336 - echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2337 - echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2338 - GCC=`test $ac_compiler_gnu = yes && echo yes` 3061 + { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3062 + $as_echo "$ac_cv_c_compiler_gnu" >&6; } 3063 + if test $ac_compiler_gnu = yes; then 3064 + GCC=yes 3065 + else 3066 + GCC= 3067 + fi 2339 3068 ac_test_CFLAGS=${CFLAGS+set} 2340 3069 ac_save_CFLAGS=$CFLAGS 2341 - CFLAGS="-g" 2342 - echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2343 - echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 3070 + { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3071 + $as_echo_n "checking whether $CC accepts -g... " >&6; } 2344 3072 if test "${ac_cv_prog_cc_g+set}" = set; then 2345 - echo $ECHO_N "(cached) $ECHO_C" >&6 3073 + $as_echo_n "(cached) " >&6 2346 3074 else 2347 - cat >conftest.$ac_ext <<_ACEOF 3075 + ac_save_c_werror_flag=$ac_c_werror_flag 3076 + ac_c_werror_flag=yes 3077 + ac_cv_prog_cc_g=no 3078 + CFLAGS="-g" 3079 + cat >conftest.$ac_ext <<_ACEOF 2348 3080 /* confdefs.h. */ 2349 3081 _ACEOF 2350 3082 cat confdefs.h >>conftest.$ac_ext ··· 2360 3092 } 2361 3093 _ACEOF 2362 3094 rm -f conftest.$ac_objext 2363 - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2364 - (eval $ac_compile) 2>conftest.er1 3095 + if { (ac_try="$ac_compile" 3096 + case "(($ac_try" in 3097 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3098 + *) ac_try_echo=$ac_try;; 3099 + esac 3100 + eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3101 + $as_echo "$ac_try_echo") >&5 3102 + (eval "$ac_compile") 2>conftest.er1 2365 3103 ac_status=$? 2366 3104 grep -v '^ *+' conftest.er1 >conftest.err 2367 3105 rm -f conftest.er1 2368 3106 cat conftest.err >&5 2369 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 2370 - (exit $ac_status); } && 2371 - { ac_try='test -z "$ac_c_werror_flag" 2372 - || test ! -s conftest.err' 2373 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2374 - (eval $ac_try) 2>&5 3107 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3108 + (exit $ac_status); } && { 3109 + test -z "$ac_c_werror_flag" || 3110 + test ! -s conftest.err 3111 + } && test -s conftest.$ac_objext; then 3112 + ac_cv_prog_cc_g=yes 3113 + else 3114 + $as_echo "$as_me: failed program was:" >&5 3115 + sed 's/^/| /' conftest.$ac_ext >&5 3116 + 3117 + CFLAGS="" 3118 + cat >conftest.$ac_ext <<_ACEOF 3119 + /* confdefs.h. */ 3120 + _ACEOF 3121 + cat confdefs.h >>conftest.$ac_ext 3122 + cat >>conftest.$ac_ext <<_ACEOF 3123 + /* end confdefs.h. */ 3124 + 3125 + int 3126 + main () 3127 + { 3128 + 3129 + ; 3130 + return 0; 3131 + } 3132 + _ACEOF 3133 + rm -f conftest.$ac_objext 3134 + if { (ac_try="$ac_compile" 3135 + case "(($ac_try" in 3136 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3137 + *) ac_try_echo=$ac_try;; 3138 + esac 3139 + eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3140 + $as_echo "$ac_try_echo") >&5 3141 + (eval "$ac_compile") 2>conftest.er1 2375 3142 ac_status=$? 2376 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 2377 - (exit $ac_status); }; } && 2378 - { ac_try='test -s conftest.$ac_objext' 2379 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2380 - (eval $ac_try) 2>&5 3143 + grep -v '^ *+' conftest.er1 >conftest.err 3144 + rm -f conftest.er1 3145 + cat conftest.err >&5 3146 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3147 + (exit $ac_status); } && { 3148 + test -z "$ac_c_werror_flag" || 3149 + test ! -s conftest.err 3150 + } && test -s conftest.$ac_objext; then 3151 + : 3152 + else 3153 + $as_echo "$as_me: failed program was:" >&5 3154 + sed 's/^/| /' conftest.$ac_ext >&5 3155 + 3156 + ac_c_werror_flag=$ac_save_c_werror_flag 3157 + CFLAGS="-g" 3158 + cat >conftest.$ac_ext <<_ACEOF 3159 + /* confdefs.h. */ 3160 + _ACEOF 3161 + cat confdefs.h >>conftest.$ac_ext 3162 + cat >>conftest.$ac_ext <<_ACEOF 3163 + /* end confdefs.h. */ 3164 + 3165 + int 3166 + main () 3167 + { 3168 + 3169 + ; 3170 + return 0; 3171 + } 3172 + _ACEOF 3173 + rm -f conftest.$ac_objext 3174 + if { (ac_try="$ac_compile" 3175 + case "(($ac_try" in 3176 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3177 + *) ac_try_echo=$ac_try;; 3178 + esac 3179 + eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3180 + $as_echo "$ac_try_echo") >&5 3181 + (eval "$ac_compile") 2>conftest.er1 2381 3182 ac_status=$? 2382 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 2383 - (exit $ac_status); }; }; then 3183 + grep -v '^ *+' conftest.er1 >conftest.err 3184 + rm -f conftest.er1 3185 + cat conftest.err >&5 3186 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3187 + (exit $ac_status); } && { 3188 + test -z "$ac_c_werror_flag" || 3189 + test ! -s conftest.err 3190 + } && test -s conftest.$ac_objext; then 2384 3191 ac_cv_prog_cc_g=yes 2385 3192 else 2386 - echo "$as_me: failed program was:" >&5 3193 + $as_echo "$as_me: failed program was:" >&5 2387 3194 sed 's/^/| /' conftest.$ac_ext >&5 2388 3195 2389 - ac_cv_prog_cc_g=no 3196 + 2390 3197 fi 2391 - rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3198 + 3199 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2392 3200 fi 2393 - echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2394 - echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 3201 + 3202 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3203 + fi 3204 + 3205 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3206 + ac_c_werror_flag=$ac_save_c_werror_flag 3207 + fi 3208 + { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3209 + $as_echo "$ac_cv_prog_cc_g" >&6; } 2395 3210 if test "$ac_test_CFLAGS" = set; then 2396 3211 CFLAGS=$ac_save_CFLAGS 2397 3212 elif test $ac_cv_prog_cc_g = yes; then ··· 2407 3222 CFLAGS= 2408 3223 fi 2409 3224 fi 2410 - echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2411 - echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2412 - if test "${ac_cv_prog_cc_stdc+set}" = set; then 2413 - echo $ECHO_N "(cached) $ECHO_C" >&6 3225 + { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3226 + $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3227 + if test "${ac_cv_prog_cc_c89+set}" = set; then 3228 + $as_echo_n "(cached) " >&6 2414 3229 else 2415 - ac_cv_prog_cc_stdc=no 3230 + ac_cv_prog_cc_c89=no 2416 3231 ac_save_CC=$CC 2417 3232 cat >conftest.$ac_ext <<_ACEOF 2418 3233 /* confdefs.h. */ ··· 2446 3261 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2447 3262 function prototypes and stuff, but not '\xHH' hex character constants. 2448 3263 These don't provoke an error unfortunately, instead are silently treated 2449 - as 'x'. The following induces an error, until -std1 is added to get 3264 + as 'x'. The following induces an error, until -std is added to get 2450 3265 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2451 3266 array size at least. It's necessary to write '\x00'==0 to get something 2452 - that's true only with -std1. */ 3267 + that's true only with -std. */ 2453 3268 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3269 + 3270 + /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3271 + inside strings and character constants. */ 3272 + #define FOO(x) 'x' 3273 + int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2454 3274 2455 3275 int test (int i, double x); 2456 3276 struct s1 {int (*f) (int a);}; ··· 2466 3286 return 0; 2467 3287 } 2468 3288 _ACEOF 2469 - # Don't try gcc -ansi; that turns off useful extensions and 2470 - # breaks some systems' header files. 2471 - # AIX -qlanglvl=ansi 2472 - # Ultrix and OSF/1 -std1 2473 - # HP-UX 10.20 and later -Ae 2474 - # HP-UX older versions -Aa -D_HPUX_SOURCE 2475 - # SVR4 -Xc -D__EXTENSIONS__ 2476 - for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3289 + for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3290 + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2477 3291 do 2478 3292 CC="$ac_save_CC $ac_arg" 2479 3293 rm -f conftest.$ac_objext 2480 - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2481 - (eval $ac_compile) 2>conftest.er1 3294 + if { (ac_try="$ac_compile" 3295 + case "(($ac_try" in 3296 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3297 + *) ac_try_echo=$ac_try;; 3298 + esac 3299 + eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3300 + $as_echo "$ac_try_echo") >&5 3301 + (eval "$ac_compile") 2>conftest.er1 2482 3302 ac_status=$? 2483 3303 grep -v '^ *+' conftest.er1 >conftest.err 2484 3304 rm -f conftest.er1 2485 3305 cat conftest.err >&5 2486 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 2487 - (exit $ac_status); } && 2488 - { ac_try='test -z "$ac_c_werror_flag" 2489 - || test ! -s conftest.err' 2490 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2491 - (eval $ac_try) 2>&5 2492 - ac_status=$? 2493 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 2494 - (exit $ac_status); }; } && 2495 - { ac_try='test -s conftest.$ac_objext' 2496 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2497 - (eval $ac_try) 2>&5 2498 - ac_status=$? 2499 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 2500 - (exit $ac_status); }; }; then 2501 - ac_cv_prog_cc_stdc=$ac_arg 2502 - break 3306 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3307 + (exit $ac_status); } && { 3308 + test -z "$ac_c_werror_flag" || 3309 + test ! -s conftest.err 3310 + } && test -s conftest.$ac_objext; then 3311 + ac_cv_prog_cc_c89=$ac_arg 2503 3312 else 2504 - echo "$as_me: failed program was:" >&5 3313 + $as_echo "$as_me: failed program was:" >&5 2505 3314 sed 's/^/| /' conftest.$ac_ext >&5 2506 3315 3316 + 2507 3317 fi 2508 - rm -f conftest.err conftest.$ac_objext 3318 + 3319 + rm -f core conftest.err conftest.$ac_objext 3320 + test "x$ac_cv_prog_cc_c89" != "xno" && break 2509 3321 done 2510 - rm -f conftest.$ac_ext conftest.$ac_objext 3322 + rm -f conftest.$ac_ext 2511 3323 CC=$ac_save_CC 2512 3324 2513 3325 fi 2514 - 2515 - case "x$ac_cv_prog_cc_stdc" in 2516 - x|xno) 2517 - echo "$as_me:$LINENO: result: none needed" >&5 2518 - echo "${ECHO_T}none needed" >&6 ;; 3326 + # AC_CACHE_VAL 3327 + case "x$ac_cv_prog_cc_c89" in 3328 + x) 3329 + { $as_echo "$as_me:$LINENO: result: none needed" >&5 3330 + $as_echo "none needed" >&6; } ;; 3331 + xno) 3332 + { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3333 + $as_echo "unsupported" >&6; } ;; 2519 3334 *) 2520 - echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2521 - echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2522 - CC="$CC $ac_cv_prog_cc_stdc" ;; 3335 + CC="$CC $ac_cv_prog_cc_c89" 3336 + { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3337 + $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 2523 3338 esac 2524 3339 2525 - # Some people use a C++ compiler to compile C. Since we use `exit', 2526 - # in C++ we need to declare it. In case someone uses the same compiler 2527 - # for both compiling C and C++ we need to have the C++ compiler decide 2528 - # the declaration of exit, since it's the most demanding environment. 2529 - cat >conftest.$ac_ext <<_ACEOF 2530 - #ifndef __cplusplus 2531 - choke me 3340 + 3341 + ac_ext=c 3342 + ac_cpp='$CPP $CPPFLAGS' 3343 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3344 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3345 + ac_compiler_gnu=$ac_cv_c_compiler_gnu 3346 + 3347 + depcc="$CC" am_compiler_list= 3348 + 3349 + { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3350 + $as_echo_n "checking dependency style of $depcc... " >&6; } 3351 + if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3352 + $as_echo_n "(cached) " >&6 3353 + else 3354 + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3355 + # We make a subdir and do the tests there. Otherwise we can end up 3356 + # making bogus files that we don't know about and never remove. For 3357 + # instance it was reported that on HP-UX the gcc test will end up 3358 + # making a dummy file named `D' -- because `-MD' means `put the output 3359 + # in D'. 3360 + mkdir conftest.dir 3361 + # Copy depcomp to subdir because otherwise we won't find it if we're 3362 + # using a relative directory. 3363 + cp "$am_depcomp" conftest.dir 3364 + cd conftest.dir 3365 + # We will build objects and dependencies in a subdirectory because 3366 + # it helps to detect inapplicable dependency modes. For instance 3367 + # both Tru64's cc and ICC support -MD to output dependencies as a 3368 + # side effect of compilation, but ICC will put the dependencies in 3369 + # the current directory while Tru64 will put them in the object 3370 + # directory. 3371 + mkdir sub 3372 + 3373 + am_cv_CC_dependencies_compiler_type=none 3374 + if test "$am_compiler_list" = ""; then 3375 + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3376 + fi 3377 + for depmode in $am_compiler_list; do 3378 + # Setup a source with many dependencies, because some compilers 3379 + # like to wrap large dependency lists on column 80 (with \), and 3380 + # we should not choose a depcomp mode which is confused by this. 3381 + # 3382 + # We need to recreate these files for each test, as the compiler may 3383 + # overwrite some of them when testing with obscure command lines. 3384 + # This happens at least with the AIX C compiler. 3385 + : > sub/conftest.c 3386 + for i in 1 2 3 4 5 6; do 3387 + echo '#include "conftst'$i'.h"' >> sub/conftest.c 3388 + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3389 + # Solaris 8's {/usr,}/bin/sh. 3390 + touch sub/conftst$i.h 3391 + done 3392 + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3393 + 3394 + case $depmode in 3395 + nosideeffect) 3396 + # after this tag, mechanisms are not by side-effect, so they'll 3397 + # only be used when explicitly requested 3398 + if test "x$enable_dependency_tracking" = xyes; then 3399 + continue 3400 + else 3401 + break 3402 + fi 3403 + ;; 3404 + none) break ;; 3405 + esac 3406 + # We check with `-c' and `-o' for the sake of the "dashmstdout" 3407 + # mode. It turns out that the SunPro C++ compiler does not properly 3408 + # handle `-M -o', and we need to detect this. 3409 + if depmode=$depmode \ 3410 + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3411 + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3412 + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3413 + >/dev/null 2>conftest.err && 3414 + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3415 + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3416 + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3417 + # icc doesn't choke on unknown options, it will just issue warnings 3418 + # or remarks (even with -Werror). So we grep stderr for any message 3419 + # that says an option was ignored or not supported. 3420 + # When given -MP, icc 7.0 and 7.1 complain thusly: 3421 + # icc: Command line warning: ignoring option '-M'; no argument required 3422 + # The diagnosis changed in icc 8.0: 3423 + # icc: Command line remark: option '-MP' not supported 3424 + if (grep 'ignoring option' conftest.err || 3425 + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3426 + am_cv_CC_dependencies_compiler_type=$depmode 3427 + break 3428 + fi 3429 + fi 3430 + done 3431 + 3432 + cd .. 3433 + rm -rf conftest.dir 3434 + else 3435 + am_cv_CC_dependencies_compiler_type=none 3436 + fi 3437 + 3438 + fi 3439 + { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3440 + $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3441 + CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3442 + 3443 + 3444 + 3445 + if 3446 + test "x$enable_dependency_tracking" != xno \ 3447 + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3448 + am__fastdepCC_TRUE= 3449 + am__fastdepCC_FALSE='#' 3450 + else 3451 + am__fastdepCC_TRUE='#' 3452 + am__fastdepCC_FALSE= 3453 + fi 3454 + 3455 + 3456 + 3457 + ac_ext=c 3458 + ac_cpp='$CPP $CPPFLAGS' 3459 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3460 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3461 + ac_compiler_gnu=$ac_cv_c_compiler_gnu 3462 + { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3463 + $as_echo_n "checking how to run the C preprocessor... " >&6; } 3464 + # On Suns, sometimes $CPP names a directory. 3465 + if test -n "$CPP" && test -d "$CPP"; then 3466 + CPP= 3467 + fi 3468 + if test -z "$CPP"; then 3469 + if test "${ac_cv_prog_CPP+set}" = set; then 3470 + $as_echo_n "(cached) " >&6 3471 + else 3472 + # Double quotes because CPP needs to be expanded 3473 + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3474 + do 3475 + ac_preproc_ok=false 3476 + for ac_c_preproc_warn_flag in '' yes 3477 + do 3478 + # Use a header file that comes with gcc, so configuring glibc 3479 + # with a fresh cross-compiler works. 3480 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3481 + # <limits.h> exists even on freestanding compilers. 3482 + # On the NeXT, cc -E runs the code through the compiler's parser, 3483 + # not just through cpp. "Syntax error" is here to catch this case. 3484 + cat >conftest.$ac_ext <<_ACEOF 3485 + /* confdefs.h. */ 3486 + _ACEOF 3487 + cat confdefs.h >>conftest.$ac_ext 3488 + cat >>conftest.$ac_ext <<_ACEOF 3489 + /* end confdefs.h. */ 3490 + #ifdef __STDC__ 3491 + # include <limits.h> 3492 + #else 3493 + # include <assert.h> 2532 3494 #endif 3495 + Syntax error 2533 3496 _ACEOF 2534 - rm -f conftest.$ac_objext 2535 - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2536 - (eval $ac_compile) 2>conftest.er1 3497 + if { (ac_try="$ac_cpp conftest.$ac_ext" 3498 + case "(($ac_try" in 3499 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3500 + *) ac_try_echo=$ac_try;; 3501 + esac 3502 + eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3503 + $as_echo "$ac_try_echo") >&5 3504 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 2537 3505 ac_status=$? 2538 3506 grep -v '^ *+' conftest.er1 >conftest.err 2539 3507 rm -f conftest.er1 2540 3508 cat conftest.err >&5 2541 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 2542 - (exit $ac_status); } && 2543 - { ac_try='test -z "$ac_c_werror_flag" 2544 - || test ! -s conftest.err' 2545 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2546 - (eval $ac_try) 2>&5 3509 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3510 + (exit $ac_status); } >/dev/null && { 3511 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3512 + test ! -s conftest.err 3513 + }; then 3514 + : 3515 + else 3516 + $as_echo "$as_me: failed program was:" >&5 3517 + sed 's/^/| /' conftest.$ac_ext >&5 3518 + 3519 + # Broken: fails on valid input. 3520 + continue 3521 + fi 3522 + 3523 + rm -f conftest.err conftest.$ac_ext 3524 + 3525 + # OK, works on sane cases. Now check whether nonexistent headers 3526 + # can be detected and how. 3527 + cat >conftest.$ac_ext <<_ACEOF 3528 + /* confdefs.h. */ 3529 + _ACEOF 3530 + cat confdefs.h >>conftest.$ac_ext 3531 + cat >>conftest.$ac_ext <<_ACEOF 3532 + /* end confdefs.h. */ 3533 + #include <ac_nonexistent.h> 3534 + _ACEOF 3535 + if { (ac_try="$ac_cpp conftest.$ac_ext" 3536 + case "(($ac_try" in 3537 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3538 + *) ac_try_echo=$ac_try;; 3539 + esac 3540 + eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3541 + $as_echo "$ac_try_echo") >&5 3542 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 2547 3543 ac_status=$? 2548 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 2549 - (exit $ac_status); }; } && 2550 - { ac_try='test -s conftest.$ac_objext' 2551 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2552 - (eval $ac_try) 2>&5 3544 + grep -v '^ *+' conftest.er1 >conftest.err 3545 + rm -f conftest.er1 3546 + cat conftest.err >&5 3547 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3548 + (exit $ac_status); } >/dev/null && { 3549 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3550 + test ! -s conftest.err 3551 + }; then 3552 + # Broken: success on invalid input. 3553 + continue 3554 + else 3555 + $as_echo "$as_me: failed program was:" >&5 3556 + sed 's/^/| /' conftest.$ac_ext >&5 3557 + 3558 + # Passes both tests. 3559 + ac_preproc_ok=: 3560 + break 3561 + fi 3562 + 3563 + rm -f conftest.err conftest.$ac_ext 3564 + 3565 + done 3566 + # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3567 + rm -f conftest.err conftest.$ac_ext 3568 + if $ac_preproc_ok; then 3569 + break 3570 + fi 3571 + 3572 + done 3573 + ac_cv_prog_CPP=$CPP 3574 + 3575 + fi 3576 + CPP=$ac_cv_prog_CPP 3577 + else 3578 + ac_cv_prog_CPP=$CPP 3579 + fi 3580 + { $as_echo "$as_me:$LINENO: result: $CPP" >&5 3581 + $as_echo "$CPP" >&6; } 3582 + ac_preproc_ok=false 3583 + for ac_c_preproc_warn_flag in '' yes 3584 + do 3585 + # Use a header file that comes with gcc, so configuring glibc 3586 + # with a fresh cross-compiler works. 3587 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3588 + # <limits.h> exists even on freestanding compilers. 3589 + # On the NeXT, cc -E runs the code through the compiler's parser, 3590 + # not just through cpp. "Syntax error" is here to catch this case. 3591 + cat >conftest.$ac_ext <<_ACEOF 3592 + /* confdefs.h. */ 3593 + _ACEOF 3594 + cat confdefs.h >>conftest.$ac_ext 3595 + cat >>conftest.$ac_ext <<_ACEOF 3596 + /* end confdefs.h. */ 3597 + #ifdef __STDC__ 3598 + # include <limits.h> 3599 + #else 3600 + # include <assert.h> 3601 + #endif 3602 + Syntax error 3603 + _ACEOF 3604 + if { (ac_try="$ac_cpp conftest.$ac_ext" 3605 + case "(($ac_try" in 3606 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3607 + *) ac_try_echo=$ac_try;; 3608 + esac 3609 + eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3610 + $as_echo "$ac_try_echo") >&5 3611 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 2553 3612 ac_status=$? 2554 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 2555 - (exit $ac_status); }; }; then 2556 - for ac_declaration in \ 2557 - '' \ 2558 - 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2559 - 'extern "C" void std::exit (int); using std::exit;' \ 2560 - 'extern "C" void exit (int) throw ();' \ 2561 - 'extern "C" void exit (int);' \ 2562 - 'void exit (int);' 3613 + grep -v '^ *+' conftest.er1 >conftest.err 3614 + rm -f conftest.er1 3615 + cat conftest.err >&5 3616 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3617 + (exit $ac_status); } >/dev/null && { 3618 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3619 + test ! -s conftest.err 3620 + }; then 3621 + : 3622 + else 3623 + $as_echo "$as_me: failed program was:" >&5 3624 + sed 's/^/| /' conftest.$ac_ext >&5 3625 + 3626 + # Broken: fails on valid input. 3627 + continue 3628 + fi 3629 + 3630 + rm -f conftest.err conftest.$ac_ext 3631 + 3632 + # OK, works on sane cases. Now check whether nonexistent headers 3633 + # can be detected and how. 3634 + cat >conftest.$ac_ext <<_ACEOF 3635 + /* confdefs.h. */ 3636 + _ACEOF 3637 + cat confdefs.h >>conftest.$ac_ext 3638 + cat >>conftest.$ac_ext <<_ACEOF 3639 + /* end confdefs.h. */ 3640 + #include <ac_nonexistent.h> 3641 + _ACEOF 3642 + if { (ac_try="$ac_cpp conftest.$ac_ext" 3643 + case "(($ac_try" in 3644 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3645 + *) ac_try_echo=$ac_try;; 3646 + esac 3647 + eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3648 + $as_echo "$ac_try_echo") >&5 3649 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3650 + ac_status=$? 3651 + grep -v '^ *+' conftest.er1 >conftest.err 3652 + rm -f conftest.er1 3653 + cat conftest.err >&5 3654 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3655 + (exit $ac_status); } >/dev/null && { 3656 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3657 + test ! -s conftest.err 3658 + }; then 3659 + # Broken: success on invalid input. 3660 + continue 3661 + else 3662 + $as_echo "$as_me: failed program was:" >&5 3663 + sed 's/^/| /' conftest.$ac_ext >&5 3664 + 3665 + # Passes both tests. 3666 + ac_preproc_ok=: 3667 + break 3668 + fi 3669 + 3670 + rm -f conftest.err conftest.$ac_ext 3671 + 3672 + done 3673 + # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3674 + rm -f conftest.err conftest.$ac_ext 3675 + if $ac_preproc_ok; then 3676 + : 3677 + else 3678 + { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3679 + See \`config.log' for more details." >&5 3680 + $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3681 + See \`config.log' for more details." >&2;} 3682 + { (exit 1); exit 1; }; } 3683 + fi 3684 + 3685 + ac_ext=c 3686 + ac_cpp='$CPP $CPPFLAGS' 3687 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3688 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3689 + ac_compiler_gnu=$ac_cv_c_compiler_gnu 3690 + 3691 + 3692 + { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3693 + $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3694 + if test "${ac_cv_path_GREP+set}" = set; then 3695 + $as_echo_n "(cached) " >&6 3696 + else 3697 + if test -z "$GREP"; then 3698 + ac_path_GREP_found=false 3699 + # Loop through the user's path and test for each of PROGNAME-LIST 3700 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3701 + for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 2563 3702 do 3703 + IFS=$as_save_IFS 3704 + test -z "$as_dir" && as_dir=. 3705 + for ac_prog in grep ggrep; do 3706 + for ac_exec_ext in '' $ac_executable_extensions; do 3707 + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3708 + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3709 + # Check for GNU ac_path_GREP and select it if it is found. 3710 + # Check for GNU $ac_path_GREP 3711 + case `"$ac_path_GREP" --version 2>&1` in 3712 + *GNU*) 3713 + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3714 + *) 3715 + ac_count=0 3716 + $as_echo_n 0123456789 >"conftest.in" 3717 + while : 3718 + do 3719 + cat "conftest.in" "conftest.in" >"conftest.tmp" 3720 + mv "conftest.tmp" "conftest.in" 3721 + cp "conftest.in" "conftest.nl" 3722 + $as_echo 'GREP' >> "conftest.nl" 3723 + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3724 + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3725 + ac_count=`expr $ac_count + 1` 3726 + if test $ac_count -gt ${ac_path_GREP_max-0}; then 3727 + # Best one so far, save it but keep looking for a better one 3728 + ac_cv_path_GREP="$ac_path_GREP" 3729 + ac_path_GREP_max=$ac_count 3730 + fi 3731 + # 10*(2^10) chars as input seems more than enough 3732 + test $ac_count -gt 10 && break 3733 + done 3734 + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3735 + esac 3736 + 3737 + $ac_path_GREP_found && break 3 3738 + done 3739 + done 3740 + done 3741 + IFS=$as_save_IFS 3742 + if test -z "$ac_cv_path_GREP"; then 3743 + { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3744 + $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3745 + { (exit 1); exit 1; }; } 3746 + fi 3747 + else 3748 + ac_cv_path_GREP=$GREP 3749 + fi 3750 + 3751 + fi 3752 + { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3753 + $as_echo "$ac_cv_path_GREP" >&6; } 3754 + GREP="$ac_cv_path_GREP" 3755 + 3756 + 3757 + { $as_echo "$as_me:$LINENO: checking for egrep" >&5 3758 + $as_echo_n "checking for egrep... " >&6; } 3759 + if test "${ac_cv_path_EGREP+set}" = set; then 3760 + $as_echo_n "(cached) " >&6 3761 + else 3762 + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3763 + then ac_cv_path_EGREP="$GREP -E" 3764 + else 3765 + if test -z "$EGREP"; then 3766 + ac_path_EGREP_found=false 3767 + # Loop through the user's path and test for each of PROGNAME-LIST 3768 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3769 + for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3770 + do 3771 + IFS=$as_save_IFS 3772 + test -z "$as_dir" && as_dir=. 3773 + for ac_prog in egrep; do 3774 + for ac_exec_ext in '' $ac_executable_extensions; do 3775 + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3776 + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3777 + # Check for GNU ac_path_EGREP and select it if it is found. 3778 + # Check for GNU $ac_path_EGREP 3779 + case `"$ac_path_EGREP" --version 2>&1` in 3780 + *GNU*) 3781 + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3782 + *) 3783 + ac_count=0 3784 + $as_echo_n 0123456789 >"conftest.in" 3785 + while : 3786 + do 3787 + cat "conftest.in" "conftest.in" >"conftest.tmp" 3788 + mv "conftest.tmp" "conftest.in" 3789 + cp "conftest.in" "conftest.nl" 3790 + $as_echo 'EGREP' >> "conftest.nl" 3791 + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3792 + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3793 + ac_count=`expr $ac_count + 1` 3794 + if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3795 + # Best one so far, save it but keep looking for a better one 3796 + ac_cv_path_EGREP="$ac_path_EGREP" 3797 + ac_path_EGREP_max=$ac_count 3798 + fi 3799 + # 10*(2^10) chars as input seems more than enough 3800 + test $ac_count -gt 10 && break 3801 + done 3802 + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3803 + esac 3804 + 3805 + $ac_path_EGREP_found && break 3 3806 + done 3807 + done 3808 + done 3809 + IFS=$as_save_IFS 3810 + if test -z "$ac_cv_path_EGREP"; then 3811 + { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3812 + $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3813 + { (exit 1); exit 1; }; } 3814 + fi 3815 + else 3816 + ac_cv_path_EGREP=$EGREP 3817 + fi 3818 + 3819 + fi 3820 + fi 3821 + { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3822 + $as_echo "$ac_cv_path_EGREP" >&6; } 3823 + EGREP="$ac_cv_path_EGREP" 3824 + 3825 + 3826 + { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3827 + $as_echo_n "checking for ANSI C header files... " >&6; } 3828 + if test "${ac_cv_header_stdc+set}" = set; then 3829 + $as_echo_n "(cached) " >&6 3830 + else 2564 3831 cat >conftest.$ac_ext <<_ACEOF 2565 3832 /* confdefs.h. */ 2566 3833 _ACEOF 2567 3834 cat confdefs.h >>conftest.$ac_ext 2568 3835 cat >>conftest.$ac_ext <<_ACEOF 2569 3836 /* end confdefs.h. */ 2570 - $ac_declaration 2571 3837 #include <stdlib.h> 3838 + #include <stdarg.h> 3839 + #include <string.h> 3840 + #include <float.h> 3841 + 2572 3842 int 2573 3843 main () 2574 3844 { 2575 - exit (42); 3845 + 2576 3846 ; 2577 3847 return 0; 2578 3848 } 2579 3849 _ACEOF 2580 3850 rm -f conftest.$ac_objext 2581 - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2582 - (eval $ac_compile) 2>conftest.er1 3851 + if { (ac_try="$ac_compile" 3852 + case "(($ac_try" in 3853 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3854 + *) ac_try_echo=$ac_try;; 3855 + esac 3856 + eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3857 + $as_echo "$ac_try_echo") >&5 3858 + (eval "$ac_compile") 2>conftest.er1 2583 3859 ac_status=$? 2584 3860 grep -v '^ *+' conftest.er1 >conftest.err 2585 3861 rm -f conftest.er1 2586 3862 cat conftest.err >&5 2587 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 2588 - (exit $ac_status); } && 2589 - { ac_try='test -z "$ac_c_werror_flag" 2590 - || test ! -s conftest.err' 2591 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2592 - (eval $ac_try) 2>&5 3863 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3864 + (exit $ac_status); } && { 3865 + test -z "$ac_c_werror_flag" || 3866 + test ! -s conftest.err 3867 + } && test -s conftest.$ac_objext; then 3868 + ac_cv_header_stdc=yes 3869 + else 3870 + $as_echo "$as_me: failed program was:" >&5 3871 + sed 's/^/| /' conftest.$ac_ext >&5 3872 + 3873 + ac_cv_header_stdc=no 3874 + fi 3875 + 3876 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3877 + 3878 + if test $ac_cv_header_stdc = yes; then 3879 + # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3880 + cat >conftest.$ac_ext <<_ACEOF 3881 + /* confdefs.h. */ 3882 + _ACEOF 3883 + cat confdefs.h >>conftest.$ac_ext 3884 + cat >>conftest.$ac_ext <<_ACEOF 3885 + /* end confdefs.h. */ 3886 + #include <string.h> 3887 + 3888 + _ACEOF 3889 + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3890 + $EGREP "memchr" >/dev/null 2>&1; then 3891 + : 3892 + else 3893 + ac_cv_header_stdc=no 3894 + fi 3895 + rm -f conftest* 3896 + 3897 + fi 3898 + 3899 + if test $ac_cv_header_stdc = yes; then 3900 + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3901 + cat >conftest.$ac_ext <<_ACEOF 3902 + /* confdefs.h. */ 3903 + _ACEOF 3904 + cat confdefs.h >>conftest.$ac_ext 3905 + cat >>conftest.$ac_ext <<_ACEOF 3906 + /* end confdefs.h. */ 3907 + #include <stdlib.h> 3908 + 3909 + _ACEOF 3910 + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3911 + $EGREP "free" >/dev/null 2>&1; then 3912 + : 3913 + else 3914 + ac_cv_header_stdc=no 3915 + fi 3916 + rm -f conftest* 3917 + 3918 + fi 3919 + 3920 + if test $ac_cv_header_stdc = yes; then 3921 + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3922 + if test "$cross_compiling" = yes; then 3923 + : 3924 + else 3925 + cat >conftest.$ac_ext <<_ACEOF 3926 + /* confdefs.h. */ 3927 + _ACEOF 3928 + cat confdefs.h >>conftest.$ac_ext 3929 + cat >>conftest.$ac_ext <<_ACEOF 3930 + /* end confdefs.h. */ 3931 + #include <ctype.h> 3932 + #include <stdlib.h> 3933 + #if ((' ' & 0x0FF) == 0x020) 3934 + # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3935 + # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3936 + #else 3937 + # define ISLOWER(c) \ 3938 + (('a' <= (c) && (c) <= 'i') \ 3939 + || ('j' <= (c) && (c) <= 'r') \ 3940 + || ('s' <= (c) && (c) <= 'z')) 3941 + # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3942 + #endif 3943 + 3944 + #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3945 + int 3946 + main () 3947 + { 3948 + int i; 3949 + for (i = 0; i < 256; i++) 3950 + if (XOR (islower (i), ISLOWER (i)) 3951 + || toupper (i) != TOUPPER (i)) 3952 + return 2; 3953 + return 0; 3954 + } 3955 + _ACEOF 3956 + rm -f conftest$ac_exeext 3957 + if { (ac_try="$ac_link" 3958 + case "(($ac_try" in 3959 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3960 + *) ac_try_echo=$ac_try;; 3961 + esac 3962 + eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3963 + $as_echo "$ac_try_echo") >&5 3964 + (eval "$ac_link") 2>&5 2593 3965 ac_status=$? 2594 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 2595 - (exit $ac_status); }; } && 2596 - { ac_try='test -s conftest.$ac_objext' 2597 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2598 - (eval $ac_try) 2>&5 3966 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3967 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3968 + { (case "(($ac_try" in 3969 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3970 + *) ac_try_echo=$ac_try;; 3971 + esac 3972 + eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3973 + $as_echo "$ac_try_echo") >&5 3974 + (eval "$ac_try") 2>&5 2599 3975 ac_status=$? 2600 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 3976 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2601 3977 (exit $ac_status); }; }; then 2602 3978 : 2603 3979 else 2604 - echo "$as_me: failed program was:" >&5 3980 + $as_echo "$as_me: program exited with status $ac_status" >&5 3981 + $as_echo "$as_me: failed program was:" >&5 2605 3982 sed 's/^/| /' conftest.$ac_ext >&5 2606 3983 2607 - continue 3984 + ( exit $ac_status ) 3985 + ac_cv_header_stdc=no 2608 3986 fi 2609 - rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3987 + rm -rf conftest.dSYM 3988 + rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3989 + fi 3990 + 3991 + 3992 + fi 3993 + fi 3994 + { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3995 + $as_echo "$ac_cv_header_stdc" >&6; } 3996 + if test $ac_cv_header_stdc = yes; then 3997 + 3998 + cat >>confdefs.h <<\_ACEOF 3999 + #define STDC_HEADERS 1 4000 + _ACEOF 4001 + 4002 + fi 4003 + 4004 + # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4005 + 4006 + 4007 + 4008 + 4009 + 4010 + 4011 + 4012 + 4013 + 4014 + for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4015 + inttypes.h stdint.h unistd.h 4016 + do 4017 + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4018 + { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 4019 + $as_echo_n "checking for $ac_header... " >&6; } 4020 + if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4021 + $as_echo_n "(cached) " >&6 4022 + else 2610 4023 cat >conftest.$ac_ext <<_ACEOF 2611 4024 /* confdefs.h. */ 2612 4025 _ACEOF 2613 4026 cat confdefs.h >>conftest.$ac_ext 2614 4027 cat >>conftest.$ac_ext <<_ACEOF 2615 4028 /* end confdefs.h. */ 2616 - $ac_declaration 4029 + $ac_includes_default 4030 + 4031 + #include <$ac_header> 4032 + _ACEOF 4033 + rm -f conftest.$ac_objext 4034 + if { (ac_try="$ac_compile" 4035 + case "(($ac_try" in 4036 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4037 + *) ac_try_echo=$ac_try;; 4038 + esac 4039 + eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4040 + $as_echo "$ac_try_echo") >&5 4041 + (eval "$ac_compile") 2>conftest.er1 4042 + ac_status=$? 4043 + grep -v '^ *+' conftest.er1 >conftest.err 4044 + rm -f conftest.er1 4045 + cat conftest.err >&5 4046 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4047 + (exit $ac_status); } && { 4048 + test -z "$ac_c_werror_flag" || 4049 + test ! -s conftest.err 4050 + } && test -s conftest.$ac_objext; then 4051 + eval "$as_ac_Header=yes" 4052 + else 4053 + $as_echo "$as_me: failed program was:" >&5 4054 + sed 's/^/| /' conftest.$ac_ext >&5 4055 + 4056 + eval "$as_ac_Header=no" 4057 + fi 4058 + 4059 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4060 + fi 4061 + ac_res=`eval 'as_val=${'$as_ac_Header'} 4062 + $as_echo "$as_val"'` 4063 + { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 4064 + $as_echo "$ac_res" >&6; } 4065 + if test `eval 'as_val=${'$as_ac_Header'} 4066 + $as_echo "$as_val"'` = yes; then 4067 + cat >>confdefs.h <<_ACEOF 4068 + #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4069 + _ACEOF 4070 + 4071 + fi 4072 + 4073 + done 4074 + 4075 + 4076 + { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5 4077 + $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4078 + if test "${ac_cv_prog_cc_c99+set}" = set; then 4079 + $as_echo_n "(cached) " >&6 4080 + else 4081 + ac_cv_prog_cc_c99=no 4082 + ac_save_CC=$CC 4083 + cat >conftest.$ac_ext <<_ACEOF 4084 + /* confdefs.h. */ 4085 + _ACEOF 4086 + cat confdefs.h >>conftest.$ac_ext 4087 + cat >>conftest.$ac_ext <<_ACEOF 4088 + /* end confdefs.h. */ 4089 + #include <stdarg.h> 4090 + #include <stdbool.h> 4091 + #include <stdlib.h> 4092 + #include <wchar.h> 4093 + #include <stdio.h> 4094 + 4095 + // Check varargs macros. These examples are taken from C99 6.10.3.5. 4096 + #define debug(...) fprintf (stderr, __VA_ARGS__) 4097 + #define showlist(...) puts (#__VA_ARGS__) 4098 + #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4099 + static void 4100 + test_varargs_macros (void) 4101 + { 4102 + int x = 1234; 4103 + int y = 5678; 4104 + debug ("Flag"); 4105 + debug ("X = %d\n", x); 4106 + showlist (The first, second, and third items.); 4107 + report (x>y, "x is %d but y is %d", x, y); 4108 + } 4109 + 4110 + // Check long long types. 4111 + #define BIG64 18446744073709551615ull 4112 + #define BIG32 4294967295ul 4113 + #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4114 + #if !BIG_OK 4115 + your preprocessor is broken; 4116 + #endif 4117 + #if BIG_OK 4118 + #else 4119 + your preprocessor is broken; 4120 + #endif 4121 + static long long int bignum = -9223372036854775807LL; 4122 + static unsigned long long int ubignum = BIG64; 4123 + 4124 + struct incomplete_array 4125 + { 4126 + int datasize; 4127 + double data[]; 4128 + }; 4129 + 4130 + struct named_init { 4131 + int number; 4132 + const wchar_t *name; 4133 + double average; 4134 + }; 4135 + 4136 + typedef const char *ccp; 4137 + 4138 + static inline int 4139 + test_restrict (ccp restrict text) 4140 + { 4141 + // See if C++-style comments work. 4142 + // Iterate through items via the restricted pointer. 4143 + // Also check for declarations in for loops. 4144 + for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4145 + continue; 4146 + return 0; 4147 + } 4148 + 4149 + // Check varargs and va_copy. 4150 + static void 4151 + test_varargs (const char *format, ...) 4152 + { 4153 + va_list args; 4154 + va_start (args, format); 4155 + va_list args_copy; 4156 + va_copy (args_copy, args); 4157 + 4158 + const char *str; 4159 + int number; 4160 + float fnumber; 4161 + 4162 + while (*format) 4163 + { 4164 + switch (*format++) 4165 + { 4166 + case 's': // string 4167 + str = va_arg (args_copy, const char *); 4168 + break; 4169 + case 'd': // int 4170 + number = va_arg (args_copy, int); 4171 + break; 4172 + case 'f': // float 4173 + fnumber = va_arg (args_copy, double); 4174 + break; 4175 + default: 4176 + break; 4177 + } 4178 + } 4179 + va_end (args_copy); 4180 + va_end (args); 4181 + } 4182 + 2617 4183 int 2618 4184 main () 2619 4185 { 2620 - exit (42); 4186 + 4187 + // Check bool. 4188 + _Bool success = false; 4189 + 4190 + // Check restrict. 4191 + if (test_restrict ("String literal") == 0) 4192 + success = true; 4193 + char *restrict newvar = "Another string"; 4194 + 4195 + // Check varargs. 4196 + test_varargs ("s, d' f .", "string", 65, 34.234); 4197 + test_varargs_macros (); 4198 + 4199 + // Check flexible array members. 4200 + struct incomplete_array *ia = 4201 + malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4202 + ia->datasize = 10; 4203 + for (int i = 0; i < ia->datasize; ++i) 4204 + ia->data[i] = i * 1.234; 4205 + 4206 + // Check named initializers. 4207 + struct named_init ni = { 4208 + .number = 34, 4209 + .name = L"Test wide string", 4210 + .average = 543.34343, 4211 + }; 4212 + 4213 + ni.number = 58; 4214 + 4215 + int dynamic_array[ni.number]; 4216 + dynamic_array[ni.number - 1] = 543; 4217 + 4218 + // work around unused variable warnings 4219 + return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4220 + || dynamic_array[ni.number - 1] != 543); 4221 + 2621 4222 ; 2622 4223 return 0; 2623 4224 } 2624 4225 _ACEOF 2625 - rm -f conftest.$ac_objext 2626 - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2627 - (eval $ac_compile) 2>conftest.er1 4226 + for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 4227 + do 4228 + CC="$ac_save_CC $ac_arg" 4229 + rm -f conftest.$ac_objext 4230 + if { (ac_try="$ac_compile" 4231 + case "(($ac_try" in 4232 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4233 + *) ac_try_echo=$ac_try;; 4234 + esac 4235 + eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4236 + $as_echo "$ac_try_echo") >&5 4237 + (eval "$ac_compile") 2>conftest.er1 2628 4238 ac_status=$? 2629 4239 grep -v '^ *+' conftest.er1 >conftest.err 2630 4240 rm -f conftest.er1 2631 4241 cat conftest.err >&5 2632 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 2633 - (exit $ac_status); } && 2634 - { ac_try='test -z "$ac_c_werror_flag" 2635 - || test ! -s conftest.err' 2636 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2637 - (eval $ac_try) 2>&5 4242 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4243 + (exit $ac_status); } && { 4244 + test -z "$ac_c_werror_flag" || 4245 + test ! -s conftest.err 4246 + } && test -s conftest.$ac_objext; then 4247 + ac_cv_prog_cc_c99=$ac_arg 4248 + else 4249 + $as_echo "$as_me: failed program was:" >&5 4250 + sed 's/^/| /' conftest.$ac_ext >&5 4251 + 4252 + 4253 + fi 4254 + 4255 + rm -f core conftest.err conftest.$ac_objext 4256 + test "x$ac_cv_prog_cc_c99" != "xno" && break 4257 + done 4258 + rm -f conftest.$ac_ext 4259 + CC=$ac_save_CC 4260 + 4261 + fi 4262 + # AC_CACHE_VAL 4263 + case "x$ac_cv_prog_cc_c99" in 4264 + x) 4265 + { $as_echo "$as_me:$LINENO: result: none needed" >&5 4266 + $as_echo "none needed" >&6; } ;; 4267 + xno) 4268 + { $as_echo "$as_me:$LINENO: result: unsupported" >&5 4269 + $as_echo "unsupported" >&6; } ;; 4270 + *) 4271 + CC="$CC $ac_cv_prog_cc_c99" 4272 + { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5 4273 + $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4274 + esac 4275 + 4276 + 4277 + 4278 + 4279 + 4280 + if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4281 + if test -n "$ac_tool_prefix"; then 4282 + # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4283 + set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4284 + { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4285 + $as_echo_n "checking for $ac_word... " >&6; } 4286 + if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 4287 + $as_echo_n "(cached) " >&6 4288 + else 4289 + case $PKG_CONFIG in 4290 + [\\/]* | ?:[\\/]*) 4291 + ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4292 + ;; 4293 + *) 4294 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4295 + for as_dir in $PATH 4296 + do 4297 + IFS=$as_save_IFS 4298 + test -z "$as_dir" && as_dir=. 4299 + for ac_exec_ext in '' $ac_executable_extensions; do 4300 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4301 + ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4302 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4303 + break 2 4304 + fi 4305 + done 4306 + done 4307 + IFS=$as_save_IFS 4308 + 4309 + ;; 4310 + esac 4311 + fi 4312 + PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4313 + if test -n "$PKG_CONFIG"; then 4314 + { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 4315 + $as_echo "$PKG_CONFIG" >&6; } 4316 + else 4317 + { $as_echo "$as_me:$LINENO: result: no" >&5 4318 + $as_echo "no" >&6; } 4319 + fi 4320 + 4321 + 4322 + fi 4323 + if test -z "$ac_cv_path_PKG_CONFIG"; then 4324 + ac_pt_PKG_CONFIG=$PKG_CONFIG 4325 + # Extract the first word of "pkg-config", so it can be a program name with args. 4326 + set dummy pkg-config; ac_word=$2 4327 + { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4328 + $as_echo_n "checking for $ac_word... " >&6; } 4329 + if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 4330 + $as_echo_n "(cached) " >&6 4331 + else 4332 + case $ac_pt_PKG_CONFIG in 4333 + [\\/]* | ?:[\\/]*) 4334 + ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4335 + ;; 4336 + *) 4337 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4338 + for as_dir in $PATH 4339 + do 4340 + IFS=$as_save_IFS 4341 + test -z "$as_dir" && as_dir=. 4342 + for ac_exec_ext in '' $ac_executable_extensions; do 4343 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4344 + ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4345 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4346 + break 2 4347 + fi 4348 + done 4349 + done 4350 + IFS=$as_save_IFS 4351 + 4352 + ;; 4353 + esac 4354 + fi 4355 + ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4356 + if test -n "$ac_pt_PKG_CONFIG"; then 4357 + { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 4358 + $as_echo "$ac_pt_PKG_CONFIG" >&6; } 4359 + else 4360 + { $as_echo "$as_me:$LINENO: result: no" >&5 4361 + $as_echo "no" >&6; } 4362 + fi 4363 + 4364 + if test "x$ac_pt_PKG_CONFIG" = x; then 4365 + PKG_CONFIG="" 4366 + else 4367 + case $cross_compiling:$ac_tool_warned in 4368 + yes:) 4369 + { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4370 + whose name does not start with the host triplet. If you think this 4371 + configuration is useful to you, please write to autoconf@gnu.org." >&5 4372 + $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4373 + whose name does not start with the host triplet. If you think this 4374 + configuration is useful to you, please write to autoconf@gnu.org." >&2;} 4375 + ac_tool_warned=yes ;; 4376 + esac 4377 + PKG_CONFIG=$ac_pt_PKG_CONFIG 4378 + fi 4379 + else 4380 + PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4381 + fi 4382 + 4383 + fi 4384 + if test -n "$PKG_CONFIG"; then 4385 + _pkg_min_version=0.9.0 4386 + { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 4387 + $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4388 + if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4389 + { $as_echo "$as_me:$LINENO: result: yes" >&5 4390 + $as_echo "yes" >&6; } 4391 + else 4392 + { $as_echo "$as_me:$LINENO: result: no" >&5 4393 + $as_echo "no" >&6; } 4394 + PKG_CONFIG="" 4395 + fi 4396 + 4397 + fi 4398 + # Make sure we can run config.sub. 4399 + $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4400 + { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 4401 + $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 4402 + { (exit 1); exit 1; }; } 4403 + 4404 + { $as_echo "$as_me:$LINENO: checking build system type" >&5 4405 + $as_echo_n "checking build system type... " >&6; } 4406 + if test "${ac_cv_build+set}" = set; then 4407 + $as_echo_n "(cached) " >&6 4408 + else 4409 + ac_build_alias=$build_alias 4410 + test "x$ac_build_alias" = x && 4411 + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4412 + test "x$ac_build_alias" = x && 4413 + { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 4414 + $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 4415 + { (exit 1); exit 1; }; } 4416 + ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4417 + { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 4418 + $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 4419 + { (exit 1); exit 1; }; } 4420 + 4421 + fi 4422 + { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 4423 + $as_echo "$ac_cv_build" >&6; } 4424 + case $ac_cv_build in 4425 + *-*-*) ;; 4426 + *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 4427 + $as_echo "$as_me: error: invalid value of canonical build" >&2;} 4428 + { (exit 1); exit 1; }; };; 4429 + esac 4430 + build=$ac_cv_build 4431 + ac_save_IFS=$IFS; IFS='-' 4432 + set x $ac_cv_build 4433 + shift 4434 + build_cpu=$1 4435 + build_vendor=$2 4436 + shift; shift 4437 + # Remember, the first character of IFS is used to create $*, 4438 + # except with old shells: 4439 + build_os=$* 4440 + IFS=$ac_save_IFS 4441 + case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4442 + 4443 + 4444 + { $as_echo "$as_me:$LINENO: checking host system type" >&5 4445 + $as_echo_n "checking host system type... " >&6; } 4446 + if test "${ac_cv_host+set}" = set; then 4447 + $as_echo_n "(cached) " >&6 4448 + else 4449 + if test "x$host_alias" = x; then 4450 + ac_cv_host=$ac_cv_build 4451 + else 4452 + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4453 + { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 4454 + $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 4455 + { (exit 1); exit 1; }; } 4456 + fi 4457 + 4458 + fi 4459 + { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 4460 + $as_echo "$ac_cv_host" >&6; } 4461 + case $ac_cv_host in 4462 + *-*-*) ;; 4463 + *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 4464 + $as_echo "$as_me: error: invalid value of canonical host" >&2;} 4465 + { (exit 1); exit 1; }; };; 4466 + esac 4467 + host=$ac_cv_host 4468 + ac_save_IFS=$IFS; IFS='-' 4469 + set x $ac_cv_host 4470 + shift 4471 + host_cpu=$1 4472 + host_vendor=$2 4473 + shift; shift 4474 + # Remember, the first character of IFS is used to create $*, 4475 + # except with old shells: 4476 + host_os=$* 4477 + IFS=$ac_save_IFS 4478 + case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4479 + 4480 + 4481 + 4482 + 4483 + 4484 + if test "x$GCC" = xyes ; then 4485 + CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 4486 + -Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 4487 + -Wbad-function-cast -Wformat=2" 4488 + case `$CC -dumpversion` in 4489 + 3.4.* | 4.*) 4490 + CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 4491 + ;; 4492 + esac 4493 + else 4494 + { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5 4495 + $as_echo_n "checking whether __SUNPRO_C is declared... " >&6; } 4496 + if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then 4497 + $as_echo_n "(cached) " >&6 4498 + else 4499 + cat >conftest.$ac_ext <<_ACEOF 4500 + /* confdefs.h. */ 4501 + _ACEOF 4502 + cat confdefs.h >>conftest.$ac_ext 4503 + cat >>conftest.$ac_ext <<_ACEOF 4504 + /* end confdefs.h. */ 4505 + $ac_includes_default 4506 + int 4507 + main () 4508 + { 4509 + #ifndef __SUNPRO_C 4510 + (void) __SUNPRO_C; 4511 + #endif 4512 + 4513 + ; 4514 + return 0; 4515 + } 4516 + _ACEOF 4517 + rm -f conftest.$ac_objext 4518 + if { (ac_try="$ac_compile" 4519 + case "(($ac_try" in 4520 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4521 + *) ac_try_echo=$ac_try;; 4522 + esac 4523 + eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4524 + $as_echo "$ac_try_echo") >&5 4525 + (eval "$ac_compile") 2>conftest.er1 2638 4526 ac_status=$? 2639 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 2640 - (exit $ac_status); }; } && 2641 - { ac_try='test -s conftest.$ac_objext' 2642 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2643 - (eval $ac_try) 2>&5 4527 + grep -v '^ *+' conftest.er1 >conftest.err 4528 + rm -f conftest.er1 4529 + cat conftest.err >&5 4530 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4531 + (exit $ac_status); } && { 4532 + test -z "$ac_c_werror_flag" || 4533 + test ! -s conftest.err 4534 + } && test -s conftest.$ac_objext; then 4535 + ac_cv_have_decl___SUNPRO_C=yes 4536 + else 4537 + $as_echo "$as_me: failed program was:" >&5 4538 + sed 's/^/| /' conftest.$ac_ext >&5 4539 + 4540 + ac_cv_have_decl___SUNPRO_C=no 4541 + fi 4542 + 4543 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4544 + fi 4545 + { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5 4546 + $as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; } 4547 + if test $ac_cv_have_decl___SUNPRO_C = yes; then 4548 + SUNCC="yes" 4549 + else 4550 + SUNCC="no" 4551 + fi 4552 + 4553 + if test "x$SUNCC" = "xyes"; then 4554 + CWARNFLAGS="-v" 4555 + fi 4556 + fi 4557 + 4558 + 4559 + 4560 + 4561 + 4562 + 4563 + 4564 + # Check whether --enable-strict-compilation was given. 4565 + if test "${enable_strict_compilation+set}" = set; then 4566 + enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 4567 + else 4568 + STRICT_COMPILE=no 4569 + fi 4570 + 4571 + if test "x$STRICT_COMPILE" = "xyes"; then 4572 + { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5 4573 + $as_echo_n "checking whether __SUNPRO_C is declared... " >&6; } 4574 + if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then 4575 + $as_echo_n "(cached) " >&6 4576 + else 4577 + cat >conftest.$ac_ext <<_ACEOF 4578 + /* confdefs.h. */ 4579 + _ACEOF 4580 + cat confdefs.h >>conftest.$ac_ext 4581 + cat >>conftest.$ac_ext <<_ACEOF 4582 + /* end confdefs.h. */ 4583 + $ac_includes_default 4584 + int 4585 + main () 4586 + { 4587 + #ifndef __SUNPRO_C 4588 + (void) __SUNPRO_C; 4589 + #endif 4590 + 4591 + ; 4592 + return 0; 4593 + } 4594 + _ACEOF 4595 + rm -f conftest.$ac_objext 4596 + if { (ac_try="$ac_compile" 4597 + case "(($ac_try" in 4598 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4599 + *) ac_try_echo=$ac_try;; 4600 + esac 4601 + eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4602 + $as_echo "$ac_try_echo") >&5 4603 + (eval "$ac_compile") 2>conftest.er1 2644 4604 ac_status=$? 2645 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 2646 - (exit $ac_status); }; }; then 2647 - break 4605 + grep -v '^ *+' conftest.er1 >conftest.err 4606 + rm -f conftest.er1 4607 + cat conftest.err >&5 4608 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4609 + (exit $ac_status); } && { 4610 + test -z "$ac_c_werror_flag" || 4611 + test ! -s conftest.err 4612 + } && test -s conftest.$ac_objext; then 4613 + ac_cv_have_decl___SUNPRO_C=yes 2648 4614 else 2649 - echo "$as_me: failed program was:" >&5 4615 + $as_echo "$as_me: failed program was:" >&5 2650 4616 sed 's/^/| /' conftest.$ac_ext >&5 2651 4617 4618 + ac_cv_have_decl___SUNPRO_C=no 2652 4619 fi 2653 - rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2654 - done 2655 - rm -f conftest* 2656 - if test -n "$ac_declaration"; then 2657 - echo '#ifdef __cplusplus' >>confdefs.h 2658 - echo $ac_declaration >>confdefs.h 2659 - echo '#endif' >>confdefs.h 4620 + 4621 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4622 + fi 4623 + { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5 4624 + $as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; } 4625 + if test $ac_cv_have_decl___SUNPRO_C = yes; then 4626 + SUNCC="yes" 4627 + else 4628 + SUNCC="no" 2660 4629 fi 2661 4630 4631 + { $as_echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5 4632 + $as_echo_n "checking whether __INTEL_COMPILER is declared... " >&6; } 4633 + if test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then 4634 + $as_echo_n "(cached) " >&6 2662 4635 else 2663 - echo "$as_me: failed program was:" >&5 4636 + cat >conftest.$ac_ext <<_ACEOF 4637 + /* confdefs.h. */ 4638 + _ACEOF 4639 + cat confdefs.h >>conftest.$ac_ext 4640 + cat >>conftest.$ac_ext <<_ACEOF 4641 + /* end confdefs.h. */ 4642 + $ac_includes_default 4643 + int 4644 + main () 4645 + { 4646 + #ifndef __INTEL_COMPILER 4647 + (void) __INTEL_COMPILER; 4648 + #endif 4649 + 4650 + ; 4651 + return 0; 4652 + } 4653 + _ACEOF 4654 + rm -f conftest.$ac_objext 4655 + if { (ac_try="$ac_compile" 4656 + case "(($ac_try" in 4657 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4658 + *) ac_try_echo=$ac_try;; 4659 + esac 4660 + eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4661 + $as_echo "$ac_try_echo") >&5 4662 + (eval "$ac_compile") 2>conftest.er1 4663 + ac_status=$? 4664 + grep -v '^ *+' conftest.er1 >conftest.err 4665 + rm -f conftest.er1 4666 + cat conftest.err >&5 4667 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4668 + (exit $ac_status); } && { 4669 + test -z "$ac_c_werror_flag" || 4670 + test ! -s conftest.err 4671 + } && test -s conftest.$ac_objext; then 4672 + ac_cv_have_decl___INTEL_COMPILER=yes 4673 + else 4674 + $as_echo "$as_me: failed program was:" >&5 2664 4675 sed 's/^/| /' conftest.$ac_ext >&5 2665 4676 4677 + ac_cv_have_decl___INTEL_COMPILER=no 2666 4678 fi 2667 - rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4679 + 4680 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4681 + fi 4682 + { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5 4683 + $as_echo "$ac_cv_have_decl___INTEL_COMPILER" >&6; } 4684 + if test $ac_cv_have_decl___INTEL_COMPILER = yes; then 4685 + INTELCC="yes" 4686 + else 4687 + INTELCC="no" 4688 + fi 4689 + 4690 + if test "x$GCC" = xyes ; then 4691 + STRICT_CFLAGS="-pedantic -Werror" 4692 + elif test "x$SUNCC" = "xyes"; then 4693 + STRICT_CFLAGS="-errwarn" 4694 + elif test "x$INTELCC" = "xyes"; then 4695 + STRICT_CFLAGS="-Werror" 4696 + fi 4697 + fi 4698 + CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 4699 + 4700 + 4701 + 4702 + 4703 + # Check whether --with-release-version was given. 4704 + if test "${with_release_version+set}" = set; then 4705 + withval=$with_release_version; RELEASE_VERSION="$withval" 4706 + else 4707 + RELEASE_VERSION="" 4708 + fi 4709 + 4710 + if test "x$RELEASE_VERSION" != "x"; then 4711 + PACKAGE="$PACKAGE-$RELEASE_VERSION" 4712 + PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 4713 + { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5 4714 + $as_echo "$as_me: Building with package name set to $PACKAGE" >&6;} 4715 + fi 4716 + 4717 + cat >>confdefs.h <<_ACEOF 4718 + #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 4719 + _ACEOF 4720 + 4721 + PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 4722 + if test "x$PVM" = "x"; then 4723 + PVM="0" 4724 + fi 4725 + 4726 + cat >>confdefs.h <<_ACEOF 4727 + #define PACKAGE_VERSION_MINOR $PVM 4728 + _ACEOF 4729 + 4730 + PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 4731 + if test "x$PVP" = "x"; then 4732 + PVP="0" 4733 + fi 4734 + 4735 + cat >>confdefs.h <<_ACEOF 4736 + #define PACKAGE_VERSION_PATCHLEVEL $PVP 4737 + _ACEOF 4738 + 4739 + 4740 + 4741 + CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 4742 + mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 4743 + || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 4744 + echo 'git directory not found: installing possibly empty changelog.' >&2)" 4745 + 4746 + 4747 + 4748 + 4749 + macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 4750 + INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 4751 + mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 4752 + || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 4753 + echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 4754 + 4755 + 4756 + 4757 + 4758 + 4759 + if test x$APP_MAN_SUFFIX = x ; then 4760 + APP_MAN_SUFFIX=1 4761 + fi 4762 + if test x$APP_MAN_DIR = x ; then 4763 + APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 4764 + fi 4765 + 4766 + if test x$LIB_MAN_SUFFIX = x ; then 4767 + LIB_MAN_SUFFIX=3 4768 + fi 4769 + if test x$LIB_MAN_DIR = x ; then 4770 + LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 4771 + fi 4772 + 4773 + if test x$FILE_MAN_SUFFIX = x ; then 4774 + case $host_os in 4775 + solaris*) FILE_MAN_SUFFIX=4 ;; 4776 + *) FILE_MAN_SUFFIX=5 ;; 4777 + esac 4778 + fi 4779 + if test x$FILE_MAN_DIR = x ; then 4780 + FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 4781 + fi 4782 + 4783 + if test x$MISC_MAN_SUFFIX = x ; then 4784 + case $host_os in 4785 + solaris*) MISC_MAN_SUFFIX=5 ;; 4786 + *) MISC_MAN_SUFFIX=7 ;; 4787 + esac 4788 + fi 4789 + if test x$MISC_MAN_DIR = x ; then 4790 + MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 4791 + fi 4792 + 4793 + if test x$DRIVER_MAN_SUFFIX = x ; then 4794 + case $host_os in 4795 + solaris*) DRIVER_MAN_SUFFIX=7 ;; 4796 + *) DRIVER_MAN_SUFFIX=4 ;; 4797 + esac 4798 + fi 4799 + if test x$DRIVER_MAN_DIR = x ; then 4800 + DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 4801 + fi 4802 + 4803 + if test x$ADMIN_MAN_SUFFIX = x ; then 4804 + case $host_os in 4805 + solaris*) ADMIN_MAN_SUFFIX=1m ;; 4806 + *) ADMIN_MAN_SUFFIX=8 ;; 4807 + esac 4808 + fi 4809 + if test x$ADMIN_MAN_DIR = x ; then 4810 + ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 4811 + fi 4812 + 4813 + 4814 + 4815 + 4816 + 4817 + 4818 + 4819 + 4820 + 4821 + 4822 + 4823 + 4824 + 4825 + 4826 + 4827 + AM_DEFAULT_VERBOSITY=1 4828 + 4829 + 4830 + 4831 + ac_config_headers="$ac_config_headers config.h" 4832 + 4833 + 2668 4834 ac_ext=c 2669 4835 ac_cpp='$CPP $CPPFLAGS' 2670 4836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2671 4837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2672 4838 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2673 - DEPDIR="${am__leading_dot}deps" 4839 + if test -n "$ac_tool_prefix"; then 4840 + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4841 + set dummy ${ac_tool_prefix}gcc; ac_word=$2 4842 + { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4843 + $as_echo_n "checking for $ac_word... " >&6; } 4844 + if test "${ac_cv_prog_CC+set}" = set; then 4845 + $as_echo_n "(cached) " >&6 4846 + else 4847 + if test -n "$CC"; then 4848 + ac_cv_prog_CC="$CC" # Let the user override the test. 4849 + else 4850 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4851 + for as_dir in $PATH 4852 + do 4853 + IFS=$as_save_IFS 4854 + test -z "$as_dir" && as_dir=. 4855 + for ac_exec_ext in '' $ac_executable_extensions; do 4856 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4857 + ac_cv_prog_CC="${ac_tool_prefix}gcc" 4858 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4859 + break 2 4860 + fi 4861 + done 4862 + done 4863 + IFS=$as_save_IFS 2674 4864 2675 - ac_config_commands="$ac_config_commands depfiles" 4865 + fi 4866 + fi 4867 + CC=$ac_cv_prog_CC 4868 + if test -n "$CC"; then 4869 + { $as_echo "$as_me:$LINENO: result: $CC" >&5 4870 + $as_echo "$CC" >&6; } 4871 + else 4872 + { $as_echo "$as_me:$LINENO: result: no" >&5 4873 + $as_echo "no" >&6; } 4874 + fi 2676 4875 2677 4876 2678 - am_make=${MAKE-make} 2679 - cat > confinc << 'END' 2680 - am__doit: 2681 - @echo done 2682 - .PHONY: am__doit 2683 - END 2684 - # If we don't find an include directive, just comment out the code. 2685 - echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2686 - echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 2687 - am__include="#" 2688 - am__quote= 2689 - _am_result=none 2690 - # First try GNU make style include. 2691 - echo "include confinc" > confmf 2692 - # We grep out `Entering directory' and `Leaving directory' 2693 - # messages which can occur if `w' ends up in MAKEFLAGS. 2694 - # In particular we don't look at `^make:' because GNU make might 2695 - # be invoked under some other name (usually "gmake"), in which 2696 - # case it prints its new name instead of `make'. 2697 - if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2698 - am__include=include 2699 - am__quote= 2700 - _am_result=GNU 2701 4877 fi 2702 - # Now try BSD make style include. 2703 - if test "$am__include" = "#"; then 2704 - echo '.include "confinc"' > confmf 2705 - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2706 - am__include=.include 2707 - am__quote="\"" 2708 - _am_result=BSD 2709 - fi 4878 + if test -z "$ac_cv_prog_CC"; then 4879 + ac_ct_CC=$CC 4880 + # Extract the first word of "gcc", so it can be a program name with args. 4881 + set dummy gcc; ac_word=$2 4882 + { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4883 + $as_echo_n "checking for $ac_word... " >&6; } 4884 + if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 4885 + $as_echo_n "(cached) " >&6 4886 + else 4887 + if test -n "$ac_ct_CC"; then 4888 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4889 + else 4890 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4891 + for as_dir in $PATH 4892 + do 4893 + IFS=$as_save_IFS 4894 + test -z "$as_dir" && as_dir=. 4895 + for ac_exec_ext in '' $ac_executable_extensions; do 4896 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4897 + ac_cv_prog_ac_ct_CC="gcc" 4898 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4899 + break 2 4900 + fi 4901 + done 4902 + done 4903 + IFS=$as_save_IFS 4904 + 4905 + fi 4906 + fi 4907 + ac_ct_CC=$ac_cv_prog_ac_ct_CC 4908 + if test -n "$ac_ct_CC"; then 4909 + { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 4910 + $as_echo "$ac_ct_CC" >&6; } 4911 + else 4912 + { $as_echo "$as_me:$LINENO: result: no" >&5 4913 + $as_echo "no" >&6; } 2710 4914 fi 2711 4915 4916 + if test "x$ac_ct_CC" = x; then 4917 + CC="" 4918 + else 4919 + case $cross_compiling:$ac_tool_warned in 4920 + yes:) 4921 + { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4922 + whose name does not start with the host triplet. If you think this 4923 + configuration is useful to you, please write to autoconf@gnu.org." >&5 4924 + $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4925 + whose name does not start with the host triplet. If you think this 4926 + configuration is useful to you, please write to autoconf@gnu.org." >&2;} 4927 + ac_tool_warned=yes ;; 4928 + esac 4929 + CC=$ac_ct_CC 4930 + fi 4931 + else 4932 + CC="$ac_cv_prog_CC" 4933 + fi 2712 4934 2713 - echo "$as_me:$LINENO: result: $_am_result" >&5 2714 - echo "${ECHO_T}$_am_result" >&6 2715 - rm -f confinc confmf 4935 + if test -z "$CC"; then 4936 + if test -n "$ac_tool_prefix"; then 4937 + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4938 + set dummy ${ac_tool_prefix}cc; ac_word=$2 4939 + { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4940 + $as_echo_n "checking for $ac_word... " >&6; } 4941 + if test "${ac_cv_prog_CC+set}" = set; then 4942 + $as_echo_n "(cached) " >&6 4943 + else 4944 + if test -n "$CC"; then 4945 + ac_cv_prog_CC="$CC" # Let the user override the test. 4946 + else 4947 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4948 + for as_dir in $PATH 4949 + do 4950 + IFS=$as_save_IFS 4951 + test -z "$as_dir" && as_dir=. 4952 + for ac_exec_ext in '' $ac_executable_extensions; do 4953 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4954 + ac_cv_prog_CC="${ac_tool_prefix}cc" 4955 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4956 + break 2 4957 + fi 4958 + done 4959 + done 4960 + IFS=$as_save_IFS 2716 4961 2717 - # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 2718 - if test "${enable_dependency_tracking+set}" = set; then 2719 - enableval="$enable_dependency_tracking" 4962 + fi 4963 + fi 4964 + CC=$ac_cv_prog_CC 4965 + if test -n "$CC"; then 4966 + { $as_echo "$as_me:$LINENO: result: $CC" >&5 4967 + $as_echo "$CC" >&6; } 4968 + else 4969 + { $as_echo "$as_me:$LINENO: result: no" >&5 4970 + $as_echo "no" >&6; } 4971 + fi 2720 4972 2721 - fi; 2722 - if test "x$enable_dependency_tracking" != xno; then 2723 - am_depcomp="$ac_aux_dir/depcomp" 2724 - AMDEPBACKSLASH='\' 4973 + 4974 + fi 4975 + fi 4976 + if test -z "$CC"; then 4977 + # Extract the first word of "cc", so it can be a program name with args. 4978 + set dummy cc; ac_word=$2 4979 + { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4980 + $as_echo_n "checking for $ac_word... " >&6; } 4981 + if test "${ac_cv_prog_CC+set}" = set; then 4982 + $as_echo_n "(cached) " >&6 4983 + else 4984 + if test -n "$CC"; then 4985 + ac_cv_prog_CC="$CC" # Let the user override the test. 4986 + else 4987 + ac_prog_rejected=no 4988 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4989 + for as_dir in $PATH 4990 + do 4991 + IFS=$as_save_IFS 4992 + test -z "$as_dir" && as_dir=. 4993 + for ac_exec_ext in '' $ac_executable_extensions; do 4994 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4995 + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4996 + ac_prog_rejected=yes 4997 + continue 4998 + fi 4999 + ac_cv_prog_CC="cc" 5000 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5001 + break 2 5002 + fi 5003 + done 5004 + done 5005 + IFS=$as_save_IFS 5006 + 5007 + if test $ac_prog_rejected = yes; then 5008 + # We found a bogon in the path, so make sure we never use it. 5009 + set dummy $ac_cv_prog_CC 5010 + shift 5011 + if test $# != 0; then 5012 + # We chose a different compiler from the bogus one. 5013 + # However, it has the same basename, so the bogon will be chosen 5014 + # first if we set CC to just the basename; use the full file name. 5015 + shift 5016 + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 5017 + fi 5018 + fi 5019 + fi 5020 + fi 5021 + CC=$ac_cv_prog_CC 5022 + if test -n "$CC"; then 5023 + { $as_echo "$as_me:$LINENO: result: $CC" >&5 5024 + $as_echo "$CC" >&6; } 5025 + else 5026 + { $as_echo "$as_me:$LINENO: result: no" >&5 5027 + $as_echo "no" >&6; } 2725 5028 fi 2726 5029 2727 5030 2728 - if test "x$enable_dependency_tracking" != xno; then 2729 - AMDEP_TRUE= 2730 - AMDEP_FALSE='#' 5031 + fi 5032 + if test -z "$CC"; then 5033 + if test -n "$ac_tool_prefix"; then 5034 + for ac_prog in cl.exe 5035 + do 5036 + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5037 + set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5038 + { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5039 + $as_echo_n "checking for $ac_word... " >&6; } 5040 + if test "${ac_cv_prog_CC+set}" = set; then 5041 + $as_echo_n "(cached) " >&6 2731 5042 else 2732 - AMDEP_TRUE='#' 2733 - AMDEP_FALSE= 5043 + if test -n "$CC"; then 5044 + ac_cv_prog_CC="$CC" # Let the user override the test. 5045 + else 5046 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5047 + for as_dir in $PATH 5048 + do 5049 + IFS=$as_save_IFS 5050 + test -z "$as_dir" && as_dir=. 5051 + for ac_exec_ext in '' $ac_executable_extensions; do 5052 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5053 + ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 5054 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5055 + break 2 5056 + fi 5057 + done 5058 + done 5059 + IFS=$as_save_IFS 5060 + 5061 + fi 5062 + fi 5063 + CC=$ac_cv_prog_CC 5064 + if test -n "$CC"; then 5065 + { $as_echo "$as_me:$LINENO: result: $CC" >&5 5066 + $as_echo "$CC" >&6; } 5067 + else 5068 + { $as_echo "$as_me:$LINENO: result: no" >&5 5069 + $as_echo "no" >&6; } 2734 5070 fi 2735 5071 2736 5072 5073 + test -n "$CC" && break 5074 + done 5075 + fi 5076 + if test -z "$CC"; then 5077 + ac_ct_CC=$CC 5078 + for ac_prog in cl.exe 5079 + do 5080 + # Extract the first word of "$ac_prog", so it can be a program name with args. 5081 + set dummy $ac_prog; ac_word=$2 5082 + { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5083 + $as_echo_n "checking for $ac_word... " >&6; } 5084 + if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 5085 + $as_echo_n "(cached) " >&6 5086 + else 5087 + if test -n "$ac_ct_CC"; then 5088 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5089 + else 5090 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5091 + for as_dir in $PATH 5092 + do 5093 + IFS=$as_save_IFS 5094 + test -z "$as_dir" && as_dir=. 5095 + for ac_exec_ext in '' $ac_executable_extensions; do 5096 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5097 + ac_cv_prog_ac_ct_CC="$ac_prog" 5098 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5099 + break 2 5100 + fi 5101 + done 5102 + done 5103 + IFS=$as_save_IFS 5104 + 5105 + fi 5106 + fi 5107 + ac_ct_CC=$ac_cv_prog_ac_ct_CC 5108 + if test -n "$ac_ct_CC"; then 5109 + { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 5110 + $as_echo "$ac_ct_CC" >&6; } 5111 + else 5112 + { $as_echo "$as_me:$LINENO: result: no" >&5 5113 + $as_echo "no" >&6; } 5114 + fi 2737 5115 2738 5116 5117 + test -n "$ac_ct_CC" && break 5118 + done 5119 + 5120 + if test "x$ac_ct_CC" = x; then 5121 + CC="" 5122 + else 5123 + case $cross_compiling:$ac_tool_warned in 5124 + yes:) 5125 + { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5126 + whose name does not start with the host triplet. If you think this 5127 + configuration is useful to you, please write to autoconf@gnu.org." >&5 5128 + $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5129 + whose name does not start with the host triplet. If you think this 5130 + configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5131 + ac_tool_warned=yes ;; 5132 + esac 5133 + CC=$ac_ct_CC 5134 + fi 5135 + fi 5136 + 5137 + fi 5138 + 5139 + 5140 + test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 5141 + See \`config.log' for more details." >&5 5142 + $as_echo "$as_me: error: no acceptable C compiler found in \$PATH 5143 + See \`config.log' for more details." >&2;} 5144 + { (exit 1); exit 1; }; } 5145 + 5146 + # Provide some information about the compiler. 5147 + $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 5148 + set X $ac_compile 5149 + ac_compiler=$2 5150 + { (ac_try="$ac_compiler --version >&5" 5151 + case "(($ac_try" in 5152 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5153 + *) ac_try_echo=$ac_try;; 5154 + esac 5155 + eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5156 + $as_echo "$ac_try_echo") >&5 5157 + (eval "$ac_compiler --version >&5") 2>&5 5158 + ac_status=$? 5159 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5160 + (exit $ac_status); } 5161 + { (ac_try="$ac_compiler -v >&5" 5162 + case "(($ac_try" in 5163 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5164 + *) ac_try_echo=$ac_try;; 5165 + esac 5166 + eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5167 + $as_echo "$ac_try_echo") >&5 5168 + (eval "$ac_compiler -v >&5") 2>&5 5169 + ac_status=$? 5170 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5171 + (exit $ac_status); } 5172 + { (ac_try="$ac_compiler -V >&5" 5173 + case "(($ac_try" in 5174 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5175 + *) ac_try_echo=$ac_try;; 5176 + esac 5177 + eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5178 + $as_echo "$ac_try_echo") >&5 5179 + (eval "$ac_compiler -V >&5") 2>&5 5180 + ac_status=$? 5181 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5182 + (exit $ac_status); } 5183 + 5184 + { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 5185 + $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 5186 + if test "${ac_cv_c_compiler_gnu+set}" = set; then 5187 + $as_echo_n "(cached) " >&6 5188 + else 5189 + cat >conftest.$ac_ext <<_ACEOF 5190 + /* confdefs.h. */ 5191 + _ACEOF 5192 + cat confdefs.h >>conftest.$ac_ext 5193 + cat >>conftest.$ac_ext <<_ACEOF 5194 + /* end confdefs.h. */ 5195 + 5196 + int 5197 + main () 5198 + { 5199 + #ifndef __GNUC__ 5200 + choke me 5201 + #endif 5202 + 5203 + ; 5204 + return 0; 5205 + } 5206 + _ACEOF 5207 + rm -f conftest.$ac_objext 5208 + if { (ac_try="$ac_compile" 5209 + case "(($ac_try" in 5210 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5211 + *) ac_try_echo=$ac_try;; 5212 + esac 5213 + eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5214 + $as_echo "$ac_try_echo") >&5 5215 + (eval "$ac_compile") 2>conftest.er1 5216 + ac_status=$? 5217 + grep -v '^ *+' conftest.er1 >conftest.err 5218 + rm -f conftest.er1 5219 + cat conftest.err >&5 5220 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5221 + (exit $ac_status); } && { 5222 + test -z "$ac_c_werror_flag" || 5223 + test ! -s conftest.err 5224 + } && test -s conftest.$ac_objext; then 5225 + ac_compiler_gnu=yes 5226 + else 5227 + $as_echo "$as_me: failed program was:" >&5 5228 + sed 's/^/| /' conftest.$ac_ext >&5 5229 + 5230 + ac_compiler_gnu=no 5231 + fi 5232 + 5233 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5234 + ac_cv_c_compiler_gnu=$ac_compiler_gnu 5235 + 5236 + fi 5237 + { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 5238 + $as_echo "$ac_cv_c_compiler_gnu" >&6; } 5239 + if test $ac_compiler_gnu = yes; then 5240 + GCC=yes 5241 + else 5242 + GCC= 5243 + fi 5244 + ac_test_CFLAGS=${CFLAGS+set} 5245 + ac_save_CFLAGS=$CFLAGS 5246 + { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 5247 + $as_echo_n "checking whether $CC accepts -g... " >&6; } 5248 + if test "${ac_cv_prog_cc_g+set}" = set; then 5249 + $as_echo_n "(cached) " >&6 5250 + else 5251 + ac_save_c_werror_flag=$ac_c_werror_flag 5252 + ac_c_werror_flag=yes 5253 + ac_cv_prog_cc_g=no 5254 + CFLAGS="-g" 5255 + cat >conftest.$ac_ext <<_ACEOF 5256 + /* confdefs.h. */ 5257 + _ACEOF 5258 + cat confdefs.h >>conftest.$ac_ext 5259 + cat >>conftest.$ac_ext <<_ACEOF 5260 + /* end confdefs.h. */ 5261 + 5262 + int 5263 + main () 5264 + { 5265 + 5266 + ; 5267 + return 0; 5268 + } 5269 + _ACEOF 5270 + rm -f conftest.$ac_objext 5271 + if { (ac_try="$ac_compile" 5272 + case "(($ac_try" in 5273 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5274 + *) ac_try_echo=$ac_try;; 5275 + esac 5276 + eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5277 + $as_echo "$ac_try_echo") >&5 5278 + (eval "$ac_compile") 2>conftest.er1 5279 + ac_status=$? 5280 + grep -v '^ *+' conftest.er1 >conftest.err 5281 + rm -f conftest.er1 5282 + cat conftest.err >&5 5283 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5284 + (exit $ac_status); } && { 5285 + test -z "$ac_c_werror_flag" || 5286 + test ! -s conftest.err 5287 + } && test -s conftest.$ac_objext; then 5288 + ac_cv_prog_cc_g=yes 5289 + else 5290 + $as_echo "$as_me: failed program was:" >&5 5291 + sed 's/^/| /' conftest.$ac_ext >&5 5292 + 5293 + CFLAGS="" 5294 + cat >conftest.$ac_ext <<_ACEOF 5295 + /* confdefs.h. */ 5296 + _ACEOF 5297 + cat confdefs.h >>conftest.$ac_ext 5298 + cat >>conftest.$ac_ext <<_ACEOF 5299 + /* end confdefs.h. */ 5300 + 5301 + int 5302 + main () 5303 + { 5304 + 5305 + ; 5306 + return 0; 5307 + } 5308 + _ACEOF 5309 + rm -f conftest.$ac_objext 5310 + if { (ac_try="$ac_compile" 5311 + case "(($ac_try" in 5312 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5313 + *) ac_try_echo=$ac_try;; 5314 + esac 5315 + eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5316 + $as_echo "$ac_try_echo") >&5 5317 + (eval "$ac_compile") 2>conftest.er1 5318 + ac_status=$? 5319 + grep -v '^ *+' conftest.er1 >conftest.err 5320 + rm -f conftest.er1 5321 + cat conftest.err >&5 5322 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5323 + (exit $ac_status); } && { 5324 + test -z "$ac_c_werror_flag" || 5325 + test ! -s conftest.err 5326 + } && test -s conftest.$ac_objext; then 5327 + : 5328 + else 5329 + $as_echo "$as_me: failed program was:" >&5 5330 + sed 's/^/| /' conftest.$ac_ext >&5 5331 + 5332 + ac_c_werror_flag=$ac_save_c_werror_flag 5333 + CFLAGS="-g" 5334 + cat >conftest.$ac_ext <<_ACEOF 5335 + /* confdefs.h. */ 5336 + _ACEOF 5337 + cat confdefs.h >>conftest.$ac_ext 5338 + cat >>conftest.$ac_ext <<_ACEOF 5339 + /* end confdefs.h. */ 5340 + 5341 + int 5342 + main () 5343 + { 5344 + 5345 + ; 5346 + return 0; 5347 + } 5348 + _ACEOF 5349 + rm -f conftest.$ac_objext 5350 + if { (ac_try="$ac_compile" 5351 + case "(($ac_try" in 5352 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5353 + *) ac_try_echo=$ac_try;; 5354 + esac 5355 + eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5356 + $as_echo "$ac_try_echo") >&5 5357 + (eval "$ac_compile") 2>conftest.er1 5358 + ac_status=$? 5359 + grep -v '^ *+' conftest.er1 >conftest.err 5360 + rm -f conftest.er1 5361 + cat conftest.err >&5 5362 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5363 + (exit $ac_status); } && { 5364 + test -z "$ac_c_werror_flag" || 5365 + test ! -s conftest.err 5366 + } && test -s conftest.$ac_objext; then 5367 + ac_cv_prog_cc_g=yes 5368 + else 5369 + $as_echo "$as_me: failed program was:" >&5 5370 + sed 's/^/| /' conftest.$ac_ext >&5 5371 + 5372 + 5373 + fi 5374 + 5375 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5376 + fi 5377 + 5378 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5379 + fi 5380 + 5381 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5382 + ac_c_werror_flag=$ac_save_c_werror_flag 5383 + fi 5384 + { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 5385 + $as_echo "$ac_cv_prog_cc_g" >&6; } 5386 + if test "$ac_test_CFLAGS" = set; then 5387 + CFLAGS=$ac_save_CFLAGS 5388 + elif test $ac_cv_prog_cc_g = yes; then 5389 + if test "$GCC" = yes; then 5390 + CFLAGS="-g -O2" 5391 + else 5392 + CFLAGS="-g" 5393 + fi 5394 + else 5395 + if test "$GCC" = yes; then 5396 + CFLAGS="-O2" 5397 + else 5398 + CFLAGS= 5399 + fi 5400 + fi 5401 + { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 5402 + $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5403 + if test "${ac_cv_prog_cc_c89+set}" = set; then 5404 + $as_echo_n "(cached) " >&6 5405 + else 5406 + ac_cv_prog_cc_c89=no 5407 + ac_save_CC=$CC 5408 + cat >conftest.$ac_ext <<_ACEOF 5409 + /* confdefs.h. */ 5410 + _ACEOF 5411 + cat confdefs.h >>conftest.$ac_ext 5412 + cat >>conftest.$ac_ext <<_ACEOF 5413 + /* end confdefs.h. */ 5414 + #include <stdarg.h> 5415 + #include <stdio.h> 5416 + #include <sys/types.h> 5417 + #include <sys/stat.h> 5418 + /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5419 + struct buf { int x; }; 5420 + FILE * (*rcsopen) (struct buf *, struct stat *, int); 5421 + static char *e (p, i) 5422 + char **p; 5423 + int i; 5424 + { 5425 + return p[i]; 5426 + } 5427 + static char *f (char * (*g) (char **, int), char **p, ...) 5428 + { 5429 + char *s; 5430 + va_list v; 5431 + va_start (v,p); 5432 + s = g (p, va_arg (v,int)); 5433 + va_end (v); 5434 + return s; 5435 + } 5436 + 5437 + /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5438 + function prototypes and stuff, but not '\xHH' hex character constants. 5439 + These don't provoke an error unfortunately, instead are silently treated 5440 + as 'x'. The following induces an error, until -std is added to get 5441 + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5442 + array size at least. It's necessary to write '\x00'==0 to get something 5443 + that's true only with -std. */ 5444 + int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5445 + 5446 + /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5447 + inside strings and character constants. */ 5448 + #define FOO(x) 'x' 5449 + int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5450 + 5451 + int test (int i, double x); 5452 + struct s1 {int (*f) (int a);}; 5453 + struct s2 {int (*f) (double a);}; 5454 + int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5455 + int argc; 5456 + char **argv; 5457 + int 5458 + main () 5459 + { 5460 + return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5461 + ; 5462 + return 0; 5463 + } 5464 + _ACEOF 5465 + for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5466 + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5467 + do 5468 + CC="$ac_save_CC $ac_arg" 5469 + rm -f conftest.$ac_objext 5470 + if { (ac_try="$ac_compile" 5471 + case "(($ac_try" in 5472 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5473 + *) ac_try_echo=$ac_try;; 5474 + esac 5475 + eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5476 + $as_echo "$ac_try_echo") >&5 5477 + (eval "$ac_compile") 2>conftest.er1 5478 + ac_status=$? 5479 + grep -v '^ *+' conftest.er1 >conftest.err 5480 + rm -f conftest.er1 5481 + cat conftest.err >&5 5482 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5483 + (exit $ac_status); } && { 5484 + test -z "$ac_c_werror_flag" || 5485 + test ! -s conftest.err 5486 + } && test -s conftest.$ac_objext; then 5487 + ac_cv_prog_cc_c89=$ac_arg 5488 + else 5489 + $as_echo "$as_me: failed program was:" >&5 5490 + sed 's/^/| /' conftest.$ac_ext >&5 5491 + 5492 + 5493 + fi 5494 + 5495 + rm -f core conftest.err conftest.$ac_objext 5496 + test "x$ac_cv_prog_cc_c89" != "xno" && break 5497 + done 5498 + rm -f conftest.$ac_ext 5499 + CC=$ac_save_CC 5500 + 5501 + fi 5502 + # AC_CACHE_VAL 5503 + case "x$ac_cv_prog_cc_c89" in 5504 + x) 5505 + { $as_echo "$as_me:$LINENO: result: none needed" >&5 5506 + $as_echo "none needed" >&6; } ;; 5507 + xno) 5508 + { $as_echo "$as_me:$LINENO: result: unsupported" >&5 5509 + $as_echo "unsupported" >&6; } ;; 5510 + *) 5511 + CC="$CC $ac_cv_prog_cc_c89" 5512 + { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 5513 + $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5514 + esac 5515 + 5516 + 5517 + ac_ext=c 5518 + ac_cpp='$CPP $CPPFLAGS' 5519 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5520 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5521 + ac_compiler_gnu=$ac_cv_c_compiler_gnu 5522 + 2739 5523 depcc="$CC" am_compiler_list= 2740 5524 2741 - echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 2742 - echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 5525 + { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5526 + $as_echo_n "checking dependency style of $depcc... " >&6; } 2743 5527 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 2744 - echo $ECHO_N "(cached) $ECHO_C" >&6 5528 + $as_echo_n "(cached) " >&6 2745 5529 else 2746 5530 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 2747 5531 # We make a subdir and do the tests there. Otherwise we can end up ··· 2828 5612 fi 2829 5613 2830 5614 fi 2831 - echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 2832 - echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 5615 + { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 5616 + $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 2833 5617 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 2834 5618 2835 5619 ··· 2845 5629 fi 2846 5630 2847 5631 5632 + if test "x$CC" != xcc; then 5633 + { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5 5634 + $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } 5635 + else 5636 + { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5 5637 + $as_echo_n "checking whether cc understands -c and -o together... " >&6; } 5638 + fi 5639 + set dummy $CC; ac_cc=`$as_echo "$2" | 5640 + sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 5641 + if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then 5642 + $as_echo_n "(cached) " >&6 5643 + else 5644 + cat >conftest.$ac_ext <<_ACEOF 5645 + /* confdefs.h. */ 5646 + _ACEOF 5647 + cat confdefs.h >>conftest.$ac_ext 5648 + cat >>conftest.$ac_ext <<_ACEOF 5649 + /* end confdefs.h. */ 5650 + 5651 + int 5652 + main () 5653 + { 5654 + 5655 + ; 5656 + return 0; 5657 + } 5658 + _ACEOF 5659 + # Make sure it works both with $CC and with simple cc. 5660 + # We do the test twice because some compilers refuse to overwrite an 5661 + # existing .o file with -o, though they will create one. 5662 + ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 5663 + rm -f conftest2.* 5664 + if { (case "(($ac_try" in 5665 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5666 + *) ac_try_echo=$ac_try;; 5667 + esac 5668 + eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5669 + $as_echo "$ac_try_echo") >&5 5670 + (eval "$ac_try") 2>&5 5671 + ac_status=$? 5672 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5673 + (exit $ac_status); } && 5674 + test -f conftest2.$ac_objext && { (case "(($ac_try" in 5675 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5676 + *) ac_try_echo=$ac_try;; 5677 + esac 5678 + eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5679 + $as_echo "$ac_try_echo") >&5 5680 + (eval "$ac_try") 2>&5 5681 + ac_status=$? 5682 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5683 + (exit $ac_status); }; 5684 + then 5685 + eval ac_cv_prog_cc_${ac_cc}_c_o=yes 5686 + if test "x$CC" != xcc; then 5687 + # Test first that cc exists at all. 5688 + if { ac_try='cc -c conftest.$ac_ext >&5' 5689 + { (case "(($ac_try" in 5690 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5691 + *) ac_try_echo=$ac_try;; 5692 + esac 5693 + eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5694 + $as_echo "$ac_try_echo") >&5 5695 + (eval "$ac_try") 2>&5 5696 + ac_status=$? 5697 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5698 + (exit $ac_status); }; }; then 5699 + ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 5700 + rm -f conftest2.* 5701 + if { (case "(($ac_try" in 5702 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5703 + *) ac_try_echo=$ac_try;; 5704 + esac 5705 + eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5706 + $as_echo "$ac_try_echo") >&5 5707 + (eval "$ac_try") 2>&5 5708 + ac_status=$? 5709 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5710 + (exit $ac_status); } && 5711 + test -f conftest2.$ac_objext && { (case "(($ac_try" in 5712 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5713 + *) ac_try_echo=$ac_try;; 5714 + esac 5715 + eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5716 + $as_echo "$ac_try_echo") >&5 5717 + (eval "$ac_try") 2>&5 5718 + ac_status=$? 5719 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5720 + (exit $ac_status); }; 5721 + then 5722 + # cc works too. 5723 + : 5724 + else 5725 + # cc exists but doesn't like -o. 5726 + eval ac_cv_prog_cc_${ac_cc}_c_o=no 5727 + fi 5728 + fi 5729 + fi 5730 + else 5731 + eval ac_cv_prog_cc_${ac_cc}_c_o=no 5732 + fi 5733 + rm -f core conftest* 5734 + 5735 + fi 5736 + if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 5737 + { $as_echo "$as_me:$LINENO: result: yes" >&5 5738 + $as_echo "yes" >&6; } 5739 + else 5740 + { $as_echo "$as_me:$LINENO: result: no" >&5 5741 + $as_echo "no" >&6; } 5742 + 5743 + cat >>confdefs.h <<\_ACEOF 5744 + #define NO_MINUS_C_MINUS_O 1 5745 + _ACEOF 5746 + 5747 + fi 5748 + 5749 + # FIXME: we rely on the cache variable name because 5750 + # there is no other way. 5751 + set dummy $CC 5752 + ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 5753 + if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then 5754 + # Losing compiler, so override with the script. 5755 + # FIXME: It is wrong to rewrite CC. 5756 + # But if we don't then we get into trouble of one sort or another. 5757 + # A longer-term fix would be to have automake use am__CC in this case, 5758 + # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5759 + CC="$am_aux_dir/compile $CC" 5760 + fi 5761 + 2848 5762 # Find a good install program. We prefer a C program (faster), 2849 5763 # so one script is as good as another. But avoid the broken or 2850 5764 # incompatible versions: ··· 2858 5772 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2859 5773 # OS/2's system install, which has a completely different semantic 2860 5774 # ./install, which can be erroneously created by make from ./install.sh. 2861 - echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2862 - echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 5775 + # Reject install programs that cannot install multiple files. 5776 + { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 5777 + $as_echo_n "checking for a BSD-compatible install... " >&6; } 2863 5778 if test -z "$INSTALL"; then 2864 5779 if test "${ac_cv_path_install+set}" = set; then 2865 - echo $ECHO_N "(cached) $ECHO_C" >&6 5780 + $as_echo_n "(cached) " >&6 2866 5781 else 2867 5782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2868 5783 for as_dir in $PATH ··· 2881 5796 # by default. 2882 5797 for ac_prog in ginstall scoinst install; do 2883 5798 for ac_exec_ext in '' $ac_executable_extensions; do 2884 - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 5799 + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2885 5800 if test $ac_prog = install && 2886 5801 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2887 5802 # AIX install. It has an incompatible calling convention. ··· 2891 5806 # program-specific install script used by HP pwplus--don't use. 2892 5807 : 2893 5808 else 2894 - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2895 - break 3 5809 + rm -rf conftest.one conftest.two conftest.dir 5810 + echo one > conftest.one 5811 + echo two > conftest.two 5812 + mkdir conftest.dir 5813 + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 5814 + test -s conftest.one && test -s conftest.two && 5815 + test -s conftest.dir/conftest.one && 5816 + test -s conftest.dir/conftest.two 5817 + then 5818 + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 5819 + break 3 5820 + fi 2896 5821 fi 2897 5822 fi 2898 5823 done 2899 5824 done 2900 5825 ;; 2901 5826 esac 5827 + 2902 5828 done 5829 + IFS=$as_save_IFS 2903 5830 5831 + rm -rf conftest.one conftest.two conftest.dir 2904 5832 2905 5833 fi 2906 5834 if test "${ac_cv_path_install+set}" = set; then 2907 5835 INSTALL=$ac_cv_path_install 2908 5836 else 2909 - # As a last resort, use the slow shell script. We don't cache a 2910 - # path for INSTALL within a source directory, because that will 5837 + # As a last resort, use the slow shell script. Don't cache a 5838 + # value for INSTALL within a source directory, because that will 2911 5839 # break other packages using the cache if that directory is 2912 - # removed, or if the path is relative. 5840 + # removed, or if the value is a relative name. 2913 5841 INSTALL=$ac_install_sh 2914 5842 fi 2915 5843 fi 2916 - echo "$as_me:$LINENO: result: $INSTALL" >&5 2917 - echo "${ECHO_T}$INSTALL" >&6 5844 + { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 5845 + $as_echo "$INSTALL" >&6; } 2918 5846 2919 5847 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2920 5848 # It thinks the first close brace ends the variable substitution. ··· 2925 5853 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2926 5854 2927 5855 2928 - # Checks for pkg-config packages 2929 - 2930 - 2931 - if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 2932 - if test -n "$ac_tool_prefix"; then 2933 - # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 2934 - set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 2935 - echo "$as_me:$LINENO: checking for $ac_word" >&5 2936 - echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2937 - if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 2938 - echo $ECHO_N "(cached) $ECHO_C" >&6 2939 - else 2940 - case $PKG_CONFIG in 2941 - [\\/]* | ?:[\\/]*) 2942 - ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 2943 - ;; 2944 - *) 2945 - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2946 - for as_dir in $PATH 2947 - do 2948 - IFS=$as_save_IFS 2949 - test -z "$as_dir" && as_dir=. 2950 - for ac_exec_ext in '' $ac_executable_extensions; do 2951 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2952 - ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 2953 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2954 - break 2 2955 - fi 2956 - done 2957 - done 2958 - 2959 - ;; 2960 - esac 2961 - fi 2962 - PKG_CONFIG=$ac_cv_path_PKG_CONFIG 2963 - 2964 - if test -n "$PKG_CONFIG"; then 2965 - echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 2966 - echo "${ECHO_T}$PKG_CONFIG" >&6 2967 - else 2968 - echo "$as_me:$LINENO: result: no" >&5 2969 - echo "${ECHO_T}no" >&6 2970 - fi 2971 - 2972 - fi 2973 - if test -z "$ac_cv_path_PKG_CONFIG"; then 2974 - ac_pt_PKG_CONFIG=$PKG_CONFIG 2975 - # Extract the first word of "pkg-config", so it can be a program name with args. 2976 - set dummy pkg-config; ac_word=$2 2977 - echo "$as_me:$LINENO: checking for $ac_word" >&5 2978 - echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2979 - if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 2980 - echo $ECHO_N "(cached) $ECHO_C" >&6 2981 - else 2982 - case $ac_pt_PKG_CONFIG in 2983 - [\\/]* | ?:[\\/]*) 2984 - ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 2985 - ;; 2986 - *) 2987 - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2988 - for as_dir in $PATH 2989 - do 2990 - IFS=$as_save_IFS 2991 - test -z "$as_dir" && as_dir=. 2992 - for ac_exec_ext in '' $ac_executable_extensions; do 2993 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2994 - ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 2995 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2996 - break 2 2997 - fi 2998 - done 2999 - done 3000 - 3001 - ;; 3002 - esac 3003 - fi 3004 - ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 3005 - 3006 - if test -n "$ac_pt_PKG_CONFIG"; then 3007 - echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 3008 - echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6 3009 - else 3010 - echo "$as_me:$LINENO: result: no" >&5 3011 - echo "${ECHO_T}no" >&6 3012 - fi 3013 - 3014 - PKG_CONFIG=$ac_pt_PKG_CONFIG 3015 - else 3016 - PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 3017 - fi 3018 5856 3019 - fi 3020 - if test -n "$PKG_CONFIG"; then 3021 - _pkg_min_version=0.9.0 3022 - echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 3023 - echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6 3024 - if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 3025 - echo "$as_me:$LINENO: result: yes" >&5 3026 - echo "${ECHO_T}yes" >&6 3027 - else 3028 - echo "$as_me:$LINENO: result: no" >&5 3029 - echo "${ECHO_T}no" >&6 3030 - PKG_CONFIG="" 3031 - fi 3032 - 3033 - fi 3034 - 3035 - # Check whether --enable-xprint or --disable-xprint was given. 3036 - if test "${enable_xprint+set}" = set; then 3037 - enableval="$enable_xprint" 3038 - use_xprint=$enableval 3039 - else 3040 - use_xprint=auto 3041 - fi; 3042 - if test "x$use_xprint" = "xyes"; then 3043 - TMP_CHECK1=xaw8 3044 - TMP_CHECK2= 3045 - xaw_use_xprint=yes 3046 - elif test "x$use_xprint" = "xno"; then 3047 - TMP_CHECK1=xaw7 3048 - TMP_CHECK2= 3049 - xaw_use_xprint=no 3050 - else 3051 - TMP_CHECK1=xaw8 3052 - TMP_CHECK2=xaw7 3053 - xaw_use_xprint=yes 3054 - fi 3055 - 3056 - 3057 - pkg_failed=no 3058 - echo "$as_me:$LINENO: checking for TMP_XAW" >&5 3059 - echo $ECHO_N "checking for TMP_XAW... $ECHO_C" >&6 3060 - 3061 - if test -n "$PKG_CONFIG"; then 3062 - if test -n "$TMP_XAW_CFLAGS"; then 3063 - pkg_cv_TMP_XAW_CFLAGS="$TMP_XAW_CFLAGS" 3064 - else 3065 - if test -n "$PKG_CONFIG" && \ 3066 - { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$TMP_CHECK1\"") >&5 3067 - ($PKG_CONFIG --exists --print-errors "$TMP_CHECK1") 2>&5 3068 - ac_status=$? 3069 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 3070 - (exit $ac_status); }; then 3071 - pkg_cv_TMP_XAW_CFLAGS=`$PKG_CONFIG --cflags "$TMP_CHECK1" 2>/dev/null` 3072 - else 3073 - pkg_failed=yes 3074 - fi 3075 - fi 3076 - else 3077 - pkg_failed=untried 3078 - fi 3079 - if test -n "$PKG_CONFIG"; then 3080 - if test -n "$TMP_XAW_LIBS"; then 3081 - pkg_cv_TMP_XAW_LIBS="$TMP_XAW_LIBS" 3082 - else 3083 - if test -n "$PKG_CONFIG" && \ 3084 - { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$TMP_CHECK1\"") >&5 3085 - ($PKG_CONFIG --exists --print-errors "$TMP_CHECK1") 2>&5 3086 - ac_status=$? 3087 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 3088 - (exit $ac_status); }; then 3089 - pkg_cv_TMP_XAW_LIBS=`$PKG_CONFIG --libs "$TMP_CHECK1" 2>/dev/null` 3090 - else 3091 - pkg_failed=yes 3092 - fi 3093 - fi 3094 - else 3095 - pkg_failed=untried 3096 - fi 3097 - 3098 - 3099 - 3100 - if test $pkg_failed = yes; then 3101 - 3102 - if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 3103 - _pkg_short_errors_supported=yes 3104 - else 3105 - _pkg_short_errors_supported=no 3106 - fi 3107 - if test $_pkg_short_errors_supported = yes; then 3108 - TMP_XAW_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$TMP_CHECK1"` 3109 - else 3110 - TMP_XAW_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$TMP_CHECK1"` 3111 - fi 3112 - # Put the nasty error message in config.log where it belongs 3113 - echo "$TMP_XAW_PKG_ERRORS" >&5 3114 - 3115 - echo "$as_me:$LINENO: result: no" >&5 3116 - echo "${ECHO_T}no" >&6 3117 - success=no 3118 - elif test $pkg_failed = untried; then 3119 - success=no 3120 - else 3121 - TMP_XAW_CFLAGS=$pkg_cv_TMP_XAW_CFLAGS 3122 - TMP_XAW_LIBS=$pkg_cv_TMP_XAW_LIBS 3123 - echo "$as_me:$LINENO: result: yes" >&5 3124 - echo "${ECHO_T}yes" >&6 3125 - success=yes 3126 - fi 3127 - if [ ! -z $TMP_CHECK2 ] ; then 3128 - if test $success = no ; then 3129 - 3130 - pkg_failed=no 3131 - echo "$as_me:$LINENO: checking for TMP_XAW" >&5 3132 - echo $ECHO_N "checking for TMP_XAW... $ECHO_C" >&6 3133 - 3134 - if test -n "$PKG_CONFIG"; then 3135 - if test -n "$TMP_XAW_CFLAGS"; then 3136 - pkg_cv_TMP_XAW_CFLAGS="$TMP_XAW_CFLAGS" 3137 - else 3138 - if test -n "$PKG_CONFIG" && \ 3139 - { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$TMP_CHECK2\"") >&5 3140 - ($PKG_CONFIG --exists --print-errors "$TMP_CHECK2") 2>&5 3141 - ac_status=$? 3142 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 3143 - (exit $ac_status); }; then 3144 - pkg_cv_TMP_XAW_CFLAGS=`$PKG_CONFIG --cflags "$TMP_CHECK2" 2>/dev/null` 3145 - else 3146 - pkg_failed=yes 3147 - fi 3148 - fi 3149 - else 3150 - pkg_failed=untried 3151 - fi 3152 - if test -n "$PKG_CONFIG"; then 3153 - if test -n "$TMP_XAW_LIBS"; then 3154 - pkg_cv_TMP_XAW_LIBS="$TMP_XAW_LIBS" 3155 - else 3156 - if test -n "$PKG_CONFIG" && \ 3157 - { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$TMP_CHECK2\"") >&5 3158 - ($PKG_CONFIG --exists --print-errors "$TMP_CHECK2") 2>&5 3159 - ac_status=$? 3160 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 3161 - (exit $ac_status); }; then 3162 - pkg_cv_TMP_XAW_LIBS=`$PKG_CONFIG --libs "$TMP_CHECK2" 2>/dev/null` 3163 - else 3164 - pkg_failed=yes 3165 - fi 3166 - fi 3167 - else 3168 - pkg_failed=untried 3169 - fi 3170 - 3171 - 3172 - 3173 - if test $pkg_failed = yes; then 3174 - 3175 - if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 3176 - _pkg_short_errors_supported=yes 3177 - else 3178 - _pkg_short_errors_supported=no 3179 - fi 3180 - if test $_pkg_short_errors_supported = yes; then 3181 - TMP_XAW_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$TMP_CHECK2"` 3182 - else 3183 - TMP_XAW_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$TMP_CHECK2"` 3184 - fi 3185 - # Put the nasty error message in config.log where it belongs 3186 - echo "$TMP_XAW_PKG_ERRORS" >&5 3187 - 3188 - echo "$as_me:$LINENO: result: no" >&5 3189 - echo "${ECHO_T}no" >&6 3190 - success=no 3191 - elif test $pkg_failed = untried; then 3192 - success=no 3193 - else 3194 - TMP_XAW_CFLAGS=$pkg_cv_TMP_XAW_CFLAGS 3195 - TMP_XAW_LIBS=$pkg_cv_TMP_XAW_LIBS 3196 - echo "$as_me:$LINENO: result: yes" >&5 3197 - echo "${ECHO_T}yes" >&6 3198 - success=yes 3199 - fi 3200 - xaw_use_xprint=no 3201 - fi 3202 - fi 3203 - 3204 - if test "x$success" = "xyes"; then 3205 - XMORE_CFLAGS=$TMP_XAW_CFLAGS 3206 - XMORE_LIBS=$TMP_XAW_LIBS 3207 - 3208 - 3209 - 3210 - if test "x$xaw_use_xprint" = "xyes"; then 3211 - XAW_USE_XPRINT_TRUE= 3212 - XAW_USE_XPRINT_FALSE='#' 3213 - else 3214 - XAW_USE_XPRINT_TRUE='#' 3215 - XAW_USE_XPRINT_FALSE= 3216 - fi 3217 - 3218 - else 3219 - { { echo "$as_me:$LINENO: error: No suitable version of Xaw found" >&5 3220 - echo "$as_me: error: No suitable version of Xaw found" >&2;} 3221 - { (exit 1); exit 1; }; } 3222 - fi 3223 - 3224 - if test "x$xaw_use_xprint" = "xyes" ; then 5857 + # Checks for pkg-config packages 3225 5858 3226 5859 pkg_failed=no 3227 - echo "$as_me:$LINENO: checking for XPRINT_UTIL" >&5 3228 - echo $ECHO_N "checking for XPRINT_UTIL... $ECHO_C" >&6 5860 + { $as_echo "$as_me:$LINENO: checking for XMORE" >&5 5861 + $as_echo_n "checking for XMORE... " >&6; } 3229 5862 3230 5863 if test -n "$PKG_CONFIG"; then 3231 - if test -n "$XPRINT_UTIL_CFLAGS"; then 3232 - pkg_cv_XPRINT_UTIL_CFLAGS="$XPRINT_UTIL_CFLAGS" 5864 + if test -n "$XMORE_CFLAGS"; then 5865 + pkg_cv_XMORE_CFLAGS="$XMORE_CFLAGS" 3233 5866 else 3234 5867 if test -n "$PKG_CONFIG" && \ 3235 - { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xprintutil xp\"") >&5 3236 - ($PKG_CONFIG --exists --print-errors "xprintutil xp") 2>&5 5868 + { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xaw7\"") >&5 5869 + ($PKG_CONFIG --exists --print-errors "xaw7") 2>&5 3237 5870 ac_status=$? 3238 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 5871 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3239 5872 (exit $ac_status); }; then 3240 - pkg_cv_XPRINT_UTIL_CFLAGS=`$PKG_CONFIG --cflags "xprintutil xp" 2>/dev/null` 5873 + pkg_cv_XMORE_CFLAGS=`$PKG_CONFIG --cflags "xaw7" 2>/dev/null` 3241 5874 else 3242 5875 pkg_failed=yes 3243 5876 fi ··· 3246 5879 pkg_failed=untried 3247 5880 fi 3248 5881 if test -n "$PKG_CONFIG"; then 3249 - if test -n "$XPRINT_UTIL_LIBS"; then 3250 - pkg_cv_XPRINT_UTIL_LIBS="$XPRINT_UTIL_LIBS" 5882 + if test -n "$XMORE_LIBS"; then 5883 + pkg_cv_XMORE_LIBS="$XMORE_LIBS" 3251 5884 else 3252 5885 if test -n "$PKG_CONFIG" && \ 3253 - { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xprintutil xp\"") >&5 3254 - ($PKG_CONFIG --exists --print-errors "xprintutil xp") 2>&5 5886 + { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xaw7\"") >&5 5887 + ($PKG_CONFIG --exists --print-errors "xaw7") 2>&5 3255 5888 ac_status=$? 3256 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 5889 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3257 5890 (exit $ac_status); }; then 3258 - pkg_cv_XPRINT_UTIL_LIBS=`$PKG_CONFIG --libs "xprintutil xp" 2>/dev/null` 5891 + pkg_cv_XMORE_LIBS=`$PKG_CONFIG --libs "xaw7" 2>/dev/null` 3259 5892 else 3260 5893 pkg_failed=yes 3261 5894 fi ··· 3274 5907 _pkg_short_errors_supported=no 3275 5908 fi 3276 5909 if test $_pkg_short_errors_supported = yes; then 3277 - XPRINT_UTIL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xprintutil xp"` 5910 + XMORE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xaw7"` 3278 5911 else 3279 - XPRINT_UTIL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xprintutil xp"` 5912 + XMORE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xaw7"` 3280 5913 fi 3281 5914 # Put the nasty error message in config.log where it belongs 3282 - echo "$XPRINT_UTIL_PKG_ERRORS" >&5 5915 + echo "$XMORE_PKG_ERRORS" >&5 3283 5916 3284 - { { echo "$as_me:$LINENO: error: Package requirements (xprintutil xp) were not met: 5917 + { { $as_echo "$as_me:$LINENO: error: Package requirements (xaw7) were not met: 3285 5918 3286 - $XPRINT_UTIL_PKG_ERRORS 5919 + $XMORE_PKG_ERRORS 3287 5920 3288 5921 Consider adjusting the PKG_CONFIG_PATH environment variable if you 3289 5922 installed software in a non-standard prefix. 3290 5923 3291 - Alternatively, you may set the environment variables XPRINT_UTIL_CFLAGS 3292 - and XPRINT_UTIL_LIBS to avoid the need to call pkg-config. 5924 + Alternatively, you may set the environment variables XMORE_CFLAGS 5925 + and XMORE_LIBS to avoid the need to call pkg-config. 3293 5926 See the pkg-config man page for more details. 3294 5927 " >&5 3295 - echo "$as_me: error: Package requirements (xprintutil xp) were not met: 5928 + $as_echo "$as_me: error: Package requirements (xaw7) were not met: 3296 5929 3297 - $XPRINT_UTIL_PKG_ERRORS 5930 + $XMORE_PKG_ERRORS 3298 5931 3299 5932 Consider adjusting the PKG_CONFIG_PATH environment variable if you 3300 5933 installed software in a non-standard prefix. 3301 5934 3302 - Alternatively, you may set the environment variables XPRINT_UTIL_CFLAGS 3303 - and XPRINT_UTIL_LIBS to avoid the need to call pkg-config. 5935 + Alternatively, you may set the environment variables XMORE_CFLAGS 5936 + and XMORE_LIBS to avoid the need to call pkg-config. 3304 5937 See the pkg-config man page for more details. 3305 5938 " >&2;} 3306 5939 { (exit 1); exit 1; }; } 3307 5940 elif test $pkg_failed = untried; then 3308 - { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 5941 + { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 3309 5942 is in your PATH or set the PKG_CONFIG environment variable to the full 3310 5943 path to pkg-config. 3311 5944 3312 - Alternatively, you may set the environment variables XPRINT_UTIL_CFLAGS 3313 - and XPRINT_UTIL_LIBS to avoid the need to call pkg-config. 5945 + Alternatively, you may set the environment variables XMORE_CFLAGS 5946 + and XMORE_LIBS to avoid the need to call pkg-config. 3314 5947 See the pkg-config man page for more details. 3315 5948 3316 5949 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 3317 5950 See \`config.log' for more details." >&5 3318 - echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 5951 + $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 3319 5952 is in your PATH or set the PKG_CONFIG environment variable to the full 3320 5953 path to pkg-config. 3321 5954 3322 - Alternatively, you may set the environment variables XPRINT_UTIL_CFLAGS 3323 - and XPRINT_UTIL_LIBS to avoid the need to call pkg-config. 5955 + Alternatively, you may set the environment variables XMORE_CFLAGS 5956 + and XMORE_LIBS to avoid the need to call pkg-config. 3324 5957 See the pkg-config man page for more details. 3325 5958 3326 5959 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 3327 5960 See \`config.log' for more details." >&2;} 3328 5961 { (exit 1); exit 1; }; } 3329 5962 else 3330 - XPRINT_UTIL_CFLAGS=$pkg_cv_XPRINT_UTIL_CFLAGS 3331 - XPRINT_UTIL_LIBS=$pkg_cv_XPRINT_UTIL_LIBS 3332 - echo "$as_me:$LINENO: result: yes" >&5 3333 - echo "${ECHO_T}yes" >&6 5963 + XMORE_CFLAGS=$pkg_cv_XMORE_CFLAGS 5964 + XMORE_LIBS=$pkg_cv_XMORE_LIBS 5965 + { $as_echo "$as_me:$LINENO: result: yes" >&5 5966 + $as_echo "yes" >&6; } 3334 5967 : 3335 5968 fi 3336 5969 3337 - XMORE_CFLAGS="$XMORE_CFLAGS $XPRINT_UTIL_CFLAGS" 3338 - XMORE_LIBS="$XMORE_LIBS $XPRINT_UTIL_LIBS" 3339 - fi 3340 5970 3341 5971 3342 5972 3343 - 3344 - 3345 5973 pkg_failed=no 3346 - echo "$as_me:$LINENO: checking for APPDEFS" >&5 3347 - echo $ECHO_N "checking for APPDEFS... $ECHO_C" >&6 5974 + { $as_echo "$as_me:$LINENO: checking for APPDEFS" >&5 5975 + $as_echo_n "checking for APPDEFS... " >&6; } 3348 5976 3349 5977 if test -n "$PKG_CONFIG"; then 3350 5978 if test -n "$APPDEFS_CFLAGS"; then 3351 5979 pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS" 3352 5980 else 3353 5981 if test -n "$PKG_CONFIG" && \ 3354 - { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xt\"") >&5 5982 + { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xt\"") >&5 3355 5983 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 3356 5984 ac_status=$? 3357 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 5985 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3358 5986 (exit $ac_status); }; then 3359 5987 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null` 3360 5988 else ··· 3369 5997 pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS" 3370 5998 else 3371 5999 if test -n "$PKG_CONFIG" && \ 3372 - { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xt\"") >&5 6000 + { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xt\"") >&5 3373 6001 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 3374 6002 ac_status=$? 3375 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 6003 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3376 6004 (exit $ac_status); }; then 3377 6005 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null` 3378 6006 else ··· 3400 6028 # Put the nasty error message in config.log where it belongs 3401 6029 echo "$APPDEFS_PKG_ERRORS" >&5 3402 6030 3403 - { { echo "$as_me:$LINENO: error: Package requirements (xt) were not met: 6031 + { { $as_echo "$as_me:$LINENO: error: Package requirements (xt) were not met: 3404 6032 3405 6033 $APPDEFS_PKG_ERRORS 3406 6034 ··· 3411 6039 and APPDEFS_LIBS to avoid the need to call pkg-config. 3412 6040 See the pkg-config man page for more details. 3413 6041 " >&5 3414 - echo "$as_me: error: Package requirements (xt) were not met: 6042 + $as_echo "$as_me: error: Package requirements (xt) were not met: 3415 6043 3416 6044 $APPDEFS_PKG_ERRORS 3417 6045 ··· 3424 6052 " >&2;} 3425 6053 { (exit 1); exit 1; }; } 3426 6054 elif test $pkg_failed = untried; then 3427 - { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 6055 + { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 3428 6056 is in your PATH or set the PKG_CONFIG environment variable to the full 3429 6057 path to pkg-config. 3430 6058 ··· 3434 6062 3435 6063 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 3436 6064 See \`config.log' for more details." >&5 3437 - echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 6065 + $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 3438 6066 is in your PATH or set the PKG_CONFIG environment variable to the full 3439 6067 path to pkg-config. 3440 6068 ··· 3448 6076 else 3449 6077 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS 3450 6078 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS 3451 - echo "$as_me:$LINENO: result: yes" >&5 3452 - echo "${ECHO_T}yes" >&6 6079 + { $as_echo "$as_me:$LINENO: result: yes" >&5 6080 + $as_echo "yes" >&6; } 3453 6081 : 3454 6082 fi 3455 - appdefaultdir=$(pkg-config --variable=appdefaultdir xt) 3456 - 3457 - 3458 - # Make sure we can run config.sub. 3459 - $ac_config_sub sun4 >/dev/null 2>&1 || 3460 - { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 3461 - echo "$as_me: error: cannot run $ac_config_sub" >&2;} 3462 - { (exit 1); exit 1; }; } 3463 - 3464 - echo "$as_me:$LINENO: checking build system type" >&5 3465 - echo $ECHO_N "checking build system type... $ECHO_C" >&6 3466 - if test "${ac_cv_build+set}" = set; then 3467 - echo $ECHO_N "(cached) $ECHO_C" >&6 3468 - else 3469 - ac_cv_build_alias=$build_alias 3470 - test -z "$ac_cv_build_alias" && 3471 - ac_cv_build_alias=`$ac_config_guess` 3472 - test -z "$ac_cv_build_alias" && 3473 - { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3474 - echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3475 - { (exit 1); exit 1; }; } 3476 - ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 3477 - { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 3478 - echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 3479 - { (exit 1); exit 1; }; } 6083 + xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` 3480 6084 3481 - fi 3482 - echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3483 - echo "${ECHO_T}$ac_cv_build" >&6 3484 - build=$ac_cv_build 3485 - build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 3486 - build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 3487 - build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 3488 - 3489 - 3490 - echo "$as_me:$LINENO: checking host system type" >&5 3491 - echo $ECHO_N "checking host system type... $ECHO_C" >&6 3492 - if test "${ac_cv_host+set}" = set; then 3493 - echo $ECHO_N "(cached) $ECHO_C" >&6 6085 + # Check whether --with-appdefaultdir was given. 6086 + if test "${with_appdefaultdir+set}" = set; then 6087 + withval=$with_appdefaultdir; appdefaultdir="$withval" 3494 6088 else 3495 - ac_cv_host_alias=$host_alias 3496 - test -z "$ac_cv_host_alias" && 3497 - ac_cv_host_alias=$ac_cv_build_alias 3498 - ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 3499 - { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 3500 - echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 3501 - { (exit 1); exit 1; }; } 3502 - 3503 - fi 3504 - echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3505 - echo "${ECHO_T}$ac_cv_host" >&6 3506 - host=$ac_cv_host 3507 - host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 3508 - host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 3509 - host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 3510 - 3511 - 3512 - 3513 - 3514 - 3515 - if test x$APP_MAN_SUFFIX = x ; then 3516 - APP_MAN_SUFFIX=1 3517 - fi 3518 - if test x$APP_MAN_DIR = x ; then 3519 - APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 3520 - fi 3521 - 3522 - if test x$LIB_MAN_SUFFIX = x ; then 3523 - LIB_MAN_SUFFIX=3 3524 - fi 3525 - if test x$LIB_MAN_DIR = x ; then 3526 - LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 3527 - fi 3528 - 3529 - if test x$FILE_MAN_SUFFIX = x ; then 3530 - case $host_os in 3531 - solaris*) FILE_MAN_SUFFIX=4 ;; 3532 - *) FILE_MAN_SUFFIX=5 ;; 3533 - esac 3534 - fi 3535 - if test x$FILE_MAN_DIR = x ; then 3536 - FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 3537 - fi 3538 - 3539 - if test x$MISC_MAN_SUFFIX = x ; then 3540 - case $host_os in 3541 - solaris*) MISC_MAN_SUFFIX=5 ;; 3542 - *) MISC_MAN_SUFFIX=7 ;; 3543 - esac 3544 - fi 3545 - if test x$MISC_MAN_DIR = x ; then 3546 - MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 3547 - fi 3548 - 3549 - if test x$DRIVER_MAN_SUFFIX = x ; then 3550 - case $host_os in 3551 - solaris*) DRIVER_MAN_SUFFIX=7 ;; 3552 - *) DRIVER_MAN_SUFFIX=4 ;; 3553 - esac 3554 - fi 3555 - if test x$DRIVER_MAN_DIR = x ; then 3556 - DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 3557 - fi 3558 - 3559 - if test x$ADMIN_MAN_SUFFIX = x ; then 3560 - case $host_os in 3561 - solaris*) ADMIN_MAN_SUFFIX=1m ;; 3562 - *) ADMIN_MAN_SUFFIX=8 ;; 3563 - esac 3564 - fi 3565 - if test x$ADMIN_MAN_DIR = x ; then 3566 - ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 6089 + appdefaultdir="${xt_appdefaultdir}" 3567 6090 fi 3568 6091 3569 6092 3570 6093 3571 6094 3572 - 3573 - 3574 - 3575 - 3576 - 3577 - 3578 - 3579 - 3580 - 3581 - 3582 - 3583 - 3584 - 3585 - # Check whether --with-release-version or --without-release-version was given. 3586 - if test "${with_release_version+set}" = set; then 3587 - withval="$with_release_version" 3588 - RELEASE_VERSION="$withval" 3589 - else 3590 - RELEASE_VERSION="" 3591 - fi; 3592 - if test "x$RELEASE_VERSION" != "x"; then 3593 - PACKAGE="$PACKAGE-$RELEASE_VERSION" 3594 - PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 3595 - { echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5 3596 - echo "$as_me: Building with package name set to $PACKAGE" >&6;} 3597 - fi 3598 - 3599 - cat >>confdefs.h <<_ACEOF 3600 - #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 3601 - _ACEOF 3602 - 3603 - PVM=`echo $PACKAGE_VERSION | cut -d . -f 2` 3604 - if test "x$PVM" = "x"; then 3605 - PVM="0" 3606 - fi 3607 - 3608 - cat >>confdefs.h <<_ACEOF 3609 - #define PACKAGE_VERSION_MINOR $PVM 3610 - _ACEOF 3611 - 3612 - PVP=`echo $PACKAGE_VERSION | cut -d . -f 3` 3613 - if test "x$PVP" = "x"; then 3614 - PVP="0" 3615 - fi 6095 + ac_config_files="$ac_config_files Makefile" 3616 6096 3617 - cat >>confdefs.h <<_ACEOF 3618 - #define PACKAGE_VERSION_PATCHLEVEL $PVP 3619 - _ACEOF 3620 - 3621 - 3622 - 3623 - ac_config_files="$ac_config_files Makefile" 3624 6097 cat >confcache <<\_ACEOF 3625 6098 # This file is a shell script that caches the results of configure 3626 6099 # tests run on this system so they can be shared between configure ··· 3639 6112 3640 6113 # The following way of writing the cache mishandles newlines in values, 3641 6114 # but we know of no workaround that is simple, portable, and efficient. 3642 - # So, don't put newlines in cache variables' values. 6115 + # So, we kill variables containing newlines. 3643 6116 # Ultrix sh set writes to stderr and can't be redirected directly, 3644 6117 # and sets the high bit in the cache file unless we assign to the vars. 3645 - { 6118 + ( 6119 + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 6120 + eval ac_val=\$$ac_var 6121 + case $ac_val in #( 6122 + *${as_nl}*) 6123 + case $ac_var in #( 6124 + *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 6125 + $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 6126 + esac 6127 + case $ac_var in #( 6128 + _ | IFS | as_nl) ;; #( 6129 + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 6130 + *) $as_unset $ac_var ;; 6131 + esac ;; 6132 + esac 6133 + done 6134 + 3646 6135 (set) 2>&1 | 3647 - case `(ac_space=' '; set | grep ac_space) 2>&1` in 3648 - *ac_space=\ *) 6136 + case $as_nl`(ac_space=' '; set) 2>&1` in #( 6137 + *${as_nl}ac_space=\ *) 3649 6138 # `set' does not quote correctly, so add quotes (double-quote 3650 6139 # substitution turns \\\\ into \\, and sed turns \\ into \). 3651 6140 sed -n \ 3652 6141 "s/'/'\\\\''/g; 3653 6142 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 3654 - ;; 6143 + ;; #( 3655 6144 *) 3656 6145 # `set' quotes correctly as required by POSIX, so do not add quotes. 3657 - sed -n \ 3658 - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 6146 + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 3659 6147 ;; 3660 - esac; 3661 - } | 6148 + esac | 6149 + sort 6150 + ) | 3662 6151 sed ' 6152 + /^ac_cv_env_/b end 3663 6153 t clear 3664 - : clear 6154 + :clear 3665 6155 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 3666 6156 t end 3667 - /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 3668 - : end' >>confcache 3669 - if diff $cache_file confcache >/dev/null 2>&1; then :; else 3670 - if test -w $cache_file; then 3671 - test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 6157 + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 6158 + :end' >>confcache 6159 + if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 6160 + if test -w "$cache_file"; then 6161 + test "x$cache_file" != "x/dev/null" && 6162 + { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 6163 + $as_echo "$as_me: updating cache $cache_file" >&6;} 3672 6164 cat confcache >$cache_file 3673 6165 else 3674 - echo "not updating unwritable cache $cache_file" 6166 + { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 6167 + $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 3675 6168 fi 3676 6169 fi 3677 6170 rm -f confcache ··· 3680 6173 # Let make expand exec_prefix. 3681 6174 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 3682 6175 3683 - # VPATH may cause trouble with some makes, so we remove $(srcdir), 3684 - # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 3685 - # trailing colons and then remove the whole line if VPATH becomes empty 3686 - # (actually we leave an empty line to preserve line numbers). 3687 - if test "x$srcdir" = x.; then 3688 - ac_vpsub='/^[ ]*VPATH[ ]*=/{ 3689 - s/:*\$(srcdir):*/:/; 3690 - s/:*\${srcdir}:*/:/; 3691 - s/:*@srcdir@:*/:/; 3692 - s/^\([^=]*=[ ]*\):*/\1/; 3693 - s/:*$//; 3694 - s/^[^=]*=[ ]*$//; 3695 - }' 3696 - fi 3697 - 3698 6176 DEFS=-DHAVE_CONFIG_H 3699 6177 3700 6178 ac_libobjs= 3701 6179 ac_ltlibobjs= 3702 6180 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 3703 6181 # 1. Remove the extension, and $U if already installed. 3704 - ac_i=`echo "$ac_i" | 3705 - sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 3706 - # 2. Add them. 3707 - ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 3708 - ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 6182 + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 6183 + ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 6184 + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 6185 + # will be set to the directory where LIBOBJS objects are built. 6186 + ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 6187 + ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 3709 6188 done 3710 6189 LIBOBJS=$ac_libobjs 3711 6190 ··· 3713 6192 3714 6193 3715 6194 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 3716 - { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 6195 + { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 3717 6196 Usually this means the macro was only invoked conditionally." >&5 3718 - echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 6197 + $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 3719 6198 Usually this means the macro was only invoked conditionally." >&2;} 3720 6199 { (exit 1); exit 1; }; } 3721 6200 fi 3722 6201 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 3723 - { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 6202 + { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 3724 6203 Usually this means the macro was only invoked conditionally." >&5 3725 - echo "$as_me: error: conditional \"AMDEP\" was never defined. 6204 + $as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 3726 6205 Usually this means the macro was only invoked conditionally." >&2;} 3727 6206 { (exit 1); exit 1; }; } 3728 6207 fi 3729 6208 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 3730 - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 6209 + { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 3731 6210 Usually this means the macro was only invoked conditionally." >&5 3732 - echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 6211 + $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 3733 6212 Usually this means the macro was only invoked conditionally." >&2;} 3734 6213 { (exit 1); exit 1; }; } 3735 6214 fi 3736 - if test -z "${XAW_USE_XPRINT_TRUE}" && test -z "${XAW_USE_XPRINT_FALSE}"; then 3737 - { { echo "$as_me:$LINENO: error: conditional \"XAW_USE_XPRINT\" was never defined. 6215 + if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 6216 + { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 3738 6217 Usually this means the macro was only invoked conditionally." >&5 3739 - echo "$as_me: error: conditional \"XAW_USE_XPRINT\" was never defined. 6218 + $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 3740 6219 Usually this means the macro was only invoked conditionally." >&2;} 3741 6220 { (exit 1); exit 1; }; } 3742 6221 fi 3743 6222 3744 6223 : ${CONFIG_STATUS=./config.status} 6224 + ac_write_fail=0 3745 6225 ac_clean_files_save=$ac_clean_files 3746 6226 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 3747 - { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 3748 - echo "$as_me: creating $CONFIG_STATUS" >&6;} 3749 - cat >$CONFIG_STATUS <<_ACEOF 6227 + { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 6228 + $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 6229 + cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 3750 6230 #! $SHELL 3751 6231 # Generated by $as_me. 3752 6232 # Run this file to recreate the current configuration. ··· 3759 6239 SHELL=\${CONFIG_SHELL-$SHELL} 3760 6240 _ACEOF 3761 6241 3762 - cat >>$CONFIG_STATUS <<\_ACEOF 6242 + cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 3763 6243 ## --------------------- ## 3764 6244 ## M4sh Initialization. ## 3765 6245 ## --------------------- ## 3766 6246 3767 - # Be Bourne compatible 6247 + # Be more Bourne compatible 6248 + DUALCASE=1; export DUALCASE # for MKS sh 3768 6249 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 3769 6250 emulate sh 3770 6251 NULLCMD=: 3771 - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 6252 + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 3772 6253 # is contrary to our usage. Disable this feature. 3773 6254 alias -g '${1+"$@"}'='"$@"' 3774 - elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 3775 - set -o posix 6255 + setopt NO_GLOB_SUBST 6256 + else 6257 + case `(set -o) 2>/dev/null` in 6258 + *posix*) set -o posix ;; 6259 + esac 6260 + 3776 6261 fi 3777 - DUALCASE=1; export DUALCASE # for MKS sh 6262 + 6263 + 6264 + 6265 + 6266 + # PATH needs CR 6267 + # Avoid depending upon Character Ranges. 6268 + as_cr_letters='abcdefghijklmnopqrstuvwxyz' 6269 + as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 6270 + as_cr_Letters=$as_cr_letters$as_cr_LETTERS 6271 + as_cr_digits='0123456789' 6272 + as_cr_alnum=$as_cr_Letters$as_cr_digits 6273 + 6274 + as_nl=' 6275 + ' 6276 + export as_nl 6277 + # Printing a long string crashes Solaris 7 /usr/bin/printf. 6278 + as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 6279 + as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 6280 + as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 6281 + if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 6282 + as_echo='printf %s\n' 6283 + as_echo_n='printf %s' 6284 + else 6285 + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 6286 + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 6287 + as_echo_n='/usr/ucb/echo -n' 6288 + else 6289 + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 6290 + as_echo_n_body='eval 6291 + arg=$1; 6292 + case $arg in 6293 + *"$as_nl"*) 6294 + expr "X$arg" : "X\\(.*\\)$as_nl"; 6295 + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 6296 + esac; 6297 + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 6298 + ' 6299 + export as_echo_n_body 6300 + as_echo_n='sh -c $as_echo_n_body as_echo' 6301 + fi 6302 + export as_echo_body 6303 + as_echo='sh -c $as_echo_body as_echo' 6304 + fi 6305 + 6306 + # The user is always right. 6307 + if test "${PATH_SEPARATOR+set}" != set; then 6308 + PATH_SEPARATOR=: 6309 + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 6310 + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 6311 + PATH_SEPARATOR=';' 6312 + } 6313 + fi 3778 6314 3779 6315 # Support unset when possible. 3780 6316 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then ··· 3784 6320 fi 3785 6321 3786 6322 6323 + # IFS 6324 + # We need space, tab and new line, in precisely that order. Quoting is 6325 + # there to prevent editors from complaining about space-tab. 6326 + # (If _AS_PATH_WALK were called with IFS unset, it would disable word 6327 + # splitting by setting IFS to empty value.) 6328 + IFS=" "" $as_nl" 6329 + 6330 + # Find who we are. Look in the path if we contain no directory separator. 6331 + case $0 in 6332 + *[\\/]* ) as_myself=$0 ;; 6333 + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6334 + for as_dir in $PATH 6335 + do 6336 + IFS=$as_save_IFS 6337 + test -z "$as_dir" && as_dir=. 6338 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 6339 + done 6340 + IFS=$as_save_IFS 6341 + 6342 + ;; 6343 + esac 6344 + # We did not find ourselves, most probably we were run as `sh COMMAND' 6345 + # in which case we are not to be found in the path. 6346 + if test "x$as_myself" = x; then 6347 + as_myself=$0 6348 + fi 6349 + if test ! -f "$as_myself"; then 6350 + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 6351 + { (exit 1); exit 1; } 6352 + fi 6353 + 3787 6354 # Work around bugs in pre-3.0 UWIN ksh. 3788 - $as_unset ENV MAIL MAILPATH 6355 + for as_var in ENV MAIL MAILPATH 6356 + do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 6357 + done 3789 6358 PS1='$ ' 3790 6359 PS2='> ' 3791 6360 PS4='+ ' 3792 6361 3793 6362 # NLS nuisances. 3794 - for as_var in \ 3795 - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 3796 - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 3797 - LC_TELEPHONE LC_TIME 3798 - do 3799 - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 3800 - eval $as_var=C; export $as_var 3801 - else 3802 - $as_unset $as_var 3803 - fi 3804 - done 6363 + LC_ALL=C 6364 + export LC_ALL 6365 + LANGUAGE=C 6366 + export LANGUAGE 3805 6367 3806 6368 # Required to use basename. 3807 - if expr a : '\(a\)' >/dev/null 2>&1; then 6369 + if expr a : '\(a\)' >/dev/null 2>&1 && 6370 + test "X`expr 00001 : '.*\(...\)'`" = X001; then 3808 6371 as_expr=expr 3809 6372 else 3810 6373 as_expr=false 3811 6374 fi 3812 6375 3813 - if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 6376 + if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 3814 6377 as_basename=basename 3815 6378 else 3816 6379 as_basename=false ··· 3818 6381 3819 6382 3820 6383 # Name of the executable. 3821 - as_me=`$as_basename "$0" || 6384 + as_me=`$as_basename -- "$0" || 3822 6385 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 3823 6386 X"$0" : 'X\(//\)$' \| \ 3824 - X"$0" : 'X\(/\)$' \| \ 3825 - . : '\(.\)' 2>/dev/null || 3826 - echo X/"$0" | 3827 - sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 3828 - /^X\/\(\/\/\)$/{ s//\1/; q; } 3829 - /^X\/\(\/\).*/{ s//\1/; q; } 3830 - s/.*/./; q'` 3831 - 6387 + X"$0" : 'X\(/\)' \| . 2>/dev/null || 6388 + $as_echo X/"$0" | 6389 + sed '/^.*\/\([^/][^/]*\)\/*$/{ 6390 + s//\1/ 6391 + q 6392 + } 6393 + /^X\/\(\/\/\)$/{ 6394 + s//\1/ 6395 + q 6396 + } 6397 + /^X\/\(\/\).*/{ 6398 + s//\1/ 6399 + q 6400 + } 6401 + s/.*/./; q'` 3832 6402 3833 - # PATH needs CR, and LINENO needs CR and PATH. 3834 - # Avoid depending upon Character Ranges. 3835 - as_cr_letters='abcdefghijklmnopqrstuvwxyz' 3836 - as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 3837 - as_cr_Letters=$as_cr_letters$as_cr_LETTERS 3838 - as_cr_digits='0123456789' 3839 - as_cr_alnum=$as_cr_Letters$as_cr_digits 6403 + # CDPATH. 6404 + $as_unset CDPATH 3840 6405 3841 - # The user is always right. 3842 - if test "${PATH_SEPARATOR+set}" != set; then 3843 - echo "#! /bin/sh" >conf$$.sh 3844 - echo "exit 0" >>conf$$.sh 3845 - chmod +x conf$$.sh 3846 - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 3847 - PATH_SEPARATOR=';' 3848 - else 3849 - PATH_SEPARATOR=: 3850 - fi 3851 - rm -f conf$$.sh 3852 - fi 3853 6406 3854 6407 3855 6408 as_lineno_1=$LINENO 3856 6409 as_lineno_2=$LINENO 3857 - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 3858 6410 test "x$as_lineno_1" != "x$as_lineno_2" && 3859 - test "x$as_lineno_3" = "x$as_lineno_2" || { 3860 - # Find who we are. Look in the path if we contain no path at all 3861 - # relative or not. 3862 - case $0 in 3863 - *[\\/]* ) as_myself=$0 ;; 3864 - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3865 - for as_dir in $PATH 3866 - do 3867 - IFS=$as_save_IFS 3868 - test -z "$as_dir" && as_dir=. 3869 - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 3870 - done 3871 - 3872 - ;; 3873 - esac 3874 - # We did not find ourselves, most probably we were run as `sh COMMAND' 3875 - # in which case we are not to be found in the path. 3876 - if test "x$as_myself" = x; then 3877 - as_myself=$0 3878 - fi 3879 - if test ! -f "$as_myself"; then 3880 - { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 3881 - echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 3882 - { (exit 1); exit 1; }; } 3883 - fi 3884 - case $CONFIG_SHELL in 3885 - '') 3886 - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3887 - for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 3888 - do 3889 - IFS=$as_save_IFS 3890 - test -z "$as_dir" && as_dir=. 3891 - for as_base in sh bash ksh sh5; do 3892 - case $as_dir in 3893 - /*) 3894 - if ("$as_dir/$as_base" -c ' 3895 - as_lineno_1=$LINENO 3896 - as_lineno_2=$LINENO 3897 - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 3898 - test "x$as_lineno_1" != "x$as_lineno_2" && 3899 - test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 3900 - $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 3901 - $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 3902 - CONFIG_SHELL=$as_dir/$as_base 3903 - export CONFIG_SHELL 3904 - exec "$CONFIG_SHELL" "$0" ${1+"$@"} 3905 - fi;; 3906 - esac 3907 - done 3908 - done 3909 - ;; 3910 - esac 6411 + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 3911 6412 3912 6413 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 3913 6414 # uniformly replaced by the line number. The first 'sed' inserts a 3914 - # line-number line before each line; the second 'sed' does the real 3915 - # work. The second script uses 'N' to pair each line-number line 3916 - # with the numbered line, and appends trailing '-' during 3917 - # substitution so that $LINENO is not a special case at line end. 6415 + # line-number line after each line using $LINENO; the second 'sed' 6416 + # does the real work. The second script uses 'N' to pair each 6417 + # line-number line with the line containing $LINENO, and appends 6418 + # trailing '-' during substitution so that $LINENO is not a special 6419 + # case at line end. 3918 6420 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 3919 - # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 3920 - sed '=' <$as_myself | 6421 + # scripts with optimization help from Paolo Bonzini. Blame Lee 6422 + # E. McMahon (1931-1989) for sed's syntax. :-) 6423 + sed -n ' 6424 + p 6425 + /[$]LINENO/= 6426 + ' <$as_myself | 3921 6427 sed ' 6428 + s/[$]LINENO.*/&-/ 6429 + t lineno 6430 + b 6431 + :lineno 3922 6432 N 3923 - s,$,-, 3924 - : loop 3925 - s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 6433 + :loop 6434 + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 3926 6435 t loop 3927 - s,-$,, 3928 - s,^['$as_cr_digits']*\n,, 6436 + s/-\n.*// 3929 6437 ' >$as_me.lineno && 3930 - chmod +x $as_me.lineno || 3931 - { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 3932 - echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 6438 + chmod +x "$as_me.lineno" || 6439 + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 3933 6440 { (exit 1); exit 1; }; } 3934 6441 3935 6442 # Don't try to exec as it changes $[0], causing all sort of problems 3936 6443 # (the dirname of $[0] is not the place where we might find the 3937 - # original and so on. Autoconf is especially sensible to this). 3938 - . ./$as_me.lineno 6444 + # original and so on. Autoconf is especially sensitive to this). 6445 + . "./$as_me.lineno" 3939 6446 # Exit status is that of the last command. 3940 6447 exit 3941 6448 } 3942 6449 3943 6450 3944 - case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 3945 - *c*,-n*) ECHO_N= ECHO_C=' 3946 - ' ECHO_T=' ' ;; 3947 - *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 3948 - *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 6451 + if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 6452 + as_dirname=dirname 6453 + else 6454 + as_dirname=false 6455 + fi 6456 + 6457 + ECHO_C= ECHO_N= ECHO_T= 6458 + case `echo -n x` in 6459 + -n*) 6460 + case `echo 'x\c'` in 6461 + *c*) ECHO_T=' ';; # ECHO_T is single tab character. 6462 + *) ECHO_C='\c';; 6463 + esac;; 6464 + *) 6465 + ECHO_N='-n';; 3949 6466 esac 3950 - 3951 - if expr a : '\(a\)' >/dev/null 2>&1; then 6467 + if expr a : '\(a\)' >/dev/null 2>&1 && 6468 + test "X`expr 00001 : '.*\(...\)'`" = X001; then 3952 6469 as_expr=expr 3953 6470 else 3954 6471 as_expr=false 3955 6472 fi 3956 6473 3957 6474 rm -f conf$$ conf$$.exe conf$$.file 3958 - echo >conf$$.file 3959 - if ln -s conf$$.file conf$$ 2>/dev/null; then 3960 - # We could just check for DJGPP; but this test a) works b) is more generic 3961 - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 3962 - if test -f conf$$.exe; then 3963 - # Don't use ln at all; we don't have any links 3964 - as_ln_s='cp -p' 3965 - else 6475 + if test -d conf$$.dir; then 6476 + rm -f conf$$.dir/conf$$.file 6477 + else 6478 + rm -f conf$$.dir 6479 + mkdir conf$$.dir 2>/dev/null 6480 + fi 6481 + if (echo >conf$$.file) 2>/dev/null; then 6482 + if ln -s conf$$.file conf$$ 2>/dev/null; then 3966 6483 as_ln_s='ln -s' 6484 + # ... but there are two gotchas: 6485 + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 6486 + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 6487 + # In both cases, we have to default to `cp -p'. 6488 + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 6489 + as_ln_s='cp -p' 6490 + elif ln conf$$.file conf$$ 2>/dev/null; then 6491 + as_ln_s=ln 6492 + else 6493 + as_ln_s='cp -p' 3967 6494 fi 3968 - elif ln conf$$.file conf$$ 2>/dev/null; then 3969 - as_ln_s=ln 3970 6495 else 3971 6496 as_ln_s='cp -p' 3972 6497 fi 3973 - rm -f conf$$ conf$$.exe conf$$.file 6498 + rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 6499 + rmdir conf$$.dir 2>/dev/null 3974 6500 3975 6501 if mkdir -p . 2>/dev/null; then 3976 6502 as_mkdir_p=: ··· 3979 6505 as_mkdir_p=false 3980 6506 fi 3981 6507 3982 - as_executable_p="test -f" 6508 + if test -x / >/dev/null 2>&1; then 6509 + as_test_x='test -x' 6510 + else 6511 + if ls -dL / >/dev/null 2>&1; then 6512 + as_ls_L_option=L 6513 + else 6514 + as_ls_L_option= 6515 + fi 6516 + as_test_x=' 6517 + eval sh -c '\'' 6518 + if test -d "$1"; then 6519 + test -d "$1/."; 6520 + else 6521 + case $1 in 6522 + -*)set "./$1";; 6523 + esac; 6524 + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 6525 + ???[sx]*):;;*)false;;esac;fi 6526 + '\'' sh 6527 + ' 6528 + fi 6529 + as_executable_p=$as_test_x 3983 6530 3984 6531 # Sed expression to map a string onto a valid CPP name. 3985 6532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" ··· 3988 6535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 3989 6536 3990 6537 3991 - # IFS 3992 - # We need space, tab and new line, in precisely that order. 3993 - as_nl=' 3994 - ' 3995 - IFS=" $as_nl" 3996 - 3997 - # CDPATH. 3998 - $as_unset CDPATH 3999 - 4000 6538 exec 6>&1 4001 6539 4002 - # Open the log real soon, to keep \$[0] and so on meaningful, and to 6540 + # Save the log message, to keep $[0] and so on meaningful, and to 4003 6541 # report actual input values of CONFIG_FILES etc. instead of their 4004 - # values after options handling. Logging --version etc. is OK. 4005 - exec 5>>config.log 4006 - { 4007 - echo 4008 - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 4009 - ## Running $as_me. ## 4010 - _ASBOX 4011 - } >&5 4012 - cat >&5 <<_CSEOF 4013 - 6542 + # values after options handling. 6543 + ac_log=" 4014 6544 This file was extended by xmore $as_me 1.0.1, which was 4015 - generated by GNU Autoconf 2.59. Invocation command line was 6545 + generated by GNU Autoconf 2.62. Invocation command line was 4016 6546 4017 6547 CONFIG_FILES = $CONFIG_FILES 4018 6548 CONFIG_HEADERS = $CONFIG_HEADERS ··· 4020 6550 CONFIG_COMMANDS = $CONFIG_COMMANDS 4021 6551 $ $0 $@ 4022 6552 4023 - _CSEOF 4024 - echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 4025 - echo >&5 6553 + on `(hostname || uname -n) 2>/dev/null | sed 1q` 6554 + " 6555 + 4026 6556 _ACEOF 4027 6557 6558 + cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 4028 6559 # Files that config.status was made for. 4029 - if test -n "$ac_config_files"; then 4030 - echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 4031 - fi 4032 - 4033 - if test -n "$ac_config_headers"; then 4034 - echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 4035 - fi 4036 - 4037 - if test -n "$ac_config_links"; then 4038 - echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 4039 - fi 6560 + config_files="$ac_config_files" 6561 + config_headers="$ac_config_headers" 6562 + config_commands="$ac_config_commands" 4040 6563 4041 - if test -n "$ac_config_commands"; then 4042 - echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 4043 - fi 6564 + _ACEOF 4044 6565 4045 - cat >>$CONFIG_STATUS <<\_ACEOF 4046 - 6566 + cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 4047 6567 ac_cs_usage="\ 4048 6568 \`$as_me' instantiates files from templates according to the 4049 6569 current configuration. ··· 4051 6571 Usage: $0 [OPTIONS] [FILE]... 4052 6572 4053 6573 -h, --help print this help, then exit 4054 - -V, --version print version number, then exit 6574 + -V, --version print version number and configuration settings, then exit 4055 6575 -q, --quiet do not print progress messages 4056 6576 -d, --debug don't remove temporary files 4057 6577 --recheck update $as_me by reconfiguring in the same conditions 4058 6578 --file=FILE[:TEMPLATE] 4059 - instantiate the configuration file FILE 6579 + instantiate the configuration file FILE 4060 6580 --header=FILE[:TEMPLATE] 4061 - instantiate the configuration header FILE 6581 + instantiate the configuration header FILE 4062 6582 4063 6583 Configuration files: 4064 6584 $config_files ··· 4070 6590 $config_commands 4071 6591 4072 6592 Report bugs to <bug-autoconf@gnu.org>." 6593 + 4073 6594 _ACEOF 4074 - 4075 - cat >>$CONFIG_STATUS <<_ACEOF 6595 + cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 4076 6596 ac_cs_version="\\ 4077 6597 xmore config.status 1.0.1 4078 - configured by $0, generated by GNU Autoconf 2.59, 4079 - with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 6598 + configured by $0, generated by GNU Autoconf 2.62, 6599 + with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 4080 6600 4081 - Copyright (C) 2003 Free Software Foundation, Inc. 6601 + Copyright (C) 2008 Free Software Foundation, Inc. 4082 6602 This config.status script is free software; the Free Software Foundation 4083 6603 gives unlimited permission to copy, distribute and modify it." 4084 - srcdir=$srcdir 4085 - INSTALL="$INSTALL" 6604 + 6605 + ac_pwd='$ac_pwd' 6606 + srcdir='$srcdir' 6607 + INSTALL='$INSTALL' 6608 + AWK='$AWK' 6609 + test -n "\$AWK" || AWK=awk 4086 6610 _ACEOF 4087 6611 4088 - cat >>$CONFIG_STATUS <<\_ACEOF 4089 - # If no file are specified by the user, then we need to provide default 4090 - # value. By we need to know if files were specified by the user. 6612 + cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6613 + # The default lists apply if the user does not specify any file. 4091 6614 ac_need_defaults=: 4092 6615 while test $# != 0 4093 6616 do 4094 6617 case $1 in 4095 6618 --*=*) 4096 - ac_option=`expr "x$1" : 'x\([^=]*\)='` 4097 - ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 6619 + ac_option=`expr "X$1" : 'X\([^=]*\)='` 6620 + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 4098 6621 ac_shift=: 4099 6622 ;; 4100 - -*) 6623 + *) 4101 6624 ac_option=$1 4102 6625 ac_optarg=$2 4103 6626 ac_shift=shift 4104 6627 ;; 4105 - *) # This is not an option, so the user has probably given explicit 4106 - # arguments. 4107 - ac_option=$1 4108 - ac_need_defaults=false;; 4109 6628 esac 4110 6629 4111 6630 case $ac_option in 4112 6631 # Handling of the options. 4113 - _ACEOF 4114 - cat >>$CONFIG_STATUS <<\_ACEOF 4115 6632 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 4116 6633 ac_cs_recheck=: ;; 4117 - --version | --vers* | -V ) 4118 - echo "$ac_cs_version"; exit 0 ;; 4119 - --he | --h) 4120 - # Conflict between --help and --header 4121 - { { echo "$as_me:$LINENO: error: ambiguous option: $1 4122 - Try \`$0 --help' for more information." >&5 4123 - echo "$as_me: error: ambiguous option: $1 4124 - Try \`$0 --help' for more information." >&2;} 4125 - { (exit 1); exit 1; }; };; 4126 - --help | --hel | -h ) 4127 - echo "$ac_cs_usage"; exit 0 ;; 4128 - --debug | --d* | -d ) 6634 + --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 6635 + $as_echo "$ac_cs_version"; exit ;; 6636 + --debug | --debu | --deb | --de | --d | -d ) 4129 6637 debug=: ;; 4130 6638 --file | --fil | --fi | --f ) 4131 6639 $ac_shift 4132 - CONFIG_FILES="$CONFIG_FILES $ac_optarg" 6640 + case $ac_optarg in 6641 + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 6642 + esac 6643 + CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 4133 6644 ac_need_defaults=false;; 4134 6645 --header | --heade | --head | --hea ) 4135 6646 $ac_shift 4136 - CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 6647 + case $ac_optarg in 6648 + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 6649 + esac 6650 + CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 4137 6651 ac_need_defaults=false;; 6652 + --he | --h) 6653 + # Conflict between --help and --header 6654 + { $as_echo "$as_me: error: ambiguous option: $1 6655 + Try \`$0 --help' for more information." >&2 6656 + { (exit 1); exit 1; }; };; 6657 + --help | --hel | -h ) 6658 + $as_echo "$ac_cs_usage"; exit ;; 4138 6659 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 4139 6660 | -silent | --silent | --silen | --sile | --sil | --si | --s) 4140 6661 ac_cs_silent=: ;; 4141 6662 4142 6663 # This is an error. 4143 - -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 4144 - Try \`$0 --help' for more information." >&5 4145 - echo "$as_me: error: unrecognized option: $1 4146 - Try \`$0 --help' for more information." >&2;} 6664 + -*) { $as_echo "$as_me: error: unrecognized option: $1 6665 + Try \`$0 --help' for more information." >&2 4147 6666 { (exit 1); exit 1; }; } ;; 4148 6667 4149 - *) ac_config_targets="$ac_config_targets $1" ;; 6668 + *) ac_config_targets="$ac_config_targets $1" 6669 + ac_need_defaults=false ;; 4150 6670 4151 6671 esac 4152 6672 shift ··· 4160 6680 fi 4161 6681 4162 6682 _ACEOF 4163 - cat >>$CONFIG_STATUS <<_ACEOF 6683 + cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 4164 6684 if \$ac_cs_recheck; then 4165 - echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 4166 - exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 6685 + set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 6686 + shift 6687 + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 6688 + CONFIG_SHELL='$SHELL' 6689 + export CONFIG_SHELL 6690 + exec "\$@" 4167 6691 fi 4168 6692 4169 6693 _ACEOF 6694 + cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6695 + exec 5>>config.log 6696 + { 6697 + echo 6698 + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 6699 + ## Running $as_me. ## 6700 + _ASBOX 6701 + $as_echo "$ac_log" 6702 + } >&5 4170 6703 4171 - cat >>$CONFIG_STATUS <<_ACEOF 6704 + _ACEOF 6705 + cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 4172 6706 # 4173 - # INIT-COMMANDS section. 6707 + # INIT-COMMANDS 4174 6708 # 4175 - 4176 6709 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 4177 6710 4178 6711 _ACEOF 4179 6712 4180 - 6713 + cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 4181 6714 4182 - cat >>$CONFIG_STATUS <<\_ACEOF 6715 + # Handling of arguments. 4183 6716 for ac_config_target in $ac_config_targets 4184 6717 do 4185 - case "$ac_config_target" in 4186 - # Handling of arguments. 4187 - "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 4188 - "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 4189 - "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 4190 - *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 4191 - echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 6718 + case $ac_config_target in 6719 + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 6720 + "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 6721 + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 6722 + 6723 + *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 6724 + $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 4192 6725 { (exit 1); exit 1; }; };; 4193 6726 esac 4194 6727 done 6728 + 4195 6729 4196 6730 # If the user did not use the arguments to specify the items to instantiate, 4197 6731 # then the envvar interface is used. Set only those that are not. ··· 4204 6738 fi 4205 6739 4206 6740 # Have a temporary directory for convenience. Make it in the build tree 4207 - # simply because there is no reason to put it here, and in addition, 6741 + # simply because there is no reason against having it here, and in addition, 4208 6742 # creating and moving files from /tmp can sometimes cause problems. 4209 - # Create a temporary directory, and hook for its removal unless debugging. 6743 + # Hook for its removal unless debugging. 6744 + # Note that there is a small window in which the directory will not be cleaned: 6745 + # after its creation but before its name has been assigned to `$tmp'. 4210 6746 $debug || 4211 6747 { 4212 - trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 6748 + tmp= 6749 + trap 'exit_status=$? 6750 + { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 6751 + ' 0 4213 6752 trap '{ (exit 1); exit 1; }' 1 2 13 15 4214 6753 } 4215 - 4216 6754 # Create a (secure) tmp directory for tmp files. 4217 6755 4218 6756 { 4219 - tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 6757 + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 4220 6758 test -n "$tmp" && test -d "$tmp" 4221 6759 } || 4222 6760 { 4223 - tmp=./confstat$$-$RANDOM 4224 - (umask 077 && mkdir $tmp) 6761 + tmp=./conf$$-$RANDOM 6762 + (umask 077 && mkdir "$tmp") 4225 6763 } || 4226 6764 { 4227 - echo "$me: cannot create a temporary directory in ." >&2 6765 + $as_echo "$as_me: cannot create a temporary directory in ." >&2 4228 6766 { (exit 1); exit 1; } 4229 6767 } 4230 6768 6769 + # Set up the scripts for CONFIG_FILES section. 6770 + # No need to generate them if there are no CONFIG_FILES. 6771 + # This happens for instance with `./config.status config.h'. 6772 + if test -n "$CONFIG_FILES"; then 6773 + 6774 + 6775 + ac_cr=' ' 6776 + ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 6777 + if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 6778 + ac_cs_awk_cr='\\r' 6779 + else 6780 + ac_cs_awk_cr=$ac_cr 6781 + fi 6782 + 6783 + echo 'BEGIN {' >"$tmp/subs1.awk" && 4231 6784 _ACEOF 4232 6785 4233 - cat >>$CONFIG_STATUS <<_ACEOF 4234 6786 4235 - # 4236 - # CONFIG_FILES section. 4237 - # 6787 + { 6788 + echo "cat >conf$$subs.awk <<_ACEOF" && 6789 + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 6790 + echo "_ACEOF" 6791 + } >conf$$subs.sh || 6792 + { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 6793 + $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 6794 + { (exit 1); exit 1; }; } 6795 + ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 6796 + ac_delim='%!_!# ' 6797 + for ac_last_try in false false false false false :; do 6798 + . ./conf$$subs.sh || 6799 + { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 6800 + $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 6801 + { (exit 1); exit 1; }; } 4238 6802 4239 - # No need to generate the scripts if there are no CONFIG_FILES. 4240 - # This happens for instance when ./config.status config.h 4241 - if test -n "\$CONFIG_FILES"; then 4242 - # Protect against being on the right side of a sed subst in config.status. 4243 - sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 4244 - s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 4245 - s,@SHELL@,$SHELL,;t t 4246 - s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 4247 - s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 4248 - s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 4249 - s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 4250 - s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 4251 - s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 4252 - s,@exec_prefix@,$exec_prefix,;t t 4253 - s,@prefix@,$prefix,;t t 4254 - s,@program_transform_name@,$program_transform_name,;t t 4255 - s,@bindir@,$bindir,;t t 4256 - s,@sbindir@,$sbindir,;t t 4257 - s,@libexecdir@,$libexecdir,;t t 4258 - s,@datadir@,$datadir,;t t 4259 - s,@sysconfdir@,$sysconfdir,;t t 4260 - s,@sharedstatedir@,$sharedstatedir,;t t 4261 - s,@localstatedir@,$localstatedir,;t t 4262 - s,@libdir@,$libdir,;t t 4263 - s,@includedir@,$includedir,;t t 4264 - s,@oldincludedir@,$oldincludedir,;t t 4265 - s,@infodir@,$infodir,;t t 4266 - s,@mandir@,$mandir,;t t 4267 - s,@build_alias@,$build_alias,;t t 4268 - s,@host_alias@,$host_alias,;t t 4269 - s,@target_alias@,$target_alias,;t t 4270 - s,@DEFS@,$DEFS,;t t 4271 - s,@ECHO_C@,$ECHO_C,;t t 4272 - s,@ECHO_N@,$ECHO_N,;t t 4273 - s,@ECHO_T@,$ECHO_T,;t t 4274 - s,@LIBS@,$LIBS,;t t 4275 - s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 4276 - s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 4277 - s,@INSTALL_DATA@,$INSTALL_DATA,;t t 4278 - s,@CYGPATH_W@,$CYGPATH_W,;t t 4279 - s,@PACKAGE@,$PACKAGE,;t t 4280 - s,@VERSION@,$VERSION,;t t 4281 - s,@ACLOCAL@,$ACLOCAL,;t t 4282 - s,@AUTOCONF@,$AUTOCONF,;t t 4283 - s,@AUTOMAKE@,$AUTOMAKE,;t t 4284 - s,@AUTOHEADER@,$AUTOHEADER,;t t 4285 - s,@MAKEINFO@,$MAKEINFO,;t t 4286 - s,@install_sh@,$install_sh,;t t 4287 - s,@STRIP@,$STRIP,;t t 4288 - s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 4289 - s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 4290 - s,@mkdir_p@,$mkdir_p,;t t 4291 - s,@AWK@,$AWK,;t t 4292 - s,@SET_MAKE@,$SET_MAKE,;t t 4293 - s,@am__leading_dot@,$am__leading_dot,;t t 4294 - s,@AMTAR@,$AMTAR,;t t 4295 - s,@am__tar@,$am__tar,;t t 4296 - s,@am__untar@,$am__untar,;t t 4297 - s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t 4298 - s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t 4299 - s,@MAINT@,$MAINT,;t t 4300 - s,@CC@,$CC,;t t 4301 - s,@CFLAGS@,$CFLAGS,;t t 4302 - s,@LDFLAGS@,$LDFLAGS,;t t 4303 - s,@CPPFLAGS@,$CPPFLAGS,;t t 4304 - s,@ac_ct_CC@,$ac_ct_CC,;t t 4305 - s,@EXEEXT@,$EXEEXT,;t t 4306 - s,@OBJEXT@,$OBJEXT,;t t 4307 - s,@DEPDIR@,$DEPDIR,;t t 4308 - s,@am__include@,$am__include,;t t 4309 - s,@am__quote@,$am__quote,;t t 4310 - s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 4311 - s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 4312 - s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 4313 - s,@CCDEPMODE@,$CCDEPMODE,;t t 4314 - s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 4315 - s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 4316 - s,@PKG_CONFIG@,$PKG_CONFIG,;t t 4317 - s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t 4318 - s,@TMP_XAW_CFLAGS@,$TMP_XAW_CFLAGS,;t t 4319 - s,@TMP_XAW_LIBS@,$TMP_XAW_LIBS,;t t 4320 - s,@XAW_USE_XPRINT_TRUE@,$XAW_USE_XPRINT_TRUE,;t t 4321 - s,@XAW_USE_XPRINT_FALSE@,$XAW_USE_XPRINT_FALSE,;t t 4322 - s,@XPRINT_UTIL_CFLAGS@,$XPRINT_UTIL_CFLAGS,;t t 4323 - s,@XPRINT_UTIL_LIBS@,$XPRINT_UTIL_LIBS,;t t 4324 - s,@XMORE_CFLAGS@,$XMORE_CFLAGS,;t t 4325 - s,@XMORE_LIBS@,$XMORE_LIBS,;t t 4326 - s,@APPDEFS_CFLAGS@,$APPDEFS_CFLAGS,;t t 4327 - s,@APPDEFS_LIBS@,$APPDEFS_LIBS,;t t 4328 - s,@appdefaultdir@,$appdefaultdir,;t t 4329 - s,@build@,$build,;t t 4330 - s,@build_cpu@,$build_cpu,;t t 4331 - s,@build_vendor@,$build_vendor,;t t 4332 - s,@build_os@,$build_os,;t t 4333 - s,@host@,$host,;t t 4334 - s,@host_cpu@,$host_cpu,;t t 4335 - s,@host_vendor@,$host_vendor,;t t 4336 - s,@host_os@,$host_os,;t t 4337 - s,@APP_MAN_SUFFIX@,$APP_MAN_SUFFIX,;t t 4338 - s,@LIB_MAN_SUFFIX@,$LIB_MAN_SUFFIX,;t t 4339 - s,@FILE_MAN_SUFFIX@,$FILE_MAN_SUFFIX,;t t 4340 - s,@MISC_MAN_SUFFIX@,$MISC_MAN_SUFFIX,;t t 4341 - s,@DRIVER_MAN_SUFFIX@,$DRIVER_MAN_SUFFIX,;t t 4342 - s,@ADMIN_MAN_SUFFIX@,$ADMIN_MAN_SUFFIX,;t t 4343 - s,@APP_MAN_DIR@,$APP_MAN_DIR,;t t 4344 - s,@LIB_MAN_DIR@,$LIB_MAN_DIR,;t t 4345 - s,@FILE_MAN_DIR@,$FILE_MAN_DIR,;t t 4346 - s,@MISC_MAN_DIR@,$MISC_MAN_DIR,;t t 4347 - s,@DRIVER_MAN_DIR@,$DRIVER_MAN_DIR,;t t 4348 - s,@ADMIN_MAN_DIR@,$ADMIN_MAN_DIR,;t t 4349 - s,@LIBOBJS@,$LIBOBJS,;t t 4350 - s,@LTLIBOBJS@,$LTLIBOBJS,;t t 4351 - CEOF 6803 + if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then 6804 + break 6805 + elif $ac_last_try; then 6806 + { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 6807 + $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 6808 + { (exit 1); exit 1; }; } 6809 + else 6810 + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 6811 + fi 6812 + done 6813 + rm -f conf$$subs.sh 4352 6814 6815 + cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6816 + cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 4353 6817 _ACEOF 6818 + sed -n ' 6819 + h 6820 + s/^/S["/; s/!.*/"]=/ 6821 + p 6822 + g 6823 + s/^[^!]*!// 6824 + :repl 6825 + t repl 6826 + s/'"$ac_delim"'$// 6827 + t delim 6828 + :nl 6829 + h 6830 + s/\(.\{148\}\).*/\1/ 6831 + t more1 6832 + s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 6833 + p 6834 + n 6835 + b repl 6836 + :more1 6837 + s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 6838 + p 6839 + g 6840 + s/.\{148\}// 6841 + t nl 6842 + :delim 6843 + h 6844 + s/\(.\{148\}\).*/\1/ 6845 + t more2 6846 + s/["\\]/\\&/g; s/^/"/; s/$/"/ 6847 + p 6848 + b 6849 + :more2 6850 + s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 6851 + p 6852 + g 6853 + s/.\{148\}// 6854 + t delim 6855 + ' <conf$$subs.awk | sed ' 6856 + /^[^""]/{ 6857 + N 6858 + s/\n// 6859 + } 6860 + ' >>$CONFIG_STATUS || ac_write_fail=1 6861 + rm -f conf$$subs.awk 6862 + cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6863 + _ACAWK 6864 + cat >>"\$tmp/subs1.awk" <<_ACAWK && 6865 + for (key in S) S_is_set[key] = 1 6866 + FS = "" 4354 6867 4355 - cat >>$CONFIG_STATUS <<\_ACEOF 4356 - # Split the substitutions into bite-sized pieces for seds with 4357 - # small command number limits, like on Digital OSF/1 and HP-UX. 4358 - ac_max_sed_lines=48 4359 - ac_sed_frag=1 # Number of current file. 4360 - ac_beg=1 # First line for current file. 4361 - ac_end=$ac_max_sed_lines # Line after last line for current file. 4362 - ac_more_lines=: 4363 - ac_sed_cmds= 4364 - while $ac_more_lines; do 4365 - if test $ac_beg -gt 1; then 4366 - sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 4367 - else 4368 - sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 4369 - fi 4370 - if test ! -s $tmp/subs.frag; then 4371 - ac_more_lines=false 4372 - else 4373 - # The purpose of the label and of the branching condition is to 4374 - # speed up the sed processing (if there are no `@' at all, there 4375 - # is no need to browse any of the substitutions). 4376 - # These are the two extra sed commands mentioned above. 4377 - (echo ':t 4378 - /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 4379 - if test -z "$ac_sed_cmds"; then 4380 - ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 4381 - else 4382 - ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 4383 - fi 4384 - ac_sed_frag=`expr $ac_sed_frag + 1` 4385 - ac_beg=$ac_end 4386 - ac_end=`expr $ac_end + $ac_max_sed_lines` 4387 - fi 4388 - done 4389 - if test -z "$ac_sed_cmds"; then 4390 - ac_sed_cmds=cat 4391 - fi 6868 + } 6869 + { 6870 + line = $ 0 6871 + nfields = split(line, field, "@") 6872 + substed = 0 6873 + len = length(field[1]) 6874 + for (i = 2; i < nfields; i++) { 6875 + key = field[i] 6876 + keylen = length(key) 6877 + if (S_is_set[key]) { 6878 + value = S[key] 6879 + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 6880 + len += length(value) + length(field[++i]) 6881 + substed = 1 6882 + } else 6883 + len += 1 + keylen 6884 + } 6885 + 6886 + print line 6887 + } 6888 + 6889 + _ACAWK 6890 + _ACEOF 6891 + cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6892 + if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 6893 + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 6894 + else 6895 + cat 6896 + fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 6897 + || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 6898 + $as_echo "$as_me: error: could not setup config files machinery" >&2;} 6899 + { (exit 1); exit 1; }; } 6900 + _ACEOF 6901 + 6902 + # VPATH may cause trouble with some makes, so we remove $(srcdir), 6903 + # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 6904 + # trailing colons and then remove the whole line if VPATH becomes empty 6905 + # (actually we leave an empty line to preserve line numbers). 6906 + if test "x$srcdir" = x.; then 6907 + ac_vpsub='/^[ ]*VPATH[ ]*=/{ 6908 + s/:*\$(srcdir):*/:/ 6909 + s/:*\${srcdir}:*/:/ 6910 + s/:*@srcdir@:*/:/ 6911 + s/^\([^=]*=[ ]*\):*/\1/ 6912 + s/:*$// 6913 + s/^[^=]*=[ ]*$// 6914 + }' 6915 + fi 6916 + 6917 + cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 4392 6918 fi # test -n "$CONFIG_FILES" 4393 6919 6920 + # Set up the scripts for CONFIG_HEADERS section. 6921 + # No need to generate them if there are no CONFIG_HEADERS. 6922 + # This happens for instance with `./config.status Makefile'. 6923 + if test -n "$CONFIG_HEADERS"; then 6924 + cat >"$tmp/defines.awk" <<\_ACAWK || 6925 + BEGIN { 4394 6926 _ACEOF 4395 - cat >>$CONFIG_STATUS <<\_ACEOF 4396 - for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 4397 - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 4398 - case $ac_file in 4399 - - | *:- | *:-:* ) # input from stdin 4400 - cat >$tmp/stdin 4401 - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 4402 - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 4403 - *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 4404 - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 4405 - * ) ac_file_in=$ac_file.in ;; 6927 + 6928 + # Transform confdefs.h into an awk script `defines.awk', embedded as 6929 + # here-document in config.status, that substitutes the proper values into 6930 + # config.h.in to produce config.h. 6931 + 6932 + # Create a delimiter string that does not exist in confdefs.h, to ease 6933 + # handling of long lines. 6934 + ac_delim='%!_!# ' 6935 + for ac_last_try in false false :; do 6936 + ac_t=`sed -n "/$ac_delim/p" confdefs.h` 6937 + if test -z "$ac_t"; then 6938 + break 6939 + elif $ac_last_try; then 6940 + { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 6941 + $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 6942 + { (exit 1); exit 1; }; } 6943 + else 6944 + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 6945 + fi 6946 + done 6947 + 6948 + # For the awk script, D is an array of macro values keyed by name, 6949 + # likewise P contains macro parameters if any. Preserve backslash 6950 + # newline sequences. 6951 + 6952 + ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 6953 + sed -n ' 6954 + s/.\{148\}/&'"$ac_delim"'/g 6955 + t rset 6956 + :rset 6957 + s/^[ ]*#[ ]*define[ ][ ]*/ / 6958 + t def 6959 + d 6960 + :def 6961 + s/\\$// 6962 + t bsnl 6963 + s/["\\]/\\&/g 6964 + s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 6965 + D["\1"]=" \3"/p 6966 + s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 6967 + d 6968 + :bsnl 6969 + s/["\\]/\\&/g 6970 + s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 6971 + D["\1"]=" \3\\\\\\n"\\/p 6972 + t cont 6973 + s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 6974 + t cont 6975 + d 6976 + :cont 6977 + n 6978 + s/.\{148\}/&'"$ac_delim"'/g 6979 + t clear 6980 + :clear 6981 + s/\\$// 6982 + t bsnlc 6983 + s/["\\]/\\&/g; s/^/"/; s/$/"/p 6984 + d 6985 + :bsnlc 6986 + s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 6987 + b cont 6988 + ' <confdefs.h | sed ' 6989 + s/'"$ac_delim"'/"\\\ 6990 + "/g' >>$CONFIG_STATUS || ac_write_fail=1 6991 + 6992 + cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6993 + for (key in D) D_is_set[key] = 1 6994 + FS = "" 6995 + } 6996 + /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 6997 + line = \$ 0 6998 + split(line, arg, " ") 6999 + if (arg[1] == "#") { 7000 + defundef = arg[2] 7001 + mac1 = arg[3] 7002 + } else { 7003 + defundef = substr(arg[1], 2) 7004 + mac1 = arg[2] 7005 + } 7006 + split(mac1, mac2, "(") #) 7007 + macro = mac2[1] 7008 + if (D_is_set[macro]) { 7009 + # Preserve the white space surrounding the "#". 7010 + prefix = substr(line, 1, index(line, defundef) - 1) 7011 + print prefix "define", macro P[macro] D[macro] 7012 + next 7013 + } else { 7014 + # Replace #undef with comments. This is necessary, for example, 7015 + # in the case of _POSIX_SOURCE, which is predefined and required 7016 + # on some systems where configure will not decide to define it. 7017 + if (defundef == "undef") { 7018 + print "/*", line, "*/" 7019 + next 7020 + } 7021 + } 7022 + } 7023 + { print } 7024 + _ACAWK 7025 + _ACEOF 7026 + cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7027 + { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 7028 + $as_echo "$as_me: error: could not setup config headers machinery" >&2;} 7029 + { (exit 1); exit 1; }; } 7030 + fi # test -n "$CONFIG_HEADERS" 7031 + 7032 + 7033 + eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 7034 + shift 7035 + for ac_tag 7036 + do 7037 + case $ac_tag in 7038 + :[FHLC]) ac_mode=$ac_tag; continue;; 4406 7039 esac 7040 + case $ac_mode$ac_tag in 7041 + :[FHL]*:*);; 7042 + :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 7043 + $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;} 7044 + { (exit 1); exit 1; }; };; 7045 + :[FH]-) ac_tag=-:-;; 7046 + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 7047 + esac 7048 + ac_save_IFS=$IFS 7049 + IFS=: 7050 + set x $ac_tag 7051 + IFS=$ac_save_IFS 7052 + shift 7053 + ac_file=$1 7054 + shift 4407 7055 4408 - # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 4409 - ac_dir=`(dirname "$ac_file") 2>/dev/null || 7056 + case $ac_mode in 7057 + :L) ac_source=$1;; 7058 + :[FH]) 7059 + ac_file_inputs= 7060 + for ac_f 7061 + do 7062 + case $ac_f in 7063 + -) ac_f="$tmp/stdin";; 7064 + *) # Look for the file first in the build tree, then in the source tree 7065 + # (if the path is not absolute). The absolute path cannot be DOS-style, 7066 + # because $ac_f cannot contain `:'. 7067 + test -f "$ac_f" || 7068 + case $ac_f in 7069 + [\\/$]*) false;; 7070 + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 7071 + esac || 7072 + { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 7073 + $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 7074 + { (exit 1); exit 1; }; };; 7075 + esac 7076 + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 7077 + ac_file_inputs="$ac_file_inputs '$ac_f'" 7078 + done 7079 + 7080 + # Let's still pretend it is `configure' which instantiates (i.e., don't 7081 + # use $as_me), people would be surprised to read: 7082 + # /* config.h. Generated by config.status. */ 7083 + configure_input='Generated from '` 7084 + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 7085 + `' by configure.' 7086 + if test x"$ac_file" != x-; then 7087 + configure_input="$ac_file. $configure_input" 7088 + { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 7089 + $as_echo "$as_me: creating $ac_file" >&6;} 7090 + fi 7091 + # Neutralize special characters interpreted by sed in replacement strings. 7092 + case $configure_input in #( 7093 + *\&* | *\|* | *\\* ) 7094 + ac_sed_conf_input=`$as_echo "$configure_input" | 7095 + sed 's/[\\\\&|]/\\\\&/g'`;; #( 7096 + *) ac_sed_conf_input=$configure_input;; 7097 + esac 7098 + 7099 + case $ac_tag in 7100 + *:-:* | *:-) cat >"$tmp/stdin" \ 7101 + || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 7102 + $as_echo "$as_me: error: could not create $ac_file" >&2;} 7103 + { (exit 1); exit 1; }; } ;; 7104 + esac 7105 + ;; 7106 + esac 7107 + 7108 + ac_dir=`$as_dirname -- "$ac_file" || 4410 7109 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 4411 7110 X"$ac_file" : 'X\(//\)[^/]' \| \ 4412 7111 X"$ac_file" : 'X\(//\)$' \| \ 4413 - X"$ac_file" : 'X\(/\)' \| \ 4414 - . : '\(.\)' 2>/dev/null || 4415 - echo X"$ac_file" | 4416 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 4417 - /^X\(\/\/\)[^/].*/{ s//\1/; q; } 4418 - /^X\(\/\/\)$/{ s//\1/; q; } 4419 - /^X\(\/\).*/{ s//\1/; q; } 4420 - s/.*/./; q'` 4421 - { if $as_mkdir_p; then 4422 - mkdir -p "$ac_dir" 4423 - else 4424 - as_dir="$ac_dir" 7112 + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 7113 + $as_echo X"$ac_file" | 7114 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 7115 + s//\1/ 7116 + q 7117 + } 7118 + /^X\(\/\/\)[^/].*/{ 7119 + s//\1/ 7120 + q 7121 + } 7122 + /^X\(\/\/\)$/{ 7123 + s//\1/ 7124 + q 7125 + } 7126 + /^X\(\/\).*/{ 7127 + s//\1/ 7128 + q 7129 + } 7130 + s/.*/./; q'` 7131 + { as_dir="$ac_dir" 7132 + case $as_dir in #( 7133 + -*) as_dir=./$as_dir;; 7134 + esac 7135 + test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 4425 7136 as_dirs= 4426 - while test ! -d "$as_dir"; do 4427 - as_dirs="$as_dir $as_dirs" 4428 - as_dir=`(dirname "$as_dir") 2>/dev/null || 7137 + while :; do 7138 + case $as_dir in #( 7139 + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 7140 + *) as_qdir=$as_dir;; 7141 + esac 7142 + as_dirs="'$as_qdir' $as_dirs" 7143 + as_dir=`$as_dirname -- "$as_dir" || 4429 7144 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 4430 7145 X"$as_dir" : 'X\(//\)[^/]' \| \ 4431 7146 X"$as_dir" : 'X\(//\)$' \| \ 4432 - X"$as_dir" : 'X\(/\)' \| \ 4433 - . : '\(.\)' 2>/dev/null || 4434 - echo X"$as_dir" | 4435 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 4436 - /^X\(\/\/\)[^/].*/{ s//\1/; q; } 4437 - /^X\(\/\/\)$/{ s//\1/; q; } 4438 - /^X\(\/\).*/{ s//\1/; q; } 4439 - s/.*/./; q'` 7147 + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 7148 + $as_echo X"$as_dir" | 7149 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 7150 + s//\1/ 7151 + q 7152 + } 7153 + /^X\(\/\/\)[^/].*/{ 7154 + s//\1/ 7155 + q 7156 + } 7157 + /^X\(\/\/\)$/{ 7158 + s//\1/ 7159 + q 7160 + } 7161 + /^X\(\/\).*/{ 7162 + s//\1/ 7163 + q 7164 + } 7165 + s/.*/./; q'` 7166 + test -d "$as_dir" && break 4440 7167 done 4441 - test ! -n "$as_dirs" || mkdir $as_dirs 4442 - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 4443 - echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 7168 + test -z "$as_dirs" || eval "mkdir $as_dirs" 7169 + } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 7170 + $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 4444 7171 { (exit 1); exit 1; }; }; } 4445 - 4446 7172 ac_builddir=. 4447 7173 4448 - if test "$ac_dir" != .; then 4449 - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 4450 - # A "../" for each directory in $ac_dir_suffix. 4451 - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 4452 - else 4453 - ac_dir_suffix= ac_top_builddir= 4454 - fi 7174 + case "$ac_dir" in 7175 + .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 7176 + *) 7177 + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 7178 + # A ".." for each directory in $ac_dir_suffix. 7179 + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 7180 + case $ac_top_builddir_sub in 7181 + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 7182 + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 7183 + esac ;; 7184 + esac 7185 + ac_abs_top_builddir=$ac_pwd 7186 + ac_abs_builddir=$ac_pwd$ac_dir_suffix 7187 + # for backward compatibility: 7188 + ac_top_builddir=$ac_top_build_prefix 4455 7189 4456 7190 case $srcdir in 4457 - .) # No --srcdir option. We are building in place. 7191 + .) # We are building in place. 4458 7192 ac_srcdir=. 4459 - if test -z "$ac_top_builddir"; then 4460 - ac_top_srcdir=. 4461 - else 4462 - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 4463 - fi ;; 4464 - [\\/]* | ?:[\\/]* ) # Absolute path. 7193 + ac_top_srcdir=$ac_top_builddir_sub 7194 + ac_abs_top_srcdir=$ac_pwd ;; 7195 + [\\/]* | ?:[\\/]* ) # Absolute name. 4465 7196 ac_srcdir=$srcdir$ac_dir_suffix; 4466 - ac_top_srcdir=$srcdir ;; 4467 - *) # Relative path. 4468 - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 4469 - ac_top_srcdir=$ac_top_builddir$srcdir ;; 7197 + ac_top_srcdir=$srcdir 7198 + ac_abs_top_srcdir=$srcdir ;; 7199 + *) # Relative name. 7200 + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 7201 + ac_top_srcdir=$ac_top_build_prefix$srcdir 7202 + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 4470 7203 esac 7204 + ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 4471 7205 4472 - # Do not use `cd foo && pwd` to compute absolute paths, because 4473 - # the directories may not exist. 4474 - case `pwd` in 4475 - .) ac_abs_builddir="$ac_dir";; 4476 - *) 4477 - case "$ac_dir" in 4478 - .) ac_abs_builddir=`pwd`;; 4479 - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 4480 - *) ac_abs_builddir=`pwd`/"$ac_dir";; 4481 - esac;; 4482 - esac 4483 - case $ac_abs_builddir in 4484 - .) ac_abs_top_builddir=${ac_top_builddir}.;; 4485 - *) 4486 - case ${ac_top_builddir}. in 4487 - .) ac_abs_top_builddir=$ac_abs_builddir;; 4488 - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 4489 - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 4490 - esac;; 4491 - esac 4492 - case $ac_abs_builddir in 4493 - .) ac_abs_srcdir=$ac_srcdir;; 4494 - *) 4495 - case $ac_srcdir in 4496 - .) ac_abs_srcdir=$ac_abs_builddir;; 4497 - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 4498 - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 4499 - esac;; 4500 - esac 4501 - case $ac_abs_builddir in 4502 - .) ac_abs_top_srcdir=$ac_top_srcdir;; 4503 - *) 4504 - case $ac_top_srcdir in 4505 - .) ac_abs_top_srcdir=$ac_abs_builddir;; 4506 - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 4507 - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 4508 - esac;; 4509 - esac 4510 7206 7207 + case $ac_mode in 7208 + :F) 7209 + # 7210 + # CONFIG_FILE 7211 + # 4511 7212 4512 7213 case $INSTALL in 4513 7214 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 4514 - *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 7215 + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 4515 7216 esac 7217 + _ACEOF 4516 7218 4517 - if test x"$ac_file" != x-; then 4518 - { echo "$as_me:$LINENO: creating $ac_file" >&5 4519 - echo "$as_me: creating $ac_file" >&6;} 4520 - rm -f "$ac_file" 4521 - fi 4522 - # Let's still pretend it is `configure' which instantiates (i.e., don't 4523 - # use $as_me), people would be surprised to read: 4524 - # /* config.h. Generated by config.status. */ 4525 - if test x"$ac_file" = x-; then 4526 - configure_input= 4527 - else 4528 - configure_input="$ac_file. " 4529 - fi 4530 - configure_input=$configure_input"Generated from `echo $ac_file_in | 4531 - sed 's,.*/,,'` by configure." 7219 + cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7220 + # If the template does not know about datarootdir, expand it. 7221 + # FIXME: This hack should be removed a few years after 2.60. 7222 + ac_datarootdir_hack=; ac_datarootdir_seen= 4532 7223 4533 - # First look for the input files in the build tree, otherwise in the 4534 - # src tree. 4535 - ac_file_inputs=`IFS=: 4536 - for f in $ac_file_in; do 4537 - case $f in 4538 - -) echo $tmp/stdin ;; 4539 - [\\/$]*) 4540 - # Absolute (can't be DOS-style, as IFS=:) 4541 - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 4542 - echo "$as_me: error: cannot find input file: $f" >&2;} 4543 - { (exit 1); exit 1; }; } 4544 - echo "$f";; 4545 - *) # Relative 4546 - if test -f "$f"; then 4547 - # Build tree 4548 - echo "$f" 4549 - elif test -f "$srcdir/$f"; then 4550 - # Source tree 4551 - echo "$srcdir/$f" 4552 - else 4553 - # /dev/null tree 4554 - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 4555 - echo "$as_me: error: cannot find input file: $f" >&2;} 4556 - { (exit 1); exit 1; }; } 4557 - fi;; 4558 - esac 4559 - done` || { (exit 1); exit 1; } 7224 + ac_sed_dataroot=' 7225 + /datarootdir/ { 7226 + p 7227 + q 7228 + } 7229 + /@datadir@/p 7230 + /@docdir@/p 7231 + /@infodir@/p 7232 + /@localedir@/p 7233 + /@mandir@/p 7234 + ' 7235 + case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 7236 + *datarootdir*) ac_datarootdir_seen=yes;; 7237 + *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 7238 + { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 7239 + $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 4560 7240 _ACEOF 4561 - cat >>$CONFIG_STATUS <<_ACEOF 4562 - sed "$ac_vpsub 7241 + cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7242 + ac_datarootdir_hack=' 7243 + s&@datadir@&$datadir&g 7244 + s&@docdir@&$docdir&g 7245 + s&@infodir@&$infodir&g 7246 + s&@localedir@&$localedir&g 7247 + s&@mandir@&$mandir&g 7248 + s&\\\${datarootdir}&$datarootdir&g' ;; 7249 + esac 7250 + _ACEOF 7251 + 7252 + # Neutralize VPATH when `$srcdir' = `.'. 7253 + # Shell code in configure.ac might set extrasub. 7254 + # FIXME: do we really want to maintain this feature? 7255 + cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7256 + ac_sed_extra="$ac_vpsub 4563 7257 $extrasub 4564 7258 _ACEOF 4565 - cat >>$CONFIG_STATUS <<\_ACEOF 7259 + cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 4566 7260 :t 4567 7261 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 4568 - s,@configure_input@,$configure_input,;t t 4569 - s,@srcdir@,$ac_srcdir,;t t 4570 - s,@abs_srcdir@,$ac_abs_srcdir,;t t 4571 - s,@top_srcdir@,$ac_top_srcdir,;t t 4572 - s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 4573 - s,@builddir@,$ac_builddir,;t t 4574 - s,@abs_builddir@,$ac_abs_builddir,;t t 4575 - s,@top_builddir@,$ac_top_builddir,;t t 4576 - s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 4577 - s,@INSTALL@,$ac_INSTALL,;t t 4578 - " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 4579 - rm -f $tmp/stdin 4580 - if test x"$ac_file" != x-; then 4581 - mv $tmp/out $ac_file 4582 - else 4583 - cat $tmp/out 4584 - rm -f $tmp/out 4585 - fi 4586 - 4587 - done 4588 - _ACEOF 4589 - cat >>$CONFIG_STATUS <<\_ACEOF 4590 - 4591 - # 4592 - # CONFIG_HEADER section. 4593 - # 7262 + s|@configure_input@|$ac_sed_conf_input|;t t 7263 + s&@top_builddir@&$ac_top_builddir_sub&;t t 7264 + s&@top_build_prefix@&$ac_top_build_prefix&;t t 7265 + s&@srcdir@&$ac_srcdir&;t t 7266 + s&@abs_srcdir@&$ac_abs_srcdir&;t t 7267 + s&@top_srcdir@&$ac_top_srcdir&;t t 7268 + s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 7269 + s&@builddir@&$ac_builddir&;t t 7270 + s&@abs_builddir@&$ac_abs_builddir&;t t 7271 + s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 7272 + s&@INSTALL@&$ac_INSTALL&;t t 7273 + $ac_datarootdir_hack 7274 + " 7275 + eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 7276 + || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 7277 + $as_echo "$as_me: error: could not create $ac_file" >&2;} 7278 + { (exit 1); exit 1; }; } 4594 7279 4595 - # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 4596 - # NAME is the cpp macro being defined and VALUE is the value it is being given. 4597 - # 4598 - # ac_d sets the value in "#define NAME VALUE" lines. 4599 - ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 4600 - ac_dB='[ ].*$,\1#\2' 4601 - ac_dC=' ' 4602 - ac_dD=',;t' 4603 - # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 4604 - ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 4605 - ac_uB='$,\1#\2define\3' 4606 - ac_uC=' ' 4607 - ac_uD=',;t' 7280 + test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 7281 + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 7282 + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 7283 + { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 7284 + which seems to be undefined. Please make sure it is defined." >&5 7285 + $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 7286 + which seems to be undefined. Please make sure it is defined." >&2;} 4608 7287 4609 - for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 4610 - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 7288 + rm -f "$tmp/stdin" 4611 7289 case $ac_file in 4612 - - | *:- | *:-:* ) # input from stdin 4613 - cat >$tmp/stdin 4614 - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 4615 - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 4616 - *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 4617 - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 4618 - * ) ac_file_in=$ac_file.in ;; 4619 - esac 4620 - 4621 - test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 4622 - echo "$as_me: creating $ac_file" >&6;} 4623 - 4624 - # First look for the input files in the build tree, otherwise in the 4625 - # src tree. 4626 - ac_file_inputs=`IFS=: 4627 - for f in $ac_file_in; do 4628 - case $f in 4629 - -) echo $tmp/stdin ;; 4630 - [\\/$]*) 4631 - # Absolute (can't be DOS-style, as IFS=:) 4632 - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 4633 - echo "$as_me: error: cannot find input file: $f" >&2;} 7290 + -) cat "$tmp/out" && rm -f "$tmp/out";; 7291 + *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 7292 + esac \ 7293 + || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 7294 + $as_echo "$as_me: error: could not create $ac_file" >&2;} 4634 7295 { (exit 1); exit 1; }; } 4635 - # Do quote $f, to prevent DOS paths from being IFS'd. 4636 - echo "$f";; 4637 - *) # Relative 4638 - if test -f "$f"; then 4639 - # Build tree 4640 - echo "$f" 4641 - elif test -f "$srcdir/$f"; then 4642 - # Source tree 4643 - echo "$srcdir/$f" 4644 - else 4645 - # /dev/null tree 4646 - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 4647 - echo "$as_me: error: cannot find input file: $f" >&2;} 4648 - { (exit 1); exit 1; }; } 4649 - fi;; 4650 - esac 4651 - done` || { (exit 1); exit 1; } 4652 - # Remove the trailing spaces. 4653 - sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 4654 - 4655 - _ACEOF 4656 - 4657 - # Transform confdefs.h into two sed scripts, `conftest.defines' and 4658 - # `conftest.undefs', that substitutes the proper values into 4659 - # config.h.in to produce config.h. The first handles `#define' 4660 - # templates, and the second `#undef' templates. 4661 - # And first: Protect against being on the right side of a sed subst in 4662 - # config.status. Protect against being in an unquoted here document 4663 - # in config.status. 4664 - rm -f conftest.defines conftest.undefs 4665 - # Using a here document instead of a string reduces the quoting nightmare. 4666 - # Putting comments in sed scripts is not portable. 4667 - # 4668 - # `end' is used to avoid that the second main sed command (meant for 4669 - # 0-ary CPP macros) applies to n-ary macro definitions. 4670 - # See the Autoconf documentation for `clear'. 4671 - cat >confdef2sed.sed <<\_ACEOF 4672 - s/[\\&,]/\\&/g 4673 - s,[\\$`],\\&,g 4674 - t clear 4675 - : clear 4676 - s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 4677 - t end 4678 - s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 4679 - : end 4680 - _ACEOF 4681 - # If some macros were called several times there might be several times 4682 - # the same #defines, which is useless. Nevertheless, we may not want to 4683 - # sort them, since we want the *last* AC-DEFINE to be honored. 4684 - uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 4685 - sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 4686 - rm -f confdef2sed.sed 4687 - 4688 - # This sed command replaces #undef with comments. This is necessary, for 4689 - # example, in the case of _POSIX_SOURCE, which is predefined and required 4690 - # on some systems where configure will not decide to define it. 4691 - cat >>conftest.undefs <<\_ACEOF 4692 - s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 4693 - _ACEOF 4694 - 4695 - # Break up conftest.defines because some shells have a limit on the size 4696 - # of here documents, and old seds have small limits too (100 cmds). 4697 - echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 4698 - echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 4699 - echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 4700 - echo ' :' >>$CONFIG_STATUS 4701 - rm -f conftest.tail 4702 - while grep . conftest.defines >/dev/null 4703 - do 4704 - # Write a limited-size here document to $tmp/defines.sed. 4705 - echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 4706 - # Speed up: don't consider the non `#define' lines. 4707 - echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 4708 - # Work around the forget-to-reset-the-flag bug. 4709 - echo 't clr' >>$CONFIG_STATUS 4710 - echo ': clr' >>$CONFIG_STATUS 4711 - sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 4712 - echo 'CEOF 4713 - sed -f $tmp/defines.sed $tmp/in >$tmp/out 4714 - rm -f $tmp/in 4715 - mv $tmp/out $tmp/in 4716 - ' >>$CONFIG_STATUS 4717 - sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 4718 - rm -f conftest.defines 4719 - mv conftest.tail conftest.defines 4720 - done 4721 - rm -f conftest.defines 4722 - echo ' fi # grep' >>$CONFIG_STATUS 4723 - echo >>$CONFIG_STATUS 4724 - 4725 - # Break up conftest.undefs because some shells have a limit on the size 4726 - # of here documents, and old seds have small limits too (100 cmds). 4727 - echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 4728 - rm -f conftest.tail 4729 - while grep . conftest.undefs >/dev/null 4730 - do 4731 - # Write a limited-size here document to $tmp/undefs.sed. 4732 - echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 4733 - # Speed up: don't consider the non `#undef' 4734 - echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 4735 - # Work around the forget-to-reset-the-flag bug. 4736 - echo 't clr' >>$CONFIG_STATUS 4737 - echo ': clr' >>$CONFIG_STATUS 4738 - sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 4739 - echo 'CEOF 4740 - sed -f $tmp/undefs.sed $tmp/in >$tmp/out 4741 - rm -f $tmp/in 4742 - mv $tmp/out $tmp/in 4743 - ' >>$CONFIG_STATUS 4744 - sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 4745 - rm -f conftest.undefs 4746 - mv conftest.tail conftest.undefs 4747 - done 4748 - rm -f conftest.undefs 4749 - 4750 - cat >>$CONFIG_STATUS <<\_ACEOF 4751 - # Let's still pretend it is `configure' which instantiates (i.e., don't 4752 - # use $as_me), people would be surprised to read: 4753 - # /* config.h. Generated by config.status. */ 4754 - if test x"$ac_file" = x-; then 4755 - echo "/* Generated by configure. */" >$tmp/config.h 4756 - else 4757 - echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 4758 - fi 4759 - cat $tmp/in >>$tmp/config.h 4760 - rm -f $tmp/in 7296 + ;; 7297 + :H) 7298 + # 7299 + # CONFIG_HEADER 7300 + # 4761 7301 if test x"$ac_file" != x-; then 4762 - if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 4763 - { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 4764 - echo "$as_me: $ac_file is unchanged" >&6;} 7302 + { 7303 + $as_echo "/* $configure_input */" \ 7304 + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 7305 + } >"$tmp/config.h" \ 7306 + || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 7307 + $as_echo "$as_me: error: could not create $ac_file" >&2;} 7308 + { (exit 1); exit 1; }; } 7309 + if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 7310 + { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 7311 + $as_echo "$as_me: $ac_file is unchanged" >&6;} 4765 7312 else 4766 - ac_dir=`(dirname "$ac_file") 2>/dev/null || 4767 - $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 4768 - X"$ac_file" : 'X\(//\)[^/]' \| \ 4769 - X"$ac_file" : 'X\(//\)$' \| \ 4770 - X"$ac_file" : 'X\(/\)' \| \ 4771 - . : '\(.\)' 2>/dev/null || 4772 - echo X"$ac_file" | 4773 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 4774 - /^X\(\/\/\)[^/].*/{ s//\1/; q; } 4775 - /^X\(\/\/\)$/{ s//\1/; q; } 4776 - /^X\(\/\).*/{ s//\1/; q; } 4777 - s/.*/./; q'` 4778 - { if $as_mkdir_p; then 4779 - mkdir -p "$ac_dir" 4780 - else 4781 - as_dir="$ac_dir" 4782 - as_dirs= 4783 - while test ! -d "$as_dir"; do 4784 - as_dirs="$as_dir $as_dirs" 4785 - as_dir=`(dirname "$as_dir") 2>/dev/null || 4786 - $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 4787 - X"$as_dir" : 'X\(//\)[^/]' \| \ 4788 - X"$as_dir" : 'X\(//\)$' \| \ 4789 - X"$as_dir" : 'X\(/\)' \| \ 4790 - . : '\(.\)' 2>/dev/null || 4791 - echo X"$as_dir" | 4792 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 4793 - /^X\(\/\/\)[^/].*/{ s//\1/; q; } 4794 - /^X\(\/\/\)$/{ s//\1/; q; } 4795 - /^X\(\/\).*/{ s//\1/; q; } 4796 - s/.*/./; q'` 4797 - done 4798 - test ! -n "$as_dirs" || mkdir $as_dirs 4799 - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 4800 - echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 4801 - { (exit 1); exit 1; }; }; } 4802 - 4803 - rm -f $ac_file 4804 - mv $tmp/config.h $ac_file 7313 + rm -f "$ac_file" 7314 + mv "$tmp/config.h" "$ac_file" \ 7315 + || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 7316 + $as_echo "$as_me: error: could not create $ac_file" >&2;} 7317 + { (exit 1); exit 1; }; } 4805 7318 fi 4806 7319 else 4807 - cat $tmp/config.h 4808 - rm -f $tmp/config.h 7320 + $as_echo "/* $configure_input */" \ 7321 + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 7322 + || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 7323 + $as_echo "$as_me: error: could not create -" >&2;} 7324 + { (exit 1); exit 1; }; } 4809 7325 fi 4810 - # Compute $ac_file's index in $config_headers. 7326 + # Compute "$ac_file"'s index in $config_headers. 4811 7327 _am_stamp_count=1 4812 7328 for _am_header in $config_headers :; do 4813 7329 case $_am_header in 4814 - $ac_file | $ac_file:* ) 7330 + "$ac_file" | "$ac_file":* ) 4815 7331 break ;; 4816 7332 * ) 4817 7333 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 4818 7334 esac 4819 7335 done 4820 - echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || 4821 - $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 4822 - X$ac_file : 'X\(//\)[^/]' \| \ 4823 - X$ac_file : 'X\(//\)$' \| \ 4824 - X$ac_file : 'X\(/\)' \| \ 4825 - . : '\(.\)' 2>/dev/null || 4826 - echo X$ac_file | 4827 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 4828 - /^X\(\/\/\)[^/].*/{ s//\1/; q; } 4829 - /^X\(\/\/\)$/{ s//\1/; q; } 4830 - /^X\(\/\).*/{ s//\1/; q; } 4831 - s/.*/./; q'`/stamp-h$_am_stamp_count 4832 - done 4833 - _ACEOF 4834 - cat >>$CONFIG_STATUS <<\_ACEOF 4835 - 4836 - # 4837 - # CONFIG_COMMANDS section. 4838 - # 4839 - for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 4840 - ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 4841 - ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 4842 - ac_dir=`(dirname "$ac_dest") 2>/dev/null || 4843 - $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 4844 - X"$ac_dest" : 'X\(//\)[^/]' \| \ 4845 - X"$ac_dest" : 'X\(//\)$' \| \ 4846 - X"$ac_dest" : 'X\(/\)' \| \ 4847 - . : '\(.\)' 2>/dev/null || 4848 - echo X"$ac_dest" | 4849 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 4850 - /^X\(\/\/\)[^/].*/{ s//\1/; q; } 4851 - /^X\(\/\/\)$/{ s//\1/; q; } 4852 - /^X\(\/\).*/{ s//\1/; q; } 4853 - s/.*/./; q'` 4854 - { if $as_mkdir_p; then 4855 - mkdir -p "$ac_dir" 4856 - else 4857 - as_dir="$ac_dir" 4858 - as_dirs= 4859 - while test ! -d "$as_dir"; do 4860 - as_dirs="$as_dir $as_dirs" 4861 - as_dir=`(dirname "$as_dir") 2>/dev/null || 4862 - $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 4863 - X"$as_dir" : 'X\(//\)[^/]' \| \ 4864 - X"$as_dir" : 'X\(//\)$' \| \ 4865 - X"$as_dir" : 'X\(/\)' \| \ 4866 - . : '\(.\)' 2>/dev/null || 4867 - echo X"$as_dir" | 4868 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 4869 - /^X\(\/\/\)[^/].*/{ s//\1/; q; } 4870 - /^X\(\/\/\)$/{ s//\1/; q; } 4871 - /^X\(\/\).*/{ s//\1/; q; } 4872 - s/.*/./; q'` 4873 - done 4874 - test ! -n "$as_dirs" || mkdir $as_dirs 4875 - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 4876 - echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 4877 - { (exit 1); exit 1; }; }; } 4878 - 4879 - ac_builddir=. 4880 - 4881 - if test "$ac_dir" != .; then 4882 - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 4883 - # A "../" for each directory in $ac_dir_suffix. 4884 - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 4885 - else 4886 - ac_dir_suffix= ac_top_builddir= 4887 - fi 4888 - 4889 - case $srcdir in 4890 - .) # No --srcdir option. We are building in place. 4891 - ac_srcdir=. 4892 - if test -z "$ac_top_builddir"; then 4893 - ac_top_srcdir=. 4894 - else 4895 - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 4896 - fi ;; 4897 - [\\/]* | ?:[\\/]* ) # Absolute path. 4898 - ac_srcdir=$srcdir$ac_dir_suffix; 4899 - ac_top_srcdir=$srcdir ;; 4900 - *) # Relative path. 4901 - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 4902 - ac_top_srcdir=$ac_top_builddir$srcdir ;; 4903 - esac 7336 + echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" || 7337 + $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7338 + X"$ac_file" : 'X\(//\)[^/]' \| \ 7339 + X"$ac_file" : 'X\(//\)$' \| \ 7340 + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 7341 + $as_echo X"$ac_file" | 7342 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 7343 + s//\1/ 7344 + q 7345 + } 7346 + /^X\(\/\/\)[^/].*/{ 7347 + s//\1/ 7348 + q 7349 + } 7350 + /^X\(\/\/\)$/{ 7351 + s//\1/ 7352 + q 7353 + } 7354 + /^X\(\/\).*/{ 7355 + s//\1/ 7356 + q 7357 + } 7358 + s/.*/./; q'`/stamp-h$_am_stamp_count 7359 + ;; 4904 7360 4905 - # Do not use `cd foo && pwd` to compute absolute paths, because 4906 - # the directories may not exist. 4907 - case `pwd` in 4908 - .) ac_abs_builddir="$ac_dir";; 4909 - *) 4910 - case "$ac_dir" in 4911 - .) ac_abs_builddir=`pwd`;; 4912 - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 4913 - *) ac_abs_builddir=`pwd`/"$ac_dir";; 4914 - esac;; 4915 - esac 4916 - case $ac_abs_builddir in 4917 - .) ac_abs_top_builddir=${ac_top_builddir}.;; 4918 - *) 4919 - case ${ac_top_builddir}. in 4920 - .) ac_abs_top_builddir=$ac_abs_builddir;; 4921 - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 4922 - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 4923 - esac;; 4924 - esac 4925 - case $ac_abs_builddir in 4926 - .) ac_abs_srcdir=$ac_srcdir;; 4927 - *) 4928 - case $ac_srcdir in 4929 - .) ac_abs_srcdir=$ac_abs_builddir;; 4930 - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 4931 - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 4932 - esac;; 4933 - esac 4934 - case $ac_abs_builddir in 4935 - .) ac_abs_top_srcdir=$ac_top_srcdir;; 4936 - *) 4937 - case $ac_top_srcdir in 4938 - .) ac_abs_top_srcdir=$ac_abs_builddir;; 4939 - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 4940 - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 4941 - esac;; 4942 - esac 7361 + :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 7362 + $as_echo "$as_me: executing $ac_file commands" >&6;} 7363 + ;; 7364 + esac 4943 7365 4944 7366 4945 - { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 4946 - echo "$as_me: executing $ac_dest commands" >&6;} 4947 - case $ac_dest in 4948 - depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 7367 + case $ac_file$ac_mode in 7368 + "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 4949 7369 # Strip MF so we end up with the name of the file. 4950 7370 mf=`echo "$mf" | sed -e 's/:.*$//'` 4951 7371 # Check whether this is an Automake generated Makefile or not. ··· 4955 7375 # each Makefile.in and add a new line on top of each file to say so. 4956 7376 # So let's grep whole file. 4957 7377 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 4958 - dirpart=`(dirname "$mf") 2>/dev/null || 7378 + dirpart=`$as_dirname -- "$mf" || 4959 7379 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 4960 7380 X"$mf" : 'X\(//\)[^/]' \| \ 4961 7381 X"$mf" : 'X\(//\)$' \| \ 4962 - X"$mf" : 'X\(/\)' \| \ 4963 - . : '\(.\)' 2>/dev/null || 4964 - echo X"$mf" | 4965 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 4966 - /^X\(\/\/\)[^/].*/{ s//\1/; q; } 4967 - /^X\(\/\/\)$/{ s//\1/; q; } 4968 - /^X\(\/\).*/{ s//\1/; q; } 4969 - s/.*/./; q'` 7382 + X"$mf" : 'X\(/\)' \| . 2>/dev/null || 7383 + $as_echo X"$mf" | 7384 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 7385 + s//\1/ 7386 + q 7387 + } 7388 + /^X\(\/\/\)[^/].*/{ 7389 + s//\1/ 7390 + q 7391 + } 7392 + /^X\(\/\/\)$/{ 7393 + s//\1/ 7394 + q 7395 + } 7396 + /^X\(\/\).*/{ 7397 + s//\1/ 7398 + q 7399 + } 7400 + s/.*/./; q'` 4970 7401 else 4971 7402 continue 4972 7403 fi ··· 4988 7419 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 4989 7420 # Make sure the directory exists. 4990 7421 test -f "$dirpart/$file" && continue 4991 - fdir=`(dirname "$file") 2>/dev/null || 7422 + fdir=`$as_dirname -- "$file" || 4992 7423 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 4993 7424 X"$file" : 'X\(//\)[^/]' \| \ 4994 7425 X"$file" : 'X\(//\)$' \| \ 4995 - X"$file" : 'X\(/\)' \| \ 4996 - . : '\(.\)' 2>/dev/null || 4997 - echo X"$file" | 4998 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 4999 - /^X\(\/\/\)[^/].*/{ s//\1/; q; } 5000 - /^X\(\/\/\)$/{ s//\1/; q; } 5001 - /^X\(\/\).*/{ s//\1/; q; } 5002 - s/.*/./; q'` 5003 - { if $as_mkdir_p; then 5004 - mkdir -p $dirpart/$fdir 5005 - else 5006 - as_dir=$dirpart/$fdir 7426 + X"$file" : 'X\(/\)' \| . 2>/dev/null || 7427 + $as_echo X"$file" | 7428 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 7429 + s//\1/ 7430 + q 7431 + } 7432 + /^X\(\/\/\)[^/].*/{ 7433 + s//\1/ 7434 + q 7435 + } 7436 + /^X\(\/\/\)$/{ 7437 + s//\1/ 7438 + q 7439 + } 7440 + /^X\(\/\).*/{ 7441 + s//\1/ 7442 + q 7443 + } 7444 + s/.*/./; q'` 7445 + { as_dir=$dirpart/$fdir 7446 + case $as_dir in #( 7447 + -*) as_dir=./$as_dir;; 7448 + esac 7449 + test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 5007 7450 as_dirs= 5008 - while test ! -d "$as_dir"; do 5009 - as_dirs="$as_dir $as_dirs" 5010 - as_dir=`(dirname "$as_dir") 2>/dev/null || 7451 + while :; do 7452 + case $as_dir in #( 7453 + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 7454 + *) as_qdir=$as_dir;; 7455 + esac 7456 + as_dirs="'$as_qdir' $as_dirs" 7457 + as_dir=`$as_dirname -- "$as_dir" || 5011 7458 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5012 7459 X"$as_dir" : 'X\(//\)[^/]' \| \ 5013 7460 X"$as_dir" : 'X\(//\)$' \| \ 5014 - X"$as_dir" : 'X\(/\)' \| \ 5015 - . : '\(.\)' 2>/dev/null || 5016 - echo X"$as_dir" | 5017 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 5018 - /^X\(\/\/\)[^/].*/{ s//\1/; q; } 5019 - /^X\(\/\/\)$/{ s//\1/; q; } 5020 - /^X\(\/\).*/{ s//\1/; q; } 5021 - s/.*/./; q'` 7461 + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 7462 + $as_echo X"$as_dir" | 7463 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 7464 + s//\1/ 7465 + q 7466 + } 7467 + /^X\(\/\/\)[^/].*/{ 7468 + s//\1/ 7469 + q 7470 + } 7471 + /^X\(\/\/\)$/{ 7472 + s//\1/ 7473 + q 7474 + } 7475 + /^X\(\/\).*/{ 7476 + s//\1/ 7477 + q 7478 + } 7479 + s/.*/./; q'` 7480 + test -d "$as_dir" && break 5022 7481 done 5023 - test ! -n "$as_dirs" || mkdir $as_dirs 5024 - fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 5025 - echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 7482 + test -z "$as_dirs" || eval "mkdir $as_dirs" 7483 + } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 7484 + $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 5026 7485 { (exit 1); exit 1; }; }; } 5027 - 5028 7486 # echo "creating $dirpart/$file" 5029 7487 echo '# dummy' > "$dirpart/$file" 5030 7488 done 5031 7489 done 5032 7490 ;; 7491 + 5033 7492 esac 5034 - done 5035 - _ACEOF 7493 + done # for ac_tag 5036 7494 5037 - cat >>$CONFIG_STATUS <<\_ACEOF 5038 7495 5039 7496 { (exit 0); exit 0; } 5040 7497 _ACEOF 5041 7498 chmod +x $CONFIG_STATUS 5042 7499 ac_clean_files=$ac_clean_files_save 7500 + 7501 + test $ac_write_fail = 0 || 7502 + { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 7503 + $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 7504 + { (exit 1); exit 1; }; } 5043 7505 5044 7506 5045 7507 # configure is writing to config.log, and then calls config.status. ··· 5061 7523 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 5062 7524 # would make configure fail if this is the last instruction. 5063 7525 $ac_cs_success || { (exit 1); exit 1; } 7526 + fi 7527 + if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 7528 + { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5 7529 + $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;} 5064 7530 fi 5065 7531
+15 -12
app/xmore/configure.ac
··· 23 23 24 24 AC_PREREQ([2.57]) 25 25 AC_INIT(xmore,[1.0.1], [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],xmore) 26 - AM_INIT_AUTOMAKE([dist-bzip2]) 26 + AM_INIT_AUTOMAKE([foreign dist-bzip2]) 27 27 AM_MAINTAINER_MODE 28 28 29 + # Require xorg-macros: XORG_DEFAULT_OPTIONS 30 + m4_ifndef([XORG_MACROS_VERSION], 31 + [m4_fatal([must install xorg-macros 1.3 or later before running autoconf/autogen])]) 32 + XORG_MACROS_VERSION(1.3) 33 + XORG_DEFAULT_OPTIONS 34 + 29 35 AM_CONFIG_HEADER(config.h) 30 36 31 37 AC_PROG_CC 38 + AM_PROG_CC_C_O 32 39 AC_PROG_INSTALL 33 40 41 + 34 42 # Checks for pkg-config packages 35 - XAW_CHECK_XPRINT_SUPPORT(XMORE) 36 - if test "x$xaw_use_xprint" = "xyes" ; then 37 - PKG_CHECK_MODULES(XPRINT_UTIL, xprintutil xp) 38 - 39 - XMORE_CFLAGS="$XMORE_CFLAGS $XPRINT_UTIL_CFLAGS" 40 - XMORE_LIBS="$XMORE_LIBS $XPRINT_UTIL_LIBS" 41 - fi 42 - 43 + PKG_CHECK_MODULES(XMORE, xaw7) 43 44 AC_SUBST(XMORE_CFLAGS) 44 45 AC_SUBST(XMORE_LIBS) 45 46 46 47 PKG_CHECK_MODULES(APPDEFS, xt) 47 - appdefaultdir=$(pkg-config --variable=appdefaultdir xt) 48 + xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` 49 + AC_ARG_WITH(appdefaultdir, 50 + AC_HELP_STRING([--with-appdefaultdir=<pathname>], 51 + [specify directory for app-defaults files (default is autodetected)]), 52 + [appdefaultdir="$withval"], [appdefaultdir="${xt_appdefaultdir}"]) 48 53 AC_SUBST(appdefaultdir) 49 54 50 - XORG_MANPAGE_SECTIONS 51 - XORG_RELEASE_VERSION 52 55 53 56 AC_OUTPUT([Makefile])
-158
app/xmore/mkinstalldirs
··· 1 - #! /bin/sh 2 - # mkinstalldirs --- make directory hierarchy 3 - 4 - scriptversion=2005-06-29.22 5 - 6 - # Original author: Noah Friedman <friedman@prep.ai.mit.edu> 7 - # Created: 1993-05-16 8 - # Public domain. 9 - # 10 - # This file is maintained in Automake, please report 11 - # bugs to <bug-automake@gnu.org> or send patches to 12 - # <automake-patches@gnu.org>. 13 - 14 - errstatus=0 15 - dirmode= 16 - 17 - usage="\ 18 - Usage: mkinstalldirs [-h] [--help] [--version] [-m MODE] DIR ... 19 - 20 - Create each directory DIR (with mode MODE, if specified), including all 21 - leading file name components. 22 - 23 - Report bugs to <bug-automake@gnu.org>." 24 - 25 - # process command line arguments 26 - while test $# -gt 0 ; do 27 - case $1 in 28 - -h | --help | --h*) # -h for help 29 - echo "$usage" 30 - exit $? 31 - ;; 32 - -m) # -m PERM arg 33 - shift 34 - test $# -eq 0 && { echo "$usage" 1>&2; exit 1; } 35 - dirmode=$1 36 - shift 37 - ;; 38 - --version) 39 - echo "$0 $scriptversion" 40 - exit $? 41 - ;; 42 - --) # stop option processing 43 - shift 44 - break 45 - ;; 46 - -*) # unknown option 47 - echo "$usage" 1>&2 48 - exit 1 49 - ;; 50 - *) # first non-opt arg 51 - break 52 - ;; 53 - esac 54 - done 55 - 56 - for file 57 - do 58 - if test -d "$file"; then 59 - shift 60 - else 61 - break 62 - fi 63 - done 64 - 65 - case $# in 66 - 0) exit 0 ;; 67 - esac 68 - 69 - # Solaris 8's mkdir -p isn't thread-safe. If you mkdir -p a/b and 70 - # mkdir -p a/c at the same time, both will detect that a is missing, 71 - # one will create a, then the other will try to create a and die with 72 - # a "File exists" error. This is a problem when calling mkinstalldirs 73 - # from a parallel make. We use --version in the probe to restrict 74 - # ourselves to GNU mkdir, which is thread-safe. 75 - case $dirmode in 76 - '') 77 - if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 78 - echo "mkdir -p -- $*" 79 - exec mkdir -p -- "$@" 80 - else 81 - # On NextStep and OpenStep, the `mkdir' command does not 82 - # recognize any option. It will interpret all options as 83 - # directories to create, and then abort because `.' already 84 - # exists. 85 - test -d ./-p && rmdir ./-p 86 - test -d ./--version && rmdir ./--version 87 - fi 88 - ;; 89 - *) 90 - if mkdir -m "$dirmode" -p --version . >/dev/null 2>&1 && 91 - test ! -d ./--version; then 92 - echo "mkdir -m $dirmode -p -- $*" 93 - exec mkdir -m "$dirmode" -p -- "$@" 94 - else 95 - # Clean up after NextStep and OpenStep mkdir. 96 - for d in ./-m ./-p ./--version "./$dirmode"; 97 - do 98 - test -d $d && rmdir $d 99 - done 100 - fi 101 - ;; 102 - esac 103 - 104 - for file 105 - do 106 - case $file in 107 - /*) pathcomp=/ ;; 108 - *) pathcomp= ;; 109 - esac 110 - oIFS=$IFS 111 - IFS=/ 112 - set fnord $file 113 - shift 114 - IFS=$oIFS 115 - 116 - for d 117 - do 118 - test "x$d" = x && continue 119 - 120 - pathcomp=$pathcomp$d 121 - case $pathcomp in 122 - -*) pathcomp=./$pathcomp ;; 123 - esac 124 - 125 - if test ! -d "$pathcomp"; then 126 - echo "mkdir $pathcomp" 127 - 128 - mkdir "$pathcomp" || lasterr=$? 129 - 130 - if test ! -d "$pathcomp"; then 131 - errstatus=$lasterr 132 - else 133 - if test ! -z "$dirmode"; then 134 - echo "chmod $dirmode $pathcomp" 135 - lasterr= 136 - chmod "$dirmode" "$pathcomp" || lasterr=$? 137 - 138 - if test ! -z "$lasterr"; then 139 - errstatus=$lasterr 140 - fi 141 - fi 142 - fi 143 - fi 144 - 145 - pathcomp=$pathcomp/ 146 - done 147 - done 148 - 149 - exit $errstatus 150 - 151 - # Local Variables: 152 - # mode: shell-script 153 - # sh-indentation: 2 154 - # eval: (add-hook 'write-file-hooks 'time-stamp) 155 - # time-stamp-start: "scriptversion=" 156 - # time-stamp-format: "%:y-%02m-%02d.%02H" 157 - # time-stamp-end: "$" 158 - # End:
-435
app/xmore/print.c
··· 1 - /* 2 - * $Xorg: print.c,v 1.1 2004/04/30 02:05:54 gisburn Exp $ 3 - * 4 - Copyright 2004 Roland Mainz <roland.mainz@nrubsig.org> 5 - 6 - Permission to use, copy, modify, distribute, and sell this software and its 7 - documentation for any purpose is hereby granted without fee, provided that 8 - the above copyright notice appear in all copies and that both that 9 - copyright notice and this permission notice appear in supporting 10 - documentation. 11 - 12 - The above copyright notice and this permission notice shall be included in 13 - all copies or substantial portions of the Software. 14 - 15 - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 - OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 19 - AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 - CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 - 22 - Except as contained in this notice, the name of The Open Group shall not be 23 - used in advertising or otherwise to promote the sale, use or other dealings 24 - in this Software without prior written authorization from The Open Group. 25 - * 26 - */ 27 - 28 - /* Turn a NULL pointer string into an empty string */ 29 - #define NULLSTR(x) (((x)!=NULL)?(x):("")) 30 - 31 - #define Error(x) { printf x ; exit(EXIT_FAILURE); } 32 - #define Assertion(expr, msg) { if (!(expr)) { Error msg } } 33 - #define Log(x) { if(True) printf x; } 34 - 35 - #ifdef XEDIT 36 - #include "xedit.h" 37 - #endif /* XEDIT */ 38 - #include "print.h" 39 - #include <X11/Xaw/Form.h> 40 - #include <X11/Xaw/Label.h> 41 - #include <X11/Xaw/AsciiText.h> 42 - #include <stdio.h> 43 - #include <stdlib.h> 44 - 45 - static Widget 46 - CreatePrintShell(Widget videoshell, 47 - Screen *pscreen, 48 - Visual *pvisual, 49 - String printshell_name, 50 - ArgList args, 51 - Cardinal numargs) 52 - { 53 - String videoname, 54 - videoclass; 55 - Widget pappshell, 56 - printshell; 57 - Display *pdpy = XDisplayOfScreen(pscreen); 58 - int dummyc = 0; 59 - String dummys = ""; 60 - Cardinal shell_n; 61 - Arg shell_args[5]; 62 - 63 - XtGetApplicationNameAndClass(XtDisplay(videoshell), 64 - &videoname, &videoclass); 65 - 66 - /* XXX: Why is the |dummyc|&&|dummys| stuff needed here ? */ 67 - XtDisplayInitialize(XtWidgetToApplicationContext(videoshell), pdpy, 68 - videoname, videoclass, 69 - NULL, 0, 70 - &dummyc, &dummys); 71 - 72 - shell_n = 0; 73 - XtSetArg(shell_args[shell_n], XtNscreen, pscreen); shell_n++; 74 - if (pvisual) { 75 - XtSetArg(shell_args[shell_n], XtNvisual, pvisual); shell_n++; 76 - } 77 - pappshell = XtAppCreateShell(videoname, videoclass, 78 - applicationShellWidgetClass, 79 - pdpy, 80 - shell_args, shell_n); 81 - printshell = XtCreatePopupShell(printshell_name, 82 - xawPrintShellWidgetClass, 83 - pappshell, args, numargs); 84 - 85 - 86 - /* we're mapping/unmapping at start/end page time */ 87 - XtSetMappedWhenManaged(printshell, False); 88 - 89 - /* We realise the widget when we're done with building the widget tree... */ 90 - 91 - return printshell; 92 - } 93 - 94 - typedef struct 95 - { 96 - const char *programname; 97 - Widget toplevel; 98 - Bool isPrinting; 99 - Widget printshell; 100 - struct 101 - { 102 - Widget form; 103 - Widget pageheaderlabel; 104 - Widget text; 105 - } content; /* content to print */ 106 - int numpages; 107 - Display *pdpy; 108 - Screen *pscreen; 109 - XPContext pcontext; 110 - XtCallbackProc pdpyDestroyCallback; 111 - void *printtofile_handle; 112 - const char *jobtitle; 113 - } AppPrintData; 114 - 115 - static AppPrintData apdx; 116 - static AppPrintData *apd = &apdx; 117 - 118 - /* Count pages in a text widget 119 - * WARNING: This will reset the current position of the text widget 120 - * back to the beginning */ 121 - static 122 - long CountPages(Widget textWidget) 123 - { 124 - long numpages = 0; 125 - 126 - XawTextPosition prevpagepos = -1, 127 - currpos = 0; 128 - 129 - /* Move to the top of the file... */ 130 - XtCallActionProc(textWidget, "beginning-of-file", NULL, NULL, 0); 131 - 132 - /* ... count pages ...*/ 133 - do 134 - { 135 - prevpagepos = XawTextTopPosition(textWidget); 136 - XtCallActionProc(textWidget, "next-page", NULL, NULL, 0); 137 - currpos = XawTextTopPosition(textWidget); 138 - numpages++; 139 - } while(prevpagepos != currpos); 140 - 141 - /* ... and move to the top of the file... */ 142 - XtCallActionProc(textWidget, "beginning-of-file", NULL, NULL, 0); 143 - 144 - Log(("CountPages() found %ld pages.\n", numpages)) 145 - 146 - return numpages; 147 - } 148 - 149 - static void 150 - PageSetupCB(Widget widget, XtPointer client_data, XtPointer call_data) 151 - { 152 - Widget pshell = widget; 153 - XawPrintShellCallbackStruct *psp = (XawPrintShellCallbackStruct *)call_data; 154 - AppPrintData *p = (AppPrintData *)client_data; 155 - 156 - Log(("--> PageSetupCB\n")); 157 - 158 - if (!psp->last_page_in_job) { 159 - int currpage; 160 - char buffer[256]; 161 - 162 - XtVaGetValues(pshell, XawNcurrPageNumInJob, &currpage, NULL); 163 - 164 - sprintf(buffer, "Title: %s / Page: %d/%d", p->jobtitle, currpage, p->numpages); 165 - XtVaSetValues(apd->content.pageheaderlabel, XtNlabel, buffer, NULL); 166 - 167 - /* Note: XawPrintShell's pagecount starts with '1' 168 - * (=first page is page no. '1') */ 169 - if (currpage > 1) { 170 - Log(("pagedown %d\n", currpage)); 171 - XtCallActionProc(p->content.text, "next-page", NULL, NULL, 0); 172 - } 173 - else 174 - { 175 - Log(("first page\n")); 176 - } 177 - 178 - if (currpage >= p->numpages) { 179 - psp->last_page_in_job = True; 180 - } 181 - } 182 - } 183 - 184 - static 185 - void FinishPrinting(AppPrintData *p) 186 - { 187 - char *scr; 188 - 189 - if (p->printtofile_handle) { 190 - if (XpuWaitForPrintFileChild(p->printtofile_handle) != XPGetDocFinished) { 191 - PrintMsg(("Error while printing to file.\n")); 192 - } 193 - p->printtofile_handle = NULL; 194 - } 195 - 196 - /* Job completed, check if there are any messages from the spooler command */ 197 - scr = XpGetOneAttribute(p->pdpy, p->pcontext, XPJobAttr, "xp-spooler-command-results"); 198 - if( scr ) 199 - { 200 - if( strlen(scr) > 0 ) 201 - { 202 - const char *msg = XpuCompoundTextToXmb(p->pdpy, scr); 203 - if( msg ) 204 - { 205 - PrintMsg(("Spooler command returned:\n%s", msg)); 206 - XpuFreeXmbString(msg); 207 - } 208 - else 209 - { 210 - PrintMsg(("Spooler command returned (unconverted):\n%s", scr)); 211 - } 212 - } 213 - 214 - XFree((void *)scr); 215 - } 216 - 217 - if (p->printshell) { 218 - XtDestroyWidget(p->printshell); 219 - p->printshell = NULL; 220 - } 221 - 222 - /* Two issues here: 223 - * 1. The print display connection is owned by the print dialog 224 - * To avoid any problems with that use a callback back to the main 225 - * application which calls 226 - * |XawPrintDialogClosePrinterConnection(w, False)| to ask the 227 - * print dialog widget to close all print display resources and 228 - * disown the object. 229 - * 2. We have to use XpDestroyContext() and XtCloseDisplay() 230 - * instead of XpuClosePrinterDisplay() to make libXt happy... 231 - * 232 - * Call callback... */ 233 - (*apd->pdpyDestroyCallback)(NULL, NULL, NULL); /* HACK! */ 234 - 235 - /* ... and then get rid of the display */ 236 - if (p->pcontext != None) { 237 - XpDestroyContext(p->pdpy, p->pcontext); 238 - } 239 - XtCloseDisplay(p->pdpy); 240 - 241 - p->toplevel = NULL; 242 - p->isPrinting = False; 243 - p->pdpy = NULL; 244 - p->pscreen = NULL; 245 - p->pcontext = None; 246 - } 247 - 248 - static 249 - void PrintEndJobCB(Widget pshell, XtPointer client_data, XtPointer call_data) 250 - { 251 - AppPrintData *p = (AppPrintData *)client_data; 252 - 253 - Log(("--> PrintEndJobCB\n")); 254 - 255 - /* Finish printing and destroy print shell (it's legal to destroy Xt 256 - * widgets from within it's own callbacks) */ 257 - FinishPrinting(p); 258 - } 259 - 260 - static 261 - XFontSet GetPrintTextFontSet(const char *appname, Display *pdpy, long dpi_x, long dpi_y) 262 - { 263 - XFontSet fontset; 264 - char fontname[1024]; 265 - char **missing_charset_list_return; 266 - int missing_charset_count_return; 267 - char *def_string_return; 268 - int i; 269 - 270 - sprintf(fontname, /* Default font for CDE */ 271 - "-dt-interface user-medium-r-normal-s*-*-120-%ld-%ld-*-*," 272 - /* Default font */ 273 - "-adobe-courier-medium-r-normal--*-120-%ld-%ld-*-*," 274 - /* Default font for Linux/Japanese locales (ja_JP.SJIS) */ 275 - "-watanabe-mincho-medium-r-normal--*-120-%ld-%ld-*-*," 276 - "-wadalab-gothic-medium-r-normal--*-120-%ld-%ld-*-*," 277 - /* Fallback */ 278 - "-*-*-*-*-*--*-120-%ld-%ld-*-*", 279 - dpi_x, dpi_y, 280 - dpi_x, dpi_y, 281 - dpi_x, dpi_y, 282 - dpi_x, dpi_y, 283 - dpi_x, dpi_y); 284 - fontset = XCreateFontSet(pdpy, fontname, 285 - &missing_charset_list_return, 286 - &missing_charset_count_return, 287 - &def_string_return); 288 - 289 - for( i=0 ; i < missing_charset_count_return ; i++ ) { 290 - fprintf(stderr, "%s: warning: font for charset %s is lacking.\n", 291 - appname, missing_charset_list_return[i]); 292 - } 293 - 294 - if (!fontset) 295 - Error(("GetPrintTextFontSet: XCreateFontSet() failure.\n")); 296 - return fontset; 297 - } 298 - 299 - void DoPrintTextSource(const char *programname, 300 - Widget textsource, Widget toplevel, 301 - Display *pdpy, XPContext pcontext, 302 - XpuColorspaceRec *colorspace, 303 - XtCallbackProc pdpyDestroyCB, 304 - const char *jobtitle, const char *toFile) 305 - { 306 - long dpi_x = 0L, 307 - dpi_y = 0L; 308 - int n; 309 - Arg args[20]; 310 - XFontSet textfontset = NULL; 311 - XFontSetExtents *font_extents; 312 - 313 - apd->programname = programname; 314 - apd->pdpyDestroyCallback = pdpyDestroyCB; 315 - 316 - if (apd->isPrinting) { 317 - PrintMsg(("Already busy with printing.\n")); 318 - return; 319 - } 320 - 321 - /* Configure the print context (paper size, title etc.) 322 - * We must do this before creating any Xt widgets - otherwise they will 323 - * make wrong assuptions about fonts, resultions etc. ... 324 - */ 325 - XpuSetJobTitle(pdpy, pcontext, jobtitle); 326 - 327 - /* Configuration done, set the context */ 328 - XpSetContext(pdpy, pcontext); 329 - 330 - /* Get default printer resolution */ 331 - if (XpuGetResolution(pdpy, pcontext, &dpi_x, &dpi_y) != 1) { 332 - PrintMsg(("No default resolution for printer.\n")); 333 - XpuClosePrinterDisplay(pdpy, pcontext); 334 - return; 335 - } 336 - 337 - apd->toplevel = toplevel; 338 - apd->pdpy = pdpy; 339 - apd->pcontext = pcontext; 340 - apd->pscreen = XpGetScreenOfContext(pdpy, pcontext); 341 - apd->jobtitle = jobtitle; 342 - 343 - n = 0; 344 - /* Override any geometry resource settings as XawPrintShell adjusts it's size 345 - * to the current page siue when |XawPrintLAYOUTMODE_DRAWABLEAREA| or 346 - * |XawPrintLAYOUTMODE_PAGESIZE| are used. */ 347 - XtSetArg(args[n], XtNgeometry, "+0+0"); n++; 348 - XtSetArg(args[n], XawNlayoutMode, XawPrintLAYOUTMODE_DRAWABLEAREA); n++; 349 - if (colorspace) { 350 - printf("Setting visual to id=0x%lx.\n", colorspace->visualinfo.visualid); 351 - } 352 - apd->printshell = CreatePrintShell(toplevel, apd->pscreen, 353 - (colorspace?(colorspace->visualinfo.visual):(NULL)), 354 - "printshell", args, n); 355 - n = 0; 356 - XtSetArg(args[n], XtNresizable, True); n++; 357 - XtSetArg(args[n], XtNright, XtChainRight); n++; 358 - apd->content.form = XtCreateManagedWidget("form", formWidgetClass, apd->printshell, args, n); 359 - 360 - textfontset = GetPrintTextFontSet(apd->programname, pdpy, dpi_x, dpi_y); 361 - 362 - n = 0; 363 - XtSetArg(args[n], XtNinternational, True); n++; 364 - XtSetArg(args[n], XtNfromHoriz, NULL); n++; 365 - XtSetArg(args[n], XtNfromVert, NULL); n++; 366 - XtSetArg(args[n], XtNtop, XtChainTop); n++; 367 - XtSetArg(args[n], XtNright, XtChainRight); n++; 368 - XtSetArg(args[n], XtNresizable, True); n++; 369 - XtSetArg(args[n], XtNfontSet, textfontset); n++; 370 - XtSetArg(args[n], XtNlabel, "Page: n/n"); n++; 371 - XtSetArg(args[n], XtNjustify, XtJustifyRight); n++; 372 - apd->content.pageheaderlabel = XtCreateManagedWidget("pageinfo", labelWidgetClass, apd->content.form, args, n); 373 - 374 - font_extents = XExtentsOfFontSet(textfontset); 375 - 376 - n = 0; 377 - XtSetArg(args[n], XtNinternational, True); n++; 378 - XtSetArg(args[n], XtNtextSource, textsource); n++; 379 - XtSetArg(args[n], XtNscrollHorizontal, XawtextScrollNever); n++; 380 - XtSetArg(args[n], XtNscrollVertical, XawtextScrollNever); n++; 381 - 382 - /* Usually I would expect that using |XtNfromVert, apd->content.pageheaderlabel| 383 - * would be the correct way to place the text widget with the main content below 384 - * the page header widget - but for an unknown reason this doesn not work: The 385 - * text widget squishes itself into the bottom half of the page and only occupies 386 - * 1/2 of the page's with... ;-(( */ 387 - #define WORKAROUND_FOR_SOMETHING_IS_WRONG 1 388 - #ifdef WORKAROUND_FOR_SOMETHING_IS_WRONG 389 - XtSetArg(args[n], XtNtop, XtChainTop); n++; 390 - XtSetArg(args[n], XtNright, XtChainRight); n++; 391 - XtSetArg(args[n], XtNvertDistance, (font_extents->max_logical_extent.height+2)*2); n++; 392 - #else 393 - XtSetArg(args[n], XtNfromHoriz, NULL); n++; 394 - XtSetArg(args[n], XtNfromVert, apd->content.pageheaderlabel); n++; 395 - #endif 396 - XtSetArg(args[n], XtNfontSet, textfontset); n++; 397 - apd->content.text = XtCreateManagedWidget("text", asciiTextWidgetClass, apd->content.form, args, n); 398 - 399 - /* Disable the caret - that is not needed for printing */ 400 - XawTextDisplayCaret(apd->content.text, False); 401 - 402 - XtAddCallback(apd->printshell, XawNpageSetupCallback, PageSetupCB, (XtPointer)apd); 403 - XtAddCallback(apd->printshell, XawNendJobCallback, PrintEndJobCB, (XtPointer)apd); 404 - 405 - /* Realise print shell (which will set position+size of the child 406 - * widgets based on the current page size) */ 407 - XtRealizeWidget(apd->printshell); 408 - 409 - /* Count number of pages in the text widget */ 410 - apd->numpages = CountPages(apd->content.text); 411 - 412 - /* Make sure that the Xt machinery is really using the right screen (assertion) */ 413 - if (XpGetScreenOfContext(XtDisplay(apd->printshell), apd->pcontext) != XtScreen(apd->printshell)) 414 - Error(("Widget's screen != print screen. BAD.\n")); 415 - 416 - apd->isPrinting = True; 417 - 418 - if (toFile) { 419 - PrintMsg(("Printing to file '%s'...\n", toFile)); 420 - apd->printtofile_handle = XpuStartJobToFile(pdpy, pcontext, toFile); 421 - if (!apd->printtofile_handle) { 422 - perror("XpuStartJobToFile failure"); 423 - PrintMsg(("Printing failed: XpuStartJobToFile\n")); 424 - apd->isPrinting = False; 425 - return; 426 - } 427 - } 428 - else 429 - { 430 - PrintMsg(("Printing to printer...\n")); 431 - XpuStartJobToSpooler(pdpy); 432 - } 433 - } 434 - 435 -
-56
app/xmore/print.h
··· 1 - /* 2 - * $Xorg: print.h,v 1.1 2004/04/30 02:05:54 gisburn Exp $ 3 - * 4 - Copyright 2004 Roland Mainz <roland.mainz@nrubsig.org> 5 - 6 - Permission to use, copy, modify, distribute, and sell this software and its 7 - documentation for any purpose is hereby granted without fee, provided that 8 - the above copyright notice appear in all copies and that both that 9 - copyright notice and this permission notice appear in supporting 10 - documentation. 11 - 12 - The above copyright notice and this permission notice shall be included in 13 - all copies or substantial portions of the Software. 14 - 15 - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 - OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 19 - AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 - CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 - 22 - Except as contained in this notice, the name of The Open Group shall not be 23 - used in advertising or otherwise to promote the sale, use or other dealings 24 - in this Software without prior written authorization from The Open Group. 25 - * 26 - */ 27 - 28 - #ifndef XMORE_PRINT_H 29 - #define XMORE_PRINT_H 1 30 - 31 - #include <X11/Intrinsic.h> 32 - #include <X11/StringDefs.h> 33 - #include <X11/Shell.h> 34 - #include <X11/Xaw/Print.h> 35 - #include <X11/Xaw/Cardinals.h> 36 - #include <X11/XprintUtil/xprintutil.h> 37 - 38 - #if defined(XMORE) 39 - #define PrintMsg(x) { printf("xmore: "); printf x ; } 40 - #elif defined(XEDIT) 41 - #define PrintMsg(x) { XeditPrintf x ; } 42 - #else 43 - #error unknown application 44 - #endif 45 - 46 - /* Prototypes */ 47 - void DoPrintTextSource(const char *programname, 48 - Widget textsource, 49 - Widget toplevel, 50 - Display *pdpy, XPContext pcontext, 51 - XpuColorspaceRec *colorspace, 52 - XtCallbackProc printDisplayDestroyCallback, 53 - const char *jobTitle, 54 - const char *toFile); 55 - 56 - #endif /* !XMORE_PRINT_H */
-1396
app/xmore/printdialog.c
··· 1 - /* 2 - * $Xorg: printdialog.c,v 1.1 2004/05/12 02:05:54 gisburn Exp $ 3 - * 4 - Copyright 2004 Roland Mainz <roland.mainz@nrubsig.org> 5 - 6 - Permission to use, copy, modify, distribute, and sell this software and its 7 - documentation for any purpose is hereby granted without fee, provided that 8 - the above copyright notice appear in all copies and that both that 9 - copyright notice and this permission notice appear in supporting 10 - documentation. 11 - 12 - The above copyright notice and this permission notice shall be included in 13 - all copies or substantial portions of the Software. 14 - 15 - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 - OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 19 - AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 - CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 - 22 - Except as contained in this notice, the name of The Open Group shall not be 23 - used in advertising or otherwise to promote the sale, use or other dealings 24 - in this Software without prior written authorization from The Open Group. 25 - * 26 - */ 27 - 28 - /* Force ANSI C prototypes from X11 headers */ 29 - #ifndef FUNCPROTO 30 - #define FUNCPROTO 15 31 - #endif /* !FUNCPROTO */ 32 - 33 - #include <X11/StringDefs.h> 34 - #include <X11/Intrinsic.h> 35 - #include <X11/Shell.h> 36 - #include <X11/Xaw/Form.h> 37 - #include <X11/Xaw/Toggle.h> 38 - #include <X11/Xaw/List.h> 39 - #include <X11/Xaw/Command.h> 40 - #include <X11/Xaw/AsciiText.h> 41 - #include <X11/Xaw/Dialog.h> 42 - 43 - #ifdef XKB 44 - #include <X11/extensions/XKBbells.h> 45 - #endif /* XKB */ 46 - 47 - #ifdef XEDIT 48 - #include "xedit.h" 49 - #endif /* XEDIT */ 50 - #include "printdialog.h" 51 - #include "printdialogprivates.h" 52 - #include "print.h" 53 - 54 - #include <stdlib.h> 55 - #include <ctype.h> 56 - #include <stdio.h> 57 - 58 - /* Turn a NULL pointer string into an empty string */ 59 - #define NULLSTR(x) (((x)!=NULL)?(x):("")) 60 - 61 - #define Error(x) { printf x ; exit(EXIT_FAILURE); } 62 - #define Assertion(expr, msg) { if (!(expr)) { Error msg } } 63 - #ifdef DEBUG 64 - # define Log(x) { if(True) printf x; } 65 - #else 66 - # define Log(x) { if(False) printf x; } 67 - #endif /* DEBUG */ 68 - 69 - /* Local prototypes */ 70 - static void do_beep(PrintDialogWidget pdw); 71 - static void center_popup(Widget parent, Widget popup); 72 - static void updateWidgetStates(PrintDialogWidget pdw); 73 - static void printSetupClose(PrintDialogWidget pdw); 74 - static void printSetupOKXtProc(Widget w, XtPointer client_data, XtPointer callData); 75 - static void printSetupCancelXtProc(Widget w, XtPointer client_data, XtPointer callData); 76 - static void printSetupJobCopiesXtProc(Widget w, XtPointer client_data, XtPointer callData); 77 - static void printDialogDestXtProc(Widget w, XtPointer client_data, XtPointer callData); 78 - static void printSelectFileXtProc(Widget w, XtPointer client_data, XtPointer callData); 79 - static void printOKXtProc(Widget w, XtPointer client_data, XtPointer callData); 80 - static void printSetupXtProc(Widget w, XtPointer client_data, XtPointer callData); 81 - static void printFileSelectedXtProc(Widget w, XtPointer client_data, XtPointer callData); 82 - static void buildFileDialog(PrintDialogWidget pdw); 83 - static void closePrinterConnection(PrintDialogWidget pdw, Bool closeDisplay); 84 - static Bool openPrinterConnection(PrintDialogWidget pdw); 85 - static void destroyPrintSetupDialog(PrintDialogWidget pdw); 86 - static Widget buildPrintSetupDialog(PrintDialogWidget pdw); 87 - static String *xpprinterlist_to_widget_printerlist(XPPrinterList printerlist, int num_printers); 88 - static String *xppaperlist_to_widget_paperlist(XpuMediumSourceSizeList paperlist, int num_papers); 89 - static String *xpresolutionlist_to_widget_resolutionlist(XpuResolutionList reslist, int num_resolutions); 90 - static String *xporientationlist_to_widget_orientationlist(XpuOrientationList orientationlist, int num_orientations); 91 - static String *xpplexlist_to_widget_plexlist(XpuPlexList plexlist, int num_plex); 92 - static String *xpcolorspacelist_to_widget_colorspacelist(XpuColorspaceList colorspacelist, int num_colorspaces); 93 - static void printerSelectionPrinterSelectedXtProc(Widget w, XtPointer client_data, XtPointer callData); 94 - static void printSelectPrinterXtProc(Widget w, XtPointer client_data, XtPointer callData); 95 - static void printerSelectionClose(PrintDialogWidget pdw); 96 - static void printerSelectionOKXtProc(Widget w, XtPointer client_data, XtPointer callData); 97 - static void printerSelectionCancelXtProc(Widget w, XtPointer client_data, XtPointer callData); 98 - static Bool buildPrinterSelectionDialog(PrintDialogWidget pdw); 99 - static void destroyPrinterSelectionDialog(PrintDialogWidget pdw); 100 - static void createprintdialogchildren(Widget w); 101 - 102 - static 103 - void do_beep(PrintDialogWidget pdw) 104 - { 105 - Log(("*** Beep!\n")); 106 - #ifdef XKB 107 - XkbStdBell(XtDisplay((Widget)pdw), XtWindow((Widget)pdw), 0, XkbBI_MinorError); 108 - #else 109 - XBell(XtDisplay((Widget)pdw), 0); 110 - #endif /* XKB */ 111 - } 112 - 113 - /* Center popup (on parent, not on screen - which would be a bad idea 114 - * in the Xinerama case) */ 115 - static 116 - void center_popup(Widget parent, Widget popup) 117 - { 118 - Dimension width, 119 - height; 120 - Position x, 121 - y; 122 - 123 - XtVaGetValues(parent, 124 - XtNx, &x, 125 - XtNy, &y, 126 - NULL); 127 - XtVaGetValues(popup, 128 - XtNwidth, &width, 129 - XtNheight, &height, 130 - NULL); 131 - 132 - x += (Position)width / 2; 133 - y += (Position)height / 3; 134 - 135 - XtVaSetValues(popup, 136 - XtNx, x, 137 - XtNy, y, 138 - NULL); 139 - } 140 - 141 - static 142 - void updateWidgetStates(PrintDialogWidget pdw) 143 - { 144 - PrintDialogPart *pdp = &pdw->printdialog; 145 - 146 - /* Do not update anything if we will be destroyed */ 147 - if (pdw->core.being_destroyed) 148 - return; 149 - 150 - if (pdp->printToFile == False) { 151 - XtVaSetValues(pdp->main.printtoprinter, XtNstate, True, NULL); 152 - XtVaSetValues(pdp->main.printtofile, XtNstate, False, NULL); 153 - /* Disable the widgets which depend on print-to-file */ 154 - XtVaSetValues(pdp->main.filenamelabel, XtNsensitive, False, NULL); 155 - XtVaSetValues(pdp->main.filename, XtNsensitive, False, NULL); 156 - XtVaSetValues(pdp->main.selectfile, XtNsensitive, False, NULL); 157 - } 158 - else 159 - { 160 - XtVaSetValues(pdp->main.printtoprinter, XtNstate, False, NULL); 161 - XtVaSetValues(pdp->main.printtofile, XtNstate, True, NULL); 162 - /* Enable the widgets which depend on print-to-file */ 163 - XtVaSetValues(pdp->main.filenamelabel, XtNsensitive, True, NULL); 164 - XtVaSetValues(pdp->main.filename, XtNsensitive, True, NULL); 165 - XtVaSetValues(pdp->main.selectfile, XtNsensitive, True, NULL); 166 - } 167 - 168 - /* Update file name */ 169 - XtVaSetValues(pdp->main.filename, XtNlabel, pdp->filename?pdp->filename:"-", NULL); 170 - 171 - /* General check whether we can print... */ 172 - pdp->canPrint = True; 173 - if (pdp->printer_name == NULL) { 174 - pdp->canPrint = False; 175 - } 176 - else if (strlen(pdp->printer_name) == 0) { 177 - pdp->canPrint = False; 178 - } 179 - 180 - pdp->canReallyPrint = pdp->canPrint; 181 - 182 - /* Some extra checks for print-to-file */ 183 - if (pdp->printToFile) { 184 - if (pdp->filename == NULL) { 185 - pdp->canReallyPrint = False; 186 - } 187 - else if (strlen(pdp->filename) == 0) { 188 - pdp->canReallyPrint = False; 189 - } 190 - } 191 - 192 - XtVaSetValues(pdp->main.ok, XtNsensitive, pdp->canReallyPrint, NULL); 193 - XtVaSetValues(pdp->main.setup, XtNsensitive, pdp->canPrint, NULL); 194 - } 195 - 196 - static void 197 - printSetupClose(PrintDialogWidget pdw) 198 - { 199 - PrintDialogPart *pdp = &pdw->printdialog; 200 - if (pdp->setup.popup) { 201 - XtPopdown(pdp->setup.popup); 202 - } 203 - } 204 - 205 - static void 206 - printSetupOKXtProc(Widget w, XtPointer client_data, XtPointer callData) 207 - { 208 - PrintDialogWidget pdw = (PrintDialogWidget)client_data; 209 - PrintDialogPart *pdp = &pdw->printdialog; 210 - char *s; 211 - XawListReturnStruct *lrs; 212 - Log(("## printSetupOK: closing print setup!\n")); 213 - 214 - /* Set copy count (if the value is invalid beep and return to the user ) */ 215 - XtVaGetValues(pdp->setup.jobcopies, XtNstring, &s, NULL); 216 - if (s) { 217 - int c = atoi(s); 218 - if (c < 1 || c > 999) { 219 - do_beep(pdw); 220 - XtVaSetValues(pdp->setup.jobcopies, XtNstring, "1", NULL); 221 - Log(("## printSetupOKXtProc: not a valid copy count value\n")); 222 - return; 223 - } 224 - 225 - /* Fix me: We should set the number of _job_ copies here, not _doc_ copies */ 226 - XpuSetDocumentCopies(pdp->pdpy, pdp->pcontext, c); 227 - } 228 - 229 - /* Set paper size */ 230 - lrs = XawListShowCurrent(pdp->setup.paperlist); 231 - if (lrs->list_index != XAW_LIST_NONE) { 232 - Log(("selected paper is '%s'/'%d'\n", lrs->string, lrs->list_index)); 233 - Assertion(lrs->list_index < pdp->num_papers, (("Error: lrs->list_index < pdp->num_papers\n"))); 234 - XpuSetDocMediumSourceSize(pdp->pdpy, pdp->pcontext, &pdp->paperlist[lrs->list_index]); 235 - } 236 - XtFree((char *)lrs); 237 - 238 - /* Set resolution */ 239 - lrs = XawListShowCurrent(pdp->setup.resolutionlist); 240 - if (lrs->list_index != XAW_LIST_NONE) { 241 - Log(("selected resolution is '%s'/'%d'\n", lrs->string, lrs->list_index)); 242 - Assertion(lrs->list_index < pdp->num_resolutions, (("Error: lrs->list_index < pdp->num_resolutions\n"))); 243 - XpuSetDocResolution(pdp->pdpy, pdp->pcontext, &pdp->resolutionlist[lrs->list_index]); 244 - } 245 - XtFree((char *)lrs); 246 - 247 - /* Set orientation */ 248 - lrs = XawListShowCurrent(pdp->setup.orientationlist); 249 - if (lrs->list_index != XAW_LIST_NONE) { 250 - Log(("selected orientation is '%s'/'%d'\n", lrs->string, lrs->list_index)); 251 - Assertion(lrs->list_index < pdp->num_orientations, (("Error: lrs->list_index < pdp->num_orientations\n"))); 252 - XpuSetDocOrientation(pdp->pdpy, pdp->pcontext, &pdp->orientationlist[lrs->list_index]); 253 - } 254 - XtFree((char *)lrs); 255 - 256 - /* Set plex mode */ 257 - lrs = XawListShowCurrent(pdp->setup.plexlist); 258 - if (lrs->list_index != XAW_LIST_NONE) { 259 - Log(("selected plex is '%s'/'%d'\n", lrs->string, lrs->list_index)); 260 - Assertion(lrs->list_index < pdp->num_plex, (("Error: lrs->list_index < pdp->num_plex\n"))); 261 - XpuSetDocPlex(pdp->pdpy, pdp->pcontext, &pdp->plexlist[lrs->list_index]); 262 - } 263 - XtFree((char *)lrs); 264 - 265 - /* Set colorspace */ 266 - lrs = XawListShowCurrent(pdp->setup.colorspacelist); 267 - if (lrs->list_index != XAW_LIST_NONE) { 268 - Log(("selected colorspace is '%s'/'%d'\n", lrs->string, lrs->list_index)); 269 - Assertion(lrs->list_index < pdp->num_colorspaces, (("Error: lrs->list_index < pdp->num_colorspaces\n"))); 270 - pdp->selected_colorspace = &pdp->colorspacelist[lrs->list_index]; 271 - } 272 - XtFree((char *)lrs); 273 - 274 - printSetupClose(pdw); 275 - } 276 - 277 - static void 278 - printSetupCancelXtProc(Widget w, XtPointer client_data, XtPointer callData) 279 - { 280 - PrintDialogWidget pdw = (PrintDialogWidget)client_data; 281 - Log(("## printSetupCancel: closing print setup!\n")); 282 - 283 - printSetupClose(pdw); 284 - } 285 - 286 - static void 287 - printSetupJobCopiesXtProc(Widget w, XtPointer client_data, XtPointer callData) 288 - { 289 - PrintDialogWidget pdw = (PrintDialogWidget)client_data; 290 - PrintDialogPart *pdp = &pdw->printdialog; 291 - char *string = NULL; 292 - 293 - Log(("## printSetupJobCopiesXtProc!\n")); 294 - 295 - /* Check whether the input is a valid number - and in the case of invalid input reset the value */ 296 - XtVaGetValues(pdp->setup.jobcopies, XtNstring, &string, NULL); 297 - if (string) { 298 - char *s; 299 - int i; 300 - Bool isValidNumber = True; 301 - 302 - /* First check for invalid characters... */ 303 - for( s = string ; *s != '\0' ; s++ ) { 304 - if (!isdigit(*s)) { 305 - isValidNumber = False; 306 - break; 307 - } 308 - } 309 - 310 - /* .. and the do a range check... */ 311 - i = atoi(string); 312 - if (i < 1 || i > 999) { 313 - isValidNumber = False; 314 - } 315 - 316 - if (!isValidNumber) { 317 - do_beep(pdw); 318 - XtVaSetValues(pdp->setup.jobcopies, XtNstring, "1", NULL); 319 - Log(("## printSetupJobCopiesXtProc: not a valid number\n")); 320 - } 321 - } 322 - } 323 - 324 - static void 325 - printCancelXtProc(Widget w, XtPointer client_data, XtPointer callData) 326 - { 327 - PrintDialogWidget pdw = (PrintDialogWidget)client_data; 328 - PrintDialogPart *pdp = &pdw->printdialog; 329 - 330 - printSetupClose(pdw); 331 - 332 - if (pdp->cancel_callback) { 333 - Log(("printCancelXtProc: calling callback\n")); 334 - XtCallCallbackList((Widget)pdw, pdp->cancel_callback, NULL); 335 - } 336 - } 337 - 338 - static void 339 - printDialogDestXtProc(Widget w, XtPointer client_data, XtPointer callData) 340 - { 341 - PrintDialogWidget pdw = (PrintDialogWidget)client_data; 342 - PrintDialogPart *pdp = &pdw->printdialog; 343 - 344 - if (w == pdp->main.printtoprinter) { 345 - pdp->printToFile = False; 346 - } 347 - else if (w == pdp->main.printtofile) { 348 - pdp->printToFile = True; 349 - } 350 - else 351 - { 352 - Log(("printDialogDestXtProc: ERROR: Unknown widget.\n")); 353 - } 354 - 355 - updateWidgetStates(pdw); 356 - } 357 - 358 - static void 359 - printSelectFileXtProc(Widget w, XtPointer client_data, XtPointer callData) 360 - { 361 - PrintDialogWidget pdw = (PrintDialogWidget)client_data; 362 - PrintDialogPart *pdp = &pdw->printdialog; 363 - 364 - Log(("## printSelectFileXtProc!\n")); 365 - 366 - if (!pdp->selectFile.shell) { 367 - buildFileDialog(pdw); 368 - } 369 - 370 - center_popup((Widget)pdw, pdp->selectFile.shell); 371 - 372 - XtPopup(pdp->selectFile.shell, XtGrabExclusive); 373 - } 374 - 375 - static void 376 - printOKXtProc(Widget w, XtPointer client_data, XtPointer callData) 377 - { 378 - PrintDialogWidget pdw = (PrintDialogWidget)client_data; 379 - PrintDialogPart *pdp = &pdw->printdialog; 380 - Log(("## printing!\n")); 381 - 382 - if (!pdp->pdpy) { 383 - Log(("printOKXtProc: no printer connection, opening one....\n")); 384 - openPrinterConnection(pdw); 385 - 386 - if (!pdp->pdpy) { 387 - Log(("printOKXtProc: still no printer connection - BAD (this should never happen).\n")); 388 - do_beep(pdw); 389 - return; 390 - } 391 - } 392 - 393 - if (pdp->ok_callback) { 394 - XawPrintDialogCallbackStruct pdcs; 395 - 396 - Log(("printOKXtProc: calling callbacks...\n")); 397 - memset(&pdcs, 0, sizeof(pdcs)); 398 - pdcs.pdpy = pdp->pdpy; 399 - pdcs.pcontext = pdp->pcontext; 400 - pdcs.printToFile = pdp->printToFile; 401 - pdcs.printToFileName = (const char *)pdp->filename; 402 - pdcs.colorspace = pdp->selected_colorspace; 403 - XtCallCallbackList((Widget)pdw, pdp->ok_callback, &pdcs); 404 - } 405 - 406 - printSetupClose(pdw); 407 - } 408 - 409 - static void 410 - printSetupXtProc(Widget w, XtPointer client_data, XtPointer callData) 411 - { 412 - PrintDialogWidget pdw = (PrintDialogWidget)client_data; 413 - PrintDialogPart *pdp = &pdw->printdialog; 414 - 415 - Log(("## setup!\n")); 416 - 417 - if (!pdp->setup.popup) { 418 - if (buildPrintSetupDialog(pdw) == NULL) { 419 - Log(("printSetupXtProc: buildPrintSetupDialog failure.\n")); 420 - return; 421 - } 422 - } 423 - 424 - center_popup((Widget)pdw, pdp->setup.popup); 425 - 426 - XtPopup(pdp->setup.popup, XtGrabExclusive); 427 - } 428 - 429 - static void 430 - printFileSelectedXtProc(Widget w, XtPointer client_data, XtPointer callData) 431 - { 432 - PrintDialogWidget pdw = (PrintDialogWidget)client_data; 433 - PrintDialogPart *pdp = &pdw->printdialog; 434 - const char *filename; 435 - 436 - Log(("printFileSelectedXtProc: User selected file.\n")); 437 - filename = XawDialogGetValueString(pdp->selectFile.dialog); 438 - 439 - if (pdp->filename) 440 - free(pdp->filename); 441 - pdp->filename = strdup(filename); 442 - 443 - XtPopdown(pdp->selectFile.shell); 444 - 445 - updateWidgetStates(pdw); 446 - } 447 - 448 - static 449 - void buildFileDialog(PrintDialogWidget pdw) 450 - { 451 - PrintDialogPart *pdp = &pdw->printdialog; 452 - int n; 453 - Arg args[20]; 454 - 455 - pdp->selectFile.shell = XtCreatePopupShell("selectfile", 456 - transientShellWidgetClass, 457 - (Widget)pdw, NULL, 0); 458 - n = 0; 459 - XtSetArg(args[n], XtNvalue, pdp->filename?pdp->filename:""); n++; 460 - pdp->selectFile.dialog = XtCreateManagedWidget("dialog", dialogWidgetClass, 461 - pdp->selectFile.shell, args, n); 462 - XawDialogAddButton(pdp->selectFile.dialog, "Accept", printFileSelectedXtProc, pdw); 463 - 464 - XtRealizeWidget(pdp->selectFile.shell); 465 - } 466 - 467 - static 468 - void closePrinterConnection(PrintDialogWidget pdw, Bool closeDisplay) 469 - { 470 - PrintDialogPart *pdp = &pdw->printdialog; 471 - 472 - Log(("# closePrinterConnection\n")); 473 - 474 - destroyPrintSetupDialog(pdw); 475 - 476 - if (pdp->paperlist) { 477 - XpuFreeMediumSourceSizeList(pdp->paperlist); 478 - pdp->paperlist = NULL; 479 - } 480 - 481 - if (pdp->widget_paperlist) { 482 - free(pdp->widget_paperlist); 483 - pdp->widget_paperlist = NULL; 484 - } 485 - 486 - if (pdp->resolutionlist) { 487 - XpuFreeResolutionList(pdp->resolutionlist); 488 - pdp->resolutionlist = NULL; 489 - } 490 - 491 - if (pdp->widget_resolutionlist) { 492 - free(pdp->widget_resolutionlist); 493 - pdp->widget_resolutionlist = NULL; 494 - } 495 - 496 - 497 - if (pdp->orientationlist) { 498 - XpuFreeOrientationList(pdp->orientationlist); 499 - pdp->orientationlist = NULL; 500 - } 501 - 502 - if (pdp->widget_orientationlist) { 503 - free(pdp->widget_orientationlist); 504 - pdp->widget_orientationlist = NULL; 505 - } 506 - 507 - if (pdp->plexlist) { 508 - XpuFreePlexList(pdp->plexlist); 509 - pdp->plexlist = NULL; 510 - } 511 - 512 - if (pdp->widget_plexlist) { 513 - free(pdp->widget_plexlist); 514 - pdp->widget_plexlist = NULL; 515 - } 516 - 517 - if (pdp->colorspacelist) { 518 - XpuFreeColorspaceList(pdp->colorspacelist); 519 - pdp->colorspacelist = NULL; 520 - } 521 - 522 - if (pdp->widget_colorspacelist) { 523 - free(pdp->widget_colorspacelist); 524 - pdp->widget_colorspacelist = NULL; 525 - } 526 - pdp->selected_colorspace = NULL; 527 - 528 - if (pdp->pdpy) { 529 - if (closeDisplay) { 530 - XpuClosePrinterDisplay(pdp->pdpy, pdp->pcontext); 531 - } 532 - pdp->pdpy = NULL; 533 - pdp->pcontext = None; 534 - } 535 - 536 - updateWidgetStates(pdw); 537 - } 538 - 539 - static 540 - Bool openPrinterConnection(PrintDialogWidget pdw) 541 - { 542 - PrintDialogPart *pdp = &pdw->printdialog; 543 - 544 - Log(("# openPrinterConnection\n")); 545 - 546 - /* Close any outstanding connection first... */ 547 - closePrinterConnection(pdw, True); 548 - 549 - if (!pdp->printer_name) { 550 - Log(("# error: openPrinterConnection: No printer name.\n")); 551 - return False; 552 - } 553 - 554 - if (XpuGetPrinter(pdp->printer_name, &pdp->pdpy, &pdp->pcontext) == False) { 555 - Log(("openPrinterConnection: could not open printer.\n")); 556 - return False; 557 - } 558 - 559 - pdp->paperlist = XpuGetMediumSourceSizeList(pdp->pdpy, pdp->pcontext, &pdp->num_papers); 560 - pdp->resolutionlist = XpuGetResolutionList(pdp->pdpy, pdp->pcontext, &pdp->num_resolutions); 561 - pdp->orientationlist = XpuGetOrientationList(pdp->pdpy, pdp->pcontext, &pdp->num_orientations); 562 - pdp->plexlist = XpuGetPlexList(pdp->pdpy, pdp->pcontext, &pdp->num_plex); 563 - pdp->colorspacelist = XpuGetColorspaceList(pdp->pdpy, pdp->pcontext, &pdp->num_colorspaces); 564 - 565 - pdp->widget_paperlist = xppaperlist_to_widget_paperlist(pdp->paperlist, pdp->num_papers); 566 - pdp->widget_resolutionlist = xpresolutionlist_to_widget_resolutionlist(pdp->resolutionlist, pdp->num_resolutions); 567 - pdp->widget_orientationlist = xporientationlist_to_widget_orientationlist(pdp->orientationlist, pdp->num_orientations); 568 - pdp->widget_plexlist = xpplexlist_to_widget_plexlist(pdp->plexlist, pdp->num_plex); 569 - pdp->widget_colorspacelist = xpcolorspacelist_to_widget_colorspacelist(pdp->colorspacelist, pdp->num_colorspaces); 570 - 571 - updateWidgetStates(pdw); 572 - 573 - return True; 574 - } 575 - 576 - #undef DEFAULT_WIDTH 577 - #define DEFAULT_WIDTH 120 578 - #undef DEFAULT_INFOLABEL_WIDTH 579 - #define DEFAULT_INFOLABEL_WIDTH 250 580 - 581 - static 582 - void destroyPrintSetupDialog(PrintDialogWidget pdw) 583 - { 584 - PrintDialogPart *pdp = &pdw->printdialog; 585 - 586 - if (pdp->setup.popup) { 587 - XtDestroyWidget(pdp->setup.popup); 588 - } 589 - 590 - /* |XtDestroyWidget(pdp->setup.popup);| above will recursively destroy 591 - * all children so we only have to reset the pointers here... */ 592 - pdp->setup.popup = NULL; 593 - pdp->setup.form = NULL; 594 - pdp->setup.paperlist = NULL; 595 - pdp->setup.resolutionlist = NULL; 596 - pdp->setup.orientationlist = NULL; 597 - pdp->setup.plexlist = NULL; 598 - pdp->setup.colorspacelist = NULL; 599 - pdp->setup.ok = NULL; 600 - pdp->setup.cancel = NULL; 601 - } 602 - 603 - static 604 - Widget buildPrintSetupDialog(PrintDialogWidget pdw) 605 - { 606 - PrintDialogPart *pdp = &pdw->printdialog; 607 - int n; 608 - Arg args[20]; 609 - Widget listform; 610 - XpuSupportedFlags jobflags, 611 - docflags; 612 - Bool canChangeJobCopies, 613 - canChangePaperSize, 614 - canChangeResolution, 615 - canChangeOrientation, 616 - canChangePlex; 617 - 618 - if (!pdp->pdpy) { 619 - Log(("buildPrintSetupDialog: no printer connection, opening one....\n")); 620 - openPrinterConnection(pdw); 621 - 622 - if (!pdp->pdpy) { 623 - Log(("buildPrintSetupDialog: still no printer connection - BAD.\n")); 624 - do_beep(pdw); 625 - return NULL; 626 - } 627 - } 628 - 629 - /* Get flags which types of attributes can be modified */ 630 - jobflags = XpuGetSupportedDocAttributes(pdp->pdpy, pdp->pcontext); 631 - docflags = XpuGetSupportedDocAttributes(pdp->pdpy, pdp->pcontext); 632 - canChangeJobCopies = (jobflags & XPUATTRIBUTESUPPORTED_COPY_COUNT) == XPUATTRIBUTESUPPORTED_COPY_COUNT; 633 - canChangePaperSize = (docflags & XPUATTRIBUTESUPPORTED_DEFAULT_MEDIUM) == XPUATTRIBUTESUPPORTED_DEFAULT_MEDIUM; 634 - canChangeResolution = (docflags & XPUATTRIBUTESUPPORTED_DEFAULT_PRINTER_RESOLUTION) == XPUATTRIBUTESUPPORTED_DEFAULT_PRINTER_RESOLUTION; 635 - canChangeOrientation = (docflags & XPUATTRIBUTESUPPORTED_CONTENT_ORIENTATION) == XPUATTRIBUTESUPPORTED_CONTENT_ORIENTATION; 636 - canChangePlex = (docflags & XPUATTRIBUTESUPPORTED_PLEX) == XPUATTRIBUTESUPPORTED_PLEX; 637 - 638 - n = 0; 639 - XtSetArg(args[n], XtNallowShellResize, True); n++; 640 - pdp->setup.popup = XtCreatePopupShell("setup", transientShellWidgetClass, (Widget)pdw, args, n); 641 - 642 - n = 0; 643 - pdp->setup.form = XtCreateManagedWidget("form", formWidgetClass, pdp->setup.popup, args, n); 644 - 645 - n = 0; 646 - listform = XtCreateManagedWidget("list", formWidgetClass, pdp->setup.form, args, n); 647 - 648 - n = 0; 649 - XtSetArg(args[n], XtNresizable, True); n++; 650 - XtSetArg(args[n], XtNforceColumns, True); n++; 651 - XtSetArg(args[n], XtNdefaultColumns, 1); n++; 652 - XtSetArg(args[n], XtNsensitive, canChangePaperSize); n++; 653 - XtSetArg(args[n], XtNlist, pdp->widget_paperlist); n++; 654 - XtSetArg(args[n], XtNwidth, DEFAULT_WIDTH); n++; 655 - pdp->setup.paperlist = XtCreateManagedWidget("paperlist", listWidgetClass, listform, args, n); 656 - 657 - n = 0; 658 - XtSetArg(args[n], XtNresizable, True); n++; 659 - XtSetArg(args[n], XtNforceColumns, True); n++; 660 - XtSetArg(args[n], XtNdefaultColumns, 1); n++; 661 - XtSetArg(args[n], XtNsensitive, canChangeResolution); n++; 662 - XtSetArg(args[n], XtNlist, pdp->widget_resolutionlist); n++; 663 - XtSetArg(args[n], XtNwidth, DEFAULT_WIDTH); n++; 664 - pdp->setup.resolutionlist = XtCreateManagedWidget("resolutionlist", listWidgetClass, listform, args, n); 665 - 666 - n = 0; 667 - XtSetArg(args[n], XtNresizable, True); n++; 668 - XtSetArg(args[n], XtNforceColumns, True); n++; 669 - XtSetArg(args[n], XtNdefaultColumns, 1); n++; 670 - XtSetArg(args[n], XtNsensitive, canChangeOrientation); n++; 671 - XtSetArg(args[n], XtNlist, pdp->widget_orientationlist); n++; 672 - XtSetArg(args[n], XtNwidth, DEFAULT_WIDTH); n++; 673 - pdp->setup.orientationlist = XtCreateManagedWidget("orientationlist", listWidgetClass, listform, args, n); 674 - 675 - n = 0; 676 - XtSetArg(args[n], XtNresizable, True); n++; 677 - XtSetArg(args[n], XtNforceColumns, True); n++; 678 - XtSetArg(args[n], XtNdefaultColumns, 1); n++; 679 - XtSetArg(args[n], XtNsensitive, canChangePlex); n++; 680 - XtSetArg(args[n], XtNlist, pdp->widget_plexlist); n++; 681 - XtSetArg(args[n], XtNwidth, DEFAULT_WIDTH); n++; 682 - pdp->setup.plexlist = XtCreateManagedWidget("plexlist", listWidgetClass, listform, args, n); 683 - 684 - n = 0; 685 - XtSetArg(args[n], XtNresizable, True); n++; 686 - XtSetArg(args[n], XtNforceColumns, True); n++; 687 - XtSetArg(args[n], XtNdefaultColumns, 1); n++; 688 - XtSetArg(args[n], XtNsensitive, True); n++; 689 - XtSetArg(args[n], XtNlist, pdp->widget_colorspacelist); n++; 690 - XtSetArg(args[n], XtNwidth, DEFAULT_WIDTH); n++; 691 - pdp->setup.colorspacelist = XtCreateManagedWidget("colorspacelist", listWidgetClass, listform, args, n); 692 - 693 - n = 0; 694 - XtSetArg(args[n], XtNborderWidth, 0); n++; 695 - XtSetArg(args[n], XtNresizable, False); n++; 696 - XtSetArg(args[n], XtNjustify, XtJustifyRight); n++; 697 - XtSetArg(args[n], XtNwidth, DEFAULT_WIDTH); n++; 698 - XtSetArg(args[n], XtNsensitive, canChangeJobCopies); n++; 699 - pdp->setup.jobcopieslabel = XtCreateManagedWidget("jobcopieslabel", labelWidgetClass, listform, args, n); 700 - 701 - n = 0; 702 - XtSetArg(args[n], XtNstring, "1"); n++; 703 - XtSetArg(args[n], XtNresizable, True); n++; 704 - XtSetArg(args[n], XtNeditType, XawtextEdit); n++; 705 - XtSetArg(args[n], XtNsensitive, canChangeJobCopies); n++; 706 - pdp->setup.jobcopies = XtCreateManagedWidget("jobcopies", asciiTextWidgetClass, listform, args, n); 707 - XtAddCallback(pdp->setup.jobcopies, XtNpositionCallback, printSetupJobCopiesXtProc, pdw); 708 - 709 - n = 0; 710 - pdp->setup.ok = XtCreateManagedWidget("ok", commandWidgetClass, pdp->setup.form, args, n); 711 - XtAddCallback(pdp->setup.ok, XtNcallback, printSetupOKXtProc, pdw); 712 - 713 - n = 0; 714 - pdp->setup.cancel = XtCreateManagedWidget("cancel", commandWidgetClass, pdp->setup.form, args, n); 715 - XtAddCallback(pdp->setup.cancel, XtNcallback, printSetupCancelXtProc, pdw); 716 - 717 - XtRealizeWidget(pdp->setup.popup); 718 - 719 - return pdp->setup.popup; 720 - } 721 - 722 - #undef DEFAULT_WIDTH 723 - #define DEFAULT_WIDTH 150 724 - 725 - static 726 - String *xpprinterlist_to_widget_printerlist(XPPrinterList printerlist, int num_printers) 727 - { 728 - int i; 729 - String *names; 730 - 731 - names = malloc(sizeof(String *) * (num_printers+1)); 732 - if(!names) 733 - return NULL; 734 - 735 - for(i = 0 ; i < num_printers ; i++) 736 - names[i] = printerlist[i].name; 737 - 738 - names[i] = NULL; /* Terminate the list */ 739 - 740 - return names; 741 - } 742 - 743 - static 744 - String *xppaperlist_to_widget_paperlist(XpuMediumSourceSizeList paperlist, int num_papers) 745 - { 746 - int i; 747 - String *names; 748 - 749 - names = malloc(sizeof(String *) * (num_papers+1)); 750 - if (!names) 751 - return NULL; 752 - 753 - for(i = 0 ; i < num_papers ; i++) 754 - names[i] = (char *)paperlist[i].medium_name; /* FixMe: tray selection missing */ 755 - 756 - names[i] = NULL; /* Terminate the list */ 757 - 758 - return names; 759 - } 760 - 761 - static 762 - String *xpresolutionlist_to_widget_resolutionlist(XpuResolutionList reslist, int num_resolutions) 763 - { 764 - int i; 765 - String *names; 766 - 767 - names = malloc(sizeof(String *) * (num_resolutions+1)); 768 - if (!names) 769 - return NULL; 770 - 771 - for(i = 0 ; i < num_resolutions ; i++) 772 - names[i] = (char *)reslist[i].name; 773 - 774 - names[i] = NULL; /* Terminate the list */ 775 - 776 - return names; 777 - } 778 - 779 - static 780 - String *xporientationlist_to_widget_orientationlist(XpuOrientationList orientationlist, int num_orientations) 781 - { 782 - int i; 783 - String *names; 784 - 785 - names = malloc(sizeof(String *) * (num_orientations+1)); 786 - if (!names) 787 - return NULL; 788 - 789 - for(i = 0 ; i < num_orientations ; i++) 790 - names[i] = (char *)orientationlist[i].orientation; 791 - 792 - names[i] = NULL; /* Terminate the list */ 793 - 794 - return names; 795 - } 796 - 797 - static 798 - String *xpplexlist_to_widget_plexlist(XpuPlexList plexlist, int num_plex) 799 - { 800 - int i; 801 - String *names; 802 - 803 - names = malloc(sizeof(String *) * (num_plex+1)); 804 - if(!names) 805 - return NULL; 806 - 807 - for(i = 0 ; i < num_plex ; i++) 808 - names[i] = (char *)plexlist[i].plex; 809 - 810 - names[i] = NULL; /* Terminate the list */ 811 - 812 - return names; 813 - } 814 - 815 - static 816 - String *xpcolorspacelist_to_widget_colorspacelist(XpuColorspaceList colorspacelist, int num_colorspaces) 817 - { 818 - int i; 819 - String *names; 820 - 821 - names = malloc(sizeof(String *) * (num_colorspaces+1)); 822 - if(!names) 823 - return NULL; 824 - 825 - for(i = 0 ; i < num_colorspaces ; i++) 826 - names[i] = (char *)colorspacelist[i].name; 827 - 828 - names[i] = NULL; /* Terminate the list */ 829 - 830 - return names; 831 - } 832 - 833 - static void 834 - printerSelectionPrinterSelectedXtProc(Widget w, XtPointer client_data, XtPointer callData) 835 - { 836 - PrintDialogWidget pdw = (PrintDialogWidget)client_data; 837 - PrintDialogPart *pdp = &pdw->printdialog; 838 - XawListReturnStruct *lrs = (XawListReturnStruct *)callData; 839 - int list_index; 840 - 841 - Log(("## user selected a printer\n")); 842 - 843 - list_index = lrs->list_index; 844 - if (list_index == XAW_LIST_NONE) { 845 - Log(("printerSelectionPrinterSelectedXtProc: Nothing selected.\n")); 846 - return; 847 - } 848 - 849 - Log(("selected printer is '%d'/'%s'/'%s'\n", 850 - list_index, lrs->string, NULLSTR(pdp->printerlist[list_index].name))); 851 - 852 - /* Enable OK button */ 853 - XtVaSetValues(pdp->selectPrinter.ok, XtNsensitive, True, NULL); 854 - } 855 - 856 - static void 857 - printSelectPrinterXtProc(Widget w, XtPointer client_data, XtPointer callData) 858 - { 859 - PrintDialogWidget pdw = (PrintDialogWidget)client_data; 860 - PrintDialogPart *pdp = &pdw->printdialog; 861 - 862 - Log(("## select printer!\n")); 863 - 864 - if (!pdp->selectPrinter.popup) { 865 - if (!buildPrinterSelectionDialog(pdw)) { 866 - Log(("printSelectPrinterXtProc: buildPrinterSelectionDialog failure.\n")); 867 - return; 868 - } 869 - } 870 - 871 - center_popup((Widget)pdw, pdp->selectPrinter.popup); 872 - 873 - XtPopup(pdp->selectPrinter.popup, XtGrabExclusive); 874 - } 875 - 876 - static void 877 - printerSelectionClose(PrintDialogWidget pdw) 878 - { 879 - PrintDialogPart *pdp = &pdw->printdialog; 880 - 881 - if (pdp->selectPrinter.popup) { 882 - XtPopdown(pdp->selectPrinter.popup); 883 - } 884 - } 885 - 886 - static void 887 - printerSelectionOKXtProc(Widget w, XtPointer client_data, XtPointer callData) 888 - { 889 - PrintDialogWidget pdw = (PrintDialogWidget)client_data; 890 - PrintDialogPart *pdp = &pdw->printdialog; 891 - XawListReturnStruct *lrs; 892 - int list_index; 893 - 894 - Log(("## printerSelectionOKXtProc: closing printer selection!\n")); 895 - 896 - /* Copy current selection in printer list widget and open a printer connection */ 897 - lrs = XawListShowCurrent(pdp->selectPrinter.list); 898 - if (!lrs) { 899 - Log(("printerSelectionOKXtProc: |lrs|==NULL\n")); 900 - return; 901 - } 902 - 903 - list_index = lrs->list_index; 904 - if (lrs->list_index == XAW_LIST_NONE) { 905 - Log(("printerSelectionOKXtProc: rs->list_index == XAW_LIST_NONE\n")); 906 - XtFree((char *)lrs); 907 - return; 908 - } 909 - 910 - /* Set printer name and description in main dialog */ 911 - XtVaSetValues(pdp->main.name, XtNlabel, NULLSTR(pdp->printerlist[list_index].name), NULL); 912 - XtVaSetValues(pdp->main.desc, XtNlabel, NULLSTR(pdp->printerlist[list_index].desc), NULL); 913 - 914 - if (pdp->printer_name) 915 - free(pdp->printer_name); 916 - pdp->printer_name = strdup(lrs->string); 917 - 918 - /* Close any outstanding printer connection since user has selected 919 - * a different printer */ 920 - closePrinterConnection(pdw, True); 921 - 922 - printerSelectionClose(pdw); 923 - 924 - XtFree((char *)lrs); 925 - } 926 - 927 - static void 928 - printerSelectionCancelXtProc(Widget w, XtPointer client_data, XtPointer callData) 929 - { 930 - PrintDialogWidget pdw = (PrintDialogWidget)client_data; 931 - Log(("## printerSelectionCancelXtProc: closing printer selection!\n")); 932 - 933 - printerSelectionClose(pdw); 934 - } 935 - 936 - static 937 - Bool buildPrinterSelectionDialog(PrintDialogWidget pdw) 938 - { 939 - PrintDialogPart *pdp = &pdw->printdialog; 940 - 941 - int n; 942 - Arg args[20]; 943 - 944 - n = 0; 945 - XtSetArg(args[n], XtNallowShellResize, True); n++; 946 - pdp->selectPrinter.popup = XtCreatePopupShell("printerselection", transientShellWidgetClass, (Widget)pdw, args, n); 947 - 948 - n = 0; 949 - pdp->selectPrinter.form = XtCreateManagedWidget("form", formWidgetClass, pdp->selectPrinter.popup, args, n); 950 - 951 - n = 0; 952 - XtSetArg(args[n], XtNresizable, True); n++; 953 - XtSetArg(args[n], XtNforceColumns, True); n++; 954 - XtSetArg(args[n], XtNdefaultColumns, 1); n++; 955 - XtSetArg(args[n], XtNlist, pdp->widget_printerlist); n++; 956 - XtSetArg(args[n], XtNwidth, DEFAULT_WIDTH); n++; 957 - pdp->selectPrinter.list = XtCreateManagedWidget("list", listWidgetClass, pdp->selectPrinter.form, args, n); 958 - XtAddCallback(pdp->selectPrinter.list, XtNcallback, printerSelectionPrinterSelectedXtProc, pdw); 959 - 960 - n = 0; 961 - XtSetArg(args[n], XtNsensitive, False); n++; 962 - pdp->selectPrinter.ok = XtCreateManagedWidget("ok", commandWidgetClass, pdp->selectPrinter.form, args, n); 963 - XtAddCallback(pdp->selectPrinter.ok, XtNcallback, printerSelectionOKXtProc, pdw); 964 - 965 - n = 0; 966 - pdp->selectPrinter.cancel = XtCreateManagedWidget("cancel", commandWidgetClass, pdp->selectPrinter.form, args, n); 967 - XtAddCallback(pdp->selectPrinter.cancel, XtNcallback, printerSelectionCancelXtProc, pdw); 968 - 969 - XtRealizeWidget(pdp->selectPrinter.popup); 970 - 971 - return True; 972 - } 973 - 974 - static 975 - void destroyPrinterSelectionDialog(PrintDialogWidget pdw) 976 - { 977 - PrintDialogPart *pdp = &pdw->printdialog; 978 - 979 - if (pdp->selectPrinter.popup) { 980 - XtDestroyWidget(pdp->selectPrinter.popup); 981 - } 982 - 983 - /* |XtDestroyWidget(pdp->setup.popup);| above will recursively destroy 984 - * all children so we only have to reset the pointers here... */ 985 - pdp->selectPrinter.popup = NULL; 986 - pdp->selectPrinter.form = NULL; 987 - pdp->selectPrinter.list = NULL; 988 - pdp->selectPrinter.popup = NULL; 989 - pdp->selectPrinter.cancel = NULL; 990 - } 991 - 992 - /* 993 - * Function: 994 - * createprintdialogchildren 995 - * 996 - * Parameters: 997 - * w - print dialog widget 998 - * 999 - * Description: 1000 - * Creates the print dialog widgets. 1001 - * 1002 - * Note 1003 - * - 1004 - */ 1005 - static void 1006 - createprintdialogchildren(Widget w) 1007 - { 1008 - int n; 1009 - Arg args[20]; 1010 - PrintDialogWidget pdw = (PrintDialogWidget)w; 1011 - PrintDialogPart *pdp = &pdw->printdialog; 1012 - const char *default_printername = NULL, 1013 - *default_printerdesc = NULL; 1014 - Bool has_default_printer = False; 1015 - 1016 - pdp->printerlist = XpuGetPrinterList(NULL, &pdp->num_printers); 1017 - pdp->widget_printerlist = xpprinterlist_to_widget_printerlist(pdp->printerlist, pdp->num_printers); 1018 - 1019 - if (pdp->num_printers > 0) { 1020 - if (pdp->printerlist[0].name && strlen(pdp->printerlist[0].name)) { 1021 - /* XprintUtils moves the default printer to the top */ 1022 - default_printername = pdp->printerlist[0].name; 1023 - default_printerdesc = pdp->printerlist[0].desc; 1024 - pdp->printer_name = strdup(pdp->printerlist[0].name); 1025 - has_default_printer = True; 1026 - } 1027 - } 1028 - else 1029 - { 1030 - PrintMsg(("No Xprint servers could be found.\n" 1031 - "Check whether the XPSERVERLIST environment variable contains any valid Xprint server(s).\n")); 1032 - } 1033 - 1034 - n = 0; 1035 - XtSetArg(args[n], XtNborderWidth, 0); n++; 1036 - pdp->main.form = XtCreateManagedWidget("main", formWidgetClass, (Widget)pdw, args, n); 1037 - 1038 - n = 0; 1039 - pdp->main.innerform = XtCreateManagedWidget("innerform", formWidgetClass, pdp->main.form, args, n); 1040 - 1041 - n = 0; 1042 - XtSetArg(args[n], XtNborderWidth, 0); n++; 1043 - XtSetArg(args[n], XtNresizable, False); n++; 1044 - XtSetArg(args[n], XtNjustify, XtJustifyRight); n++; 1045 - XtSetArg(args[n], XtNwidth, DEFAULT_WIDTH); n++; 1046 - pdp->main.desclabel = XtCreateManagedWidget("desclabel", labelWidgetClass, pdp->main.innerform, args, n); 1047 - 1048 - n = 0; 1049 - XtSetArg(args[n], XtNborderWidth, 0); n++; 1050 - XtSetArg(args[n], XtNresizable, False); n++; 1051 - XtSetArg(args[n], XtNjustify, XtJustifyLeft); n++; 1052 - XtSetArg(args[n], XtNwidth, DEFAULT_INFOLABEL_WIDTH); n++; 1053 - XtSetArg(args[n], XtNlabel, default_printerdesc?default_printerdesc:"-"); n++; 1054 - pdp->main.desc = XtCreateManagedWidget("desc", labelWidgetClass, pdp->main.innerform, args, n); 1055 - 1056 - n = 0; 1057 - XtSetArg(args[n], XtNsensitive, has_default_printer); n++; 1058 - pdp->main.info = XtCreateManagedWidget("info", commandWidgetClass, pdp->main.innerform, args, n); 1059 - /* 1060 - XtAddCallback(pdp->main.info, XtNcallback, printerInfoXtProc, pdw); 1061 - */ 1062 - n = 0; 1063 - XtSetArg(args[n], XtNborderWidth, 0); n++; 1064 - XtSetArg(args[n], XtNresizable, False); n++; 1065 - XtSetArg(args[n], XtNjustify, XtJustifyRight); n++; 1066 - XtSetArg(args[n], XtNwidth, DEFAULT_WIDTH); n++; 1067 - pdp->main.namelabel = XtCreateManagedWidget("namelabel", labelWidgetClass, pdp->main.innerform, args, n); 1068 - 1069 - n = 0; 1070 - XtSetArg(args[n], XtNborderWidth, 0); n++; 1071 - XtSetArg(args[n], XtNresizable, False); n++; 1072 - XtSetArg(args[n], XtNjustify, XtJustifyLeft); n++; 1073 - XtSetArg(args[n], XtNlabel, default_printername?default_printername:"-"); n++; 1074 - XtSetArg(args[n], XtNwidth, DEFAULT_INFOLABEL_WIDTH); n++; 1075 - pdp->main.name = XtCreateManagedWidget("name", labelWidgetClass, pdp->main.innerform, args, n); 1076 - 1077 - n = 0; 1078 - pdp->main.selectprinter = XtCreateManagedWidget("selectprinter", commandWidgetClass, pdp->main.innerform, args, n); 1079 - XtAddCallback(pdp->main.selectprinter, XtNcallback, printSelectPrinterXtProc, pdw); 1080 - 1081 - /* Line: "File selection" */ 1082 - 1083 - n = 0; 1084 - XtSetArg(args[n], XtNborderWidth, 0); n++; 1085 - XtSetArg(args[n], XtNresizable, False); n++; 1086 - XtSetArg(args[n], XtNjustify, XtJustifyRight); n++; 1087 - XtSetArg(args[n], XtNwidth, DEFAULT_WIDTH); n++; 1088 - XtSetArg(args[n], XtNsensitive, False); n++; 1089 - pdp->main.filenamelabel = XtCreateManagedWidget("filenamelabel", labelWidgetClass, pdp->main.innerform, args, n); 1090 - 1091 - n = 0; 1092 - XtSetArg(args[n], XtNborderWidth, 0); n++; 1093 - XtSetArg(args[n], XtNresizable, False); n++; 1094 - XtSetArg(args[n], XtNjustify, XtJustifyLeft); n++; 1095 - XtSetArg(args[n], XtNlabel, "-"); n++; 1096 - XtSetArg(args[n], XtNwidth, DEFAULT_INFOLABEL_WIDTH); n++; 1097 - XtSetArg(args[n], XtNsensitive, False); n++; 1098 - pdp->main.filename = XtCreateManagedWidget("filename", labelWidgetClass, pdp->main.innerform, args, n); 1099 - 1100 - n = 0; 1101 - XtSetArg(args[n], XtNsensitive, False); n++; 1102 - pdp->main.selectfile = XtCreateManagedWidget("selectfile", commandWidgetClass, pdp->main.innerform, args, n); 1103 - XtAddCallback(pdp->main.selectfile, XtNcallback, printSelectFileXtProc, pdw); 1104 - 1105 - /* Line: Misc (Print destination toggles, copy-count etc.)*/ 1106 - n = 0; 1107 - XtSetArg(args[n], XtNstate, True); n++; 1108 - pdp->main.printtoprinter = XtCreateManagedWidget("printtoprinter", toggleWidgetClass, pdp->main.innerform, args, n); 1109 - XtAddCallback(pdp->main.printtoprinter, XtNcallback, printDialogDestXtProc, pdw); 1110 - 1111 - n = 0; 1112 - XtSetArg(args[n], XtNstate, False); n++; 1113 - pdp->main.printtofile = XtCreateManagedWidget("printtofile", toggleWidgetClass, pdp->main.innerform, args, n); 1114 - XtAddCallback(pdp->main.printtofile, XtNcallback, printDialogDestXtProc, pdw); 1115 - 1116 - /* End-of-Inner-Form-Content */ 1117 - 1118 - n = 0; 1119 - XtSetArg(args[n], XtNsensitive, has_default_printer); n++; 1120 - pdp->main.ok = XtCreateManagedWidget("ok", commandWidgetClass, pdp->main.form, args, n); 1121 - XtAddCallback(pdp->main.ok, XtNcallback, printOKXtProc, pdw); 1122 - 1123 - n = 0; 1124 - XtSetArg(args[n], XtNsensitive, has_default_printer); n++; 1125 - pdp->main.setup = XtCreateManagedWidget("setup", commandWidgetClass, pdp->main.form, args, n); 1126 - XtAddCallback(pdp->main.setup, XtNcallback, printSetupXtProc, pdw); 1127 - 1128 - n = 0; 1129 - pdp->main.cancel = XtCreateManagedWidget("cancel", commandWidgetClass, pdp->main.form, args, n); 1130 - XtAddCallback(pdp->main.cancel, XtNcallback, printCancelXtProc, pdw); 1131 - } 1132 - 1133 - /* 1134 - * Class Methods 1135 - */ 1136 - static void XawPrintDialogConstraintInitialize(Widget, Widget, ArgList, Cardinal *); 1137 - static void XawPrintDialogGetValuesHook(Widget, ArgList, Cardinal*); 1138 - static void XawPrintDialogInitialize(Widget, Widget, ArgList, Cardinal*); 1139 - static void XawPrintDialogDestroy(Widget); 1140 - static Boolean XawPrintDialogSetValues(Widget, Widget, Widget, ArgList, Cardinal *); 1141 - 1142 - /* 1143 - * Initialization 1144 - */ 1145 - static XtResource resources[] = { 1146 - { 1147 - XtNicon, 1148 - XtCIcon, 1149 - XtRBitmap, 1150 - sizeof(Pixmap), 1151 - XtOffsetOf(PrintDialogRec, printdialog.icon), 1152 - XtRImmediate, 1153 - 0 1154 - }, 1155 - { 1156 - XawNOkCallback, XtCCallback, XtRCallback, 1157 - sizeof(XtCallbackList), XtOffsetOf(PrintDialogRec, printdialog.ok_callback), 1158 - XtRImmediate, (XtPointer)NULL 1159 - }, 1160 - { 1161 - XawNCancelCallback, XtCCallback, XtRCallback, 1162 - sizeof(XtCallbackList), XtOffsetOf(PrintDialogRec, printdialog.cancel_callback), 1163 - XtRImmediate, (XtPointer)NULL 1164 - }, 1165 - }; 1166 - 1167 - PrintDialogClassRec printdialogClassRec = { 1168 - /* core */ 1169 - { 1170 - (WidgetClass)&formClassRec, /* superclass */ 1171 - "PrintDialog", /* class_name */ 1172 - sizeof(PrintDialogRec), /* widget_size */ 1173 - XawInitializeWidgetSet, /* class_initialize */ 1174 - NULL, /* class_part init */ 1175 - False, /* class_inited */ 1176 - XawPrintDialogInitialize, /* initialize */ 1177 - NULL, /* initialize_hook */ 1178 - XtInheritRealize, /* realize */ 1179 - NULL, /* actions */ 1180 - 0, /* num_actions */ 1181 - resources, /* resources */ 1182 - XtNumber(resources), /* num_resources */ 1183 - NULLQUARK, /* xrm_class */ 1184 - True, /* compress_motion */ 1185 - True, /* compress_exposure */ 1186 - True, /* compress_enterleave */ 1187 - False, /* visible_interest */ 1188 - XawPrintDialogDestroy, /* destroy */ 1189 - XtInheritResize, /* resize */ 1190 - XtInheritExpose, /* expose */ 1191 - XawPrintDialogSetValues, /* set_values */ 1192 - NULL, /* set_values_hook */ 1193 - XtInheritSetValuesAlmost, /* set_values_almost */ 1194 - XawPrintDialogGetValuesHook, /* get_values_hook */ 1195 - NULL, /* accept_focus */ 1196 - XtVersion, /* version */ 1197 - NULL, /* callback_private */ 1198 - NULL, /* tm_table */ 1199 - XtInheritQueryGeometry, /* query_geometry */ 1200 - XtInheritDisplayAccelerator, /* display_accelerator */ 1201 - NULL, /* extension */ 1202 - }, 1203 - /* composite */ 1204 - { 1205 - XtInheritGeometryManager, /* geometry_manager */ 1206 - XtInheritChangeManaged, /* change_managed */ 1207 - XtInheritInsertChild, /* insert_child */ 1208 - XtInheritDeleteChild, /* delete_child */ 1209 - NULL, /* extension */ 1210 - }, 1211 - /* constraint */ 1212 - { 1213 - NULL, /* subresourses */ 1214 - 0, /* subresource_count */ 1215 - sizeof(PrintDialogConstraintsRec), /* constraint_size */ 1216 - XawPrintDialogConstraintInitialize, /* initialize */ 1217 - NULL, /* destroy */ 1218 - NULL, /* set_values */ 1219 - NULL, /* extension */ 1220 - }, 1221 - /* form */ 1222 - { 1223 - XtInheritLayout, /* layout */ 1224 - }, 1225 - /* printdialog */ 1226 - { 1227 - NULL, /* extension */ 1228 - } 1229 - }; 1230 - 1231 - WidgetClass printDialogWidgetClass = (WidgetClass)&printdialogClassRec; 1232 - 1233 - /* 1234 - * Implementation 1235 - */ 1236 - /*ARGSUSED*/ 1237 - static void 1238 - XawPrintDialogInitialize(Widget request, Widget cnew, ArgList args, Cardinal *num_args) 1239 - { 1240 - PrintDialogWidget dw = (PrintDialogWidget)cnew; 1241 - Arg arglist[9]; 1242 - Cardinal arg_cnt = 0; 1243 - 1244 - XtSetArg(arglist[arg_cnt], XtNborderWidth, 0); arg_cnt++; 1245 - XtSetArg(arglist[arg_cnt], XtNleft, XtChainLeft); arg_cnt++; 1246 - 1247 - if (dw->printdialog.icon != (Pixmap)0) { 1248 - XtSetArg(arglist[arg_cnt], XtNbitmap, dw->printdialog.icon); arg_cnt++; 1249 - XtSetArg(arglist[arg_cnt], XtNright, XtChainLeft); arg_cnt++; 1250 - dw->printdialog.iconW = XtCreateManagedWidget("icon", labelWidgetClass, 1251 - cnew, arglist, arg_cnt); 1252 - arg_cnt = 2; 1253 - XtSetArg(arglist[arg_cnt], XtNfromHoriz, dw->printdialog.iconW); arg_cnt++; 1254 - } 1255 - else { 1256 - dw->printdialog.iconW = NULL; 1257 - } 1258 - 1259 - createprintdialogchildren((Widget)dw); 1260 - } 1261 - 1262 - /*ARGSUSED*/ 1263 - static void 1264 - XawPrintDialogConstraintInitialize(Widget request, Widget cnew, 1265 - ArgList args, Cardinal *num_args) 1266 - { 1267 - PrintDialogWidget dw = (PrintDialogWidget)cnew->core.parent; 1268 - PrintDialogConstraints constraint = (PrintDialogConstraints)cnew->core.constraints; 1269 - 1270 - if (!XtIsSubclass(cnew, commandWidgetClass)) /* if not a button */ 1271 - return; /* then just use defaults */ 1272 - 1273 - constraint->form.left = constraint->form.right = XtChainLeft; 1274 - constraint->form.vert_base = dw->printdialog.main.form; 1275 - 1276 - if (dw->composite.num_children > 1) { 1277 - WidgetList children = dw->composite.children; 1278 - Widget *childP; 1279 - 1280 - for (childP = children + dw->composite.num_children - 1; 1281 - childP >= children; childP-- ) { 1282 - if (*childP == dw->printdialog.main.form) 1283 - break; 1284 - if (XtIsManaged(*childP) && 1285 - XtIsSubclass(*childP, commandWidgetClass)) { 1286 - constraint->form.horiz_base = *childP; 1287 - break; 1288 - } 1289 - } 1290 - } 1291 - } 1292 - 1293 - #define ICON 0 1294 - #define NUM_CHECKS 1 1295 - /*ARGSUSED*/ 1296 - static Boolean 1297 - XawPrintDialogSetValues(Widget current, Widget request, Widget cnew, 1298 - ArgList in_args, Cardinal *in_num_args) 1299 - { 1300 - PrintDialogWidget w = (PrintDialogWidget)cnew; 1301 - PrintDialogWidget old = (PrintDialogWidget)current; 1302 - Arg args[5]; 1303 - unsigned int i; 1304 - Bool checks[NUM_CHECKS]; 1305 - 1306 - for (i = 0; i < NUM_CHECKS; i++) 1307 - checks[i] = False; 1308 - 1309 - for (i = 0; i < *in_num_args; i++) { 1310 - if (!strcmp(XtNicon, in_args[i].name)) 1311 - checks[ICON] = True; 1312 - } 1313 - 1314 - if (checks[ICON]) { 1315 - if (w->printdialog.icon != 0) { 1316 - XtSetArg(args[0], XtNbitmap, w->printdialog.icon); 1317 - if (old->printdialog.iconW != NULL) { 1318 - XtSetValues(old->printdialog.iconW, args, 1); 1319 - } 1320 - else { 1321 - XtSetArg(args[1], XtNborderWidth, 0); 1322 - XtSetArg(args[2], XtNleft, XtChainLeft); 1323 - XtSetArg(args[3], XtNright, XtChainLeft); 1324 - w->printdialog.iconW = XtCreateWidget("icon", labelWidgetClass, 1325 - cnew, args, 4); 1326 - XtManageChild(w->printdialog.iconW); 1327 - } 1328 - } 1329 - else if (old->printdialog.icon != 0) { 1330 - XtDestroyWidget(old->printdialog.iconW); 1331 - w->printdialog.iconW = NULL; 1332 - } 1333 - } 1334 - 1335 - return True; 1336 - } 1337 - 1338 - /* 1339 - * Function: 1340 - * XawPrintDialogGetValuesHook 1341 - * 1342 - * Parameters: 1343 - * w - Print Dialog Widget 1344 - * args - argument list 1345 - * num_args - number of args 1346 - * 1347 - * Description: 1348 - * This is a get values hook routine that gets the values in the dialog. 1349 - */ 1350 - static void 1351 - XawPrintDialogGetValuesHook(Widget w, ArgList args, Cardinal *num_args) 1352 - { 1353 - /* NO-OP for now */ 1354 - } 1355 - 1356 - static void 1357 - XawPrintDialogDestroy(Widget w) 1358 - { 1359 - PrintDialogWidget pdw = (PrintDialogWidget)w; 1360 - Log(("# XawPrintDialogDestroy: start.\n")); 1361 - 1362 - destroyPrintSetupDialog(pdw); 1363 - destroyPrinterSelectionDialog(pdw); 1364 - closePrinterConnection(pdw, True); 1365 - 1366 - Log(("# XawPrintDialogDestroy: done.\n")); 1367 - } 1368 - 1369 - /* 1370 - * Function: 1371 - * XawPrintDialogClosePrinterConnection 1372 - * 1373 - * Parameters: 1374 - * w - Print Dialog Widget 1375 - * closeDisplay - Boolean which decides whether |Display *| 1376 - * and |XPContext| should be disposed, too. 1377 - * 1378 - * Description: 1379 - * The print display connection is owned by the print dialog 1380 - * by default. 1381 - * If the application wishes to close the display connection 1382 - * to the print server, either to close it itself or force 1383 - * a disconnection for other reasons this function can be used. 1384 - * 1385 - * Notes 1386 - * 1. PUBLIC API 1387 - * 2. After this function returns all resources returned by the 1388 - * print dialog which are related to the status of the printer 1389 - * connection are stale. 1390 - */ 1391 - void 1392 - XawPrintDialogClosePrinterConnection(Widget w, Bool closeDisplay) 1393 - { 1394 - closePrinterConnection((PrintDialogWidget)w, closeDisplay); 1395 - } 1396 -
-70
app/xmore/printdialog.h
··· 1 - /* 2 - * $Xorg: printdialog.h,v 1.1 2004/04/30 02:05:54 gisburn Exp $ 3 - * 4 - Copyright 2004 Roland Mainz <roland.mainz@nrubsig.org> 5 - 6 - Permission to use, copy, modify, distribute, and sell this software and its 7 - documentation for any purpose is hereby granted without fee, provided that 8 - the above copyright notice appear in all copies and that both that 9 - copyright notice and this permission notice appear in supporting 10 - documentation. 11 - 12 - The above copyright notice and this permission notice shall be included in 13 - all copies or substantial portions of the Software. 14 - 15 - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 - OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 19 - AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 - CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 - 22 - Except as contained in this notice, the name of The Open Group shall not be 23 - used in advertising or otherwise to promote the sale, use or other dealings 24 - in this Software without prior written authorization from The Open Group. 25 - * 26 - */ 27 - 28 - #ifndef XMORE_PRINTDIALOG_H 29 - #define XMORE_PRINTDIALOG_H 1 30 - 31 - #include <X11/Intrinsic.h> 32 - #include <X11/StringDefs.h> 33 - #include <X11/Shell.h> 34 - #include <X11/Xaw/Print.h> 35 - #include <X11/Xaw/Cardinals.h> 36 - #include <X11/Xaw/Form.h> 37 - #include <X11/XprintUtil/xprintutil.h> 38 - 39 - /* Resources: 40 - NOT WRITTEN YET 41 - */ 42 - 43 - #define XtCIcon "Icon" 44 - #define XtNicon "icon" 45 - 46 - #define XawNOkCallback "okCallback" 47 - #define XawNCancelCallback "cancelCallback" 48 - 49 - typedef struct 50 - { 51 - Display *pdpy; 52 - XPContext pcontext; 53 - const char *printToFileName; 54 - Boolean printToFile; 55 - XpuColorspaceRec *colorspace; 56 - } XawPrintDialogCallbackStruct; 57 - 58 - typedef struct _PrintDialogClassRec *PrintDialogWidgetClass; 59 - typedef struct _PrintDialogRec *PrintDialogWidget; 60 - 61 - extern WidgetClass printDialogWidgetClass; 62 - 63 - _XFUNCPROTOBEGIN 64 - 65 - /* Prototypes */ 66 - void XawPrintDialogClosePrinterConnection(Widget w, Bool closeDisplay); 67 - 68 - _XFUNCPROTOEND 69 - 70 - #endif /* !XMORE_PRINTDIALOG_H */
+5 -140
app/xmore/xmore.c
··· 41 41 42 42 #include "xmore.h" 43 43 44 - #ifdef USE_XPRINT 45 - 46 - #include "printdialog.h" 47 - #include "print.h" 48 - 49 - #endif 50 - 51 44 #include <stdlib.h> 52 45 #include <stdio.h> 53 46 #include <limits.h> ··· 60 53 #define Log(x) { if (userOptions.verbose) printf x; } 61 54 62 55 /* Global vars */ 63 - static Widget printdialog_shell = NULL; 64 - static Widget printdialog = NULL; 65 56 static Widget toplevel = NULL; 66 57 static Widget text = NULL; 67 - static char printJobNameBuffer[PATH_MAX+256]; 68 58 static const char *ProgramName; /* program name (from argv[0]) */ 69 59 static const char *viewFileName; /* file to browse (from argv[1]) */ 70 60 71 61 /* prototypes */ 72 62 static void quitAction(Widget w, XEvent *event, String *params, Cardinal *num_params); 73 63 static void quitXtProc(Widget w, XtPointer client_data, XtPointer callData); 74 - #ifdef USE_XPRINT 75 - static void printAction(Widget w, XEvent *event, String *params, Cardinal *num_params); 76 - static void printXtProc(Widget w, XtPointer client_data, XtPointer callData); 77 - #endif 78 64 79 65 static XrmOptionDescRec options[] = { 80 66 { ··· 84 70 85 71 static XtActionsRec actions[] = { 86 72 { "quit", quitAction }, 87 - #ifdef USE_XPRINT 88 - { "print", printAction } 89 - #endif 90 73 }; 91 74 92 75 /* See xmore.h */ 93 - XMoreResourceData userOptions; 76 + static XMoreResourceData userOptions; 94 77 95 78 #define Offset(field) XtOffsetOf(XMoreResourceData, field) 96 79 97 - XtResource resources[] = { 80 + static XtResource resources[] = { 98 81 {"verbose", "Verbose", XtRBoolean, sizeof(Boolean), Offset(verbose), XtRImmediate, (XtPointer)False}, 99 82 {"textfont", XtCFont, XtRFontSet, sizeof(XFontSet), Offset(textfont), XtRString, STANDARDFONT}, 100 83 }; 101 84 102 85 103 - String fallback_resources[] = { 86 + static String fallback_resources[] = { 104 87 #ifdef NOTYET 105 88 "*iconPixmap: xmore32", 106 89 "*iconMask: xmore32", ··· 119 102 "\t<Key>Return: scroll-one-line-up()\\n\\" 120 103 "\t<Key>J: scroll-one-line-up()\\n\\" 121 104 "\t<Key>E: scroll-one-line-up()\\n\\" 122 - "\t<Key>p: print()\\n\\" 123 105 "\t<Key>q: quit()\\n", 124 106 "*text.baseTranslations: #override \\n\\" 125 107 "\t<Key>space: next-page()\\n\\" ··· 130 112 "\t<Key>Return: scroll-one-line-up()\\n\\" 131 113 "\t<Key>J: scroll-one-line-up()\\n\\" 132 114 "\t<Key>E: scroll-one-line-up()\\n\\" 133 - "\t<Key>p: print()\\n\\" 134 115 "\t<Key>q: quit()\\n", 135 116 NULL, 136 117 }; ··· 147 128 XtCallActionProc(w, "quit", NULL, NULL, 0); 148 129 } 149 130 150 - static void 151 - printshellDestroyXtProc(Widget w, XtPointer client_data, XtPointer callData) 152 - { 153 - XawPrintDialogClosePrinterConnection(printdialog, False); 154 - } 155 - 156 - #ifdef USE_XPRINT 157 - 158 - static void 159 - printOKXtProc(Widget w, XtPointer client_data, XtPointer callData) 160 - { 161 - XawPrintDialogCallbackStruct *pdcs = (XawPrintDialogCallbackStruct *)callData; 162 - Cardinal n; 163 - Arg args[2]; 164 - Widget textsource; 165 - 166 - Log(("printOKXtProc: OK.\n")); 167 - 168 - /* Get TextSource object */ 169 - n = 0; 170 - XtSetArg(args[n], XtNtextSource, &textsource); n++; 171 - XtGetValues(text, args, n); 172 - 173 - Assertion(textsource != NULL, (("printOKXtProc: textsource == NULL.\n"))); 174 - 175 - /* ||printJobNameBuffer| must live as long the print job prints 176 - * because it is used for the job title AND the page headers... */ 177 - sprintf(printJobNameBuffer, "XMore print job %s", viewFileName); 178 - 179 - DoPrintTextSource(ProgramName, 180 - textsource, toplevel, 181 - pdcs->pdpy, pdcs->pcontext, pdcs->colorspace, 182 - printshellDestroyXtProc, 183 - printJobNameBuffer, 184 - pdcs->printToFile?pdcs->printToFileName:NULL); 185 - 186 - XtPopdown(printdialog_shell); 187 - } 188 - 189 - static void 190 - printCancelXtProc(Widget w, XtPointer client_data, XtPointer callData) 191 - { 192 - Log(("printCancelXtProc: cancel.\n")); 193 - XtPopdown(printdialog_shell); 194 - 195 - Log(("destroying print dialog shell...\n")); 196 - XtDestroyWidget(printdialog_shell); 197 - printdialog_shell = NULL; 198 - printdialog = NULL; 199 - Log(("... done\n")); 200 - } 201 - 202 - static void 203 - printXtProc(Widget w, XtPointer client_data, XtPointer callData) 204 - { 205 - XtCallActionProc(toplevel, "print", NULL, NULL, 0); 206 - } 207 - 208 - static void 209 - printAction(Widget w, XEvent *event, String *params, Cardinal *num_params) 210 - { 211 - Dimension width, height; 212 - Position x, y; 213 - Widget parent = toplevel; 214 - Log(("print!\n")); 215 - 216 - if (!printdialog) { 217 - int n; 218 - Arg args[20]; 219 - 220 - n = 0; 221 - XtSetArg(args[n], XtNallowShellResize, True); n++; 222 - printdialog_shell = XtCreatePopupShell("printdialogshell", 223 - transientShellWidgetClass, 224 - toplevel, args, n); 225 - n = 0; 226 - printdialog = XtCreateManagedWidget("printdialog", printDialogWidgetClass, 227 - printdialog_shell, args, n); 228 - XtAddCallback(printdialog, XawNOkCallback, printOKXtProc, NULL); 229 - XtAddCallback(printdialog, XawNCancelCallback, printCancelXtProc, NULL); 230 - 231 - XtRealizeWidget(printdialog_shell); 232 - } 233 - 234 - /* Center dialog */ 235 - XtVaGetValues(printdialog_shell, 236 - XtNwidth, &width, 237 - XtNheight, &height, 238 - NULL); 239 - 240 - x = (Position)(XWidthOfScreen( XtScreen(parent)) - width) / 2; 241 - y = (Position)(XHeightOfScreen(XtScreen(parent)) - height) / 3; 242 - 243 - XtVaSetValues(printdialog_shell, 244 - XtNx, x, 245 - XtNy, y, 246 - NULL); 247 - 248 - XtPopup(printdialog_shell, XtGrabNonexclusive); 249 - } 250 - 251 - #endif 252 - 253 131 int main( int argc, char *argv[] ) 254 132 { 255 133 XtAppContext app; 256 134 Widget form; 257 - Widget printbutton; 258 135 Widget quitbutton; 259 136 int n; 260 137 Arg args[8]; ··· 292 169 XtSetArg(args[n], XtNfontSet, userOptions.textfont); n++; 293 170 text = XtCreateManagedWidget("text", asciiTextWidgetClass, form, args, n); 294 171 295 - #ifdef USE_XPRINT 296 172 n = 0; 297 - XtSetArg(args[n], XtNfromHoriz, NULL); n++; 298 - XtSetArg(args[n], XtNfromVert, text); n++; 299 - XtSetArg(args[n], XtNlabel, "Print..."); n++; 300 - printbutton = XtCreateManagedWidget("print", commandWidgetClass, form, args, n); 301 - XtAddCallback(printbutton, XtNcallback, printXtProc, 0); 302 - #endif 303 - 304 - n = 0; 305 - XtSetArg(args[n], XtNfromHoriz, printbutton); n++; 173 + XtSetArg(args[n], XtNfromHoriz, NULL); n++; 306 174 XtSetArg(args[n], XtNfromVert, text); n++; 307 175 XtSetArg(args[n], XtNlabel, "Quit"); n++; 308 176 quitbutton = XtCreateManagedWidget("quit", commandWidgetClass, form, args, n); 309 - XtAddCallback(quitbutton, XtNcallback, quitXtProc, 0); 177 + XtAddCallback(quitbutton, XtNcallback, quitXtProc, NULL); 310 178 311 - printdialog_shell = NULL; 312 - printdialog = NULL; 313 - 314 179 XtRealizeWidget(toplevel); 315 180 316 181 XtAppMainLoop(app);
-7
app/xmore/xmore.man
··· 12 12 .ad b 13 13 .SH DESCRIPTION 14 14 xmore is a plain text browser. 15 - .SH ENVIRONMENT 16 - .TP 17 - \fBXPSERVERLIST\fR 18 - \fB${XPSERVERLIST}\fR must be set, 19 - identifying the available Xprint servers. 20 - See \fBXprint\fR(__miscmansuffix__) 21 - for more details. 22 15 .SH "SEE ALSO" 23 16 \fBX11\fR(__miscmansuffix__), \fBxman\fR(__appmansuffix__)
-19
app/xmore/xmore.sgml
··· 38 38 39 39 </refsect1> 40 40 41 - <refsect1> 42 - <title>ENVIRONMENT</title> 43 - <variablelist> 44 - <varlistentry> 45 - <term><envar>XPSERVERLIST</envar> 46 - </term> 47 - <listitem> 48 - <para> 49 - <envar>${XPSERVERLIST}</envar> must be set, 50 - identifying the available Xprint servers. 51 - See <citerefentry><refentrytitle>Xprint</refentrytitle><manvolnum>__miscmansuffix__</manvolnum></citerefentry> 52 - for more details. 53 - </para> 54 - </listitem> 55 - </varlistentry> 56 - </variablelist> 57 - </refsect1> 58 - 59 41 <!-- not yet 60 42 <refsect1> 61 43 <title>KNOWN BUGS</title> ··· 71 53 <!-- specific references --> 72 54 <!-- none --> 73 55 74 - <!-- Xprint general references --> 75 56 <member><citerefentry><refentrytitle>X11</refentrytitle><manvolnum>__miscmansuffix__</manvolnum></citerefentry></member> 76 57 <member><citerefentry><refentrytitle>xman</refentrytitle><manvolnum>__appmansuffix__</manvolnum></citerefentry></member> 77 58 </simplelist>