>From sane-devel-owner@mostang.com Wed Dec 20 09:43:41 2000
Received: from mcqueen.wolfsburg.de (root@pns.wobline.de [212.68.68.5])
by panda.mostang.com (8.9.3/8.9.3) with ESMTP id JAA00414
for <sane-devel@mostang.com>; Wed, 20 Dec 2000 09:43:38 -0800
Received: from Babylon6.olis-domain.de (root@ppp-8.wobline.de [212.68.69.8])
by mcqueen.wolfsburg.de (8.9.3/8.9.1/tw-2001129) with ESMTP id SAA00658
for <sane-devel@mostang.com>; Wed, 20 Dec 2000 18:53:04 +0100
Received: from wolfsburg.de (oli@localhost [127.0.0.1]) by Babylon6.olis-domain.de (8.9.3/8.7.3) with ESMTP id SAA00933 for <sane-devel@mostang.com>; Wed, 20 Dec 2000 18:40:45 +0100
Sender: Oliver.Rauch@wolfsburg.de
Message-ID: <3A40EF1D.31E4FE9F@wolfsburg.de>
Date: Wed, 20 Dec 2000 18:40:45 +0100
From: Oliver Rauch <oliver.rauch@wolfsburg.de>
X-Mailer: Mozilla 4.6 [en] (X11; I; Linux 2.2.11 i586)
X-Accept-Language: de
MIME-Version: 1.0
To: sane-devel@mostang.com
Subject: Re: xsane-0.68 and xsane-win32-0.68 available
References: <Pine.LNX.4.21.BCL.0012172236380.2407-100000@router.KAHTEP.com>
Content-Type: multipart/mixed;
boundary="------------B174B54DE8CA36D3B429A95D"
This is a multi-part message in MIME format.
--------------B174B54DE8CA36D3B429A95D
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Eugene Kanter wrote:
>
> Compilation of xsane gimp plugin on Red Hat 7 impossible because test case
> does not take in effect GTK_CFLAGS
>
> checking for SANE - version >= 1.0.0... yes
> checking for gtk-config... (cached) /usr/bin/gtk-config
> checking for GTK - version >= 1.2.0... yes
> checking for gimp-config... (cached) /usr/bin/gimp-config
> checking for GIMP - version >= 1.0.0... no
> *** Could not run GIMP test program, checking why...
>
> configure:4438: checking for GIMP - version >= 1.0.0
> configure:4528: gcc -o conftest -g -O2 -Wall -I/usr/include -D_GNU_SOURCE
> conftest.c -ltiff -ljpeg -lz -lm -L/usr/lib -lgimp 1>&5
> In file included from /usr/include/libgimp/gimp.h:25,
> from configure:4450:
> /usr/include/glib.h:66:24: glibconfig.h: No such file or directory
>
> the -I/usr/lib/glib/include is missing from command line.
>
Hi Eugene,
the gtk flags are used like expected,
but I used a bad option for gimp-config.
Please try this configure script.
Bye
Oliver
-- Homepage: http://www.wolfsburg.de/~rauch sane-umax: http://www.wolfsburg.de/~rauch/sane/sane-umax.html xsane: http://www.wolfsburg.de/~rauch/sane/sane-xsane.html E-Mail: mailto:Oliver.Rauch@Wolfsburg.DE --------------B174B54DE8CA36D3B429A95D Content-Type: application/octet-stream; name="configure" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="configure"IyEgL2Jpbi9zaAoKIyBHdWVzcyB2YWx1ZXMgZm9yIHN5c3RlbS1kZXBlbmRlbnQgdmFyaWFi bGVzIGFuZCBjcmVhdGUgTWFrZWZpbGVzLgojIEdlbmVyYXRlZCBhdXRvbWF0aWNhbGx5IHVz aW5nIGF1dG9jb25mIHZlcnNpb24gMi4xMyAKIyBDb3B5cmlnaHQgKEMpIDE5OTIsIDkzLCA5 NCwgOTUsIDk2IEZyZWUgU29mdHdhcmUgRm91bmRhdGlvbiwgSW5jLgojCiMgVGhpcyBjb25m aWd1cmUgc2NyaXB0IGlzIGZyZWUgc29mdHdhcmU7IHRoZSBGcmVlIFNvZnR3YXJlIEZvdW5k YXRpb24KIyBnaXZlcyB1bmxpbWl0ZWQgcGVybWlzc2lvbiB0byBjb3B5LCBkaXN0cmlidXRl IGFuZCBtb2RpZnkgaXQuCgojIERlZmF1bHRzOgphY19oZWxwPQphY19kZWZhdWx0X3ByZWZp eD0vdXNyL2xvY2FsCiMgQW55IGFkZGl0aW9ucyBmcm9tIGNvbmZpZ3VyZS5pbjoKYWNfaGVs cD0iJGFjX2hlbHAKICAtLWRpc2FibGUtZ2ltcCAgICAgICAgICBkbyBub3QgaW5jbHVkZSBH SU1Q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nNpIC1zdGQxICItQWEgLURfSFBV WF9TT1VSQ0UiICItWGMgLURfX0VYVEVOU0lPTlNfXwoiCmRvCiAgQ0M9IiRhY19zYXZlX0ND ICRhY19hcmciCiAgY2F0ID4gY29uZnRlc3QuJGFjX2V4dCA8PEVPRgojbGluZSAxMDY2ICJj b25maWd1cmUiCiNpbmNsdWRlICJjb25mZGVmcy5oIgojaW5jbHVkZSA8c3RkYXJnLmg+CiNp bmNsdWRlIDxzdGRpby5oPgojaW5jbHVkZSA8c3lzL3R5cGVzLmg+CiNpbmNsdWRlIDxzeXMv c3RhdC5oPgovKiBNb3N0IG9mIHRoZSBmb2xsb3dpbmcgdGVzdHMgYXJlIHN0b2xlbiBmcm9t IFJDUyA1LjcncyBzcmMvY29uZi5zaC4gICovCnN0cnVjdCBidWYgeyBpbnQgeDsgfTsKRklM RSAqICgqcmNzb3BlbikgKHN0cnVjdCBidWYgKiwgc3RydWN0IHN0YXQgKiwgaW50KTsKc3Rh dGljIGNoYXIgKmUgKHAsIGkpCiAgICAgY2hhciAqKnA7CiAgICAgaW50IGk7CnsKICByZXR1 cm4gcFtpXTsKfQpzdGF0aWMgY2hhciAqZiAoY2hhciAqICgqZykgKGNoYXIgKiosIGludCks IGNoYXIgKipwLCAuLi4pCnsKICBjaGFyICpzOwogIHZhX2xpc3QgdjsKICB2YV9zdGFydCAo dixwKTsKICBzID0gZyAocCwgdmFfYXJnICh2LGludCkpOwogIHZhX2VuZCAodik7CiAgcmV0 dXJuIHM7Cn0gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaW50IHRlc3QgKGludCBpLCBkb3Vi bGUgeCk7CnN0cnVjdCBzMSB7aW50ICgqZikgKGludCBhKTt9OwpzdHJ1Y3QgczIge2ludCAo KmYpIChkb3VibGUgYSk7fTsKaW50IHBhaXJuYW1lcyAoaW50LCBjaGFyICoqLCBGSUxFICoo Kikoc3RydWN0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nRsL2xpYmdldHRleHQuaAog ICAgZmkKCiAgICAjIElmIHRoaXMgaXMgdXNlZCBpbiBHTlUgZ2V0dGV4dCB3ZSBoYXZlIHRv IHNldCBVU0VfTkxTIHRvIGB5ZXMnCiAgICAjIGJlY2F1c2Ugc29tZSBvZiB0aGUgc291cmNl cyBhcmUgb25seSBidWlsdCBmb3IgdGhpcyBnb2FsLgogICAgaWYgdGVzdCAiJFBBQ0tBR0Ui ID0gZ2V0dGV4dDsgdGhlbgogICAgICBVU0VfTkxTPXllcwogICAgICBVU0VfSU5DTFVERURf TElCSU5UTD15ZXMKICAgIGZpCgogICAgICAgICAgICAgICAgZm9yIGxhbmcgaW4gJEFMTF9M SU5HVUFTOyBkbwogICAgICBHTU9GSUxFUz0iJEdNT0ZJTEVTICRsYW5nLmdtbyIKICAgICAg UE9GSUxFUz0iJFBPRklMRVMgJGxhbmcucG8iCiAgICBkb25lCgogICAgICAgIAogICAgCiAg ICAKICAgIAogICAgCiAgICAKICAgIAogICAgCiAgICAKICAgIAogICAgCiAgCgogICBpZiB0 ZXN0ICJ4JENBVE9CSkVYVCIgIT0gIngiOyB0aGVuCiAgICAgaWYgdGVzdCAieCRBTExfTElO R1VBUyIgPSAieCI7IHRoZW4KICAgICAgIExJTkdVQVM9CiAgICAgZWxzZQogICAgICAgZWNo byAkYWNfbiAiY2hlY2tpbmcgZm9yIGNhdGFsb2dzIHRvIGJlIGluc3RhbGxlZCIiLi4uICRh Y19jIiAxPiY2CmVjaG8gImNvbmZpZ3VyZTozNjc0OiBjaGVja2luZyBmb3IgY2F0YWxvZ3Mg dG8gYmUgaW5zdGFsbGVkIiA+JjUKICAgICAgIE5FV19MSU5HVUFTPQogICAgICAgZm9yIGxh bmcgaW4gJHtMSU5HVUFTPSRBTExfTElOR1VBU307IGRvCiAgICAgICAgIGNhc2UgIiRBTExf TElOR1VBUyIgaW4KICAgICAgICAgICokbGFuZyopIE5FV19MSU5HVUFTPSIkTkVXX0xJTkdV QVMgJGxhb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W14v XSolLi4vJWcnYAogIGVsc2UKICAgIGFjX2Rlc3RfZGlyX3N1ZmZpeD0gYWNfZG90cz0KICBm aQoKICBjYXNlICIkc3JjZGlyIiBpbgogIFsvJF0qKSBhY19yZWxfc291cmNlPSIkc3JjZGly LyRhY19zb3VyY2UiIDs7CiAgKikgYWNfcmVsX3NvdXJjZT0iJGFjX2RvdHMkc3JjZGlyLyRh Y19zb3VyY2UiIDs7CiAgZXNhYwoKICAjIE1ha2UgYSBzeW1saW5rIGlmIHBvc3NpYmxlOyBv dGhlcndpc2UgdHJ5IGEgaGFyZCBsaW5rLgogIGlmIGxuIC1zICRhY19yZWxfc291cmNlICRh Y19kZXN0IDI+L2Rldi9udWxsIHx8CiAgICBsbiAkc3JjZGlyLyRhY19zb3VyY2UgJGFjX2Rl c3Q7IHRoZW4gOgogIGVsc2UKICAgIHsgZWNobyAiY29uZmlndXJlOiBlcnJvcjogY2FuIG5v dCBsaW5rICRhY19kZXN0IHRvICRzcmNkaXIvJGFjX3NvdXJjZSIgMT4mMjsgZXhpdCAxOyB9 CiAgZmkKZG9uZQpFT0YKY2F0ID4+ICRDT05GSUdfU1RBVFVTIDw8RU9GCgpFT0YKY2F0ID4+ ICRDT05GSUdfU1RBVFVTIDw8XEVPRgoKZXhpdCAwCkVPRgpjaG1vZCAreCAkQ09ORklHX1NU QVRVUwpybSAtZnIgY29uZmRlZnMqICRhY19jbGVhbl9maWxlcwp0ZXN0ICIkbm9fY3JlYXRl IiA9IHllcyB8fCAke0NPTkZJR19TSEVMTC0vYmluL3NofSAkQ09ORklHX1NUQVRVUyB8fCBl eGl0IDEKCgplY2hvICIqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq KioqKioqKioqKioqKioqKioqKioqKioqIgplY2hvICIqICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAqIgplY2hvICIqIFhT QU5FIGNvbmZpZ3VyZSBzdGF0dXM6ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAqIgplY2hvICIqIC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAqIgoKaWYgdGVzdCAiJHtVU0VfTkxTfSIgPSAieWVz IjsgdGhlbgogIGlmIHRlc3QgIiRVU0VfSU5DTFVERURfTElCSU5UTCIgPSB5ZXM7IHRoZW4K ICAgIGVjaG8gIiogLSBOTFMgYWN0aXZhdGVkIChwYWNrYWdlIGludGVybmFsKSAgICAgICAg ICAgICAgICAgICAgICAgICAgICoiCiAgZWxzZQogICAgZWNobyAiKiAtIE5MUyBhY3RpdmF0 ZWQgKGV4dGVybmFsKSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKiIKICBm aQplbHNlCiAgZWNobyAiKiAtIE5MUyBkZWFjdGl2YXRlZCAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgKiIKZmkKCmlmIHRlc3QgIiR7R0lNUF9MSUJTfXNl dCIgIT0gInNldCI7IHRoZW4KICBlY2hvICIqIC0gR0lNUCBwbHVnaW4gIGFjdGl2YXRlZCAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAqIgplbHNlCiAgZWNobyAiKiAt IEdJTVAgcGx1Z2luICBkZWFjdGl2YXRlZCAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgKiIKZmkKCmlmIHRlc3QgIiR7YWNfY3ZfbGliX2pwZWdfanBlZ19zdGFydF9kZWNv bXByZXNzfSIgPSAieWVzIjsgdGhlbgogIGVjaG8gIiogLSBKUEVHIHN1cHBvcnQgYWN0aXZh dGVkICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICoiCmVsc2UKICBlY2hv ICIqIC0gSlBFRyBzdXBwb3J0IGRlYWN0aXZhdGVkICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAqIgpmaQoKaWYgdGVzdCAiJHthY19jdl9saWJfdGlmZl9USUZGT3Blbn0i ID0gInllcyI7IHRoZW4KICBlY2hvICIqIC0gVElGRiBzdXBwb3J0IGFjdGl2YXRlZCAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAqIgplbHNlCiAgZWNobyAiKiAtIFRJ RkYgc3VwcG9ydCBkZWFjdGl2YXRlZCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgKiIKZmkKCmlmIHRlc3QgIiR7YWNfY3ZfbGliX3BuZ19wbmdfY3JlYXRlX2luZm9fc3Ry dWN0fSIgPSAieWVzIjsgdGhlbgogIGVjaG8gIiogLSBQTkcgIHN1cHBvcnQgYWN0aXZhdGVk ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICoiCmVsc2UKICBlY2hvICIq IC0gUE5HICBzdXBwb3J0IGRlYWN0aXZhdGVkICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAqIgpmaQoKZWNobyAiKiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKiIKZWNobyAiKioqKioqKioqKioqKioq KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiIKZWNo byAiKiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgKiIKZWNobyAiKiBUbyBjb21waWxlIFhTQU5FOiAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKiIKZWNobyAiKiAtLS0tLS0tLS0tLS0t LS0tLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKiIKZWNo byAiKiAgIG1ha2UgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgKiIKZWNobyAiKiAgIG1ha2UgaW5zdGFsbCAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKiIKZWNobyAiKiAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKiIKZWNo byAiKiAtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0gKiIKZWNobyAiKiAuLi4gUExFQVNFIFJFQUQgU0FORSBET0NVTUVOVEFU SU9OIEJFRk9SRSBTVEFSVElORyBYU0FORSAuLi4gKiIKZWNobyAiKiAtLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0gKiIKZWNo byAiKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq KioqKioqKioqKioqKiIKY2F0IHhzYW5lLk5FV1MK --------------B174B54DE8CA36D3B429A95D--
-- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com
This archive was generated by hypermail 2b29 : Fri Dec 22 2000 - 08:19:26 PST