Do not install libelf headers
Fix build with gcc 4.7 by removing a useless assert
Fix build with gcc 4.7
Revert pragma, gcc 4.2.1 do not like it: warning: unknown option after '#pragma GCC diagnostic' kind

Reported by:	dnaeon via jenkins
Use getopt(3)
Add dry-run mode -n
No need for trailing slash here, pkg_old_load_from_path() is adding another
Check return status of pkg_old_load_from_path() and skip if failed
Support using a different pkg_add(1) dir with -d flag
Show converting message before actually processing a package
Export OPTIONS to pkg_install(1) format

Addresses:	#431
Import OPTIONS from pkg_install(1) format

Addresses:	#431
Call pkg-convert via exec(1) to avoid subshell
Use err(3) when checking for pkg_add_dbdir
Merge branch 'convert-updates'

* convert-updates:
  Use err(3) when checking for pkg_add_dbdir
  Call pkg-convert via exec(1) to avoid subshell
  Import OPTIONS from pkg_install(1) format
  Export OPTIONS to pkg_install(1) format
  Show converting message before actually processing a package
  Support using a different pkg_add(1) dir with -d flag
  Check return status of pkg_old_load_from_path() and skip if failed
  No need for trailing slash here, pkg_old_load_from_path() is adding another
  Add dry-run mode -n
  Use getopt(3)
Make clang happy about missing format string
Fix build with clang on 8.3

This explicitly links to libarchive since libarchive is explicitly
called
Schema changes in order to support both shlibs provided & required
Update libpkg API to access both shlibs_required and shlibs_provided.
Add the machinery to record the shlibs provided by a package