[Ocfs2-commits] rev 14 - in trunk: . docs patches src
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Thu Dec 18 23:28:05 CST 2003
Author: manish
Date: 2003-12-18 17:28:02 -0600 (Thu, 18 Dec 2003)
New Revision: 14
Added:
trunk/BUGS
trunk/COPYING
trunk/Config.make.in
trunk/Makefile
trunk/autogen.sh
trunk/config.guess
trunk/config.sub
trunk/configure.in
trunk/docs/Makefile
trunk/install-sh
trunk/mkinstalldirs
trunk/patches/Makefile
trunk/src/Makefile
Removed:
trunk/Config.make
trunk/Makefile
trunk/inc/
Modified:
trunk/Postamble.make
trunk/Preamble.make
trunk/src/namei.c
Log:
sync
Added: trunk/BUGS
===================================================================
--- trunk/BUGS 2003-12-18 23:25:52 UTC (rev 13)
+++ trunk/BUGS 2003-12-18 23:28:02 UTC (rev 14)
@@ -0,0 +1,746 @@
+THIS FILE IS BETTER VIEWED IN A 132X24 WINDOW.
+===============================================================================
+
+This file contains a brief explanation of the the tests that are performed on
+ocfs V2. It also contains the list of problems found during the tests with
+a description of the problem, how to reproduce it, log information/stack trace
+and any other type of information that may be necessary.
+
+===============================================================================
+TESTS.
+
+The tests are divided in 3 levels:
+
+LEVEL 1. In this level, very basic stuff are tested. Format, mount, create/change/
+move/remove file/directory, extend file using extendo (Sunil's script), Also, tar,
+dd, mv, cp (with and w/out o_direct) should be tested. All tests done without
+concurrency, Usually mounted by a single node.
+
+LEVEL 2. In this level, all tests performed in the level 1 are reproduced adding
+concurrency in the node and among 2 or more nodes. Some other level of complexity
+is going to be added to this level.
+
+LEVEL 3 : All tests performed in level 2 plus database creation, running OAST,
+install of a new Oracle distribution and anything else that may add complexity
+to the test and push the limits.
+
+===============================================================================
+PROBLEMS
+-------------------------------------------------------------------------------
+Date Reported : 10/24/2003
+OS : Red Hat AS 2.1
+Kernel : 2.4.9-e.25markenterprise
+OCFS BUILD 2.0.0-PA1024
+TEST LEVEL : 1
+BUG# : N/A
+SEVERITY : 3 (Limited funcionality)
+Description:
+
+ mkdir command fails when creating more than 6 levels of subdirs in a
+ single command line.
+
+Reproduce :
+
+ mkdir -p /ocfsv2_marcos/dir1/dir2/dir3/dir4/dir5/dir6/dir7/dir8/dir9/dir10
+
+Error Returned :
+
+ mkdir: cannot create directory `/ocfsv2_marcos/dir1/dir2/dir3/dir4/dir5/
+ dir6/dir7': Permission denied
+
+messages in /var/log/messages :
+
+ Oct 24 11:20:57 ca-test6 kernel: currently we do nothing with the file entry, oin or inode when we fail!!!!
+Oct 24 11:20:58 ca-test6 last message repeated 5 times
+Oct 24 11:20:58 ca-test6 kernel: ocfs: Getting write for 4096 blocks
+Oct 24 11:20:58 ca-test6 kernel: (2889) ERROR: status = -999, sysfile.c, 293
+Oct 24 11:20:58 ca-test6 kernel: (2889) ERROR: status = -999, alloc.c, 2491
+Oct 24 11:20:58 ca-test6 kernel: (2889) ERROR: status = -999, namei.c, 242
+Oct 24 11:20:58 ca-test6 kernel: (2889) ERROR: status = -2, namei.c, 333
+Oct 24 11:20:58 ca-test6 kernel: (2889) ERROR: status = -2, namei.c, 396
+Oct 24 11:20:58 ca-test6 kernel: currently we do nothing with the file entry, oin or inode when we fail!!!!
+
+New info (11/17/03 - kurt - 2.4.9-e.12 - vmware) :
+
+ Works fine in this build.
+
+-------------------------------------------------------------------------------
+Date Reported : 10/24/2003
+OS : Red Hat AS 2.1
+Kernel : 2.4.9-e.25markenterprise
+OCFS BUILD 2.0.0-PA1024
+TEST LEVEL : 1
+BUG# : N/A
+SEVERITY : 2 (most likely to cause a reboot in the system to release resource)
+Description:
+
+ move/rename file in the same directory hangs
+
+Reproduce :
+
+ $ cd <ocfs v2 directory>
+ $ touch a
+ $ find /etc/ >> a
+ $ cat a " it works until here without problem"
+ $ mv a b " here it hangs"
+
+Error Returned :
+
+ NONE
+
+messages in /var/log/messages :
+
+ Oct 24 11:47:27 ca-test6 kernel: currently we do nothing with the file entry, oin or inode when we fail!!!!
+
+Other information :
+
+ $ ps -efl|grep mv
+ 000 D root 3008 2237 0 76 0 - 420 wait_o 11:47 pts/4 00:00:00 mv -i a b
+ 100 S root 3023 2301 0 76 0 - 436 pipe_w 11:50 pts/5 00:00:00 grep mv
+ $ psall |grep mv
+ 3008 mv wait_on_buffer
+
+
+New info (11/17/03 - kurt - 2.4.9-e.12 - vmware) :
+
+ Does not occur in this build. Now completes ok but gives:
+ VFS: brelse: Trying to free free buffer
+
+-------------------------------------------------------------------------------
+Date Reported : 11/05/2003
+OS : Red Hat AS 2.1
+Kernel : 2.4.9-e.25markenterprise
+OCFS BUILD 2.0.0-PA1105
+TEST LEVEL : 1
+BUG# : N/A
+SEVERITY : 2 (system panics)
+Description:
+
+ During untar of the Linux Source code in an ocfs FS, system panics.
+
+Reproduce :
+
+ $ cd <ocfs v2 directory>
+ $ ssh ca-test6 "cd /usr/src/linux-2.4; tar cvzf - ."|tar xvzf -
+
+Error Returned :
+
+ NONE
+
+messages in /var/log/messages :
+
+ NONE
+
+Other information :
+ partial stack trace (Full trace at /home/mmatsuna/OCFSV2/untar_panic.log)
+
+ Kernel 2.4.9-e.25markenterprise
+ Oops: 0000
+ CPU: 2
+ EIP: 0010:[<c01492f4>] Not tainted
+ EFLAGS: 00010296
+ EIP is at __brelse [kernel] 0x4
+ eax: 98393bc0 ebx: 00000000 ecx: eea64c00 edx: 98393bc0
+ esi: 00000001 edi: 00000100 ebp: eea64c00 esp: ee5f7acc
+ ds: 0018 es: 0018 ss: 0018
+ Process tar (pid: 10000, stackpage=ee5f7000)
+ Stack: f8a2a8c2 98393bc0 f0cb5d20 eecca220 00000040 f63f6088 00000001 00000000
+ f5c83c00 ee5f6000 083219d9 00011570 00000000 f63f6000 00000100 00000005
+ f63f6084 000001fd 000001fd 00000000 00000000 00000000 eea64c00 f63d9748
+ Call Trace: [<f8a2a8c2>] ocfs_insert_file [ocfs] 0x20f2
+ [<f885b43e>] cpqfcTSBuildExchange [cpqfc] 0xb0e
+ [<c019aefa>] __make_request [kernel] 0x5da
+ [<f89fb7d7>] ocfs_hash_get [ocfs] 0x113
+ [<f89faae5>] ocfs_lookup_sector_node [ocfs] 0x119
+ [<c01492c1>] __refile_buffer [kernel] 0x61
+ [<f8a4c7c1>] ocfs_acquire_lock [ocfs] 0x271
+ [<c014915c>] balance_dirty_state [kernel] 0xc
+ [<c01491ab>] balance_dirty [kernel] 0xb
+
+
+New info (11/17/03 - kurt - 2.4.9-e.12 - vmware) :
+
+ Does not occur in this build. Can get through the full untar now.
+
+
+New info (11/19/03 - kurt - 2.4.9-e.12 - vmware) :
+
+ Aha! Ok so this does happen when the dir alloc file needs to grow from granularity 0
+ to granularity 1. Hangs on wait_on_buffer. Schizzle.
+
+Nov 19 10:30:54 khackel-pc1 kernel: tar D C0C46860 0 2618 2617 (NOTLB)
+Nov 19 10:30:54 khackel-pc1 kernel: Call Trace: [__wait_on_buffer+92/124] __wait_on_buffer [kernel] 0x5c
+Nov 19 10:30:54 khackel-pc1 kernel: Call Trace: [<c013bbfc>] __wait_on_buffer [kernel] 0x5c
+Nov 19 10:30:54 khackel-pc1 kernel: [<c38cdc6a>] ocfs_grow_extent_tree [ocfs] 0x12ee
+Nov 19 10:30:54 khackel-pc1 kernel: [<c38cd909>] ocfs_grow_extent_tree [ocfs] 0xf8d
+Nov 19 10:30:54 khackel-pc1 kernel: [<c38e0877>] ocfs_release_lock [ocfs] 0x133
+Nov 19 10:30:54 khackel-pc1 kernel: [<c38cfdcd>] ocfs_allocate_extent [ocfs] 0x1749
+Nov 19 10:30:54 khackel-pc1 kernel: [<c38a2811>] ocfs_extend_system_file [ocfs] 0x635
+Nov 19 10:30:54 khackel-pc1 kernel: [<c38d75ec>] ocfs_alloc_node_block [ocfs] 0x564
+Nov 19 10:30:54 khackel-pc1 kernel: [<c38ae2fe>] ocfs_mknod_locked [ocfs] 0x59a
+Nov 19 10:30:54 khackel-pc1 kernel: [<c38f2b86>] .rodata [ocfs] 0x10566
+Nov 19 10:30:54 khackel-pc1 kernel: [<c38ad708>] ocfs_mknod [ocfs] 0x2c4
+Nov 19 10:30:54 khackel-pc1 kernel: [<c38ad3a1>] ocfs_lookup [ocfs] 0x35d
+Nov 19 10:30:54 khackel-pc1 kernel: [<c38aefa2>] ocfs_mkdir [ocfs] 0x8a
+Nov 19 10:30:54 khackel-pc1 kernel: [<c0144517>] permission [kernel] 0x2b
+Nov 19 10:30:54 khackel-pc1 kernel: [<c0145dd8>] vfs_mkdir [kernel] 0xc4
+Nov 19 10:30:54 khackel-pc1 kernel: [<c0145e9e>] sys_mkdir [kernel] 0x8a
+Nov 19 10:30:54 khackel-pc1 kernel: [<c0106ecb>] system_call [kernel] 0x33
+
+New info (11/20/03 - kurt - 2.4.9-e.12 - vmware) :
+
+ OK I think I fixed it. Tightened down our bufferhead locking in the ocfs_allocate_extent and
+ ocfs_grow_extent_tree paths. It gets way past the granularity 0 -> 1 shift now.
+
+-------------------------------------------------------------------------------
+Date Reported : 11/07/2003
+OS : Red Hat AS 2.1
+Kernel : 2.4.9-e.27.stack
+OCFS BUILD 2.0.0-PA1107
+TEST LEVEL : 1
+BUG# : N/A
+SEVERITY : 2 (kernel oops, system up but no ocfs ops possible)
+Fixed in build of : 11/13/2003
+Description:
+
+While running a script that touches 1000 files on a fresh ocfs filesystem,
+some errors and finally an oops occur.
+
+
+
+Nov 8 02:28:15 earth-10 kernel: VFS: brelse: Trying to free free buffer
+Nov 8 02:28:15 earth-10 kernel: ocfs: Getting write for 257 blocks
+Nov 8 02:29:01 earth-10 kernel: (3939) ERROR: status = -28, dir.c, 1290
+Nov 8 02:29:01 earth-10 kernel: (3939) ERROR: status = -28, namei.c, 437
+Nov 8 02:29:01 earth-10 kernel: (3939) ERROR: status = -28, namei.c, 169
+Nov 8 02:29:01 earth-10 kernel: Unable to handle kernel NULL pointer dereference at virtual address 00000018
+Nov 8 02:29:01 earth-10 kernel: printing eip:
+Nov 8 02:29:01 earth-10 kernel: e08ecce5
+Nov 8 02:29:01 earth-10 kernel: *pde = 00000000
+Nov 8 02:29:01 earth-10 kernel: Oops: 0002
+Nov 8 02:29:01 earth-10 kernel: Kernel 2.4.9-e.27.stack
+Nov 8 02:29:01 earth-10 kernel: CPU: 0
+Nov 8 02:29:01 earth-10 kernel: EIP: 0010:[ide-cd:ignore+385941/143678827] Not tainted
+Nov 8 02:29:01 earth-10 kernel: EIP: 0010:[<e08ecce5>] Not tainted
+Nov 8 02:29:01 earth-10 kernel: EFLAGS: 00010246
+Nov 8 02:29:01 earth-10 kernel: EIP is at ocfs_mknod [ocfs] 0x415
+Nov 8 02:29:01 earth-10 kernel: eax: 00000002 ebx: 00000000 ecx: 00000000 edx: 00000000
+Nov 8 02:29:01 earth-10 kernel: esi: 00000000 edi: 00000000 ebp: e092e8ca esp: dc4fde50
+Nov 8 02:29:01 earth-10 kernel: ds: 0018 es: 0018 ss: 0018
+Nov 8 02:29:01 earth-10 kernel: Process touch (pid: 3939, stackpage=dc4fd000)
+Nov 8 02:29:01 earth-10 kernel: Stack: c1000010 c012784d dc4fde88 00000000 de701000 00000000 de701000 d6942560
+Nov 8 02:29:01 earth-10 kernel: c5797740 00000000 c2bfe060 00000000 c3db5440 c7cac800 0024e000 00000000
+Nov 8 02:29:01 earth-10 kernel: c5797740 00000001 dc4fdec4 4015b2d0 df454400 00000000 0024e000 00000000
+Nov 8 02:29:01 earth-10 kernel: Call Trace: <dc4fde54> [do_anonymous_page+317/336] do_anonymous_page [kernel] 0x13d
+Nov 8 02:29:01 earth-10 kernel: Call Trace: <dc4fde54> [<c012784d>] do_anonymous_page [kernel] 0x13d
+Nov 8 02:29:01 earth-10 kernel: <dc4fdecc> [ide-cd:ignore+392101/143672667] ocfs_create [ocfs] 0x89
+Nov 8 02:29:01 earth-10 kernel: <dc4fdecc> [<e08ee4f5>] ocfs_create [ocfs] 0x89
+Nov 8 02:29:01 earth-10 kernel: <dc4fdeec> [vfs_create+183/240] vfs_create [kernel] 0xb7
+Nov 8 02:29:01 earth-10 kernel: <dc4fdeec> [<c0148467>] vfs_create [kernel] 0xb7
+Nov 8 02:29:01 earth-10 kernel: <dc4fdf04> [lookup_hash+106/144] lookup_hash [kernel] 0x6a
+Nov 8 02:29:01 earth-10 kernel: <dc4fdf04> [<c01482ba>] lookup_hash [kernel] 0x6a
+Nov 8 02:29:01 earth-10 kernel: <dc4fdf1c> [open_namei+348/1488] open_namei [kernel] 0x15c
+Nov 8 02:29:02 earth-10 kernel: <dc4fdf1c> [<c01485fc>] open_namei [kernel] 0x15c
+Nov 8 02:29:02 earth-10 kernel: <dc4fdf3c> [do_mmap_pgoff+1031/1136] do_mmap_pgoff [kernel] 0x407
+Nov 8 02:29:02 earth-10 kernel: <dc4fdf3c> [<c0128c77>] do_mmap_pgoff [kernel] 0x407
+Nov 8 02:29:02 earth-10 kernel: <dc4fdf68> [filp_open+54/96] filp_open [kernel] 0x36
+Nov 8 02:29:02 earth-10 kernel: <dc4fdf68> [<c013d056>] filp_open [kernel] 0x36
+Nov 8 02:29:02 earth-10 kernel: <dc4fdfa0> [sys_open+54/176] sys_open [kernel] 0x36
+Nov 8 02:29:02 earth-10 kernel: <dc4fdfa0> [<c013d346>] sys_open [kernel] 0x36
+Nov 8 02:29:02 earth-10 kernel: <dc4fdfc0> [system_call+51/56] system_call [kernel] 0x33
+Nov 8 02:29:02 earth-10 kernel: <dc4fdfc0> [<c010712b>] system_call [kernel] 0x33
+Nov 8 02:29:02 earth-10 kernel:
+Nov 8 02:29:02 earth-10 kernel:
+Nov 8 02:29:02 earth-10 kernel: Code: 0f ab 46 18 19 c0 85 c0 74 1b bb 02 00 00 00 83 ec 0c 56 e8
+Nov 8 02:29:02 earth-10 kernel: <0>Kernel panic: not continuing
+Nov 8 02:32:46 earth-10 sshd(pam_unix)[1500]: session closed for user root
+Nov 8 02:33:02 earth-10 sshd(pam_unix)[3984]: session opened for user root by (uid=0)
+
+ls on the fs hangs in getdents64()
+AFter reboot ls shows 508 files have been created
+-------------------------------------------------------------------------------
+Date Reported : 11/07/2003
+OS : Red Hat AS 2.1
+Kernel : 2.4.9-e.27.stack
+OCFS BUILD 2.0.0-PA1113
+TEST LEVEL : 1
+BUG# : N/A
+SEVERITY : 3 (command hangs)
+Fixed in build of : 11/13/2003
+Description:
+
+Copy of a 2.4.9-e.27 kernel build tree to clean ocfs filesystem eventually
+hangs. During hang the following trace has been taken:
+
+Nov 12 21:20:34 earth-10 kernel: cp D C02E0000 0 2347 2429 (NOTLB)
+Nov 12 21:20:34 earth-10 kernel: Call Trace: <dd0636f0> [__wait_on_buffer+120/160] __wait_on_buffer [kernel] 0x78
+Nov 12 21:20:34 earth-10 kernel: Call Trace: <dd0636f0> [<c013e758>] __wait_on_buffer [kernel] 0x78
+Nov 12 21:20:34 earth-10 kernel: <dd0636f4> [__refile_buffer+97/112] __refile_buffer [kernel] 0x61
+Nov 12 21:20:34 earth-10 kernel: <dd0636f4> [<c013f921>] __refile_buffer [kernel] 0x61
+Nov 12 21:20:34 earth-10 kernel: <dd063718> [balance_dirty+11/48] balance_dirty [kernel] 0xb
+Nov 12 21:20:34 earth-10 kernel: <dd063718> [<c013f80b>] balance_dirty [kernel] 0xb
+Nov 12 21:20:34 earth-10 kernel: <dd06372c> [ide-cd:ignore+515443/143549325] ocfs_grow_extent_tree [ocfs] 0x1287
+Nov 12 21:20:34 earth-10 kernel: <dd06372c> [<e090c6c3>] ocfs_grow_extent_tree [ocfs] 0x1287
+Nov 12 21:20:35 earth-10 kernel: <dd063754> [start_request+416/528] start_request [kernel] 0x1a0
+Nov 12 21:20:35 earth-10 kernel: <dd063754> [<c01992b0>] start_request [kernel] 0x1a0
+Nov 12 21:20:35 earth-10 kernel: <dd0637a4> [schedule+554/576] schedule [kernel] 0x22a
+Nov 12 21:20:35 earth-10 kernel: <dd0637a4> [<c0115c7a>] schedule [kernel] 0x22a
+Nov 12 21:20:35 earth-10 kernel: <dd0637f8> [balance_dirty+11/48] balance_dirty [kernel] 0xb
+Nov 12 21:20:35 earth-10 kernel: <dd0637f8> [<c013f80b>] balance_dirty [kernel] 0xb
+Nov 12 21:20:35 earth-10 kernel: <dd063820> [dma_timer_expiry+0/96] dma_timer_expiry [kernel] 0x0
+Nov 12 21:20:35 earth-10 kernel: <dd063820> [<c01a2980>] dma_timer_expiry [kernel] 0x0
+Nov 12 21:20:35 earth-10 kernel: <dd063840> [do_rw_disk+359/944] do_rw_disk [kernel] 0x167
+Nov 12 21:20:35 earth-10 kernel: <dd063840> [<c01ac1b7>] do_rw_disk [kernel] 0x167
+Nov 12 21:20:35 earth-10 kernel: <dd06386c> [ide-cd:ignore+591999/143472769] ocfs_disk_release_lock [ocfs] 0xb77
+Nov 12 21:20:35 earth-10 kernel: <dd06386c> [<e091f1cf>] ocfs_disk_release_lock [ocfs] 0xb77
+Nov 12 21:20:35 earth-10 kernel: <dd06387c> [ide-cd:ignore+592105/143472663] ocfs_disk_release_lock [ocfs] 0xbe1
+Nov 12 21:20:35 earth-10 kernel: <dd06387c> [<e091f239>] ocfs_disk_release_lock [ocfs] 0xbe1
+Nov 12 21:20:35 earth-10 kernel: <dd0638d8> [ll_rw_block+558/656] ll_rw_block [kernel] 0x22e
+Nov 12 21:20:35 earth-10 kernel: <dd0638d8> [<c018d02e>] ll_rw_block [kernel] 0x22e
+Nov 12 21:20:35 earth-10 kernel: <dd063900> [__wait_on_buffer+144/160] __wait_on_buffer [kernel] 0x90
+Nov 12 21:20:35 earth-10 kernel: <dd063900> [<c013e770>] __wait_on_buffer [kernel] 0x90
+Nov 12 21:20:35 earth-10 kernel: <dd063904> [__refile_buffer+97/112] __refile_buffer [kernel] 0x61
+Nov 12 21:20:35 earth-10 kernel: <dd063904> [<c013f921>] __refile_buffer [kernel] 0x61
+Nov 12 21:20:35 earth-10 kernel: <dd06392c> [ide-cd:ignore+524129/143540639] ocfs_allocate_extent [ocfs] 0x17f5
+Nov 12 21:20:35 earth-10 kernel: <dd06392c> [<e090e8b1>] ocfs_allocate_extent [ocfs] 0x17f5
+Nov 12 21:20:35 earth-10 kernel: <dd06396c> [account_io_start+68/80] account_io_start [kernel] 0x44
+Nov 12 21:20:35 earth-10 kernel: <dd06396c> [<c018bf24>] account_io_start [kernel] 0x44
+Nov 12 21:20:35 earth-10 kernel: <dd0639ac> [ide_set_handler+88/96] ide_set_handler [kernel] 0x58
+Nov 12 21:20:35 earth-10 kernel: <dd0639ac> [<c01981d8>] ide_set_handler [kernel] 0x58
+Nov 12 21:20:35 earth-10 kernel: <dd0639c0> [ide_dmaproc+393/624] ide_dmaproc [kernel] 0x189
+Nov 12 21:20:35 earth-10 kernel: <dd0639c0> [<c01a2b69>] ide_dmaproc [kernel] 0x189
+Nov 12 21:20:35 earth-10 kernel: <dd0639c8> [ide_dma_intr+0/192] ide_dma_intr [kernel] 0x0
+Nov 12 21:20:35 earth-10 kernel: <dd0639c8> [<c01a2200>] ide_dma_intr [kernel] 0x0
+Nov 12 21:20:35 earth-10 kernel: <dd0639d0> [dma_timer_expiry+0/96] dma_timer_expiry [kernel] 0x0
+Nov 12 21:20:36 earth-10 kernel: <dd0639d0> [<c01a2980>] dma_timer_expiry [kernel] 0x0
+Nov 12 21:20:36 earth-10 kernel: <dd0639f0> [do_rw_disk+359/944] do_rw_disk [kernel] 0x167
+Nov 12 21:20:36 earth-10 kernel: <dd0639f0> [<c01ac1b7>] do_rw_disk [kernel] 0x167
+Nov 12 21:20:36 earth-10 kernel: <dd063a04> [run_all_timers+23/32] run_all_timers [kernel] 0x17
+Nov 12 21:20:36 earth-10 kernel: <dd063a04> [<c01201b7>] run_all_timers [kernel] 0x17
+Nov 12 21:20:36 earth-10 kernel: <dd063a0c> [ide_wait_stat+202/272] ide_wait_stat [kernel] 0xca
+Nov 12 21:20:36 earth-10 kernel: <dd063a0c> [<c0198fba>] ide_wait_stat [kernel] 0xca
+Nov 12 21:20:36 earth-10 kernel: <dd063a34> [start_request+416/528] start_request [kernel] 0x1a0
+Nov 12 21:20:36 earth-10 kernel: <dd063a34> [<c01992b0>] start_request [kernel] 0x1a0
+Nov 12 21:20:36 earth-10 kernel: <dd063a64> [ide_do_request+659/736] ide_do_request [kernel] 0x293
+Nov 12 21:20:36 earth-10 kernel: <dd063a64> [<c0199613>] ide_do_request [kernel] 0x293
+Nov 12 21:20:36 earth-10 kernel: <dd063a84> [schedule+554/576] schedule [kernel] 0x22a
+Nov 12 21:20:36 earth-10 kernel: <dd063a84> [<c0115c7a>] schedule [kernel] 0x22a
+Nov 12 21:20:36 earth-10 kernel: <dd063ab0> [__wait_on_buffer+144/160] __wait_on_buffer [kernel] 0x90
+Nov 12 21:20:36 earth-10 kernel: <dd063ab0> [<c013e770>] __wait_on_buffer [kernel] 0x90
+Nov 12 21:20:36 earth-10 kernel: <dd063ab4> [__refile_buffer+97/112] __refile_buffer [kernel] 0x61
+Nov 12 21:20:36 earth-10 kernel: <dd063ab4> [<c013f921>] __refile_buffer [kernel] 0x61
+Nov 12 21:20:36 earth-10 kernel: <dd063acc> [ide-cd:ignore+340461/143724307] ocfs_extend_system_file [ocfs] 0x1069
+Nov 12 21:20:36 earth-10 kernel: <dd063acc> [<e08e1b3d>] ocfs_extend_system_file [ocfs] 0x1069
+Nov 12 21:20:36 earth-10 kernel: <dd063b2c> [ide_wait_stat+202/272] ide_wait_stat [kernel] 0xca
+Nov 12 21:20:36 earth-10 kernel: <dd063b2c> [<c0198fba>] ide_wait_stat [kernel] 0xca
+Nov 12 21:20:36 earth-10 kernel: <dd063ba4> [schedule+554/576] schedule [kernel] 0x22a
+Nov 12 21:20:36 earth-10 kernel: <dd063ba4> [<c0115c7a>] schedule [kernel] 0x22a
+Nov 12 21:20:36 earth-10 kernel: <dd063bd0> [__wait_on_buffer+144/160] __wait_on_buffer [kernel] 0x90
+Nov 12 21:20:36 earth-10 kernel: <dd063bd0> [<c013e770>] __wait_on_buffer [kernel] 0x90
+Nov 12 21:20:36 earth-10 kernel: <dd063c0c> [ide-cd:ignore+336121/143728647] ocfs_get_system_file_size [ocfs] 0x46d
+Nov 12 21:20:36 earth-10 kernel: <dd063c0c> [<e08e0a49>] ocfs_get_system_file_size [ocfs] 0x46d
+Nov 12 21:20:36 earth-10 kernel: <dd063c24> [ide-cd:ignore+258453/143806315] ocfs_lookup_sector_node [ocfs] 0x119
+Nov 12 21:20:37 earth-10 kernel: <dd063c24> [<e08cdae5>] ocfs_lookup_sector_node [ocfs] 0x119
+Nov 12 21:20:37 earth-10 kernel: <dd063c44> [balance_dirty_state+12/80] balance_dirty_state [kernel] 0xc
+Nov 12 21:20:37 earth-10 kernel: <dd063c44> [<c013f7bc>] balance_dirty_state [kernel] 0xc
+Nov 12 21:20:37 earth-10 kernel: <dd063c8c> [ide-cd:ignore+555012/143509756] ocfs_alloc_node_block [ocfs] 0x500
+Nov 12 21:20:37 earth-10 kernel: <dd063c8c> [<e0916154>] ocfs_alloc_node_block [ocfs] 0x500
+Nov 12 21:20:37 earth-10 kernel: <dd063d5c> [ide-cd:ignore+388615/143676153] ocfs_mknod_locked [ocfs] 0x53f
+Nov 12 21:20:37 earth-10 kernel: <dd063d5c> [<e08ed757>] ocfs_mknod_locked [ocfs] 0x53f
+Nov 12 21:20:37 earth-10 kernel: <dd063d8c> [schedule+554/576] schedule [kernel] 0x22a
+Nov 12 21:20:37 earth-10 kernel: <dd063d8c> [<c0115c7a>] schedule [kernel] 0x22a
+Nov 12 21:20:37 earth-10 kernel: <dd063df0> [8139too:__insmod_8139too_O/lib/modules/2.4.9-e.27.stack/kernel/driv+-765728/96] .rodata.str1.1 [jbd] 0x0
+Nov 12 21:20:37 earth-10 kernel: <dd063df0> [<e08090e0>] .rodata.str1.1 [jbd] 0x0
+Nov 12 21:20:37 earth-10 kernel: <dd063df4> [8139too:__insmod_8139too_O/lib/modules/2.4.9-e.27.stack/kernel/driv+-776745/96] __jbd_kmalloc [jbd] 0x27
+Nov 12 21:20:37 earth-10 kernel: <dd063df4> [<e08065d7>] __jbd_kmalloc [jbd] 0x27
+Nov 12 21:20:37 earth-10 kernel: <dd063e1c> [8139too:__insmod_8139too_O/lib/modules/2.4.9-e.27.stack/kernel/driv+-802530/96] get_transaction [jbd] 0xbe
+Nov 12 21:20:37 earth-10 kernel: <dd063e1c> [<e080011e>] get_transaction [jbd] 0xbe
+Nov 12 21:20:37 earth-10 kernel: <dd063e30> [8139too:__insmod_8139too_O/lib/modules/2.4.9-e.27.stack/kernel/driv+-802362/96] start_this_handle [jbd] 0x66
+Nov 12 21:20:37 earth-10 kernel: <dd063e30> [<e08001c6>] start_this_handle [jbd] 0x66
+Nov 12 21:20:37 earth-10 kernel: <dd063e34> [8139too:__insmod_8139too_O/lib/modules/2.4.9-e.27.stack/kernel/driv+-802172/96] start_this_handle [jbd] 0x124
+Nov 12 21:20:37 earth-10 kernel: <dd063e34> [<e0800284>] start_this_handle [jbd] 0x124
+Nov 12 21:20:37 earth-10 kernel: <dd063e4c> [8139too:__insmod_8139too_O/lib/modules/2.4.9-e.27.stack/kernel/driv+-801921/96] journal_start_Rb377415b [jbd] 0xbf
+Nov 12 21:20:37 earth-10 kernel: <dd063e4c> [<e080037f>] journal_start_Rb377415b [jbd] 0xbf
+Nov 12 21:20:37 earth-10 kernel: <dd063e7c> [ide-cd:ignore+385518/143679250] ocfs_mknod [ocfs] 0x26e
+Nov 12 21:20:37 earth-10 kernel: <dd063e7c> [<e08ecb3e>] ocfs_mknod [ocfs] 0x26e
+Nov 12 21:20:37 earth-10 kernel: <dd063ec4> [ide-cd:ignore+384255/143680513] ocfs_lookup [ocfs] 0x167
+Nov 12 21:20:37 earth-10 kernel: <dd063ec4> [<e08ec64f>] ocfs_lookup [ocfs] 0x167
+Nov 12 21:20:37 earth-10 kernel: <dd063f08> [dput+28/288] dput [kernel] 0x1c
+Nov 12 21:20:37 earth-10 kernel: <dd063f08> [<c014f52c>] dput [kernel] 0x1c
+Nov 12 21:20:37 earth-10 kernel: <dd063f14> [cached_lookup+45/80] cached_lookup [kernel] 0x2d
+Nov 12 21:20:37 earth-10 kernel: <dd063f14> [<c01475ed>] cached_lookup [kernel] 0x2d
+Nov 12 21:20:37 earth-10 kernel: <dd063f2c> [ide-cd:ignore+391825/143672943] ocfs_mkdir [ocfs] 0x89
+Nov 12 21:20:37 earth-10 kernel: <dd063f2c> [<e08ee3e1>] ocfs_mkdir [ocfs] 0x89
+Nov 12 21:20:37 earth-10 kernel: <dd063f4c> [vfs_mkdir+178/240] vfs_mkdir [kernel] 0xb2
+Nov 12 21:20:38 earth-10 kernel: <dd063f4c> [<c0148e52>] vfs_mkdir [kernel] 0xb2
+Nov 12 21:20:38 earth-10 kernel: <dd063f7c> [sys_mkdir+132/208] sys_mkdir [kernel] 0x84
+Nov 12 21:20:38 earth-10 kernel: <dd063f7c> [<c0148f14>] sys_mkdir [kernel] 0x84
+Nov 12 21:20:38 earth-10 kernel: <dd063fc0> [system_call+51/56] system_call [kernel] 0x33
+Nov 12 21:20:38 earth-10 kernel: <dd063fc0> [<c010712b>] system_call [kernel] 0x33
+Nov 12 21:20:38 earth-10 kernel:
+
+
+-------------------------------------------------------------------------------
+Date Reported : 17/07/2003
+OS : Red Hat AS 2.1
+Kernel : 2.4.9-e.27.stack
+OCFS BUILD 2.0.0-PA1117
+TEST LEVEL : 1
+BUG# : N/A
+SEVERITY : 2 (system hangs)
+Fixed in build of : 11/13/2003
+Description:
+
+Create a new ocfs filesystem, create 2000 files in the root,
+then start making new directories with one file each .. after 32
+the system hangs .. only responds to pings, no oops, warnings, errors
+or traces.
+
+When trying to repeat the bug i got the following errors:
+
+Nov 17 21:17:28 earth kernel: ocfs: trying to sync read a jbd managed bh (blockn
+r = 2736)
+Nov 17 21:17:28 earth kernel: (3576) ERROR: status = -22, sysfile.c, 339
+Nov 17 21:17:28 earth kernel: (3576) ERROR: status = -22, alloc.c, 2904
+Nov 17 21:17:28 earth kernel: (3576) ERROR: status = -22, dir.c, 1219
+Nov 17 21:17:28 earth kernel: (3576) ERROR: status = -22, namei.c, 442
+
+-------------------------------------------------------------------------------
+
+Date Reported : 11/18/2003
+OS : Red Hat AS 2.1
+Kernel : 2.4.9-e.12custom (up kernel for vmware)
+OCFS BUILD 1.9.9-1118KURT ;-)
+TEST LEVEL : 1
+BUG# : N/A
+SEVERITY : 2 (data corruption)
+Description:
+
+ Doing a make oldconfig in a fresh kernel tree results in a partially corrupted
+ .config file with loads of NULLs.
+
+Reproduce :
+
+ $ cd <ocfs v2 directory>
+ $ ssh ca-test6 "cd /usr/src/linux-2.4; tar cvzf - ."|tar xvzf -
+ $ make oldconfig
+ $ make dep <BARF>
+
+Error Returned :
+
+ .config:1: warning: NUL character seen; rest of line ignored
+ ...
+
+messages in /var/log/messages :
+
+ NONE
+
+Other information :
+
+ Probably a generic problem in the simplest case of a file extend.
+
+ .config contents:
+
+ 0000000 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0
+ *
+ 0000760 \0 \0 \0 \0 \0 \0 # C O N F I G _ M
+ 0001000 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0
+ *
+ 0001740 \0 \0 \0 \0 \0 C O N F I G _ X 8 6 _
+ 0001760 U S E _ P P R O _ C H E C K S U
+ 0002000 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0
+ ...
+
+ Output from /var/log/messages:
+
+Nov 18 10:11:34 khackel-pc1 kernel: acquire_lock: lock path is fast_path
+Nov 18 10:11:34 khackel-pc1 kernel: acquire_lock: lock path is get_x
+Nov 18 10:11:34 khackel-pc1 kernel: acquire_lock: lock path is fast_path
+Nov 18 10:11:34 khackel-pc1 kernel: VFS: brelse: Trying to free free buffer
+Nov 18 10:11:34 khackel-pc1 kernel: acquire_lock: lock path is fast_path
+Nov 18 10:11:34 khackel-pc1 kernel: ok in symlink, got the fe, this sector is 747169280.0
+Nov 18 10:11:34 khackel-pc1 kernel: acquire_lock: lock path is fast_path
+Nov 18 10:11:34 khackel-pc1 kernel: acquire_lock: lock path is fast_path
+Nov 18 10:11:34 khackel-pc1 kernel: local_lock but an extend or truncate request! will do a master_request.
+Nov 18 10:11:34 khackel-pc1 kernel: acquire_lock: lock path is become_master
+Nov 18 10:11:34 khackel-pc1 kernel: acquire_lock: lock path is fast_path
+Nov 18 10:11:34 khackel-pc1 last message repeated 3 times
+Nov 18 10:11:34 khackel-pc1 kernel: local_lock but an extend or truncate request! will do a master_request.
+Nov 18 10:11:34 khackel-pc1 kernel: acquire_lock: lock path is become_master
+Nov 18 10:11:34 khackel-pc1 kernel: acquire_lock: lock path is fast_path
+Nov 18 10:11:34 khackel-pc1 kernel: acquire_lock: lock path is fast_path
+Nov 18 10:11:34 khackel-pc1 kernel: local_lock but an extend or truncate request! will do a master_request.
+Nov 18 10:11:34 khackel-pc1 kernel: acquire_lock: lock path is become_master
+Nov 18 10:11:34 khackel-pc1 kernel: acquire_lock: lock path is fast_path
+Nov 18 10:11:34 khackel-pc1 last message repeated 5 times
+Nov 18 10:11:35 khackel-pc1 kernel: local_lock but an extend or truncate request! will do a master_request.
+Nov 18 10:11:35 khackel-pc1 kernel: acquire_lock: lock path is become_master
+Nov 18 10:11:35 khackel-pc1 kernel: acquire_lock: lock path is fast_path
+Nov 18 10:11:35 khackel-pc1 last message repeated 2 times
+Nov 18 10:11:35 khackel-pc1 kernel: acquire_lock: lock path is get_x
+Nov 18 10:11:35 khackel-pc1 kernel: acquire_lock: lock path is fast_path
+Nov 18 10:11:35 khackel-pc1 kernel: VFS: brelse: Trying to free free buffer
+Nov 18 10:11:35 khackel-pc1 kernel: acquire_lock: lock path is fast_path
+Nov 18 10:11:49 khackel-pc1 last message repeated 738 times
+Nov 18 10:11:49 khackel-pc1 kernel: (read) bh (1832229) seqnum (0) does not match inode (1)
+Nov 18 10:11:49 khackel-pc1 kernel: acquire_lock: lock path is fast_path
+Nov 18 10:11:49 khackel-pc1 last message repeated 25 times
+Nov 18 10:11:49 khackel-pc1 kernel: (read) bh (1833584) seqnum (0) does not match inode (1)
+Nov 18 10:11:49 khackel-pc1 kernel: (read) bh (1833585) seqnum (0) does not match inode (1)
+Nov 18 10:11:49 khackel-pc1 kernel: acquire_lock: lock path is fast_path
+Nov 18 10:11:50 khackel-pc1 last message repeated 24 times
+Nov 18 10:11:50 khackel-pc1 kernel: (read) bh (1832304) seqnum (0) does not match inode (1)
+Nov 18 10:11:50 khackel-pc1 kernel: (read) bh (1832305) seqnum (0) does not match inode (1)
+Nov 18 10:11:50 khackel-pc1 kernel: acquire_lock: lock path is fast_path
+Nov 18 10:11:50 khackel-pc1 last message repeated 7 times
+Nov 18 10:11:50 khackel-pc1 kernel: (read) bh (1830256) seqnum (0) does not match inode (1)
+Nov 18 10:11:50 khackel-pc1 kernel: (read) bh (1830257) seqnum (0) does not match inode (1)
+Nov 18 10:11:50 khackel-pc1 kernel: acquire_lock: lock path is fast_path
+Nov 18 10:11:51 khackel-pc1 last message repeated 35 times
+Nov 18 10:11:51 khackel-pc1 kernel: (read) bh (1907824) seqnum (0) does not match inode (1)
+Nov 18 10:11:51 khackel-pc1 kernel: (read) bh (1907825) seqnum (0) does not match inode (1)
+Nov 18 10:11:51 khackel-pc1 kernel: acquire_lock: lock path is fast_path
+Nov 18 10:11:52 khackel-pc1 last message repeated 63 times
+Nov 18 10:11:52 khackel-pc1 kernel: (read) bh (1023856) seqnum (0) does not match inode (1)
+Nov 18 10:11:52 khackel-pc1 kernel: (read) bh (1023857) seqnum (0) does not match inode (1)
+Nov 18 10:11:52 khackel-pc1 kernel: acquire_lock: lock path is fast_path
+Nov 18 10:12:14 khackel-pc1 last message repeated 198 times
+Nov 18 10:12:14 khackel-pc1 kernel: (read) bh (922736) seqnum (0) does not match inode (1)
+Nov 18 10:12:14 khackel-pc1 kernel: (read) bh (922737) seqnum (0) does not match inode (1)
+Nov 18 10:12:14 khackel-pc1 kernel: acquire_lock: lock path is fast_path
+Nov 18 10:12:15 khackel-pc1 last message repeated 73 times
+Nov 18 10:12:15 khackel-pc1 kernel: (read) bh (923248) seqnum (0) does not match inode (1)
+Nov 18 10:12:15 khackel-pc1 kernel: (read) bh (923249) seqnum (0) does not match inode (1)
+Nov 18 10:12:15 khackel-pc1 kernel: acquire_lock: lock path is fast_path
+Nov 18 10:12:20 khackel-pc1 last message repeated 182 times
+Nov 18 10:12:20 khackel-pc1 kernel: (read) bh (924016) seqnum (0) does not match inode (1)
+Nov 18 10:12:20 khackel-pc1 kernel: (read) bh (924017) seqnum (0) does not match inode (1)
+Nov 18 10:12:20 khackel-pc1 kernel: acquire_lock: lock path is fast_path
+Nov 18 10:12:21 khackel-pc1 last message repeated 35 times
+Nov 18 10:12:21 khackel-pc1 kernel: (read) bh (1021040) seqnum (0) does not match inode (1)
+Nov 18 10:12:21 khackel-pc1 kernel: (read) bh (1021041) seqnum (0) does not match inode (1)
+Nov 18 10:12:21 khackel-pc1 kernel: acquire_lock: lock path is fast_path
+Nov 18 10:12:21 khackel-pc1 last message repeated 21 times
+Nov 18 10:12:21 khackel-pc1 kernel: (read) bh (697968) seqnum (0) does not match inode (1)
+Nov 18 10:12:21 khackel-pc1 kernel: (read) bh (697969) seqnum (0) does not match inode (1)
+Nov 18 10:12:21 khackel-pc1 kernel: acquire_lock: lock path is fast_path
+Nov 18 10:12:52 khackel-pc1 last message repeated 1458 times
+Nov 18 10:14:09 khackel-pc1 last message repeated 967 times
+Nov 18 10:14:19 khackel-pc1 last message repeated 520 times
+Nov 18 10:14:19 khackel-pc1 kernel: local_lock but an extend or truncate request! will do a master_request.
+Nov 18 10:14:19 khackel-pc1 kernel: acquire_lock: lock path is become_master
+Nov 18 10:14:19 khackel-pc1 kernel: acquire_lock: lock path is fast_path
+Nov 18 10:14:20 khackel-pc1 last message repeated 5 times
+Nov 18 10:14:20 khackel-pc1 kernel: acquire_lock: lock path is get_x
+Nov 18 10:14:20 khackel-pc1 kernel: acquire_lock: lock path is fast_path
+Nov 18 10:14:20 khackel-pc1 kernel: VFS: brelse: Trying to free free buffer
+
+
+
+New info (11/18/03 - kurt - 2.4.9-e.12 - vmware) :
+
+ [root at khackel-pc1 ocfs]# echo a > newfile
+ [root at khackel-pc1 ocfs]# od -c newfile
+ 0000000 a \n
+ [root at khackel-pc1 ocfs]# echo bcdefg >> newfile
+ [root at khackel-pc1 ocfs]#
+ [root at khackel-pc1 ocfs]# od -c newfile
+ 0000000 \0 \0 b c d e f g \n
+ [root at khackel-pc1 ocfs]# echo hijklmnop >> newfile
+ [root at khackel-pc1 ocfs]# od -c newfile
+ 0000000 \0 \0 \0 \0 \0 \0 \0 \0 \0 h i j k l m n
+ 0000020 o p \n
+
+ So there is a generic bug with extending a file. Looks like previous data is zeroed.
+
+ Looks like it's is fixed for AS 2.1 in the 2003/11/19 00:28:00 checkin.
+
+-------------------------------------------------------------------------------
+
+Date Reported : 11/20/2003
+OS : Red Hat AS 2.1
+Kernel : 2.4.9-e.27.stack
+OCFS BUILD 1.9.9-1120BERT ;-)
+TEST LEVEL : 1
+BUG# : N/A
+SEVERITY : 2 (oops in ocfs module)
+Description:
+
+
+Run the following script on an ocfs fs:
+
+#! /bin/bash
+declare -i i
+i=1
+
+while [ $i -lt 1000 ]
+do
+ echo $i
+ dd if=/dev/zero of=/ocfs/data$i bs=128 count=$i
+ sync
+ i=$i+1
+done
+
+After 508 files you get the following oops:
+
+Nov 20 17:41:35 earth kernel: (read) bh (23662) seqnum (1) does not match inode
+(0)
+Nov 20 17:41:35 earth kernel: acquire_lock: lock path is fast_path
+Nov 20 17:41:35 earth kernel: (4467) ERROR: status = -28, dir.c, 1296
+Nov 20 17:41:35 earth kernel: (4467) ERROR: status = -28, namei.c, 437
+Nov 20 17:41:35 earth kernel: (4467) ERROR: status = -28, namei.c, 177
+Nov 20 17:41:35 earth kernel: Unable to handle kernel NULL pointer dereference a
+t virtual address 00000018
+Nov 20 17:41:35 earth kernel: printing eip:
+Nov 20 17:41:35 earth kernel: e08ec8b5
+Nov 20 17:41:35 earth kernel: *pde = 00000000
+Nov 20 17:41:35 earth kernel: Oops: 0002
+Nov 20 17:41:35 earth kernel: Kernel 2.4.9-e.27.stack
+Nov 20 17:41:35 earth kernel: CPU: 0
+Nov 20 17:41:35 earth kernel: EIP: 0010:[ide-cd:ignore+384869/143679899] N
+ot tainted
+Nov 20 17:41:35 earth kernel: EIP: 0010:[<e08ec8b5>] Not tainted
+Nov 20 17:41:35 earth kernel: EFLAGS: 00010246
+Nov 20 17:41:35 earth kernel: EIP is at ocfs_mknod [ocfs] 0x415
+Nov 20 17:41:35 earth kernel: eax: 00000002 ebx: 00000000 ecx: 00000000 ed
+x: 00000000
+Nov 20 17:41:35 earth kernel: esi: 00000000 edi: 00001173 ebp: deb17a20 es
+p: d8c59e50
+Nov 20 17:41:35 earth kernel: ds: 0018 es: 0018 ss: 0018
+Nov 20 17:41:35 earth kernel: Process dd (pid: 4467, stackpage=d8c59000)
+Nov 20 17:41:35 earth kernel: Stack: 00000586 d8c59e88 d9d20e40 00000000 dc63100
+0 00000000 dc631000 deb17a20
+Nov 20 17:41:35 earth kernel: deb61200 00000000 d5e42e60 00000000 db4c420
+0 d94403c0 0024e000 00000000
+Nov 20 17:41:35 earth kernel: deb61200 00000001 db7a9001 01b1bb6b ded0880
+0 00000000 0024e000 00000000
+Nov 20 17:41:35 earth kernel: Call Trace: <d8c59ecc> [ide-cd:ignore+390969/14367
+3799] ocfs_create [ocfs] 0x89
+Nov 20 17:41:36 earth kernel: Call Trace: <d8c59ecc> [<e08ee089>] ocfs_create [o
+cfs] 0x89
+Nov 20 17:41:36 earth kernel: <d8c59eec> [vfs_create+183/240] vfs_create [kernel
+] 0xb7
+Nov 20 17:41:36 earth kernel: <d8c59eec> [<c0148467>] vfs_create [kernel] 0xb7
+Nov 20 17:41:36 earth kernel: <d8c59f04> [lookup_hash+106/144] lookup_hash [kern
+el] 0x6a
+Nov 20 17:41:36 earth kernel: <d8c59f04> [<c01482ba>] lookup_hash [kernel] 0x6a
+Nov 20 17:41:36 earth kernel: <d8c59f1c> [open_namei+348/1488] open_namei [kerne
+l] 0x15c
+Nov 20 17:41:36 earth kernel: <d8c59f1c> [<c01485fc>] open_namei [kernel] 0x15c
+Nov 20 17:41:36 earth kernel: <d8c59f40> [dentry_open+195/320] dentry_open [kern
+el] 0xc3
+Nov 20 17:41:36 earth kernel: <d8c59f40> [<c013d143>] dentry_open [kernel] 0xc3
+Nov 20 17:41:36 earth kernel: <d8c59f68> [filp_open+54/96] filp_open [kernel] 0x
+36
+Nov 20 17:41:36 earth kernel: <d8c59f68> [<c013d056>] filp_open [kernel] 0x36
+Nov 20 17:41:36 earth kernel: <d8c59fa0> [sys_open+54/176] sys_open [kernel] 0x3
+6
+Nov 20 17:41:36 earth kernel: <d8c59fa0> [<c013d346>] sys_open [kernel] 0x36
+Nov 20 17:41:36 earth kernel: <d8c59fc0> [system_call+51/56] system_call [kernel
+] 0x33
+Nov 20 17:41:36 earth kernel: <d8c59fc0> [<c010712b>] system_call [kernel] 0x33
+Nov 20 17:41:36 earth kernel:
+Nov 20 17:41:36 earth kernel:
+Nov 20 17:41:36 earth kernel: Code: 0f ab 46 18 19 c0 85 c0 74 1b bb 02 00 00 00
+ 83 ec 0c 56 e8
+ Nov 20 17:41:36 earth kernel: <0>Kernel panic: not continuing
+-------------------------------------------------------------------------------
+Date Reported : 12/04/2003
+OS : Red Hat AS 2.1
+Kernel : 2.4.9-e.27.stacksmp
+OCFS BUILD 1.9.9 build lkocfs-0312041222
+TEST LEVEL : 1
+BUG# : N/A
+SEVERITY : 2 (leak)
+Description:
+
+On a new ocfs with directories 0 - 641 created :
+
+[root at ocfs10 tests]# mkdir /ocfs2/642
+mkdir: cannot create directory `/ocfs2/642': No space left on device
+[root at ocfs10 tests]# Dec 5 00:46:56 ocfs10 kernel: acquire_lock: lock path is f
+ast_path
+Dec 5 00:46:56 ocfs10 last message repeated 2 times
+Dec 5 00:46:56 ocfs10 kernel: (3594) ERROR: Cannot allocate 16 contiguous clust
+ers for system file
+Dec 5 00:46:56 ocfs10 kernel: , alloc.c, 2772
+Dec 5 00:46:56 ocfs10 kernel: (3594) ERROR: status = -28, sysfile.c, 430
+Dec 5 00:46:56 ocfs10 kernel: (3594) ERROR: status = -28, alloc.c, 2969
+Dec 5 00:46:56 ocfs10 kernel: (3594) ERROR: status = -28, namei.c, 375
+Dec 5 00:46:56 ocfs10 kernel: (3594) ERROR: status = -28, namei.c, 182
+
+[root at ocfs10 tests]# umount /ocfs2
+[root at ocfs10 tests]# Dec 5 00:48:02 ocfs10 kernel: ocfs: Unmounting device (8,1
+8) on ocfs10 (node 0)
+Dec 5 00:48:02 ocfs10 kernel: VFS: Busy inodes after unmount. Self-destruct in
+5 seconds. Have a nice day...
+-------------------------------------------------------------------------------
+Date Reported : 12/04/2003
+OS : Red Hat AS 2.1
+Kernel : 2.4.9-e.25markenterprise
+OCFS BUILD 1.9.9 build out of cvs on this day.
+TEST LEVEL : 1
+BUG# : N/A
+SEVERITY : 2
+Description:
+
+Somewhere we're not handling an EINTR properly. If I ctrl-c a process
+hung in mknod, it continues from inssert_file and does a
+commit_trans. Clearly it should be aborting.
+-------------------------------------------------------------------------------
+Date Reported : 12/05/2003
+OS : Red Hat AS 2.1
+Kernel : 2.4.9-e.27.stacksmp
+OCFS BUILD 1.9.9 build lkocfs-0312051752
+TEST LEVEL : 1
+BUG# : N/A
+SEVERITY : 2
+Description:
+
+In a two node vmware setup, touching a file on node 1, on node 2 the file
+does not appear when running ls. Hopefully this is just a limitation
+of the vmware setup, but it makes two node testing impossible.
+Ofcourse, a whole gamma of exotic errors spring off from this basic problem.
+
+UPDATE: tested the vmware setup with ocfs v1 and there it works fine !
+
+-------------------------------------------------------------------------------
+Date Reported : 12/05/2003
+OS : Red Hat AS 2.1
+Kernel : 2.4.9-e.27.stacksmp
+OCFS BUILD 1.9.9 build lkocfs-0312051752
+TEST LEVEL : 1
+BUG# : N/A
+SEVERITY : 2
+Description:
+
+
+dd o_direct=yes if=/dev/random of=/ocfs/test bs=1 count=1 seek=1
+on a one byte file /ocfs/test fails with "invalid argument" but does
+extend the file with one byte - stracing shows the invalid argument occurs in
+write(). Does odirect write require a 512byte aligned file offset ?
+-------------------------------------------------------------------------------
+Date Reported : 12/13/2003
+OS : Red Hat AS 2.1
+Kernel : 2.4.9-e.27.stacksmp
+OCFS BUILD 1.9.9 build lkocfs-031213
+TEST LEVEL : 1
+BUG# : N/A
+SEVERITY : 2
+Description:
+
+
+When mounting a new ocfs filesystem i get "hey bozo you're tyring to read
+a system thingy cached" once for 0.512 and three times for 0.1024 ,
+all in nm.c line 607 / context:
+ /* If we found the lockres in the hash and it's asked for, we still
+ * need to return a buffer_head */
+ if (status >= 0) {
+ status = ocfs_read_bh(osb, (*lockres)->sector_num, b,
+ OCFS_BH_CACHED, NULL);
+ if (status < 0) {
+ LOG_ERROR_STATUS(status);
+ goto finally;
+ }
+ }
+-------------------------------------------------------------------------------
Added: trunk/COPYING
===================================================================
--- trunk/COPYING 2003-12-18 23:25:52 UTC (rev 13)
+++ trunk/COPYING 2003-12-18 23:28:02 UTC (rev 14)
@@ -0,0 +1,340 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.
+ 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users. This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it. (Some other Free Software Foundation software is covered by
+the GNU Library General Public License instead.) You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+ To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have. You must make sure that they, too, receive or can get the
+source code. And you must show them these terms so they know their
+rights.
+
+ We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+ Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software. If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+ Finally, any free program is threatened constantly by software
+patents. We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary. To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ GNU GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License. The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language. (Hereinafter, translation is included without limitation in
+the term "modification".) Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+ 1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+ 2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+ a) You must cause the modified files to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ b) You must cause any work that you distribute or publish, that in
+ whole or in part contains or is derived from the Program or any
+ part thereof, to be licensed as a whole at no charge to all third
+ parties under the terms of this License.
+
+ c) If the modified program normally reads commands interactively
+ when run, you must cause it, when started running for such
+ interactive use in the most ordinary way, to print or display an
+ announcement including an appropriate copyright notice and a
+ notice that there is no warranty (or else, saying that you provide
+ a warranty) and that users may redistribute the program under
+ these conditions, and telling the user how to view a copy of this
+ License. (Exception: if the Program itself is interactive but
+ does not normally print such an announcement, your work based on
+ the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+ 3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+ a) Accompany it with the complete corresponding machine-readable
+ source code, which must be distributed under the terms of Sections
+ 1 and 2 above on a medium customarily used for software interchange; or,
+
+ b) Accompany it with a written offer, valid for at least three
+ years, to give any third party, for a charge no more than your
+ cost of physically performing source distribution, a complete
+ machine-readable copy of the corresponding source code, to be
+ distributed under the terms of Sections 1 and 2 above on a medium
+ customarily used for software interchange; or,
+
+ c) Accompany it with the information you received as to the offer
+ to distribute corresponding source code. (This alternative is
+ allowed only for noncommercial distribution and only if you
+ received the program in object code or executable form with such
+ an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it. For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable. However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+ 4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License. Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+ 5. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Program or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+ 6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions. You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+ 7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all. For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+ 8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded. In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+ 9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation. If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+ 10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission. For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this. Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+ NO WARRANTY
+
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the program's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+ Gnomovision version 69, Copyright (C) year name of author
+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary. Here is a sample; alter the names:
+
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+ `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+ <signature of Ty Coon>, 1 April 1989
+ Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs. If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library. If this is what you want to do, use the GNU Library General
+Public License instead of this License.
Deleted: trunk/Config.make
===================================================================
--- trunk/Config.make 2003-12-18 23:25:52 UTC (rev 13)
+++ trunk/Config.make 2003-12-18 23:28:02 UTC (rev 14)
@@ -1,71 +0,0 @@
-PACKAGE = ocfs
-VERSION = 1.9.9-UNSTABLE
-
-DIST_VERSION = 1.9.9
-RPM_VERSION = 1
-
-MAJOR_VERSION = 1
-MINOR_VERSION = 9
-MICRO_VERSION = 9
-EXTRA_VERSION = ALPHA
-
-SHELL = /bin/sh
-
-prefix = /usr/local
-exec_prefix = ${prefix}
-
-bindir = ${exec_prefix}/bin
-sbindir = ${exec_prefix}/sbin
-datadir = ${prefix}/share
-sysconfdir = ${prefix}/etc
-mandir = ${prefix}/man
-
-top_builddir = .
-
-INSTALL = /usr/bin/install -c
-INSTALL_PROGRAM = ${INSTALL}
-INSTALL_DATA = ${INSTALL} -m 644
-
-LN_S = ln -s
-
-CC = gcc
-CPP = gcc -E
-AR = /usr/bin/ar
-RANLIB = ranlib
-
-CFLAGS = -g -O2
-CPPFLAGS =
-LDFLAGS =
-
-KERNELDIR = /usr/src/linux-2.4.9-e.12
-#KERNELDIR = /usr/src/linux
-#KERNELDIR = /scratch/mfasheh/linux-2.4.9-e.12_autofs4
-KERNELINC = $(KERNELDIR)/include
-KERNELVER = 2.4.9-e.12
-
-KVER = up
-
-MODULEDIR = /lib/modules/2.4.9-e.12/kernel/fs
-MODVERSIONS = -include $(KERNELINC)/linux/modversions.h -DMODVERSIONS
-
-#GCCINC = /usr/lib/gcc-lib/i386-linux/2.95.4/include
-#GCCINC = /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include
-GCCINC = /usr/lib/gcc-lib/i386-redhat-linux/2.96/include
-
-GTK_CFLAGS = -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include
-GTK_LIBS = -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm
-
-TOOLDIRS = cdslctl format debugocfs load_ocfs ocfs_uid_gen ocfstool
-LIBDEBUGOCFS = libdebugocfs.a
-
-OCFS_DEBUG = yes
-OCFS_AIO =
-OCFS_MEMDEBUG =
-OCFS_TRACE = yes
-OCFS_PROCESSOR = i686
-#This should be defined for all kernels <= 2.4.21 except
-#for rhel3 and latest rhas update.
-#USE_JOURNAL_CREATE_REPLACEMENT = yes
-
-#define this for RHEL3 systems and systems that have NPTL.
-#HAVE_NPTL = yes
Added: trunk/Config.make.in
===================================================================
--- trunk/Config.make.in 2003-12-18 23:25:52 UTC (rev 13)
+++ trunk/Config.make.in 2003-12-18 23:28:02 UTC (rev 14)
@@ -0,0 +1,60 @@
+PACKAGE = @PACKAGE@
+VERSION = @VERSION@
+
+DIST_VERSION = @DIST_VERSION@
+RPM_VERSION = @RPM_VERSION@
+
+MAJOR_VERSION = @MAJOR_VERSION@
+MINOR_VERSION = @MINOR_VERSION@
+MICRO_VERSION = @MICRO_VERSION@
+EXTRA_VERSION = @EXTRA_VERSION@
+
+SHELL = @SHELL@
+
+prefix = @prefix@
+exec_prefix = @exec_prefix@
+
+bindir = @bindir@
+sbindir = @sbindir@
+datadir = @datadir@
+sysconfdir = @sysconfdir@
+mandir = @mandir@
+
+top_builddir = .
+
+INSTALL = @INSTALL@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_DATA = @INSTALL_DATA@
+
+LN_S = @LN_S@
+
+CC = @CC@
+CPP = @CPP@
+AR = @AR@
+RANLIB = @RANLIB@
+
+CFLAGS = @CFLAGS@
+CPPFLAGS = @CPPFLAGS@
+LDFLAGS = @LDFLAGS@
+
+KERNELDIR = @KERNELDIR@
+KERNELINC = $(KERNELDIR)/include
+KERNELVER = @KERNELVER@
+
+KVER = @KVER@
+
+HAVE_NPTL = @HAVE_NPTL@
+
+MODULEDIR = @MODULEDIR@
+MODVERSIONS = @MODVERSIONS@
+
+GCCINC = @GCCINC@
+
+OCFS_DEBUG = @OCFS_DEBUG@
+OCFS_LARGEIO = @OCFS_LARGEIO@
+OCFS_AIO = @OCFS_AIO@
+OCFS_MEMDEBUG = @OCFS_MEMDEBUG@
+OCFS_TRACE = @OCFS_TRACE@
+OCFS_PROCESSOR = @OCFS_PROCESSOR@
+
+USE_JOURNAL_CREATE_REPLACEMENT = @USE_JOURNAL_CREATE_REPLACEMENT@
Deleted: trunk/Makefile
===================================================================
--- trunk/Makefile 2003-12-18 23:25:52 UTC (rev 13)
+++ trunk/Makefile 2003-12-18 23:28:02 UTC (rev 14)
@@ -1,444 +0,0 @@
-TOPDIR = .
-
-ifeq ($(TOPDIR)/Config.make,$(wildcard $(TOPDIR)/Config.make))
-include $(TOPDIR)/Config.make
-else
-.PHONY: dummy-notconfigured
-dummy-notconfigured:
- @echo "Please run the configure script first"
-endif
-
-LIBRARIES =
-PROGRAMS =
-MODULES =
-MANS =
-
-INSTALL_RULES =
-
-CLEAN_FILES =
-CLEAN_RULES =
-
-DIST_FILES =
-DIST_RULES =
-
-INCLUDES =
-DEFINES =
-
-CFLAGS += $($(subst /,_,$(basename $@))_CFLAGS)
-CFLAGS += -pipe
-
-LINK = $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
-
-VERSION_FILES =
-VERSION_PREFIX =
-VERSION_SRC =
-
-DIST_TOPDIR = $(TOPDIR)/$(PACKAGE)-$(DIST_VERSION)
-DIST_CURDIR = .
-DIST_DIR = $(DIST_TOPDIR)/$(DIST_CURDIR)
-
-GZIP_OPTS = --best
-
-.PHONY: all strip install
-all: all-rules
-strip: strip-rules
-install: install-rules
-
-#SUBDIRS = .
-
-DIST_FILES = \
- COPYING \
- README \
- Config.make.in \
- Preamble.make \
- Postamble.make \
- ReleaseNotes \
- aclocal.m4 \
- config.guess \
- config.sub \
- configure \
- configure.in \
- install-sh \
- mkinstalldirs
-
-.PHONY: dist dist-bye dist-fresh distclean
-
-dist-bye:
- -rm -rf $(DIST_TOPDIR)
-
-dist-fresh: dist-bye
- $(TOPDIR)/mkinstalldirs $(DIST_TOPDIR)
-
-dist: dist-fresh dist-all
- GZIP=$(GZIP_OPTS) tar chozf $(DIST_TOPDIR).tar.gz $(DIST_TOPDIR)
- $(MAKE) dist-bye
-
-rhas_srpm: dist
- rpm -bs --define "_sourcedir $(TOPDIR)" --define "_srcrpmdir $(TOPDIR)" $(TOPDIR)/redhat/ocfs-2.4.9-e.spec
-
-rhasia64_srpm: dist
- rpm -bs --define "_sourcedir $(TOPDIR)" --define "_srcrpmdir $(TOPDIR)" $(TOPDIR)/redhat/ocfs-2.4.18-e.spec
-
-rhas_rpm: rhas_srpm
- rpm --rebuild --target i686 "ocfs-2.4.9-e-$(DIST_VERSION)-$(RPM_VERSION).src.rpm"
-
-rhasia64_rpm: rhasia64_srpm
- rpm --rebuild --target ia64 "ocfs-2.4.18-e-$(DIST_VERSION)-$(RPM_VERSION).src.rpm"
-
-ul64gb_srpm: dist
- rpm -bs --define "_sourcedir `realpath $(TOPDIR)`" --define "_srcrpmdir `realpath $(TOPDIR)`" $(TOPDIR)/unitedlinux/ocfs-2.4.19-64GB-SMP.spec
-
-ul64gb_rpm: ul64gb_srpm
- rpm --rebuild --target i586 "ocfs-2.4.19-64GB-SMP-$(DIST_VERSION)-$(RPM_VERSION).src.rpm"
-
-
-ul4gbsmp_srpm: dist
- rpm -bs --define "_sourcedir `realpath $(TOPDIR)`" --define "_srcrpmdir `realpath $(TOPDIR)`" $(TOPDIR)/unitedlinux/ocfs-2.4.19-4GB-SMP.spec
-
-ul4gbsmp_rpm: ul4gbsmp_srpm
- rpm --rebuild --target i586 "ocfs-2.4.19-4GB-SMP-$(DIST_VERSION)-$(RPM_VERSION).src.rpm"
-
-ul4gb_srpm: dist
- rpm -bs --define "_sourcedir `realpath $(TOPDIR)`" --define "_srcrpmdir `realpath $(TOPDIR)`" $(TOPDIR)/unitedlinux/ocfs-2.4.19-4GB.spec
-
-ul4gb_rpm: ul4gb_srpm
- rpm --rebuild --target i586 "ocfs-2.4.19-4GB-$(DIST_VERSION)-$(RPM_VERSION).src.rpm"
-
-distclean: clean
- rm -f Config.make config.status config.cache config.log
-
-
-
-ifeq ($(OCFS_PROCESSOR),x86_64)
- WARNINGS = -Wall -Wstrict-prototypes -Wno-format
-else
- WARNINGS = -Wall -Wstrict-prototypes -Wno-format -Wmissing-prototypes \
- -Wmissing-declarations
-endif
-
-#REMOVE THIS NEXT LINE AFTER DONE MOVING PROTOTYPES AROUND
-# WARNINGS = -Wall -Wstrict-prototypes -Wno-format \
-# -Wmissing-declarations
-
-ifdef OCFS_DEBUG
-OPTS += -g
-endif
-
-BASE_DEFINES = -DMODULE -DLINUX -D__KERNEL__
-DEFINES = $(BASE_DEFINES)
-
-ifdef OCFS_DEBUG
-DEFINES += -DDEBUG
-endif
-
-ifdef OCFS_MEMDEBUG
-DEFINES += -DOCFS_LINUX_MEM_DEBUG -DDEBUG_SLAB_ALLOCS
-endif
-
-ifdef OCFS_AIO
-DEFINES += -DAIO_ENABLED
-endif
-
-ifdef OCFS_TRACE
-DEFINES += -DTRACE
-endif
-
-ifdef HAVE_NPTL
-DEFINES += -DHAVE_NPTL
-endif
-
-ifdef USE_JOURNAL_CREATE_REPLACEMENT
-DEFINES += -DUSE_JOURNAL_CREATE_REPLACEMENT
-endif
-
-DEFINES += -DDEBUG_LOCK_BUFFER
-DEFINES += -DVERBOSE_BH_JBD_TRACE
-DEFINES += -DVERBOSE_LOCKING_TRACE
-DEFINES += -DOCFS_DBG_TIMING
-
-DEFINES += -DALLOW_NO_HANDLE_SYNCING
-
-ifeq ($(KVER),vmware)
- KERNELINC = /usr/src/linux-2.4/include
-endif
-
-ifeq ($(KVER),smp)
- DEFINES += -D__MODULE_KERNEL_i686=1
- DEFINES += -D__BOOT_KERNEL_ENTERPRISE=0
- DEFINES += -D__BOOT_KERNEL_SMP=1
- DEFINES += -D__BOOT_KERNEL_UP=0
-endif
-ifeq ($(KVER),ent)
- DEFINES += -D__MODULE_KERNEL_i686=1
- DEFINES += -D__BOOT_KERNEL_ENTERPRISE=1
- DEFINES += -D__BOOT_KERNEL_SMP=0
- DEFINES += -D__BOOT_KERNEL_UP=0
-endif
-ifeq ($(KVER),up)
- DEFINES += -D__MODULE_KERNEL_i686=1
- DEFINES += -D__BOOT_KERNEL_ENTERPRISE=0
- DEFINES += -D__BOOT_KERNEL_SMP=0
- DEFINES += -D__BOOT_KERNEL_UP=1
-endif
-
-INCLUDES = -Iinc -I$(KERNELINC) -I$(GCCINC)
-
-CFLAGS=$(OPTS) -nostdinc -fomit-frame-pointer $(MODVERSIONS) $(WARNINGS)
-LDADD=-nostdlib
-
-ifeq ($(OCFS_PROCESSOR),x86_64)
- DEFINES += -Dx86_64
- DEFINES += -DSUSE -D__OPTIMIZE__
- CFLAGS += -mcmodel=kernel
- CFLAGS += -O0
-else
- CFLAGS += -O2
-endif
-
-MODULES = ocfs.o
-
-
-CPARTNER = \
- hash.c \
- oin.c \
- super.c \
- ver.c \
- bitmap.c \
- heartbeat.c \
- journal.c \
- osb.c \
- sysfile.c \
- volcfg.c \
- dcache.c \
- extmap.c \
- inode.c \
- namei.c \
- proc.c \
- vote.c \
- dir.c \
- file.c \
- ioctl.c \
- nm.c \
- sem.c \
- util.c \
- alloc.c \
- dlm.c \
- symlink.c
-
-
-ifeq ($(OCFS_PROCESSOR),x86_64)
-SUPPORT =
-endif
-ifeq ($(OCFS_PROCESSOR),ia64)
-SUPPORT =
-endif
-ifeq ($(OCFS_PROCESSOR),i686)
-SUPPORT = divdi3.c
-endif
-ifeq ($(OCFS_PROCESSOR),i586)
-SUPPORT = divdi3.c
-endif
-
-CFILES = $(CPARTNER) $(CALONE) $(SUPPORT)
-
-HALONE = \
- inc/ocfs.h
-
-HFILES = $(HPARTNER) $(HALONE)
-
-$(CFILES): $(HFILES)
-
-VERSION_FILES = $(CFILES) $(HFILES)
-VERSION_SRC = ver.c
-VERSION_PREFIX = OCFS
-
-OBJS = $(subst .c,.o,$(CFILES))
-
-all: ocfs.o
-
-ocfs.o: $(OBJS)
- $(CC) $(OPTS) -Wl,-r -o $@ $^ $(LDADD)
-
-
-INSTALL_RULES = install-ocfs
-
-install-ocfs: ocfs.o
- $(TOPDIR)/mkinstalldirs $(DESTDIR)$(MODULEDIR)
- $(INSTALL_DATA) ocfs.o $(DESTDIR)$(MODULEDIR)/ocfs.o
-
-
-CLEAN_RULES = clean-ocfs
-
-clean-ocfs:
- rm -f Common/*.o Linux/*.o Common/*.p Linux/*.p Common/*.s Linux/*.s
-
-DIST_FILES = ocfs.conf
-DIST_RULES = dist-subdircreate
-
-dist-subdircreate:
- $(TOPDIR)/mkinstalldirs $(DIST_DIR)/Common/inc
- $(TOPDIR)/mkinstalldirs $(DIST_DIR)/Linux/inc
- $(TOPDIR)/mkinstalldirs $(DIST_DIR)/Support
-
-
-ifdef VERSION_SRC
-
-ifndef VERSION_FILES
-$(error Need VERSION_FILES defined for version objects)
-endif
-
-ifndef VERSION_PREFIX
-$(error Need VERSION_PREFIX defined for version objects)
-endif
-
-VERSION_OBJ = $(subst .c,.o,$(VERSION_SRC))
-
-VERSION_NUM = $(VERSION_PREFIX)_BUILD_VERSION
-VERSION_DATE = $(VERSION_PREFIX)_BUILD_DATE
-VERSION_MD5 = $(VERSION_PREFIX)_BUILD_MD5
-
-VERDEFS = -D$(VERSION_NUM)=\""$(VERSION)"\" \
- -D$(VERSION_DATE)=\""$(shell LANG=C date)"\" \
- -D$(VERSION_MD5)=\""$(shell cat stamp-md5)"\"
-
-VERMAGIC = $(if $(filter $(VERSION_OBJ),$@),$(VERDEFS))
-
-ifneq ($(MAKECMDGOALS),install)
-VERSTAMP = stamp
-endif
-
-stamp: ;
-
-stamp-md5: $(VERSION_FILES)
- @cat $(VERSION_FILES) Makefile | md5sum | sed -e 's/ .*//' > stamp-md5
-
-$(VERSION_OBJ): stamp-md5 $(VERSTAMP)
-endif
-
-
-LOCAL_CFLAGS = $($(subst /,_,$(basename $@))_CFLAGS)
-LOCAL_CPPFLAGS = $($(subst /,_,$(basename $@))_CPPFLAGS)
-
-%.o: %.c
- $(CC) $(CFLAGS) $(LOCAL_CFLAGS) $(CPPFLAGS) $(LOCAL_CPPFLAGS) $(INCLUDES) $(DEFINES) $(VERMAGIC) -o $@ -c $<
-
-%.p: %.c
- $(CC) $(CFLAGS) $(LOCAL_CFLAGS) $(CPPFLAGS) $(LOCAL_CPPFLAGS) $(INCLUDES) $(DEFINES) $(VERMAGIC) -E -o $@ -c $<
-
-%.s: %.c
- $(CC) $(CFLAGS) $(LOCAL_CFLAGS) $(CPPFLAGS) $(LOCAL_CPPFLAGS) $(INCLUDES) $(DEFINES) $(VERMAGIC) -S -o $@ -c $<
-
-%proto.h: %.c
- cproto -s $(INCLUDES) $(DEFINES) $<
-
-
-
-.PHONY: subdirs $(SUBDIRS)
-subdirs: $(SUBDIRS)
-
-$(SUBDIRS):
- $(MAKE) -C $@
-
-.PHONY: all-rules
-all-rules: subdirs $(LIBRARIES) $(BIN_PROGRAMS) $(SBIN_PROGRAMS) $(MODULES) $(MANS)
-
-
-INSTALL_SUBDIRS = $(addsuffix -install,$(SUBDIRS))
-
-.PHONY: install-rules install-subdirs $(INSTALL_RULES) install-bin-programs install-bin-extra install-sbin-programs install-sbin-extra
-
-install-subdirs: $(INSTALL_SUBDIRS)
-
-$(INSTALL_SUBDIRS):
- $(MAKE) -C $(subst -install,,$@) install
-
-install-bin-programs: $(BIN_PROGRAMS)
-ifdef BIN_PROGRAMS
- $(SHELL) $(TOPDIR)/mkinstalldirs $(DESTDIR)$(bindir)
- for prog in $(BIN_PROGRAMS); do \
- $(INSTALL_PROGRAM) $$prog $(DESTDIR)$(bindir)/$$prog; \
- done
-endif
-
-install-bin-extra: $(BIN_EXTRA)
-ifdef BIN_EXTRA
- $(SHELL) $(TOPDIR)/mkinstalldirs $(DESTDIR)$(bindir)
- for prog in $(BIN_EXTRA); do \
- $(INSTALL_PROGRAM) $$prog $(DESTDIR)$(bindir)/$$prog; \
- done
-endif
-
-install-sbin-programs: $(SBIN_PROGRAMS)
-ifdef SBIN_PROGRAMS
- $(SHELL) $(TOPDIR)/mkinstalldirs $(DESTDIR)$(sbindir)
- for prog in $(SBIN_PROGRAMS); do \
- $(INSTALL_PROGRAM) $$prog $(DESTDIR)$(sbindir)/$$prog; \
- done
-endif
-
-install-sbin-extra: $(SBIN_EXTRA)
-ifdef SBIN_EXTRA
- $(SHELL) $(TOPDIR)/mkinstalldirs $(DESTDIR)$(sbindir)
- for prog in $(SBIN_EXTRA); do \
- $(INSTALL_PROGRAM) $$prog $(DESTDIR)$(sbindir)/$$prog; \
- done
-endif
-
-install-mans: $(MANS)
-ifdef MANS
- $(SHELL) $(TOPDIR)/mkinstalldirs $(DESTDIR)$(mandir)
- for man in $(MANS); do \
- dir=`echo $$man | sed -e 's/^.*\\./man/'`; \
- $(SHELL) $(TOPDIR)/mkinstalldirs $(DESTDIR)$(mandir)/$$dir; \
- $(INSTALL_DATA) $$man $(DESTDIR)$(mandir)/$$dir/$$man; \
- done
-endif
-
-install-rules: install-subdirs $(INSTALL_RULES) install-bin-programs install-bin-extra install-sbin-programs install-sbin-extra install-mans
-
-
-CLEAN_SUBDIRS = $(addsuffix -clean,$(SUBDIRS))
-
-.PHONY: clean clean-subdirs $(CLEAN_RULES) $(CLEAN_SUBDIRS)
-
-clean-subdirs: $(CLEAN_SUBDIRS)
-
-$(CLEAN_SUBDIRS):
- $(MAKE) -C $(subst -clean,,$@) clean
-
-clean: clean-subdirs $(CLEAN_RULES)
- rm -f *.o *.p core $(BIN_PROGRAMS) $(SBIN_PROGRAMS) $(LIBRARIES) stamp-md5
-
-
-DIST_SUBDIRS = $(addsuffix -dist,$(SUBDIRS))
-
-.PHONY: dist-all dist-mkdir dist-copy dist-subdirs $(DIST_RULES) $(DIST_SUBDIRS)
-
-dist-subdirs: $(DIST_SUBDIRS)
-
-$(DIST_SUBDIRS):
- $(MAKE) -C $(subst -dist,,$@) dist-all \
- DIST_CURDIR=$(DIST_CURDIR)/$(subst -dist,,$@)
-
-dist-mkdir:
- $(SHELL) $(TOPDIR)/mkinstalldirs $(DIST_DIR)
-
-DIST_ALL_FILES = Makefile $(BIN_EXTRA) $(SBIN_EXTRA) $(MANS) $(VERSION_FILES) $(DIST_FILES)
-
-dist-copy: dist-mkdir $(DIST_ALL_FILES) $(DIST_RULES)
- @for file in $(DIST_ALL_FILES); do \
- echo " cp -p $$file $(DIST_DIR)/$$file"; \
- cp -p $$file $(DIST_DIR)/$$file; \
- done
-
-dist-all: dist-copy dist-subdirs
-
-
-cscope:
- rm -f cscope.*
- echo "-k" >> cscope.files
- echo "-I ." >> cscope.files
- echo "-I inc" >> cscope.files
- find . -name '*.c' -print >>cscope.files
- find . -name '*.h' -print >>cscope.files
- cscope -b
Added: trunk/Makefile
===================================================================
--- trunk/Makefile 2003-12-18 23:25:52 UTC (rev 13)
+++ trunk/Makefile 2003-12-18 23:28:02 UTC (rev 14)
@@ -0,0 +1,81 @@
+TOPDIR = .
+
+include $(TOPDIR)/Preamble.make
+
+SUBDIRS = src docs patches
+
+DIST_FILES = \
+ COPYING \
+ Config.make.in \
+ Preamble.make \
+ Postamble.make \
+ config.guess \
+ config.sub \
+ configure \
+ configure.in \
+ install-sh \
+ mkinstalldirs
+
+.PHONY: dist dist-bye dist-fresh distclean
+
+dist-bye:
+ -rm -rf $(DIST_TOPDIR)
+
+dist-fresh: dist-bye
+ $(TOPDIR)/mkinstalldirs $(DIST_TOPDIR)
+
+dist: dist-fresh dist-all
+ GZIP=$(GZIP_OPTS) tar chozf $(DIST_TOPDIR).tar.gz $(DIST_TOPDIR)
+ $(MAKE) dist-bye
+
+# REDHAT
+rhas_srpm: dist
+ rpm -bs --define "_sourcedir $(TOPDIR)" --define "_srcrpmdir $(TOPDIR)" $(TOPDIR)/redhat/ocfs-2.4.9-e.spec
+
+rhasia64_srpm: dist
+ rpm -bs --define "_sourcedir $(TOPDIR)" --define "_srcrpmdir $(TOPDIR)" $(TOPDIR)/redhat/ocfs-2.4.18-e.spec
+
+rhas_rpm: rhas_srpm
+ rpm --rebuild --target i686 "ocfs-2.4.9-e-$(DIST_VERSION)-$(RPM_VERSION).src.rpm"
+
+rhasia64_rpm: rhasia64_srpm
+ rpm --rebuild --target ia64 "ocfs-2.4.18-e-$(DIST_VERSION)-$(RPM_VERSION).src.rpm"
+
+rhel3_srpm: dist
+ rpmbuild -bs --define "_sourcedir $(TOPDIR)" --define "_srcrpmdir $(TOPDIR)" $(TOPDIR)/redhat/ocfs-2.4.21-EL.spec
+
+rhel3_rpm: rhel3_srpm
+ rpmbuild --rebuild --target i686 "ocfs-2.4.21-EL-$(DIST_VERSION)-$(RPM_VERSION).src.rpm"
+
+
+# UNITED LINUX
+#
+ul64gb_srpm: dist
+ rpm -bs --define "_sourcedir `realpath $(TOPDIR)`" --define "_srcrpmdir `realpath $(TOPDIR)`" $(TOPDIR)/unitedlinux/ocfs-2.4.19-64GB-SMP.spec
+
+ul64gb_rpm: ul64gb_srpm
+ rpm --rebuild --target i586 "ocfs-2.4.19-64GB-SMP-$(DIST_VERSION)-$(RPM_VERSION).src.rpm"
+
+
+ul4gbsmp_srpm: dist
+ rpm -bs --define "_sourcedir `realpath $(TOPDIR)`" --define "_srcrpmdir `realpath $(TOPDIR)`" $(TOPDIR)/unitedlinux/ocfs-2.4.19-4GB-SMP.spec
+
+ul4gbsmp_rpm: ul4gbsmp_srpm
+ rpm --rebuild --target i586 "ocfs-2.4.19-4GB-SMP-$(DIST_VERSION)-$(RPM_VERSION).src.rpm"
+
+ul4gb_srpm: dist
+ rpm -bs --define "_sourcedir `realpath $(TOPDIR)`" --define "_srcrpmdir `realpath $(TOPDIR)`" $(TOPDIR)/unitedlinux/ocfs-2.4.19-4GB.spec
+
+ul4gb_rpm: ul4gb_srpm
+ rpm --rebuild --target i586 "ocfs-2.4.19-4GB-$(DIST_VERSION)-$(RPM_VERSION).src.rpm"
+
+ul10sp3_%_srpm: dist
+ rpm -bs --define "_sourcedir `pwd`" --define "_srcrpmdir `pwd`" $(TOPDIR)/unitedlinux/ocfs-2.4.21-$(patsubst ul10sp3_%_srpm,%,$@).spec
+
+ul10sp3_%_rpm: ul10sp3_%_srpm
+ rpm --rebuild --target i586 "ocfs-2.4.21-$(patsubst ul10sp3_%_rpm,%,$@)-$(DIST_VERSION)-$(RPM_VERSION).src.rpm"
+
+distclean: clean
+ rm -f Config.make config.status config.cache config.log
+
+include $(TOPDIR)/Postamble.make
Modified: trunk/Postamble.make
===================================================================
--- trunk/Postamble.make 2003-12-18 23:25:52 UTC (rev 13)
+++ trunk/Postamble.make 2003-12-18 23:28:02 UTC (rev 14)
@@ -148,11 +148,6 @@
dist-all: dist-copy dist-subdirs
-cscope:
- rm -f cscope.*
- echo "-k" >> cscope.files
- echo "-I ." >> cscope.files
- echo "-I inc" >> cscope.files
- find . -name '*.c' -print >>cscope.files
- find . -name '*.h' -print >>cscope.files
- cscope -b
+ifeq (Cscope.make,$(wildcard Cscope.make))
+include Cscope.make
+endif
Modified: trunk/Preamble.make
===================================================================
--- trunk/Preamble.make 2003-12-18 23:25:52 UTC (rev 13)
+++ trunk/Preamble.make 2003-12-18 23:28:02 UTC (rev 14)
@@ -29,7 +29,7 @@
VERSION_FILES =
VERSION_PREFIX =
-VERSION_SRC =
+VERSION_SRC =
DIST_TOPDIR = $(TOPDIR)/$(PACKAGE)-$(DIST_VERSION)
DIST_CURDIR = .
Added: trunk/autogen.sh
===================================================================
--- trunk/autogen.sh 2003-12-18 23:25:52 UTC (rev 13)
+++ trunk/autogen.sh 2003-12-18 23:28:02 UTC (rev 14)
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+autoconf
+./configure "$@"
Property changes on: trunk/autogen.sh
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/config.guess
===================================================================
--- trunk/config.guess 2003-12-18 23:25:52 UTC (rev 13)
+++ trunk/config.guess 2003-12-18 23:28:02 UTC (rev 14)
@@ -0,0 +1,1415 @@
+#! /bin/sh
+# Attempt to guess a canonical system name.
+# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
+# 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
+
+timestamp='2003-10-07'
+
+# This file is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+#
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+
+# Originally written by Per Bothner <per at bothner.com>.
+# Please send patches to <config-patches at gnu.org>. Submit a context
+# diff and a properly formatted ChangeLog entry.
+#
+# This script attempts to guess a canonical system name similar to
+# config.sub. If it succeeds, it prints the system name on stdout, and
+# exits with 0. Otherwise, it exits with 1.
+#
+# The plan is that this can be called by configure scripts if you
+# don't specify an explicit build system type.
+
+me=`echo "$0" | sed -e 's,.*/,,'`
+
+usage="\
+Usage: $0 [OPTION]
+
+Output the configuration name of the system \`$me' is run on.
+
+Operation modes:
+ -h, --help print this help, then exit
+ -t, --time-stamp print date of last modification, then exit
+ -v, --version print version number, then exit
+
+Report bugs and patches to <config-patches at gnu.org>."
+
+version="\
+GNU config.guess ($timestamp)
+
+Originally written by Per Bothner.
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
+Free Software Foundation, Inc.
+
+This is free software; see the source for copying conditions. There is NO
+warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
+
+help="
+Try \`$me --help' for more information."
+
+# Parse command line
+while test $# -gt 0 ; do
+ case $1 in
+ --time-stamp | --time* | -t )
+ echo "$timestamp" ; exit 0 ;;
+ --version | -v )
+ echo "$version" ; exit 0 ;;
+ --help | --h* | -h )
+ echo "$usage"; exit 0 ;;
+ -- ) # Stop option processing
+ shift; break ;;
+ - ) # Use stdin as input.
+ break ;;
+ -* )
+ echo "$me: invalid option $1$help" >&2
+ exit 1 ;;
+ * )
+ break ;;
+ esac
+done
+
+if test $# != 0; then
+ echo "$me: too many arguments$help" >&2
+ exit 1
+fi
+
+trap 'exit 1' 1 2 15
+
+# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
+# compiler to aid in system detection is discouraged as it requires
+# temporary files to be created and, as you can see below, it is a
+# headache to deal with in a portable fashion.
+
+# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
+# use `HOST_CC' if defined, but it is deprecated.
+
+# Portable tmp directory creation inspired by the Autoconf team.
+
+set_cc_for_build='
+trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
+trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
+: ${TMPDIR=/tmp} ;
+ { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
+ { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
+ { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
+ { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
+dummy=$tmp/dummy ;
+tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
+case $CC_FOR_BUILD,$HOST_CC,$CC in
+ ,,) echo "int x;" > $dummy.c ;
+ for c in cc gcc c89 c99 ; do
+ if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
+ CC_FOR_BUILD="$c"; break ;
+ fi ;
+ done ;
+ if test x"$CC_FOR_BUILD" = x ; then
+ CC_FOR_BUILD=no_compiler_found ;
+ fi
+ ;;
+ ,,*) CC_FOR_BUILD=$CC ;;
+ ,*,*) CC_FOR_BUILD=$HOST_CC ;;
+esac ;'
+
+# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
+# (ghazi at noc.rutgers.edu 1994-08-24)
+if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
+ PATH=$PATH:/.attbin ; export PATH
+fi
+
+UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
+UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
+UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
+UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
+
+# Note: order is significant - the case branches are not exclusive.
+
+case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
+ *:NetBSD:*:*)
+ # NetBSD (nbsd) targets should (where applicable) match one or
+ # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
+ # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
+ # switched to ELF, *-*-netbsd* would select the old
+ # object file format. This provides both forward
+ # compatibility and a consistent mechanism for selecting the
+ # object file format.
+ #
+ # Note: NetBSD doesn't particularly care about the vendor
+ # portion of the name. We always set it to "unknown".
+ sysctl="sysctl -n hw.machine_arch"
+ UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
+ /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
+ case "${UNAME_MACHINE_ARCH}" in
+ armeb) machine=armeb-unknown ;;
+ arm*) machine=arm-unknown ;;
+ sh3el) machine=shl-unknown ;;
+ sh3eb) machine=sh-unknown ;;
+ *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
+ esac
+ # The Operating System including object format, if it has switched
+ # to ELF recently, or will in the future.
+ case "${UNAME_MACHINE_ARCH}" in
+ arm*|i386|m68k|ns32k|sh3*|sparc|vax)
+ eval $set_cc_for_build
+ if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
+ | grep __ELF__ >/dev/null
+ then
+ # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
+ # Return netbsd for either. FIX?
+ os=netbsd
+ else
+ os=netbsdelf
+ fi
+ ;;
+ *)
+ os=netbsd
+ ;;
+ esac
+ # The OS release
+ # Debian GNU/NetBSD machines have a different userland, and
+ # thus, need a distinct triplet. However, they do not need
+ # kernel version information, so it can be replaced with a
+ # suitable tag, in the style of linux-gnu.
+ case "${UNAME_VERSION}" in
+ Debian*)
+ release='-gnu'
+ ;;
+ *)
+ release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
+ ;;
+ esac
+ # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
+ # contains redundant information, the shorter form:
+ # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
+ echo "${machine}-${os}${release}"
+ exit 0 ;;
+ amiga:OpenBSD:*:*)
+ echo m68k-unknown-openbsd${UNAME_RELEASE}
+ exit 0 ;;
+ arc:OpenBSD:*:*)
+ echo mipsel-unknown-openbsd${UNAME_RELEASE}
+ exit 0 ;;
+ hp300:OpenBSD:*:*)
+ echo m68k-unknown-openbsd${UNAME_RELEASE}
+ exit 0 ;;
+ mac68k:OpenBSD:*:*)
+ echo m68k-unknown-openbsd${UNAME_RELEASE}
+ exit 0 ;;
+ macppc:OpenBSD:*:*)
+ echo powerpc-unknown-openbsd${UNAME_RELEASE}
+ exit 0 ;;
+ mvme68k:OpenBSD:*:*)
+ echo m68k-unknown-openbsd${UNAME_RELEASE}
+ exit 0 ;;
+ mvme88k:OpenBSD:*:*)
+ echo m88k-unknown-openbsd${UNAME_RELEASE}
+ exit 0 ;;
+ mvmeppc:OpenBSD:*:*)
+ echo powerpc-unknown-openbsd${UNAME_RELEASE}
+ exit 0 ;;
+ pmax:OpenBSD:*:*)
+ echo mipsel-unknown-openbsd${UNAME_RELEASE}
+ exit 0 ;;
+ sgi:OpenBSD:*:*)
+ echo mipseb-unknown-openbsd${UNAME_RELEASE}
+ exit 0 ;;
+ sun3:OpenBSD:*:*)
+ echo m68k-unknown-openbsd${UNAME_RELEASE}
+ exit 0 ;;
+ wgrisc:OpenBSD:*:*)
+ echo mipsel-unknown-openbsd${UNAME_RELEASE}
+ exit 0 ;;
+ *:OpenBSD:*:*)
+ echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
+ exit 0 ;;
+ alpha:OSF1:*:*)
+ if test $UNAME_RELEASE = "V4.0"; then
+ UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
+ fi
+ # According to Compaq, /usr/sbin/psrinfo has been available on
+ # OSF/1 and Tru64 systems produced since 1995. I hope that
+ # covers most systems running today. This code pipes the CPU
+ # types through head -n 1, so we only detect the type of CPU 0.
+ ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
+ case "$ALPHA_CPU_TYPE" in
+ "EV4 (21064)")
+ UNAME_MACHINE="alpha" ;;
+ "EV4.5 (21064)")
+ UNAME_MACHINE="alpha" ;;
+ "LCA4 (21066/21068)")
+ UNAME_MACHINE="alpha" ;;
+ "EV5 (21164)")
+ UNAME_MACHINE="alphaev5" ;;
+ "EV5.6 (21164A)")
+ UNAME_MACHINE="alphaev56" ;;
+ "EV5.6 (21164PC)")
+ UNAME_MACHINE="alphapca56" ;;
+ "EV5.7 (21164PC)")
+ UNAME_MACHINE="alphapca57" ;;
+ "EV6 (21264)")
+ UNAME_MACHINE="alphaev6" ;;
+ "EV6.7 (21264A)")
+ UNAME_MACHINE="alphaev67" ;;
+ "EV6.8CB (21264C)")
+ UNAME_MACHINE="alphaev68" ;;
+ "EV6.8AL (21264B)")
+ UNAME_MACHINE="alphaev68" ;;
+ "EV6.8CX (21264D)")
+ UNAME_MACHINE="alphaev68" ;;
+ "EV6.9A (21264/EV69A)")
+ UNAME_MACHINE="alphaev69" ;;
+ "EV7 (21364)")
+ UNAME_MACHINE="alphaev7" ;;
+ "EV7.9 (21364A)")
+ UNAME_MACHINE="alphaev79" ;;
+ esac
+ # A Vn.n version is a released version.
+ # A Tn.n version is a released field test version.
+ # A Xn.n version is an unreleased experimental baselevel.
+ # 1.2 uses "1.2" for uname -r.
+ echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
+ exit 0 ;;
+ Alpha*:OpenVMS:*:*)
+ echo alpha-hp-vms
+ exit 0 ;;
+ Alpha\ *:Windows_NT*:*)
+ # How do we know it's Interix rather than the generic POSIX subsystem?
+ # Should we change UNAME_MACHINE based on the output of uname instead
+ # of the specific Alpha model?
+ echo alpha-pc-interix
+ exit 0 ;;
+ 21064:Windows_NT:50:3)
+ echo alpha-dec-winnt3.5
+ exit 0 ;;
+ Amiga*:UNIX_System_V:4.0:*)
+ echo m68k-unknown-sysv4
+ exit 0;;
+ *:[Aa]miga[Oo][Ss]:*:*)
+ echo ${UNAME_MACHINE}-unknown-amigaos
+ exit 0 ;;
+ *:[Mm]orph[Oo][Ss]:*:*)
+ echo ${UNAME_MACHINE}-unknown-morphos
+ exit 0 ;;
+ *:OS/390:*:*)
+ echo i370-ibm-openedition
+ exit 0 ;;
+ arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
+ echo arm-acorn-riscix${UNAME_RELEASE}
+ exit 0;;
+ SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
+ echo hppa1.1-hitachi-hiuxmpp
+ exit 0;;
+ Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
+ # akee at wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
+ if test "`(/bin/universe) 2>/dev/null`" = att ; then
+ echo pyramid-pyramid-sysv3
+ else
+ echo pyramid-pyramid-bsd
+ fi
+ exit 0 ;;
+ NILE*:*:*:dcosx)
+ echo pyramid-pyramid-svr4
+ exit 0 ;;
+ DRS?6000:unix:4.0:6*)
+ echo sparc-icl-nx6
+ exit 0 ;;
+ DRS?6000:UNIX_SV:4.2*:7*)
+ case `/usr/bin/uname -p` in
+ sparc) echo sparc-icl-nx7 && exit 0 ;;
+ esac ;;
+ sun4H:SunOS:5.*:*)
+ echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+ exit 0 ;;
+ sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
+ echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+ exit 0 ;;
+ i86pc:SunOS:5.*:*)
+ echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+ exit 0 ;;
+ sun4*:SunOS:6*:*)
+ # According to config.sub, this is the proper way to canonicalize
+ # SunOS6. Hard to guess exactly what SunOS6 will be like, but
+ # it's likely to be more like Solaris than SunOS4.
+ echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+ exit 0 ;;
+ sun4*:SunOS:*:*)
+ case "`/usr/bin/arch -k`" in
+ Series*|S4*)
+ UNAME_RELEASE=`uname -v`
+ ;;
+ esac
+ # Japanese Language versions have a version number like `4.1.3-JL'.
+ echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
+ exit 0 ;;
+ sun3*:SunOS:*:*)
+ echo m68k-sun-sunos${UNAME_RELEASE}
+ exit 0 ;;
+ sun*:*:4.2BSD:*)
+ UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
+ test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
+ case "`/bin/arch`" in
+ sun3)
+ echo m68k-sun-sunos${UNAME_RELEASE}
+ ;;
+ sun4)
+ echo sparc-sun-sunos${UNAME_RELEASE}
+ ;;
+ esac
+ exit 0 ;;
+ aushp:SunOS:*:*)
+ echo sparc-auspex-sunos${UNAME_RELEASE}
+ exit 0 ;;
+ # The situation for MiNT is a little confusing. The machine name
+ # can be virtually everything (everything which is not
+ # "atarist" or "atariste" at least should have a processor
+ # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
+ # to the lowercase version "mint" (or "freemint"). Finally
+ # the system name "TOS" denotes a system which is actually not
+ # MiNT. But MiNT is downward compatible to TOS, so this should
+ # be no problem.
+ atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
+ echo m68k-atari-mint${UNAME_RELEASE}
+ exit 0 ;;
+ atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
+ echo m68k-atari-mint${UNAME_RELEASE}
+ exit 0 ;;
+ *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
+ echo m68k-atari-mint${UNAME_RELEASE}
+ exit 0 ;;
+ milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
+ echo m68k-milan-mint${UNAME_RELEASE}
+ exit 0 ;;
+ hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
+ echo m68k-hades-mint${UNAME_RELEASE}
+ exit 0 ;;
+ *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
+ echo m68k-unknown-mint${UNAME_RELEASE}
+ exit 0 ;;
+ powerpc:machten:*:*)
+ echo powerpc-apple-machten${UNAME_RELEASE}
+ exit 0 ;;
+ RISC*:Mach:*:*)
+ echo mips-dec-mach_bsd4.3
+ exit 0 ;;
+ RISC*:ULTRIX:*:*)
+ echo mips-dec-ultrix${UNAME_RELEASE}
+ exit 0 ;;
+ VAX*:ULTRIX*:*:*)
+ echo vax-dec-ultrix${UNAME_RELEASE}
+ exit 0 ;;
+ 2020:CLIX:*:* | 2430:CLIX:*:*)
+ echo clipper-intergraph-clix${UNAME_RELEASE}
+ exit 0 ;;
+ mips:*:*:UMIPS | mips:*:*:RISCos)
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+#ifdef __cplusplus
+#include <stdio.h> /* for printf() prototype */
+ int main (int argc, char *argv[]) {
+#else
+ int main (argc, argv) int argc; char *argv[]; {
+#endif
+ #if defined (host_mips) && defined (MIPSEB)
+ #if defined (SYSTYPE_SYSV)
+ printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
+ #endif
+ #if defined (SYSTYPE_SVR4)
+ printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
+ #endif
+ #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
+ printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
+ #endif
+ #endif
+ exit (-1);
+ }
+EOF
+ $CC_FOR_BUILD -o $dummy $dummy.c \
+ && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
+ && exit 0
+ echo mips-mips-riscos${UNAME_RELEASE}
+ exit 0 ;;
+ Motorola:PowerMAX_OS:*:*)
+ echo powerpc-motorola-powermax
+ exit 0 ;;
+ Motorola:*:4.3:PL8-*)
+ echo powerpc-harris-powermax
+ exit 0 ;;
+ Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
+ echo powerpc-harris-powermax
+ exit 0 ;;
+ Night_Hawk:Power_UNIX:*:*)
+ echo powerpc-harris-powerunix
+ exit 0 ;;
+ m88k:CX/UX:7*:*)
+ echo m88k-harris-cxux7
+ exit 0 ;;
+ m88k:*:4*:R4*)
+ echo m88k-motorola-sysv4
+ exit 0 ;;
+ m88k:*:3*:R3*)
+ echo m88k-motorola-sysv3
+ exit 0 ;;
+ AViiON:dgux:*:*)
+ # DG/UX returns AViiON for all architectures
+ UNAME_PROCESSOR=`/usr/bin/uname -p`
+ if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
+ then
+ if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
+ [ ${TARGET_BINARY_INTERFACE}x = x ]
+ then
+ echo m88k-dg-dgux${UNAME_RELEASE}
+ else
+ echo m88k-dg-dguxbcs${UNAME_RELEASE}
+ fi
+ else
+ echo i586-dg-dgux${UNAME_RELEASE}
+ fi
+ exit 0 ;;
+ M88*:DolphinOS:*:*) # DolphinOS (SVR3)
+ echo m88k-dolphin-sysv3
+ exit 0 ;;
+ M88*:*:R3*:*)
+ # Delta 88k system running SVR3
+ echo m88k-motorola-sysv3
+ exit 0 ;;
+ XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
+ echo m88k-tektronix-sysv3
+ exit 0 ;;
+ Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
+ echo m68k-tektronix-bsd
+ exit 0 ;;
+ *:IRIX*:*:*)
+ echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
+ exit 0 ;;
+ ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
+ echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
+ exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX '
+ i*86:AIX:*:*)
+ echo i386-ibm-aix
+ exit 0 ;;
+ ia64:AIX:*:*)
+ if [ -x /usr/bin/oslevel ] ; then
+ IBM_REV=`/usr/bin/oslevel`
+ else
+ IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
+ fi
+ echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
+ exit 0 ;;
+ *:AIX:2:3)
+ if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+ #include <sys/systemcfg.h>
+
+ main()
+ {
+ if (!__power_pc())
+ exit(1);
+ puts("powerpc-ibm-aix3.2.5");
+ exit(0);
+ }
+EOF
+ $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
+ echo rs6000-ibm-aix3.2.5
+ elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
+ echo rs6000-ibm-aix3.2.4
+ else
+ echo rs6000-ibm-aix3.2
+ fi
+ exit 0 ;;
+ *:AIX:*:[45])
+ IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
+ if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
+ IBM_ARCH=rs6000
+ else
+ IBM_ARCH=powerpc
+ fi
+ if [ -x /usr/bin/oslevel ] ; then
+ IBM_REV=`/usr/bin/oslevel`
+ else
+ IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
+ fi
+ echo ${IBM_ARCH}-ibm-aix${IBM_REV}
+ exit 0 ;;
+ *:AIX:*:*)
+ echo rs6000-ibm-aix
+ exit 0 ;;
+ ibmrt:4.4BSD:*|romp-ibm:BSD:*)
+ echo romp-ibm-bsd4.4
+ exit 0 ;;
+ ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
+ echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
+ exit 0 ;; # report: romp-ibm BSD 4.3
+ *:BOSX:*:*)
+ echo rs6000-bull-bosx
+ exit 0 ;;
+ DPX/2?00:B.O.S.:*:*)
+ echo m68k-bull-sysv3
+ exit 0 ;;
+ 9000/[34]??:4.3bsd:1.*:*)
+ echo m68k-hp-bsd
+ exit 0 ;;
+ hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
+ echo m68k-hp-bsd4.4
+ exit 0 ;;
+ 9000/[34678]??:HP-UX:*:*)
+ HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
+ case "${UNAME_MACHINE}" in
+ 9000/31? ) HP_ARCH=m68000 ;;
+ 9000/[34]?? ) HP_ARCH=m68k ;;
+ 9000/[678][0-9][0-9])
+ if [ -x /usr/bin/getconf ]; then
+ sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
+ sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
+ case "${sc_cpu_version}" in
+ 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
+ 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
+ 532) # CPU_PA_RISC2_0
+ case "${sc_kernel_bits}" in
+ 32) HP_ARCH="hppa2.0n" ;;
+ 64) HP_ARCH="hppa2.0w" ;;
+ '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
+ esac ;;
+ esac
+ fi
+ if [ "${HP_ARCH}" = "" ]; then
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+
+ #define _HPUX_SOURCE
+ #include <stdlib.h>
+ #include <unistd.h>
+
+ int main ()
+ {
+ #if defined(_SC_KERNEL_BITS)
+ long bits = sysconf(_SC_KERNEL_BITS);
+ #endif
+ long cpu = sysconf (_SC_CPU_VERSION);
+
+ switch (cpu)
+ {
+ case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
+ case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
+ case CPU_PA_RISC2_0:
+ #if defined(_SC_KERNEL_BITS)
+ switch (bits)
+ {
+ case 64: puts ("hppa2.0w"); break;
+ case 32: puts ("hppa2.0n"); break;
+ default: puts ("hppa2.0"); break;
+ } break;
+ #else /* !defined(_SC_KERNEL_BITS) */
+ puts ("hppa2.0"); break;
+ #endif
+ default: puts ("hppa1.0"); break;
+ }
+ exit (0);
+ }
+EOF
+ (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
+ test -z "$HP_ARCH" && HP_ARCH=hppa
+ fi ;;
+ esac
+ if [ ${HP_ARCH} = "hppa2.0w" ]
+ then
+ # avoid double evaluation of $set_cc_for_build
+ test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
+ if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
+ then
+ HP_ARCH="hppa2.0w"
+ else
+ HP_ARCH="hppa64"
+ fi
+ fi
+ echo ${HP_ARCH}-hp-hpux${HPUX_REV}
+ exit 0 ;;
+ ia64:HP-UX:*:*)
+ HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
+ echo ia64-hp-hpux${HPUX_REV}
+ exit 0 ;;
+ 3050*:HI-UX:*:*)
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+ #include <unistd.h>
+ int
+ main ()
+ {
+ long cpu = sysconf (_SC_CPU_VERSION);
+ /* The order matters, because CPU_IS_HP_MC68K erroneously returns
+ true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
+ results, however. */
+ if (CPU_IS_PA_RISC (cpu))
+ {
+ switch (cpu)
+ {
+ case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
+ case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
+ case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
+ default: puts ("hppa-hitachi-hiuxwe2"); break;
+ }
+ }
+ else if (CPU_IS_HP_MC68K (cpu))
+ puts ("m68k-hitachi-hiuxwe2");
+ else puts ("unknown-hitachi-hiuxwe2");
+ exit (0);
+ }
+EOF
+ $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
+ echo unknown-hitachi-hiuxwe2
+ exit 0 ;;
+ 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
+ echo hppa1.1-hp-bsd
+ exit 0 ;;
+ 9000/8??:4.3bsd:*:*)
+ echo hppa1.0-hp-bsd
+ exit 0 ;;
+ *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
+ echo hppa1.0-hp-mpeix
+ exit 0 ;;
+ hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
+ echo hppa1.1-hp-osf
+ exit 0 ;;
+ hp8??:OSF1:*:*)
+ echo hppa1.0-hp-osf
+ exit 0 ;;
+ i*86:OSF1:*:*)
+ if [ -x /usr/sbin/sysversion ] ; then
+ echo ${UNAME_MACHINE}-unknown-osf1mk
+ else
+ echo ${UNAME_MACHINE}-unknown-osf1
+ fi
+ exit 0 ;;
+ parisc*:Lites*:*:*)
+ echo hppa1.1-hp-lites
+ exit 0 ;;
+ C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
+ echo c1-convex-bsd
+ exit 0 ;;
+ C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
+ if getsysinfo -f scalar_acc
+ then echo c32-convex-bsd
+ else echo c2-convex-bsd
+ fi
+ exit 0 ;;
+ C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
+ echo c34-convex-bsd
+ exit 0 ;;
+ C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
+ echo c38-convex-bsd
+ exit 0 ;;
+ C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
+ echo c4-convex-bsd
+ exit 0 ;;
+ CRAY*Y-MP:*:*:*)
+ echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+ exit 0 ;;
+ CRAY*[A-Z]90:*:*:*)
+ echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
+ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
+ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
+ -e 's/\.[^.]*$/.X/'
+ exit 0 ;;
+ CRAY*TS:*:*:*)
+ echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+ exit 0 ;;
+ CRAY*T3E:*:*:*)
+ echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+ exit 0 ;;
+ CRAY*SV1:*:*:*)
+ echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+ exit 0 ;;
+ *:UNICOS/mp:*:*)
+ echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+ exit 0 ;;
+ F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
+ FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
+ FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
+ FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
+ echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
+ exit 0 ;;
+ i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
+ echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
+ exit 0 ;;
+ sparc*:BSD/OS:*:*)
+ echo sparc-unknown-bsdi${UNAME_RELEASE}
+ exit 0 ;;
+ *:BSD/OS:*:*)
+ echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
+ exit 0 ;;
+ *:FreeBSD:*:*)
+ # Determine whether the default compiler uses glibc.
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+ #include <features.h>
+ #if __GLIBC__ >= 2
+ LIBC=gnu
+ #else
+ LIBC=
+ #endif
+EOF
+ eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
+ # GNU/KFreeBSD systems have a "k" prefix to indicate we are using
+ # FreeBSD's kernel, but not the complete OS.
+ case ${LIBC} in gnu) kernel_only='k' ;; esac
+ echo ${UNAME_MACHINE}-unknown-${kernel_only}freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
+ exit 0 ;;
+ i*:CYGWIN*:*)
+ echo ${UNAME_MACHINE}-pc-cygwin
+ exit 0 ;;
+ i*:MINGW*:*)
+ echo ${UNAME_MACHINE}-pc-mingw32
+ exit 0 ;;
+ i*:PW*:*)
+ echo ${UNAME_MACHINE}-pc-pw32
+ exit 0 ;;
+ x86:Interix*:[34]*)
+ echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
+ exit 0 ;;
+ [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
+ echo i${UNAME_MACHINE}-pc-mks
+ exit 0 ;;
+ i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
+ # How do we know it's Interix rather than the generic POSIX subsystem?
+ # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
+ # UNAME_MACHINE based on the output of uname instead of i386?
+ echo i586-pc-interix
+ exit 0 ;;
+ i*:UWIN*:*)
+ echo ${UNAME_MACHINE}-pc-uwin
+ exit 0 ;;
+ p*:CYGWIN*:*)
+ echo powerpcle-unknown-cygwin
+ exit 0 ;;
+ prep*:SunOS:5.*:*)
+ echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+ exit 0 ;;
+ *:GNU:*:*)
+ # the GNU system
+ echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
+ exit 0 ;;
+ *:GNU/*:*:*)
+ # other systems with GNU libc and userland
+ echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
+ exit 0 ;;
+ i*86:Minix:*:*)
+ echo ${UNAME_MACHINE}-pc-minix
+ exit 0 ;;
+ arm*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit 0 ;;
+ cris:Linux:*:*)
+ echo cris-axis-linux-gnu
+ exit 0 ;;
+ ia64:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit 0 ;;
+ m68*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit 0 ;;
+ mips:Linux:*:*)
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+ #undef CPU
+ #undef mips
+ #undef mipsel
+ #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
+ CPU=mipsel
+ #else
+ #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
+ CPU=mips
+ #else
+ CPU=
+ #endif
+ #endif
+EOF
+ eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
+ test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
+ ;;
+ mips64:Linux:*:*)
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+ #undef CPU
+ #undef mips64
+ #undef mips64el
+ #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
+ CPU=mips64el
+ #else
+ #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
+ CPU=mips64
+ #else
+ CPU=
+ #endif
+ #endif
+EOF
+ eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
+ test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
+ ;;
+ ppc:Linux:*:*)
+ echo powerpc-unknown-linux-gnu
+ exit 0 ;;
+ ppc64:Linux:*:*)
+ echo powerpc64-unknown-linux-gnu
+ exit 0 ;;
+ alpha:Linux:*:*)
+ case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
+ EV5) UNAME_MACHINE=alphaev5 ;;
+ EV56) UNAME_MACHINE=alphaev56 ;;
+ PCA56) UNAME_MACHINE=alphapca56 ;;
+ PCA57) UNAME_MACHINE=alphapca56 ;;
+ EV6) UNAME_MACHINE=alphaev6 ;;
+ EV67) UNAME_MACHINE=alphaev67 ;;
+ EV68*) UNAME_MACHINE=alphaev68 ;;
+ esac
+ objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
+ if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
+ echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
+ exit 0 ;;
+ parisc:Linux:*:* | hppa:Linux:*:*)
+ # Look for CPU level
+ case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
+ PA7*) echo hppa1.1-unknown-linux-gnu ;;
+ PA8*) echo hppa2.0-unknown-linux-gnu ;;
+ *) echo hppa-unknown-linux-gnu ;;
+ esac
+ exit 0 ;;
+ parisc64:Linux:*:* | hppa64:Linux:*:*)
+ echo hppa64-unknown-linux-gnu
+ exit 0 ;;
+ s390:Linux:*:* | s390x:Linux:*:*)
+ echo ${UNAME_MACHINE}-ibm-linux
+ exit 0 ;;
+ sh64*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit 0 ;;
+ sh*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit 0 ;;
+ sparc:Linux:*:* | sparc64:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit 0 ;;
+ x86_64:Linux:*:*)
+ echo x86_64-unknown-linux-gnu
+ exit 0 ;;
+ i*86:Linux:*:*)
+ # The BFD linker knows what the default object file format is, so
+ # first see if it will tell us. cd to the root directory to prevent
+ # problems with other programs or directories called `ld' in the path.
+ # Set LC_ALL=C to ensure ld outputs messages in English.
+ ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
+ | sed -ne '/supported targets:/!d
+ s/[ ][ ]*/ /g
+ s/.*supported targets: *//
+ s/ .*//
+ p'`
+ case "$ld_supported_targets" in
+ elf32-i386)
+ TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
+ ;;
+ a.out-i386-linux)
+ echo "${UNAME_MACHINE}-pc-linux-gnuaout"
+ exit 0 ;;
+ coff-i386)
+ echo "${UNAME_MACHINE}-pc-linux-gnucoff"
+ exit 0 ;;
+ "")
+ # Either a pre-BFD a.out linker (linux-gnuoldld) or
+ # one that does not give us useful --help.
+ echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
+ exit 0 ;;
+ esac
+ # Determine whether the default compiler is a.out or elf
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+ #include <features.h>
+ #ifdef __ELF__
+ # ifdef __GLIBC__
+ # if __GLIBC__ >= 2
+ LIBC=gnu
+ # else
+ LIBC=gnulibc1
+ # endif
+ # else
+ LIBC=gnulibc1
+ # endif
+ #else
+ #ifdef __INTEL_COMPILER
+ LIBC=gnu
+ #else
+ LIBC=gnuaout
+ #endif
+ #endif
+ #ifdef __dietlibc__
+ LIBC=dietlibc
+ #endif
+EOF
+ eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
+ test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
+ test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
+ ;;
+ i*86:DYNIX/ptx:4*:*)
+ # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
+ # earlier versions are messed up and put the nodename in both
+ # sysname and nodename.
+ echo i386-sequent-sysv4
+ exit 0 ;;
+ i*86:UNIX_SV:4.2MP:2.*)
+ # Unixware is an offshoot of SVR4, but it has its own version
+ # number series starting with 2...
+ # I am not positive that other SVR4 systems won't match this,
+ # I just have to hope. -- rms.
+ # Use sysv4.2uw... so that sysv4* matches it.
+ echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
+ exit 0 ;;
+ i*86:OS/2:*:*)
+ # If we were able to find `uname', then EMX Unix compatibility
+ # is probably installed.
+ echo ${UNAME_MACHINE}-pc-os2-emx
+ exit 0 ;;
+ i*86:XTS-300:*:STOP)
+ echo ${UNAME_MACHINE}-unknown-stop
+ exit 0 ;;
+ i*86:atheos:*:*)
+ echo ${UNAME_MACHINE}-unknown-atheos
+ exit 0 ;;
+ i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
+ echo i386-unknown-lynxos${UNAME_RELEASE}
+ exit 0 ;;
+ i*86:*DOS:*:*)
+ echo ${UNAME_MACHINE}-pc-msdosdjgpp
+ exit 0 ;;
+ i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
+ UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
+ if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
+ echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
+ else
+ echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
+ fi
+ exit 0 ;;
+ i*86:*:5:[78]*)
+ case `/bin/uname -X | grep "^Machine"` in
+ *486*) UNAME_MACHINE=i486 ;;
+ *Pentium) UNAME_MACHINE=i586 ;;
+ *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
+ esac
+ echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
+ exit 0 ;;
+ i*86:*:3.2:*)
+ if test -f /usr/options/cb.name; then
+ UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
+ echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
+ elif /bin/uname -X 2>/dev/null >/dev/null ; then
+ UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
+ (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
+ (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
+ && UNAME_MACHINE=i586
+ (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
+ && UNAME_MACHINE=i686
+ (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
+ && UNAME_MACHINE=i686
+ echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
+ else
+ echo ${UNAME_MACHINE}-pc-sysv32
+ fi
+ exit 0 ;;
+ pc:*:*:*)
+ # Left here for compatibility:
+ # uname -m prints for DJGPP always 'pc', but it prints nothing about
+ # the processor, so we play safe by assuming i386.
+ echo i386-pc-msdosdjgpp
+ exit 0 ;;
+ Intel:Mach:3*:*)
+ echo i386-pc-mach3
+ exit 0 ;;
+ paragon:*:*:*)
+ echo i860-intel-osf1
+ exit 0 ;;
+ i860:*:4.*:*) # i860-SVR4
+ if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
+ echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
+ else # Add other i860-SVR4 vendors below as they are discovered.
+ echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
+ fi
+ exit 0 ;;
+ mini*:CTIX:SYS*5:*)
+ # "miniframe"
+ echo m68010-convergent-sysv
+ exit 0 ;;
+ mc68k:UNIX:SYSTEM5:3.51m)
+ echo m68k-convergent-sysv
+ exit 0 ;;
+ M680?0:D-NIX:5.3:*)
+ echo m68k-diab-dnix
+ exit 0 ;;
+ M68*:*:R3V[567]*:*)
+ test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
+ 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0)
+ OS_REL=''
+ test -r /etc/.relid \
+ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
+ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
+ && echo i486-ncr-sysv4.3${OS_REL} && exit 0
+ /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
+ && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;;
+ 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
+ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
+ && echo i486-ncr-sysv4 && exit 0 ;;
+ m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
+ echo m68k-unknown-lynxos${UNAME_RELEASE}
+ exit 0 ;;
+ mc68030:UNIX_System_V:4.*:*)
+ echo m68k-atari-sysv4
+ exit 0 ;;
+ TSUNAMI:LynxOS:2.*:*)
+ echo sparc-unknown-lynxos${UNAME_RELEASE}
+ exit 0 ;;
+ rs6000:LynxOS:2.*:*)
+ echo rs6000-unknown-lynxos${UNAME_RELEASE}
+ exit 0 ;;
+ PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
+ echo powerpc-unknown-lynxos${UNAME_RELEASE}
+ exit 0 ;;
+ SM[BE]S:UNIX_SV:*:*)
+ echo mips-dde-sysv${UNAME_RELEASE}
+ exit 0 ;;
+ RM*:ReliantUNIX-*:*:*)
+ echo mips-sni-sysv4
+ exit 0 ;;
+ RM*:SINIX-*:*:*)
+ echo mips-sni-sysv4
+ exit 0 ;;
+ *:SINIX-*:*:*)
+ if uname -p 2>/dev/null >/dev/null ; then
+ UNAME_MACHINE=`(uname -p) 2>/dev/null`
+ echo ${UNAME_MACHINE}-sni-sysv4
+ else
+ echo ns32k-sni-sysv
+ fi
+ exit 0 ;;
+ PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
+ # says <Richard.M.Bartel at ccMail.Census.GOV>
+ echo i586-unisys-sysv4
+ exit 0 ;;
+ *:UNIX_System_V:4*:FTX*)
+ # From Gerald Hewes <hewes at openmarket.com>.
+ # How about differentiating between stratus architectures? -djm
+ echo hppa1.1-stratus-sysv4
+ exit 0 ;;
+ *:*:*:FTX*)
+ # From seanf at swdc.stratus.com.
+ echo i860-stratus-sysv4
+ exit 0 ;;
+ *:VOS:*:*)
+ # From Paul.Green at stratus.com.
+ echo hppa1.1-stratus-vos
+ exit 0 ;;
+ mc68*:A/UX:*:*)
+ echo m68k-apple-aux${UNAME_RELEASE}
+ exit 0 ;;
+ news*:NEWS-OS:6*:*)
+ echo mips-sony-newsos6
+ exit 0 ;;
+ R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
+ if [ -d /usr/nec ]; then
+ echo mips-nec-sysv${UNAME_RELEASE}
+ else
+ echo mips-unknown-sysv${UNAME_RELEASE}
+ fi
+ exit 0 ;;
+ BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
+ echo powerpc-be-beos
+ exit 0 ;;
+ BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
+ echo powerpc-apple-beos
+ exit 0 ;;
+ BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
+ echo i586-pc-beos
+ exit 0 ;;
+ SX-4:SUPER-UX:*:*)
+ echo sx4-nec-superux${UNAME_RELEASE}
+ exit 0 ;;
+ SX-5:SUPER-UX:*:*)
+ echo sx5-nec-superux${UNAME_RELEASE}
+ exit 0 ;;
+ SX-6:SUPER-UX:*:*)
+ echo sx6-nec-superux${UNAME_RELEASE}
+ exit 0 ;;
+ Power*:Rhapsody:*:*)
+ echo powerpc-apple-rhapsody${UNAME_RELEASE}
+ exit 0 ;;
+ *:Rhapsody:*:*)
+ echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
+ exit 0 ;;
+ *:Darwin:*:*)
+ case `uname -p` in
+ *86) UNAME_PROCESSOR=i686 ;;
+ powerpc) UNAME_PROCESSOR=powerpc ;;
+ esac
+ echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
+ exit 0 ;;
+ *:procnto*:*:* | *:QNX:[0123456789]*:*)
+ UNAME_PROCESSOR=`uname -p`
+ if test "$UNAME_PROCESSOR" = "x86"; then
+ UNAME_PROCESSOR=i386
+ UNAME_MACHINE=pc
+ fi
+ echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
+ exit 0 ;;
+ *:QNX:*:4*)
+ echo i386-pc-qnx
+ exit 0 ;;
+ NSR-[DGKLNPTVWY]:NONSTOP_KERNEL:*:*)
+ echo nsr-tandem-nsk${UNAME_RELEASE}
+ exit 0 ;;
+ *:NonStop-UX:*:*)
+ echo mips-compaq-nonstopux
+ exit 0 ;;
+ BS2000:POSIX*:*:*)
+ echo bs2000-siemens-sysv
+ exit 0 ;;
+ DS/*:UNIX_System_V:*:*)
+ echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
+ exit 0 ;;
+ *:Plan9:*:*)
+ # "uname -m" is not consistent, so use $cputype instead. 386
+ # is converted to i386 for consistency with other x86
+ # operating systems.
+ if test "$cputype" = "386"; then
+ UNAME_MACHINE=i386
+ else
+ UNAME_MACHINE="$cputype"
+ fi
+ echo ${UNAME_MACHINE}-unknown-plan9
+ exit 0 ;;
+ *:TOPS-10:*:*)
+ echo pdp10-unknown-tops10
+ exit 0 ;;
+ *:TENEX:*:*)
+ echo pdp10-unknown-tenex
+ exit 0 ;;
+ KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
+ echo pdp10-dec-tops20
+ exit 0 ;;
+ XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
+ echo pdp10-xkl-tops20
+ exit 0 ;;
+ *:TOPS-20:*:*)
+ echo pdp10-unknown-tops20
+ exit 0 ;;
+ *:ITS:*:*)
+ echo pdp10-unknown-its
+ exit 0 ;;
+ SEI:*:*:SEIUX)
+ echo mips-sei-seiux${UNAME_RELEASE}
+ exit 0 ;;
+esac
+
+#echo '(No uname command or uname output not recognized.)' 1>&2
+#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
+
+eval $set_cc_for_build
+cat >$dummy.c <<EOF
+#ifdef _SEQUENT_
+# include <sys/types.h>
+# include <sys/utsname.h>
+#endif
+main ()
+{
+#if defined (sony)
+#if defined (MIPSEB)
+ /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
+ I don't know.... */
+ printf ("mips-sony-bsd\n"); exit (0);
+#else
+#include <sys/param.h>
+ printf ("m68k-sony-newsos%s\n",
+#ifdef NEWSOS4
+ "4"
+#else
+ ""
+#endif
+ ); exit (0);
+#endif
+#endif
+
+#if defined (__arm) && defined (__acorn) && defined (__unix)
+ printf ("arm-acorn-riscix"); exit (0);
+#endif
+
+#if defined (hp300) && !defined (hpux)
+ printf ("m68k-hp-bsd\n"); exit (0);
+#endif
+
+#if defined (NeXT)
+#if !defined (__ARCHITECTURE__)
+#define __ARCHITECTURE__ "m68k"
+#endif
+ int version;
+ version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
+ if (version < 4)
+ printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
+ else
+ printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
+ exit (0);
+#endif
+
+#if defined (MULTIMAX) || defined (n16)
+#if defined (UMAXV)
+ printf ("ns32k-encore-sysv\n"); exit (0);
+#else
+#if defined (CMU)
+ printf ("ns32k-encore-mach\n"); exit (0);
+#else
+ printf ("ns32k-encore-bsd\n"); exit (0);
+#endif
+#endif
+#endif
+
+#if defined (__386BSD__)
+ printf ("i386-pc-bsd\n"); exit (0);
+#endif
+
+#if defined (sequent)
+#if defined (i386)
+ printf ("i386-sequent-dynix\n"); exit (0);
+#endif
+#if defined (ns32000)
+ printf ("ns32k-sequent-dynix\n"); exit (0);
+#endif
+#endif
+
+#if defined (_SEQUENT_)
+ struct utsname un;
+
+ uname(&un);
+
+ if (strncmp(un.version, "V2", 2) == 0) {
+ printf ("i386-sequent-ptx2\n"); exit (0);
+ }
+ if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
+ printf ("i386-sequent-ptx1\n"); exit (0);
+ }
+ printf ("i386-sequent-ptx\n"); exit (0);
+
+#endif
+
+#if defined (vax)
+# if !defined (ultrix)
+# include <sys/param.h>
+# if defined (BSD)
+# if BSD == 43
+ printf ("vax-dec-bsd4.3\n"); exit (0);
+# else
+# if BSD == 199006
+ printf ("vax-dec-bsd4.3reno\n"); exit (0);
+# else
+ printf ("vax-dec-bsd\n"); exit (0);
+# endif
+# endif
+# else
+ printf ("vax-dec-bsd\n"); exit (0);
+# endif
+# else
+ printf ("vax-dec-ultrix\n"); exit (0);
+# endif
+#endif
+
+#if defined (alliant) && defined (i860)
+ printf ("i860-alliant-bsd\n"); exit (0);
+#endif
+
+ exit (1);
+}
+EOF
+
+$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
+
+# Apollos put the system type in the environment.
+
+test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
+
+# Convex versions that predate uname can use getsysinfo(1)
+
+if [ -x /usr/convex/getsysinfo ]
+then
+ case `getsysinfo -f cpu_type` in
+ c1*)
+ echo c1-convex-bsd
+ exit 0 ;;
+ c2*)
+ if getsysinfo -f scalar_acc
+ then echo c32-convex-bsd
+ else echo c2-convex-bsd
+ fi
+ exit 0 ;;
+ c34*)
+ echo c34-convex-bsd
+ exit 0 ;;
+ c38*)
+ echo c38-convex-bsd
+ exit 0 ;;
+ c4*)
+ echo c4-convex-bsd
+ exit 0 ;;
+ esac
+fi
+
+cat >&2 <<EOF
+$0: unable to guess system type
+
+This script, last modified $timestamp, has failed to recognize
+the operating system you are using. It is advised that you
+download the most up to date version of the config scripts from
+
+ ftp://ftp.gnu.org/pub/gnu/config/
+
+If the version you run ($0) is already up to date, please
+send the following data and any information you think might be
+pertinent to <config-patches at gnu.org> in order to provide the needed
+information to handle your system.
+
+config.guess timestamp = $timestamp
+
+uname -m = `(uname -m) 2>/dev/null || echo unknown`
+uname -r = `(uname -r) 2>/dev/null || echo unknown`
+uname -s = `(uname -s) 2>/dev/null || echo unknown`
+uname -v = `(uname -v) 2>/dev/null || echo unknown`
+
+/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
+/bin/uname -X = `(/bin/uname -X) 2>/dev/null`
+
+hostinfo = `(hostinfo) 2>/dev/null`
+/bin/universe = `(/bin/universe) 2>/dev/null`
+/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
+/bin/arch = `(/bin/arch) 2>/dev/null`
+/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
+/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
+
+UNAME_MACHINE = ${UNAME_MACHINE}
+UNAME_RELEASE = ${UNAME_RELEASE}
+UNAME_SYSTEM = ${UNAME_SYSTEM}
+UNAME_VERSION = ${UNAME_VERSION}
+EOF
+
+exit 1
+
+# Local variables:
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: "timestamp='"
+# time-stamp-format: "%:y-%02m-%02d"
+# time-stamp-end: "'"
+# End:
Property changes on: trunk/config.guess
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/config.sub
===================================================================
--- trunk/config.sub 2003-12-18 23:25:52 UTC (rev 13)
+++ trunk/config.sub 2003-12-18 23:28:02 UTC (rev 14)
@@ -0,0 +1,1510 @@
+#! /bin/sh
+# Configuration validation subroutine script.
+# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
+# 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
+
+timestamp='2003-10-07'
+
+# This file is (in principle) common to ALL GNU software.
+# The presence of a machine in this file suggests that SOME GNU software
+# can handle that machine. It does not imply ALL GNU software can.
+#
+# This file is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
+
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+
+# Please send patches to <config-patches at gnu.org>. Submit a context
+# diff and a properly formatted ChangeLog entry.
+#
+# Configuration subroutine to validate and canonicalize a configuration type.
+# Supply the specified configuration type as an argument.
+# If it is invalid, we print an error message on stderr and exit with code 1.
+# Otherwise, we print the canonical config type on stdout and succeed.
+
+# This file is supposed to be the same for all GNU packages
+# and recognize all the CPU types, system types and aliases
+# that are meaningful with *any* GNU software.
+# Each package is responsible for reporting which valid configurations
+# it does not support. The user should be able to distinguish
+# a failure to support a valid configuration from a meaningless
+# configuration.
+
+# The goal of this file is to map all the various variations of a given
+# machine specification into a single specification in the form:
+# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
+# or in some cases, the newer four-part form:
+# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
+# It is wrong to echo any other type of specification.
+
+me=`echo "$0" | sed -e 's,.*/,,'`
+
+usage="\
+Usage: $0 [OPTION] CPU-MFR-OPSYS
+ $0 [OPTION] ALIAS
+
+Canonicalize a configuration name.
+
+Operation modes:
+ -h, --help print this help, then exit
+ -t, --time-stamp print date of last modification, then exit
+ -v, --version print version number, then exit
+
+Report bugs and patches to <config-patches at gnu.org>."
+
+version="\
+GNU config.sub ($timestamp)
+
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
+Free Software Foundation, Inc.
+
+This is free software; see the source for copying conditions. There is NO
+warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
+
+help="
+Try \`$me --help' for more information."
+
+# Parse command line
+while test $# -gt 0 ; do
+ case $1 in
+ --time-stamp | --time* | -t )
+ echo "$timestamp" ; exit 0 ;;
+ --version | -v )
+ echo "$version" ; exit 0 ;;
+ --help | --h* | -h )
+ echo "$usage"; exit 0 ;;
+ -- ) # Stop option processing
+ shift; break ;;
+ - ) # Use stdin as input.
+ break ;;
+ -* )
+ echo "$me: invalid option $1$help"
+ exit 1 ;;
+
+ *local*)
+ # First pass through any local machine types.
+ echo $1
+ exit 0;;
+
+ * )
+ break ;;
+ esac
+done
+
+case $# in
+ 0) echo "$me: missing argument$help" >&2
+ exit 1;;
+ 1) ;;
+ *) echo "$me: too many arguments$help" >&2
+ exit 1;;
+esac
+
+# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
+# Here we must recognize all the valid KERNEL-OS combinations.
+maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
+case $maybe_os in
+ nto-qnx* | linux-gnu* | linux-dietlibc | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
+ os=-$maybe_os
+ basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
+ ;;
+ *)
+ basic_machine=`echo $1 | sed 's/-[^-]*$//'`
+ if [ $basic_machine != $1 ]
+ then os=`echo $1 | sed 's/.*-/-/'`
+ else os=; fi
+ ;;
+esac
+
+### Let's recognize common machines as not being operating systems so
+### that things like config.sub decstation-3100 work. We also
+### recognize some manufacturers as not being operating systems, so we
+### can provide default operating systems below.
+case $os in
+ -sun*os*)
+ # Prevent following clause from handling this invalid input.
+ ;;
+ -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
+ -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
+ -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
+ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
+ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
+ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
+ -apple | -axis)
+ os=
+ basic_machine=$1
+ ;;
+ -sim | -cisco | -oki | -wec | -winbond)
+ os=
+ basic_machine=$1
+ ;;
+ -scout)
+ ;;
+ -wrs)
+ os=-vxworks
+ basic_machine=$1
+ ;;
+ -chorusos*)
+ os=-chorusos
+ basic_machine=$1
+ ;;
+ -chorusrdb)
+ os=-chorusrdb
+ basic_machine=$1
+ ;;
+ -hiux*)
+ os=-hiuxwe2
+ ;;
+ -sco5)
+ os=-sco3.2v5
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -sco4)
+ os=-sco3.2v4
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -sco3.2.[4-9]*)
+ os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -sco3.2v[4-9]*)
+ # Don't forget version if it is 3.2v4 or newer.
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -sco*)
+ os=-sco3.2v2
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -udk*)
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -isc)
+ os=-isc2.2
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -clix*)
+ basic_machine=clipper-intergraph
+ ;;
+ -isc*)
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -lynx*)
+ os=-lynxos
+ ;;
+ -ptx*)
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
+ ;;
+ -windowsnt*)
+ os=`echo $os | sed -e 's/windowsnt/winnt/'`
+ ;;
+ -psos*)
+ os=-psos
+ ;;
+ -mint | -mint[0-9]*)
+ basic_machine=m68k-atari
+ os=-mint
+ ;;
+esac
+
+# Decode aliases for certain CPU-COMPANY combinations.
+case $basic_machine in
+ # Recognize the basic CPU types without company name.
+ # Some are omitted here because they have special meanings below.
+ 1750a | 580 \
+ | a29k \
+ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
+ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
+ | am33_2.0 \
+ | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
+ | c4x | clipper \
+ | d10v | d30v | dlx | dsp16xx \
+ | fr30 | frv \
+ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
+ | i370 | i860 | i960 | ia64 \
+ | ip2k | iq2000 \
+ | m32r | m68000 | m68k | m88k | mcore \
+ | mips | mipsbe | mipseb | mipsel | mipsle \
+ | mips16 \
+ | mips64 | mips64el \
+ | mips64vr | mips64vrel \
+ | mips64orion | mips64orionel \
+ | mips64vr4100 | mips64vr4100el \
+ | mips64vr4300 | mips64vr4300el \
+ | mips64vr5000 | mips64vr5000el \
+ | mipsisa32 | mipsisa32el \
+ | mipsisa32r2 | mipsisa32r2el \
+ | mipsisa64 | mipsisa64el \
+ | mipsisa64r2 | mipsisa64r2el \
+ | mipsisa64sb1 | mipsisa64sb1el \
+ | mipsisa64sr71k | mipsisa64sr71kel \
+ | mipstx39 | mipstx39el \
+ | mn10200 | mn10300 \
+ | msp430 \
+ | ns16k | ns32k \
+ | openrisc | or32 \
+ | pdp10 | pdp11 | pj | pjl \
+ | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
+ | pyramid \
+ | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
+ | sh64 | sh64le \
+ | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \
+ | strongarm \
+ | tahoe | thumb | tic4x | tic80 | tron \
+ | v850 | v850e \
+ | we32k \
+ | x86 | xscale | xstormy16 | xtensa \
+ | z8k)
+ basic_machine=$basic_machine-unknown
+ ;;
+ m6811 | m68hc11 | m6812 | m68hc12)
+ # Motorola 68HC11/12.
+ basic_machine=$basic_machine-unknown
+ os=-none
+ ;;
+ m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
+ ;;
+
+ # We use `pc' rather than `unknown'
+ # because (1) that's what they normally are, and
+ # (2) the word "unknown" tends to confuse beginning users.
+ i*86 | x86_64)
+ basic_machine=$basic_machine-pc
+ ;;
+ # Object if more than one company name word.
+ *-*-*)
+ echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
+ exit 1
+ ;;
+ # Recognize the basic CPU types with company name.
+ 580-* \
+ | a29k-* \
+ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
+ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
+ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
+ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
+ | avr-* \
+ | bs2000-* \
+ | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
+ | clipper-* | cydra-* \
+ | d10v-* | d30v-* | dlx-* \
+ | elxsi-* \
+ | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
+ | h8300-* | h8500-* \
+ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
+ | i*86-* | i860-* | i960-* | ia64-* \
+ | ip2k-* | iq2000-* \
+ | m32r-* \
+ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
+ | m88110-* | m88k-* | mcore-* \
+ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
+ | mips16-* \
+ | mips64-* | mips64el-* \
+ | mips64vr-* | mips64vrel-* \
+ | mips64orion-* | mips64orionel-* \
+ | mips64vr4100-* | mips64vr4100el-* \
+ | mips64vr4300-* | mips64vr4300el-* \
+ | mips64vr5000-* | mips64vr5000el-* \
+ | mipsisa32-* | mipsisa32el-* \
+ | mipsisa32r2-* | mipsisa32r2el-* \
+ | mipsisa64-* | mipsisa64el-* \
+ | mipsisa64r2-* | mipsisa64r2el-* \
+ | mipsisa64sb1-* | mipsisa64sb1el-* \
+ | mipsisa64sr71k-* | mipsisa64sr71kel-* \
+ | mipstx39-* | mipstx39el-* \
+ | msp430-* \
+ | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \
+ | orion-* \
+ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
+ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
+ | pyramid-* \
+ | romp-* | rs6000-* \
+ | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
+ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
+ | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
+ | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
+ | tahoe-* | thumb-* \
+ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
+ | tron-* \
+ | v850-* | v850e-* | vax-* \
+ | we32k-* \
+ | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
+ | xtensa-* \
+ | ymp-* \
+ | z8k-*)
+ ;;
+ # Recognize the various machine names and aliases which stand
+ # for a CPU type and a company and sometimes even an OS.
+ 386bsd)
+ basic_machine=i386-unknown
+ os=-bsd
+ ;;
+ 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
+ basic_machine=m68000-att
+ ;;
+ 3b*)
+ basic_machine=we32k-att
+ ;;
+ a29khif)
+ basic_machine=a29k-amd
+ os=-udi
+ ;;
+ adobe68k)
+ basic_machine=m68010-adobe
+ os=-scout
+ ;;
+ alliant | fx80)
+ basic_machine=fx80-alliant
+ ;;
+ altos | altos3068)
+ basic_machine=m68k-altos
+ ;;
+ am29k)
+ basic_machine=a29k-none
+ os=-bsd
+ ;;
+ amd64)
+ basic_machine=x86_64-pc
+ ;;
+ amdahl)
+ basic_machine=580-amdahl
+ os=-sysv
+ ;;
+ amiga | amiga-*)
+ basic_machine=m68k-unknown
+ ;;
+ amigaos | amigados)
+ basic_machine=m68k-unknown
+ os=-amigaos
+ ;;
+ amigaunix | amix)
+ basic_machine=m68k-unknown
+ os=-sysv4
+ ;;
+ apollo68)
+ basic_machine=m68k-apollo
+ os=-sysv
+ ;;
+ apollo68bsd)
+ basic_machine=m68k-apollo
+ os=-bsd
+ ;;
+ aux)
+ basic_machine=m68k-apple
+ os=-aux
+ ;;
+ balance)
+ basic_machine=ns32k-sequent
+ os=-dynix
+ ;;
+ c90)
+ basic_machine=c90-cray
+ os=-unicos
+ ;;
+ convex-c1)
+ basic_machine=c1-convex
+ os=-bsd
+ ;;
+ convex-c2)
+ basic_machine=c2-convex
+ os=-bsd
+ ;;
+ convex-c32)
+ basic_machine=c32-convex
+ os=-bsd
+ ;;
+ convex-c34)
+ basic_machine=c34-convex
+ os=-bsd
+ ;;
+ convex-c38)
+ basic_machine=c38-convex
+ os=-bsd
+ ;;
+ cray | j90)
+ basic_machine=j90-cray
+ os=-unicos
+ ;;
+ crds | unos)
+ basic_machine=m68k-crds
+ ;;
+ cris | cris-* | etrax*)
+ basic_machine=cris-axis
+ ;;
+ da30 | da30-*)
+ basic_machine=m68k-da30
+ ;;
+ decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
+ basic_machine=mips-dec
+ ;;
+ decsystem10* | dec10*)
+ basic_machine=pdp10-dec
+ os=-tops10
+ ;;
+ decsystem20* | dec20*)
+ basic_machine=pdp10-dec
+ os=-tops20
+ ;;
+ delta | 3300 | motorola-3300 | motorola-delta \
+ | 3300-motorola | delta-motorola)
+ basic_machine=m68k-motorola
+ ;;
+ delta88)
+ basic_machine=m88k-motorola
+ os=-sysv3
+ ;;
+ dpx20 | dpx20-*)
+ basic_machine=rs6000-bull
+ os=-bosx
+ ;;
+ dpx2* | dpx2*-bull)
+ basic_machine=m68k-bull
+ os=-sysv3
+ ;;
+ ebmon29k)
+ basic_machine=a29k-amd
+ os=-ebmon
+ ;;
+ elxsi)
+ basic_machine=elxsi-elxsi
+ os=-bsd
+ ;;
+ encore | umax | mmax)
+ basic_machine=ns32k-encore
+ ;;
+ es1800 | OSE68k | ose68k | ose | OSE)
+ basic_machine=m68k-ericsson
+ os=-ose
+ ;;
+ fx2800)
+ basic_machine=i860-alliant
+ ;;
+ genix)
+ basic_machine=ns32k-ns
+ ;;
+ gmicro)
+ basic_machine=tron-gmicro
+ os=-sysv
+ ;;
+ go32)
+ basic_machine=i386-pc
+ os=-go32
+ ;;
+ h3050r* | hiux*)
+ basic_machine=hppa1.1-hitachi
+ os=-hiuxwe2
+ ;;
+ h8300hms)
+ basic_machine=h8300-hitachi
+ os=-hms
+ ;;
+ h8300xray)
+ basic_machine=h8300-hitachi
+ os=-xray
+ ;;
+ h8500hms)
+ basic_machine=h8500-hitachi
+ os=-hms
+ ;;
+ harris)
+ basic_machine=m88k-harris
+ os=-sysv3
+ ;;
+ hp300-*)
+ basic_machine=m68k-hp
+ ;;
+ hp300bsd)
+ basic_machine=m68k-hp
+ os=-bsd
+ ;;
+ hp300hpux)
+ basic_machine=m68k-hp
+ os=-hpux
+ ;;
+ hp3k9[0-9][0-9] | hp9[0-9][0-9])
+ basic_machine=hppa1.0-hp
+ ;;
+ hp9k2[0-9][0-9] | hp9k31[0-9])
+ basic_machine=m68000-hp
+ ;;
+ hp9k3[2-9][0-9])
+ basic_machine=m68k-hp
+ ;;
+ hp9k6[0-9][0-9] | hp6[0-9][0-9])
+ basic_machine=hppa1.0-hp
+ ;;
+ hp9k7[0-79][0-9] | hp7[0-79][0-9])
+ basic_machine=hppa1.1-hp
+ ;;
+ hp9k78[0-9] | hp78[0-9])
+ # FIXME: really hppa2.0-hp
+ basic_machine=hppa1.1-hp
+ ;;
+ hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
+ # FIXME: really hppa2.0-hp
+ basic_machine=hppa1.1-hp
+ ;;
+ hp9k8[0-9][13679] | hp8[0-9][13679])
+ basic_machine=hppa1.1-hp
+ ;;
+ hp9k8[0-9][0-9] | hp8[0-9][0-9])
+ basic_machine=hppa1.0-hp
+ ;;
+ hppa-next)
+ os=-nextstep3
+ ;;
+ hppaosf)
+ basic_machine=hppa1.1-hp
+ os=-osf
+ ;;
+ hppro)
+ basic_machine=hppa1.1-hp
+ os=-proelf
+ ;;
+ i370-ibm* | ibm*)
+ basic_machine=i370-ibm
+ ;;
+# I'm not sure what "Sysv32" means. Should this be sysv3.2?
+ i*86v32)
+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
+ os=-sysv32
+ ;;
+ i*86v4*)
+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
+ os=-sysv4
+ ;;
+ i*86v)
+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
+ os=-sysv
+ ;;
+ i*86sol2)
+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
+ os=-solaris2
+ ;;
+ i386mach)
+ basic_machine=i386-mach
+ os=-mach
+ ;;
+ i386-vsta | vsta)
+ basic_machine=i386-unknown
+ os=-vsta
+ ;;
+ iris | iris4d)
+ basic_machine=mips-sgi
+ case $os in
+ -irix*)
+ ;;
+ *)
+ os=-irix4
+ ;;
+ esac
+ ;;
+ isi68 | isi)
+ basic_machine=m68k-isi
+ os=-sysv
+ ;;
+ m88k-omron*)
+ basic_machine=m88k-omron
+ ;;
+ magnum | m3230)
+ basic_machine=mips-mips
+ os=-sysv
+ ;;
+ merlin)
+ basic_machine=ns32k-utek
+ os=-sysv
+ ;;
+ mingw32)
+ basic_machine=i386-pc
+ os=-mingw32
+ ;;
+ miniframe)
+ basic_machine=m68000-convergent
+ ;;
+ *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
+ basic_machine=m68k-atari
+ os=-mint
+ ;;
+ mips3*-*)
+ basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
+ ;;
+ mips3*)
+ basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
+ ;;
+ mmix*)
+ basic_machine=mmix-knuth
+ os=-mmixware
+ ;;
+ monitor)
+ basic_machine=m68k-rom68k
+ os=-coff
+ ;;
+ morphos)
+ basic_machine=powerpc-unknown
+ os=-morphos
+ ;;
+ msdos)
+ basic_machine=i386-pc
+ os=-msdos
+ ;;
+ mvs)
+ basic_machine=i370-ibm
+ os=-mvs
+ ;;
+ ncr3000)
+ basic_machine=i486-ncr
+ os=-sysv4
+ ;;
+ netbsd386)
+ basic_machine=i386-unknown
+ os=-netbsd
+ ;;
+ netwinder)
+ basic_machine=armv4l-rebel
+ os=-linux
+ ;;
+ news | news700 | news800 | news900)
+ basic_machine=m68k-sony
+ os=-newsos
+ ;;
+ news1000)
+ basic_machine=m68030-sony
+ os=-newsos
+ ;;
+ news-3600 | risc-news)
+ basic_machine=mips-sony
+ os=-newsos
+ ;;
+ necv70)
+ basic_machine=v70-nec
+ os=-sysv
+ ;;
+ next | m*-next )
+ basic_machine=m68k-next
+ case $os in
+ -nextstep* )
+ ;;
+ -ns2*)
+ os=-nextstep2
+ ;;
+ *)
+ os=-nextstep3
+ ;;
+ esac
+ ;;
+ nh3000)
+ basic_machine=m68k-harris
+ os=-cxux
+ ;;
+ nh[45]000)
+ basic_machine=m88k-harris
+ os=-cxux
+ ;;
+ nindy960)
+ basic_machine=i960-intel
+ os=-nindy
+ ;;
+ mon960)
+ basic_machine=i960-intel
+ os=-mon960
+ ;;
+ nonstopux)
+ basic_machine=mips-compaq
+ os=-nonstopux
+ ;;
+ np1)
+ basic_machine=np1-gould
+ ;;
+ nv1)
+ basic_machine=nv1-cray
+ os=-unicosmp
+ ;;
+ nsr-tandem)
+ basic_machine=nsr-tandem
+ ;;
+ op50n-* | op60c-*)
+ basic_machine=hppa1.1-oki
+ os=-proelf
+ ;;
+ or32 | or32-*)
+ basic_machine=or32-unknown
+ os=-coff
+ ;;
+ OSE68000 | ose68000)
+ basic_machine=m68000-ericsson
+ os=-ose
+ ;;
+ os68k)
+ basic_machine=m68k-none
+ os=-os68k
+ ;;
+ pa-hitachi)
+ basic_machine=hppa1.1-hitachi
+ os=-hiuxwe2
+ ;;
+ paragon)
+ basic_machine=i860-intel
+ os=-osf
+ ;;
+ pbd)
+ basic_machine=sparc-tti
+ ;;
+ pbb)
+ basic_machine=m68k-tti
+ ;;
+ pc532 | pc532-*)
+ basic_machine=ns32k-pc532
+ ;;
+ pentium | p5 | k5 | k6 | nexgen | viac3)
+ basic_machine=i586-pc
+ ;;
+ pentiumpro | p6 | 6x86 | athlon | athlon_*)
+ basic_machine=i686-pc
+ ;;
+ pentiumii | pentium2 | pentiumiii | pentium3)
+ basic_machine=i686-pc
+ ;;
+ pentium4)
+ basic_machine=i786-pc
+ ;;
+ pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
+ basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ pentiumpro-* | p6-* | 6x86-* | athlon-*)
+ basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
+ basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ pentium4-*)
+ basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ pn)
+ basic_machine=pn-gould
+ ;;
+ power) basic_machine=power-ibm
+ ;;
+ ppc) basic_machine=powerpc-unknown
+ ;;
+ ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ ppcle | powerpclittle | ppc-le | powerpc-little)
+ basic_machine=powerpcle-unknown
+ ;;
+ ppcle-* | powerpclittle-*)
+ basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ ppc64) basic_machine=powerpc64-unknown
+ ;;
+ ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ ppc64le | powerpc64little | ppc64-le | powerpc64-little)
+ basic_machine=powerpc64le-unknown
+ ;;
+ ppc64le-* | powerpc64little-*)
+ basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ ps2)
+ basic_machine=i386-ibm
+ ;;
+ pw32)
+ basic_machine=i586-unknown
+ os=-pw32
+ ;;
+ rom68k)
+ basic_machine=m68k-rom68k
+ os=-coff
+ ;;
+ rm[46]00)
+ basic_machine=mips-siemens
+ ;;
+ rtpc | rtpc-*)
+ basic_machine=romp-ibm
+ ;;
+ s390 | s390-*)
+ basic_machine=s390-ibm
+ ;;
+ s390x | s390x-*)
+ basic_machine=s390x-ibm
+ ;;
+ sa29200)
+ basic_machine=a29k-amd
+ os=-udi
+ ;;
+ sb1)
+ basic_machine=mipsisa64sb1-unknown
+ ;;
+ sb1el)
+ basic_machine=mipsisa64sb1el-unknown
+ ;;
+ sei)
+ basic_machine=mips-sei
+ os=-seiux
+ ;;
+ sequent)
+ basic_machine=i386-sequent
+ ;;
+ sh)
+ basic_machine=sh-hitachi
+ os=-hms
+ ;;
+ sh64)
+ basic_machine=sh64-unknown
+ ;;
+ sparclite-wrs | simso-wrs)
+ basic_machine=sparclite-wrs
+ os=-vxworks
+ ;;
+ sps7)
+ basic_machine=m68k-bull
+ os=-sysv2
+ ;;
+ spur)
+ basic_machine=spur-unknown
+ ;;
+ st2000)
+ basic_machine=m68k-tandem
+ ;;
+ stratus)
+ basic_machine=i860-stratus
+ os=-sysv4
+ ;;
+ sun2)
+ basic_machine=m68000-sun
+ ;;
+ sun2os3)
+ basic_machine=m68000-sun
+ os=-sunos3
+ ;;
+ sun2os4)
+ basic_machine=m68000-sun
+ os=-sunos4
+ ;;
+ sun3os3)
+ basic_machine=m68k-sun
+ os=-sunos3
+ ;;
+ sun3os4)
+ basic_machine=m68k-sun
+ os=-sunos4
+ ;;
+ sun4os3)
+ basic_machine=sparc-sun
+ os=-sunos3
+ ;;
+ sun4os4)
+ basic_machine=sparc-sun
+ os=-sunos4
+ ;;
+ sun4sol2)
+ basic_machine=sparc-sun
+ os=-solaris2
+ ;;
+ sun3 | sun3-*)
+ basic_machine=m68k-sun
+ ;;
+ sun4)
+ basic_machine=sparc-sun
+ ;;
+ sun386 | sun386i | roadrunner)
+ basic_machine=i386-sun
+ ;;
+ sv1)
+ basic_machine=sv1-cray
+ os=-unicos
+ ;;
+ symmetry)
+ basic_machine=i386-sequent
+ os=-dynix
+ ;;
+ t3e)
+ basic_machine=alphaev5-cray
+ os=-unicos
+ ;;
+ t90)
+ basic_machine=t90-cray
+ os=-unicos
+ ;;
+ tic54x | c54x*)
+ basic_machine=tic54x-unknown
+ os=-coff
+ ;;
+ tic55x | c55x*)
+ basic_machine=tic55x-unknown
+ os=-coff
+ ;;
+ tic6x | c6x*)
+ basic_machine=tic6x-unknown
+ os=-coff
+ ;;
+ tx39)
+ basic_machine=mipstx39-unknown
+ ;;
+ tx39el)
+ basic_machine=mipstx39el-unknown
+ ;;
+ toad1)
+ basic_machine=pdp10-xkl
+ os=-tops20
+ ;;
+ tower | tower-32)
+ basic_machine=m68k-ncr
+ ;;
+ udi29k)
+ basic_machine=a29k-amd
+ os=-udi
+ ;;
+ ultra3)
+ basic_machine=a29k-nyu
+ os=-sym1
+ ;;
+ v810 | necv810)
+ basic_machine=v810-nec
+ os=-none
+ ;;
+ vaxv)
+ basic_machine=vax-dec
+ os=-sysv
+ ;;
+ vms)
+ basic_machine=vax-dec
+ os=-vms
+ ;;
+ vpp*|vx|vx-*)
+ basic_machine=f301-fujitsu
+ ;;
+ vxworks960)
+ basic_machine=i960-wrs
+ os=-vxworks
+ ;;
+ vxworks68)
+ basic_machine=m68k-wrs
+ os=-vxworks
+ ;;
+ vxworks29k)
+ basic_machine=a29k-wrs
+ os=-vxworks
+ ;;
+ w65*)
+ basic_machine=w65-wdc
+ os=-none
+ ;;
+ w89k-*)
+ basic_machine=hppa1.1-winbond
+ os=-proelf
+ ;;
+ xps | xps100)
+ basic_machine=xps100-honeywell
+ ;;
+ ymp)
+ basic_machine=ymp-cray
+ os=-unicos
+ ;;
+ z8k-*-coff)
+ basic_machine=z8k-unknown
+ os=-sim
+ ;;
+ none)
+ basic_machine=none-none
+ os=-none
+ ;;
+
+# Here we handle the default manufacturer of certain CPU types. It is in
+# some cases the only manufacturer, in others, it is the most popular.
+ w89k)
+ basic_machine=hppa1.1-winbond
+ ;;
+ op50n)
+ basic_machine=hppa1.1-oki
+ ;;
+ op60c)
+ basic_machine=hppa1.1-oki
+ ;;
+ romp)
+ basic_machine=romp-ibm
+ ;;
+ rs6000)
+ basic_machine=rs6000-ibm
+ ;;
+ vax)
+ basic_machine=vax-dec
+ ;;
+ pdp10)
+ # there are many clones, so DEC is not a safe bet
+ basic_machine=pdp10-unknown
+ ;;
+ pdp11)
+ basic_machine=pdp11-dec
+ ;;
+ we32k)
+ basic_machine=we32k-att
+ ;;
+ sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
+ basic_machine=sh-unknown
+ ;;
+ sh64)
+ basic_machine=sh64-unknown
+ ;;
+ sparc | sparcv9 | sparcv9b)
+ basic_machine=sparc-sun
+ ;;
+ cydra)
+ basic_machine=cydra-cydrome
+ ;;
+ orion)
+ basic_machine=orion-highlevel
+ ;;
+ orion105)
+ basic_machine=clipper-highlevel
+ ;;
+ mac | mpw | mac-mpw)
+ basic_machine=m68k-apple
+ ;;
+ pmac | pmac-mpw)
+ basic_machine=powerpc-apple
+ ;;
+ *-unknown)
+ # Make sure to match an already-canonicalized machine name.
+ ;;
+ *)
+ echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
+ exit 1
+ ;;
+esac
+
+# Here we canonicalize certain aliases for manufacturers.
+case $basic_machine in
+ *-digital*)
+ basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
+ ;;
+ *-commodore*)
+ basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
+ ;;
+ *)
+ ;;
+esac
+
+# Decode manufacturer-specific aliases for certain operating systems.
+
+if [ x"$os" != x"" ]
+then
+case $os in
+ # First match some system type aliases
+ # that might get confused with valid system types.
+ # -solaris* is a basic system type, with this one exception.
+ -solaris1 | -solaris1.*)
+ os=`echo $os | sed -e 's|solaris1|sunos4|'`
+ ;;
+ -solaris)
+ os=-solaris2
+ ;;
+ -svr4*)
+ os=-sysv4
+ ;;
+ -unixware*)
+ os=-sysv4.2uw
+ ;;
+ -gnu/linux*)
+ os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
+ ;;
+ # First accept the basic system types.
+ # The portable systems comes first.
+ # Each alternative MUST END IN A *, to match a version number.
+ # -sysv* is not here because it comes later, after sysvr4.
+ -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
+ | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
+ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
+ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
+ | -aos* \
+ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
+ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
+ | -hiux* | -386bsd* | -knetbsd* | -netbsd* | -openbsd* | -kfreebsd* | -freebsd* | -riscix* \
+ | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
+ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
+ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
+ | -chorusos* | -chorusrdb* \
+ | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
+ | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
+ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
+ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
+ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
+ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
+ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
+ | -powermax* | -dnix* | -nx6 | -nx7 | -sei*)
+ # Remember, each alternative MUST END IN *, to match a version number.
+ ;;
+ -qnx*)
+ case $basic_machine in
+ x86-* | i*86-*)
+ ;;
+ *)
+ os=-nto$os
+ ;;
+ esac
+ ;;
+ -nto-qnx*)
+ ;;
+ -nto*)
+ os=`echo $os | sed -e 's|nto|nto-qnx|'`
+ ;;
+ -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
+ | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
+ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
+ ;;
+ -mac*)
+ os=`echo $os | sed -e 's|mac|macos|'`
+ ;;
+ -linux-dietlibc)
+ os=-linux-dietlibc
+ ;;
+ -linux*)
+ os=`echo $os | sed -e 's|linux|linux-gnu|'`
+ ;;
+ -sunos5*)
+ os=`echo $os | sed -e 's|sunos5|solaris2|'`
+ ;;
+ -sunos6*)
+ os=`echo $os | sed -e 's|sunos6|solaris3|'`
+ ;;
+ -opened*)
+ os=-openedition
+ ;;
+ -wince*)
+ os=-wince
+ ;;
+ -osfrose*)
+ os=-osfrose
+ ;;
+ -osf*)
+ os=-osf
+ ;;
+ -utek*)
+ os=-bsd
+ ;;
+ -dynix*)
+ os=-bsd
+ ;;
+ -acis*)
+ os=-aos
+ ;;
+ -atheos*)
+ os=-atheos
+ ;;
+ -386bsd)
+ os=-bsd
+ ;;
+ -ctix* | -uts*)
+ os=-sysv
+ ;;
+ -nova*)
+ os=-rtmk-nova
+ ;;
+ -ns2 )
+ os=-nextstep2
+ ;;
+ -nsk*)
+ os=-nsk
+ ;;
+ # Preserve the version number of sinix5.
+ -sinix5.*)
+ os=`echo $os | sed -e 's|sinix|sysv|'`
+ ;;
+ -sinix*)
+ os=-sysv4
+ ;;
+ -triton*)
+ os=-sysv3
+ ;;
+ -oss*)
+ os=-sysv3
+ ;;
+ -svr4)
+ os=-sysv4
+ ;;
+ -svr3)
+ os=-sysv3
+ ;;
+ -sysvr4)
+ os=-sysv4
+ ;;
+ # This must come after -sysvr4.
+ -sysv*)
+ ;;
+ -ose*)
+ os=-ose
+ ;;
+ -es1800*)
+ os=-ose
+ ;;
+ -xenix)
+ os=-xenix
+ ;;
+ -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
+ os=-mint
+ ;;
+ -aros*)
+ os=-aros
+ ;;
+ -kaos*)
+ os=-kaos
+ ;;
+ -none)
+ ;;
+ *)
+ # Get rid of the `-' at the beginning of $os.
+ os=`echo $os | sed 's/[^-]*-//'`
+ echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
+ exit 1
+ ;;
+esac
+else
+
+# Here we handle the default operating systems that come with various machines.
+# The value should be what the vendor currently ships out the door with their
+# machine or put another way, the most popular os provided with the machine.
+
+# Note that if you're going to try to match "-MANUFACTURER" here (say,
+# "-sun"), then you have to tell the case statement up towards the top
+# that MANUFACTURER isn't an operating system. Otherwise, code above
+# will signal an error saying that MANUFACTURER isn't an operating
+# system, and we'll never get to this point.
+
+case $basic_machine in
+ *-acorn)
+ os=-riscix1.2
+ ;;
+ arm*-rebel)
+ os=-linux
+ ;;
+ arm*-semi)
+ os=-aout
+ ;;
+ c4x-* | tic4x-*)
+ os=-coff
+ ;;
+ # This must come before the *-dec entry.
+ pdp10-*)
+ os=-tops20
+ ;;
+ pdp11-*)
+ os=-none
+ ;;
+ *-dec | vax-*)
+ os=-ultrix4.2
+ ;;
+ m68*-apollo)
+ os=-domain
+ ;;
+ i386-sun)
+ os=-sunos4.0.2
+ ;;
+ m68000-sun)
+ os=-sunos3
+ # This also exists in the configure program, but was not the
+ # default.
+ # os=-sunos4
+ ;;
+ m68*-cisco)
+ os=-aout
+ ;;
+ mips*-cisco)
+ os=-elf
+ ;;
+ mips*-*)
+ os=-elf
+ ;;
+ or32-*)
+ os=-coff
+ ;;
+ *-tti) # must be before sparc entry or we get the wrong os.
+ os=-sysv3
+ ;;
+ sparc-* | *-sun)
+ os=-sunos4.1.1
+ ;;
+ *-be)
+ os=-beos
+ ;;
+ *-ibm)
+ os=-aix
+ ;;
+ *-wec)
+ os=-proelf
+ ;;
+ *-winbond)
+ os=-proelf
+ ;;
+ *-oki)
+ os=-proelf
+ ;;
+ *-hp)
+ os=-hpux
+ ;;
+ *-hitachi)
+ os=-hiux
+ ;;
+ i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
+ os=-sysv
+ ;;
+ *-cbm)
+ os=-amigaos
+ ;;
+ *-dg)
+ os=-dgux
+ ;;
+ *-dolphin)
+ os=-sysv3
+ ;;
+ m68k-ccur)
+ os=-rtu
+ ;;
+ m88k-omron*)
+ os=-luna
+ ;;
+ *-next )
+ os=-nextstep
+ ;;
+ *-sequent)
+ os=-ptx
+ ;;
+ *-crds)
+ os=-unos
+ ;;
+ *-ns)
+ os=-genix
+ ;;
+ i370-*)
+ os=-mvs
+ ;;
+ *-next)
+ os=-nextstep3
+ ;;
+ *-gould)
+ os=-sysv
+ ;;
+ *-highlevel)
+ os=-bsd
+ ;;
+ *-encore)
+ os=-bsd
+ ;;
+ *-sgi)
+ os=-irix
+ ;;
+ *-siemens)
+ os=-sysv4
+ ;;
+ *-masscomp)
+ os=-rtu
+ ;;
+ f30[01]-fujitsu | f700-fujitsu)
+ os=-uxpv
+ ;;
+ *-rom68k)
+ os=-coff
+ ;;
+ *-*bug)
+ os=-coff
+ ;;
+ *-apple)
+ os=-macos
+ ;;
+ *-atari*)
+ os=-mint
+ ;;
+ *)
+ os=-none
+ ;;
+esac
+fi
+
+# Here we handle the case where we know the os, and the CPU type, but not the
+# manufacturer. We pick the logical manufacturer.
+vendor=unknown
+case $basic_machine in
+ *-unknown)
+ case $os in
+ -riscix*)
+ vendor=acorn
+ ;;
+ -sunos*)
+ vendor=sun
+ ;;
+ -aix*)
+ vendor=ibm
+ ;;
+ -beos*)
+ vendor=be
+ ;;
+ -hpux*)
+ vendor=hp
+ ;;
+ -mpeix*)
+ vendor=hp
+ ;;
+ -hiux*)
+ vendor=hitachi
+ ;;
+ -unos*)
+ vendor=crds
+ ;;
+ -dgux*)
+ vendor=dg
+ ;;
+ -luna*)
+ vendor=omron
+ ;;
+ -genix*)
+ vendor=ns
+ ;;
+ -mvs* | -opened*)
+ vendor=ibm
+ ;;
+ -ptx*)
+ vendor=sequent
+ ;;
+ -vxsim* | -vxworks* | -windiss*)
+ vendor=wrs
+ ;;
+ -aux*)
+ vendor=apple
+ ;;
+ -hms*)
+ vendor=hitachi
+ ;;
+ -mpw* | -macos*)
+ vendor=apple
+ ;;
+ -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
+ vendor=atari
+ ;;
+ -vos*)
+ vendor=stratus
+ ;;
+ esac
+ basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
+ ;;
+esac
+
+echo $basic_machine$os
+exit 0
+
+# Local variables:
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: "timestamp='"
+# time-stamp-format: "%:y-%02m-%02d"
+# time-stamp-end: "'"
+# End:
Property changes on: trunk/config.sub
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/configure.in
===================================================================
--- trunk/configure.in 2003-12-18 23:25:52 UTC (rev 13)
+++ trunk/configure.in 2003-12-18 23:28:02 UTC (rev 14)
@@ -0,0 +1,282 @@
+AC_INIT(src/Makefile)
+
+PACKAGE=ocfs
+VERSION=1.9.9
+
+AC_SUBST(PACKAGE)
+
+# Adjust these for the software version.
+MAJOR_VERSION=1
+MINOR_VERSION=9
+MICRO_VERSION=9
+EXTRA_VERSION=UNSTABLE
+
+# Adjust this only to bump the RPM packaging version
+RPM_VERSION=2
+
+DIST_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION
+VERSION=$DIST_VERSION-$EXTRA_VERSION
+
+AC_SUBST(MAJOR_VERSION)
+AC_SUBST(MINOR_VERSION)
+AC_SUBST(MICRO_VERSION)
+AC_SUBST(EXTRA_VERSION)
+
+AC_SUBST(DIST_VERSION)
+AC_SUBST(VERSION)
+AC_SUBST(RPM_VERSION)
+
+AC_CANONICAL_HOST
+
+OCFS_PROCESSOR=
+
+case "$host" in
+ *-*-linux*)
+ ;;
+ *)
+ AC_MSG_ERROR([This filesystem will only work on Linux])
+ ;;
+esac
+
+case "$host_cpu" in
+ ia64)
+ OCFS_PROCESSOR="ia64"
+ ;;
+ x86_64)
+ OCFS_PROCESSOR="x86_64"
+ ;;
+ i386|i486|i586|i686|i786|k6|k7)
+ OCFS_PROCESSOR="i686"
+ ;;
+ *)
+ AC_MSG_ERROR([not configured for "$host_cpu"])
+ ;;
+esac
+
+AC_SUBST(OCFS_PROCESSOR)
+AC_PROG_CC
+AC_PROG_CPP
+
+AC_PROG_INSTALL
+AC_PROG_LN_S
+AC_PROG_RANLIB
+
+AC_PATH_PROG(AR, ar)
+
+AC_HEADER_STDC
+AC_C_CONST
+
+if test "x$GCC" != "xyes"; then
+ AC_MSG_ERROR(GCC is required)
+fi
+
+AC_ARG_ENABLE(debug, [ --enable-debug=[yes/no] Turn on debugging [default=yes]],,enable_debug=yes)
+OCFS_DEBUG=
+if test "x$enable_debug" = "xyes"; then
+ OCFS_DEBUG=yes
+fi
+AC_SUBST(OCFS_DEBUG)
+
+AC_ARG_ENABLE(aio, [ --enable-aio=[yes/no] Turn on aio [default=yes]],,enable_aio=yes)
+OCFS_AIO=yes
+if test "x$enable_aio" = "xno"; then
+ OCFS_AIO=
+fi
+AC_SUBST(OCFS_AIO)
+
+AC_ARG_ENABLE(memdebug, [ --enable-mem-debug=[yes/no] Turn on memory debugging [default=no]],,enable_memdebug=no)
+OCFS_MEMDEBUG=
+if test "x$enable_memdebug" = "xyes"; then
+ OCFS_MEMDEBUG=yes
+fi
+AC_SUBST(OCFS_MEMDEBUG)
+
+AC_ARG_ENABLE(trace, [ --enable-trace=[yes/no] Turn on tracing [default=yes]],,enable_trace=yes)
+OCFS_TRACE=
+if test "x$enable_trace" = "xyes"; then
+ OCFS_TRACE=yes
+fi
+AC_SUBST(OCFS_TRACE)
+
+AC_ARG_ENABLE(largeio, [ --enable-largeio=[yes/no] Turn on largeio [default=yes]],,enable_largeio=yes)
+OCFS_LARGEIO=yes
+if test "x$enable_largeio" = "xno"; then
+ OCFS_LARGEIO=
+fi
+AC_SUBST(OCFS_LARGEIO)
+
+AC_MSG_CHECKING(for directory with kernel source)
+AC_ARG_WITH(kernel, [ --with-kernel=dir Path to the kernel source tree [/usr/src/linux]], kerneldir="$withval",
+ if test -d "/lib/modules/`uname -r`/build" -o -L "/lib/modules/`uname -r`/build"; then
+ kerneldir="/lib/modules/`uname -r`/build"
+ else
+ kerneldir="/usr/src/linux"
+ fi
+)
+AC_MSG_RESULT($kerneldir)
+
+KERNELDIR=$kerneldir
+AC_SUBST(KERNELDIR)
+
+KERNELINC="$kerneldir/include"
+
+if test ! -f "$KERNELINC/linux/autoconf.h"; then
+ AC_MSG_ERROR(No configured kernel include tree found)
+fi
+
+saved_CPPFLAGS="$CPPFLAGS"
+CPPFLAGS="-I$KERNELINC $CPPFLAGS"
+
+AC_MSG_CHECKING(for kernel version)
+rm -f conf.kvertest
+AC_TRY_RUN([
+#include <stdio.h>
+#include <linux/version.h>
+
+int
+main (void)
+{
+#ifdef UTS_RELEASE
+ FILE *f;
+ f = fopen ("conf.kvertest", "w");
+ if (!f)
+ return 1;
+ fprintf (f, "%s", UTS_RELEASE);
+ fclose (f);
+ return 0;
+#else
+ return 1;
+#endif
+}],kversion=`cat conf.kvertest`, kversion="none")
+AC_MSG_RESULT($kversion)
+rm -f conf.kvertest
+
+if test "x$kversion" = "xnone"; then
+ AC_MSG_ERROR([Could not determine kernel version.])
+fi
+
+case "$kversion" in
+ 2.4.*)
+ ;;
+ *)
+ AC_MSG_ERROR([This module only supports kernel version 2.4.x])
+ ;;
+esac
+
+KERNELVER=$kversion
+AC_SUBST(KERNELVER)
+
+AC_MSG_CHECKING([for Red Hat kernel])
+AC_EGREP_CPP(kernel_is_Red_Hat,
+[#include <linux/autoconf.h>
+#ifdef RED_HAT_LINUX_KERNEL
+ kernel_is_Red_Hat
+#endif
+}], rhkernel=yes, rhkernel=no)
+AC_MSG_RESULT($rhkernel)
+
+ulkernel=no
+if test "x$rhkernel" = "xno"; then
+ AC_MSG_CHECKING([for United Linux kernel])
+ AC_EGREP_CPP(kernel_is_United_Linux,
+[#include <linux/autoconf.h>
+#ifdef CONFIG_UNITEDLINUX_KERNEL
+ kernel_is_United_Linux
+#endif
+}], ulkernel=yes)
+ AC_MSG_RESULT($ulkernel)
+fi
+
+KVER=
+if test "x$rhkernel" = "xyes"; then
+ KVER=up
+elif test "x$ulkernel" = "xyes"; then
+ KVER=suse
+fi
+AC_SUBST(KVER)
+
+AC_MSG_CHECKING([whether to build aio])
+if test "x$OCFS_AIO" = "xyes"; then
+ if egrep "EXPORT_SYMBOL.*\(brw_kvec_async\);" "$kerneldir/kernel/ksyms.c" "$kerneldir/fs/buffer.c" >/dev/null 2>&1; then
+ have_aio=yes
+ else
+ have_aio=no
+ fi
+
+ AC_MSG_RESULT($have_aio)
+
+ if test "x$have_aio" = "xno"; then
+ OCFS_AIO=
+ fi
+else
+ AC_MSG_RESULT(no)
+fi
+
+AC_MSG_CHECKING([for NPTL support])
+AC_TRY_COMPILE(
+[#define __KERNEL__ 1
+#include <linux/sched.h>],
+[recalc_sigpending ();], have_NPTL=yes, have_NPTL=no)
+AC_MSG_RESULT($have_NPTL)
+
+HAVE_NPTL=
+if test "x$have_NPTL" = "xyes"; then
+ HAVE_NPTL=yes
+fi
+AC_SUBST(HAVE_NPTL)
+
+AC_MSG_CHECKING([for buggy journal_create function])
+
+if test "x$rhkernel" = "xyes"; then
+ journal_min_version="2.4.2[[1-9]]*"
+else
+ journal_min_version="2.4.2[[2-9]]*"
+fi
+
+USE_JOURNAL_CREATE_REPLACEMENT=yes
+case "$kversion" in
+$journal_min_version)
+ USE_JOURNAL_CREATE_REPLACEMENT=no
+ ;;
+esac
+
+AC_MSG_RESULT($USE_JOURNAL_CREATE_REPLACEMENT)
+AC_SUBST(USE_JOURNAL_CREATE_REPLACEMENT)
+
+AC_MSG_CHECKING([for kernel module symbol versions])
+AC_EGREP_CPP(kernel_has_modversions,
+[#include <linux/autoconf.h>
+#ifdef CONFIG_MODVERSIONS
+ kernel_has_modversions
+#endif
+}], modversions=yes, modversions=no)
+AC_MSG_RESULT($modversions)
+
+MODVERSIONS=
+if test "x$modversions" = "xyes"; then
+ MODVERSIONS="-include \$(KERNELINC)/linux/modversions.h -DMODVERSIONS"
+fi
+AC_SUBST(MODVERSIONS)
+
+CPPFLAGS="$saved_CPPFLAGS"
+
+AC_MSG_CHECKING(for directory for kernel modules)
+AC_ARG_WITH(moddir, [ --with-moddir=/path Path to where modules should be installed [/lib/modules/<KVER>/fs]], moddir="$withval", moddir="/lib/modules/$kversion/kernel/fs")
+AC_MSG_RESULT($moddir)
+
+MODULEDIR=$moddir
+AC_SUBST(MODULEDIR)
+
+AC_MSG_CHECKING(for gcc include path)
+gccdir="`$CC -print-search-dirs | sed -n 's/^install: \(.*\)/\1/p'`include"
+if test -z "$gccdir"; then
+ AC_MSG_RESULT(not found)
+ AC_MSG_ERROR(Could not determine gcc include path)
+else
+ AC_MSG_RESULT($gccdir)
+fi
+
+GCCINC=$gccdir
+AC_SUBST(GCCINC)
+
+AC_OUTPUT([Config.make])
Added: trunk/docs/Makefile
===================================================================
--- trunk/docs/Makefile 2003-12-18 23:25:52 UTC (rev 13)
+++ trunk/docs/Makefile 2003-12-18 23:28:02 UTC (rev 14)
@@ -0,0 +1,7 @@
+TOPDIR = ..
+
+include $(TOPDIR)/Preamble.make
+
+DIST_FILES = sample-ocfs.conf
+
+include $(TOPDIR)/Postamble.make
Added: trunk/install-sh
===================================================================
--- trunk/install-sh 2003-12-18 23:25:52 UTC (rev 13)
+++ trunk/install-sh 2003-12-18 23:28:02 UTC (rev 14)
@@ -0,0 +1,294 @@
+#!/bin/sh
+#
+# install - install a program, script, or datafile
+#
+# This originates from X11R5 (mit/util/scripts/install.sh), which was
+# later released in X11R6 (xc/config/util/install.sh) with the
+# following copyright and license.
+#
+# Copyright (C) 1994 X Consortium
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to
+# deal in the Software without restriction, including without limitation the
+# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+# sell copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
+# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
+# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+#
+# Except as contained in this notice, the name of the X Consortium shall not
+# be used in advertising or otherwise to promote the sale, use or other deal-
+# ings in this Software without prior written authorization from the X Consor-
+# tium.
+#
+#
+# FSF changes to this file are in the public domain.
+#
+# Calling this script install-sh is preferred over install.sh, to prevent
+# `make' implicit rules from creating a file called install from it
+# when there is no Makefile.
+#
+# This script is compatible with the BSD install script, but was written
+# from scratch. It can only install one file at a time, a restriction
+# shared with many OS's install programs.
+
+
+# set DOITPROG to echo to test this script
+
+# Don't use :- since 4.3BSD and earlier shells don't like it.
+doit="${DOITPROG-}"
+
+
+# put in absolute paths if you don't have them in your path; or use env. vars.
+
+mvprog="${MVPROG-mv}"
+cpprog="${CPPROG-cp}"
+chmodprog="${CHMODPROG-chmod}"
+chownprog="${CHOWNPROG-chown}"
+chgrpprog="${CHGRPPROG-chgrp}"
+stripprog="${STRIPPROG-strip}"
+rmprog="${RMPROG-rm}"
+mkdirprog="${MKDIRPROG-mkdir}"
+
+transformbasename=""
+transform_arg=""
+instcmd="$mvprog"
+chmodcmd="$chmodprog 0755"
+chowncmd=""
+chgrpcmd=""
+stripcmd=""
+rmcmd="$rmprog -f"
+mvcmd="$mvprog"
+src=""
+dst=""
+dir_arg=""
+
+while [ x"$1" != x ]; do
+ case $1 in
+ -c) instcmd=$cpprog
+ shift
+ continue;;
+
+ -d) dir_arg=true
+ shift
+ continue;;
+
+ -m) chmodcmd="$chmodprog $2"
+ shift
+ shift
+ continue;;
+
+ -o) chowncmd="$chownprog $2"
+ shift
+ shift
+ continue;;
+
+ -g) chgrpcmd="$chgrpprog $2"
+ shift
+ shift
+ continue;;
+
+ -s) stripcmd=$stripprog
+ shift
+ continue;;
+
+ -t=*) transformarg=`echo $1 | sed 's/-t=//'`
+ shift
+ continue;;
+
+ -b=*) transformbasename=`echo $1 | sed 's/-b=//'`
+ shift
+ continue;;
+
+ *) if [ x"$src" = x ]
+ then
+ src=$1
+ else
+ # this colon is to work around a 386BSD /bin/sh bug
+ :
+ dst=$1
+ fi
+ shift
+ continue;;
+ esac
+done
+
+if [ x"$src" = x ]
+then
+ echo "$0: no input file specified" >&2
+ exit 1
+else
+ :
+fi
+
+if [ x"$dir_arg" != x ]; then
+ dst=$src
+ src=""
+
+ if [ -d "$dst" ]; then
+ instcmd=:
+ chmodcmd=""
+ else
+ instcmd=$mkdirprog
+ fi
+else
+
+# Waiting for this to be detected by the "$instcmd $src $dsttmp" command
+# might cause directories to be created, which would be especially bad
+# if $src (and thus $dsttmp) contains '*'.
+
+ if [ -f "$src" ] || [ -d "$src" ]
+ then
+ :
+ else
+ echo "$0: $src does not exist" >&2
+ exit 1
+ fi
+
+ if [ x"$dst" = x ]
+ then
+ echo "$0: no destination specified" >&2
+ exit 1
+ else
+ :
+ fi
+
+# If destination is a directory, append the input filename; if your system
+# does not like double slashes in filenames, you may need to add some logic
+
+ if [ -d "$dst" ]
+ then
+ dst=$dst/`basename "$src"`
+ else
+ :
+ fi
+fi
+
+## this sed command emulates the dirname command
+dstdir=`echo "$dst" | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
+
+# Make sure that the destination directory exists.
+# this part is taken from Noah Friedman's mkinstalldirs script
+
+# Skip lots of stat calls in the usual case.
+if [ ! -d "$dstdir" ]; then
+defaultIFS='
+ '
+IFS="${IFS-$defaultIFS}"
+
+oIFS=$IFS
+# Some sh's can't handle IFS=/ for some reason.
+IFS='%'
+set - `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'`
+IFS=$oIFS
+
+pathcomp=''
+
+while [ $# -ne 0 ] ; do
+ pathcomp=$pathcomp$1
+ shift
+
+ if [ ! -d "$pathcomp" ] ;
+ then
+ $mkdirprog "$pathcomp"
+ else
+ :
+ fi
+
+ pathcomp=$pathcomp/
+done
+fi
+
+if [ x"$dir_arg" != x ]
+then
+ $doit $instcmd "$dst" &&
+
+ if [ x"$chowncmd" != x ]; then $doit $chowncmd "$dst"; else : ; fi &&
+ if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd "$dst"; else : ; fi &&
+ if [ x"$stripcmd" != x ]; then $doit $stripcmd "$dst"; else : ; fi &&
+ if [ x"$chmodcmd" != x ]; then $doit $chmodcmd "$dst"; else : ; fi
+else
+
+# If we're going to rename the final executable, determine the name now.
+
+ if [ x"$transformarg" = x ]
+ then
+ dstfile=`basename "$dst"`
+ else
+ dstfile=`basename "$dst" $transformbasename |
+ sed $transformarg`$transformbasename
+ fi
+
+# don't allow the sed command to completely eliminate the filename
+
+ if [ x"$dstfile" = x ]
+ then
+ dstfile=`basename "$dst"`
+ else
+ :
+ fi
+
+# Make a couple of temp file names in the proper directory.
+
+ dsttmp=$dstdir/_inst.$$_
+ rmtmp=$dstdir/_rm.$$_
+
+# Trap to clean up temp files at exit.
+
+ trap 'status=$?; rm -f "$dsttmp" "$rmtmp" && exit $status' 0
+ trap '(exit $?); exit' 1 2 13 15
+
+# Move or copy the file name to the temp name
+
+ $doit $instcmd "$src" "$dsttmp" &&
+
+# and set any options; do chmod last to preserve setuid bits
+
+# If any of these fail, we abort the whole thing. If we want to
+# ignore errors from any of these, just make sure not to ignore
+# errors from the above "$doit $instcmd $src $dsttmp" command.
+
+ if [ x"$chowncmd" != x ]; then $doit $chowncmd "$dsttmp"; else :;fi &&
+ if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd "$dsttmp"; else :;fi &&
+ if [ x"$stripcmd" != x ]; then $doit $stripcmd "$dsttmp"; else :;fi &&
+ if [ x"$chmodcmd" != x ]; then $doit $chmodcmd "$dsttmp"; else :;fi &&
+
+# Now remove or move aside any old file at destination location. We try this
+# two ways since rm can't unlink itself on some systems and the destination
+# file might be busy for other reasons. In this case, the final cleanup
+# might fail but the new file should still install successfully.
+
+{
+ if [ -f "$dstdir/$dstfile" ]
+ then
+ $doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null ||
+ $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null ||
+ {
+ echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2
+ (exit 1); exit
+ }
+ else
+ :
+ fi
+} &&
+
+# Now rename the file to the real destination.
+
+ $doit $mvcmd "$dsttmp" "$dstdir/$dstfile"
+
+fi &&
+
+# The final little trick to "correctly" pass the exit status to the exit trap.
+
+{
+ (exit 0); exit
+}
Property changes on: trunk/install-sh
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/mkinstalldirs
===================================================================
--- trunk/mkinstalldirs 2003-12-18 23:25:52 UTC (rev 13)
+++ trunk/mkinstalldirs 2003-12-18 23:28:02 UTC (rev 14)
@@ -0,0 +1,111 @@
+#! /bin/sh
+# mkinstalldirs --- make directory hierarchy
+# Author: Noah Friedman <friedman at prep.ai.mit.edu>
+# Created: 1993-05-16
+# Public domain
+
+errstatus=0
+dirmode=""
+
+usage="\
+Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..."
+
+# process command line arguments
+while test $# -gt 0 ; do
+ case $1 in
+ -h | --help | --h*) # -h for help
+ echo "$usage" 1>&2
+ exit 0
+ ;;
+ -m) # -m PERM arg
+ shift
+ test $# -eq 0 && { echo "$usage" 1>&2; exit 1; }
+ dirmode=$1
+ shift
+ ;;
+ --) # stop option processing
+ shift
+ break
+ ;;
+ -*) # unknown option
+ echo "$usage" 1>&2
+ exit 1
+ ;;
+ *) # first non-opt arg
+ break
+ ;;
+ esac
+done
+
+for file
+do
+ if test -d "$file"; then
+ shift
+ else
+ break
+ fi
+done
+
+case $# in
+ 0) exit 0 ;;
+esac
+
+case $dirmode in
+ '')
+ if mkdir -p -- . 2>/dev/null; then
+ echo "mkdir -p -- $*"
+ exec mkdir -p -- "$@"
+ fi
+ ;;
+ *)
+ if mkdir -m "$dirmode" -p -- . 2>/dev/null; then
+ echo "mkdir -m $dirmode -p -- $*"
+ exec mkdir -m "$dirmode" -p -- "$@"
+ fi
+ ;;
+esac
+
+for file
+do
+ set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
+ shift
+
+ pathcomp=
+ for d
+ do
+ pathcomp="$pathcomp$d"
+ case $pathcomp in
+ -*) pathcomp=./$pathcomp ;;
+ esac
+
+ if test ! -d "$pathcomp"; then
+ echo "mkdir $pathcomp"
+
+ mkdir "$pathcomp" || lasterr=$?
+
+ if test ! -d "$pathcomp"; then
+ errstatus=$lasterr
+ else
+ if test ! -z "$dirmode"; then
+ echo "chmod $dirmode $pathcomp"
+ lasterr=""
+ chmod "$dirmode" "$pathcomp" || lasterr=$?
+
+ if test ! -z "$lasterr"; then
+ errstatus=$lasterr
+ fi
+ fi
+ fi
+ fi
+
+ pathcomp="$pathcomp/"
+ done
+done
+
+exit $errstatus
+
+# Local Variables:
+# mode: shell-script
+# sh-indentation: 2
+# End:
+# mkinstalldirs ends here
Property changes on: trunk/mkinstalldirs
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/patches/Makefile
===================================================================
--- trunk/patches/Makefile 2003-12-18 23:25:52 UTC (rev 13)
+++ trunk/patches/Makefile 2003-12-18 23:28:02 UTC (rev 14)
@@ -0,0 +1,7 @@
+TOPDIR = ..
+
+include $(TOPDIR)/Preamble.make
+
+DIST_FILES = mount_deadlock_fix.patch
+
+include $(TOPDIR)/Postamble.make
Added: trunk/src/Makefile
===================================================================
--- trunk/src/Makefile 2003-12-18 23:25:52 UTC (rev 13)
+++ trunk/src/Makefile 2003-12-18 23:28:02 UTC (rev 14)
@@ -0,0 +1,192 @@
+TOPDIR = ..
+
+include $(TOPDIR)/Preamble.make
+
+ifeq ($(OCFS_PROCESSOR),x86_64)
+ WARNINGS = -Wall -Wstrict-prototypes -Wno-format
+else
+ WARNINGS = -Wall -Wstrict-prototypes -Wno-format -Wmissing-prototypes \
+ -Wmissing-declarations
+endif
+
+#REMOVE THIS NEXT LINE AFTER DONE MOVING PROTOTYPES AROUND
+# WARNINGS = -Wall -Wstrict-prototypes -Wno-format \
+# -Wmissing-declarations
+
+ifdef OCFS_DEBUG
+OPTS += -g
+endif
+
+BASE_DEFINES = -DMODULE -DLINUX -D__KERNEL__
+DEFINES = $(BASE_DEFINES)
+
+ifdef OCFS_DEBUG
+DEFINES += -DDEBUG
+endif
+
+ifdef OCFS_MEMDEBUG
+DEFINES += -DOCFS_LINUX_MEM_DEBUG -DDEBUG_SLAB_ALLOCS
+endif
+
+ifdef OCFS_AIO
+DEFINES += -DAIO_ENABLED
+endif
+
+ifdef OCFS_TRACE
+DEFINES += -DTRACE
+endif
+
+ifdef HAVE_NPTL
+DEFINES += -DHAVE_NPTL
+endif
+
+ifeq ($(USE_JOURNAL_CREATE_REPLACEMENT),yes)
+DEFINES += -DUSE_JOURNAL_CREATE_REPLACEMENT
+endif
+
+DEFINES += -DDEBUG_LOCK_BUFFER
+DEFINES += -DVERBOSE_BH_JBD_TRACE
+DEFINES += -DVERBOSE_LOCKING_TRACE
+
+ifneq ($(OCFS_PROCESSOR),ia64)
+DEFINES += -DOCFS_DBG_TIMING
+endif
+
+DEFINES += -DALLOW_NO_HANDLE_SYNCING
+
+ifeq ($(KVER),vmware)
+ KERNELINC = /usr/src/linux-2.4/include
+endif
+
+ifeq ($(KVER),suse)
+DEFINES += -DSUSE
+endif
+ifeq ($(KVER),hugemem)
+ DEFINES += -D__BOOT_KERNEL_HUGEMEM=1
+ DEFINES += -D__BOOT_KERNEL_ENTERPRISE=0
+ DEFINES += -D__BOOT_KERNEL_SMP=0
+ DEFINES += -D__BOOT_KERNEL_UP=0
+endif
+ifeq ($(KVER),smp)
+ DEFINES += -D__BOOT_KERNEL_HUGEMEM=0
+ DEFINES += -D__BOOT_KERNEL_ENTERPRISE=0
+ DEFINES += -D__BOOT_KERNEL_SMP=1
+ DEFINES += -D__BOOT_KERNEL_UP=0
+endif
+ifeq ($(KVER),ent)
+ DEFINES += -D__BOOT_KERNEL_HUGEMEM=0
+ DEFINES += -D__BOOT_KERNEL_ENTERPRISE=1
+ DEFINES += -D__BOOT_KERNEL_SMP=0
+ DEFINES += -D__BOOT_KERNEL_UP=0
+endif
+ifeq ($(KVER),up)
+ DEFINES += -D__BOOT_KERNEL_HUGEMEM=0
+ DEFINES += -D__BOOT_KERNEL_ENTERPRISE=0
+ DEFINES += -D__BOOT_KERNEL_SMP=0
+ DEFINES += -D__BOOT_KERNEL_UP=1
+endif
+
+INCLUDES = -Iinc -I$(KERNELINC) -I$(GCCINC)
+
+CFLAGS=$(OPTS) -pipe -nostdinc -fno-strict-aliasing -fno-common \
+ -fomit-frame-pointer $(MODVERSIONS) $(WARNINGS)
+LDADD=-nostdlib
+
+ifeq ($(OCFS_PROCESSOR),x86_64)
+ DEFINES += -D__OPTIMIZE__
+ CFLAGS += -mcmodel=kernel
+ CFLAGS += -O0 -m64 -finline-functions
+endif
+ifeq ($(OCFS_PROCESSOR),ia64)
+ #DEFINES += -D__OPTIMIZE__
+ CFLAGS += -O2
+endif
+ifeq ($(OCFS_PROCESSOR),i686)
+ DEFINES += -D__ILP32__
+ CFLAGS += -O2
+endif
+ifeq ($(OCFS_PROCESSOR),i586)
+ CFLAGS += -O2
+endif
+
+MODULES = ocfs.o
+
+
+OSOURCES = \
+ alloc.c \
+ bitmap.c \
+ dcache.c \
+ dir.c \
+ dlm.c \
+ extmap.c \
+ file.c \
+ hash.c \
+ heartbeat.c \
+ inode.c \
+ ioctl.c \
+ journal.c \
+ namei.c \
+ nm.c \
+ oin.c \
+ osb.c \
+ proc.c \
+ sem.c \
+ super.c \
+ symlink.c \
+ sysfile.c \
+ util.c \
+ ver.c \
+ volcfg.c \
+ vote.c
+
+
+ifeq ($(OCFS_PROCESSOR),x86_64)
+SUPPORT =
+endif
+ifeq ($(OCFS_PROCESSOR),ia64)
+SUPPORT =
+endif
+ifeq ($(OCFS_PROCESSOR),i686)
+SUPPORT = divdi3.c
+endif
+ifeq ($(OCFS_PROCESSOR),i586)
+SUPPORT = divdi3.c
+endif
+
+CFILES = $(OSOURCES) $(SUPPORT)
+
+HFILES = \
+ inc/journal.h \
+ inc/ocfs.h \
+ inc/ocfsio.h \
+ inc/proto.h
+
+$(CFILES): $(HFILES)
+
+VERSION_FILES = $(CFILES) $(HFILES)
+VERSION_SRC = ver.c
+VERSION_PREFIX = OCFS
+
+OBJS = $(subst .c,.o,$(CFILES))
+
+ocfs.o: $(OBJS)
+ $(CC) $(OPTS) -Wl,-r -o $@ $^ $(LDADD)
+
+INSTALL_RULES = install-ocfs
+
+install-ocfs: ocfs.o
+ $(TOPDIR)/mkinstalldirs $(DESTDIR)$(MODULEDIR)
+ $(INSTALL_DATA) ocfs.o $(DESTDIR)$(MODULEDIR)/ocfs.o
+
+
+CLEAN_RULES = clean-ocfs
+
+clean-ocfs:
+ rm -f *.o *.p *.s
+
+DIST_RULES = dist-subdircreate
+
+dist-subdircreate:
+ $(TOPDIR)/mkinstalldirs $(DIST_DIR)/inc
+
+include $(TOPDIR)/Postamble.make
Modified: trunk/src/namei.c
===================================================================
--- trunk/src/namei.c 2003-12-18 23:25:52 UTC (rev 13)
+++ trunk/src/namei.c 2003-12-18 23:28:02 UTC (rev 14)
@@ -159,7 +159,7 @@
ocfs_handle_set_checkpoint(handle, false);
#ifdef ALLOW_NO_HANDLE_SYNCING
- ocfs_handle_set_sync(handle, false);
+ ocfs_handle_set_sync(handle, false);
#endif
/* lock the parent directory */
More information about the Ocfs2-commits
mailing list