| 389 endif |
389 endif |
| 390 conf.set_quoted('DISPLAY_VERSION', DISPLAY_VERSION) |
390 conf.set_quoted('DISPLAY_VERSION', DISPLAY_VERSION) |
| 391 |
391 |
| 392 force_deps = not get_option('missing-dependencies') |
392 force_deps = not get_option('missing-dependencies') |
| 393 |
393 |
| 394 with_x = get_option('x') and not IS_WIN32 |
|
| 395 |
|
| 396 # ####################################################################### |
394 # ####################################################################### |
| 397 # # Check for GTK+ 2.18 and other things used by the GTK UI |
395 # # Check for GTK+ 2.18 and other things used by the GTK UI |
| 398 # ####################################################################### |
396 # ####################################################################### |
| 399 enable_enchant = get_option('enchant') |
397 enable_enchant = get_option('enchant') |
| 400 enable_gevolution = get_option('gevolution') |
398 enable_gevolution = get_option('gevolution') |
| 424 enchant = dependency('enchant', required : force_deps) |
422 enchant = dependency('enchant', required : force_deps) |
| 425 use_enchant = enchant.found() |
423 use_enchant = enchant.found() |
| 426 conf.set('USE_ENCHANT', use_enchant) |
424 conf.set('USE_ENCHANT', use_enchant) |
| 427 else |
425 else |
| 428 enchant = [] |
426 enchant = [] |
| 429 endif |
|
| 430 |
|
| 431 ####################################################################### |
|
| 432 # Check if we should compile with X support |
|
| 433 ####################################################################### |
|
| 434 if with_x |
|
| 435 x11 = dependency('x11') |
|
| 436 if x11.found() |
|
| 437 conf.set('HAVE_X11', true) |
|
| 438 else |
|
| 439 with_x = false |
|
| 440 if force_deps |
|
| 441 error(''' |
|
| 442 X11 development headers not found. |
|
| 443 Use -Dx=false if you do not need X11 support. |
|
| 444 ''') |
|
| 445 endif |
|
| 446 endif |
|
| 447 endif |
|
| 448 if not with_x |
|
| 449 enable_gestures = false |
|
| 450 x11 = [] |
|
| 451 endif |
427 endif |
| 452 |
428 |
| 453 ####################################################################### |
429 ####################################################################### |
| 454 # Check for stuff needed by the Evolution integration plugin. |
430 # Check for stuff needed by the Evolution integration plugin. |
| 455 ####################################################################### |
431 ####################################################################### |
| 504 use_enchant = false |
480 use_enchant = false |
| 505 endif # GTK |
481 endif # GTK |
| 506 |
482 |
| 507 ENABLE_GTK = get_option('gtkui') |
483 ENABLE_GTK = get_option('gtkui') |
| 508 |
484 |
| |
485 |
| |
486 ####################################################################### |
| |
487 # Check if we should compile with X support |
| |
488 ####################################################################### |
| |
489 with_x = get_option('x') and not IS_WIN32 |
| |
490 |
| |
491 if with_x |
| |
492 x11 = dependency('x11') |
| |
493 if x11.found() |
| |
494 conf.set('HAVE_X11', true) |
| |
495 else |
| |
496 with_x = false |
| |
497 if force_deps |
| |
498 error(''' |
| |
499 X11 development headers not found. |
| |
500 Use -Dx=false if you do not need X11 support. |
| |
501 ''') |
| |
502 endif |
| |
503 endif |
| |
504 else |
| |
505 x11 = [] |
| |
506 endif |
| |
507 if not get_option('gtkui') or not with_x |
| |
508 enable_gestures = false |
| |
509 endif |
| 509 |
510 |
| 510 ####################################################################### |
511 ####################################################################### |
| 511 # Check for ncurses and other things used by the console UI |
512 # Check for ncurses and other things used by the console UI |
| 512 ####################################################################### |
513 ####################################################################### |
| 513 ncurses_inc = [] |
514 ncurses_inc = [] |