branch for working on Marwan Abdellah's GL/Display interoperability

git-svn-id: http://svn.open-mpi.org/svn/hwloc/branches/display@4478 4b44e086-7f34-40ce-a3bd-00e031736276
Import Marwan Abdellah's work
This is the "refactoring" branch of
  https://github.com/marwan-abdellah/HWLOC

Many "FIXME" added by me
Some fixes to make things compile (I don't have a machine
running a nvidia X server here, so I couldn't test for real)



git-svn-id: http://svn.open-mpi.org/svn/hwloc/branches/display@4479 4b44e086-7f34-40ce-a3bd-00e031736276
Don't include X11/Xlib.h and NVCtrl in the public headers, it's only needed internally



git-svn-id: http://svn.open-mpi.org/svn/hwloc/branches/display@4486 4b44e086-7f34-40ce-a3bd-00e031736276
Remove struct hwloc_gl_display_info, just use port and device.
By the way, make them unsigned.



git-svn-id: http://svn.open-mpi.org/svn/hwloc/branches/display@4487 4b44e086-7f34-40ce-a3bd-00e031736276
Sanitize the hwloc/gl.h header
Remove useless const, add topology parameters, ...



git-svn-id: http://svn.open-mpi.org/svn/hwloc/branches/display@4488 4b44e086-7f34-40ce-a3bd-00e031736276
Try to sanitize GL configury
* Add --enable-gl
* Remove Xext checks, they don't seem useful
* Don't bother about multiple checks, configure has a cache
* Use proper AC_CHECKs for nvctrl
* Simplify things

Probably not ready yet but still much better.



git-svn-id: http://svn.open-mpi.org/svn/hwloc/branches/display@4489 4b44e086-7f34-40ce-a3bd-00e031736276
Don't build gl internals when not enabled

git-svn-id: http://svn.open-mpi.org/svn/hwloc/branches/display@4490 4b44e086-7f34-40ce-a3bd-00e031736276
more things to fix

git-svn-id: http://svn.open-mpi.org/svn/hwloc/branches/display@4491 4b44e086-7f34-40ce-a3bd-00e031736276
Add missing copyright headers

git-svn-id: http://svn.open-mpi.org/svn/hwloc/branches/display@4497 4b44e086-7f34-40ce-a3bd-00e031736276
libXNVCtrl needs -lXext

git-svn-id: http://svn.open-mpi.org/svn/hwloc/branches/display@4498 4b44e086-7f34-40ce-a3bd-00e031736276
Move hwloc_get_pcidev_by_display() to hwloc/gl.h and improve it

git-svn-id: http://svn.open-mpi.org/svn/hwloc/branches/display@4499 4b44e086-7f34-40ce-a3bd-00e031736276
Remove hwloc_get_pcidevice_cpuset(), it makes no sense.

It's implementation isn't PCI-generic, it uses the GL code.
Also dup() is useless since the core GL function already dups.

Update tests/gl.c to not allocate a cpuset, we don't use it.
But don't forget to free the returned one.

git-svn-id: http://svn.open-mpi.org/svn/hwloc/branches/display@4500 4b44e086-7f34-40ce-a3bd-00e031736276
Remove hwloc_gl_get_pci_cpuset()

Just walk up parents until the cpuset isn't NULL.

git-svn-id: http://svn.open-mpi.org/svn/hwloc/branches/display@4501 4b44e086-7f34-40ce-a3bd-00e031736276
Remove hwloc_gl_get_gpu_display_private()

Just use the public one, it's the same.

git-svn-id: http://svn.open-mpi.org/svn/hwloc/branches/display@4502 4b44e086-7f34-40ce-a3bd-00e031736276
Make hwloc_gl_get_display_cpuset() an inline

It's very easy to implement, and good to be visible in helpers.

By the way, make it fill a given cpuset instead of allocating a new one.

git-svn-id: http://svn.open-mpi.org/svn/hwloc/branches/display@4503 4b44e086-7f34-40ce-a3bd-00e031736276
Stop including hwloc/gl.h from hwloc/helper.h

git-svn-id: http://svn.open-mpi.org/svn/hwloc/branches/display@4504 4b44e086-7f34-40ce-a3bd-00e031736276
Stop creating a misc device, the display osdev is enough

Add misc TODO nearby

git-svn-id: http://svn.open-mpi.org/svn/hwloc/branches/display@4505 4b44e086-7f34-40ce-a3bd-00e031736276
Misc updates from Marwan

git-svn-id: http://svn.open-mpi.org/svn/hwloc/branches/display@4506 4b44e086-7f34-40ce-a3bd-00e031736276
Rename gl.c into topology-gl.c

git-svn-id: http://svn.open-mpi.org/svn/hwloc/branches/display@4507 4b44e086-7f34-40ce-a3bd-00e031736276
HWLOC_LDFLAGS_GL isn't used, remove it

git-svn-id: http://svn.open-mpi.org/svn/hwloc/branches/display@4512 4b44e086-7f34-40ce-a3bd-00e031736276