[sane-devel] sane-backends/lib/getopt.c compiling on OS/2

Mattias Ellert mattias.ellert@tsl.uu.se
Wed, 06 Jul 2005 12:31:11 +0200


--=-xxoVopfl9ikfNlv+Vwa4
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Sun, 2005-07-03 at 15:10 +0200, Henning Meier-Geinitz wrote:

> getopt.c is compiled and linked unconditionally on all platforms as
> far as I can see. As this works on all the other platforms there must
> be something different on OS/2.
>=20
> You could try to move getopt and getopt_long to AC_REPLACE_FUNCS in
> configure.in and modify lib/Makefile.in accordingly. But I haven't
> checked all the implications of that. Maybe linking the getopt code
> was done intentionally.

You shouldn't have to do this. If the compiler finds that the glibc has
the right getopt version all the code in getopt.c is removed by the
#ifndef ELIDE_CODE conditional and it creates an empty getopt.o.

	Mattias


--=-xxoVopfl9ikfNlv+Vwa4
Content-Type: application/x-pkcs7-signature; name=smime.p7s
Content-Disposition: attachment; filename=smime.p7s
Content-Transfer-Encoding: base64

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIGbDCCAzIw
ggKboAMCAQICAgRqMA0GCSqGSIb3DQEBBAUAME8xDTALBgNVBAoTBEdyaWQxEjAQBgNVBAoTCU5v
cmR1R3JpZDEqMCgGA1UEAxMhTm9yZHVHcmlkIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTA1
MDQyOTE0MDMzMFoXDTA2MDQyOTE0MDMzMFowUDENMAsGA1UEChMER3JpZDESMBAGA1UEChMJTm9y
ZHVHcmlkMRIwEAYDVQQLEwl0c2wudXUuc2UxFzAVBgNVBAMTDk1hdHRpYXMgRWxsZXJ0MIGfMA0G
CSqGSIb3DQEBAQUAA4GNADCBiQKBgQDAvfOgojs2NG75FpsOGa0zGOWo+E0CVrTByLd3nC5/ND9Y
vghvxoZOtrIugGg5ucNgY/I3Cw6xUILsUbwE+Gi/AbQyKn5kbmUBsOKSnGzdO4pL1UM/4AbBdMo8
3iuBA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